diff options
author | Roland McGrath <roland@gnu.org> | 1998-08-12 20:56:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-08-12 20:56:17 +0000 |
commit | c717a173a769e1fa366615a44ccf9cddec1a0c7d (patch) | |
tree | 72641a361d95cc27ce729bac22894e529e5b7853 | |
parent | 9283bb15f7d70c3825943367249a4e2871d80e0f (diff) |
1998-08-12 Roland McGrath <roland@baalperazim.frob.com>
* aclocal.m4 (AC_PROG_CC_LOCAL): Renamed to hurd_PROG_CC.
(AC_PROG_CC_WORKS_LOCAL): Renamed to hurd_PROG_CC_WORKS.
* configure.in: Use hurd_PROG_CC instead of AC_PROG_CC_LOCAL.
(AC_PREREQ): Require 2.12.
(AC_CANONICAL_HOST): Give helpful error messages for likely cases of
bogus host specs.
(crypt check): Don't do AC_CHECK_FUNCS to get HAVE_CRYPT,
just check for -lcrypt to set $LIBCRYPT.
-rw-r--r-- | aclocal.m4 | 7 | ||||
-rw-r--r-- | configure.in | 29 |
2 files changed, 18 insertions, 18 deletions
@@ -3,7 +3,7 @@ dnl In the situation that cross-linking is impossible, the variable dnl `cross_linkable' will be substituted with "yes". dnl -AC_DEFUN(AC_PROG_CC_LOCAL, +AC_DEFUN(hurd_PROG_CC, [AC_BEFORE([$0], [AC_PROG_CPP])dnl AC_CHECK_PROG(CC, gcc, gcc) if test -z "$CC"; then @@ -11,7 +11,7 @@ if test -z "$CC"; then test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) fi -AC_PROG_CC_WORKS_LOCAL +hurd_PROG_CC_WORKS AC_PROG_CC_GNU if test $ac_cv_prog_gcc = yes; then @@ -52,7 +52,7 @@ dnl test "${CFLAGS+set}" = set || CFLAGS="-g" fi ]) -AC_DEFUN(AC_PROG_CC_WORKS_LOCAL, +AC_DEFUN(hurd_PROG_CC_WORKS, [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_C @@ -71,4 +71,3 @@ AC_MSG_RESULT($ac_cv_prog_cc_cross) AC_SUBST(cross_linkable) cross_compiling=$ac_cv_prog_cc_cross ]) - diff --git a/configure.in b/configure.in index 1dad5b58..64960998 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_REVISION([$Id: configure.in,v 1.13 1998/07/20 04:55:13 roland Exp $]) -AC_PREREQ(2.4) dnl Minimum Autoconf version required. +AC_REVISION([$Id: configure.in,v 1.14 1998/08/12 20:56:17 roland Exp $]) +AC_PREREQ(2.12) dnl Minimum Autoconf version required. AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. @@ -8,14 +8,20 @@ AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. AC_CANONICAL_HOST case "$host_os" in gnu*) ;; -*) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;; +none) AC_MSG_ERROR([ +*** You must specify a host of $host_cpu-gnu or $host_cpu-$host_vendor-gnu +*** to configure; you will need to use the same host specification +*** to configure other packages for the GNU/Hurd system.]) ;; +*) AC_MSG_ERROR([this is the gnu os, host cannot be $host_os +*** Host configuration must be \`MACHINE-gnu' or \`MACHINE-VENDOR-gnu'. +*** To cross-compile, you must specify both --host and --build; +*** for example \`--build=$host --host=$host_cpu-gnu'. +*** Run $0 --help for more information.]) ;; esac case "$host_cpu" in -i[[3456]]86) - asm_syntax=i386 - ;; -*) AC_MSG_ERROR([unspported CPU type]) ;; +i?86) asm_syntax=i386 ;; +*) AC_MSG_ERROR([unsupported CPU type]) ;; esac AC_SUBST(asm_syntax) @@ -29,7 +35,7 @@ AC_PROG_INSTALL AC_CHECK_TOOL(CC, gcc) # That check handles cross-compilation well, but AC_PROG_CC tests for GCC # and sets default CFLAGS nicely for us, so do that too. -AC_PROG_CC_LOCAL +hurd_PROG_CC # Require GCC. if test x$GCC != xyes; then AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) @@ -44,14 +50,9 @@ AC_CHECK_TOOL(MIG, mig) dnl Let these propagate from the environment. AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) -# See if there's a separate libcrypt (many systems put crypt there) +# See if there's a separate libcrypt (many systems put crypt there). AC_CHECK_LIB(crypt, crypt, LIBCRYPT=-lcrypt) AC_SUBST(LIBCRYPT) -# Look for the crypt function itself (in libcrypt if possible) -_SAVE_LIBS="$LIBS" -LIBS="$LIBCRYPT $LIBS" -AC_CHECK_FUNCS(crypt) -LIBS="$_SAVE_LIBS" if test -f ./$ac_unique_file; then # Configuring in source directory; don't create any Makefiles. |