home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 7
/
FreshFishVol7.bin
/
bbs
/
gnu
/
gdb-4.12-src.lha
/
GNU
/
src
/
amiga
/
gdb-4.12
/
configure
< prev
next >
Wrap
Text File
|
1994-06-17
|
42KB
|
1,024 lines
#!/bin/sh
### WARNING: this file contains embedded tabs. Do not run untabify on this file.
# Configuration script
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
# Please email any bugs, comments, and/or additions to this file to:
# bug-gdb@prep.ai.mit.edu
# This file was written by K. Richard Pixley.
#
# Shell script to create proper links to machine-dependent files in
# preparation for compilation.
#
# If configure succeeds, it leaves its status in config.status.
# If configure fails after disturbing the status quo,
# config.status is removed.
#
# In places where the argument to echo may start with a '-', use /bin/echo
# since the AmigaDOS pdksh builtin echo botches this case.
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0 $argv; kill $$)
remove=rm
hard_link=cp
symbolic_link=cp
#for Test
#remove="echo rm"
#hard_link="echo ln"
#symbolic_link="echo ln -s"
# clear some things potentially inherited from environment.
Makefile=Makefile
Makefile_in=Makefile.in
arguments=$*
build_alias=
configdirs=
exec_prefix=
exec_prefixoption=
fatal=
floating_point=default
gas=default
host_alias=
host_makefile_frag=
moveifchange=
next_build=
next_host=
next_prefix=
next_site=
next_srcdir=
next_target=
next_tmpdir=
norecursion=
package_makefile_frag=
# This is a hack so we don't have to remember to always configure using
# the "--prefix=/gnu" option. Personally I feel this should be settable
# in a config file. -fnf
prefix=/gnu
progname=
program_prefix=
program_prefixoption=
program_suffix=
program_suffixoption=
program_transform_name=
program_transform_nameoption=
redirect=">/dev/null"
removing=
site=
site_makefile_frag=
site_option=
srcdir=
srctrigger=
subdirs=
target_alias=
target_makefile_frag=
undefinedargs=
version="$Revision: 1.173 $"
x11=default
### we might need to use some other shell than /bin/sh for running subshells
#
config_shell=${CONFIG_SHELL-/bin/sh}
NO_EDIT="This file was generated automatically by configure. Do not edit."
## this is a little touchy and won't always work, but...
##
## if the argv[0] starts with a slash then it is an absolute name that can (and
## must) be used as is.
##
## otherwise, if argv[0] has no slash in it, we can assume that it is on the
## path. Since PATH might include "." we also add `pwd` to the end of PATH.
##
# For some reason, the value of $0 in AmigaDOS pdksh ends up with a
# trailing '/' that needs to be stripped.
progname=`/bin/echo $0 | sed 's:/$::'`
# if PWD already has a value, it is probably wrong.
# The AmigaDOS pksh can't change the value of PWD, it's readonly.
#if [ -n "$PWD" ]; then PWD=`pwd`; fi
case "${progname}" in
/*) ;;
*/*) ;;
*)
PATH=$PATH:${PWD=`pwd`} ; export PATH
;;
esac
for arg in $*
do
# handle things that might have args following as separate words
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}"
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.
elif [ -n "${next_srcdir}" ] ; then srcdir=`/bin/echo ${arg} | sed -e 's:/$::'` ; next_srcdir=
elif [ -n "${next_program_prefix}" ] ; then
program_prefix=${arg}
program_prefixoption="-program_prefix=${program_prefix}"
next_program_prefix=
elif [ -n "${next_program_suffix}" ] ; then
program_suffix=${arg}
program_suffixoption="-program_suffix=${program_suffix}"
next_program_suffix=
elif [ -n "${next_program_transform_name}" ] ; then
# Double any backslashes or dollar signs in the argument
if [ -n "${arg}" ] ; then
program_transform_name="${program_transform_name} -e `/bin/echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
fi
program_transform_nameoption="${program_transform_nameoption} --program-transform-name='${arg}'"
next_program_transform_name=
elif [ -n "${next_build}" ] ; then
next_build=
case "${build_alias}" in
"")
build_alias="${arg}"
;;
*)
echo '***' Can only configure for one build machine at a time. 1>&2
fatal=yes
;;
esac
elif [ -n "${next_target}" ] ; then
next_target=
case "${target_alias}" in
"")
target_alias="${arg}"
;;
*)
echo '***' Can only configure for one target at a time. 1>&2
fatal=yes
;;
esac
elif [ -n "${next_host}" ] ; then
next_host=
case "${host_alias}" in
"")
host_alias="${arg}"
;;
*)
echo '***' Can only configure for one host at a time. 1>&2
fatal=yes
;;
esac
elif [ -n "${next_tmpdir}" ] ; then
next_tmpdir=
tmpdiroption="--tmpdir=${arg}"
TMPDIR=${arg}
else
case ${arg} in
-build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
case "${build_alias}" in
"") build_alias="`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`" ;;
*)
echo '***' Can only configure for one build machine at a time. 1>&2
fatal=yes
;;
esac
;;
-build | --build | --buil | --bui | --bu | --b)
next_build=yes
;;
-exec_prefix=* | --exec_prefix=* | --exec_prefi=* | --exec_pref=* | --exec_pre=* | --exec_pr=* | --exec_p=* | --exec_=* | --exec=* | --exe=* | --ex=* | --e=* | -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* )
exec_prefix=`/bin/echo ${arg} | sed 's/^[-a-z_]*=//'`
exec_prefixoption=${arg}
;;
-exec_prefix | --exec_prefix | --exec_prefi | --exec_pref | --exec_pre | --exec_pr | --exec_p | --exec_ | --exec | --exe | --ex | --e | -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec-)
next_exec_prefix=yes
;;
-gas | --g*)
gas=yes
;;
-help | --he*)
fatal=true
;;
-host=* | --host=* | --hos=* | --ho=*)
case "${host_alias}" in
"")
host_alias="`/bin/echo ${arg} | sed 's/^[-a-z]*=//'`"
;;