mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
remove our cross compiling cruft and add warning where $cross_compiling == yes
This commit is contained in:
parent
65e409817e
commit
13eb893181
18
configure.in
18
configure.in
@ -153,9 +153,6 @@ dnl OL_ARG_ENABLE(kbind,[ --enable-kbind enable LDAPv2+ Kerberos IV bind (dep
|
|||||||
ol_enable_kbind=${ol_enable_kbind-no}
|
ol_enable_kbind=${ol_enable_kbind-no}
|
||||||
OL_ARG_ENABLE(ipv6,[ --enable-ipv6 enable IPv6 support], auto)dnl
|
OL_ARG_ENABLE(ipv6,[ --enable-ipv6 enable IPv6 support], auto)dnl
|
||||||
OL_ARG_ENABLE(local,[ --enable-local enable AF_LOCAL (AF_UNIX) socket support], auto)dnl
|
OL_ARG_ENABLE(local,[ --enable-local enable AF_LOCAL (AF_UNIX) socket support], auto)dnl
|
||||||
dnl OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling],
|
|
||||||
dnl no, [yes no])dnl
|
|
||||||
ol_enable_x_compile=${ol_enable_x_compile-no}
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl General "with" options
|
dnl General "with" options
|
||||||
@ -755,20 +752,6 @@ fi
|
|||||||
|
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl Cross compiling checks
|
|
||||||
if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
|
|
||||||
AC_MSG_WARN([cross compiling.... some functionality will be removed.])
|
|
||||||
|
|
||||||
elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
|
|
||||||
AC_MSG_WARN([programs compiled here do run here...])
|
|
||||||
AC_MSG_ERROR([ if not cross compiling, use --disable-x-compile.])
|
|
||||||
|
|
||||||
elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
|
|
||||||
AC_MSG_WARN([programs compiled here do not run here...])
|
|
||||||
AC_MSG_ERROR([ if cross compiling, add --enable-x-compile.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Checks for UNIX Variants
|
dnl Checks for UNIX Variants
|
||||||
dnl AC_AIX
|
dnl AC_AIX
|
||||||
@ -2397,6 +2380,7 @@ AC_C_CONST
|
|||||||
OL_C_VOLATILE
|
OL_C_VOLATILE
|
||||||
|
|
||||||
if test $cross_compiling = yes ; then
|
if test $cross_compiling = yes ; then
|
||||||
|
AC_MSG_WARN([Crossing compiling... all bets are off!])
|
||||||
AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
|
AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
|
||||||
else
|
else
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
Loading…
Reference in New Issue
Block a user