Fail the configure if neither ffcall nor ffi are available unless overridden by --disable-do.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16287 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-03-28 20:03:06 +00:00
parent c832eea8d3
commit 21b9c31602
3 changed files with 54 additions and 8 deletions

View file

@ -1,3 +1,12 @@
2003-03-28 20:48 Alexander Malmberg <alexander@malmberg.org>
* configure.ac: Fail the configure if neither ffcall nor ffi is
available unless --disable-do is passed to configure. Add a message
about why a user most likely does not want to build with ffcall and
ffi, and with a link to the build guide.
* configure: Regenerate.
2003-03-27 Adam Fedor <fedor@gnu.org>
* Source/NSBundle.m ([NSBundle -bundleIdentifier]): New.

30
configure vendored
View file

@ -850,6 +850,7 @@ Optional Features:
--enable-fake-main Force redefine of user main function
--enable-libffi Enable use of libffi library
--enable-ffcall Enable use of ffcall library
--disable-do Compile even if DO-dependencies are not met
--disable-xmltest Do not try to compile and run a test XML program
Optional Packages:
@ -11922,6 +11923,14 @@ else
enable_ffcall=yes
fi;
# Check whether --enable-do or --disable-do was given.
if test "${enable_do+set}" = set; then
enableval="$enable_do"
else
enable_do=yes
fi;
if test "${ac_cv_header_ffi_h+set}" = set; then
echo "$as_me:$LINENO: checking for ffi.h" >&5
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
@ -12252,12 +12261,25 @@ echo "${ECHO_T}ffcall" >&6
else
echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
echo
echo "GNUstep requires the ffcall library to do invocations and DO."
echo "Make sure this library is installed (see installation instructions)."
echo "Otherwise DO will not be compatible with other systems, and you will not"
echo "be able to use gnustep-gui."
if test $enable_do = yes; then
echo
echo "You most likely do not want to build -base without DO support. Many"
echo "things, including all applications, won't work at all without DO."
echo "If you really want to build -base without DO support, add --disable-do"
echo "to the configure arguments."
echo "For more information, read the GNUstep build guide, ffcall section:"
echo "http://documents.made-it.com/GNUstep/buildguide.html"
{ { echo "$as_me:$LINENO: error: No ffcall interface library found." >&5
echo "$as_me: error: No ffcall interface library found." >&2;}
{ (exit 1); exit 1; }; }
fi
{ echo "$as_me:$LINENO: WARNING: No ffcall interface library found" >&5
echo "$as_me: WARNING: No ffcall interface library found" >&2;}
echo
echo "GNUstep requires the ffcall library to do invocations and DO"
echo "Make sure this library is installed (see installation instructions)"
echo "Otherwise DO will not be compatible with other systems"
fi

View file

@ -858,6 +858,10 @@ AC_ARG_ENABLE(ffcall,
[ --enable-ffcall Enable use of ffcall library],,
enable_ffcall=yes)
AC_ARG_ENABLE(do,
[ --disable-do Compile even if DO-dependencies are not met],,
enable_do=yes)
AC_CHECK_HEADER(ffi.h, , enable_libffi=no)
AC_MSG_CHECKING("for forwarding callback in runtime")
@ -881,11 +885,22 @@ elif test $enable_ffcall = yes; then
AC_MSG_RESULT(ffcall)
else
AC_MSG_RESULT(none)
AC_MSG_WARN([No ffcall interface library found])
echo
echo "GNUstep requires the ffcall library to do invocations and DO"
echo "Make sure this library is installed (see installation instructions)"
echo "Otherwise DO will not be compatible with other systems"
echo "GNUstep requires the ffcall library to do invocations and DO."
echo "Make sure this library is installed (see installation instructions)."
echo "Otherwise DO will not be compatible with other systems, and you will not"
echo "be able to use gnustep-gui."
if test $enable_do = yes; then
echo
echo "You most likely do not want to build -base without DO support. Many"
echo "things, including all applications, won't work at all without DO."
echo "If you really want to build -base without DO support, add --disable-do"
echo "to the configure arguments."
echo "For more information, read the GNUstep build guide, ffcall section:"
echo "http://documents.made-it.com/GNUstep/buildguide.html"
AC_MSG_ERROR([No ffcall interface library found.])
fi
AC_MSG_WARN([No ffcall interface library found])
fi
AC_SUBST(WITH_FFI)