~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/configure

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-04-04 16:14:45 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404161445-n2hw85vfw8mzcbx0
Tags: 4.7.1~beta2-0ubuntu1
* New upstream release, picked from NSPR_4_7_1_BETA2 cvs tag
* bump shlibs requirements
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
ac_help="$ac_help
41
41
  --enable-mdupdate       Enable use of certain compilers' mdupdate feature"
42
42
ac_help="$ac_help
 
43
  --enable-cplus          Enable some c++ api routines"
 
44
ac_help="$ac_help
43
45
  --with-macos-sdk=dir    Location of platform SDK to use (Mac OS X only)"
44
46
ac_help="$ac_help
45
47
  --enable-macos-target=VER
62
64
  --with-native-threads   Use native system threads as thread subsystem
63
65
                          (Solaris only)"
64
66
ac_help="$ac_help
65
 
  --enable-cplus          Enable some c++ api routines"
66
 
ac_help="$ac_help
67
67
  --enable-ipv6           Compile ipv6 support"
68
68
ac_help="$ac_help
69
69
  --enable-boehm          Enable the Boehm Garbage Collector"
931
931
fi
932
932
 
933
933
 
 
934
# Check whether --enable-cplus or --disable-cplus was given.
 
935
if test "${enable_cplus+set}" = set; then
 
936
  enableval="$enable_cplus"
 
937
   if test "$enableval" = "yes"; then
 
938
            USE_CPLUS=1
 
939
      fi
 
940
fi
 
941
 
 
942
 
934
943
# Check whether --with-macos-sdk or --without-macos-sdk was given.
935
944
if test "${with_macos_sdk+set}" = set; then
936
945
  withval="$with_macos_sdk"
1042
1051
    # Extract the first word of "$WHOAMI whoami", so it can be a program name with args.
1043
1052
set dummy $WHOAMI whoami; ac_word=$2
1044
1053
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1045
 
echo "configure:1046: checking for $ac_word" >&5
 
1054
echo "configure:1055: checking for $ac_word" >&5
1046
1055
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1047
1056
  echo $ac_n "(cached) $ac_c" 1>&6
1048
1057
else
1113
1122
    _SAVE_LDFLAGS="$LDFLAGS"
1114
1123
 
1115
1124
    echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
1116
 
echo "configure:1117: checking for $host compiler" >&5
 
1125
echo "configure:1126: checking for $host compiler" >&5
1117
1126
    for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1118
1127
do
1119
1128
# Extract the first word of "$ac_prog", so it can be a program name with args.
1120
1129
set dummy $ac_prog; ac_word=$2
1121
1130
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122
 
echo "configure:1123: checking for $ac_word" >&5
 
1131
echo "configure:1132: checking for $ac_word" >&5
1123
1132
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1124
1133
  echo $ac_n "(cached) $ac_c" 1>&6
1125
1134
else
1165
1174
    LDFLAGS="$HOST_LDFLAGS"
1166
1175
 
1167
1176
    echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1168
 
echo "configure:1169: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
 
1177
echo "configure:1178: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1169
1178
    cat > conftest.$ac_ext <<EOF
1170
 
#line 1171 "configure"
 
1179
#line 1180 "configure"
1171
1180
#include "confdefs.h"
1172
1181
 
1173
1182
int main() {
1174
1183
return(0);
1175
1184
; return 0; }
1176
1185
EOF
1177
 
if { (eval echo configure:1178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1186
if { (eval echo configure:1187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1178
1187
  rm -rf conftest*
1179
1188
  ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
1180
1189
else
1203
1212
# Extract the first word of "$ac_prog", so it can be a program name with args.
1204
1213
set dummy $ac_prog; ac_word=$2
1205
1214
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206
 
echo "configure:1207: checking for $ac_word" >&5
 
1215
echo "configure:1216: checking for $ac_word" >&5
1207
1216
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208
1217
  echo $ac_n "(cached) $ac_c" 1>&6
1209
1218
else
1237
1246
    # Extract the first word of "gcc", so it can be a program name with args.
1238
1247
set dummy gcc; ac_word=$2
1239
1248
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240
 
echo "configure:1241: checking for $ac_word" >&5
 
1249
echo "configure:1250: checking for $ac_word" >&5
1241
1250
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1242
1251
  echo $ac_n "(cached) $ac_c" 1>&6
1243
1252
else
1267
1276
  # Extract the first word of "cc", so it can be a program name with args.
1268
1277
set dummy cc; ac_word=$2
1269
1278
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270
 
echo "configure:1271: checking for $ac_word" >&5
 
1279
echo "configure:1280: checking for $ac_word" >&5
1271
1280
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1272
1281
  echo $ac_n "(cached) $ac_c" 1>&6
1273
1282
else
1318
1327
      # Extract the first word of "cl", so it can be a program name with args.
1319
1328
set dummy cl; ac_word=$2
1320
1329
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321
 
echo "configure:1322: checking for $ac_word" >&5
 
1330
echo "configure:1331: checking for $ac_word" >&5
1322
1331
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1323
1332
  echo $ac_n "(cached) $ac_c" 1>&6
1324
1333
else
1350
1359
fi
1351
1360
 
1352
1361
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1353
 
echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1362
echo "configure:1363: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1354
1363
 
1355
1364
ac_ext=c
1356
1365
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1361
1370
 
1362
1371
cat > conftest.$ac_ext << EOF
1363
1372
 
1364
 
#line 1365 "configure"
 
1373
#line 1374 "configure"
1365
1374
#include "confdefs.h"
1366
1375
 
1367
1376
main(){return(0);}
1368
1377
EOF
1369
 
if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1378
if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370
1379
  ac_cv_prog_cc_works=yes
1371
1380
  # If we can't run a trivial program, we are probably using a cross compiler.
1372
1381
  if (./conftest; exit) 2>/dev/null; then
1392
1401
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1393
1402
fi
1394
1403
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1395
 
echo "configure:1396: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1404
echo "configure:1405: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1396
1405
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1397
1406
cross_compiling=$ac_cv_prog_cc_cross
1398
1407
 
1399
1408
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1400
 
echo "configure:1401: checking whether we are using GNU C" >&5
 
1409
echo "configure:1410: checking whether we are using GNU C" >&5
1401
1410
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1402
1411
  echo $ac_n "(cached) $ac_c" 1>&6
1403
1412
else
1406
1415
  yes;
1407
1416
#endif
1408
1417
EOF
1409
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1418
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1410
1419
  ac_cv_prog_gcc=yes
1411
1420
else
1412
1421
  ac_cv_prog_gcc=no
1425
1434
ac_save_CFLAGS="$CFLAGS"
1426
1435
CFLAGS=
1427
1436
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1428
 
echo "configure:1429: checking whether ${CC-cc} accepts -g" >&5
 
1437
echo "configure:1438: checking whether ${CC-cc} accepts -g" >&5
1429
1438
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1430
1439
  echo $ac_n "(cached) $ac_c" 1>&6
1431
1440
else
1456
1465
  fi
1457
1466
fi
1458
1467
 
1459
 
    for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
 
1468
    if test -n "$USE_CPLUS"; then
 
1469
        for ac_prog in $CXX "${target_alias}-g++" "${target}-g++"
1460
1470
do
1461
1471
# Extract the first word of "$ac_prog", so it can be a program name with args.
1462
1472
set dummy $ac_prog; ac_word=$2
1463
1473
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1464
 
echo "configure:1465: checking for $ac_word" >&5
 
1474
echo "configure:1475: checking for $ac_word" >&5
1465
1475
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1466
1476
  echo $ac_n "(cached) $ac_c" 1>&6
1467
1477
else
1491
1501
done
1492
1502
test -n "$CXX" || CXX="echo"
1493
1503
 
1494
 
    unset ac_cv_prog_CXX
1495
 
    for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
1504
        unset ac_cv_prog_CXX
 
1505
        for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1496
1506
do
1497
1507
# Extract the first word of "$ac_prog", so it can be a program name with args.
1498
1508
set dummy $ac_prog; ac_word=$2
1499
1509
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500
 
echo "configure:1501: checking for $ac_word" >&5
 
1510
echo "configure:1511: checking for $ac_word" >&5
1501
1511
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1502
1512
  echo $ac_n "(cached) $ac_c" 1>&6
1503
1513
else
1529
1539
 
1530
1540
 
1531
1541
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1532
 
echo "configure:1533: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
1542
echo "configure:1543: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1533
1543
 
1534
1544
ac_ext=C
1535
1545
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1540
1550
 
1541
1551
cat > conftest.$ac_ext << EOF
1542
1552
 
1543
 
#line 1544 "configure"
 
1553
#line 1554 "configure"
1544
1554
#include "confdefs.h"
1545
1555
 
1546
1556
int main(){return(0);}
1547
1557
EOF
1548
 
if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1558
if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1549
1559
  ac_cv_prog_cxx_works=yes
1550
1560
  # If we can't run a trivial program, we are probably using a cross compiler.
1551
1561
  if (./conftest; exit) 2>/dev/null; then
1571
1581
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1572
1582
fi
1573
1583
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1574
 
echo "configure:1575: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1584
echo "configure:1585: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1575
1585
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1576
1586
cross_compiling=$ac_cv_prog_cxx_cross
1577
1587
 
1578
1588
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1579
 
echo "configure:1580: checking whether we are using GNU C++" >&5
 
1589
echo "configure:1590: checking whether we are using GNU C++" >&5
1580
1590
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1581
1591
  echo $ac_n "(cached) $ac_c" 1>&6
1582
1592
else
1585
1595
  yes;
1586
1596
#endif
1587
1597
EOF
1588
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1598
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1589
1599
  ac_cv_prog_gxx=yes
1590
1600
else
1591
1601
  ac_cv_prog_gxx=no
1604
1614
ac_save_CXXFLAGS="$CXXFLAGS"
1605
1615
CXXFLAGS=
1606
1616
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1607
 
echo "configure:1608: checking whether ${CXX-g++} accepts -g" >&5
 
1617
echo "configure:1618: checking whether ${CXX-g++} accepts -g" >&5
1608
1618
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1609
1619
  echo $ac_n "(cached) $ac_c" 1>&6
1610
1620
else
1635
1645
  fi
1636
1646
fi
1637
1647
 
 
1648
    fi
1638
1649
 
1639
1650
    case "$build:$target" in
1640
1651
      powerpc-apple-darwin8*:i?86-apple-darwin*)
1648
1659
# Extract the first word of "$ac_prog", so it can be a program name with args.
1649
1660
set dummy $ac_prog; ac_word=$2
1650
1661
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651
 
echo "configure:1652: checking for $ac_word" >&5
 
1662
echo "configure:1663: checking for $ac_word" >&5
1652
1663
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1653
1664
  echo $ac_n "(cached) $ac_c" 1>&6
1654
1665
else
1683
1694
# Extract the first word of "$ac_prog", so it can be a program name with args.
1684
1695
set dummy $ac_prog; ac_word=$2
1685
1696
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686
 
echo "configure:1687: checking for $ac_word" >&5
 
1697
echo "configure:1698: checking for $ac_word" >&5
1687
1698
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1688
1699
  echo $ac_n "(cached) $ac_c" 1>&6
1689
1700
else
1718
1729
# Extract the first word of "$ac_prog", so it can be a program name with args.
1719
1730
set dummy $ac_prog; ac_word=$2
1720
1731
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1721
 
echo "configure:1722: checking for $ac_word" >&5
 
1732
echo "configure:1733: checking for $ac_word" >&5
1722
1733
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1723
1734
  echo $ac_n "(cached) $ac_c" 1>&6
1724
1735
else
1753
1764
# Extract the first word of "$ac_prog", so it can be a program name with args.
1754
1765
set dummy $ac_prog; ac_word=$2
1755
1766
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756
 
echo "configure:1757: checking for $ac_word" >&5
 
1767
echo "configure:1768: checking for $ac_word" >&5
1757
1768
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1758
1769
  echo $ac_n "(cached) $ac_c" 1>&6
1759
1770
else
1788
1799
# Extract the first word of "$ac_prog", so it can be a program name with args.
1789
1800
set dummy $ac_prog; ac_word=$2
1790
1801
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791
 
echo "configure:1792: checking for $ac_word" >&5
 
1802
echo "configure:1803: checking for $ac_word" >&5
1792
1803
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1793
1804
  echo $ac_n "(cached) $ac_c" 1>&6
1794
1805
else
1823
1834
# Extract the first word of "$ac_prog", so it can be a program name with args.
1824
1835
set dummy $ac_prog; ac_word=$2
1825
1836
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826
 
echo "configure:1827: checking for $ac_word" >&5
 
1837
echo "configure:1838: checking for $ac_word" >&5
1827
1838
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1828
1839
  echo $ac_n "(cached) $ac_c" 1>&6
1829
1840
else
1855
1866
 
1856
1867
 
1857
1868
else
1858
 
    for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1859
 
do
1860
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1861
 
set dummy $ac_prog; ac_word=$2
1862
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863
 
echo "configure:1864: checking for $ac_word" >&5
1864
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1865
 
  echo $ac_n "(cached) $ac_c" 1>&6
1866
 
else
1867
 
  if test -n "$CXX"; then
1868
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1869
 
else
1870
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1871
 
  ac_dummy="$PATH"
1872
 
  for ac_dir in $ac_dummy; do
1873
 
    test -z "$ac_dir" && ac_dir=.
1874
 
    if test -f $ac_dir/$ac_word; then
1875
 
      ac_cv_prog_CXX="$ac_prog"
1876
 
      break
1877
 
    fi
1878
 
  done
1879
 
  IFS="$ac_save_ifs"
1880
 
fi
1881
 
fi
1882
 
CXX="$ac_cv_prog_CXX"
1883
 
if test -n "$CXX"; then
1884
 
  echo "$ac_t""$CXX" 1>&6
1885
 
else
1886
 
  echo "$ac_t""no" 1>&6
1887
 
fi
1888
 
 
1889
 
test -n "$CXX" && break
1890
 
done
1891
 
test -n "$CXX" || CXX="gcc"
1892
 
 
1893
 
 
1894
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1895
 
echo "configure:1896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1896
 
 
1897
 
ac_ext=C
1898
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1899
 
ac_cpp='$CXXCPP $CPPFLAGS'
1900
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1901
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1902
 
cross_compiling=$ac_cv_prog_cxx_cross
1903
 
 
1904
 
cat > conftest.$ac_ext << EOF
1905
 
 
1906
 
#line 1907 "configure"
1907
 
#include "confdefs.h"
1908
 
 
1909
 
int main(){return(0);}
1910
 
EOF
1911
 
if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912
 
  ac_cv_prog_cxx_works=yes
1913
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1914
 
  if (./conftest; exit) 2>/dev/null; then
1915
 
    ac_cv_prog_cxx_cross=no
1916
 
  else
1917
 
    ac_cv_prog_cxx_cross=yes
1918
 
  fi
1919
 
else
1920
 
  echo "configure: failed program was:" >&5
1921
 
  cat conftest.$ac_ext >&5
1922
 
  ac_cv_prog_cxx_works=no
1923
 
fi
1924
 
rm -fr conftest*
1925
 
ac_ext=c
1926
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1927
 
ac_cpp='$CPP $CPPFLAGS'
1928
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1929
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1930
 
cross_compiling=$ac_cv_prog_cc_cross
1931
 
 
1932
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1933
 
if test $ac_cv_prog_cxx_works = no; then
1934
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1935
 
fi
1936
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1937
 
echo "configure:1938: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1938
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1939
 
cross_compiling=$ac_cv_prog_cxx_cross
1940
 
 
1941
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1942
 
echo "configure:1943: checking whether we are using GNU C++" >&5
1943
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1944
 
  echo $ac_n "(cached) $ac_c" 1>&6
1945
 
else
1946
 
  cat > conftest.C <<EOF
1947
 
#ifdef __GNUC__
1948
 
  yes;
1949
 
#endif
1950
 
EOF
1951
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1952
 
  ac_cv_prog_gxx=yes
1953
 
else
1954
 
  ac_cv_prog_gxx=no
1955
 
fi
1956
 
fi
1957
 
 
1958
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1959
 
 
1960
 
if test $ac_cv_prog_gxx = yes; then
1961
 
  GXX=yes
1962
 
else
1963
 
  GXX=
1964
 
fi
1965
 
 
1966
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1967
 
ac_save_CXXFLAGS="$CXXFLAGS"
1968
 
CXXFLAGS=
1969
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1970
 
echo "configure:1971: checking whether ${CXX-g++} accepts -g" >&5
1971
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1972
 
  echo $ac_n "(cached) $ac_c" 1>&6
1973
 
else
1974
 
  echo 'void f(){}' > conftest.cc
1975
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1976
 
  ac_cv_prog_cxx_g=yes
1977
 
else
1978
 
  ac_cv_prog_cxx_g=no
1979
 
fi
1980
 
rm -f conftest*
1981
 
 
1982
 
fi
1983
 
 
1984
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1985
 
if test "$ac_test_CXXFLAGS" = set; then
1986
 
  CXXFLAGS="$ac_save_CXXFLAGS"
1987
 
elif test $ac_cv_prog_cxx_g = yes; then
1988
 
  if test "$GXX" = yes; then
1989
 
    CXXFLAGS="-g -O2"
1990
 
  else
1991
 
    CXXFLAGS="-g"
1992
 
  fi
1993
 
else
1994
 
  if test "$GXX" = yes; then
1995
 
    CXXFLAGS="-O2"
1996
 
  else
1997
 
    CXXFLAGS=
1998
 
  fi
1999
 
fi
2000
 
 
2001
 
    if test "$CXX" = "cl" -a -z "$CC"; then
2002
 
        CC=$CXX
2003
 
    else        
2004
 
        # Extract the first word of "gcc", so it can be a program name with args.
 
1869
    # Extract the first word of "gcc", so it can be a program name with args.
2005
1870
set dummy gcc; ac_word=$2
2006
1871
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2007
 
echo "configure:2008: checking for $ac_word" >&5
 
1872
echo "configure:1873: checking for $ac_word" >&5
2008
1873
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2009
1874
  echo $ac_n "(cached) $ac_c" 1>&6
2010
1875
else
2034
1899
  # Extract the first word of "cc", so it can be a program name with args.
2035
1900
set dummy cc; ac_word=$2
2036
1901
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2037
 
echo "configure:2038: checking for $ac_word" >&5
 
1902
echo "configure:1903: checking for $ac_word" >&5
2038
1903
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2039
1904
  echo $ac_n "(cached) $ac_c" 1>&6
2040
1905
else
2085
1950
      # Extract the first word of "cl", so it can be a program name with args.
2086
1951
set dummy cl; ac_word=$2
2087
1952
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088
 
echo "configure:2089: checking for $ac_word" >&5
 
1953
echo "configure:1954: checking for $ac_word" >&5
2089
1954
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2090
1955
  echo $ac_n "(cached) $ac_c" 1>&6
2091
1956
else
2117
1982
fi
2118
1983
 
2119
1984
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2120
 
echo "configure:2121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1985
echo "configure:1986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2121
1986
 
2122
1987
ac_ext=c
2123
1988
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2128
1993
 
2129
1994
cat > conftest.$ac_ext << EOF
2130
1995
 
2131
 
#line 2132 "configure"
 
1996
#line 1997 "configure"
2132
1997
#include "confdefs.h"
2133
1998
 
2134
1999
main(){return(0);}
2135
2000
EOF
2136
 
if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2001
if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2137
2002
  ac_cv_prog_cc_works=yes
2138
2003
  # If we can't run a trivial program, we are probably using a cross compiler.
2139
2004
  if (./conftest; exit) 2>/dev/null; then
2159
2024
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2160
2025
fi
2161
2026
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2162
 
echo "configure:2163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
2027
echo "configure:2028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2163
2028
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2164
2029
cross_compiling=$ac_cv_prog_cc_cross
2165
2030
 
2166
2031
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2167
 
echo "configure:2168: checking whether we are using GNU C" >&5
 
2032
echo "configure:2033: checking whether we are using GNU C" >&5
2168
2033
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2169
2034
  echo $ac_n "(cached) $ac_c" 1>&6
2170
2035
else
2173
2038
  yes;
2174
2039
#endif
2175
2040
EOF
2176
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
2041
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2177
2042
  ac_cv_prog_gcc=yes
2178
2043
else
2179
2044
  ac_cv_prog_gcc=no
2192
2057
ac_save_CFLAGS="$CFLAGS"
2193
2058
CFLAGS=
2194
2059
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2195
 
echo "configure:2196: checking whether ${CC-cc} accepts -g" >&5
 
2060
echo "configure:2061: checking whether ${CC-cc} accepts -g" >&5
2196
2061
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2197
2062
  echo $ac_n "(cached) $ac_c" 1>&6
2198
2063
else
2223
2088
  fi
2224
2089
fi
2225
2090
 
 
2091
    if test -n "$USE_CPLUS"; then
 
2092
        if test "$CC" = "cl" -a -z "$CXX"; then
 
2093
            CXX=$CC
 
2094
        else        
 
2095
            for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
2096
do
 
2097
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
2098
set dummy $ac_prog; ac_word=$2
 
2099
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2100
echo "configure:2101: checking for $ac_word" >&5
 
2101
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
2102
  echo $ac_n "(cached) $ac_c" 1>&6
 
2103
else
 
2104
  if test -n "$CXX"; then
 
2105
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2106
else
 
2107
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2108
  ac_dummy="$PATH"
 
2109
  for ac_dir in $ac_dummy; do
 
2110
    test -z "$ac_dir" && ac_dir=.
 
2111
    if test -f $ac_dir/$ac_word; then
 
2112
      ac_cv_prog_CXX="$ac_prog"
 
2113
      break
 
2114
    fi
 
2115
  done
 
2116
  IFS="$ac_save_ifs"
 
2117
fi
 
2118
fi
 
2119
CXX="$ac_cv_prog_CXX"
 
2120
if test -n "$CXX"; then
 
2121
  echo "$ac_t""$CXX" 1>&6
 
2122
else
 
2123
  echo "$ac_t""no" 1>&6
 
2124
fi
 
2125
 
 
2126
test -n "$CXX" && break
 
2127
done
 
2128
test -n "$CXX" || CXX="gcc"
 
2129
 
 
2130
 
 
2131
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
2132
echo "configure:2133: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
2133
 
 
2134
ac_ext=C
 
2135
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2136
ac_cpp='$CXXCPP $CPPFLAGS'
 
2137
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2138
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2139
cross_compiling=$ac_cv_prog_cxx_cross
 
2140
 
 
2141
cat > conftest.$ac_ext << EOF
 
2142
 
 
2143
#line 2144 "configure"
 
2144
#include "confdefs.h"
 
2145
 
 
2146
int main(){return(0);}
 
2147
EOF
 
2148
if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2149
  ac_cv_prog_cxx_works=yes
 
2150
  # If we can't run a trivial program, we are probably using a cross compiler.
 
2151
  if (./conftest; exit) 2>/dev/null; then
 
2152
    ac_cv_prog_cxx_cross=no
 
2153
  else
 
2154
    ac_cv_prog_cxx_cross=yes
 
2155
  fi
 
2156
else
 
2157
  echo "configure: failed program was:" >&5
 
2158
  cat conftest.$ac_ext >&5
 
2159
  ac_cv_prog_cxx_works=no
 
2160
fi
 
2161
rm -fr conftest*
 
2162
ac_ext=c
 
2163
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2164
ac_cpp='$CPP $CPPFLAGS'
 
2165
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2166
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2167
cross_compiling=$ac_cv_prog_cc_cross
 
2168
 
 
2169
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
 
2170
if test $ac_cv_prog_cxx_works = no; then
 
2171
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 
2172
fi
 
2173
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
2174
echo "configure:2175: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
2175
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 
2176
cross_compiling=$ac_cv_prog_cxx_cross
 
2177
 
 
2178
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
 
2179
echo "configure:2180: checking whether we are using GNU C++" >&5
 
2180
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
 
2181
  echo $ac_n "(cached) $ac_c" 1>&6
 
2182
else
 
2183
  cat > conftest.C <<EOF
 
2184
#ifdef __GNUC__
 
2185
  yes;
 
2186
#endif
 
2187
EOF
 
2188
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
2189
  ac_cv_prog_gxx=yes
 
2190
else
 
2191
  ac_cv_prog_gxx=no
 
2192
fi
 
2193
fi
 
2194
 
 
2195
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
 
2196
 
 
2197
if test $ac_cv_prog_gxx = yes; then
 
2198
  GXX=yes
 
2199
else
 
2200
  GXX=
 
2201
fi
 
2202
 
 
2203
ac_test_CXXFLAGS="${CXXFLAGS+set}"
 
2204
ac_save_CXXFLAGS="$CXXFLAGS"
 
2205
CXXFLAGS=
 
2206
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
 
2207
echo "configure:2208: checking whether ${CXX-g++} accepts -g" >&5
 
2208
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
 
2209
  echo $ac_n "(cached) $ac_c" 1>&6
 
2210
else
 
2211
  echo 'void f(){}' > conftest.cc
 
2212
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
2213
  ac_cv_prog_cxx_g=yes
 
2214
else
 
2215
  ac_cv_prog_cxx_g=no
 
2216
fi
 
2217
rm -f conftest*
 
2218
 
 
2219
fi
 
2220
 
 
2221
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
2222
if test "$ac_test_CXXFLAGS" = set; then
 
2223
  CXXFLAGS="$ac_save_CXXFLAGS"
 
2224
elif test $ac_cv_prog_cxx_g = yes; then
 
2225
  if test "$GXX" = yes; then
 
2226
    CXXFLAGS="-g -O2"
 
2227
  else
 
2228
    CXXFLAGS="-g"
 
2229
  fi
 
2230
else
 
2231
  if test "$GXX" = yes; then
 
2232
    CXXFLAGS="-O2"
 
2233
  else
 
2234
    CXXFLAGS=
 
2235
  fi
 
2236
fi
 
2237
 
 
2238
        fi
2226
2239
    fi
2227
2240
    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2228
 
echo "configure:2229: checking how to run the C preprocessor" >&5
 
2241
echo "configure:2242: checking how to run the C preprocessor" >&5
2229
2242
# On Suns, sometimes $CPP names a directory.
2230
2243
if test -n "$CPP" && test -d "$CPP"; then
2231
2244
  CPP=
2240
2253
  # On the NeXT, cc -E runs the code through the compiler's parser,
2241
2254
  # not just through cpp.
2242
2255
  cat > conftest.$ac_ext <<EOF
2243
 
#line 2244 "configure"
 
2256
#line 2257 "configure"
2244
2257
#include "confdefs.h"
2245
2258
#include <assert.h>
2246
2259
Syntax Error
2247
2260
EOF
2248
2261
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249
 
{ (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2262
{ (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250
2263
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251
2264
if test -z "$ac_err"; then
2252
2265
  :
2257
2270
  rm -rf conftest*
2258
2271
  CPP="${CC-cc} -E -traditional-cpp"
2259
2272
  cat > conftest.$ac_ext <<EOF
2260
 
#line 2261 "configure"
 
2273
#line 2274 "configure"
2261
2274
#include "confdefs.h"
2262
2275
#include <assert.h>
2263
2276
Syntax Error
2264
2277
EOF
2265
2278
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266
 
{ (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2279
{ (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267
2280
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268
2281
if test -z "$ac_err"; then
2269
2282
  :
2274
2287
  rm -rf conftest*
2275
2288
  CPP="${CC-cc} -nologo -E"
2276
2289
  cat > conftest.$ac_ext <<EOF
2277
 
#line 2278 "configure"
 
2290
#line 2291 "configure"
2278
2291
#include "confdefs.h"
2279
2292
#include <assert.h>
2280
2293
Syntax Error
2281
2294
EOF
2282
2295
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283
 
{ (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2296
{ (eval echo configure:2297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284
2297
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285
2298
if test -z "$ac_err"; then
2286
2299
  :
2307
2320
    # Extract the first word of "ranlib", so it can be a program name with args.
2308
2321
set dummy ranlib; ac_word=$2
2309
2322
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310
 
echo "configure:2311: checking for $ac_word" >&5
 
2323
echo "configure:2324: checking for $ac_word" >&5
2311
2324
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2312
2325
  echo $ac_n "(cached) $ac_c" 1>&6
2313
2326
else
2339
2352
# Extract the first word of "$ac_prog", so it can be a program name with args.
2340
2353
set dummy $ac_prog; ac_word=$2
2341
2354
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2342
 
echo "configure:2343: checking for $ac_word" >&5
 
2355
echo "configure:2356: checking for $ac_word" >&5
2343
2356
if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2344
2357
  echo $ac_n "(cached) $ac_c" 1>&6
2345
2358
else
2380
2393
# Extract the first word of "$ac_prog", so it can be a program name with args.
2381
2394
set dummy $ac_prog; ac_word=$2
2382
2395
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2383
 
echo "configure:2384: checking for $ac_word" >&5
 
2396
echo "configure:2397: checking for $ac_word" >&5
2384
2397
if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2385
2398
  echo $ac_n "(cached) $ac_c" 1>&6
2386
2399
else
2421
2434
# Extract the first word of "$ac_prog", so it can be a program name with args.
2422
2435
set dummy $ac_prog; ac_word=$2
2423
2436
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2424
 
echo "configure:2425: checking for $ac_word" >&5
 
2437
echo "configure:2438: checking for $ac_word" >&5
2425
2438
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2426
2439
  echo $ac_n "(cached) $ac_c" 1>&6
2427
2440
else
2462
2475
# Extract the first word of "$ac_prog", so it can be a program name with args.
2463
2476
set dummy $ac_prog; ac_word=$2
2464
2477
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2465
 
echo "configure:2466: checking for $ac_word" >&5
 
2478
echo "configure:2479: checking for $ac_word" >&5
2466
2479
if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then
2467
2480
  echo $ac_n "(cached) $ac_c" 1>&6
2468
2481
else
2503
2516
# Extract the first word of "$ac_prog", so it can be a program name with args.
2504
2517
set dummy $ac_prog; ac_word=$2
2505
2518
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2506
 
echo "configure:2507: checking for $ac_word" >&5
 
2519
echo "configure:2520: checking for $ac_word" >&5
2507
2520
if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then
2508
2521
  echo $ac_n "(cached) $ac_c" 1>&6
2509
2522
else
2571
2584
fi
2572
2585
 
2573
2586
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
2574
 
echo "configure:2575: checking for gcc -pipe support" >&5
 
2587
echo "configure:2588: checking for gcc -pipe support" >&5
2575
2588
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
2576
2589
    echo '#include <stdio.h>' > dummy-hello.c
2577
2590
    echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c
2586
2599
        _SAVE_CFLAGS=$CFLAGS
2587
2600
        CFLAGS="$CFLAGS -pipe"
2588
2601
        cat > conftest.$ac_ext <<EOF
2589
 
#line 2590 "configure"
 
2602
#line 2603 "configure"
2590
2603
#include "confdefs.h"
2591
2604
 #include <stdio.h> 
2592
2605
int main() {
2593
2606
printf("Hello World\n");
2594
2607
; return 0; }
2595
2608
EOF
2596
 
if { (eval echo configure:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2609
if { (eval echo configure:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597
2610
  rm -rf conftest*
2598
2611
  _res_gcc_pipe="yes"
2599
2612
else
2620
2633
 
2621
2634
if test "$GNU_CC"; then
2622
2635
    echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
2623
 
echo "configure:2624: checking for visibility(hidden) attribute" >&5
 
2636
echo "configure:2637: checking for visibility(hidden) attribute" >&5
2624
2637
if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
2625
2638
  echo $ac_n "(cached) $ac_c" 1>&6
2626
2639
else
2644
2657
EOF
2645
2658
 
2646
2659
        echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
2647
 
echo "configure:2648: checking for visibility pragma support" >&5
 
2660
echo "configure:2661: checking for visibility pragma support" >&5
2648
2661
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
2649
2662
  echo $ac_n "(cached) $ac_c" 1>&6
2650
2663
else
2697
2710
# Extract the first word of "$ac_prog", so it can be a program name with args.
2698
2711
set dummy $ac_prog; ac_word=$2
2699
2712
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700
 
echo "configure:2701: checking for $ac_word" >&5
 
2713
echo "configure:2714: checking for $ac_word" >&5
2701
2714
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2702
2715
  echo $ac_n "(cached) $ac_c" 1>&6
2703
2716
else
2954
2967
    DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
2955
2968
    ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
2956
2969
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
2957
 
echo "configure:2958: checking for sys/atomic_op.h" >&5
 
2970
echo "configure:2971: checking for sys/atomic_op.h" >&5
2958
2971
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2959
2972
  echo $ac_n "(cached) $ac_c" 1>&6
2960
2973
else
2961
2974
  cat > conftest.$ac_ext <<EOF
2962
 
#line 2963 "configure"
 
2975
#line 2976 "configure"
2963
2976
#include "confdefs.h"
2964
2977
#include <sys/atomic_op.h>
2965
2978
EOF
2966
2979
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967
 
{ (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2980
{ (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968
2981
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2969
2982
if test -z "$ac_err"; then
2970
2983
  rm -rf conftest*
3121
3134
        _DEBUG_FLAGS='-gdwarf-2 -O0'
3122
3135
        MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
3123
3136
        echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6
3124
 
echo "configure:3125: checking for gethostbyaddr in -lbind" >&5
 
3137
echo "configure:3138: checking for gethostbyaddr in -lbind" >&5
3125
3138
ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'`
3126
3139
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3127
3140
  echo $ac_n "(cached) $ac_c" 1>&6
3129
3142
  ac_save_LIBS="$LIBS"
3130
3143
LIBS="-lbind  $LIBS"
3131
3144
cat > conftest.$ac_ext <<EOF
3132
 
#line 3133 "configure"
 
3145
#line 3146 "configure"
3133
3146
#include "confdefs.h"
3134
3147
/* Override any gcc2 internal prototype to avoid an error.  */
3135
3148
/* We use char because int might match the return type of a gcc2
3140
3153
gethostbyaddr()
3141
3154
; return 0; }
3142
3155
EOF
3143
 
if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3156
if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3144
3157
  rm -rf conftest*
3145
3158
  eval "ac_cv_lib_$ac_lib_var=yes"
3146
3159
else
4475
4488
        _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4476
4489
        ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
4477
4490
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
4478
 
echo "configure:4479: checking for machine/builtins.h" >&5
 
4491
echo "configure:4492: checking for machine/builtins.h" >&5
4479
4492
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4480
4493
  echo $ac_n "(cached) $ac_c" 1>&6
4481
4494
else
4482
4495
  cat > conftest.$ac_ext <<EOF
4483
 
#line 4484 "configure"
 
4496
#line 4497 "configure"
4484
4497
#include "confdefs.h"
4485
4498
#include <machine/builtins.h>
4486
4499
EOF
4487
4500
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4488
 
{ (eval echo configure:4489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4501
{ (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4489
4502
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4490
4503
if test -z "$ac_err"; then
4491
4504
  rm -rf conftest*
5055
5068
    ;;
5056
5069
*)
5057
5070
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5058
 
echo "configure:5059: checking for dlopen in -ldl" >&5
 
5071
echo "configure:5072: checking for dlopen in -ldl" >&5
5059
5072
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5060
5073
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5061
5074
  echo $ac_n "(cached) $ac_c" 1>&6
5063
5076
  ac_save_LIBS="$LIBS"
5064
5077
LIBS="-ldl  $LIBS"
5065
5078
cat > conftest.$ac_ext <<EOF
5066
 
#line 5067 "configure"
 
5079
#line 5080 "configure"
5067
5080
#include "confdefs.h"
5068
5081
/* Override any gcc2 internal prototype to avoid an error.  */
5069
5082
/* We use char because int might match the return type of a gcc2
5074
5087
dlopen()
5075
5088
; return 0; }
5076
5089
EOF
5077
 
if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5090
if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078
5091
  rm -rf conftest*
5079
5092
  eval "ac_cv_lib_$ac_lib_var=yes"
5080
5093
else
5091
5104
  echo "$ac_t""yes" 1>&6
5092
5105
  ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
5093
5106
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
5094
 
echo "configure:5095: checking for dlfcn.h" >&5
 
5107
echo "configure:5108: checking for dlfcn.h" >&5
5095
5108
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5096
5109
  echo $ac_n "(cached) $ac_c" 1>&6
5097
5110
else
5098
5111
  cat > conftest.$ac_ext <<EOF
5099
 
#line 5100 "configure"
 
5112
#line 5113 "configure"
5100
5113
#include "confdefs.h"
5101
5114
#include <dlfcn.h>
5102
5115
EOF
5103
5116
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5104
 
{ (eval echo configure:5105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5117
{ (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5105
5118
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5106
5119
if test -z "$ac_err"; then
5107
5120
  rm -rf conftest*
5134
5147
 
5135
5148
if test $ac_cv_prog_gcc = yes; then
5136
5149
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5137
 
echo "configure:5138: checking whether ${CC-cc} needs -traditional" >&5
 
5150
echo "configure:5151: checking whether ${CC-cc} needs -traditional" >&5
5138
5151
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5139
5152
  echo $ac_n "(cached) $ac_c" 1>&6
5140
5153
else
5141
5154
    ac_pattern="Autoconf.*'x'"
5142
5155
  cat > conftest.$ac_ext <<EOF
5143
 
#line 5144 "configure"
 
5156
#line 5157 "configure"
5144
5157
#include "confdefs.h"
5145
5158
#include <sgtty.h>
5146
5159
Autoconf TIOCGETP
5158
5171
 
5159
5172
  if test $ac_cv_prog_gcc_traditional = no; then
5160
5173
    cat > conftest.$ac_ext <<EOF
5161
 
#line 5162 "configure"
 
5174
#line 5175 "configure"
5162
5175
#include "confdefs.h"
5163
5176
#include <termio.h>
5164
5177
Autoconf TCGETA
5182
5195
for ac_func in lchown strerror
5183
5196
do
5184
5197
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5185
 
echo "configure:5186: checking for $ac_func" >&5
 
5198
echo "configure:5199: checking for $ac_func" >&5
5186
5199
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5187
5200
  echo $ac_n "(cached) $ac_c" 1>&6
5188
5201
else
5189
5202
  cat > conftest.$ac_ext <<EOF
5190
 
#line 5191 "configure"
 
5203
#line 5204 "configure"
5191
5204
#include "confdefs.h"
5192
5205
/* System header to define __stub macros and hopefully few prototypes,
5193
5206
    which can conflict with char $ac_func(); below.  */
5210
5223
 
5211
5224
; return 0; }
5212
5225
EOF
5213
 
if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5226
if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214
5227
  rm -rf conftest*
5215
5228
  eval "ac_cv_func_$ac_func=yes"
5216
5229
else
5251
5264
if test -z "$GNU_CC"; then
5252
5265
 
5253
5266
    echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
5254
 
echo "configure:5255: checking for +Olit support" >&5
 
5267
echo "configure:5268: checking for +Olit support" >&5
5255
5268
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
5256
5269
  echo $ac_n "(cached) $ac_c" 1>&6
5257
5270
else
5290
5303
*)
5291
5304
    
5292
5305
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
5293
 
echo "configure:5294: checking for pthread_create in -lpthreads" >&5
 
5306
echo "configure:5307: checking for pthread_create in -lpthreads" >&5
5294
5307
echo "
5295
5308
    #include <pthread.h> 
5296
5309
    void *foo(void *v) { return v; } 
5312
5325
        echo "$ac_t""no" 1>&6
5313
5326
        
5314
5327
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
5315
 
echo "configure:5316: checking for pthread_create in -lpthread" >&5
 
5328
echo "configure:5329: checking for pthread_create in -lpthread" >&5
5316
5329
echo "
5317
5330
    #include <pthread.h> 
5318
5331
    void *foo(void *v) { return v; } 
5334
5347
        echo "$ac_t""no" 1>&6
5335
5348
        
5336
5349
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
5337
 
echo "configure:5338: checking for pthread_create in -lc_r" >&5
 
5350
echo "configure:5351: checking for pthread_create in -lc_r" >&5
5338
5351
echo "
5339
5352
    #include <pthread.h> 
5340
5353
    void *foo(void *v) { return v; } 
5356
5369
        echo "$ac_t""no" 1>&6
5357
5370
        
5358
5371
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
5359
 
echo "configure:5360: checking for pthread_create in -lc" >&5
 
5372
echo "configure:5373: checking for pthread_create in -lc" >&5
5360
5373
echo "
5361
5374
    #include <pthread.h> 
5362
5375
    void *foo(void *v) { return v; } 
5472
5485
 
5473
5486
fi # SKIP_LIBRARY_CHECKS
5474
5487
 
5475
 
# Check whether --enable-cplus or --disable-cplus was given.
5476
 
if test "${enable_cplus+set}" = set; then
5477
 
  enableval="$enable_cplus"
5478
 
   if test "$enableval" = "yes"; then
5479
 
            USE_CPLUS=1
5480
 
      fi
5481
 
fi
5482
 
 
5483
 
 
5484
5488
# Check whether --enable-ipv6 or --disable-ipv6 was given.
5485
5489
if test "${enable_ipv6+set}" = set; then
5486
5490
  enableval="$enable_ipv6"
5510
5514
      rm -f conftest*
5511
5515
   ac_cv_have_dash_pthread=no
5512
5516
   echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
5513
 
echo "configure:5514: checking whether ${CC-cc} accepts -pthread" >&5
 
5517
echo "configure:5518: checking whether ${CC-cc} accepts -pthread" >&5
5514
5518
   echo 'int main() { return 0; }' | cat > conftest.c
5515
5519
   ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
5516
5520
   if test $? -eq 0; then
5533
5537
                            ac_cv_have_dash_pthreads=no
5534
5538
    if test "$ac_cv_have_dash_pthread" = "no"; then
5535
5539
            echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
5536
 
echo "configure:5537: checking whether ${CC-cc} accepts -pthreads" >&5
 
5540
echo "configure:5541: checking whether ${CC-cc} accepts -pthreads" >&5
5537
5541
        echo 'int main() { return 0; }' | cat > conftest.c
5538
5542
            ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
5539
5543
        if test $? -eq 0; then