forked from Imagelibrary/rtems
Misc. backports from rtems-4.8
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
SUBDIRS = @TARGET_SUBDIRS@
|
||||
SUBDIRS = @HOST_SUBDIRS@ @TARGET_SUBDIRS@
|
||||
|
||||
DIST_SUBDIRS = cygwin
|
||||
DIST_SUBDIRS += freebsd5.2
|
||||
|
||||
@@ -62,25 +62,31 @@ case "$prefix" in
|
||||
/usr)
|
||||
sysdirpattern="/%sysdir/d"
|
||||
rpmprefix=
|
||||
host_subdirs=
|
||||
;;
|
||||
/usr/local)
|
||||
sysdirpattern="/%sysdir/d"
|
||||
rpmprefix="local-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
/opt/rtems)
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="rtems-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
NONE|${ac_default_prefix}) # Default prefix
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="[rtems-]RTEMS_API[-]"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
*)
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="custom-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(sysdirpattern)
|
||||
AC_SUBST(HOST_SUBDIRS,$host_subdirs)
|
||||
|
||||
AC_ARG_ENABLE([rpmprefix],
|
||||
[ --enable-rpmprefix=<rpmprefix> prefix rpms],[
|
||||
|
||||
@@ -20,6 +20,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
BuildRequires: flex bison
|
||||
%endif
|
||||
%if %build_gcj
|
||||
# Building gcj requires bison and zlib
|
||||
BuildRequires: bison
|
||||
|
||||
Reference in New Issue
Block a user