extern software (so that the test suite doesn't fail on them).
* acgeneral.m4 (AC_MSG_ERROR, AC_MSG_ERROR_UNQUOTED): Allow an
optional $2: exit status.
* doc/autoconf.texi: Document.
* acspecific.m4 (AC_PROG_CC_WORKS, PROG_CXX_WORKS,
AC_PROG_F77_WORKS): Exit 77 if the compiler does not work.
+1999-11-13 Akim Demaille <akim@epita.fr>
+
+ Introduce a means to distinguish failures of `configure' due to
+ extern software (so that the test suite doesn't fail on them).
+
+ * acgeneral.m4 (AC_MSG_ERROR, AC_MSG_ERROR_UNQUOTED): Allow an
+ optional $2: exit status.
+ * doc/autoconf.texi: Document.
+ * acspecific.m4 (AC_PROG_CC_WORKS, PROG_CXX_WORKS,
+ AC_PROG_F77_WORKS): Exit 77 if the compiler does not work.
+
1999-11-13 Akim Demaille <akim@epita.fr>
Clean up a bit the handling of the LANG stack. More is needed.
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_cc_works)
if test $ac_cv_prog_cc_works = no; then
- AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_cc_cross)
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_cxx_works)
if test $ac_cv_prog_cxx_works = no; then
- AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_cxx_cross)
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_f77_works)
if test $ac_cv_prog_f77_works = no; then
- AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_f77_cross)
AC_TRY_LINK_FUNC(${foo_bar}, f77_underscore=double)
- if test x"$f77_case" = x -o x"$f77_underscore" = x; then
+ if test x"$f77_case" = x || test x"$f77_underscore" = x; then
ac_cv_f77_mangling="unknown"
else
ac_cv_f77_mangling="$f77_case case, $f77_underscore underscores"
These macros are used to find declarations not covered by the particular
test macros.
-@defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, o@var{includes})
+@defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
@maindex CHECK_DECL
If the declaration of @var{symbol} (a function or a variable) is needed
because it is not declared in @var{includes}, run the shell commands
@samp{--quiet} or @samp{--silent} option.
@end defmac
-@defmac AC_MSG_ERROR (@var{error-description})
+@defmac AC_MSG_ERROR (@var{error-description}, @ovar{exit-status})
@maindex MSG_ERROR
Notify the user of an error that prevents @code{configure} from
completing. This macro prints an error message on the standard error
-output and exits @code{configure} with a nonzero status.
+output and exits @code{configure} with @var{exit-status} (1 by default).
@var{error-description} should be something like @samp{invalid value
$HOME for \$HOME}.
@end defmac
These macros are used to find declarations not covered by the particular
test macros.
-@defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, o@var{includes})
+@defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @ovar{includes})
@maindex CHECK_DECL
If the declaration of @var{symbol} (a function or a variable) is needed
because it is not declared in @var{includes}, run the shell commands
@samp{--quiet} or @samp{--silent} option.
@end defmac
-@defmac AC_MSG_ERROR (@var{error-description})
+@defmac AC_MSG_ERROR (@var{error-description}, @ovar{exit-status})
@maindex MSG_ERROR
Notify the user of an error that prevents @code{configure} from
completing. This macro prints an error message on the standard error
-output and exits @code{configure} with a nonzero status.
+output and exits @code{configure} with @var{exit-status} (1 by default).
@var{error-description} should be something like @samp{invalid value
$HOME for \$HOME}.
@end defmac
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_cc_works)
if test $ac_cv_prog_cc_works = no; then
- AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_cc_cross)
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_cxx_works)
if test $ac_cv_prog_cxx_works = no; then
- AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_cxx_cross)
AC_LANG_RESTORE
AC_MSG_RESULT($ac_cv_prog_f77_works)
if test $ac_cv_prog_f77_works = no; then
- AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.])
+ AC_MSG_ERROR([installation or configuration problem: Fortran 77 compiler cannot create executables.], 77)
fi
AC_MSG_CHECKING([whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) is a cross-compiler])
AC_MSG_RESULT($ac_cv_prog_f77_cross)
AC_TRY_LINK_FUNC(${foo_bar}, f77_underscore=double)
- if test x"$f77_case" = x -o x"$f77_underscore" = x; then
+ if test x"$f77_case" = x || test x"$f77_underscore" = x; then
ac_cv_f77_mangling="unknown"
else
ac_cv_f77_mangling="$f77_case case, $f77_underscore underscores"