~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/common_test/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-07 15:07:37 UTC
  • mfrom: (1.2.1 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090507150737-i4yb5elwinm7r0hc
Tags: 1:13.b-dfsg1-1
* Removed another bunch of non-free RFCs from original tarball
  (closes: #527053).
* Fixed build-dependencies list by adding missing comma. This requires
  libsctp-dev again. Also, added libsctp1 dependency to erlang-base and
  erlang-base-hipe packages because the shared library is loaded via
  dlopen now and cannot be added using dh_slibdeps (closes: #526682).
* Weakened dependency of erlang-webtool on erlang-observer to recommends
  to avoid circular dependencies (closes: #526627).
* Added solaris-i386 to HiPE enabled architectures.
* Made script sources in /usr/lib/erlang/erts-*/bin directory executable,
  which is more convenient if a user wants to create a target Erlang system.
* Shortened extended description line for erlang-dev package to make it
  fit 80x25 terminals.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
PACKAGE_STRING=
272
272
PACKAGE_BUGREPORT=
273
273
 
274
 
ac_unique_file="priv/rx-1.5/rx/rx.c"
275
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os TARGET CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP opt_objs RX_CFLAGS RX_LD RX_LDFLAGS LIBOBJS LTLIBOBJS'
 
274
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os TARGET LIBOBJS LTLIBOBJS'
276
275
ac_subst_files=''
277
276
 
278
277
# Initialize some variables set by options.
713
712
ac_env_target_alias_value=$target_alias
714
713
ac_cv_env_target_alias_set=${target_alias+set}
715
714
ac_cv_env_target_alias_value=$target_alias
716
 
ac_env_CC_set=${CC+set}
717
 
ac_env_CC_value=$CC
718
 
ac_cv_env_CC_set=${CC+set}
719
 
ac_cv_env_CC_value=$CC
720
 
ac_env_CFLAGS_set=${CFLAGS+set}
721
 
ac_env_CFLAGS_value=$CFLAGS
722
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
723
 
ac_cv_env_CFLAGS_value=$CFLAGS
724
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
 
ac_env_LDFLAGS_value=$LDFLAGS
726
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
 
ac_env_CPPFLAGS_value=$CPPFLAGS
730
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
 
ac_env_CPP_set=${CPP+set}
733
 
ac_env_CPP_value=$CPP
734
 
ac_cv_env_CPP_set=${CPP+set}
735
 
ac_cv_env_CPP_value=$CPP
736
715
 
737
716
#
738
717
# Report the --help message.
804
783
 
805
784
  cat <<\_ACEOF
806
785
 
807
 
Some influential environment variables:
808
 
  CC          C compiler command
809
 
  CFLAGS      C compiler flags
810
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
811
 
              nonstandard directory <lib dir>
812
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
813
 
              headers in a nonstandard directory <include dir>
814
 
  CPP         C preprocessor
815
 
 
816
 
Use these variables to override the choices made by `configure' or to help
817
 
it to find libraries and programs with nonstandard names/locations.
818
 
 
819
786
_ACEOF
820
787
fi
821
788
 
1252
1219
 
1253
1220
 
1254
1221
 
1255
 
if test "x$no_recursion" != "xyes"; then
1256
 
    # We do not want to use a common cache!
1257
 
    cache_file=/dev/null
1258
 
fi
1259
 
 
1260
1222
ac_aux_dir=
1261
1223
for ac_dir in priv/auxdir $srcdir/priv/auxdir; do
1262
1224
  if test -f $ac_dir/install-sh; then
1345
1307
TARGET=$host
1346
1308
 
1347
1309
 
1348
 
ac_ext=c
1349
 
ac_cpp='$CPP $CPPFLAGS'
1350
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353
 
if test -n "$ac_tool_prefix"; then
1354
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1355
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1356
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1357
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358
 
if test "${ac_cv_prog_CC+set}" = set; then
1359
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1360
 
else
1361
 
  if test -n "$CC"; then
1362
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1363
 
else
1364
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365
 
for as_dir in $PATH
1366
 
do
1367
 
  IFS=$as_save_IFS
1368
 
  test -z "$as_dir" && as_dir=.
1369
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1370
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1372
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1373
 
    break 2
1374
 
  fi
1375
 
done
1376
 
done
1377
 
 
1378
 
fi
1379
 
fi
1380
 
CC=$ac_cv_prog_CC
1381
 
if test -n "$CC"; then
1382
 
  echo "$as_me:$LINENO: result: $CC" >&5
1383
 
echo "${ECHO_T}$CC" >&6
1384
 
else
1385
 
  echo "$as_me:$LINENO: result: no" >&5
1386
 
echo "${ECHO_T}no" >&6
1387
 
fi
1388
 
 
1389
 
fi
1390
 
if test -z "$ac_cv_prog_CC"; then
1391
 
  ac_ct_CC=$CC
1392
 
  # Extract the first word of "gcc", so it can be a program name with args.
1393
 
set dummy gcc; ac_word=$2
1394
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1395
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1397
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1398
 
else
1399
 
  if test -n "$ac_ct_CC"; then
1400
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1401
 
else
1402
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403
 
for as_dir in $PATH
1404
 
do
1405
 
  IFS=$as_save_IFS
1406
 
  test -z "$as_dir" && as_dir=.
1407
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1408
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409
 
    ac_cv_prog_ac_ct_CC="gcc"
1410
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411
 
    break 2
1412
 
  fi
1413
 
done
1414
 
done
1415
 
 
1416
 
fi
1417
 
fi
1418
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1419
 
if test -n "$ac_ct_CC"; then
1420
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1421
 
echo "${ECHO_T}$ac_ct_CC" >&6
1422
 
else
1423
 
  echo "$as_me:$LINENO: result: no" >&5
1424
 
echo "${ECHO_T}no" >&6
1425
 
fi
1426
 
 
1427
 
  CC=$ac_ct_CC
1428
 
else
1429
 
  CC="$ac_cv_prog_CC"
1430
 
fi
1431
 
 
1432
 
if test -z "$CC"; then
1433
 
  if test -n "$ac_tool_prefix"; then
1434
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1435
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1436
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1437
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438
 
if test "${ac_cv_prog_CC+set}" = set; then
1439
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1440
 
else
1441
 
  if test -n "$CC"; then
1442
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1443
 
else
1444
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445
 
for as_dir in $PATH
1446
 
do
1447
 
  IFS=$as_save_IFS
1448
 
  test -z "$as_dir" && as_dir=.
1449
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1450
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1452
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453
 
    break 2
1454
 
  fi
1455
 
done
1456
 
done
1457
 
 
1458
 
fi
1459
 
fi
1460
 
CC=$ac_cv_prog_CC
1461
 
if test -n "$CC"; then
1462
 
  echo "$as_me:$LINENO: result: $CC" >&5
1463
 
echo "${ECHO_T}$CC" >&6
1464
 
else
1465
 
  echo "$as_me:$LINENO: result: no" >&5
1466
 
echo "${ECHO_T}no" >&6
1467
 
fi
1468
 
 
1469
 
fi
1470
 
if test -z "$ac_cv_prog_CC"; then
1471
 
  ac_ct_CC=$CC
1472
 
  # Extract the first word of "cc", so it can be a program name with args.
1473
 
set dummy cc; ac_word=$2
1474
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1475
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1478
 
else
1479
 
  if test -n "$ac_ct_CC"; then
1480
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481
 
else
1482
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483
 
for as_dir in $PATH
1484
 
do
1485
 
  IFS=$as_save_IFS
1486
 
  test -z "$as_dir" && as_dir=.
1487
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1488
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489
 
    ac_cv_prog_ac_ct_CC="cc"
1490
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491
 
    break 2
1492
 
  fi
1493
 
done
1494
 
done
1495
 
 
1496
 
fi
1497
 
fi
1498
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499
 
if test -n "$ac_ct_CC"; then
1500
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501
 
echo "${ECHO_T}$ac_ct_CC" >&6
1502
 
else
1503
 
  echo "$as_me:$LINENO: result: no" >&5
1504
 
echo "${ECHO_T}no" >&6
1505
 
fi
1506
 
 
1507
 
  CC=$ac_ct_CC
1508
 
else
1509
 
  CC="$ac_cv_prog_CC"
1510
 
fi
1511
 
 
1512
 
fi
1513
 
if test -z "$CC"; then
1514
 
  # Extract the first word of "cc", so it can be a program name with args.
1515
 
set dummy cc; ac_word=$2
1516
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1517
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518
 
if test "${ac_cv_prog_CC+set}" = set; then
1519
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1520
 
else
1521
 
  if test -n "$CC"; then
1522
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1523
 
else
1524
 
  ac_prog_rejected=no
1525
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526
 
for as_dir in $PATH
1527
 
do
1528
 
  IFS=$as_save_IFS
1529
 
  test -z "$as_dir" && as_dir=.
1530
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1531
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1533
 
       ac_prog_rejected=yes
1534
 
       continue
1535
 
     fi
1536
 
    ac_cv_prog_CC="cc"
1537
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538
 
    break 2
1539
 
  fi
1540
 
done
1541
 
done
1542
 
 
1543
 
if test $ac_prog_rejected = yes; then
1544
 
  # We found a bogon in the path, so make sure we never use it.
1545
 
  set dummy $ac_cv_prog_CC
1546
 
  shift
1547
 
  if test $# != 0; then
1548
 
    # We chose a different compiler from the bogus one.
1549
 
    # However, it has the same basename, so the bogon will be chosen
1550
 
    # first if we set CC to just the basename; use the full file name.
1551
 
    shift
1552
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1553
 
  fi
1554
 
fi
1555
 
fi
1556
 
fi
1557
 
CC=$ac_cv_prog_CC
1558
 
if test -n "$CC"; then
1559
 
  echo "$as_me:$LINENO: result: $CC" >&5
1560
 
echo "${ECHO_T}$CC" >&6
1561
 
else
1562
 
  echo "$as_me:$LINENO: result: no" >&5
1563
 
echo "${ECHO_T}no" >&6
1564
 
fi
1565
 
 
1566
 
fi
1567
 
if test -z "$CC"; then
1568
 
  if test -n "$ac_tool_prefix"; then
1569
 
  for ac_prog in cl
1570
 
  do
1571
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1572
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1573
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1574
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575
 
if test "${ac_cv_prog_CC+set}" = set; then
1576
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1577
 
else
1578
 
  if test -n "$CC"; then
1579
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1580
 
else
1581
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582
 
for as_dir in $PATH
1583
 
do
1584
 
  IFS=$as_save_IFS
1585
 
  test -z "$as_dir" && as_dir=.
1586
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1587
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1589
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590
 
    break 2
1591
 
  fi
1592
 
done
1593
 
done
1594
 
 
1595
 
fi
1596
 
fi
1597
 
CC=$ac_cv_prog_CC
1598
 
if test -n "$CC"; then
1599
 
  echo "$as_me:$LINENO: result: $CC" >&5
1600
 
echo "${ECHO_T}$CC" >&6
1601
 
else
1602
 
  echo "$as_me:$LINENO: result: no" >&5
1603
 
echo "${ECHO_T}no" >&6
1604
 
fi
1605
 
 
1606
 
    test -n "$CC" && break
1607
 
  done
1608
 
fi
1609
 
if test -z "$CC"; then
1610
 
  ac_ct_CC=$CC
1611
 
  for ac_prog in cl
1612
 
do
1613
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1614
 
set dummy $ac_prog; ac_word=$2
1615
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1616
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1619
 
else
1620
 
  if test -n "$ac_ct_CC"; then
1621
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1622
 
else
1623
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624
 
for as_dir in $PATH
1625
 
do
1626
 
  IFS=$as_save_IFS
1627
 
  test -z "$as_dir" && as_dir=.
1628
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1629
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1631
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632
 
    break 2
1633
 
  fi
1634
 
done
1635
 
done
1636
 
 
1637
 
fi
1638
 
fi
1639
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640
 
if test -n "$ac_ct_CC"; then
1641
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642
 
echo "${ECHO_T}$ac_ct_CC" >&6
1643
 
else
1644
 
  echo "$as_me:$LINENO: result: no" >&5
1645
 
echo "${ECHO_T}no" >&6
1646
 
fi
1647
 
 
1648
 
  test -n "$ac_ct_CC" && break
1649
 
done
1650
 
 
1651
 
  CC=$ac_ct_CC
1652
 
fi
1653
 
 
1654
 
fi
1655
 
 
1656
 
 
1657
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1658
 
See \`config.log' for more details." >&5
1659
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1660
 
See \`config.log' for more details." >&2;}
1661
 
   { (exit 1); exit 1; }; }
1662
 
 
1663
 
# Provide some information about the compiler.
1664
 
echo "$as_me:$LINENO:" \
1665
 
     "checking for C compiler version" >&5
1666
 
ac_compiler=`set X $ac_compile; echo $2`
1667
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1668
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1669
 
  ac_status=$?
1670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671
 
  (exit $ac_status); }
1672
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1673
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1674
 
  ac_status=$?
1675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676
 
  (exit $ac_status); }
1677
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1678
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1679
 
  ac_status=$?
1680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681
 
  (exit $ac_status); }
1682
 
 
1683
 
cat >conftest.$ac_ext <<_ACEOF
1684
 
/* confdefs.h.  */
1685
 
_ACEOF
1686
 
cat confdefs.h >>conftest.$ac_ext
1687
 
cat >>conftest.$ac_ext <<_ACEOF
1688
 
/* end confdefs.h.  */
1689
 
 
1690
 
int
1691
 
main ()
1692
 
{
1693
 
 
1694
 
  ;
1695
 
  return 0;
1696
 
}
1697
 
_ACEOF
1698
 
ac_clean_files_save=$ac_clean_files
1699
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1700
 
# Try to create an executable without -o first, disregard a.out.
1701
 
# It will help us diagnose broken compilers, and finding out an intuition
1702
 
# of exeext.
1703
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1704
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1705
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1706
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1707
 
  (eval $ac_link_default) 2>&5
1708
 
  ac_status=$?
1709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710
 
  (exit $ac_status); }; then
1711
 
  # Find the output, starting from the most likely.  This scheme is
1712
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1713
 
# resort.
1714
 
 
1715
 
# Be careful to initialize this variable, since it used to be cached.
1716
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1717
 
ac_cv_exeext=
1718
 
# b.out is created by i960 compilers.
1719
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1720
 
do
1721
 
  test -f "$ac_file" || continue
1722
 
  case $ac_file in
1723
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1724
 
        ;;
1725
 
    conftest.$ac_ext )
1726
 
        # This is the source file.
1727
 
        ;;
1728
 
    [ab].out )
1729
 
        # We found the default executable, but exeext='' is most
1730
 
        # certainly right.
1731
 
        break;;
1732
 
    *.* )
1733
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1735
 
        # but it would be cool to find out if it's true.  Does anybody
1736
 
        # maintain Libtool? --akim.
1737
 
        export ac_cv_exeext
1738
 
        break;;
1739
 
    * )
1740
 
        break;;
1741
 
  esac
1742
 
done
1743
 
else
1744
 
  echo "$as_me: failed program was:" >&5
1745
 
sed 's/^/| /' conftest.$ac_ext >&5
1746
 
 
1747
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1748
 
See \`config.log' for more details." >&5
1749
 
echo "$as_me: error: C compiler cannot create executables
1750
 
See \`config.log' for more details." >&2;}
1751
 
   { (exit 77); exit 77; }; }
1752
 
fi
1753
 
 
1754
 
ac_exeext=$ac_cv_exeext
1755
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1756
 
echo "${ECHO_T}$ac_file" >&6
1757
 
 
1758
 
# Check the compiler produces executables we can run.  If not, either
1759
 
# the compiler is broken, or we cross compile.
1760
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1761
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1762
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1763
 
# If not cross compiling, check that we can run a simple program.
1764
 
if test "$cross_compiling" != yes; then
1765
 
  if { ac_try='./$ac_file'
1766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1767
 
  (eval $ac_try) 2>&5
1768
 
  ac_status=$?
1769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770
 
  (exit $ac_status); }; }; then
1771
 
    cross_compiling=no
1772
 
  else
1773
 
    if test "$cross_compiling" = maybe; then
1774
 
        cross_compiling=yes
1775
 
    else
1776
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1777
 
If you meant to cross compile, use \`--host'.
1778
 
See \`config.log' for more details." >&5
1779
 
echo "$as_me: error: cannot run C compiled programs.
1780
 
If you meant to cross compile, use \`--host'.
1781
 
See \`config.log' for more details." >&2;}
1782
 
   { (exit 1); exit 1; }; }
1783
 
    fi
1784
 
  fi
1785
 
fi
1786
 
echo "$as_me:$LINENO: result: yes" >&5
1787
 
echo "${ECHO_T}yes" >&6
1788
 
 
1789
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1790
 
ac_clean_files=$ac_clean_files_save
1791
 
# Check the compiler produces executables we can run.  If not, either
1792
 
# the compiler is broken, or we cross compile.
1793
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796
 
echo "${ECHO_T}$cross_compiling" >&6
1797
 
 
1798
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801
 
  (eval $ac_link) 2>&5
1802
 
  ac_status=$?
1803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804
 
  (exit $ac_status); }; then
1805
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1807
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1808
 
# `rm'.
1809
 
for ac_file in conftest.exe conftest conftest.*; do
1810
 
  test -f "$ac_file" || continue
1811
 
  case $ac_file in
1812
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1813
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814
 
          export ac_cv_exeext
1815
 
          break;;
1816
 
    * ) break;;
1817
 
  esac
1818
 
done
1819
 
else
1820
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1821
 
See \`config.log' for more details." >&5
1822
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1823
 
See \`config.log' for more details." >&2;}
1824
 
   { (exit 1); exit 1; }; }
1825
 
fi
1826
 
 
1827
 
rm -f conftest$ac_cv_exeext
1828
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1829
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1830
 
 
1831
 
rm -f conftest.$ac_ext
1832
 
EXEEXT=$ac_cv_exeext
1833
 
ac_exeext=$EXEEXT
1834
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1835
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1836
 
if test "${ac_cv_objext+set}" = set; then
1837
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1838
 
else
1839
 
  cat >conftest.$ac_ext <<_ACEOF
1840
 
/* confdefs.h.  */
1841
 
_ACEOF
1842
 
cat confdefs.h >>conftest.$ac_ext
1843
 
cat >>conftest.$ac_ext <<_ACEOF
1844
 
/* end confdefs.h.  */
1845
 
 
1846
 
int
1847
 
main ()
1848
 
{
1849
 
 
1850
 
  ;
1851
 
  return 0;
1852
 
}
1853
 
_ACEOF
1854
 
rm -f conftest.o conftest.obj
1855
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856
 
  (eval $ac_compile) 2>&5
1857
 
  ac_status=$?
1858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859
 
  (exit $ac_status); }; then
1860
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1861
 
  case $ac_file in
1862
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1863
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1864
 
       break;;
1865
 
  esac
1866
 
done
1867
 
else
1868
 
  echo "$as_me: failed program was:" >&5
1869
 
sed 's/^/| /' conftest.$ac_ext >&5
1870
 
 
1871
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1872
 
See \`config.log' for more details." >&5
1873
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1874
 
See \`config.log' for more details." >&2;}
1875
 
   { (exit 1); exit 1; }; }
1876
 
fi
1877
 
 
1878
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1879
 
fi
1880
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1881
 
echo "${ECHO_T}$ac_cv_objext" >&6
1882
 
OBJEXT=$ac_cv_objext
1883
 
ac_objext=$OBJEXT
1884
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1885
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1886
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1888
 
else
1889
 
  cat >conftest.$ac_ext <<_ACEOF
1890
 
/* confdefs.h.  */
1891
 
_ACEOF
1892
 
cat confdefs.h >>conftest.$ac_ext
1893
 
cat >>conftest.$ac_ext <<_ACEOF
1894
 
/* end confdefs.h.  */
1895
 
 
1896
 
int
1897
 
main ()
1898
 
{
1899
 
#ifndef __GNUC__
1900
 
       choke me
1901
 
#endif
1902
 
 
1903
 
  ;
1904
 
  return 0;
1905
 
}
1906
 
_ACEOF
1907
 
rm -f conftest.$ac_objext
1908
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909
 
  (eval $ac_compile) 2>conftest.er1
1910
 
  ac_status=$?
1911
 
  grep -v '^ *+' conftest.er1 >conftest.err
1912
 
  rm -f conftest.er1
1913
 
  cat conftest.err >&5
1914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
 
  (exit $ac_status); } &&
1916
 
         { ac_try='test -z "$ac_c_werror_flag"
1917
 
                         || test ! -s conftest.err'
1918
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919
 
  (eval $ac_try) 2>&5
1920
 
  ac_status=$?
1921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922
 
  (exit $ac_status); }; } &&
1923
 
         { ac_try='test -s conftest.$ac_objext'
1924
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925
 
  (eval $ac_try) 2>&5
1926
 
  ac_status=$?
1927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
 
  (exit $ac_status); }; }; then
1929
 
  ac_compiler_gnu=yes
1930
 
else
1931
 
  echo "$as_me: failed program was:" >&5
1932
 
sed 's/^/| /' conftest.$ac_ext >&5
1933
 
 
1934
 
ac_compiler_gnu=no
1935
 
fi
1936
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1937
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1938
 
 
1939
 
fi
1940
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1941
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1942
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
1943
 
ac_test_CFLAGS=${CFLAGS+set}
1944
 
ac_save_CFLAGS=$CFLAGS
1945
 
CFLAGS="-g"
1946
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1947
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1948
 
if test "${ac_cv_prog_cc_g+set}" = set; then
1949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1950
 
else
1951
 
  cat >conftest.$ac_ext <<_ACEOF
1952
 
/* confdefs.h.  */
1953
 
_ACEOF
1954
 
cat confdefs.h >>conftest.$ac_ext
1955
 
cat >>conftest.$ac_ext <<_ACEOF
1956
 
/* end confdefs.h.  */
1957
 
 
1958
 
int
1959
 
main ()
1960
 
{
1961
 
 
1962
 
  ;
1963
 
  return 0;
1964
 
}
1965
 
_ACEOF
1966
 
rm -f conftest.$ac_objext
1967
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968
 
  (eval $ac_compile) 2>conftest.er1
1969
 
  ac_status=$?
1970
 
  grep -v '^ *+' conftest.er1 >conftest.err
1971
 
  rm -f conftest.er1
1972
 
  cat conftest.err >&5
1973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974
 
  (exit $ac_status); } &&
1975
 
         { ac_try='test -z "$ac_c_werror_flag"
1976
 
                         || test ! -s conftest.err'
1977
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978
 
  (eval $ac_try) 2>&5
1979
 
  ac_status=$?
1980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
 
  (exit $ac_status); }; } &&
1982
 
         { ac_try='test -s conftest.$ac_objext'
1983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984
 
  (eval $ac_try) 2>&5
1985
 
  ac_status=$?
1986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987
 
  (exit $ac_status); }; }; then
1988
 
  ac_cv_prog_cc_g=yes
1989
 
else
1990
 
  echo "$as_me: failed program was:" >&5
1991
 
sed 's/^/| /' conftest.$ac_ext >&5
1992
 
 
1993
 
ac_cv_prog_cc_g=no
1994
 
fi
1995
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996
 
fi
1997
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1998
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1999
 
if test "$ac_test_CFLAGS" = set; then
2000
 
  CFLAGS=$ac_save_CFLAGS
2001
 
elif test $ac_cv_prog_cc_g = yes; then
2002
 
  if test "$GCC" = yes; then
2003
 
    CFLAGS="-g -O2"
2004
 
  else
2005
 
    CFLAGS="-g"
2006
 
  fi
2007
 
else
2008
 
  if test "$GCC" = yes; then
2009
 
    CFLAGS="-O2"
2010
 
  else
2011
 
    CFLAGS=
2012
 
  fi
2013
 
fi
2014
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2015
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2016
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2017
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2018
 
else
2019
 
  ac_cv_prog_cc_stdc=no
2020
 
ac_save_CC=$CC
2021
 
cat >conftest.$ac_ext <<_ACEOF
2022
 
/* confdefs.h.  */
2023
 
_ACEOF
2024
 
cat confdefs.h >>conftest.$ac_ext
2025
 
cat >>conftest.$ac_ext <<_ACEOF
2026
 
/* end confdefs.h.  */
2027
 
#include <stdarg.h>
2028
 
#include <stdio.h>
2029
 
#include <sys/types.h>
2030
 
#include <sys/stat.h>
2031
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2032
 
struct buf { int x; };
2033
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2034
 
static char *e (p, i)
2035
 
     char **p;
2036
 
     int i;
2037
 
{
2038
 
  return p[i];
2039
 
}
2040
 
static char *f (char * (*g) (char **, int), char **p, ...)
2041
 
{
2042
 
  char *s;
2043
 
  va_list v;
2044
 
  va_start (v,p);
2045
 
  s = g (p, va_arg (v,int));
2046
 
  va_end (v);
2047
 
  return s;
2048
 
}
2049
 
 
2050
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2051
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2052
 
   These don't provoke an error unfortunately, instead are silently treated
2053
 
   as 'x'.  The following induces an error, until -std1 is added to get
2054
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2055
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2056
 
   that's true only with -std1.  */
2057
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2058
 
 
2059
 
int test (int i, double x);
2060
 
struct s1 {int (*f) (int a);};
2061
 
struct s2 {int (*f) (double a);};
2062
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2063
 
int argc;
2064
 
char **argv;
2065
 
int
2066
 
main ()
2067
 
{
2068
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2069
 
  ;
2070
 
  return 0;
2071
 
}
2072
 
_ACEOF
2073
 
# Don't try gcc -ansi; that turns off useful extensions and
2074
 
# breaks some systems' header files.
2075
 
# AIX                   -qlanglvl=ansi
2076
 
# Ultrix and OSF/1      -std1
2077
 
# HP-UX 10.20 and later -Ae
2078
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2079
 
# SVR4                  -Xc -D__EXTENSIONS__
2080
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2081
 
do
2082
 
  CC="$ac_save_CC $ac_arg"
2083
 
  rm -f conftest.$ac_objext
2084
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085
 
  (eval $ac_compile) 2>conftest.er1
2086
 
  ac_status=$?
2087
 
  grep -v '^ *+' conftest.er1 >conftest.err
2088
 
  rm -f conftest.er1
2089
 
  cat conftest.err >&5
2090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091
 
  (exit $ac_status); } &&
2092
 
         { ac_try='test -z "$ac_c_werror_flag"
2093
 
                         || test ! -s conftest.err'
2094
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095
 
  (eval $ac_try) 2>&5
2096
 
  ac_status=$?
2097
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098
 
  (exit $ac_status); }; } &&
2099
 
         { ac_try='test -s conftest.$ac_objext'
2100
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101
 
  (eval $ac_try) 2>&5
2102
 
  ac_status=$?
2103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
 
  (exit $ac_status); }; }; then
2105
 
  ac_cv_prog_cc_stdc=$ac_arg
2106
 
break
2107
 
else
2108
 
  echo "$as_me: failed program was:" >&5
2109
 
sed 's/^/| /' conftest.$ac_ext >&5
2110
 
 
2111
 
fi
2112
 
rm -f conftest.err conftest.$ac_objext
2113
 
done
2114
 
rm -f conftest.$ac_ext conftest.$ac_objext
2115
 
CC=$ac_save_CC
2116
 
 
2117
 
fi
2118
 
 
2119
 
case "x$ac_cv_prog_cc_stdc" in
2120
 
  x|xno)
2121
 
    echo "$as_me:$LINENO: result: none needed" >&5
2122
 
echo "${ECHO_T}none needed" >&6 ;;
2123
 
  *)
2124
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2125
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2126
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2127
 
esac
2128
 
 
2129
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2130
 
# in C++ we need to declare it.  In case someone uses the same compiler
2131
 
# for both compiling C and C++ we need to have the C++ compiler decide
2132
 
# the declaration of exit, since it's the most demanding environment.
2133
 
cat >conftest.$ac_ext <<_ACEOF
2134
 
#ifndef __cplusplus
2135
 
  choke me
2136
 
#endif
2137
 
_ACEOF
2138
 
rm -f conftest.$ac_objext
2139
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140
 
  (eval $ac_compile) 2>conftest.er1
2141
 
  ac_status=$?
2142
 
  grep -v '^ *+' conftest.er1 >conftest.err
2143
 
  rm -f conftest.er1
2144
 
  cat conftest.err >&5
2145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146
 
  (exit $ac_status); } &&
2147
 
         { ac_try='test -z "$ac_c_werror_flag"
2148
 
                         || test ! -s conftest.err'
2149
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150
 
  (eval $ac_try) 2>&5
2151
 
  ac_status=$?
2152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
 
  (exit $ac_status); }; } &&
2154
 
         { ac_try='test -s conftest.$ac_objext'
2155
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156
 
  (eval $ac_try) 2>&5
2157
 
  ac_status=$?
2158
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
 
  (exit $ac_status); }; }; then
2160
 
  for ac_declaration in \
2161
 
   '' \
2162
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2163
 
   'extern "C" void std::exit (int); using std::exit;' \
2164
 
   'extern "C" void exit (int) throw ();' \
2165
 
   'extern "C" void exit (int);' \
2166
 
   'void exit (int);'
2167
 
do
2168
 
  cat >conftest.$ac_ext <<_ACEOF
2169
 
/* confdefs.h.  */
2170
 
_ACEOF
2171
 
cat confdefs.h >>conftest.$ac_ext
2172
 
cat >>conftest.$ac_ext <<_ACEOF
2173
 
/* end confdefs.h.  */
2174
 
$ac_declaration
2175
 
#include <stdlib.h>
2176
 
int
2177
 
main ()
2178
 
{
2179
 
exit (42);
2180
 
  ;
2181
 
  return 0;
2182
 
}
2183
 
_ACEOF
2184
 
rm -f conftest.$ac_objext
2185
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186
 
  (eval $ac_compile) 2>conftest.er1
2187
 
  ac_status=$?
2188
 
  grep -v '^ *+' conftest.er1 >conftest.err
2189
 
  rm -f conftest.er1
2190
 
  cat conftest.err >&5
2191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192
 
  (exit $ac_status); } &&
2193
 
         { ac_try='test -z "$ac_c_werror_flag"
2194
 
                         || test ! -s conftest.err'
2195
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196
 
  (eval $ac_try) 2>&5
2197
 
  ac_status=$?
2198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
 
  (exit $ac_status); }; } &&
2200
 
         { ac_try='test -s conftest.$ac_objext'
2201
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202
 
  (eval $ac_try) 2>&5
2203
 
  ac_status=$?
2204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205
 
  (exit $ac_status); }; }; then
2206
 
  :
2207
 
else
2208
 
  echo "$as_me: failed program was:" >&5
2209
 
sed 's/^/| /' conftest.$ac_ext >&5
2210
 
 
2211
 
continue
2212
 
fi
2213
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214
 
  cat >conftest.$ac_ext <<_ACEOF
2215
 
/* confdefs.h.  */
2216
 
_ACEOF
2217
 
cat confdefs.h >>conftest.$ac_ext
2218
 
cat >>conftest.$ac_ext <<_ACEOF
2219
 
/* end confdefs.h.  */
2220
 
$ac_declaration
2221
 
int
2222
 
main ()
2223
 
{
2224
 
exit (42);
2225
 
  ;
2226
 
  return 0;
2227
 
}
2228
 
_ACEOF
2229
 
rm -f conftest.$ac_objext
2230
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231
 
  (eval $ac_compile) 2>conftest.er1
2232
 
  ac_status=$?
2233
 
  grep -v '^ *+' conftest.er1 >conftest.err
2234
 
  rm -f conftest.er1
2235
 
  cat conftest.err >&5
2236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
 
  (exit $ac_status); } &&
2238
 
         { ac_try='test -z "$ac_c_werror_flag"
2239
 
                         || test ! -s conftest.err'
2240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241
 
  (eval $ac_try) 2>&5
2242
 
  ac_status=$?
2243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244
 
  (exit $ac_status); }; } &&
2245
 
         { ac_try='test -s conftest.$ac_objext'
2246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247
 
  (eval $ac_try) 2>&5
2248
 
  ac_status=$?
2249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
 
  (exit $ac_status); }; }; then
2251
 
  break
2252
 
else
2253
 
  echo "$as_me: failed program was:" >&5
2254
 
sed 's/^/| /' conftest.$ac_ext >&5
2255
 
 
2256
 
fi
2257
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258
 
done
2259
 
rm -f conftest*
2260
 
if test -n "$ac_declaration"; then
2261
 
  echo '#ifdef __cplusplus' >>confdefs.h
2262
 
  echo $ac_declaration      >>confdefs.h
2263
 
  echo '#endif'             >>confdefs.h
2264
 
fi
2265
 
 
2266
 
else
2267
 
  echo "$as_me: failed program was:" >&5
2268
 
sed 's/^/| /' conftest.$ac_ext >&5
2269
 
 
2270
 
fi
2271
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2272
 
ac_ext=c
2273
 
ac_cpp='$CPP $CPPFLAGS'
2274
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
 
 
2278
 
ac_ext=c
2279
 
ac_cpp='$CPP $CPPFLAGS'
2280
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2284
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2285
 
# On Suns, sometimes $CPP names a directory.
2286
 
if test -n "$CPP" && test -d "$CPP"; then
2287
 
  CPP=
2288
 
fi
2289
 
if test -z "$CPP"; then
2290
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2292
 
else
2293
 
      # Double quotes because CPP needs to be expanded
2294
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2295
 
    do
2296
 
      ac_preproc_ok=false
2297
 
for ac_c_preproc_warn_flag in '' yes
2298
 
do
2299
 
  # Use a header file that comes with gcc, so configuring glibc
2300
 
  # with a fresh cross-compiler works.
2301
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2302
 
  # <limits.h> exists even on freestanding compilers.
2303
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2304
 
  # not just through cpp. "Syntax error" is here to catch this case.
2305
 
  cat >conftest.$ac_ext <<_ACEOF
2306
 
/* confdefs.h.  */
2307
 
_ACEOF
2308
 
cat confdefs.h >>conftest.$ac_ext
2309
 
cat >>conftest.$ac_ext <<_ACEOF
2310
 
/* end confdefs.h.  */
2311
 
#ifdef __STDC__
2312
 
# include <limits.h>
2313
 
#else
2314
 
# include <assert.h>
2315
 
#endif
2316
 
                     Syntax error
2317
 
_ACEOF
2318
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2319
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2320
 
  ac_status=$?
2321
 
  grep -v '^ *+' conftest.er1 >conftest.err
2322
 
  rm -f conftest.er1
2323
 
  cat conftest.err >&5
2324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325
 
  (exit $ac_status); } >/dev/null; then
2326
 
  if test -s conftest.err; then
2327
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2328
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2329
 
  else
2330
 
    ac_cpp_err=
2331
 
  fi
2332
 
else
2333
 
  ac_cpp_err=yes
2334
 
fi
2335
 
if test -z "$ac_cpp_err"; then
2336
 
  :
2337
 
else
2338
 
  echo "$as_me: failed program was:" >&5
2339
 
sed 's/^/| /' conftest.$ac_ext >&5
2340
 
 
2341
 
  # Broken: fails on valid input.
2342
 
continue
2343
 
fi
2344
 
rm -f conftest.err conftest.$ac_ext
2345
 
 
2346
 
  # OK, works on sane cases.  Now check whether non-existent headers
2347
 
  # can be detected and how.
2348
 
  cat >conftest.$ac_ext <<_ACEOF
2349
 
/* confdefs.h.  */
2350
 
_ACEOF
2351
 
cat confdefs.h >>conftest.$ac_ext
2352
 
cat >>conftest.$ac_ext <<_ACEOF
2353
 
/* end confdefs.h.  */
2354
 
#include <ac_nonexistent.h>
2355
 
_ACEOF
2356
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2357
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2358
 
  ac_status=$?
2359
 
  grep -v '^ *+' conftest.er1 >conftest.err
2360
 
  rm -f conftest.er1
2361
 
  cat conftest.err >&5
2362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363
 
  (exit $ac_status); } >/dev/null; then
2364
 
  if test -s conftest.err; then
2365
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2366
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2367
 
  else
2368
 
    ac_cpp_err=
2369
 
  fi
2370
 
else
2371
 
  ac_cpp_err=yes
2372
 
fi
2373
 
if test -z "$ac_cpp_err"; then
2374
 
  # Broken: success on invalid input.
2375
 
continue
2376
 
else
2377
 
  echo "$as_me: failed program was:" >&5
2378
 
sed 's/^/| /' conftest.$ac_ext >&5
2379
 
 
2380
 
  # Passes both tests.
2381
 
ac_preproc_ok=:
2382
 
break
2383
 
fi
2384
 
rm -f conftest.err conftest.$ac_ext
2385
 
 
2386
 
done
2387
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2388
 
rm -f conftest.err conftest.$ac_ext
2389
 
if $ac_preproc_ok; then
2390
 
  break
2391
 
fi
2392
 
 
2393
 
    done
2394
 
    ac_cv_prog_CPP=$CPP
2395
 
 
2396
 
fi
2397
 
  CPP=$ac_cv_prog_CPP
2398
 
else
2399
 
  ac_cv_prog_CPP=$CPP
2400
 
fi
2401
 
echo "$as_me:$LINENO: result: $CPP" >&5
2402
 
echo "${ECHO_T}$CPP" >&6
2403
 
ac_preproc_ok=false
2404
 
for ac_c_preproc_warn_flag in '' yes
2405
 
do
2406
 
  # Use a header file that comes with gcc, so configuring glibc
2407
 
  # with a fresh cross-compiler works.
2408
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2409
 
  # <limits.h> exists even on freestanding compilers.
2410
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2411
 
  # not just through cpp. "Syntax error" is here to catch this case.
2412
 
  cat >conftest.$ac_ext <<_ACEOF
2413
 
/* confdefs.h.  */
2414
 
_ACEOF
2415
 
cat confdefs.h >>conftest.$ac_ext
2416
 
cat >>conftest.$ac_ext <<_ACEOF
2417
 
/* end confdefs.h.  */
2418
 
#ifdef __STDC__
2419
 
# include <limits.h>
2420
 
#else
2421
 
# include <assert.h>
2422
 
#endif
2423
 
                     Syntax error
2424
 
_ACEOF
2425
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427
 
  ac_status=$?
2428
 
  grep -v '^ *+' conftest.er1 >conftest.err
2429
 
  rm -f conftest.er1
2430
 
  cat conftest.err >&5
2431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432
 
  (exit $ac_status); } >/dev/null; then
2433
 
  if test -s conftest.err; then
2434
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2435
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2436
 
  else
2437
 
    ac_cpp_err=
2438
 
  fi
2439
 
else
2440
 
  ac_cpp_err=yes
2441
 
fi
2442
 
if test -z "$ac_cpp_err"; then
2443
 
  :
2444
 
else
2445
 
  echo "$as_me: failed program was:" >&5
2446
 
sed 's/^/| /' conftest.$ac_ext >&5
2447
 
 
2448
 
  # Broken: fails on valid input.
2449
 
continue
2450
 
fi
2451
 
rm -f conftest.err conftest.$ac_ext
2452
 
 
2453
 
  # OK, works on sane cases.  Now check whether non-existent headers
2454
 
  # can be detected and how.
2455
 
  cat >conftest.$ac_ext <<_ACEOF
2456
 
/* confdefs.h.  */
2457
 
_ACEOF
2458
 
cat confdefs.h >>conftest.$ac_ext
2459
 
cat >>conftest.$ac_ext <<_ACEOF
2460
 
/* end confdefs.h.  */
2461
 
#include <ac_nonexistent.h>
2462
 
_ACEOF
2463
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2464
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2465
 
  ac_status=$?
2466
 
  grep -v '^ *+' conftest.er1 >conftest.err
2467
 
  rm -f conftest.er1
2468
 
  cat conftest.err >&5
2469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470
 
  (exit $ac_status); } >/dev/null; then
2471
 
  if test -s conftest.err; then
2472
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2473
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2474
 
  else
2475
 
    ac_cpp_err=
2476
 
  fi
2477
 
else
2478
 
  ac_cpp_err=yes
2479
 
fi
2480
 
if test -z "$ac_cpp_err"; then
2481
 
  # Broken: success on invalid input.
2482
 
continue
2483
 
else
2484
 
  echo "$as_me: failed program was:" >&5
2485
 
sed 's/^/| /' conftest.$ac_ext >&5
2486
 
 
2487
 
  # Passes both tests.
2488
 
ac_preproc_ok=:
2489
 
break
2490
 
fi
2491
 
rm -f conftest.err conftest.$ac_ext
2492
 
 
2493
 
done
2494
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2495
 
rm -f conftest.err conftest.$ac_ext
2496
 
if $ac_preproc_ok; then
2497
 
  :
2498
 
else
2499
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2500
 
See \`config.log' for more details." >&5
2501
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2502
 
See \`config.log' for more details." >&2;}
2503
 
   { (exit 1); exit 1; }; }
2504
 
fi
2505
 
 
2506
 
ac_ext=c
2507
 
ac_cpp='$CPP $CPPFLAGS'
2508
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
 
 
2512
 
if test -n "$ac_tool_prefix"; then
2513
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2514
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2515
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2516
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
2518
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2519
 
else
2520
 
  if test -n "$RANLIB"; then
2521
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2522
 
else
2523
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524
 
for as_dir in $PATH
2525
 
do
2526
 
  IFS=$as_save_IFS
2527
 
  test -z "$as_dir" && as_dir=.
2528
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2529
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2531
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532
 
    break 2
2533
 
  fi
2534
 
done
2535
 
done
2536
 
 
2537
 
fi
2538
 
fi
2539
 
RANLIB=$ac_cv_prog_RANLIB
2540
 
if test -n "$RANLIB"; then
2541
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2542
 
echo "${ECHO_T}$RANLIB" >&6
2543
 
else
2544
 
  echo "$as_me:$LINENO: result: no" >&5
2545
 
echo "${ECHO_T}no" >&6
2546
 
fi
2547
 
 
2548
 
fi
2549
 
if test -z "$ac_cv_prog_RANLIB"; then
2550
 
  ac_ct_RANLIB=$RANLIB
2551
 
  # Extract the first word of "ranlib", so it can be a program name with args.
2552
 
set dummy ranlib; ac_word=$2
2553
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2554
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2556
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2557
 
else
2558
 
  if test -n "$ac_ct_RANLIB"; then
2559
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2560
 
else
2561
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562
 
for as_dir in $PATH
2563
 
do
2564
 
  IFS=$as_save_IFS
2565
 
  test -z "$as_dir" && as_dir=.
2566
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2567
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2569
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570
 
    break 2
2571
 
  fi
2572
 
done
2573
 
done
2574
 
 
2575
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2576
 
fi
2577
 
fi
2578
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2579
 
if test -n "$ac_ct_RANLIB"; then
2580
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2581
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2582
 
else
2583
 
  echo "$as_me:$LINENO: result: no" >&5
2584
 
echo "${ECHO_T}no" >&6
2585
 
fi
2586
 
 
2587
 
  RANLIB=$ac_ct_RANLIB
2588
 
else
2589
 
  RANLIB="$ac_cv_prog_RANLIB"
2590
 
fi
2591
 
 
2592
 
# Find a good install program.  We prefer a C program (faster),
2593
 
# so one script is as good as another.  But avoid the broken or
2594
 
# incompatible versions:
2595
 
# SysV /etc/install, /usr/sbin/install
2596
 
# SunOS /usr/etc/install
2597
 
# IRIX /sbin/install
2598
 
# AIX /bin/install
2599
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2600
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2601
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2602
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2603
 
# OS/2's system install, which has a completely different semantic
2604
 
# ./install, which can be erroneously created by make from ./install.sh.
2605
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2606
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2607
 
if test -z "$INSTALL"; then
2608
 
if test "${ac_cv_path_install+set}" = set; then
2609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2610
 
else
2611
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612
 
for as_dir in $PATH
2613
 
do
2614
 
  IFS=$as_save_IFS
2615
 
  test -z "$as_dir" && as_dir=.
2616
 
  # Account for people who put trailing slashes in PATH elements.
2617
 
case $as_dir/ in
2618
 
  ./ | .// | /cC/* | \
2619
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2621
 
  /usr/ucb/* ) ;;
2622
 
  *)
2623
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2624
 
    # Don't use installbsd from OSF since it installs stuff as root
2625
 
    # by default.
2626
 
    for ac_prog in ginstall scoinst install; do
2627
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2628
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629
 
          if test $ac_prog = install &&
2630
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631
 
            # AIX install.  It has an incompatible calling convention.
2632
 
            :
2633
 
          elif test $ac_prog = install &&
2634
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635
 
            # program-specific install script used by HP pwplus--don't use.
2636
 
            :
2637
 
          else
2638
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2639
 
            break 3
2640
 
          fi
2641
 
        fi
2642
 
      done
2643
 
    done
2644
 
    ;;
2645
 
esac
2646
 
done
2647
 
 
2648
 
 
2649
 
fi
2650
 
  if test "${ac_cv_path_install+set}" = set; then
2651
 
    INSTALL=$ac_cv_path_install
2652
 
  else
2653
 
    # As a last resort, use the slow shell script.  We don't cache a
2654
 
    # path for INSTALL within a source directory, because that will
2655
 
    # break other packages using the cache if that directory is
2656
 
    # removed, or if the path is relative.
2657
 
    INSTALL=$ac_install_sh
2658
 
  fi
2659
 
fi
2660
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2661
 
echo "${ECHO_T}$INSTALL" >&6
2662
 
 
2663
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664
 
# It thinks the first close brace ends the variable substitution.
2665
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2666
 
 
2667
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2668
 
 
2669
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2670
 
 
2671
 
 
2672
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2673
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2674
 
if test "${ac_cv_c_const+set}" = set; then
2675
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2676
 
else
2677
 
  cat >conftest.$ac_ext <<_ACEOF
2678
 
/* confdefs.h.  */
2679
 
_ACEOF
2680
 
cat confdefs.h >>conftest.$ac_ext
2681
 
cat >>conftest.$ac_ext <<_ACEOF
2682
 
/* end confdefs.h.  */
2683
 
 
2684
 
int
2685
 
main ()
2686
 
{
2687
 
/* FIXME: Include the comments suggested by Paul. */
2688
 
#ifndef __cplusplus
2689
 
  /* Ultrix mips cc rejects this.  */
2690
 
  typedef int charset[2];
2691
 
  const charset x;
2692
 
  /* SunOS 4.1.1 cc rejects this.  */
2693
 
  char const *const *ccp;
2694
 
  char **p;
2695
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
2696
 
  struct point {int x, y;};
2697
 
  static struct point const zero = {0,0};
2698
 
  /* AIX XL C 1.02.0.0 rejects this.
2699
 
     It does not let you subtract one const X* pointer from another in
2700
 
     an arm of an if-expression whose if-part is not a constant
2701
 
     expression */
2702
 
  const char *g = "string";
2703
 
  ccp = &g + (g ? g-g : 0);
2704
 
  /* HPUX 7.0 cc rejects these. */
2705
 
  ++ccp;
2706
 
  p = (char**) ccp;
2707
 
  ccp = (char const *const *) p;
2708
 
  { /* SCO 3.2v4 cc rejects this.  */
2709
 
    char *t;
2710
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
2711
 
 
2712
 
    *t++ = 0;
2713
 
  }
2714
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2715
 
    int x[] = {25, 17};
2716
 
    const int *foo = &x[0];
2717
 
    ++foo;
2718
 
  }
2719
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2720
 
    typedef const int *iptr;
2721
 
    iptr p = 0;
2722
 
    ++p;
2723
 
  }
2724
 
  { /* AIX XL C 1.02.0.0 rejects this saying
2725
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2726
 
    struct s { int j; const int *ap[3]; };
2727
 
    struct s *b; b->j = 5;
2728
 
  }
2729
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2730
 
    const int foo = 10;
2731
 
  }
2732
 
#endif
2733
 
 
2734
 
  ;
2735
 
  return 0;
2736
 
}
2737
 
_ACEOF
2738
 
rm -f conftest.$ac_objext
2739
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740
 
  (eval $ac_compile) 2>conftest.er1
2741
 
  ac_status=$?
2742
 
  grep -v '^ *+' conftest.er1 >conftest.err
2743
 
  rm -f conftest.er1
2744
 
  cat conftest.err >&5
2745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
 
  (exit $ac_status); } &&
2747
 
         { ac_try='test -z "$ac_c_werror_flag"
2748
 
                         || test ! -s conftest.err'
2749
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750
 
  (eval $ac_try) 2>&5
2751
 
  ac_status=$?
2752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753
 
  (exit $ac_status); }; } &&
2754
 
         { ac_try='test -s conftest.$ac_objext'
2755
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756
 
  (eval $ac_try) 2>&5
2757
 
  ac_status=$?
2758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759
 
  (exit $ac_status); }; }; then
2760
 
  ac_cv_c_const=yes
2761
 
else
2762
 
  echo "$as_me: failed program was:" >&5
2763
 
sed 's/^/| /' conftest.$ac_ext >&5
2764
 
 
2765
 
ac_cv_c_const=no
2766
 
fi
2767
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768
 
fi
2769
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2770
 
echo "${ECHO_T}$ac_cv_c_const" >&6
2771
 
if test $ac_cv_c_const = no; then
2772
 
 
2773
 
cat >>confdefs.h <<\_ACEOF
2774
 
#define const
2775
 
_ACEOF
2776
 
 
2777
 
fi
2778
 
 
2779
 
 
2780
 
 
2781
 
echo "$as_me:$LINENO: checking for egrep" >&5
2782
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2783
 
if test "${ac_cv_prog_egrep+set}" = set; then
2784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2785
 
else
2786
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2787
 
    then ac_cv_prog_egrep='grep -E'
2788
 
    else ac_cv_prog_egrep='egrep'
2789
 
    fi
2790
 
fi
2791
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2792
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2793
 
 EGREP=$ac_cv_prog_egrep
2794
 
 
2795
 
 
2796
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2797
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2798
 
if test "${ac_cv_header_stdc+set}" = set; then
2799
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2800
 
else
2801
 
  cat >conftest.$ac_ext <<_ACEOF
2802
 
/* confdefs.h.  */
2803
 
_ACEOF
2804
 
cat confdefs.h >>conftest.$ac_ext
2805
 
cat >>conftest.$ac_ext <<_ACEOF
2806
 
/* end confdefs.h.  */
2807
 
#include <stdlib.h>
2808
 
#include <stdarg.h>
2809
 
#include <string.h>
2810
 
#include <float.h>
2811
 
 
2812
 
int
2813
 
main ()
2814
 
{
2815
 
 
2816
 
  ;
2817
 
  return 0;
2818
 
}
2819
 
_ACEOF
2820
 
rm -f conftest.$ac_objext
2821
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822
 
  (eval $ac_compile) 2>conftest.er1
2823
 
  ac_status=$?
2824
 
  grep -v '^ *+' conftest.er1 >conftest.err
2825
 
  rm -f conftest.er1
2826
 
  cat conftest.err >&5
2827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828
 
  (exit $ac_status); } &&
2829
 
         { ac_try='test -z "$ac_c_werror_flag"
2830
 
                         || test ! -s conftest.err'
2831
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832
 
  (eval $ac_try) 2>&5
2833
 
  ac_status=$?
2834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
 
  (exit $ac_status); }; } &&
2836
 
         { ac_try='test -s conftest.$ac_objext'
2837
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838
 
  (eval $ac_try) 2>&5
2839
 
  ac_status=$?
2840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
 
  (exit $ac_status); }; }; then
2842
 
  ac_cv_header_stdc=yes
2843
 
else
2844
 
  echo "$as_me: failed program was:" >&5
2845
 
sed 's/^/| /' conftest.$ac_ext >&5
2846
 
 
2847
 
ac_cv_header_stdc=no
2848
 
fi
2849
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850
 
 
2851
 
if test $ac_cv_header_stdc = yes; then
2852
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2853
 
  cat >conftest.$ac_ext <<_ACEOF
2854
 
/* confdefs.h.  */
2855
 
_ACEOF
2856
 
cat confdefs.h >>conftest.$ac_ext
2857
 
cat >>conftest.$ac_ext <<_ACEOF
2858
 
/* end confdefs.h.  */
2859
 
#include <string.h>
2860
 
 
2861
 
_ACEOF
2862
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2863
 
  $EGREP "memchr" >/dev/null 2>&1; then
2864
 
  :
2865
 
else
2866
 
  ac_cv_header_stdc=no
2867
 
fi
2868
 
rm -f conftest*
2869
 
 
2870
 
fi
2871
 
 
2872
 
if test $ac_cv_header_stdc = yes; then
2873
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2874
 
  cat >conftest.$ac_ext <<_ACEOF
2875
 
/* confdefs.h.  */
2876
 
_ACEOF
2877
 
cat confdefs.h >>conftest.$ac_ext
2878
 
cat >>conftest.$ac_ext <<_ACEOF
2879
 
/* end confdefs.h.  */
2880
 
#include <stdlib.h>
2881
 
 
2882
 
_ACEOF
2883
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884
 
  $EGREP "free" >/dev/null 2>&1; then
2885
 
  :
2886
 
else
2887
 
  ac_cv_header_stdc=no
2888
 
fi
2889
 
rm -f conftest*
2890
 
 
2891
 
fi
2892
 
 
2893
 
if test $ac_cv_header_stdc = yes; then
2894
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2895
 
  if test "$cross_compiling" = yes; then
2896
 
  :
2897
 
else
2898
 
  cat >conftest.$ac_ext <<_ACEOF
2899
 
/* confdefs.h.  */
2900
 
_ACEOF
2901
 
cat confdefs.h >>conftest.$ac_ext
2902
 
cat >>conftest.$ac_ext <<_ACEOF
2903
 
/* end confdefs.h.  */
2904
 
#include <ctype.h>
2905
 
#if ((' ' & 0x0FF) == 0x020)
2906
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2907
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2908
 
#else
2909
 
# define ISLOWER(c) \
2910
 
                   (('a' <= (c) && (c) <= 'i') \
2911
 
                     || ('j' <= (c) && (c) <= 'r') \
2912
 
                     || ('s' <= (c) && (c) <= 'z'))
2913
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2914
 
#endif
2915
 
 
2916
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2917
 
int
2918
 
main ()
2919
 
{
2920
 
  int i;
2921
 
  for (i = 0; i < 256; i++)
2922
 
    if (XOR (islower (i), ISLOWER (i))
2923
 
        || toupper (i) != TOUPPER (i))
2924
 
      exit(2);
2925
 
  exit (0);
2926
 
}
2927
 
_ACEOF
2928
 
rm -f conftest$ac_exeext
2929
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930
 
  (eval $ac_link) 2>&5
2931
 
  ac_status=$?
2932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935
 
  (eval $ac_try) 2>&5
2936
 
  ac_status=$?
2937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938
 
  (exit $ac_status); }; }; then
2939
 
  :
2940
 
else
2941
 
  echo "$as_me: program exited with status $ac_status" >&5
2942
 
echo "$as_me: failed program was:" >&5
2943
 
sed 's/^/| /' conftest.$ac_ext >&5
2944
 
 
2945
 
( exit $ac_status )
2946
 
ac_cv_header_stdc=no
2947
 
fi
2948
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949
 
fi
2950
 
fi
2951
 
fi
2952
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2953
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2954
 
if test $ac_cv_header_stdc = yes; then
2955
 
 
2956
 
cat >>confdefs.h <<\_ACEOF
2957
 
#define STDC_HEADERS 1
2958
 
_ACEOF
2959
 
 
2960
 
fi
2961
 
 
2962
 
 
2963
 
 
2964
 
 
2965
 
echo "$as_me:$LINENO: checking for appropriate compile flags" >&5
2966
 
echo $ECHO_N "checking for appropriate compile flags... $ECHO_C" >&6
2967
 
 
2968
 
CFLAGS="$CFLAGS $OTP_EXTRA_FLAGS"
2969
 
 
2970
 
if test "X$host" = "Xwin32"; then
2971
 
  RX_CFLAGS="$CFLAGS"
2972
 
else
2973
 
  case $host_os in
2974
 
    darwin*)
2975
 
        CFLAGS="$CFLAGS -no-cpp-precomp"
2976
 
        ;;
2977
 
  esac
2978
 
 
2979
 
  if test "x$GCC" = xyes; then
2980
 
        RX_CFLAGS="$CFLAGS -fPIC $RX_CFLAGS"
2981
 
  else
2982
 
        RX_CFLAGS="$CFLAGS $RX_CFLAGS"
2983
 
  fi
2984
 
fi
2985
 
echo "$as_me:$LINENO: result: $RX_CFLAGS" >&5
2986
 
echo "${ECHO_T}$RX_CFLAGS" >&6
2987
 
 
2988
 
 
2989
 
for ac_prog in ld.sh ld
2990
 
do
2991
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2992
 
set dummy $ac_prog; ac_word=$2
2993
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2994
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2995
 
if test "${ac_cv_prog_RX_LD+set}" = set; then
2996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2997
 
else
2998
 
  if test -n "$RX_LD"; then
2999
 
  ac_cv_prog_RX_LD="$RX_LD" # Let the user override the test.
3000
 
else
3001
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002
 
for as_dir in $PATH
3003
 
do
3004
 
  IFS=$as_save_IFS
3005
 
  test -z "$as_dir" && as_dir=.
3006
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3007
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008
 
    ac_cv_prog_RX_LD="$ac_prog"
3009
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010
 
    break 2
3011
 
  fi
3012
 
done
3013
 
done
3014
 
 
3015
 
fi
3016
 
fi
3017
 
RX_LD=$ac_cv_prog_RX_LD
3018
 
if test -n "$RX_LD"; then
3019
 
  echo "$as_me:$LINENO: result: $RX_LD" >&5
3020
 
echo "${ECHO_T}$RX_LD" >&6
3021
 
else
3022
 
  echo "$as_me:$LINENO: result: no" >&5
3023
 
echo "${ECHO_T}no" >&6
3024
 
fi
3025
 
 
3026
 
  test -n "$RX_LD" && break
3027
 
done
3028
 
test -n "$RX_LD" || RX_LD="no_ld"
3029
 
 
3030
 
if test "$RX_LD" = no_ld; then
3031
 
  { { echo "$as_me:$LINENO: error: ld required but not found!" >&5
3032
 
echo "$as_me: error: ld required but not found!" >&2;}
3033
 
   { (exit 1); exit 1; }; }
3034
 
fi
3035
 
 
3036
 
echo "$as_me:$LINENO: checking for linker flags for loadable drivers" >&5
3037
 
echo $ECHO_N "checking for linker flags for loadable drivers... $ECHO_C" >&6
3038
 
case $host_os in
3039
 
        win32)
3040
 
                RX_LDFLAGS="-dll"
3041
 
        ;;
3042
 
        *)
3043
 
                RX_LDFLAGS="-G"
3044
 
        ;;
3045
 
esac
3046
 
echo "$as_me:$LINENO: result: $RX_LDFLAGS" >&5
3047
 
echo "${ECHO_T}$RX_LDFLAGS" >&6
3048
 
 
3049
 
 
3050
 
 
3051
 
                              ac_config_files="$ac_config_files priv/rx-1.5/rx/Makefile:priv/rx-1.5/rx/Makefile.in priv/$host/Makefile:priv/Makefile.in c_src/$host/Makefile:c_src/Makefile.in"
 
1310
          ac_config_files="$ac_config_files priv/$host/Makefile:priv/Makefile.in"
3052
1311
cat >confcache <<\_ACEOF
3053
1312
# This file is a shell script that caches the results of configure
3054
1313
# tests run on this system so they can be shared between configure
3505
1764
This config.status script is free software; the Free Software Foundation
3506
1765
gives unlimited permission to copy, distribute and modify it."
3507
1766
srcdir=$srcdir
3508
 
INSTALL="$INSTALL"
3509
1767
_ACEOF
3510
1768
 
3511
1769
cat >>$CONFIG_STATUS <<\_ACEOF
3600
1858
do
3601
1859
  case "$ac_config_target" in
3602
1860
  # Handling of arguments.
3603
 
  "priv/rx-1.5/rx/Makefile" ) CONFIG_FILES="$CONFIG_FILES priv/rx-1.5/rx/Makefile:priv/rx-1.5/rx/Makefile.in" ;;
3604
1861
  "priv/$host/Makefile" ) CONFIG_FILES="$CONFIG_FILES priv/$host/Makefile:priv/Makefile.in" ;;
3605
 
  "c_src/$host/Makefile" ) CONFIG_FILES="$CONFIG_FILES c_src/$host/Makefile:c_src/Makefile.in" ;;
3606
1862
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3607
1863
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3608
1864
   { (exit 1); exit 1; }; };;
3695
1951
s,@host_vendor@,$host_vendor,;t t
3696
1952
s,@host_os@,$host_os,;t t
3697
1953
s,@TARGET@,$TARGET,;t t
3698
 
s,@CC@,$CC,;t t
3699
 
s,@CFLAGS@,$CFLAGS,;t t
3700
 
s,@LDFLAGS@,$LDFLAGS,;t t
3701
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
3702
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
3703
 
s,@EXEEXT@,$EXEEXT,;t t
3704
 
s,@OBJEXT@,$OBJEXT,;t t
3705
 
s,@CPP@,$CPP,;t t
3706
 
s,@RANLIB@,$RANLIB,;t t
3707
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3708
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3709
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3710
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3711
 
s,@EGREP@,$EGREP,;t t
3712
 
s,@opt_objs@,$opt_objs,;t t
3713
 
s,@RX_CFLAGS@,$RX_CFLAGS,;t t
3714
 
s,@RX_LD@,$RX_LD,;t t
3715
 
s,@RX_LDFLAGS@,$RX_LDFLAGS,;t t
3716
1954
s,@LIBOBJS@,$LIBOBJS,;t t
3717
1955
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3718
1956
CEOF
3876
2114
esac
3877
2115
 
3878
2116
 
3879
 
  case $INSTALL in
3880
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3881
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3882
 
  esac
3883
2117
 
3884
2118
  if test x"$ac_file" != x-; then
3885
2119
    { echo "$as_me:$LINENO: creating $ac_file" >&5
3941
2175
s,@abs_builddir@,$ac_abs_builddir,;t t
3942
2176
s,@top_builddir@,$ac_top_builddir,;t t
3943
2177
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3944
 
s,@INSTALL@,$ac_INSTALL,;t t
3945
2178
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3946
2179
  rm -f $tmp/stdin
3947
2180
  if test x"$ac_file" != x-; then