Changeset 1706 in Sophya for trunk/ArchTOIPipe/configure


Ignore:
Timestamp:
Oct 19, 2001, 11:28:05 AM (24 years ago)
Author:
aubourg
Message:

prefer standard ar to any other

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/configure

    r1692 r1706  
    910910fi
    911911
     912# Extract the first word of "ar", so it can be a program name with args.
     913set dummy ar; ac_word=$2
     914echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     915echo "configure:916: checking for $ac_word" >&5
     916if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
     917  echo $ac_n "(cached) $ac_c" 1>&6
     918else
     919  case "$AR" in
     920  /*)
     921  ac_cv_path_AR="$AR" # Let the user override the test with a path.
     922  ;;
     923  ?:/*)                 
     924  ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
     925  ;;
     926  *)
     927  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     928  ac_dummy="/usr/bin:$PATH"
     929  for ac_dir in $ac_dummy; do
     930    test -z "$ac_dir" && ac_dir=.
     931    if test -f $ac_dir/$ac_word; then
     932      ac_cv_path_AR="$ac_dir/$ac_word"
     933      break
     934    fi
     935  done
     936  IFS="$ac_save_ifs"
     937  test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
     938  ;;
     939esac
     940fi
     941AR="$ac_cv_path_AR"
     942if test -n "$AR"; then
     943  echo "$ac_t""$AR" 1>&6
     944else
     945  echo "$ac_t""no" 1>&6
     946fi
     947 
    912948
    913949if test $GCC = "yes"; then
     
    919955
    920956echo $ac_n "checking size of short""... $ac_c" 1>&6
    921 echo "configure:922: checking size of short" >&5
     957echo "configure:958: checking size of short" >&5
    922958if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    923959  echo $ac_n "(cached) $ac_c" 1>&6
     
    927963else
    928964  cat > conftest.$ac_ext <<EOF
    929 #line 930 "configure"
     965#line 966 "configure"
    930966#include "confdefs.h"
    931967#include <stdio.h>
     
    938974}
    939975EOF
    940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     976if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    941977then
    942978  ac_cv_sizeof_short=`cat conftestval`
     
    958994
    959995echo $ac_n "checking size of int""... $ac_c" 1>&6
    960 echo "configure:961: checking size of int" >&5
     996echo "configure:997: checking size of int" >&5
    961997if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    962998  echo $ac_n "(cached) $ac_c" 1>&6
     
    9661002else
    9671003  cat > conftest.$ac_ext <<EOF
    968 #line 969 "configure"
     1004#line 1005 "configure"
    9691005#include "confdefs.h"
    9701006#include <stdio.h>
     
    9771013}
    9781014EOF
    979 if { (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1015if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    9801016then
    9811017  ac_cv_sizeof_int=`cat conftestval`
     
    9971033
    9981034echo $ac_n "checking size of long""... $ac_c" 1>&6
    999 echo "configure:1000: checking size of long" >&5
     1035echo "configure:1036: checking size of long" >&5
    10001036if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    10011037  echo $ac_n "(cached) $ac_c" 1>&6
     
    10051041else
    10061042  cat > conftest.$ac_ext <<EOF
    1007 #line 1008 "configure"
     1043#line 1044 "configure"
    10081044#include "confdefs.h"
    10091045#include <stdio.h>
     
    10161052}
    10171053EOF
    1018 if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1054if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    10191055then
    10201056  ac_cv_sizeof_long=`cat conftestval`
     
    10361072
    10371073echo $ac_n "checking size of long long""... $ac_c" 1>&6
    1038 echo "configure:1039: checking size of long long" >&5
     1074echo "configure:1075: checking size of long long" >&5
    10391075if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    10401076  echo $ac_n "(cached) $ac_c" 1>&6
     
    10441080else
    10451081  cat > conftest.$ac_ext <<EOF
    1046 #line 1047 "configure"
     1082#line 1083 "configure"
    10471083#include "confdefs.h"
    10481084#include <stdio.h>
     
    10551091}
    10561092EOF
    1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1093if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    10581094then
    10591095  ac_cv_sizeof_long_long=`cat conftestval`
     
    10751111
    10761112echo $ac_n "checking size of float""... $ac_c" 1>&6
    1077 echo "configure:1078: checking size of float" >&5
     1113echo "configure:1114: checking size of float" >&5
    10781114if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
    10791115  echo $ac_n "(cached) $ac_c" 1>&6
     
    10831119else
    10841120  cat > conftest.$ac_ext <<EOF
    1085 #line 1086 "configure"
     1121#line 1122 "configure"
    10861122#include "confdefs.h"
    10871123#include <stdio.h>
     
    10941130}
    10951131EOF
    1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1132if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    10971133then
    10981134  ac_cv_sizeof_float=`cat conftestval`
     
    11141150
    11151151echo $ac_n "checking size of double""... $ac_c" 1>&6
    1116 echo "configure:1117: checking size of double" >&5
     1152echo "configure:1153: checking size of double" >&5
    11171153if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    11181154  echo $ac_n "(cached) $ac_c" 1>&6
     
    11221158else
    11231159  cat > conftest.$ac_ext <<EOF
    1124 #line 1125 "configure"
     1160#line 1161 "configure"
    11251161#include "confdefs.h"
    11261162#include <stdio.h>
     
    11331169}
    11341170EOF
    1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1171if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    11361172then
    11371173  ac_cv_sizeof_double=`cat conftestval`
     
    11531189
    11541190echo $ac_n "checking size of long double""... $ac_c" 1>&6
    1155 echo "configure:1156: checking size of long double" >&5
     1191echo "configure:1192: checking size of long double" >&5
    11561192if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
    11571193  echo $ac_n "(cached) $ac_c" 1>&6
     
    11611197else
    11621198  cat > conftest.$ac_ext <<EOF
    1163 #line 1164 "configure"
     1199#line 1200 "configure"
    11641200#include "confdefs.h"
    11651201#include <stdio.h>
     
    11721208}
    11731209EOF
    1174 if { (eval echo configure:1175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1210if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    11751211then
    11761212  ac_cv_sizeof_long_double=`cat conftestval`
     
    11941230
    11951231echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
    1196 echo "configure:1197: checking "for cfitsio lib"" >&5
     1232echo "configure:1233: checking "for cfitsio lib"" >&5
    11971233MACHDIR=`uname`-$CXX
    11981234if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
     
    12191255
    12201256echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
    1221 echo "configure:1222: checking "for cfitsio includes"" >&5
     1257echo "configure:1258: checking "for cfitsio includes"" >&5
    12221258if test -f $CFITSIODIR/fitsio.h; then
    12231259  cfitsincdir='-I$(CFITSIODIR)'
     
    12311267
    12321268echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
    1233 echo "configure:1234: checking for sin in -lm" >&5
     1269echo "configure:1270: checking for sin in -lm" >&5
    12341270ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
    12351271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    12391275LIBS="-lm  $LIBS"
    12401276cat > conftest.$ac_ext <<EOF
    1241 #line 1242 "configure"
     1277#line 1278 "configure"
    12421278#include "confdefs.h"
    12431279/* Override any gcc2 internal prototype to avoid an error.  */
     
    12501286; return 0; }
    12511287EOF
    1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1288if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    12531289  rm -rf conftest*
    12541290  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12791315
    12801316echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1281 echo "configure:1282: checking how to run the C preprocessor" >&5
     1317echo "configure:1318: checking how to run the C preprocessor" >&5
    12821318# On Suns, sometimes $CPP names a directory.
    12831319if test -n "$CPP" && test -d "$CPP"; then
     
    12941330  # not just through cpp.
    12951331  cat > conftest.$ac_ext <<EOF
    1296 #line 1297 "configure"
     1332#line 1333 "configure"
    12971333#include "confdefs.h"
    12981334#include <assert.h>
     
    13001336EOF
    13011337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1302 { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1338{ (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13031339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13041340if test -z "$ac_err"; then
     
    13111347  CPP="${CC-cc} -E -traditional-cpp"
    13121348  cat > conftest.$ac_ext <<EOF
    1313 #line 1314 "configure"
     1349#line 1350 "configure"
    13141350#include "confdefs.h"
    13151351#include <assert.h>
     
    13171353EOF
    13181354ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1319 { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1355{ (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13201356ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13211357if test -z "$ac_err"; then
     
    13281364  CPP="${CC-cc} -nologo -E"
    13291365  cat > conftest.$ac_ext <<EOF
    1330 #line 1331 "configure"
     1366#line 1367 "configure"
    13311367#include "confdefs.h"
    13321368#include <assert.h>
     
    13341370EOF
    13351371ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1336 { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1372{ (eval echo configure:1373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13371373ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13381374if test -z "$ac_err"; then
     
    13591395
    13601396echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1361 echo "configure:1362: checking for ANSI C header files" >&5
     1397echo "configure:1398: checking for ANSI C header files" >&5
    13621398if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    13631399  echo $ac_n "(cached) $ac_c" 1>&6
    13641400else
    13651401  cat > conftest.$ac_ext <<EOF
    1366 #line 1367 "configure"
     1402#line 1403 "configure"
    13671403#include "confdefs.h"
    13681404#include <stdlib.h>
     
    13721408EOF
    13731409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1374 { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1410{ (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13751411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13761412if test -z "$ac_err"; then
     
    13891425  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    13901426cat > conftest.$ac_ext <<EOF
    1391 #line 1392 "configure"
     1427#line 1428 "configure"
    13921428#include "confdefs.h"
    13931429#include <string.h>
     
    14071443  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    14081444cat > conftest.$ac_ext <<EOF
    1409 #line 1410 "configure"
     1445#line 1446 "configure"
    14101446#include "confdefs.h"
    14111447#include <stdlib.h>
     
    14281464else
    14291465  cat > conftest.$ac_ext <<EOF
    1430 #line 1431 "configure"
     1466#line 1467 "configure"
    14311467#include "confdefs.h"
    14321468#include <ctype.h>
     
    14391475
    14401476EOF
    1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1477if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    14421478then
    14431479  :
     
    14661502ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    14671503echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1468 echo "configure:1469: checking for $ac_hdr" >&5
     1504echo "configure:1505: checking for $ac_hdr" >&5
    14691505if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    14701506  echo $ac_n "(cached) $ac_c" 1>&6
    14711507else
    14721508  cat > conftest.$ac_ext <<EOF
    1473 #line 1474 "configure"
     1509#line 1510 "configure"
    14741510#include "confdefs.h"
    14751511#include <$ac_hdr>
    14761512EOF
    14771513ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1478 { (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1514{ (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14791515ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14801516if test -z "$ac_err"; then
     
    16431679s%@CC@%$CC%g
    16441680s%@CXX@%$CXX%g
     1681s%@AR@%$AR%g
    16451682s%@gcc@%$gcc%g
    16461683s%@cfitslibdir@%$cfitslibdir%g
Note: See TracChangeset for help on using the changeset viewer.