diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-07 20:21:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-07 20:21:37 +0000 |
commit | 6a46885044f50e044be0cd0a50c5205798801b5a (patch) | |
tree | 2522a813276e2befe92a6a8f943d6f09392377e0 /bfd/configure | |
parent | 4e0785aa05bc0e8d7ea79c1bd98b2b667bf7c442 (diff) | |
download | gdb-6a46885044f50e044be0cd0a50c5205798801b5a.zip gdb-6a46885044f50e044be0cd0a50c5205798801b5a.tar.gz gdb-6a46885044f50e044be0cd0a50c5205798801b5a.tar.bz2 |
* configure.in: Call AC_CHECK_PROG to find and cache AR.
* configure: Rebuilt.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 60 |
1 files changed, 44 insertions, 16 deletions
diff --git a/bfd/configure b/bfd/configure index 5648107..3ba179d 100755 --- a/bfd/configure +++ b/bfd/configure @@ -589,7 +589,33 @@ rm -f conftest* -AR=${AR-ar} +# Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AR="ar" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=":" +fi +fi +AR="$ac_cv_prog_AR" +if test -n "$AR"; then + echo "$ac_t""$AR" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 @@ -687,7 +713,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <<EOF -#line 691 "configure" +#line 717 "configure" #include "confdefs.h" main(){return(0);} EOF @@ -704,10 +730,12 @@ cross_compiling=$ac_cv_c_cross echo "$ac_t""$ac_cv_c_cross" 1>&6 # Put a plausible default for CC_FOR_BUILD in Makefile. -if test "x$cross_compiling" = "xno"; then - CC_FOR_BUILD='$(CC)' -else - CC_FOR_BUILD=gcc +if test -z "$CC_FOR_BUILD"; then + if test "x$cross_compiling" = "xno"; then + CC_FOR_BUILD='$(CC)' + else + CC_FOR_BUILD=gcc + fi fi @@ -726,7 +754,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 730 "configure" +#line 758 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -740,7 +768,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 744 "configure" +#line 772 "configure" #include "confdefs.h" #include <assert.h> Syntax Error @@ -773,7 +801,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 777 "configure" +#line 805 "configure" #include "confdefs.h" #include <$ac_hdr> EOF @@ -809,7 +837,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 813 "configure" +#line 841 "configure" #include "confdefs.h" #include <$ac_hdr> EOF @@ -844,7 +872,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 848 "configure" +#line 876 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -902,7 +930,7 @@ if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 906 "configure" +#line 934 "configure" #include "confdefs.h" #include <stdio.h> @@ -941,7 +969,7 @@ if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 945 "configure" +#line 973 "configure" #include "confdefs.h" #include <stdio.h> @@ -1232,7 +1260,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1236 "configure" +#line 1264 "configure" #include "confdefs.h" #include <sys/procfs.h> int main() { return 0; } @@ -1518,7 +1546,7 @@ else ac_cv_func_mmap=no else cat > conftest.$ac_ext <<EOF -#line 1522 "configure" +#line 1550 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. */ @@ -1617,7 +1645,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1621 "configure" +#line 1649 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ |