### WARNING: this file contains embedded tabs. Do not run untabify on this file.
# Configuration script
-# Copyright (C) 1988, 1990-1993 Free Software Foundation, Inc.
+# Copyright (C) 1988, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
if [ -n "${next_prefix}" ] ; then prefix=${arg} ; prefixoption="-prefix=${prefix}" ; next_prefix=
elif [ -n "${next_exec_prefix}" ] ; then
exec_prefix=${arg}
- exec_prefixoption="-exec_prefix=${exec_prefix}"
+ exec_prefixoption="-exec-prefix=${exec_prefix}"
next_exec_prefix=
elif [ -n "${next_site}" ] ; then site=${arg} ; site_option=-site=${site} ; next_site=
# remove any possible trailing slash from srcdir. See note below.
(echo "Usage: configure HOST" ;
echo ;
echo "Options: [defaults in brackets]" ;
- echo " -prefix=MYDIR configure for installation of host dependent files into MYDIR. [\"/usr/local\"]" ;
- echo " -exec-prefix=MYDIR configure for installation of host dependent files into MYDIR. [\"/usr/local\"]" ;
- echo " -help print this message. [normal config]" ;
- echo " -norecursion configure this directory only. [recurse]" ;
- echo " -program-prefix=FOO install programs with FOO prepended to their names. [ \"\" ]" ;
- echo " -program-suffix=FOO install programs with FOO appended to their names. [ \"\" ]" ;
- echo " -program-transform-name=FOO install programs with names transformed by sed pattern FOO. [ \"\" ]" ;
- echo " -site=SITE configure with site specific makefile for SITE" ;
- echo " -srcdir=DIR find the sources in DIR. [\".\" or \"..\"]" ;
- echo " -target=TARGET configure for TARGET. [TARGET = HOST]" ;
- echo " -tmpdir=TMPDIR create temporary files in TMPDIR. [ TMPDIR = \"/tmp\" ]" ;
- echo " -nfp configure the compilers default to soft floating point. [hard float]" ;
- echo " -with-FOO, -with-FOO=BAR specify that FOO is available"
- echo " -without-FOO specify that FOO is NOT available"
+ echo " --prefix=MYDIR configure for installation of host dependent files into MYDIR. [\"/usr/local\"]" ;
+ echo " --exec-prefix=MYDIR configure for installation of host dependent files into MYDIR. [\"/usr/local\"]" ;
+ echo " --help print this message. [normal config]" ;
+ echo " --norecursion configure this directory only. [recurse]" ;
+ echo " --program-prefix=FOO install programs with FOO prepended to their names. [ \"\" ]" ;
+ echo " --program-suffix=FOO install programs with FOO appended to their names. [ \"\" ]" ;
+ echo " --program-transform-name=FOO install programs with names transformed by sed pattern FOO. [ \"\" ]" ;
+ echo " --site=SITE configure with site specific makefile for SITE" ;
+ echo " --srcdir=DIR find the sources in DIR. [\".\" or \"..\"]" ;
+ echo " --target=TARGET configure for TARGET. [TARGET = HOST]" ;
+ echo " --tmpdir=TMPDIR create temporary files in TMPDIR. [ TMPDIR = \"/tmp\" ]" ;
+ echo " --nfp configure the compilers default to soft floating point. [hard float]" ;
+ echo " --with-FOO, --with-FOO=BAR specify that FOO is available"
+ echo " --without-FOO specify that FOO is NOT available"
echo ;
echo "Where HOST and TARGET are something like \"vax\", \"sun3\", \"encore\", etc." ;
echo ;
exit 1
fi
-tooldir="\$(exec_prefix)/${target_alias}"
+# Some systems (e.g., one of the i386-aix systems the gas testers are
+# using) don't handle "\$" correctly, so don't use it here.
+tooldir='$(exec_prefix)'/${target_alias}
if [ "${host_alias}" != "${target_alias}" ] ; then
if [ "${program_prefixoption}" = "" ] ; then
echo site_makefile_frag = ${invsubdir}${site_makefile_frag} >>${Makefile}
fi
- # fixme: this shouldn't be in configure.
- # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
- case "${host_alias}" in
- "${target_alias}")
- echo "ALL=all.internal" >> ${Makefile}
- ;;
- *)
- echo "CROSS=-DCROSS_COMPILE" >> ${Makefile}
- echo "ALL=all.cross" >> ${Makefile}
- ;;
- esac
-
# reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
# remove any form feeds.
if [ -z "${subdirs}" ]; then
# final copy now in ${Makefile}
else
- echo "No Makefile.in found in ${srcdir}, unable to configure" 1>&2
+ echo "No Makefile.in found in ${srcdir}/${subdir}, unable to configure" 1>&2
fi
rm -f ${subdir}/Makefile.tem