diff options
Diffstat (limited to 'fixincludes/configure.ac')
-rw-r--r-- | fixincludes/configure.ac | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/fixincludes/configure.ac b/fixincludes/configure.ac index f3eeb76c3b5..16d2b7e3e25 100644 --- a/fixincludes/configure.ac +++ b/fixincludes/configure.ac @@ -6,6 +6,24 @@ AC_CONFIG_AUX_DIR(..) AC_CANONICAL_SYSTEM AC_PROG_CC +# Determine the noncanonical target name, for directory use. +ACX_NONCANONICAL_TARGET + +# Specify the local prefix +local_prefix= +AC_ARG_WITH(local-prefix, +[ --with-local-prefix=DIR specifies directory to put local include], +[case "${withval}" in +yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;; +no) ;; +*) local_prefix=$with_local_prefix ;; +esac]) + +# Default local prefix if it is empty +if test x$local_prefix = x; then + local_prefix=/usr/local +fi + # Choose one or two-process fix methodology. Systems that cannot handle # bi-directional pipes must use the two process method. # @@ -34,6 +52,12 @@ if test $TARGET = twoprocess; then [Define if testing and fixing are done by separate process]) fi +# Get GCC's version number. +changequote(,)dnl +gcc_version=`sed -n '/version_string/ { s/.*"\([^ "]*\)[^"]*".*/\1/p ; }' ${srcdir}/../gcc/version.c` +changequote([,])dnl +AC_SUBST(gcc_version) + case $host in vax-dec-bsd* ) AC_DEFINE(exit, xexit, [Define to xexit if the host system does not support atexit]) @@ -74,5 +98,5 @@ fi AC_SUBST(MAINT) AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h]) -AC_CONFIG_FILES(Makefile) +AC_CONFIG_FILES(Makefile mkheaders) AC_OUTPUT |