374
1264
ac_prev=x_includes ;;
375
1265
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376
1266
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377
x_includes="$ac_optarg" ;;
1267
x_includes=$ac_optarg ;;
379
1269
-x-libraries | --x-libraries | --x-librarie | --x-librari \
380
1270
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381
1271
ac_prev=x_libraries ;;
382
1272
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383
1273
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384
x_libraries="$ac_optarg" ;;
1274
x_libraries=$ac_optarg ;;
386
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1276
-*) as_fn_error "unrecognized option: \`$ac_option'
1277
Try \`$0 --help' for more information."
390
varname=`echo "$ac_option"|sed -e 's/=.*//'`
391
# Reject names that aren't valid shell variable names.
392
if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then
393
{ echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }
395
val="`echo "$ac_option"|sed 's/[^=]*=//'`"
396
test -n "$verbose" && echo " setting shell variable $varname to $val"
397
eval "$varname='$val'"
398
eval "export $varname" ;;
1281
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282
# Reject names that are not valid shell variable names.
1283
case $ac_envvar in #(
1284
'' | [0-9]* | *[!_$as_cr_alnum]* )
1285
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1287
eval $ac_envvar=\$ac_optarg
1288
export $ac_envvar ;;
401
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402
echo "configure: warning: $ac_option: invalid host type" 1>&2
404
if test "x$nonopt" != xNONE; then
405
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1291
# FIXME: should be removed in autoconf 3.0.
1292
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
413
1301
if test -n "$ac_prev"; then
414
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
# File descriptor usage:
422
# 2 errors and warnings
423
# 3 some systems may open it to /dev/tty
424
# 4 used on the Kubota Titan
425
# 6 checking for... messages and results
426
# 5 compiler messages saved in config.log
427
if test "$silent" = yes; then
435
This file contains any messages produced by compilers while
436
running configure, to aid debugging if configure makes a mistake.
439
# Strip out --no-create and --no-recursion so they do not pile up.
440
# Also quote any args containing shell metacharacters.
1302
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303
as_fn_error "missing argument to $ac_option"
1306
if test -n "$ac_unrecognized_opts"; then
1307
case $enable_option_checking in
1309
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1310
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314
# Check all directory arguments for consistency.
1315
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316
datadir sysconfdir sharedstatedir localstatedir includedir \
1317
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318
libdir localedir mandir
445
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
446
| --no-cr | --no-c) ;;
447
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
448
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
1320
eval ac_val=\$$ac_var
1321
# Remove trailing slashes.
1324
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325
eval $ac_var=\$ac_val;;
1327
# Be sure to have absolute directory names.
1329
[\\/$]* | ?:[\\/]* ) continue;;
1330
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
456
# Only set these to C if already set. These must not be set unconditionally
457
# because not all systems understand e.g. LANG=C (notably SCO).
458
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459
# Non-C LC_CTYPE values break the ctype check.
460
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465
# confdefs.h avoids OS command line length limits that DEFS can exceed.
466
rm -rf conftest* confdefs.h
467
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470
# A filename unique to this package, relative to the directory that
471
# configure is in, which we can look for to find out if srcdir is correct.
472
ac_unique_file=jcmaster.c
1335
# There might be people who depend on the old broken behavior: `$host'
1336
# used to hold the argument of --host etc.
1337
# FIXME: To remove some day.
1340
target=$target_alias
1342
# FIXME: To remove some day.
1343
if test "x$host_alias" != x; then
1344
if test "x$build_alias" = x; then
1345
cross_compiling=maybe
1346
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347
If a cross compiler is detected then cross compile mode will be used." >&2
1348
elif test "x$build_alias" != "x$host_alias"; then
1354
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
test "$silent" = yes && exec 6>/dev/null
1359
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360
ac_ls_di=`ls -di .` &&
1361
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362
as_fn_error "working directory cannot be determined"
1363
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364
as_fn_error "pwd does not report name of working directory"
474
1367
# Find the source files, if location was not specified.
475
1368
if test -z "$srcdir"; then
476
1369
ac_srcdir_defaulted=yes
477
# Try the directory containing this script, then its parent.
479
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1370
# Try the directory containing this script, then the parent directory.
1371
ac_confdir=`$as_dirname -- "$as_myself" ||
1372
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373
X"$as_myself" : 'X\(//\)[^/]' \| \
1374
X"$as_myself" : 'X\(//\)$' \| \
1375
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376
$as_echo X"$as_myself" |
1377
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
481
1394
srcdir=$ac_confdir
482
if test ! -r $srcdir/$ac_unique_file; then
1395
if test ! -r "$srcdir/$ac_unique_file"; then
486
1399
ac_srcdir_defaulted=no
488
if test ! -r $srcdir/$ac_unique_file; then
489
if test "$ac_srcdir_defaulted" = yes; then
490
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
# Prefer explicitly selected file to automatically selected ones.
498
if test -z "$CONFIG_SITE"; then
499
if test "x$prefix" != xNONE; then
500
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505
for ac_site_file in $CONFIG_SITE; do
506
if test -r "$ac_site_file"; then
507
echo "loading site script $ac_site_file"
1401
if test ! -r "$srcdir/$ac_unique_file"; then
1402
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1405
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1409
# When building in place, set srcdir=.
1410
if test "$ac_abs_confdir" = "$ac_pwd"; then
1413
# Remove unnecessary trailing slashes from srcdir.
1414
# Double slashes in file names in object file debugging info
1415
# mess up M-x gdb in Emacs.
1417
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419
for ac_var in $ac_precious_vars; do
1420
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421
eval ac_env_${ac_var}_value=\$${ac_var}
1422
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427
# Report the --help message.
1429
if test "$ac_init_help" = "long"; then
1430
# Omit some internal or obsolete options to make the list less imposing.
1431
# This message is too long to be a string in the A/UX 3.1 sh.
1433
\`configure' configures libjpeg 6.2.1 to adapt to many kinds of systems.
1435
Usage: $0 [OPTION]... [VAR=VALUE]...
1437
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438
VAR=VALUE. See below for descriptions of some of the useful variables.
1440
Defaults for the options are specified in brackets.
1443
-h, --help display this help and exit
1444
--help=short display options specific to this package
1445
--help=recursive display the short help of all the included packages
1446
-V, --version display version information and exit
1447
-q, --quiet, --silent do not print \`checking...' messages
1448
--cache-file=FILE cache test results in FILE [disabled]
1449
-C, --config-cache alias for \`--cache-file=config.cache'
1450
-n, --no-create do not create output files
1451
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
Installation directories:
1454
--prefix=PREFIX install architecture-independent files in PREFIX
1455
[$ac_default_prefix]
1456
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459
By default, \`make install' will install all the files in
1460
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462
for instance \`--prefix=\$HOME'.
1464
For better control, use the options below.
1466
Fine tuning of the installation directories:
1467
--bindir=DIR user executables [EPREFIX/bin]
1468
--sbindir=DIR system admin executables [EPREFIX/sbin]
1469
--libexecdir=DIR program executables [EPREFIX/libexec]
1470
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473
--libdir=DIR object code libraries [EPREFIX/lib]
1474
--includedir=DIR C header files [PREFIX/include]
1475
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1476
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478
--infodir=DIR info documentation [DATAROOTDIR/info]
1479
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480
--mandir=DIR man documentation [DATAROOTDIR/man]
1481
--docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1482
--htmldir=DIR html documentation [DOCDIR]
1483
--dvidir=DIR dvi documentation [DOCDIR]
1484
--pdfdir=DIR pdf documentation [DOCDIR]
1485
--psdir=DIR ps documentation [DOCDIR]
1491
--program-prefix=PREFIX prepend PREFIX to installed program names
1492
--program-suffix=SUFFIX append SUFFIX to installed program names
1493
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
--build=BUILD configure for building on BUILD [guessed]
1497
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1498
--target=TARGET configure for building compilers for TARGET [HOST]
1502
if test -n "$ac_init_help"; then
1503
case $ac_init_help in
1504
short | recursive ) echo "Configuration of libjpeg 6.2.1:";;
1509
--disable-option-checking ignore unrecognized --enable/--with options
1510
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512
--enable-silent-rules less verbose build output (undo: `make V=1')
1513
--disable-silent-rules verbose build output (undo: `make V=0')
1514
--disable-dependency-tracking speeds up one-time build
1515
--enable-dependency-tracking do not reject slow dependency extractors
1516
--enable-maintainer-mode enable make rules and dependencies not useful
1517
(and sometimes confusing) to the casual installer
1518
--enable-ld-version-script
1519
enable linker version script (default is enabled
1521
--enable-shared[=PKGS] build shared libraries [default=yes]
1522
--enable-static[=PKGS] build static libraries [default=yes]
1523
--enable-fast-install[=PKGS]
1524
optimize for fast installation [default=yes]
1525
--disable-libtool-lock avoid locking (might break parallel builds)
1526
--enable-maxmem=N enable use of temp files, set max mem usage to N MB
1529
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531
--with-pic try to use only PIC/non-PIC objects [default=use
1533
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1535
Some influential environment variables:
1536
CC C compiler command
1537
CFLAGS C compiler flags
1538
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539
nonstandard directory <lib dir>
1540
LIBS libraries to pass to the linker, e.g. -l<library>
1541
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542
you have headers in a nonstandard directory <include dir>
1545
Use these variables to override the choices made by `configure' or to help
1546
it to find libraries and programs with nonstandard names/locations.
1548
Report bugs to the package provider.
1553
if test "$ac_init_help" = "recursive"; then
1554
# If there are subdirs, report their specific --help.
1555
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556
test -d "$ac_dir" ||
1557
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565
# A ".." for each directory in $ac_dir_suffix.
1566
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567
case $ac_top_builddir_sub in
1568
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572
ac_abs_top_builddir=$ac_pwd
1573
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574
# for backward compatibility:
1575
ac_top_builddir=$ac_top_build_prefix
1578
.) # We are building in place.
1580
ac_top_srcdir=$ac_top_builddir_sub
1581
ac_abs_top_srcdir=$ac_pwd ;;
1582
[\\/]* | ?:[\\/]* ) # Absolute name.
1583
ac_srcdir=$srcdir$ac_dir_suffix;
1584
ac_top_srcdir=$srcdir
1585
ac_abs_top_srcdir=$srcdir ;;
1587
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588
ac_top_srcdir=$ac_top_build_prefix$srcdir
1589
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
cd "$ac_dir" || { ac_status=$?; continue; }
1594
# Check for guested configure.
1595
if test -f "$ac_srcdir/configure.gnu"; then
1597
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598
elif test -f "$ac_srcdir/configure"; then
1600
$SHELL "$ac_srcdir/configure" --help=recursive
1602
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604
cd "$ac_pwd" || { ac_status=$?; break; }
1608
test -n "$ac_init_help" && exit $ac_status
1609
if $ac_init_version; then
1611
libjpeg configure 6.2.1
1612
generated by GNU Autoconf 2.65
1614
Copyright (C) 2009 Free Software Foundation, Inc.
1615
This configure script is free software; the Free Software Foundation
1616
gives unlimited permission to copy, distribute and modify it.
1621
## ------------------------ ##
1622
## Autoconf initialization. ##
1623
## ------------------------ ##
1625
# ac_fn_c_try_compile LINENO
1626
# --------------------------
1627
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628
ac_fn_c_try_compile ()
1630
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631
rm -f conftest.$ac_objext
1632
if { { ac_try="$ac_compile"
1634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635
*) ac_try_echo=$ac_try;;
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638
$as_echo "$ac_try_echo"; } >&5
1639
(eval "$ac_compile") 2>conftest.err
1641
if test -s conftest.err; then
1642
grep -v '^ *+' conftest.err >conftest.er1
1643
cat conftest.er1 >&5
1644
mv -f conftest.er1 conftest.err
1646
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647
test $ac_status = 0; } && {
1648
test -z "$ac_c_werror_flag" ||
1649
test ! -s conftest.err
1650
} && test -s conftest.$ac_objext; then :
1653
$as_echo "$as_me: failed program was:" >&5
1654
sed 's/^/| /' conftest.$ac_ext >&5
1658
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659
as_fn_set_status $ac_retval
1661
} # ac_fn_c_try_compile
1663
# ac_fn_c_try_cpp LINENO
1664
# ----------------------
1665
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669
if { { ac_try="$ac_cpp conftest.$ac_ext"
1671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672
*) ac_try_echo=$ac_try;;
1674
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675
$as_echo "$ac_try_echo"; } >&5
1676
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678
if test -s conftest.err; then
1679
grep -v '^ *+' conftest.err >conftest.er1
1680
cat conftest.er1 >&5
1681
mv -f conftest.er1 conftest.err
1683
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684
test $ac_status = 0; } >/dev/null && {
1685
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686
test ! -s conftest.err
1690
$as_echo "$as_me: failed program was:" >&5
1691
sed 's/^/| /' conftest.$ac_ext >&5
1695
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696
as_fn_set_status $ac_retval
1700
# ac_fn_c_try_run LINENO
1701
# ----------------------
1702
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703
# that executables *can* be run.
1706
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707
if { { ac_try="$ac_link"
1709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710
*) ac_try_echo=$ac_try;;
1712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713
$as_echo "$ac_try_echo"; } >&5
1714
(eval "$ac_link") 2>&5
1716
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718
{ { case "(($ac_try" in
1719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720
*) ac_try_echo=$ac_try;;
1722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723
$as_echo "$ac_try_echo"; } >&5
1724
(eval "$ac_try") 2>&5
1726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727
test $ac_status = 0; }; }; then :
1730
$as_echo "$as_me: program exited with status $ac_status" >&5
1731
$as_echo "$as_me: failed program was:" >&5
1732
sed 's/^/| /' conftest.$ac_ext >&5
1734
ac_retval=$ac_status
1736
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
as_fn_set_status $ac_retval
1742
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1743
# -------------------------------------------------------
1744
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1745
# the include files in INCLUDES and setting the cache variable VAR
1747
ac_fn_c_check_header_mongrel ()
1749
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752
$as_echo_n "checking for $2... " >&6; }
1753
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754
$as_echo_n "(cached) " >&6
1757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758
$as_echo "$ac_res" >&6; }
1760
# Is the header compilable?
1761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1762
$as_echo_n "checking $2 usability... " >&6; }
1763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764
/* end confdefs.h. */
1768
if ac_fn_c_try_compile "$LINENO"; then :
1769
ac_header_compiler=yes
1771
ac_header_compiler=no
1773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1775
$as_echo "$ac_header_compiler" >&6; }
1777
# Is the header present?
1778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1779
$as_echo_n "checking $2 presence... " >&6; }
1780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781
/* end confdefs.h. */
1784
if ac_fn_c_try_cpp "$LINENO"; then :
1785
ac_header_preproc=yes
1787
ac_header_preproc=no
1789
rm -f conftest.err conftest.$ac_ext
1790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1791
$as_echo "$ac_header_preproc" >&6; }
1793
# So? What about this header?
1794
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1797
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1803
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1805
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1806
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1807
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1808
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1809
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815
$as_echo_n "checking for $2... " >&6; }
1816
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817
$as_echo_n "(cached) " >&6
1819
eval "$3=\$ac_header_compiler"
1822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823
$as_echo "$ac_res" >&6; }
1825
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
} # ac_fn_c_check_header_mongrel
1829
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830
# -------------------------------------------------------
1831
# Tests whether HEADER exists and can be compiled using the include files in
1832
# INCLUDES, setting the cache variable VAR accordingly.
1833
ac_fn_c_check_header_compile ()
1835
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837
$as_echo_n "checking for $2... " >&6; }
1838
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839
$as_echo_n "(cached) " >&6
1841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842
/* end confdefs.h. */
1846
if ac_fn_c_try_compile "$LINENO"; then :
1851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855
$as_echo "$ac_res" >&6; }
1856
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858
} # ac_fn_c_check_header_compile
1860
# ac_fn_c_try_link LINENO
1861
# -----------------------
1862
# Try to link conftest.$ac_ext, and return whether this succeeded.
1865
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866
rm -f conftest.$ac_objext conftest$ac_exeext
1867
if { { ac_try="$ac_link"
1869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870
*) ac_try_echo=$ac_try;;
1872
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873
$as_echo "$ac_try_echo"; } >&5
1874
(eval "$ac_link") 2>conftest.err
1876
if test -s conftest.err; then
1877
grep -v '^ *+' conftest.err >conftest.er1
1878
cat conftest.er1 >&5
1879
mv -f conftest.er1 conftest.err
1881
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882
test $ac_status = 0; } && {
1883
test -z "$ac_c_werror_flag" ||
1884
test ! -s conftest.err
1885
} && test -s conftest$ac_exeext && {
1886
test "$cross_compiling" = yes ||
1887
$as_test_x conftest$ac_exeext
1891
$as_echo "$as_me: failed program was:" >&5
1892
sed 's/^/| /' conftest.$ac_ext >&5
1896
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898
# interfere with the next link command; also delete a directory that is
1899
# left behind by Apple's compiler. We do this before executing the actions.
1900
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
as_fn_set_status $ac_retval
1904
} # ac_fn_c_try_link
1906
# ac_fn_c_check_func LINENO FUNC VAR
1907
# ----------------------------------
1908
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1909
ac_fn_c_check_func ()
1911
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913
$as_echo_n "checking for $2... " >&6; }
1914
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915
$as_echo_n "(cached) " >&6
1917
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918
/* end confdefs.h. */
1919
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921
#define $2 innocuous_$2
1923
/* System header to define __stub macros and hopefully few prototypes,
1924
which can conflict with char $2 (); below.
1925
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926
<limits.h> exists even on freestanding compilers. */
1929
# include <limits.h>
1931
# include <assert.h>
1936
/* Override any GCC internal prototype to avoid an error.
1937
Use char because int might match the return type of a GCC
1938
builtin and then its argument prototype would still apply. */
1943
/* The GNU C library defines this for functions which it implements
1944
to always fail with ENOSYS. Some functions are actually named
1945
something starting with __ and the normal name is an alias. */
1946
#if defined __stub_$2 || defined __stub___$2
1958
if ac_fn_c_try_link "$LINENO"; then :
1963
rm -f core conftest.err conftest.$ac_objext \
1964
conftest$ac_exeext conftest.$ac_ext
1967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968
$as_echo "$ac_res" >&6; }
1969
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
} # ac_fn_c_check_func
1972
cat >config.log <<_ACEOF
1973
This file contains any messages produced by compilers while
1974
running configure, to aid debugging if configure makes a mistake.
1976
It was created by libjpeg $as_me 6.2.1, which was
1977
generated by GNU Autoconf 2.65. Invocation command line was
1989
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012
test -z "$as_dir" && as_dir=.
2013
$as_echo "PATH: $as_dir"
2029
# Keep a trace of the command line.
2030
# Strip out --no-create and --no-recursion so they do not pile up.
2031
# Strip out --silent because we don't want to record it for future runs.
2032
# Also quote any args containing shell meta-characters.
2033
# Make two passes to allow for proper duplicate-argument suppression.
2037
ac_must_keep_next=false
2043
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045
| -silent | --silent | --silen | --sile | --sil)
2048
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2053
as_fn_append ac_configure_args1 " '$ac_arg'"
2054
if test $ac_must_keep_next = true; then
2055
ac_must_keep_next=false # Got value, back to normal.
2058
*=* | --config-cache | -C | -disable-* | --disable-* \
2059
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061
| -with-* | --with-* | -without-* | --without-* | --x)
2062
case "$ac_configure_args0 " in
2063
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066
-* ) ac_must_keep_next=true ;;
2069
as_fn_append ac_configure_args " '$ac_arg'"
2074
{ ac_configure_args0=; unset ac_configure_args0;}
2075
{ ac_configure_args1=; unset ac_configure_args1;}
2077
# When interrupted or exit'd, cleanup temporary files, and complete
2078
# config.log. We remove comments because anyway the quotes in there
2079
# would cause problems or look ugly.
2080
# WARNING: Use '\'' to represent an apostrophe within the trap.
2081
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082
trap 'exit_status=$?
2083
# Save into config.log some information that might help in debugging.
2088
## ---------------- ##
2089
## Cache variables. ##
2090
## ---------------- ##
2093
# The following way of writing the cache mishandles newlines in values,
2095
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096
eval ac_val=\$$ac_var
2100
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104
_ | IFS | as_nl) ;; #(
2105
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106
*) { eval $ac_var=; unset $ac_var;} ;;
2111
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112
*${as_nl}ac_space=\ *)
2114
"s/'\''/'\''\\\\'\'''\''/g;
2115
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126
## ----------------- ##
2127
## Output variables. ##
2128
## ----------------- ##
2131
for ac_var in $ac_subst_vars
2133
eval ac_val=\$$ac_var
2135
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137
$as_echo "$ac_var='\''$ac_val'\''"
2141
if test -n "$ac_subst_files"; then
2143
## ------------------- ##
2144
## File substitutions. ##
2145
## ------------------- ##
2148
for ac_var in $ac_subst_files
2150
eval ac_val=\$$ac_var
2152
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154
$as_echo "$ac_var='\''$ac_val'\''"
2159
if test -s confdefs.h; then
2169
test "$ac_signal" != 0 &&
2170
$as_echo "$as_me: caught signal $ac_signal"
2171
$as_echo "$as_me: exit $exit_status"
2173
rm -f core *.core core.conftest.* &&
2174
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177
for ac_signal in 1 2 13 15; do
2178
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2183
rm -f -r conftest* confdefs.h
2185
$as_echo "/* confdefs.h */" > confdefs.h
2187
# Predefined preprocessor variables.
2189
cat >>confdefs.h <<_ACEOF
2190
#define PACKAGE_NAME "$PACKAGE_NAME"
2193
cat >>confdefs.h <<_ACEOF
2194
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197
cat >>confdefs.h <<_ACEOF
2198
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2201
cat >>confdefs.h <<_ACEOF
2202
#define PACKAGE_STRING "$PACKAGE_STRING"
2205
cat >>confdefs.h <<_ACEOF
2206
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209
cat >>confdefs.h <<_ACEOF
2210
#define PACKAGE_URL "$PACKAGE_URL"
2214
# Let the site file select an alternate cache file if it wants to.
2215
# Prefer an explicitly selected file to automatically selected ones.
2218
if test -n "$CONFIG_SITE"; then
2219
ac_site_file1=$CONFIG_SITE
2220
elif test "x$prefix" != xNONE; then
2221
ac_site_file1=$prefix/share/config.site
2222
ac_site_file2=$prefix/etc/config.site
2224
ac_site_file1=$ac_default_prefix/share/config.site
2225
ac_site_file2=$ac_default_prefix/etc/config.site
2227
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229
test "x$ac_site_file" = xNONE && continue
2230
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233
sed 's/^/| /' "$ac_site_file" >&5
508
2234
. "$ac_site_file"
514
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515
ac_cpp='$CPP $CPPFLAGS'
516
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518
cross_compiling=$ac_cv_prog_cc_cross
520
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529
ac_n= ac_c='\c' ac_t=
534
# Extract the first word of "gcc", so it can be a program name with args.
535
set dummy gcc; ac_word=$2
536
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
537
echo "configure:538: checking for $ac_word" >&5
538
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539
echo $ac_n "(cached) $ac_c" 1>&6
541
if test -n "$CC"; then
542
ac_cv_prog_CC="$CC" # Let the user override the test.
544
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
545
for ac_dir in $PATH; do
546
test -z "$ac_dir" && ac_dir=.
547
if test -f $ac_dir/$ac_word; then
556
if test -n "$CC"; then
557
echo "$ac_t""$CC" 1>&6
559
echo "$ac_t""no" 1>&6
562
if test -z "$CC"; then
563
# Extract the first word of "cc", so it can be a program name with args.
564
set dummy cc; ac_word=$2
565
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566
echo "configure:567: checking for $ac_word" >&5
567
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568
echo $ac_n "(cached) $ac_c" 1>&6
570
if test -n "$CC"; then
571
ac_cv_prog_CC="$CC" # Let the user override the test.
573
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
575
for ac_dir in $PATH; do
576
test -z "$ac_dir" && ac_dir=.
577
if test -f $ac_dir/$ac_word; then
578
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
587
if test $ac_prog_rejected = yes; then
588
# We found a bogon in the path, so make sure we never use it.
589
set dummy $ac_cv_prog_CC
591
if test $# -gt 0; then
592
# We chose a different compiler from the bogus one.
593
# However, it has the same basename, so the bogon will be chosen
594
# first if we set CC to just the basename; use the full file name.
596
set dummy "$ac_dir/$ac_word" "$@"
604
if test -n "$CC"; then
605
echo "$ac_t""$CC" 1>&6
607
echo "$ac_t""no" 1>&6
610
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
613
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
614
echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
617
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
618
ac_cpp='$CPP $CPPFLAGS'
619
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
620
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
621
cross_compiling=$ac_cv_prog_cc_cross
623
cat > conftest.$ac_ext <<EOF
624
#line 625 "configure"
625
#include "confdefs.h"
628
if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
629
ac_cv_prog_cc_works=yes
630
# If we can't run a trivial program, we are probably using a cross compiler.
631
if (./conftest; exit) 2>/dev/null; then
632
ac_cv_prog_cc_cross=no
634
ac_cv_prog_cc_cross=yes
637
echo "configure: failed program was:" >&5
638
cat conftest.$ac_ext >&5
639
ac_cv_prog_cc_works=no
643
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
644
if test $ac_cv_prog_cc_works = no; then
645
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
647
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
648
echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
649
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
650
cross_compiling=$ac_cv_prog_cc_cross
652
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
653
echo "configure:654: checking whether we are using GNU C" >&5
654
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
655
echo $ac_n "(cached) $ac_c" 1>&6
657
cat > conftest.c <<EOF
662
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
669
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
671
if test $ac_cv_prog_gcc = yes; then
673
test "${CFLAGS+set}" = set || CFLAGS="-O2"
676
test "${CFLAGS+set}" = set || CFLAGS="-O"
679
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
680
echo "configure:681: checking how to run the C preprocessor" >&5
681
# On Suns, sometimes $CPP names a directory.
682
if test -n "$CPP" && test -d "$CPP"; then
685
if test -z "$CPP"; then
686
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
687
echo $ac_n "(cached) $ac_c" 1>&6
689
# This must be in double quotes, not single quotes, because CPP may get
690
# substituted into the Makefile and "${CC-cc}" will confuse make.
692
# On the NeXT, cc -E runs the code through the compiler's parser,
693
# not just through cpp.
694
cat > conftest.$ac_ext <<EOF
695
#line 696 "configure"
696
#include "confdefs.h"
700
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
701
{ (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
702
ac_err=`grep -v '^ *+' conftest.out`
703
if test -z "$ac_err"; then
707
echo "configure: failed program was:" >&5
708
cat conftest.$ac_ext >&5
710
CPP="${CC-cc} -E -traditional-cpp"
711
cat > conftest.$ac_ext <<EOF
712
#line 713 "configure"
713
#include "confdefs.h"
717
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
718
{ (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
719
ac_err=`grep -v '^ *+' conftest.out`
720
if test -z "$ac_err"; then
724
echo "configure: failed program was:" >&5
725
cat conftest.$ac_ext >&5
732
ac_cv_prog_CPP="$CPP"
734
CPP="$ac_cv_prog_CPP"
736
ac_cv_prog_CPP="$CPP"
738
echo "$ac_t""$CPP" 1>&6
740
echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
741
echo "configure:742: checking for function prototypes" >&5
742
if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; then
743
echo $ac_n "(cached) $ac_c" 1>&6
745
cat > conftest.$ac_ext <<EOF
746
#line 747 "configure"
747
#include "confdefs.h"
2238
if test -r "$cache_file"; then
2239
# Some versions of bash will fail to source /dev/null (special files
2240
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243
$as_echo "$as_me: loading cache $cache_file" >&6;}
2245
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2246
*) . "./$cache_file";;
2250
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251
$as_echo "$as_me: creating cache $cache_file" >&6;}
2255
# Check that the precious variables saved in the cache have kept the same
2257
ac_cache_corrupted=false
2258
for ac_var in $ac_precious_vars; do
2259
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260
eval ac_new_set=\$ac_env_${ac_var}_set
2261
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262
eval ac_new_val=\$ac_env_${ac_var}_value
2263
case $ac_old_set,$ac_new_set in
2265
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267
ac_cache_corrupted=: ;;
2269
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271
ac_cache_corrupted=: ;;
2274
if test "x$ac_old_val" != "x$ac_new_val"; then
2275
# differences in whitespace do not lead to failure.
2276
ac_old_val_w=`echo x $ac_old_val`
2277
ac_new_val_w=`echo x $ac_new_val`
2278
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281
ac_cache_corrupted=:
2283
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285
eval $ac_var=\$ac_old_val
2287
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293
# Pass precious variables to config.status.
2294
if test "$ac_new_set" = set; then
2296
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297
*) ac_arg=$ac_var=$ac_new_val ;;
2299
case " $ac_configure_args " in
2300
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305
if $ac_cache_corrupted; then
2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312
## -------------------- ##
2313
## Main body of script. ##
2314
## -------------------- ##
2317
ac_cpp='$CPP $CPPFLAGS'
2318
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
# Directory where autotools helper scripts lives.
2326
for ac_dir in . "$srcdir"/.; do
2327
for ac_t in install-sh install.sh shtool; do
2328
if test -f "$ac_dir/$ac_t"; then
2330
ac_install_sh="$ac_aux_dir/$ac_t -c"
2335
if test -z "$ac_aux_dir"; then
2336
as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2339
# These three variables are undocumented and unsupported,
2340
# and are intended to be withdrawn in a future Autoconf release.
2341
# They can cause serious problems if a builder's source tree is in a directory
2342
# whose full name contains unusual characters.
2343
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2349
# Generate configuration headers.
2350
ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
2353
# Hack: disable autoheader so that it doesn't overwrite our cfg template.
2354
AUTOHEADER="echo autoheader ignored"
2357
# Make sure we can run config.sub.
2358
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362
$as_echo_n "checking build system type... " >&6; }
2363
if test "${ac_cv_build+set}" = set; then :
2364
$as_echo_n "(cached) " >&6
2366
ac_build_alias=$build_alias
2367
test "x$ac_build_alias" = x &&
2368
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369
test "x$ac_build_alias" = x &&
2370
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2371
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376
$as_echo "$ac_cv_build" >&6; }
2377
case $ac_cv_build in
2379
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2382
ac_save_IFS=$IFS; IFS='-'
2388
# Remember, the first character of IFS is used to create $*,
2389
# except with old shells:
2392
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2396
$as_echo_n "checking host system type... " >&6; }
2397
if test "${ac_cv_host+set}" = set; then :
2398
$as_echo_n "(cached) " >&6
2400
if test "x$host_alias" = x; then
2401
ac_cv_host=$ac_cv_build
2403
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2404
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2409
$as_echo "$ac_cv_host" >&6; }
2412
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2415
ac_save_IFS=$IFS; IFS='-'
2421
# Remember, the first character of IFS is used to create $*,
2422
# except with old shells:
2425
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2429
$as_echo_n "checking target system type... " >&6; }
2430
if test "${ac_cv_target+set}" = set; then :
2431
$as_echo_n "(cached) " >&6
2433
if test "x$target_alias" = x; then
2434
ac_cv_target=$ac_cv_host
2436
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2437
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2442
$as_echo "$ac_cv_target" >&6; }
2443
case $ac_cv_target in
2445
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2447
target=$ac_cv_target
2448
ac_save_IFS=$IFS; IFS='-'
2454
# Remember, the first character of IFS is used to create $*,
2455
# except with old shells:
2458
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2461
# The aliases save the names the user supplied, while $host etc.
2462
# will get canonicalized.
2463
test -n "$target_alias" &&
2464
test "$program_prefix$program_suffix$program_transform_name" = \
2466
program_prefix=${target_alias}-
2468
# Initialize Automake
2469
# Don't require all the GNU mandated files
2470
am__api_version='1.11'
2472
# Find a good install program. We prefer a C program (faster),
2473
# so one script is as good as another. But avoid the broken or
2474
# incompatible versions:
2475
# SysV /etc/install, /usr/sbin/install
2476
# SunOS /usr/etc/install
2477
# IRIX /sbin/install
2479
# AmigaOS /C/install, which installs bootblocks on floppy discs
2480
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483
# OS/2's system install, which has a completely different semantic
2484
# ./install, which can be erroneously created by make from ./install.sh.
2485
# Reject install programs that cannot install multiple files.
2486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2488
if test -z "$INSTALL"; then
2489
if test "${ac_cv_path_install+set}" = set; then :
2490
$as_echo_n "(cached) " >&6
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496
test -z "$as_dir" && as_dir=.
2497
# Account for people who put trailing slashes in PATH elements.
2498
case $as_dir/ in #((
2499
./ | .// | /[cC]/* | \
2500
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2504
# OSF1 and SCO ODT 3.0 have their own names for install.
2505
# Don't use installbsd from OSF since it installs stuff as root
2507
for ac_prog in ginstall scoinst install; do
2508
for ac_exec_ext in '' $ac_executable_extensions; do
2509
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510
if test $ac_prog = install &&
2511
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512
# AIX install. It has an incompatible calling convention.
2514
elif test $ac_prog = install &&
2515
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516
# program-specific install script used by HP pwplus--don't use.
2519
rm -rf conftest.one conftest.two conftest.dir
2520
echo one > conftest.one
2521
echo two > conftest.two
2523
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524
test -s conftest.one && test -s conftest.two &&
2525
test -s conftest.dir/conftest.one &&
2526
test -s conftest.dir/conftest.two
2528
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541
rm -rf conftest.one conftest.two conftest.dir
2544
if test "${ac_cv_path_install+set}" = set; then
2545
INSTALL=$ac_cv_path_install
2547
# As a last resort, use the slow shell script. Don't cache a
2548
# value for INSTALL within a source directory, because that will
2549
# break other packages using the cache if that directory is
2550
# removed, or if the value is a relative name.
2551
INSTALL=$ac_install_sh
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555
$as_echo "$INSTALL" >&6; }
2557
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558
# It thinks the first close brace ends the variable substitution.
2559
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566
$as_echo_n "checking whether build environment is sane... " >&6; }
2569
echo timestamp > conftest.file
2570
# Reject unsafe characters in $srcdir or the absolute working directory
2571
# name. Accept space and tab only in the latter.
2575
*[\\\"\#\$\&\'\`$am_lf]*)
2576
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2579
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2583
# Do `set' in a subshell so we don't clobber the current shell's
2584
# arguments. Must try -L first in case configure is actually a
2585
# symlink; some systems play weird games with the mod time of symlinks
2586
# (eg FreeBSD returns the mod time of the symlink's containing
2589
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590
if test "$*" = "X"; then
2592
set X `ls -t "$srcdir/configure" conftest.file`
2595
if test "$*" != "X $srcdir/configure conftest.file" \
2596
&& test "$*" != "X conftest.file $srcdir/configure"; then
2598
# If neither matched, then we have a broken ls. This can happen
2599
# if, for instance, CONFIG_SHELL is bash and it inherits a
2600
# broken ls alias from the environment. This has actually
2601
# happened. Such a system could not be considered "sane".
2602
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2603
alias in your environment" "$LINENO" 5
2606
test "$2" = conftest.file
2612
as_fn_error "newly created file is older than distributed files!
2613
Check your system clock" "$LINENO" 5
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616
$as_echo "yes" >&6; }
2617
test "$program_prefix" != NONE &&
2618
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619
# Use a double $ so make ignores it.
2620
test "$program_suffix" != NONE &&
2621
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622
# Double any \ or $.
2623
# By default was `s,x,x', remove it if useless.
2624
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627
# expand $ac_aux_dir to an absolute path
2628
am_aux_dir=`cd $ac_aux_dir && pwd`
2630
if test x"${MISSING+set}" != xset; then
2633
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2638
# Use eval to expand $SHELL
2639
if eval "$MISSING --run true"; then
2640
am_missing_run="$MISSING --run "
2643
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2647
if test x"${install_sh}" != xset; then
2650
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652
install_sh="\${SHELL} $am_aux_dir/install-sh"
2656
# Installed binaries are usually stripped using `strip' when the user
2657
# run `make install-strip'. However `strip' might not be the right
2658
# tool to use in cross-compilation environments, therefore Automake
2659
# will honor the `STRIP' environment variable to overrule this program.
2660
if test "$cross_compiling" != no; then
2661
if test -n "$ac_tool_prefix"; then
2662
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663
set dummy ${ac_tool_prefix}strip; ac_word=$2
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665
$as_echo_n "checking for $ac_word... " >&6; }
2666
if test "${ac_cv_prog_STRIP+set}" = set; then :
2667
$as_echo_n "(cached) " >&6
2669
if test -n "$STRIP"; then
2670
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676
test -z "$as_dir" && as_dir=.
2677
for ac_exec_ext in '' $ac_executable_extensions; do
2678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689
STRIP=$ac_cv_prog_STRIP
2690
if test -n "$STRIP"; then
2691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692
$as_echo "$STRIP" >&6; }
2694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695
$as_echo "no" >&6; }
2700
if test -z "$ac_cv_prog_STRIP"; then
2702
# Extract the first word of "strip", so it can be a program name with args.
2703
set dummy strip; ac_word=$2
2704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705
$as_echo_n "checking for $ac_word... " >&6; }
2706
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707
$as_echo_n "(cached) " >&6
2709
if test -n "$ac_ct_STRIP"; then
2710
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716
test -z "$as_dir" && as_dir=.
2717
for ac_exec_ext in '' $ac_executable_extensions; do
2718
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719
ac_cv_prog_ac_ct_STRIP="strip"
2720
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730
if test -n "$ac_ct_STRIP"; then
2731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732
$as_echo "$ac_ct_STRIP" >&6; }
2734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735
$as_echo "no" >&6; }
2738
if test "x$ac_ct_STRIP" = x; then
2741
case $cross_compiling:$ac_tool_warned in
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745
ac_tool_warned=yes ;;
2750
STRIP="$ac_cv_prog_STRIP"
2754
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758
if test -z "$MKDIR_P"; then
2759
if test "${ac_cv_path_mkdir+set}" = set; then :
2760
$as_echo_n "(cached) " >&6
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2766
test -z "$as_dir" && as_dir=.
2767
for ac_prog in mkdir gmkdir; do
2768
for ac_exec_ext in '' $ac_executable_extensions; do
2769
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771
'mkdir (GNU coreutils) '* | \
2772
'mkdir (coreutils) '* | \
2773
'mkdir (fileutils) '4.1*)
2774
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784
test -d ./--version && rmdir ./--version
2785
if test "${ac_cv_path_mkdir+set}" = set; then
2786
MKDIR_P="$ac_cv_path_mkdir -p"
2788
# As a last resort, use the slow shell script. Don't cache a
2789
# value for MKDIR_P within a source directory, because that will
2790
# break other packages using the cache if that directory is
2791
# removed, or if the value is a relative name.
2792
MKDIR_P="$ac_install_sh -d"
2795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796
$as_echo "$MKDIR_P" >&6; }
2800
[\\/$]* | ?:[\\/]*) ;;
2801
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2804
for ac_prog in gawk mawk nawk awk
2806
# Extract the first word of "$ac_prog", so it can be a program name with args.
2807
set dummy $ac_prog; ac_word=$2
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809
$as_echo_n "checking for $ac_word... " >&6; }
2810
if test "${ac_cv_prog_AWK+set}" = set; then :
2811
$as_echo_n "(cached) " >&6
2813
if test -n "$AWK"; then
2814
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820
test -z "$as_dir" && as_dir=.
2821
for ac_exec_ext in '' $ac_executable_extensions; do
2822
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823
ac_cv_prog_AWK="$ac_prog"
2824
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834
if test -n "$AWK"; then
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836
$as_echo "$AWK" >&6; }
2838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839
$as_echo "no" >&6; }
2843
test -n "$AWK" && break
2846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2849
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851
$as_echo_n "(cached) " >&6
2853
cat >conftest.make <<\_ACEOF
2856
@echo '@@@%%%=$(MAKE)=@@@%%%'
2858
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2861
eval ac_cv_prog_make_${ac_make}_set=yes;;
2863
eval ac_cv_prog_make_${ac_make}_set=no;;
2867
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869
$as_echo "yes" >&6; }
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873
$as_echo "no" >&6; }
2874
SET_MAKE="MAKE=${MAKE-make}"
2877
rm -rf .tst 2>/dev/null
2878
mkdir .tst 2>/dev/null
2879
if test -d .tst; then
2884
rmdir .tst 2>/dev/null
2886
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888
# is not polluted with repeated "-I."
2889
am__isrc=' -I$(srcdir)'
2890
# test to see if srcdir already configured
2891
if test -f $srcdir/config.status; then
2892
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896
# test whether we have cygpath
2897
if test -z "$CYGPATH_W"; then
2898
if (cygpath --version) >/dev/null 2>/dev/null; then
2899
CYGPATH_W='cygpath -w'
2906
# Define the identity of the package.
2911
cat >>confdefs.h <<_ACEOF
2912
#define PACKAGE "$PACKAGE"
2916
cat >>confdefs.h <<_ACEOF
2917
#define VERSION "$VERSION"
2920
# Some tools Automake needs.
2922
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
# We need awk for the "check" target. The system "awk" is bad on
2938
# Always define AMTAR for backward compatibility.
2940
AMTAR=${AMTAR-"${am_missing_run}tar"}
2942
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2949
# Make --enable-silent-rules the default.
2950
# To get verbose build output you may configure
2951
# with --disable-silent-rules or use "make V=1".
2952
# Check whether --enable-silent-rules was given.
2953
if test "${enable_silent_rules+set}" = set; then :
2954
enableval=$enable_silent_rules;
2957
case $enable_silent_rules in
2958
yes) AM_DEFAULT_VERBOSITY=0;;
2959
no) AM_DEFAULT_VERBOSITY=1;;
2960
*) AM_DEFAULT_VERBOSITY=0;;
2965
# This is required when using the de-ANSI-fication feature.
2966
DEPDIR="${am__leading_dot}deps"
2968
ac_config_commands="$ac_config_commands depfiles"
2971
am_make=${MAKE-make}
2972
cat > confinc << 'END'
2974
@echo this is the am__doit target
2977
# If we don't find an include directive, just comment out the code.
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2979
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2983
# First try GNU make style include.
2984
echo "include confinc" > confmf
2985
# Ignore all kinds of additional output from `make'.
2986
case `$am_make -s -f confmf 2> /dev/null` in #(
2987
*the\ am__doit\ target*)
2993
# Now try BSD make style include.
2994
if test "$am__include" = "#"; then
2995
echo '.include "confinc"' > confmf
2996
case `$am_make -s -f confmf 2> /dev/null` in #(
2997
*the\ am__doit\ target*)
2998
am__include=.include
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3007
$as_echo "$_am_result" >&6; }
3008
rm -f confinc confmf
3010
# Check whether --enable-dependency-tracking was given.
3011
if test "${enable_dependency_tracking+set}" = set; then :
3012
enableval=$enable_dependency_tracking;
3015
if test "x$enable_dependency_tracking" != xno; then
3016
am_depcomp="$ac_aux_dir/depcomp"
3019
if test "x$enable_dependency_tracking" != xno; then
3029
ac_cpp='$CPP $CPPFLAGS'
3030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
if test -n "$ac_tool_prefix"; then
3034
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3035
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037
$as_echo_n "checking for $ac_word... " >&6; }
3038
if test "${ac_cv_prog_CC+set}" = set; then :
3039
$as_echo_n "(cached) " >&6
3041
if test -n "$CC"; then
3042
ac_cv_prog_CC="$CC" # Let the user override the test.
3044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048
test -z "$as_dir" && as_dir=.
3049
for ac_exec_ext in '' $ac_executable_extensions; do
3050
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3052
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062
if test -n "$CC"; then
3063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064
$as_echo "$CC" >&6; }
3066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067
$as_echo "no" >&6; }
3072
if test -z "$ac_cv_prog_CC"; then
3074
# Extract the first word of "gcc", so it can be a program name with args.
3075
set dummy gcc; ac_word=$2
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077
$as_echo_n "checking for $ac_word... " >&6; }
3078
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3079
$as_echo_n "(cached) " >&6
3081
if test -n "$ac_ct_CC"; then
3082
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088
test -z "$as_dir" && as_dir=.
3089
for ac_exec_ext in '' $ac_executable_extensions; do
3090
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091
ac_cv_prog_ac_ct_CC="gcc"
3092
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102
if test -n "$ac_ct_CC"; then
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104
$as_echo "$ac_ct_CC" >&6; }
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107
$as_echo "no" >&6; }
3110
if test "x$ac_ct_CC" = x; then
3113
case $cross_compiling:$ac_tool_warned in
3115
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117
ac_tool_warned=yes ;;
3125
if test -z "$CC"; then
3126
if test -n "$ac_tool_prefix"; then
3127
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128
set dummy ${ac_tool_prefix}cc; ac_word=$2
3129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130
$as_echo_n "checking for $ac_word... " >&6; }
3131
if test "${ac_cv_prog_CC+set}" = set; then :
3132
$as_echo_n "(cached) " >&6
3134
if test -n "$CC"; then
3135
ac_cv_prog_CC="$CC" # Let the user override the test.
3137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141
test -z "$as_dir" && as_dir=.
3142
for ac_exec_ext in '' $ac_executable_extensions; do
3143
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144
ac_cv_prog_CC="${ac_tool_prefix}cc"
3145
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155
if test -n "$CC"; then
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157
$as_echo "$CC" >&6; }
3159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160
$as_echo "no" >&6; }
3166
if test -z "$CC"; then
3167
# Extract the first word of "cc", so it can be a program name with args.
3168
set dummy cc; ac_word=$2
3169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170
$as_echo_n "checking for $ac_word... " >&6; }
3171
if test "${ac_cv_prog_CC+set}" = set; then :
3172
$as_echo_n "(cached) " >&6
3174
if test -n "$CC"; then
3175
ac_cv_prog_CC="$CC" # Let the user override the test.
3178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182
test -z "$as_dir" && as_dir=.
3183
for ac_exec_ext in '' $ac_executable_extensions; do
3184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186
ac_prog_rejected=yes
3190
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197
if test $ac_prog_rejected = yes; then
3198
# We found a bogon in the path, so make sure we never use it.
3199
set dummy $ac_cv_prog_CC
3201
if test $# != 0; then
3202
# We chose a different compiler from the bogus one.
3203
# However, it has the same basename, so the bogon will be chosen
3204
# first if we set CC to just the basename; use the full file name.
3206
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3212
if test -n "$CC"; then
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214
$as_echo "$CC" >&6; }
3216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217
$as_echo "no" >&6; }
3222
if test -z "$CC"; then
3223
if test -n "$ac_tool_prefix"; then
3224
for ac_prog in cl.exe
3226
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229
$as_echo_n "checking for $ac_word... " >&6; }
3230
if test "${ac_cv_prog_CC+set}" = set; then :
3231
$as_echo_n "(cached) " >&6
3233
if test -n "$CC"; then
3234
ac_cv_prog_CC="$CC" # Let the user override the test.
3236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240
test -z "$as_dir" && as_dir=.
3241
for ac_exec_ext in '' $ac_executable_extensions; do
3242
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3244
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254
if test -n "$CC"; then
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256
$as_echo "$CC" >&6; }
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259
$as_echo "no" >&6; }
3263
test -n "$CC" && break
3266
if test -z "$CC"; then
3268
for ac_prog in cl.exe
3270
# Extract the first word of "$ac_prog", so it can be a program name with args.
3271
set dummy $ac_prog; ac_word=$2
3272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273
$as_echo_n "checking for $ac_word... " >&6; }
3274
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3275
$as_echo_n "(cached) " >&6
3277
if test -n "$ac_ct_CC"; then
3278
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284
test -z "$as_dir" && as_dir=.
3285
for ac_exec_ext in '' $ac_executable_extensions; do
3286
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287
ac_cv_prog_ac_ct_CC="$ac_prog"
3288
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298
if test -n "$ac_ct_CC"; then
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3300
$as_echo "$ac_ct_CC" >&6; }
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303
$as_echo "no" >&6; }
3307
test -n "$ac_ct_CC" && break
3310
if test "x$ac_ct_CC" = x; then
3313
case $cross_compiling:$ac_tool_warned in
3315
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317
ac_tool_warned=yes ;;
3326
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328
as_fn_error "no acceptable C compiler found in \$PATH
3329
See \`config.log' for more details." "$LINENO" 5; }
3331
# Provide some information about the compiler.
3332
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335
for ac_option in --version -v -V -qversion; do
3336
{ { ac_try="$ac_compiler $ac_option >&5"
3338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339
*) ac_try_echo=$ac_try;;
3341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342
$as_echo "$ac_try_echo"; } >&5
3343
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345
if test -s conftest.err; then
3347
... rest of stderr output deleted ...
3348
10q' conftest.err >conftest.er1
3349
cat conftest.er1 >&5
3351
rm -f conftest.er1 conftest.err
3352
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353
test $ac_status = 0; }
3356
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357
/* end confdefs.h. */
3367
ac_clean_files_save=$ac_clean_files
3368
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3369
# Try to create an executable without -o first, disregard a.out.
3370
# It will help us diagnose broken compilers, and finding out an intuition
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3373
$as_echo_n "checking whether the C compiler works... " >&6; }
3374
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3376
# The possible output files:
3377
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
for ac_file in $ac_files
3383
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3389
if { { ac_try="$ac_link_default"
3391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392
*) ac_try_echo=$ac_try;;
3394
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395
$as_echo "$ac_try_echo"; } >&5
3396
(eval "$ac_link_default") 2>&5
3398
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399
test $ac_status = 0; }; then :
3400
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3401
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3402
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3403
# so that the user can short-circuit this test for compilers unknown to
3405
for ac_file in $ac_files ''
3407
test -f "$ac_file" || continue
3409
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412
# We found the default executable, but exeext='' is most
3416
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3418
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420
# We set ac_cv_exeext here because the later test for it is not
3421
# safe: cross compilers may not add the suffix if given an `-o'
3422
# argument, so we may need to know it at that point already.
3423
# Even if this section looks crufty: it has the advantage of
3430
test "$ac_cv_exeext" = no && ac_cv_exeext=
3435
if test -z "$ac_file"; then :
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437
$as_echo "no" >&6; }
3438
$as_echo "$as_me: failed program was:" >&5
3439
sed 's/^/| /' conftest.$ac_ext >&5
3441
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443
{ as_fn_set_status 77
3444
as_fn_error "C compiler cannot create executables
3445
See \`config.log' for more details." "$LINENO" 5; }; }
3447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448
$as_echo "yes" >&6; }
3450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3451
$as_echo_n "checking for C compiler default output file name... " >&6; }
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3453
$as_echo "$ac_file" >&6; }
3454
ac_exeext=$ac_cv_exeext
3456
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3457
ac_clean_files=$ac_clean_files_save
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3459
$as_echo_n "checking for suffix of executables... " >&6; }
3460
if { { ac_try="$ac_link"
3462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463
*) ac_try_echo=$ac_try;;
3465
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466
$as_echo "$ac_try_echo"; } >&5
3467
(eval "$ac_link") 2>&5
3469
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470
test $ac_status = 0; }; then :
3471
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3472
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3473
# work properly (i.e., refer to `conftest.exe'), while it won't with
3475
for ac_file in conftest.exe conftest conftest.*; do
3476
test -f "$ac_file" || continue
3478
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487
as_fn_error "cannot compute suffix of executables: cannot compile and link
3488
See \`config.log' for more details." "$LINENO" 5; }
3490
rm -f conftest conftest$ac_cv_exeext
3491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3492
$as_echo "$ac_cv_exeext" >&6; }
3494
rm -f conftest.$ac_ext
3495
EXEEXT=$ac_cv_exeext
3497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498
/* end confdefs.h. */
3503
FILE *f = fopen ("conftest.out", "w");
3504
return ferror (f) || fclose (f) != 0;
3510
ac_clean_files="$ac_clean_files conftest.out"
3511
# Check that the compiler produces executables we can run. If not, either
3512
# the compiler is broken, or we cross compile.
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514
$as_echo_n "checking whether we are cross compiling... " >&6; }
3515
if test "$cross_compiling" != yes; then
3516
{ { ac_try="$ac_link"
3518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519
*) ac_try_echo=$ac_try;;
3521
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522
$as_echo "$ac_try_echo"; } >&5
3523
(eval "$ac_link") 2>&5
3525
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526
test $ac_status = 0; }
3527
if { ac_try='./conftest$ac_cv_exeext'
3528
{ { case "(($ac_try" in
3529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530
*) ac_try_echo=$ac_try;;
3532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533
$as_echo "$ac_try_echo"; } >&5
3534
(eval "$ac_try") 2>&5
3536
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537
test $ac_status = 0; }; }; then
3540
if test "$cross_compiling" = maybe; then
3543
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545
as_fn_error "cannot run C compiled programs.
3546
If you meant to cross compile, use \`--host'.
3547
See \`config.log' for more details." "$LINENO" 5; }
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552
$as_echo "$cross_compiling" >&6; }
3554
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3555
ac_clean_files=$ac_clean_files_save
3556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3557
$as_echo_n "checking for suffix of object files... " >&6; }
3558
if test "${ac_cv_objext+set}" = set; then :
3559
$as_echo_n "(cached) " >&6
3561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562
/* end confdefs.h. */
3572
rm -f conftest.o conftest.obj
3573
if { { ac_try="$ac_compile"
3575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576
*) ac_try_echo=$ac_try;;
3578
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579
$as_echo "$ac_try_echo"; } >&5
3580
(eval "$ac_compile") 2>&5
3582
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583
test $ac_status = 0; }; then :
3584
for ac_file in conftest.o conftest.obj conftest.*; do
3585
test -f "$ac_file" || continue;
3587
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3593
$as_echo "$as_me: failed program was:" >&5
3594
sed 's/^/| /' conftest.$ac_ext >&5
3596
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598
as_fn_error "cannot compute suffix of object files: cannot compile
3599
See \`config.log' for more details." "$LINENO" 5; }
3601
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3604
$as_echo "$ac_cv_objext" >&6; }
3605
OBJEXT=$ac_cv_objext
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3608
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3610
$as_echo_n "(cached) " >&6
3612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613
/* end confdefs.h. */
3626
if ac_fn_c_try_compile "$LINENO"; then :
3631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3636
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3637
if test $ac_compiler_gnu = yes; then
3642
ac_test_CFLAGS=${CFLAGS+set}
3643
ac_save_CFLAGS=$CFLAGS
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3645
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3646
if test "${ac_cv_prog_cc_g+set}" = set; then :
3647
$as_echo_n "(cached) " >&6
3649
ac_save_c_werror_flag=$ac_c_werror_flag
3650
ac_c_werror_flag=yes
3653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654
/* end confdefs.h. */
3664
if ac_fn_c_try_compile "$LINENO"; then :
3668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669
/* end confdefs.h. */
3679
if ac_fn_c_try_compile "$LINENO"; then :
3682
ac_c_werror_flag=$ac_save_c_werror_flag
3684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685
/* end confdefs.h. */
3695
if ac_fn_c_try_compile "$LINENO"; then :
3698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703
ac_c_werror_flag=$ac_save_c_werror_flag
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706
$as_echo "$ac_cv_prog_cc_g" >&6; }
3707
if test "$ac_test_CFLAGS" = set; then
3708
CFLAGS=$ac_save_CFLAGS
3709
elif test $ac_cv_prog_cc_g = yes; then
3710
if test "$GCC" = yes; then
3716
if test "$GCC" = yes; then
3722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3723
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3724
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3725
$as_echo_n "(cached) " >&6
3727
ac_cv_prog_cc_c89=no
3729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730
/* end confdefs.h. */
3733
#include <sys/types.h>
3734
#include <sys/stat.h>
3735
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3736
struct buf { int x; };
3737
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738
static char *e (p, i)
3744
static char *f (char * (*g) (char **, int), char **p, ...)
3749
s = g (p, va_arg (v,int));
3754
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3755
function prototypes and stuff, but not '\xHH' hex character constants.
3756
These don't provoke an error unfortunately, instead are silently treated
3757
as 'x'. The following induces an error, until -std is added to get
3758
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3759
array size at least. It's necessary to write '\x00'==0 to get something
3760
that's true only with -std. */
3761
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764
inside strings and character constants. */
3766
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
int test (int i, double x);
3769
struct s1 {int (*f) (int a);};
3770
struct s2 {int (*f) (double a);};
3771
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3782
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785
CC="$ac_save_CC $ac_arg"
3786
if ac_fn_c_try_compile "$LINENO"; then :
3787
ac_cv_prog_cc_c89=$ac_arg
3789
rm -f core conftest.err conftest.$ac_objext
3790
test "x$ac_cv_prog_cc_c89" != "xno" && break
3792
rm -f conftest.$ac_ext
3797
case "x$ac_cv_prog_cc_c89" in
3799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800
$as_echo "none needed" >&6; } ;;
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803
$as_echo "unsupported" >&6; } ;;
3805
CC="$CC $ac_cv_prog_cc_c89"
3806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809
if test "x$ac_cv_prog_cc_c89" != xno; then :
3814
ac_cpp='$CPP $CPPFLAGS'
3815
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
depcc="$CC" am_compiler_list=
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3822
$as_echo_n "checking dependency style of $depcc... " >&6; }
3823
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3824
$as_echo_n "(cached) " >&6
3826
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827
# We make a subdir and do the tests there. Otherwise we can end up
3828
# making bogus files that we don't know about and never remove. For
3829
# instance it was reported that on HP-UX the gcc test will end up
3830
# making a dummy file named `D' -- because `-MD' means `put the output
3833
# Copy depcomp to subdir because otherwise we won't find it if we're
3834
# using a relative directory.
3835
cp "$am_depcomp" conftest.dir
3837
# We will build objects and dependencies in a subdirectory because
3838
# it helps to detect inapplicable dependency modes. For instance
3839
# both Tru64's cc and ICC support -MD to output dependencies as a
3840
# side effect of compilation, but ICC will put the dependencies in
3841
# the current directory while Tru64 will put them in the object
3845
am_cv_CC_dependencies_compiler_type=none
3846
if test "$am_compiler_list" = ""; then
3847
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3850
case " $depcc " in #(
3851
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3854
for depmode in $am_compiler_list; do
3855
# Setup a source with many dependencies, because some compilers
3856
# like to wrap large dependency lists on column 80 (with \), and
3857
# we should not choose a depcomp mode which is confused by this.
3859
# We need to recreate these files for each test, as the compiler may
3860
# overwrite some of them when testing with obscure command lines.
3861
# This happens at least with the AIX C compiler.
3863
for i in 1 2 3 4 5 6; do
3864
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3865
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3866
# Solaris 8's {/usr,}/bin/sh.
3867
touch sub/conftst$i.h
3869
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3871
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3872
# mode. It turns out that the SunPro C++ compiler does not properly
3873
# handle `-M -o', and we need to detect this. Also, some Intel
3874
# versions had trouble with output in subdirs
3875
am__obj=sub/conftest.${OBJEXT-o}
3876
am__minus_obj="-o $am__obj"
3879
# This depmode causes a compiler race in universal mode.
3880
test "$am__universal" = false || continue
3883
# after this tag, mechanisms are not by side-effect, so they'll
3884
# only be used when explicitly requested
3885
if test "x$enable_dependency_tracking" = xyes; then
3891
msvisualcpp | msvcmsys)
3892
# This compiler won't grok `-c -o', but also, the minuso test has
3893
# not run yet. These depmodes are late enough in the game, and
3894
# so weak that their functioning should not be impacted.
3895
am__obj=conftest.${OBJEXT-o}
3900
if depmode=$depmode \
3901
source=sub/conftest.c object=$am__obj \
3902
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3903
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3904
>/dev/null 2>conftest.err &&
3905
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3906
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3907
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3908
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3909
# icc doesn't choke on unknown options, it will just issue warnings
3910
# or remarks (even with -Werror). So we grep stderr for any message
3911
# that says an option was ignored or not supported.
3912
# When given -MP, icc 7.0 and 7.1 complain thusly:
3913
# icc: Command line warning: ignoring option '-M'; no argument required
3914
# The diagnosis changed in icc 8.0:
3915
# icc: Command line remark: option '-MP' not supported
3916
if (grep 'ignoring option' conftest.err ||
3917
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3918
am_cv_CC_dependencies_compiler_type=$depmode
3927
am_cv_CC_dependencies_compiler_type=none
3931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3932
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3933
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3936
test "x$enable_dependency_tracking" != xno \
3937
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3939
am__fastdepCC_FALSE='#'
3941
am__fastdepCC_TRUE='#'
3942
am__fastdepCC_FALSE=
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
3947
$as_echo_n "checking for function prototypes... " >&6; }
3948
if test "$ac_cv_prog_cc_c89" != no; then
3949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950
$as_echo "yes" >&6; }
3952
$as_echo "#define PROTOTYPES 1" >>confdefs.h
3955
$as_echo "#define __PROTOTYPES 1" >>confdefs.h
3958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959
$as_echo "no" >&6; }
3964
ac_cpp='$CPP $CPPFLAGS'
3965
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3969
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3970
# On Suns, sometimes $CPP names a directory.
3971
if test -n "$CPP" && test -d "$CPP"; then
3974
if test -z "$CPP"; then
3975
if test "${ac_cv_prog_CPP+set}" = set; then :
3976
$as_echo_n "(cached) " >&6
3978
# Double quotes because CPP needs to be expanded
3979
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982
for ac_c_preproc_warn_flag in '' yes
3984
# Use a header file that comes with gcc, so configuring glibc
3985
# with a fresh cross-compiler works.
3986
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987
# <limits.h> exists even on freestanding compilers.
3988
# On the NeXT, cc -E runs the code through the compiler's parser,
3989
# not just through cpp. "Syntax error" is here to catch this case.
3990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991
/* end confdefs.h. */
3993
# include <limits.h>
3995
# include <assert.h>
3999
if ac_fn_c_try_cpp "$LINENO"; then :
4002
# Broken: fails on valid input.
4005
rm -f conftest.err conftest.$ac_ext
4007
# OK, works on sane cases. Now check whether nonexistent headers
4008
# can be detected and how.
4009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010
/* end confdefs.h. */
4011
#include <ac_nonexistent.h>
4013
if ac_fn_c_try_cpp "$LINENO"; then :
4014
# Broken: success on invalid input.
4017
# Passes both tests.
4021
rm -f conftest.err conftest.$ac_ext
4024
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025
rm -f conftest.err conftest.$ac_ext
4026
if $ac_preproc_ok; then :
4038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4039
$as_echo "$CPP" >&6; }
4041
for ac_c_preproc_warn_flag in '' yes
4043
# Use a header file that comes with gcc, so configuring glibc
4044
# with a fresh cross-compiler works.
4045
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4046
# <limits.h> exists even on freestanding compilers.
4047
# On the NeXT, cc -E runs the code through the compiler's parser,
4048
# not just through cpp. "Syntax error" is here to catch this case.
4049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050
/* end confdefs.h. */
4052
# include <limits.h>
4054
# include <assert.h>
4058
if ac_fn_c_try_cpp "$LINENO"; then :
4061
# Broken: fails on valid input.
4064
rm -f conftest.err conftest.$ac_ext
4066
# OK, works on sane cases. Now check whether nonexistent headers
4067
# can be detected and how.
4068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069
/* end confdefs.h. */
4070
#include <ac_nonexistent.h>
4072
if ac_fn_c_try_cpp "$LINENO"; then :
4073
# Broken: success on invalid input.
4076
# Passes both tests.
4080
rm -f conftest.err conftest.$ac_ext
4083
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4084
rm -f conftest.err conftest.$ac_ext
4085
if $ac_preproc_ok; then :
4088
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4091
See \`config.log' for more details." "$LINENO" 5; }
4095
ac_cpp='$CPP $CPPFLAGS'
4096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4102
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4103
if test "${ac_cv_path_GREP+set}" = set; then :
4104
$as_echo_n "(cached) " >&6
4106
if test -z "$GREP"; then
4107
ac_path_GREP_found=false
4108
# Loop through the user's path and test for each of PROGNAME-LIST
4109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113
test -z "$as_dir" && as_dir=.
4114
for ac_prog in grep ggrep; do
4115
for ac_exec_ext in '' $ac_executable_extensions; do
4116
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4117
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4118
# Check for GNU ac_path_GREP and select it if it is found.
4119
# Check for GNU $ac_path_GREP
4120
case `"$ac_path_GREP" --version 2>&1` in
4122
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4125
$as_echo_n 0123456789 >"conftest.in"
4128
cat "conftest.in" "conftest.in" >"conftest.tmp"
4129
mv "conftest.tmp" "conftest.in"
4130
cp "conftest.in" "conftest.nl"
4131
$as_echo 'GREP' >> "conftest.nl"
4132
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134
as_fn_arith $ac_count + 1 && ac_count=$as_val
4135
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4136
# Best one so far, save it but keep looking for a better one
4137
ac_cv_path_GREP="$ac_path_GREP"
4138
ac_path_GREP_max=$ac_count
4140
# 10*(2^10) chars as input seems more than enough
4141
test $ac_count -gt 10 && break
4143
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146
$ac_path_GREP_found && break 3
4151
if test -z "$ac_cv_path_GREP"; then
4152
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155
ac_cv_path_GREP=$GREP
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4160
$as_echo "$ac_cv_path_GREP" >&6; }
4161
GREP="$ac_cv_path_GREP"
4164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4165
$as_echo_n "checking for egrep... " >&6; }
4166
if test "${ac_cv_path_EGREP+set}" = set; then :
4167
$as_echo_n "(cached) " >&6
4169
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4170
then ac_cv_path_EGREP="$GREP -E"
4172
if test -z "$EGREP"; then
4173
ac_path_EGREP_found=false
4174
# Loop through the user's path and test for each of PROGNAME-LIST
4175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179
test -z "$as_dir" && as_dir=.
4180
for ac_prog in egrep; do
4181
for ac_exec_ext in '' $ac_executable_extensions; do
4182
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4183
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4184
# Check for GNU ac_path_EGREP and select it if it is found.
4185
# Check for GNU $ac_path_EGREP
4186
case `"$ac_path_EGREP" --version 2>&1` in
4188
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4191
$as_echo_n 0123456789 >"conftest.in"
4194
cat "conftest.in" "conftest.in" >"conftest.tmp"
4195
mv "conftest.tmp" "conftest.in"
4196
cp "conftest.in" "conftest.nl"
4197
$as_echo 'EGREP' >> "conftest.nl"
4198
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200
as_fn_arith $ac_count + 1 && ac_count=$as_val
4201
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4202
# Best one so far, save it but keep looking for a better one
4203
ac_cv_path_EGREP="$ac_path_EGREP"
4204
ac_path_EGREP_max=$ac_count
4206
# 10*(2^10) chars as input seems more than enough
4207
test $ac_count -gt 10 && break
4209
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212
$ac_path_EGREP_found && break 3
4217
if test -z "$ac_cv_path_EGREP"; then
4218
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221
ac_cv_path_EGREP=$EGREP
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4227
$as_echo "$ac_cv_path_EGREP" >&6; }
4228
EGREP="$ac_cv_path_EGREP"
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4232
$as_echo_n "checking for ANSI C header files... " >&6; }
4233
if test "${ac_cv_header_stdc+set}" = set; then :
4234
$as_echo_n "(cached) " >&6
4236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237
/* end confdefs.h. */
4251
if ac_fn_c_try_compile "$LINENO"; then :
4252
ac_cv_header_stdc=yes
4254
ac_cv_header_stdc=no
4256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258
if test $ac_cv_header_stdc = yes; then
4259
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261
/* end confdefs.h. */
4265
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266
$EGREP "memchr" >/dev/null 2>&1; then :
4269
ac_cv_header_stdc=no
4275
if test $ac_cv_header_stdc = yes; then
4276
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4277
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278
/* end confdefs.h. */
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283
$EGREP "free" >/dev/null 2>&1; then :
4286
ac_cv_header_stdc=no
4292
if test $ac_cv_header_stdc = yes; then
4293
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4294
if test "$cross_compiling" = yes; then :
4297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298
/* end confdefs.h. */
4301
#if ((' ' & 0x0FF) == 0x020)
4302
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4303
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305
# define ISLOWER(c) \
4306
(('a' <= (c) && (c) <= 'i') \
4307
|| ('j' <= (c) && (c) <= 'r') \
4308
|| ('s' <= (c) && (c) <= 'z'))
4309
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4317
for (i = 0; i < 256; i++)
4318
if (XOR (islower (i), ISLOWER (i))
4319
|| toupper (i) != TOUPPER (i))
4324
if ac_fn_c_try_run "$LINENO"; then :
4327
ac_cv_header_stdc=no
4329
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4330
conftest.$ac_objext conftest.beam conftest.$ac_ext
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4336
$as_echo "$ac_cv_header_stdc" >&6; }
4337
if test $ac_cv_header_stdc = yes; then
4339
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4343
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4344
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4345
inttypes.h stdint.h unistd.h
4347
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4350
eval as_val=\$$as_ac_Header
4351
if test "x$as_val" = x""yes; then :
4352
cat >>confdefs.h <<_ACEOF
4353
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362
if test "$ac_cv_prog_cc_stdc" != no; then
4365
U=_ ANSI2KNR=./ansi2knr
4367
# Ensure some checks needed by ansi2knr itself.
4369
for ac_header in string.h
4371
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4372
if test "x$ac_cv_header_string_h" = x""yes; then :
4373
cat >>confdefs.h <<_ACEOF
4374
#define HAVE_STRING_H 1
4383
# Add configure option --enable-maintainer-mode which enables
4384
# dependency checking and generation useful to package maintainers.
4385
# This is made an option to avoid confusing end users.
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4388
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4389
# Check whether --enable-maintainer-mode was given.
4390
if test "${enable_maintainer_mode+set}" = set; then :
4391
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4393
USE_MAINTAINER_MODE=no
4396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4397
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4398
if test $USE_MAINTAINER_MODE = yes; then
4399
MAINTAINER_MODE_TRUE=
4400
MAINTAINER_MODE_FALSE='#'
4402
MAINTAINER_MODE_TRUE='#'
4403
MAINTAINER_MODE_FALSE=
4406
MAINT=$MAINTAINER_MODE_TRUE
4410
# Check for programs
4412
ac_cpp='$CPP $CPPFLAGS'
4413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
if test -n "$ac_tool_prefix"; then
4417
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420
$as_echo_n "checking for $ac_word... " >&6; }
4421
if test "${ac_cv_prog_CC+set}" = set; then :
4422
$as_echo_n "(cached) " >&6
4424
if test -n "$CC"; then
4425
ac_cv_prog_CC="$CC" # Let the user override the test.
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431
test -z "$as_dir" && as_dir=.
4432
for ac_exec_ext in '' $ac_executable_extensions; do
4433
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4435
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445
if test -n "$CC"; then
4446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4447
$as_echo "$CC" >&6; }
4449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450
$as_echo "no" >&6; }
4455
if test -z "$ac_cv_prog_CC"; then
4457
# Extract the first word of "gcc", so it can be a program name with args.
4458
set dummy gcc; ac_word=$2
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460
$as_echo_n "checking for $ac_word... " >&6; }
4461
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4462
$as_echo_n "(cached) " >&6
4464
if test -n "$ac_ct_CC"; then
4465
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471
test -z "$as_dir" && as_dir=.
4472
for ac_exec_ext in '' $ac_executable_extensions; do
4473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474
ac_cv_prog_ac_ct_CC="gcc"
4475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485
if test -n "$ac_ct_CC"; then
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4487
$as_echo "$ac_ct_CC" >&6; }
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490
$as_echo "no" >&6; }
4493
if test "x$ac_ct_CC" = x; then
4496
case $cross_compiling:$ac_tool_warned in
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4499
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4500
ac_tool_warned=yes ;;
4508
if test -z "$CC"; then
4509
if test -n "$ac_tool_prefix"; then
4510
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4511
set dummy ${ac_tool_prefix}cc; ac_word=$2
4512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513
$as_echo_n "checking for $ac_word... " >&6; }
4514
if test "${ac_cv_prog_CC+set}" = set; then :
4515
$as_echo_n "(cached) " >&6
4517
if test -n "$CC"; then
4518
ac_cv_prog_CC="$CC" # Let the user override the test.
4520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524
test -z "$as_dir" && as_dir=.
4525
for ac_exec_ext in '' $ac_executable_extensions; do
4526
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527
ac_cv_prog_CC="${ac_tool_prefix}cc"
4528
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538
if test -n "$CC"; then
4539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4540
$as_echo "$CC" >&6; }
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543
$as_echo "no" >&6; }
4549
if test -z "$CC"; then
4550
# Extract the first word of "cc", so it can be a program name with args.
4551
set dummy cc; ac_word=$2
4552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553
$as_echo_n "checking for $ac_word... " >&6; }
4554
if test "${ac_cv_prog_CC+set}" = set; then :
4555
$as_echo_n "(cached) " >&6
4557
if test -n "$CC"; then
4558
ac_cv_prog_CC="$CC" # Let the user override the test.
4561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565
test -z "$as_dir" && as_dir=.
4566
for ac_exec_ext in '' $ac_executable_extensions; do
4567
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4569
ac_prog_rejected=yes
4573
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580
if test $ac_prog_rejected = yes; then
4581
# We found a bogon in the path, so make sure we never use it.
4582
set dummy $ac_cv_prog_CC
4584
if test $# != 0; then
4585
# We chose a different compiler from the bogus one.
4586
# However, it has the same basename, so the bogon will be chosen
4587
# first if we set CC to just the basename; use the full file name.
4589
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4595
if test -n "$CC"; then
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4597
$as_echo "$CC" >&6; }
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600
$as_echo "no" >&6; }
4605
if test -z "$CC"; then
4606
if test -n "$ac_tool_prefix"; then
4607
for ac_prog in cl.exe
4609
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612
$as_echo_n "checking for $ac_word... " >&6; }
4613
if test "${ac_cv_prog_CC+set}" = set; then :
4614
$as_echo_n "(cached) " >&6
4616
if test -n "$CC"; then
4617
ac_cv_prog_CC="$CC" # Let the user override the test.
4619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623
test -z "$as_dir" && as_dir=.
4624
for ac_exec_ext in '' $ac_executable_extensions; do
4625
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4627
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637
if test -n "$CC"; then
4638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4639
$as_echo "$CC" >&6; }
4641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642
$as_echo "no" >&6; }
4646
test -n "$CC" && break
4649
if test -z "$CC"; then
4651
for ac_prog in cl.exe
4653
# Extract the first word of "$ac_prog", so it can be a program name with args.
4654
set dummy $ac_prog; ac_word=$2
4655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656
$as_echo_n "checking for $ac_word... " >&6; }
4657
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4658
$as_echo_n "(cached) " >&6
4660
if test -n "$ac_ct_CC"; then
4661
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667
test -z "$as_dir" && as_dir=.
4668
for ac_exec_ext in '' $ac_executable_extensions; do
4669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670
ac_cv_prog_ac_ct_CC="$ac_prog"
4671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4681
if test -n "$ac_ct_CC"; then
4682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4683
$as_echo "$ac_ct_CC" >&6; }
4685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686
$as_echo "no" >&6; }
4690
test -n "$ac_ct_CC" && break
4693
if test "x$ac_ct_CC" = x; then
4696
case $cross_compiling:$ac_tool_warned in
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700
ac_tool_warned=yes ;;
4709
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711
as_fn_error "no acceptable C compiler found in \$PATH
4712
See \`config.log' for more details." "$LINENO" 5; }
4714
# Provide some information about the compiler.
4715
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4718
for ac_option in --version -v -V -qversion; do
4719
{ { ac_try="$ac_compiler $ac_option >&5"
4721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722
*) ac_try_echo=$ac_try;;
4724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725
$as_echo "$ac_try_echo"; } >&5
4726
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4728
if test -s conftest.err; then
4730
... rest of stderr output deleted ...
4731
10q' conftest.err >conftest.er1
4732
cat conftest.er1 >&5
4734
rm -f conftest.er1 conftest.err
4735
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736
test $ac_status = 0; }
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4741
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4742
$as_echo_n "(cached) " >&6
4744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745
/* end confdefs.h. */
4758
if ac_fn_c_try_compile "$LINENO"; then :
4763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769
if test $ac_compiler_gnu = yes; then
4774
ac_test_CFLAGS=${CFLAGS+set}
4775
ac_save_CFLAGS=$CFLAGS
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4778
if test "${ac_cv_prog_cc_g+set}" = set; then :
4779
$as_echo_n "(cached) " >&6
4781
ac_save_c_werror_flag=$ac_c_werror_flag
4782
ac_c_werror_flag=yes
4785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786
/* end confdefs.h. */
4796
if ac_fn_c_try_compile "$LINENO"; then :
4800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801
/* end confdefs.h. */
4811
if ac_fn_c_try_compile "$LINENO"; then :
4814
ac_c_werror_flag=$ac_save_c_werror_flag
4816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817
/* end confdefs.h. */
4827
if ac_fn_c_try_compile "$LINENO"; then :
4830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835
ac_c_werror_flag=$ac_save_c_werror_flag
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838
$as_echo "$ac_cv_prog_cc_g" >&6; }
4839
if test "$ac_test_CFLAGS" = set; then
4840
CFLAGS=$ac_save_CFLAGS
4841
elif test $ac_cv_prog_cc_g = yes; then
4842
if test "$GCC" = yes; then
4848
if test "$GCC" = yes; then
4854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4856
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4857
$as_echo_n "(cached) " >&6
4859
ac_cv_prog_cc_c89=no
4861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862
/* end confdefs.h. */
4865
#include <sys/types.h>
4866
#include <sys/stat.h>
4867
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4868
struct buf { int x; };
4869
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4870
static char *e (p, i)
4876
static char *f (char * (*g) (char **, int), char **p, ...)
4881
s = g (p, va_arg (v,int));
4886
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4887
function prototypes and stuff, but not '\xHH' hex character constants.
4888
These don't provoke an error unfortunately, instead are silently treated
4889
as 'x'. The following induces an error, until -std is added to get
4890
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4891
array size at least. It's necessary to write '\x00'==0 to get something
4892
that's true only with -std. */
4893
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4896
inside strings and character constants. */
4898
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900
int test (int i, double x);
4901
struct s1 {int (*f) (int a);};
4902
struct s2 {int (*f) (double a);};
4903
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4909
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4914
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4915
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4917
CC="$ac_save_CC $ac_arg"
4918
if ac_fn_c_try_compile "$LINENO"; then :
4919
ac_cv_prog_cc_c89=$ac_arg
4921
rm -f core conftest.err conftest.$ac_objext
4922
test "x$ac_cv_prog_cc_c89" != "xno" && break
4924
rm -f conftest.$ac_ext
4929
case "x$ac_cv_prog_cc_c89" in
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4932
$as_echo "none needed" >&6; } ;;
4934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4935
$as_echo "unsupported" >&6; } ;;
4937
CC="$CC $ac_cv_prog_cc_c89"
4938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4939
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941
if test "x$ac_cv_prog_cc_c89" != xno; then :
4946
ac_cpp='$CPP $CPPFLAGS'
4947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951
depcc="$CC" am_compiler_list=
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954
$as_echo_n "checking dependency style of $depcc... " >&6; }
4955
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956
$as_echo_n "(cached) " >&6
4958
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4959
# We make a subdir and do the tests there. Otherwise we can end up
4960
# making bogus files that we don't know about and never remove. For
4961
# instance it was reported that on HP-UX the gcc test will end up
4962
# making a dummy file named `D' -- because `-MD' means `put the output
4965
# Copy depcomp to subdir because otherwise we won't find it if we're
4966
# using a relative directory.
4967
cp "$am_depcomp" conftest.dir
4969
# We will build objects and dependencies in a subdirectory because
4970
# it helps to detect inapplicable dependency modes. For instance
4971
# both Tru64's cc and ICC support -MD to output dependencies as a
4972
# side effect of compilation, but ICC will put the dependencies in
4973
# the current directory while Tru64 will put them in the object
4977
am_cv_CC_dependencies_compiler_type=none
4978
if test "$am_compiler_list" = ""; then
4979
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4982
case " $depcc " in #(
4983
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4986
for depmode in $am_compiler_list; do
4987
# Setup a source with many dependencies, because some compilers
4988
# like to wrap large dependency lists on column 80 (with \), and
4989
# we should not choose a depcomp mode which is confused by this.
4991
# We need to recreate these files for each test, as the compiler may
4992
# overwrite some of them when testing with obscure command lines.
4993
# This happens at least with the AIX C compiler.
4995
for i in 1 2 3 4 5 6; do
4996
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4998
# Solaris 8's {/usr,}/bin/sh.
4999
touch sub/conftst$i.h
5001
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5003
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5004
# mode. It turns out that the SunPro C++ compiler does not properly
5005
# handle `-M -o', and we need to detect this. Also, some Intel
5006
# versions had trouble with output in subdirs
5007
am__obj=sub/conftest.${OBJEXT-o}
5008
am__minus_obj="-o $am__obj"
5011
# This depmode causes a compiler race in universal mode.
5012
test "$am__universal" = false || continue
5015
# after this tag, mechanisms are not by side-effect, so they'll
5016
# only be used when explicitly requested
5017
if test "x$enable_dependency_tracking" = xyes; then
5023
msvisualcpp | msvcmsys)
5024
# This compiler won't grok `-c -o', but also, the minuso test has
5025
# not run yet. These depmodes are late enough in the game, and
5026
# so weak that their functioning should not be impacted.
5027
am__obj=conftest.${OBJEXT-o}
5032
if depmode=$depmode \
5033
source=sub/conftest.c object=$am__obj \
5034
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036
>/dev/null 2>conftest.err &&
5037
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041
# icc doesn't choke on unknown options, it will just issue warnings
5042
# or remarks (even with -Werror). So we grep stderr for any message
5043
# that says an option was ignored or not supported.
5044
# When given -MP, icc 7.0 and 7.1 complain thusly:
5045
# icc: Command line warning: ignoring option '-M'; no argument required
5046
# The diagnosis changed in icc 8.0:
5047
# icc: Command line remark: option '-MP' not supported
5048
if (grep 'ignoring option' conftest.err ||
5049
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050
am_cv_CC_dependencies_compiler_type=$depmode
5059
am_cv_CC_dependencies_compiler_type=none
5063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5064
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5065
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5068
test "x$enable_dependency_tracking" != xno \
5069
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5071
am__fastdepCC_FALSE='#'
5073
am__fastdepCC_TRUE='#'
5074
am__fastdepCC_FALSE=
5078
case $ac_cv_prog_cc_stdc in #(
5080
ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5083
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5084
if test "${ac_cv_prog_cc_c99+set}" = set; then :
5085
$as_echo_n "(cached) " >&6
5087
ac_cv_prog_cc_c99=no
5089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090
/* end confdefs.h. */
5092
#include <stdbool.h>
5097
// Check varargs macros. These examples are taken from C99 6.10.3.5.
5098
#define debug(...) fprintf (stderr, __VA_ARGS__)
5099
#define showlist(...) puts (#__VA_ARGS__)
5100
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5102
test_varargs_macros (void)
5107
debug ("X = %d\n", x);
5108
showlist (The first, second, and third items.);
5109
report (x>y, "x is %d but y is %d", x, y);
5112
// Check long long types.
5113
#define BIG64 18446744073709551615ull
5114
#define BIG32 4294967295ul
5115
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5117
your preprocessor is broken;
5121
your preprocessor is broken;
5123
static long long int bignum = -9223372036854775807LL;
5124
static unsigned long long int ubignum = BIG64;
5126
struct incomplete_array
5134
const wchar_t *name;
5138
typedef const char *ccp;
5141
test_restrict (ccp restrict text)
5143
// See if C++-style comments work.
5144
// Iterate through items via the restricted pointer.
5145
// Also check for declarations in for loops.
5146
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5151
// Check varargs and va_copy.
5153
test_varargs (const char *format, ...)
5156
va_start (args, format);
5158
va_copy (args_copy, args);
5169
str = va_arg (args_copy, const char *);
5172
number = va_arg (args_copy, int);
5175
fnumber = va_arg (args_copy, double);
5190
_Bool success = false;
5193
if (test_restrict ("String literal") == 0)
5195
char *restrict newvar = "Another string";
5198
test_varargs ("s, d' f .", "string", 65, 34.234);
5199
test_varargs_macros ();
5201
// Check flexible array members.
5202
struct incomplete_array *ia =
5203
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5205
for (int i = 0; i < ia->datasize; ++i)
5206
ia->data[i] = i * 1.234;
5208
// Check named initializers.
5209
struct named_init ni = {
5211
.name = L"Test wide string",
5212
.average = 543.34343,
5217
int dynamic_array[ni.number];
5218
dynamic_array[ni.number - 1] = 543;
5220
// work around unused variable warnings
5221
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5222
|| dynamic_array[ni.number - 1] != 543);
5228
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5230
CC="$ac_save_CC $ac_arg"
5231
if ac_fn_c_try_compile "$LINENO"; then :
5232
ac_cv_prog_cc_c99=$ac_arg
5234
rm -f core conftest.err conftest.$ac_objext
5235
test "x$ac_cv_prog_cc_c99" != "xno" && break
5237
rm -f conftest.$ac_ext
5242
case "x$ac_cv_prog_cc_c99" in
5244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5245
$as_echo "none needed" >&6; } ;;
5247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5248
$as_echo "unsupported" >&6; } ;;
5250
CC="$CC $ac_cv_prog_cc_c99"
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5252
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5254
if test "x$ac_cv_prog_cc_c99" != xno; then :
5255
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5258
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5259
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5260
$as_echo_n "(cached) " >&6
5262
ac_cv_prog_cc_c89=no
5264
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265
/* end confdefs.h. */
5268
#include <sys/types.h>
5269
#include <sys/stat.h>
5270
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5271
struct buf { int x; };
5272
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5273
static char *e (p, i)
5279
static char *f (char * (*g) (char **, int), char **p, ...)
5284
s = g (p, va_arg (v,int));
5289
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5290
function prototypes and stuff, but not '\xHH' hex character constants.
5291
These don't provoke an error unfortunately, instead are silently treated
5292
as 'x'. The following induces an error, until -std is added to get
5293
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5294
array size at least. It's necessary to write '\x00'==0 to get something
5295
that's true only with -std. */
5296
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5298
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5299
inside strings and character constants. */
5301
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5303
int test (int i, double x);
5304
struct s1 {int (*f) (int a);};
5305
struct s2 {int (*f) (double a);};
5306
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5312
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5317
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5318
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5320
CC="$ac_save_CC $ac_arg"
5321
if ac_fn_c_try_compile "$LINENO"; then :
5322
ac_cv_prog_cc_c89=$ac_arg
5324
rm -f core conftest.err conftest.$ac_objext
5325
test "x$ac_cv_prog_cc_c89" != "xno" && break
5327
rm -f conftest.$ac_ext
5332
case "x$ac_cv_prog_cc_c89" in
5334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5335
$as_echo "none needed" >&6; } ;;
5337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5338
$as_echo "unsupported" >&6; } ;;
5340
CC="$CC $ac_cv_prog_cc_c89"
5341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5342
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5344
if test "x$ac_cv_prog_cc_c89" != xno; then :
5345
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5347
ac_cv_prog_cc_stdc=no
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5354
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5355
if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5356
$as_echo_n "(cached) " >&6
5359
case $ac_cv_prog_cc_stdc in #(
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5362
$as_echo "unsupported" >&6; } ;; #(
5364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5365
$as_echo "none needed" >&6; } ;; #(
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5368
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5372
ac_cpp='$CPP $CPPFLAGS'
5373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5377
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5378
# On Suns, sometimes $CPP names a directory.
5379
if test -n "$CPP" && test -d "$CPP"; then
5382
if test -z "$CPP"; then
5383
if test "${ac_cv_prog_CPP+set}" = set; then :
5384
$as_echo_n "(cached) " >&6
5386
# Double quotes because CPP needs to be expanded
5387
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5390
for ac_c_preproc_warn_flag in '' yes
5392
# Use a header file that comes with gcc, so configuring glibc
5393
# with a fresh cross-compiler works.
5394
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395
# <limits.h> exists even on freestanding compilers.
5396
# On the NeXT, cc -E runs the code through the compiler's parser,
5397
# not just through cpp. "Syntax error" is here to catch this case.
5398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399
/* end confdefs.h. */
5401
# include <limits.h>
5403
# include <assert.h>
5407
if ac_fn_c_try_cpp "$LINENO"; then :
5410
# Broken: fails on valid input.
5413
rm -f conftest.err conftest.$ac_ext
5415
# OK, works on sane cases. Now check whether nonexistent headers
5416
# can be detected and how.
5417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418
/* end confdefs.h. */
5419
#include <ac_nonexistent.h>
5421
if ac_fn_c_try_cpp "$LINENO"; then :
5422
# Broken: success on invalid input.
5425
# Passes both tests.
5429
rm -f conftest.err conftest.$ac_ext
5432
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5433
rm -f conftest.err conftest.$ac_ext
5434
if $ac_preproc_ok; then :
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5447
$as_echo "$CPP" >&6; }
5449
for ac_c_preproc_warn_flag in '' yes
5451
# Use a header file that comes with gcc, so configuring glibc
5452
# with a fresh cross-compiler works.
5453
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454
# <limits.h> exists even on freestanding compilers.
5455
# On the NeXT, cc -E runs the code through the compiler's parser,
5456
# not just through cpp. "Syntax error" is here to catch this case.
5457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458
/* end confdefs.h. */
5460
# include <limits.h>
5462
# include <assert.h>
5466
if ac_fn_c_try_cpp "$LINENO"; then :
5469
# Broken: fails on valid input.
5472
rm -f conftest.err conftest.$ac_ext
5474
# OK, works on sane cases. Now check whether nonexistent headers
5475
# can be detected and how.
5476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477
/* end confdefs.h. */
5478
#include <ac_nonexistent.h>
5480
if ac_fn_c_try_cpp "$LINENO"; then :
5481
# Broken: success on invalid input.
5484
# Passes both tests.
5488
rm -f conftest.err conftest.$ac_ext
5491
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492
rm -f conftest.err conftest.$ac_ext
5493
if $ac_preproc_ok; then :
5496
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5497
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5498
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5499
See \`config.log' for more details." "$LINENO" 5; }
5503
ac_cpp='$CPP $CPPFLAGS'
5504
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5510
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5512
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5513
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5514
$as_echo_n "(cached) " >&6
5516
cat >conftest.make <<\_ACEOF
5519
@echo '@@@%%%=$(MAKE)=@@@%%%'
5521
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5522
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5524
eval ac_cv_prog_make_${ac_make}_set=yes;;
5526
eval ac_cv_prog_make_${ac_make}_set=no;;
5530
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5532
$as_echo "yes" >&6; }
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
$as_echo "no" >&6; }
5537
SET_MAKE="MAKE=${MAKE-make}"
5540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5541
$as_echo_n "checking whether ln -s works... " >&6; }
5543
if test "$LN_S" = "ln -s"; then
5544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5545
$as_echo "yes" >&6; }
5547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5548
$as_echo "no, using $LN_S" >&6; }
5552
# Check if LD supports linker scripts,
5553
# and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
5554
# Check whether --enable-ld-version-script was given.
5555
if test "${enable_ld_version_script+set}" = set; then :
5556
enableval=$enable_ld_version_script; have_ld_version_script=$enableval
5559
if test -z "$have_ld_version_script"; then
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
5561
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
5562
save_LDFLAGS="$LDFLAGS"
5563
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
5564
cat > conftest.map <<EOF
5573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574
/* end confdefs.h. */
5584
if ac_fn_c_try_link "$LINENO"; then :
5585
have_ld_version_script=yes
5587
have_ld_version_script=no
5589
rm -f core conftest.err conftest.$ac_objext \
5590
conftest$ac_exeext conftest.$ac_ext
5592
LDFLAGS="$save_LDFLAGS"
5593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
5594
$as_echo "$have_ld_version_script" >&6; }
5596
if test "$have_ld_version_script" = "yes"; then
5597
HAVE_LD_VERSION_SCRIPT_TRUE=
5598
HAVE_LD_VERSION_SCRIPT_FALSE='#'
5600
HAVE_LD_VERSION_SCRIPT_TRUE='#'
5601
HAVE_LD_VERSION_SCRIPT_FALSE=
5605
# See if compiler supports prototypes.
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5607
$as_echo_n "checking for function prototypes... " >&6; }
5608
if test "${ijg_cv_have_prototypes+set}" = set; then :
5609
$as_echo_n "(cached) " >&6
5611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612
/* end confdefs.h. */
749
5614
int testfunction (int arg1, int * arg2); /* check prototypes */
750
5615
struct methods_struct { /* check method-pointer declarations */
1350
6117
printf("I fear the JPEG software will not work at all.\n\n");
1351
6118
return 0; /* try it with unsigned anyway */
1354
6121
exit(is_shifting_signed(-0x7F7E80B1L));
1357
if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1359
echo "$ac_t""no" 1>&6
1360
cat >> confdefs.h <<\EOF
1361
#define RIGHT_SHIFT_IS_UNSIGNED
1365
echo "configure: failed program was:" >&5
1366
cat conftest.$ac_ext >&5
1368
echo "$ac_t""yes" 1>&6
1373
echo $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6
1374
echo "configure:1375: checking to see if fopen accepts b spec" >&5
1375
if test "$cross_compiling" = yes; then
1376
echo "$ac_t""Assuming that it does." 1>&6
1378
cat > conftest.$ac_ext <<EOF
1379
#line 1380 "configure"
1380
#include "confdefs.h"
6124
if ac_fn_c_try_run "$LINENO"; then :
6125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126
$as_echo "no" >&6; }
6128
$as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6132
$as_echo "yes" >&6; }
6134
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135
conftest.$ac_objext conftest.beam conftest.$ac_ext
6138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
6139
$as_echo_n "checking to see if fopen accepts b spec... " >&6; }
6140
if test "$cross_compiling" = yes; then :
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
6142
$as_echo "Assuming that it does." >&6; }
6144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145
/* end confdefs.h. */
1382
6147
#include <stdio.h>
1384
6149
if (fopen("conftestdata", "wb") != NULL)
1389
if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1391
echo "$ac_t""yes" 1>&6
1393
echo "configure: failed program was:" >&5
1394
cat conftest.$ac_ext >&5
1396
echo "$ac_t""no" 1>&6
1397
cat >> confdefs.h <<\EOF
1398
#define DONT_USE_B_MODE
1406
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407
if test -f $ac_dir/install-sh; then
1409
ac_install_sh="$ac_aux_dir/install-sh -c"
1411
elif test -f $ac_dir/install.sh; then
1413
ac_install_sh="$ac_aux_dir/install.sh -c"
1417
if test -z "$ac_aux_dir"; then
1418
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1420
ac_config_guess=$ac_aux_dir/config.guess
1421
ac_config_sub=$ac_aux_dir/config.sub
1422
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1424
# Find a good install program. We prefer a C program (faster),
1425
# so one script is as good as another. But avoid the broken or
1426
# incompatible versions:
1427
# SysV /etc/install, /usr/sbin/install
1428
# SunOS /usr/etc/install
1429
# IRIX /sbin/install
1431
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1432
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1433
# ./install, which can be erroneously created by make from ./install.sh.
1434
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1435
echo "configure:1436: checking for a BSD compatible install" >&5
1436
if test -z "$INSTALL"; then
1437
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1438
echo $ac_n "(cached) $ac_c" 1>&6
1440
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6154
if ac_fn_c_try_run "$LINENO"; then :
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6156
$as_echo "yes" >&6; }
6158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159
$as_echo "no" >&6; }
6161
$as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
6164
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6165
conftest.$ac_objext conftest.beam conftest.$ac_ext
6170
enable_win32_dll=yes
6173
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6174
if test -n "$ac_tool_prefix"; then
6175
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6176
set dummy ${ac_tool_prefix}as; ac_word=$2
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178
$as_echo_n "checking for $ac_word... " >&6; }
6179
if test "${ac_cv_prog_AS+set}" = set; then :
6180
$as_echo_n "(cached) " >&6
6182
if test -n "$AS"; then
6183
ac_cv_prog_AS="$AS" # Let the user override the test.
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189
test -z "$as_dir" && as_dir=.
6190
for ac_exec_ext in '' $ac_executable_extensions; do
6191
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192
ac_cv_prog_AS="${ac_tool_prefix}as"
6193
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203
if test -n "$AS"; then
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6205
$as_echo "$AS" >&6; }
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208
$as_echo "no" >&6; }
6213
if test -z "$ac_cv_prog_AS"; then
6215
# Extract the first word of "as", so it can be a program name with args.
6216
set dummy as; ac_word=$2
6217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218
$as_echo_n "checking for $ac_word... " >&6; }
6219
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6220
$as_echo_n "(cached) " >&6
6222
if test -n "$ac_ct_AS"; then
6223
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229
test -z "$as_dir" && as_dir=.
6230
for ac_exec_ext in '' $ac_executable_extensions; do
6231
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232
ac_cv_prog_ac_ct_AS="as"
6233
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242
ac_ct_AS=$ac_cv_prog_ac_ct_AS
6243
if test -n "$ac_ct_AS"; then
6244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6245
$as_echo "$ac_ct_AS" >&6; }
6247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248
$as_echo "no" >&6; }
6251
if test "x$ac_ct_AS" = x; then
6254
case $cross_compiling:$ac_tool_warned in
6256
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258
ac_tool_warned=yes ;;
6266
if test -n "$ac_tool_prefix"; then
6267
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6268
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270
$as_echo_n "checking for $ac_word... " >&6; }
6271
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6272
$as_echo_n "(cached) " >&6
6274
if test -n "$DLLTOOL"; then
6275
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281
test -z "$as_dir" && as_dir=.
6282
for ac_exec_ext in '' $ac_executable_extensions; do
6283
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6285
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294
DLLTOOL=$ac_cv_prog_DLLTOOL
6295
if test -n "$DLLTOOL"; then
6296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6297
$as_echo "$DLLTOOL" >&6; }
6299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300
$as_echo "no" >&6; }
6305
if test -z "$ac_cv_prog_DLLTOOL"; then
6306
ac_ct_DLLTOOL=$DLLTOOL
6307
# Extract the first word of "dlltool", so it can be a program name with args.
6308
set dummy dlltool; ac_word=$2
6309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310
$as_echo_n "checking for $ac_word... " >&6; }
6311
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6312
$as_echo_n "(cached) " >&6
6314
if test -n "$ac_ct_DLLTOOL"; then
6315
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321
test -z "$as_dir" && as_dir=.
6322
for ac_exec_ext in '' $ac_executable_extensions; do
6323
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6325
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6335
if test -n "$ac_ct_DLLTOOL"; then
6336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6337
$as_echo "$ac_ct_DLLTOOL" >&6; }
6339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340
$as_echo "no" >&6; }
6343
if test "x$ac_ct_DLLTOOL" = x; then
6346
case $cross_compiling:$ac_tool_warned in
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350
ac_tool_warned=yes ;;
6352
DLLTOOL=$ac_ct_DLLTOOL
6355
DLLTOOL="$ac_cv_prog_DLLTOOL"
6358
if test -n "$ac_tool_prefix"; then
6359
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6360
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362
$as_echo_n "checking for $ac_word... " >&6; }
6363
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6364
$as_echo_n "(cached) " >&6
6366
if test -n "$OBJDUMP"; then
6367
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373
test -z "$as_dir" && as_dir=.
6374
for ac_exec_ext in '' $ac_executable_extensions; do
6375
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6377
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386
OBJDUMP=$ac_cv_prog_OBJDUMP
6387
if test -n "$OBJDUMP"; then
6388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6389
$as_echo "$OBJDUMP" >&6; }
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392
$as_echo "no" >&6; }
6397
if test -z "$ac_cv_prog_OBJDUMP"; then
6398
ac_ct_OBJDUMP=$OBJDUMP
6399
# Extract the first word of "objdump", so it can be a program name with args.
6400
set dummy objdump; ac_word=$2
6401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402
$as_echo_n "checking for $ac_word... " >&6; }
6403
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6404
$as_echo_n "(cached) " >&6
6406
if test -n "$ac_ct_OBJDUMP"; then
6407
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413
test -z "$as_dir" && as_dir=.
6414
for ac_exec_ext in '' $ac_executable_extensions; do
6415
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6417
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6427
if test -n "$ac_ct_OBJDUMP"; then
6428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6429
$as_echo "$ac_ct_OBJDUMP" >&6; }
6431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432
$as_echo "no" >&6; }
6435
if test "x$ac_ct_OBJDUMP" = x; then
6438
case $cross_compiling:$ac_tool_warned in
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442
ac_tool_warned=yes ;;
6444
OBJDUMP=$ac_ct_OBJDUMP
6447
OBJDUMP="$ac_cv_prog_OBJDUMP"
6453
test -z "$AS" && AS=as
6459
test -z "$DLLTOOL" && DLLTOOL=dlltool
6465
test -z "$OBJDUMP" && OBJDUMP=objdump
6475
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6476
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6481
macro_version='2.2.6b'
6482
macro_revision='1.3017'
6496
ltmain="$ac_aux_dir/ltmain.sh"
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6499
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6500
if test "${ac_cv_path_SED+set}" = set; then :
6501
$as_echo_n "(cached) " >&6
6503
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6504
for ac_i in 1 2 3 4 5 6 7; do
6505
ac_script="$ac_script$as_nl$ac_script"
6507
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6508
{ ac_script=; unset ac_script;}
6509
if test -z "$SED"; then
6510
ac_path_SED_found=false
6511
# Loop through the user's path and test for each of PROGNAME-LIST
6512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516
test -z "$as_dir" && as_dir=.
6517
for ac_prog in sed gsed; do
6518
for ac_exec_ext in '' $ac_executable_extensions; do
6519
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6520
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6521
# Check for GNU ac_path_SED and select it if it is found.
6522
# Check for GNU $ac_path_SED
6523
case `"$ac_path_SED" --version 2>&1` in
6525
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6528
$as_echo_n 0123456789 >"conftest.in"
6531
cat "conftest.in" "conftest.in" >"conftest.tmp"
6532
mv "conftest.tmp" "conftest.in"
6533
cp "conftest.in" "conftest.nl"
6534
$as_echo '' >> "conftest.nl"
6535
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6536
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6537
as_fn_arith $ac_count + 1 && ac_count=$as_val
6538
if test $ac_count -gt ${ac_path_SED_max-0}; then
6539
# Best one so far, save it but keep looking for a better one
6540
ac_cv_path_SED="$ac_path_SED"
6541
ac_path_SED_max=$ac_count
6543
# 10*(2^10) chars as input seems more than enough
6544
test $ac_count -gt 10 && break
6546
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6549
$ac_path_SED_found && break 3
6554
if test -z "$ac_cv_path_SED"; then
6555
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6563
$as_echo "$ac_cv_path_SED" >&6; }
6564
SED="$ac_cv_path_SED"
6567
test -z "$SED" && SED=sed
6568
Xsed="$SED -e 1s/^X//"
6580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6581
$as_echo_n "checking for fgrep... " >&6; }
6582
if test "${ac_cv_path_FGREP+set}" = set; then :
6583
$as_echo_n "(cached) " >&6
6585
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6586
then ac_cv_path_FGREP="$GREP -F"
6588
if test -z "$FGREP"; then
6589
ac_path_FGREP_found=false
6590
# Loop through the user's path and test for each of PROGNAME-LIST
6591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6595
test -z "$as_dir" && as_dir=.
6596
for ac_prog in fgrep; do
6597
for ac_exec_ext in '' $ac_executable_extensions; do
6598
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6599
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6600
# Check for GNU ac_path_FGREP and select it if it is found.
6601
# Check for GNU $ac_path_FGREP
6602
case `"$ac_path_FGREP" --version 2>&1` in
6604
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6607
$as_echo_n 0123456789 >"conftest.in"
6610
cat "conftest.in" "conftest.in" >"conftest.tmp"
6611
mv "conftest.tmp" "conftest.in"
6612
cp "conftest.in" "conftest.nl"
6613
$as_echo 'FGREP' >> "conftest.nl"
6614
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6615
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6616
as_fn_arith $ac_count + 1 && ac_count=$as_val
6617
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6618
# Best one so far, save it but keep looking for a better one
6619
ac_cv_path_FGREP="$ac_path_FGREP"
6620
ac_path_FGREP_max=$ac_count
6622
# 10*(2^10) chars as input seems more than enough
6623
test $ac_count -gt 10 && break
6625
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6628
$ac_path_FGREP_found && break 3
6633
if test -z "$ac_cv_path_FGREP"; then
6634
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6637
ac_cv_path_FGREP=$FGREP
6642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6643
$as_echo "$ac_cv_path_FGREP" >&6; }
6644
FGREP="$ac_cv_path_FGREP"
6647
test -z "$GREP" && GREP=grep
6667
# Check whether --with-gnu-ld was given.
6668
if test "${with_gnu_ld+set}" = set; then :
6669
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6675
if test "$GCC" = yes; then
6676
# Check if gcc -print-prog-name=ld gives a path.
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6678
$as_echo_n "checking for ld used by $CC... " >&6; }
6681
# gcc leaves a trailing carriage return which upsets mingw
6682
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6684
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6687
# Accept absolute paths.
6689
re_direlt='/[^/][^/]*/\.\./'
6690
# Canonicalize the pathname of ld
6691
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6692
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6693
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6695
test -z "$LD" && LD="$ac_prog"
6698
# If it fails, then pretend we aren't using GCC.
6702
# If it is relative, then search for the first ld in PATH.
6706
elif test "$with_gnu_ld" = yes; then
6707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6708
$as_echo_n "checking for GNU ld... " >&6; }
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6711
$as_echo_n "checking for non-GNU ld... " >&6; }
6713
if test "${lt_cv_path_LD+set}" = set; then :
6714
$as_echo_n "(cached) " >&6
6716
if test -z "$LD"; then
6717
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1441
6718
for ac_dir in $PATH; do
1442
# Account for people who put trailing slashes in PATH elements.
1444
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1446
# OSF1 and SCO ODT 3.0 have their own names for install.
1447
for ac_prog in ginstall installbsd scoinst install; do
1448
if test -f $ac_dir/$ac_prog; then
1449
if test $ac_prog = install &&
1450
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451
# AIX install. It has an incompatible calling convention.
1452
# OSF/1 installbsd also uses dspmsg, but is usable.
1455
ac_cv_path_install="$ac_dir/$ac_prog -c"
6720
test -z "$ac_dir" && ac_dir=.
6721
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6722
lt_cv_path_LD="$ac_dir/$ac_prog"
6723
# Check to see if the program is GNU ld. I'd rather use --version,
6724
# but apparently some variants of GNU ld only accept -v.
6725
# Break only if it was the GNU/non-GNU ld that we prefer.
6726
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6727
*GNU* | *'with BFD'*)
6728
test "$with_gnu_ld" != no && break
6731
test "$with_gnu_ld" != yes && break
6738
lt_cv_path_LD="$LD" # Let the user override the test with a path.
6743
if test -n "$LD"; then
6744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6745
$as_echo "$LD" >&6; }
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748
$as_echo "no" >&6; }
6750
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6752
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6753
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6754
$as_echo_n "(cached) " >&6
6756
# I'd rather use --version here, but apparently some GNU lds only accept -v.
6757
case `$LD -v 2>&1 </dev/null` in
6758
*GNU* | *'with BFD'*)
6759
lt_cv_prog_gnu_ld=yes
6762
lt_cv_prog_gnu_ld=no
6766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6767
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6768
with_gnu_ld=$lt_cv_prog_gnu_ld
6778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6779
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6780
if test "${lt_cv_path_NM+set}" = set; then :
6781
$as_echo_n "(cached) " >&6
6783
if test -n "$NM"; then
6784
# Let the user override the test.
6787
lt_nm_to_check="${ac_tool_prefix}nm"
6788
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6789
lt_nm_to_check="$lt_nm_to_check nm"
6791
for lt_tmp_nm in $lt_nm_to_check; do
6792
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6793
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6795
test -z "$ac_dir" && ac_dir=.
6796
tmp_nm="$ac_dir/$lt_tmp_nm"
6797
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6798
# Check to see if the nm accepts a BSD-compat flag.
6799
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6800
# nm: unknown option "B" ignored
6801
# Tru64's nm complains that /dev/null is an invalid object file
6802
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6803
*/dev/null* | *'Invalid file or object type'*)
6804
lt_cv_path_NM="$tmp_nm -B"
6808
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6810
lt_cv_path_NM="$tmp_nm -p"
6814
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6815
continue # so that we can try to find one that supports BSD flags
6824
: ${lt_cv_path_NM=no}
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6828
$as_echo "$lt_cv_path_NM" >&6; }
6829
if test "$lt_cv_path_NM" != "no"; then
6832
# Didn't find any BSD compatible name lister, look for dumpbin.
6833
if test -n "$ac_tool_prefix"; then
6834
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6836
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839
$as_echo_n "checking for $ac_word... " >&6; }
6840
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6841
$as_echo_n "(cached) " >&6
6843
if test -n "$DUMPBIN"; then
6844
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850
test -z "$as_dir" && as_dir=.
6851
for ac_exec_ext in '' $ac_executable_extensions; do
6852
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6854
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863
DUMPBIN=$ac_cv_prog_DUMPBIN
6864
if test -n "$DUMPBIN"; then
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6866
$as_echo "$DUMPBIN" >&6; }
6868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869
$as_echo "no" >&6; }
6873
test -n "$DUMPBIN" && break
6876
if test -z "$DUMPBIN"; then
6877
ac_ct_DUMPBIN=$DUMPBIN
6878
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6880
# Extract the first word of "$ac_prog", so it can be a program name with args.
6881
set dummy $ac_prog; ac_word=$2
6882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883
$as_echo_n "checking for $ac_word... " >&6; }
6884
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6885
$as_echo_n "(cached) " >&6
6887
if test -n "$ac_ct_DUMPBIN"; then
6888
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894
test -z "$as_dir" && as_dir=.
6895
for ac_exec_ext in '' $ac_executable_extensions; do
6896
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6898
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6908
if test -n "$ac_ct_DUMPBIN"; then
6909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6910
$as_echo "$ac_ct_DUMPBIN" >&6; }
6912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913
$as_echo "no" >&6; }
6917
test -n "$ac_ct_DUMPBIN" && break
6920
if test "x$ac_ct_DUMPBIN" = x; then
6923
case $cross_compiling:$ac_tool_warned in
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927
ac_tool_warned=yes ;;
6929
DUMPBIN=$ac_ct_DUMPBIN
6934
if test "$DUMPBIN" != ":"; then
6938
test -z "$NM" && NM=nm
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6946
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6947
if test "${lt_cv_nm_interface+set}" = set; then :
6948
$as_echo_n "(cached) " >&6
6950
lt_cv_nm_interface="BSD nm"
6951
echo "int some_variable = 0;" > conftest.$ac_ext
6952
(eval echo "\"\$as_me:6952: $ac_compile\"" >&5)
6953
(eval "$ac_compile" 2>conftest.err)
6954
cat conftest.err >&5
6955
(eval echo "\"\$as_me:6955: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6956
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6957
cat conftest.err >&5
6958
(eval echo "\"\$as_me:6958: output\"" >&5)
6959
cat conftest.out >&5
6960
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6961
lt_cv_nm_interface="MS dumpbin"
6965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6966
$as_echo "$lt_cv_nm_interface" >&6; }
6968
# find the maximum length of command line arguments
6969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6970
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6971
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6972
$as_echo_n "(cached) " >&6
6979
# On DJGPP, this test can blow up pretty badly due to problems in libc
6980
# (any single argument exceeding 2000 bytes causes a buffer overrun
6981
# during glob expansion). Even if it were fixed, the result of this
6982
# check would be larger than it should be.
6983
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6987
# Under GNU Hurd, this test is not required because there is
6988
# no limit to the length of command line arguments.
6989
# Libtool will interpret -1 as no limit whatsoever
6990
lt_cv_sys_max_cmd_len=-1;
6993
cygwin* | mingw* | cegcc*)
6994
# On Win9x/ME, this test blows up -- it succeeds, but takes
6995
# about 5 minutes as the teststring grows exponentially.
6996
# Worse, since 9x/ME are not pre-emptively multitasking,
6997
# you end up with a "frozen" computer, even though with patience
6998
# the test eventually succeeds (with a max line length of 256k).
6999
# Instead, let's just punt: use the minimum linelength reported by
7000
# all of the supported platforms: 8192 (on NT/2K/XP).
7001
lt_cv_sys_max_cmd_len=8192;
7005
# On AmigaOS with pdksh, this test takes hours, literally.
7006
# So we just punt and use a minimum line length of 8192.
7007
lt_cv_sys_max_cmd_len=8192;
7010
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7011
# This has been around since 386BSD, at least. Likely further.
7012
if test -x /sbin/sysctl; then
7013
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7014
elif test -x /usr/sbin/sysctl; then
7015
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7017
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7019
# And add a safety zone
7020
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7021
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7025
# We know the value 262144 and hardcode it with a safety zone (like BSD)
7026
lt_cv_sys_max_cmd_len=196608
7030
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7031
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7032
# nice to cause kernel panics so lets avoid the loop below.
7033
# First set a reasonable default.
7034
lt_cv_sys_max_cmd_len=16384
7036
if test -x /sbin/sysconfig; then
7037
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7038
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7043
lt_cv_sys_max_cmd_len=102400
7045
sysv5* | sco5v6* | sysv4.2uw2*)
7046
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7047
if test -n "$kargmax"; then
7048
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7050
lt_cv_sys_max_cmd_len=32768
7054
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7055
if test -n "$lt_cv_sys_max_cmd_len"; then
7056
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7057
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7059
# Make teststring a little bigger before we do anything with it.
7060
# a 1K string should be a reasonable start.
7061
for i in 1 2 3 4 5 6 7 8 ; do
7062
teststring=$teststring$teststring
7064
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7065
# If test is not a shell built-in, we'll probably end up computing a
7066
# maximum length that is only half of the actual maximum length, but
7068
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7069
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7070
test $i != 17 # 1/2 MB should be enough
7073
teststring=$teststring$teststring
7075
# Only check the string length outside the loop.
7076
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7078
# Add a significant safety factor because C++ compilers can tack on
7079
# massive amounts of additional arguments before passing them to the
7080
# linker. It appears as though 1/2 is a usable value.
7081
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7088
if test -n $lt_cv_sys_max_cmd_len ; then
7089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7090
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7093
$as_echo "none" >&6; }
7095
max_cmd_len=$lt_cv_sys_max_cmd_len
7106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7107
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7108
# Try some XSI features
7111
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7113
&& eval 'test $(( 1 + 1 )) -eq 2 \
7114
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7117
$as_echo "$xsi_shell" >&6; }
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7121
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7123
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7125
&& lt_shell_append=yes
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7127
$as_echo "$lt_shell_append" >&6; }
7130
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7140
# test EBCDIC or ASCII
7141
case `echo X|tr X '\101'` in
7142
A) # ASCII based system
7143
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7144
lt_SP2NL='tr \040 \012'
7145
lt_NL2SP='tr \015\012 \040\040'
7147
*) # EBCDIC based system
7148
lt_SP2NL='tr \100 \n'
7149
lt_NL2SP='tr \r\n \100\100'
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7162
$as_echo_n "checking for $LD option to reload object files... " >&6; }
7163
if test "${lt_cv_ld_reload_flag+set}" = set; then :
7164
$as_echo_n "(cached) " >&6
7166
lt_cv_ld_reload_flag='-r'
7168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7169
$as_echo "$lt_cv_ld_reload_flag" >&6; }
7170
reload_flag=$lt_cv_ld_reload_flag
7171
case $reload_flag in
7173
*) reload_flag=" $reload_flag" ;;
7175
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7178
if test "$GCC" = yes; then
7179
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7181
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7194
if test -n "$ac_tool_prefix"; then
7195
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7196
set dummy ${ac_tool_prefix}objdump; ac_word=$2
7197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198
$as_echo_n "checking for $ac_word... " >&6; }
7199
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7200
$as_echo_n "(cached) " >&6
7202
if test -n "$OBJDUMP"; then
7203
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209
test -z "$as_dir" && as_dir=.
7210
for ac_exec_ext in '' $ac_executable_extensions; do
7211
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7213
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222
OBJDUMP=$ac_cv_prog_OBJDUMP
7223
if test -n "$OBJDUMP"; then
7224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7225
$as_echo "$OBJDUMP" >&6; }
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228
$as_echo "no" >&6; }
7233
if test -z "$ac_cv_prog_OBJDUMP"; then
7234
ac_ct_OBJDUMP=$OBJDUMP
7235
# Extract the first word of "objdump", so it can be a program name with args.
7236
set dummy objdump; ac_word=$2
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238
$as_echo_n "checking for $ac_word... " >&6; }
7239
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7240
$as_echo_n "(cached) " >&6
7242
if test -n "$ac_ct_OBJDUMP"; then
7243
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249
test -z "$as_dir" && as_dir=.
7250
for ac_exec_ext in '' $ac_executable_extensions; do
7251
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252
ac_cv_prog_ac_ct_OBJDUMP="objdump"
7253
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7263
if test -n "$ac_ct_OBJDUMP"; then
7264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7265
$as_echo "$ac_ct_OBJDUMP" >&6; }
7267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268
$as_echo "no" >&6; }
7271
if test "x$ac_ct_OBJDUMP" = x; then
7274
case $cross_compiling:$ac_tool_warned in
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278
ac_tool_warned=yes ;;
7280
OBJDUMP=$ac_ct_OBJDUMP
7283
OBJDUMP="$ac_cv_prog_OBJDUMP"
7286
test -z "$OBJDUMP" && OBJDUMP=objdump
7293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7294
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7295
if test "${lt_cv_deplibs_check_method+set}" = set; then :
7296
$as_echo_n "(cached) " >&6
7298
lt_cv_file_magic_cmd='$MAGIC_CMD'
7299
lt_cv_file_magic_test_file=
7300
lt_cv_deplibs_check_method='unknown'
7301
# Need to set the preceding variable on all platforms that support
7302
# interlibrary dependencies.
7303
# 'none' -- dependencies not supported.
7304
# `unknown' -- same as none, but documents that we really don't know.
7305
# 'pass_all' -- all dependencies passed with no checks.
7306
# 'test_compile' -- check by making test program.
7307
# 'file_magic [[regex]]' -- check by looking for files in library path
7308
# which responds to the $file_magic_cmd with a given extended regex.
7309
# If you have `file' or equivalent on your system and you're not sure
7310
# whether `pass_all' will *always* work, you probably want this one.
7314
lt_cv_deplibs_check_method=pass_all
7318
lt_cv_deplibs_check_method=pass_all
7322
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7323
lt_cv_file_magic_cmd='/usr/bin/file -L'
7324
lt_cv_file_magic_test_file=/shlib/libc.so
7328
# func_win32_libid is a shell function defined in ltmain.sh
7329
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7330
lt_cv_file_magic_cmd='func_win32_libid'
7334
# Base MSYS/MinGW do not provide the 'file' command needed by
7335
# func_win32_libid shell function, so use a weaker test based on 'objdump',
7336
# unless we find 'file', for example because we are cross-compiling.
7337
if ( file / ) >/dev/null 2>&1; then
7338
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7339
lt_cv_file_magic_cmd='func_win32_libid'
7341
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7342
lt_cv_file_magic_cmd='$OBJDUMP -f'
7347
# use the weaker test based on 'objdump'. See mingw*.
7348
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7349
lt_cv_file_magic_cmd='$OBJDUMP -f'
7352
darwin* | rhapsody*)
7353
lt_cv_deplibs_check_method=pass_all
7356
freebsd* | dragonfly*)
7357
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7360
# Not sure whether the presence of OpenBSD here was a mistake.
7361
# Let's accept both of them until this is cleared up.
7362
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7363
lt_cv_file_magic_cmd=/usr/bin/file
7364
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1466
if test "${ac_cv_path_install+set}" = set; then
1467
INSTALL="$ac_cv_path_install"
1469
# As a last resort, use the slow shell script. We don't cache a
1470
# path for INSTALL within a source directory, because that will
1471
# break other packages using the cache if that directory is
1472
# removed, or if the path is relative.
1473
INSTALL="$ac_install_sh"
1476
echo "$ac_t""$INSTALL" 1>&6
1478
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479
# It thinks the first close brace ends the variable substitution.
1480
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1482
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1484
# Extract the first word of "ranlib", so it can be a program name with args.
1485
set dummy ranlib; ac_word=$2
1486
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487
echo "configure:1488: checking for $ac_word" >&5
1488
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1489
echo $ac_n "(cached) $ac_c" 1>&6
7368
lt_cv_deplibs_check_method=pass_all
7373
lt_cv_deplibs_check_method=pass_all
7376
hpux10.20* | hpux11*)
7377
lt_cv_file_magic_cmd=/usr/bin/file
7380
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7381
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7384
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7385
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7388
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7389
lt_cv_file_magic_test_file=/usr/lib/libc.sl
7395
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7396
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7399
irix5* | irix6* | nonstopux*)
7401
*-32|*"-32 ") libmagic=32-bit;;
7402
*-n32|*"-n32 ") libmagic=N32;;
7403
*-64|*"-64 ") libmagic=64-bit;;
7404
*) libmagic=never-match;;
7406
lt_cv_deplibs_check_method=pass_all
7409
# This must be Linux ELF.
7410
linux* | k*bsd*-gnu)
7411
lt_cv_deplibs_check_method=pass_all
7415
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7416
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7418
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7423
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7424
lt_cv_file_magic_cmd=/usr/bin/file
7425
lt_cv_file_magic_test_file=/usr/lib/libnls.so
7429
lt_cv_deplibs_check_method=pass_all
7433
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7434
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7436
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7440
osf3* | osf4* | osf5*)
7441
lt_cv_deplibs_check_method=pass_all
7445
lt_cv_deplibs_check_method=pass_all
7449
lt_cv_deplibs_check_method=pass_all
7452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7453
lt_cv_deplibs_check_method=pass_all
7457
case $host_vendor in
7459
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7460
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7463
lt_cv_deplibs_check_method=pass_all
7466
lt_cv_file_magic_cmd='/bin/file'
7467
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7470
lt_cv_file_magic_cmd='/bin/file'
7471
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7472
lt_cv_file_magic_test_file=/lib/libc.so
7475
lt_cv_deplibs_check_method=pass_all
7478
lt_cv_deplibs_check_method=pass_all
7484
lt_cv_deplibs_check_method=pass_all
7489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7490
$as_echo "$lt_cv_deplibs_check_method" >&6; }
7491
file_magic_cmd=$lt_cv_file_magic_cmd
7492
deplibs_check_method=$lt_cv_deplibs_check_method
7493
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7506
if test -n "$ac_tool_prefix"; then
7507
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7508
set dummy ${ac_tool_prefix}ar; ac_word=$2
7509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510
$as_echo_n "checking for $ac_word... " >&6; }
7511
if test "${ac_cv_prog_AR+set}" = set; then :
7512
$as_echo_n "(cached) " >&6
7514
if test -n "$AR"; then
7515
ac_cv_prog_AR="$AR" # Let the user override the test.
7517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521
test -z "$as_dir" && as_dir=.
7522
for ac_exec_ext in '' $ac_executable_extensions; do
7523
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524
ac_cv_prog_AR="${ac_tool_prefix}ar"
7525
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535
if test -n "$AR"; then
7536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7537
$as_echo "$AR" >&6; }
7539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540
$as_echo "no" >&6; }
7545
if test -z "$ac_cv_prog_AR"; then
7547
# Extract the first word of "ar", so it can be a program name with args.
7548
set dummy ar; ac_word=$2
7549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550
$as_echo_n "checking for $ac_word... " >&6; }
7551
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7552
$as_echo_n "(cached) " >&6
7554
if test -n "$ac_ct_AR"; then
7555
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561
test -z "$as_dir" && as_dir=.
7562
for ac_exec_ext in '' $ac_executable_extensions; do
7563
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564
ac_cv_prog_ac_ct_AR="ar"
7565
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7575
if test -n "$ac_ct_AR"; then
7576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7577
$as_echo "$ac_ct_AR" >&6; }
7579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580
$as_echo "no" >&6; }
7583
if test "x$ac_ct_AR" = x; then
7586
case $cross_compiling:$ac_tool_warned in
7588
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590
ac_tool_warned=yes ;;
7598
test -z "$AR" && AR=ar
7599
test -z "$AR_FLAGS" && AR_FLAGS=cru
7611
if test -n "$ac_tool_prefix"; then
7612
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7613
set dummy ${ac_tool_prefix}strip; ac_word=$2
7614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615
$as_echo_n "checking for $ac_word... " >&6; }
7616
if test "${ac_cv_prog_STRIP+set}" = set; then :
7617
$as_echo_n "(cached) " >&6
7619
if test -n "$STRIP"; then
7620
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626
test -z "$as_dir" && as_dir=.
7627
for ac_exec_ext in '' $ac_executable_extensions; do
7628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639
STRIP=$ac_cv_prog_STRIP
7640
if test -n "$STRIP"; then
7641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7642
$as_echo "$STRIP" >&6; }
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645
$as_echo "no" >&6; }
7650
if test -z "$ac_cv_prog_STRIP"; then
7652
# Extract the first word of "strip", so it can be a program name with args.
7653
set dummy strip; ac_word=$2
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655
$as_echo_n "checking for $ac_word... " >&6; }
7656
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7657
$as_echo_n "(cached) " >&6
7659
if test -n "$ac_ct_STRIP"; then
7660
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666
test -z "$as_dir" && as_dir=.
7667
for ac_exec_ext in '' $ac_executable_extensions; do
7668
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669
ac_cv_prog_ac_ct_STRIP="strip"
7670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7680
if test -n "$ac_ct_STRIP"; then
7681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7682
$as_echo "$ac_ct_STRIP" >&6; }
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685
$as_echo "no" >&6; }
7688
if test "x$ac_ct_STRIP" = x; then
7691
case $cross_compiling:$ac_tool_warned in
7693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695
ac_tool_warned=yes ;;
7700
STRIP="$ac_cv_prog_STRIP"
7703
test -z "$STRIP" && STRIP=:
7710
if test -n "$ac_tool_prefix"; then
7711
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7712
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714
$as_echo_n "checking for $ac_word... " >&6; }
7715
if test "${ac_cv_prog_RANLIB+set}" = set; then :
7716
$as_echo_n "(cached) " >&6
1491
7718
if test -n "$RANLIB"; then
1492
7719
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1494
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1495
for ac_dir in $PATH; do
1496
test -z "$ac_dir" && ac_dir=.
1497
if test -f $ac_dir/$ac_word; then
1498
ac_cv_prog_RANLIB="ranlib"
1503
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1506
RANLIB="$ac_cv_prog_RANLIB"
1507
if test -n "$RANLIB"; then
1508
echo "$ac_t""$RANLIB" 1>&6
1510
echo "$ac_t""no" 1>&6
1514
# Decide whether to use libtool,
1515
# and if so whether to build shared, static, or both flavors of library.
1517
# Check whether --enable-shared or --disable-shared was given.
1518
if test "${enable_shared+set}" = set; then
1519
enableval="$enable_shared"
1520
LTSHARED="$enableval"
1524
# Check whether --enable-static or --disable-static was given.
1525
if test "${enable_static+set}" = set; then
1526
enableval="$enable_static"
1527
LTSTATIC="$enableval"
1530
if test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then
1535
LN='$(LIBTOOL) --mode=link $(CC)'
1536
INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}'
1537
INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"
1544
INSTALL_LIB="$INSTALL_DATA"
1552
# Configure libtool if needed.
1553
if test $USELIBTOOL = yes; then
1556
if test "x$LTSHARED" = xno; then
1557
disable_shared="--disable-shared"
1559
if test "x$LTSTATIC" = xno; then
1560
disable_static="--disable-static"
1562
$srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
7721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725
test -z "$as_dir" && as_dir=.
7726
for ac_exec_ext in '' $ac_executable_extensions; do
7727
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7729
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738
RANLIB=$ac_cv_prog_RANLIB
7739
if test -n "$RANLIB"; then
7740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7741
$as_echo "$RANLIB" >&6; }
7743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744
$as_echo "no" >&6; }
7749
if test -z "$ac_cv_prog_RANLIB"; then
7750
ac_ct_RANLIB=$RANLIB
7751
# Extract the first word of "ranlib", so it can be a program name with args.
7752
set dummy ranlib; ac_word=$2
7753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754
$as_echo_n "checking for $ac_word... " >&6; }
7755
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7756
$as_echo_n "(cached) " >&6
7758
if test -n "$ac_ct_RANLIB"; then
7759
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765
test -z "$as_dir" && as_dir=.
7766
for ac_exec_ext in '' $ac_executable_extensions; do
7767
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768
ac_cv_prog_ac_ct_RANLIB="ranlib"
7769
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7779
if test -n "$ac_ct_RANLIB"; then
7780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7781
$as_echo "$ac_ct_RANLIB" >&6; }
7783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784
$as_echo "no" >&6; }
7787
if test "x$ac_ct_RANLIB" = x; then
7790
case $cross_compiling:$ac_tool_warned in
7792
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794
ac_tool_warned=yes ;;
7796
RANLIB=$ac_ct_RANLIB
7799
RANLIB="$ac_cv_prog_RANLIB"
7802
test -z "$RANLIB" && RANLIB=:
7809
# Determine commands to create old-style static archives.
7810
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7811
old_postinstall_cmds='chmod 644 $oldlib'
7812
old_postuninstall_cmds=
7814
if test -n "$RANLIB"; then
7817
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7820
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7823
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7859
# If no C compiler was specified, use CC.
7862
# If no C compiler flags were specified, use CFLAGS.
7863
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7865
# Allow CC to be a program name with arguments.
7869
# Check for command to grab the raw symbol name followed by C symbol from nm.
7870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7871
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7872
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7873
$as_echo_n "(cached) " >&6
7876
# These are sane defaults that work on at least a few old systems.
7877
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7879
# Character class describing NM global symbol codes.
7880
symcode='[BCDEGRST]'
7882
# Regexp to match symbols that can be accessed directly from C.
7883
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7885
# Define system-specific variables.
7890
cygwin* | mingw* | pw32* | cegcc*)
7891
symcode='[ABCDGISTW]'
7894
if test "$host_cpu" = ia64; then
7895
symcode='[ABCDEGRST]'
7899
symcode='[BCDEGRST]'
7902
symcode='[BCDEGQRST]'
7913
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7921
# If we're using GNU nm, then use its standard symbol codes.
7922
case `$NM -V 2>&1` in
7923
*GNU* | *'with BFD'*)
7924
symcode='[ABCDGIRSTW]' ;;
7927
# Transform an extracted symbol line into a proper C declaration.
7928
# Some systems (esp. on ia64) link data and code symbols differently,
7929
# so use this general approach.
7930
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7932
# Transform an extracted symbol line into symbol name and symbol address
7933
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7934
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7936
# Handle CRLF in mingw tool chain
7940
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7944
# Try without a prefix underscore, then with it.
7945
for ac_symprfx in "" "_"; do
7947
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7948
symxfrm="\\1 $ac_symprfx\\2 \\2"
7950
# Write the raw and C identifiers.
7951
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7952
# Fake it for dumpbin and say T for any non-static function
7953
# and D for any global variable.
7954
# Also find C++ and __fastcall symbols from MSVC++,
7955
# which start with @ or ?.
7956
lt_cv_sys_global_symbol_pipe="$AWK '"\
7957
" {last_section=section; section=\$ 3};"\
7958
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7959
" \$ 0!~/External *\|/{next};"\
7960
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7961
" {if(hide[section]) next};"\
7962
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7963
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7964
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7965
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7966
" ' prfx=^$ac_symprfx"
7968
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7971
# Check to see that the pipe works correctly.
7975
cat > conftest.$ac_ext <<_LT_EOF
7980
void nm_test_func(void);
7981
void nm_test_func(void){}
7985
int main(){nm_test_var='a';nm_test_func();return(0);}
7988
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7989
(eval $ac_compile) 2>&5
7991
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992
test $ac_status = 0; }; then
7993
# Now try to grab the symbols.
7995
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7996
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7998
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7999
test $ac_status = 0; } && test -s "$nlist"; then
8000
# Try sorting and uniquifying the output.
8001
if sort "$nlist" | uniq > "$nlist"T; then
8002
mv -f "$nlist"T "$nlist"
8007
# Make sure that we snagged all the symbols we need.
8008
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8009
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8010
cat <<_LT_EOF > conftest.$ac_ext
8016
# Now generate the symbol file.
8017
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8019
cat <<_LT_EOF >> conftest.$ac_ext
8021
/* The mapping between symbol names and symbols. */
8026
lt__PROGRAM__LTX_preloaded_symbols[] =
8028
{ "@PROGRAM@", (void *) 0 },
8030
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8031
cat <<\_LT_EOF >> conftest.$ac_ext
8035
/* This works around a problem in FreeBSD linker */
8036
#ifdef FREEBSD_WORKAROUND
8037
static const void *lt_preloaded_setup() {
8038
return lt__PROGRAM__LTX_preloaded_symbols;
8046
# Now try linking the two files.
8047
mv conftest.$ac_objext conftstm.$ac_objext
8048
lt_save_LIBS="$LIBS"
8049
lt_save_CFLAGS="$CFLAGS"
8050
LIBS="conftstm.$ac_objext"
8051
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8052
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8053
(eval $ac_link) 2>&5
8055
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8056
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8059
LIBS="$lt_save_LIBS"
8060
CFLAGS="$lt_save_CFLAGS"
8062
echo "cannot find nm_test_func in $nlist" >&5
8065
echo "cannot find nm_test_var in $nlist" >&5
8068
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8071
echo "$progname: failed program was:" >&5
8072
cat conftest.$ac_ext >&5
8074
rm -rf conftest* conftst*
8076
# Do not use the global_symbol_pipe unless it works.
8077
if test "$pipe_works" = yes; then
8080
lt_cv_sys_global_symbol_pipe=
8086
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8087
lt_cv_sys_global_symbol_to_cdecl=
8089
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8091
$as_echo "failed" >&6; }
8093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8094
$as_echo "ok" >&6; }
8118
# Check whether --enable-libtool-lock was given.
8119
if test "${enable_libtool_lock+set}" = set; then :
8120
enableval=$enable_libtool_lock;
8123
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8125
# Some flags need to be propagated to the compiler or linker for good
8129
# Find out which ABI we are using.
8130
echo 'int i;' > conftest.$ac_ext
8131
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8132
(eval $ac_compile) 2>&5
8134
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8135
test $ac_status = 0; }; then
8136
case `/usr/bin/file conftest.$ac_objext` in
8148
# Find out which ABI we are using.
8149
echo '#line 8149 "configure"' > conftest.$ac_ext
8150
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151
(eval $ac_compile) 2>&5
8153
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154
test $ac_status = 0; }; then
8155
if test "$lt_cv_prog_gnu_ld" = yes; then
8156
case `/usr/bin/file conftest.$ac_objext` in
8158
LD="${LD-ld} -melf32bsmip"
8161
LD="${LD-ld} -melf32bmipn32"
8164
LD="${LD-ld} -melf64bmip"
8168
case `/usr/bin/file conftest.$ac_objext` in
8184
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8185
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8186
# Find out which ABI we are using.
8187
echo 'int i;' > conftest.$ac_ext
8188
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8189
(eval $ac_compile) 2>&5
8191
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8192
test $ac_status = 0; }; then
8193
case `/usr/bin/file conftest.o` in
8196
x86_64-*kfreebsd*-gnu)
8197
LD="${LD-ld} -m elf_i386_fbsd"
8200
LD="${LD-ld} -m elf_i386"
8202
ppc64-*linux*|powerpc64-*linux*)
8203
LD="${LD-ld} -m elf32ppclinux"
8206
LD="${LD-ld} -m elf_s390"
8209
LD="${LD-ld} -m elf32_sparc"
8215
x86_64-*kfreebsd*-gnu)
8216
LD="${LD-ld} -m elf_x86_64_fbsd"
8219
LD="${LD-ld} -m elf_x86_64"
8221
ppc*-*linux*|powerpc*-*linux*)
8222
LD="${LD-ld} -m elf64ppc"
8224
s390*-*linux*|s390*-*tpf*)
8225
LD="${LD-ld} -m elf64_s390"
8228
LD="${LD-ld} -m elf64_sparc"
8238
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8239
SAVE_CFLAGS="$CFLAGS"
8240
CFLAGS="$CFLAGS -belf"
8241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8242
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8243
if test "${lt_cv_cc_needs_belf+set}" = set; then :
8244
$as_echo_n "(cached) " >&6
8247
ac_cpp='$CPP $CPPFLAGS'
8248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253
/* end confdefs.h. */
8263
if ac_fn_c_try_link "$LINENO"; then :
8264
lt_cv_cc_needs_belf=yes
8266
lt_cv_cc_needs_belf=no
8268
rm -f core conftest.err conftest.$ac_objext \
8269
conftest$ac_exeext conftest.$ac_ext
8271
ac_cpp='$CPP $CPPFLAGS'
8272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8278
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8279
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8280
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8281
CFLAGS="$SAVE_CFLAGS"
8285
# Find out which ABI we are using.
8286
echo 'int i;' > conftest.$ac_ext
8287
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8288
(eval $ac_compile) 2>&5
8290
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8291
test $ac_status = 0; }; then
8292
case `/usr/bin/file conftest.o` in
8294
case $lt_cv_prog_gnu_ld in
8295
yes*) LD="${LD-ld} -m elf64_sparc" ;;
8297
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8309
need_locks="$enable_libtool_lock"
8313
rhapsody* | darwin*)
8314
if test -n "$ac_tool_prefix"; then
8315
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8316
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318
$as_echo_n "checking for $ac_word... " >&6; }
8319
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8320
$as_echo_n "(cached) " >&6
8322
if test -n "$DSYMUTIL"; then
8323
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329
test -z "$as_dir" && as_dir=.
8330
for ac_exec_ext in '' $ac_executable_extensions; do
8331
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8333
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8343
if test -n "$DSYMUTIL"; then
8344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8345
$as_echo "$DSYMUTIL" >&6; }
8347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348
$as_echo "no" >&6; }
8353
if test -z "$ac_cv_prog_DSYMUTIL"; then
8354
ac_ct_DSYMUTIL=$DSYMUTIL
8355
# Extract the first word of "dsymutil", so it can be a program name with args.
8356
set dummy dsymutil; ac_word=$2
8357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358
$as_echo_n "checking for $ac_word... " >&6; }
8359
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8360
$as_echo_n "(cached) " >&6
8362
if test -n "$ac_ct_DSYMUTIL"; then
8363
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369
test -z "$as_dir" && as_dir=.
8370
for ac_exec_ext in '' $ac_executable_extensions; do
8371
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8373
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8383
if test -n "$ac_ct_DSYMUTIL"; then
8384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8385
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388
$as_echo "no" >&6; }
8391
if test "x$ac_ct_DSYMUTIL" = x; then
8394
case $cross_compiling:$ac_tool_warned in
8396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398
ac_tool_warned=yes ;;
8400
DSYMUTIL=$ac_ct_DSYMUTIL
8403
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8406
if test -n "$ac_tool_prefix"; then
8407
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8408
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410
$as_echo_n "checking for $ac_word... " >&6; }
8411
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8412
$as_echo_n "(cached) " >&6
8414
if test -n "$NMEDIT"; then
8415
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421
test -z "$as_dir" && as_dir=.
8422
for ac_exec_ext in '' $ac_executable_extensions; do
8423
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8425
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434
NMEDIT=$ac_cv_prog_NMEDIT
8435
if test -n "$NMEDIT"; then
8436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8437
$as_echo "$NMEDIT" >&6; }
8439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440
$as_echo "no" >&6; }
8445
if test -z "$ac_cv_prog_NMEDIT"; then
8446
ac_ct_NMEDIT=$NMEDIT
8447
# Extract the first word of "nmedit", so it can be a program name with args.
8448
set dummy nmedit; ac_word=$2
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450
$as_echo_n "checking for $ac_word... " >&6; }
8451
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8452
$as_echo_n "(cached) " >&6
8454
if test -n "$ac_ct_NMEDIT"; then
8455
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461
test -z "$as_dir" && as_dir=.
8462
for ac_exec_ext in '' $ac_executable_extensions; do
8463
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8465
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8475
if test -n "$ac_ct_NMEDIT"; then
8476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8477
$as_echo "$ac_ct_NMEDIT" >&6; }
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480
$as_echo "no" >&6; }
8483
if test "x$ac_ct_NMEDIT" = x; then
8486
case $cross_compiling:$ac_tool_warned in
8488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490
ac_tool_warned=yes ;;
8492
NMEDIT=$ac_ct_NMEDIT
8495
NMEDIT="$ac_cv_prog_NMEDIT"
8498
if test -n "$ac_tool_prefix"; then
8499
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8500
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502
$as_echo_n "checking for $ac_word... " >&6; }
8503
if test "${ac_cv_prog_LIPO+set}" = set; then :
8504
$as_echo_n "(cached) " >&6
8506
if test -n "$LIPO"; then
8507
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513
test -z "$as_dir" && as_dir=.
8514
for ac_exec_ext in '' $ac_executable_extensions; do
8515
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8517
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526
LIPO=$ac_cv_prog_LIPO
8527
if test -n "$LIPO"; then
8528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8529
$as_echo "$LIPO" >&6; }
8531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532
$as_echo "no" >&6; }
8537
if test -z "$ac_cv_prog_LIPO"; then
8539
# Extract the first word of "lipo", so it can be a program name with args.
8540
set dummy lipo; ac_word=$2
8541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542
$as_echo_n "checking for $ac_word... " >&6; }
8543
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8544
$as_echo_n "(cached) " >&6
8546
if test -n "$ac_ct_LIPO"; then
8547
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553
test -z "$as_dir" && as_dir=.
8554
for ac_exec_ext in '' $ac_executable_extensions; do
8555
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556
ac_cv_prog_ac_ct_LIPO="lipo"
8557
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8567
if test -n "$ac_ct_LIPO"; then
8568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8569
$as_echo "$ac_ct_LIPO" >&6; }
8571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572
$as_echo "no" >&6; }
8575
if test "x$ac_ct_LIPO" = x; then
8578
case $cross_compiling:$ac_tool_warned in
8580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8582
ac_tool_warned=yes ;;
8587
LIPO="$ac_cv_prog_LIPO"
8590
if test -n "$ac_tool_prefix"; then
8591
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8592
set dummy ${ac_tool_prefix}otool; ac_word=$2
8593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594
$as_echo_n "checking for $ac_word... " >&6; }
8595
if test "${ac_cv_prog_OTOOL+set}" = set; then :
8596
$as_echo_n "(cached) " >&6
8598
if test -n "$OTOOL"; then
8599
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605
test -z "$as_dir" && as_dir=.
8606
for ac_exec_ext in '' $ac_executable_extensions; do
8607
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8609
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618
OTOOL=$ac_cv_prog_OTOOL
8619
if test -n "$OTOOL"; then
8620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8621
$as_echo "$OTOOL" >&6; }
8623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624
$as_echo "no" >&6; }
8629
if test -z "$ac_cv_prog_OTOOL"; then
8631
# Extract the first word of "otool", so it can be a program name with args.
8632
set dummy otool; ac_word=$2
8633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634
$as_echo_n "checking for $ac_word... " >&6; }
8635
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8636
$as_echo_n "(cached) " >&6
8638
if test -n "$ac_ct_OTOOL"; then
8639
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645
test -z "$as_dir" && as_dir=.
8646
for ac_exec_ext in '' $ac_executable_extensions; do
8647
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648
ac_cv_prog_ac_ct_OTOOL="otool"
8649
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8659
if test -n "$ac_ct_OTOOL"; then
8660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8661
$as_echo "$ac_ct_OTOOL" >&6; }
8663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664
$as_echo "no" >&6; }
8667
if test "x$ac_ct_OTOOL" = x; then
8670
case $cross_compiling:$ac_tool_warned in
8672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8674
ac_tool_warned=yes ;;
8679
OTOOL="$ac_cv_prog_OTOOL"
8682
if test -n "$ac_tool_prefix"; then
8683
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8684
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686
$as_echo_n "checking for $ac_word... " >&6; }
8687
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8688
$as_echo_n "(cached) " >&6
8690
if test -n "$OTOOL64"; then
8691
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697
test -z "$as_dir" && as_dir=.
8698
for ac_exec_ext in '' $ac_executable_extensions; do
8699
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8701
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710
OTOOL64=$ac_cv_prog_OTOOL64
8711
if test -n "$OTOOL64"; then
8712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8713
$as_echo "$OTOOL64" >&6; }
8715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716
$as_echo "no" >&6; }
8721
if test -z "$ac_cv_prog_OTOOL64"; then
8722
ac_ct_OTOOL64=$OTOOL64
8723
# Extract the first word of "otool64", so it can be a program name with args.
8724
set dummy otool64; ac_word=$2
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726
$as_echo_n "checking for $ac_word... " >&6; }
8727
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8728
$as_echo_n "(cached) " >&6
8730
if test -n "$ac_ct_OTOOL64"; then
8731
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737
test -z "$as_dir" && as_dir=.
8738
for ac_exec_ext in '' $ac_executable_extensions; do
8739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8740
ac_cv_prog_ac_ct_OTOOL64="otool64"
8741
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8751
if test -n "$ac_ct_OTOOL64"; then
8752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8753
$as_echo "$ac_ct_OTOOL64" >&6; }
8755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756
$as_echo "no" >&6; }
8759
if test "x$ac_ct_OTOOL64" = x; then
8762
case $cross_compiling:$ac_tool_warned in
8764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8765
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8766
ac_tool_warned=yes ;;
8768
OTOOL64=$ac_ct_OTOOL64
8771
OTOOL64="$ac_cv_prog_OTOOL64"
8800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8801
$as_echo_n "checking for -single_module linker flag... " >&6; }
8802
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8803
$as_echo_n "(cached) " >&6
8805
lt_cv_apple_cc_single_mod=no
8806
if test -z "${LT_MULTI_MODULE}"; then
8807
# By default we will add the -single_module flag. You can override
8808
# by either setting the environment variable LT_MULTI_MODULE
8809
# non-empty at configure time, or by adding -multi_module to the
8811
rm -rf libconftest.dylib*
8812
echo "int foo(void){return 1;}" > conftest.c
8813
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814
-dynamiclib -Wl,-single_module conftest.c" >&5
8815
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8816
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8818
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8819
lt_cv_apple_cc_single_mod=yes
8821
cat conftest.err >&5
8823
rm -rf libconftest.dylib*
8827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8828
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8830
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8831
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8832
$as_echo_n "(cached) " >&6
8834
lt_cv_ld_exported_symbols_list=no
8835
save_LDFLAGS=$LDFLAGS
8836
echo "_main" > conftest.sym
8837
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839
/* end confdefs.h. */
8849
if ac_fn_c_try_link "$LINENO"; then :
8850
lt_cv_ld_exported_symbols_list=yes
8852
lt_cv_ld_exported_symbols_list=no
8854
rm -f core conftest.err conftest.$ac_objext \
8855
conftest$ac_exeext conftest.$ac_ext
8856
LDFLAGS="$save_LDFLAGS"
8859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8860
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8862
rhapsody* | darwin1.[012])
8863
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8865
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8866
darwin*) # darwin 5.x on
8867
# if running on 10.5 or later, the deployment target defaults
8868
# to the OS version, if on x86, and 10.4, the deployment
8869
# target defaults to 10.4. Don't you love it?
8870
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8871
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8872
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8874
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8876
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8880
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8881
_lt_dar_single_mod='$single_module'
8883
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8884
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8886
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8888
if test "$DSYMUTIL" != ":"; then
8889
_lt_dsymutil='~$DSYMUTIL $lib || :'
8896
for ac_header in dlfcn.h
8898
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8900
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8901
cat >>confdefs.h <<_ACEOF
8902
#define HAVE_DLFCN_H 1
8919
# Check whether --enable-shared was given.
8920
if test "${enable_shared+set}" = set; then :
8921
enableval=$enable_shared; p=${PACKAGE-default}
8923
yes) enable_shared=yes ;;
8924
no) enable_shared=no ;;
8927
# Look at the argument we got. We use all the common list separators.
8928
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8929
for pkg in $enableval; do
8931
if test "X$pkg" = "X$p"; then
8950
# Check whether --enable-static was given.
8951
if test "${enable_static+set}" = set; then :
8952
enableval=$enable_static; p=${PACKAGE-default}
8954
yes) enable_static=yes ;;
8955
no) enable_static=no ;;
8958
# Look at the argument we got. We use all the common list separators.
8959
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8960
for pkg in $enableval; do
8962
if test "X$pkg" = "X$p"; then
8982
# Check whether --with-pic was given.
8983
if test "${with_pic+set}" = set; then :
8984
withval=$with_pic; pic_mode="$withval"
8990
test -z "$pic_mode" && pic_mode=default
8998
# Check whether --enable-fast-install was given.
8999
if test "${enable_fast_install+set}" = set; then :
9000
enableval=$enable_fast_install; p=${PACKAGE-default}
9002
yes) enable_fast_install=yes ;;
9003
no) enable_fast_install=no ;;
9005
enable_fast_install=no
9006
# Look at the argument we got. We use all the common list separators.
9007
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9008
for pkg in $enableval; do
9010
if test "X$pkg" = "X$p"; then
9011
enable_fast_install=yes
9018
enable_fast_install=yes
9031
# This can be used to rebuild libtool when needed
9032
LIBTOOL_DEPS="$ltmain"
9034
# Always use our own libtool.
9035
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9061
test -z "$LN_S" && LN_S="ln -s"
9076
if test -n "${ZSH_VERSION+set}" ; then
9077
setopt NO_GLOB_SUBST
9080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9081
$as_echo_n "checking for objdir... " >&6; }
9082
if test "${lt_cv_objdir+set}" = set; then :
9083
$as_echo_n "(cached) " >&6
9085
rm -f .libs 2>/dev/null
9086
mkdir .libs 2>/dev/null
9087
if test -d .libs; then
9090
# MS-DOS does not allow filenames that begin with a dot.
9093
rmdir .libs 2>/dev/null
9095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9096
$as_echo "$lt_cv_objdir" >&6; }
9097
objdir=$lt_cv_objdir
9103
cat >>confdefs.h <<_ACEOF
9104
#define LT_OBJDIR "$lt_cv_objdir/"
9125
# AIX sometimes has problems with the GCC collect2 program. For some
9126
# reason, if we set the COLLECT_NAMES environment variable, the problems
9127
# vanish in a puff of smoke.
9128
if test "X${COLLECT_NAMES+set}" != Xset; then
9130
export COLLECT_NAMES
9135
# Sed substitution that helps us do robust quoting. It backslashifies
9136
# metacharacters that are still active within double-quoted strings.
9137
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9139
# Same as above, but do not quote variable references.
9140
double_quote_subst='s/\(["`\\]\)/\\\1/g'
9142
# Sed substitution to delay expansion of an escaped shell variable in a
9143
# double_quote_subst'ed string.
9144
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9146
# Sed substitution to delay expansion of an escaped single quote.
9147
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9149
# Sed substitution to avoid accidental globbing in evaled expressions
9150
no_glob_subst='s/\*/\\\*/g'
9154
can_build_shared=yes
9156
# All known linkers require a `.a' archive for static linking (except MSVC,
9157
# which needs '.lib').
9160
with_gnu_ld="$lt_cv_prog_gnu_ld"
9163
old_CFLAGS="$CFLAGS"
9165
# Set sane defaults for various variables
9166
test -z "$CC" && CC=cc
9167
test -z "$LTCC" && LTCC=$CC
9168
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9169
test -z "$LD" && LD=ld
9170
test -z "$ac_objext" && ac_objext=o
9172
for cc_temp in $compiler""; do
9174
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9175
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9180
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9183
# Only perform the check for file, if the check method requires it
9184
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9185
case $deplibs_check_method in
9187
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9189
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9190
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9191
$as_echo_n "(cached) " >&6
9195
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9198
lt_save_MAGIC_CMD="$MAGIC_CMD"
9199
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9200
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9201
for ac_dir in $ac_dummy; do
9203
test -z "$ac_dir" && ac_dir=.
9204
if test -f $ac_dir/${ac_tool_prefix}file; then
9205
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9206
if test -n "$file_magic_test_file"; then
9207
case $deplibs_check_method in
9209
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9210
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9212
$EGREP "$file_magic_regex" > /dev/null; then
9217
*** Warning: the command libtool uses to detect shared libraries,
9218
*** $file_magic_cmd, produces output that libtool cannot recognize.
9219
*** The result is that libtool may fail to recognize shared libraries
9220
*** as such. This will affect the creation of libtool libraries that
9221
*** depend on shared libraries, but programs linked with such libtool
9222
*** libraries will work regardless of this problem. Nevertheless, you
9223
*** may want to report the problem to your system manager and/or to
9224
*** bug-libtool@gnu.org
9234
MAGIC_CMD="$lt_save_MAGIC_CMD"
9239
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9240
if test -n "$MAGIC_CMD"; then
9241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9242
$as_echo "$MAGIC_CMD" >&6; }
9244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245
$as_echo "no" >&6; }
9252
if test -z "$lt_cv_path_MAGIC_CMD"; then
9253
if test -n "$ac_tool_prefix"; then
9254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9255
$as_echo_n "checking for file... " >&6; }
9256
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9257
$as_echo_n "(cached) " >&6
9261
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9264
lt_save_MAGIC_CMD="$MAGIC_CMD"
9265
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9266
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9267
for ac_dir in $ac_dummy; do
9269
test -z "$ac_dir" && ac_dir=.
9270
if test -f $ac_dir/file; then
9271
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9272
if test -n "$file_magic_test_file"; then
9273
case $deplibs_check_method in
9275
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9276
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9277
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9278
$EGREP "$file_magic_regex" > /dev/null; then
9283
*** Warning: the command libtool uses to detect shared libraries,
9284
*** $file_magic_cmd, produces output that libtool cannot recognize.
9285
*** The result is that libtool may fail to recognize shared libraries
9286
*** as such. This will affect the creation of libtool libraries that
9287
*** depend on shared libraries, but programs linked with such libtool
9288
*** libraries will work regardless of this problem. Nevertheless, you
9289
*** may want to report the problem to your system manager and/or to
9290
*** bug-libtool@gnu.org
9300
MAGIC_CMD="$lt_save_MAGIC_CMD"
9305
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9306
if test -n "$MAGIC_CMD"; then
9307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9308
$as_echo "$MAGIC_CMD" >&6; }
9310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311
$as_echo "no" >&6; }
9324
# Use C for the default configuration in the libtool script
9328
ac_cpp='$CPP $CPPFLAGS'
9329
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9330
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9334
# Source file extension for C test sources.
9337
# Object file extension for compiled C test sources.
9341
# Code to be used in simple compile tests
9342
lt_simple_compile_test_code="int some_variable = 0;"
9344
# Code to be used in simple link tests
9345
lt_simple_link_test_code='int main(){return(0);}'
9353
# If no C compiler was specified, use CC.
9356
# If no C compiler flags were specified, use CFLAGS.
9357
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9359
# Allow CC to be a program name with arguments.
9362
# Save the default compiler, since it gets overwritten when the other
9363
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9364
compiler_DEFAULT=$CC
9366
# save warnings/boilerplate of simple test code
9367
ac_outfile=conftest.$ac_objext
9368
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9369
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9370
_lt_compiler_boilerplate=`cat conftest.err`
9373
ac_outfile=conftest.$ac_objext
9374
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9375
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9376
_lt_linker_boilerplate=`cat conftest.err`
9380
if test -n "$compiler"; then
9382
lt_prog_compiler_no_builtin_flag=
9384
if test "$GCC" = yes; then
9385
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9388
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9389
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9390
$as_echo_n "(cached) " >&6
9392
lt_cv_prog_compiler_rtti_exceptions=no
9393
ac_outfile=conftest.$ac_objext
9394
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395
lt_compiler_flag="-fno-rtti -fno-exceptions"
9396
# Insert the option either (1) after the last *FLAGS variable, or
9397
# (2) before a word containing "conftest.", or (3) at the end.
9398
# Note that $ac_compile itself does not contain backslashes and begins
9399
# with a dollar sign (not a hyphen), so the echo should work correctly.
9400
# The option is referenced via a variable to avoid confusing sed.
9401
lt_compile=`echo "$ac_compile" | $SED \
9402
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404
-e 's:$: $lt_compiler_flag:'`
9405
(eval echo "\"\$as_me:9405: $lt_compile\"" >&5)
9406
(eval "$lt_compile" 2>conftest.err)
9408
cat conftest.err >&5
9409
echo "$as_me:9409: \$? = $ac_status" >&5
9410
if (exit $ac_status) && test -s "$ac_outfile"; then
9411
# The compiler can only warn and ignore the option if not recognized
9412
# So say no if there are warnings other than the usual output.
9413
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9414
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9416
lt_cv_prog_compiler_rtti_exceptions=yes
9422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9423
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9425
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9426
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9438
lt_prog_compiler_wl=
9439
lt_prog_compiler_pic=
9440
lt_prog_compiler_static=
9442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9443
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9445
if test "$GCC" = yes; then
9446
lt_prog_compiler_wl='-Wl,'
9447
lt_prog_compiler_static='-static'
9451
# All AIX code is PIC.
9452
if test "$host_cpu" = ia64; then
9453
# AIX 5 now supports IA64 processor
9454
lt_prog_compiler_static='-Bstatic'
9461
# see comment about AmigaOS4 .so support
9462
lt_prog_compiler_pic='-fPIC'
9465
# FIXME: we need at least 68020 code to build shared libraries, but
9466
# adding the `-m68020' flag to GCC prevents building anything better,
9468
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9473
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9474
# PIC is the default for these OSes.
9477
mingw* | cygwin* | pw32* | os2* | cegcc*)
9478
# This hack is so that the source file can tell whether it is being
9479
# built for inclusion in a dll (and should export symbols for example).
9480
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9481
# (--disable-auto-import) libraries
9482
lt_prog_compiler_pic='-DDLL_EXPORT'
9485
darwin* | rhapsody*)
9486
# PIC is the default on this platform
9487
# Common symbols not allowed in MH_DYLIB files
9488
lt_prog_compiler_pic='-fno-common'
9492
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9493
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9494
# sets the default TLS model and affects inlining.
9500
lt_prog_compiler_pic='-fPIC'
9506
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9507
# Instead, we relocate shared libraries at runtime.
9511
# Just because we use GCC doesn't mean we suddenly get shared libraries
9512
# on systems that don't support them.
9513
lt_prog_compiler_can_build_shared=no
9518
# QNX uses GNU C++, but need to define -shared option too, otherwise
9520
lt_prog_compiler_pic='-fPIC -shared'
9524
if test -d /usr/nec; then
9525
lt_prog_compiler_pic=-Kconform_pic
9530
lt_prog_compiler_pic='-fPIC'
9534
# PORTME Check for flag to pass linker flags through the system compiler.
9537
lt_prog_compiler_wl='-Wl,'
9538
if test "$host_cpu" = ia64; then
9539
# AIX 5 now supports IA64 processor
9540
lt_prog_compiler_static='-Bstatic'
9542
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9546
mingw* | cygwin* | pw32* | os2* | cegcc*)
9547
# This hack is so that the source file can tell whether it is being
9548
# built for inclusion in a dll (and should export symbols for example).
9549
lt_prog_compiler_pic='-DDLL_EXPORT'
9552
hpux9* | hpux10* | hpux11*)
9553
lt_prog_compiler_wl='-Wl,'
9554
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9561
lt_prog_compiler_pic='+Z'
9564
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9565
lt_prog_compiler_static='${wl}-a ${wl}archive'
9568
irix5* | irix6* | nonstopux*)
9569
lt_prog_compiler_wl='-Wl,'
9570
# PIC (with -KPIC) is the default.
9571
lt_prog_compiler_static='-non_shared'
9574
linux* | k*bsd*-gnu)
9575
case $cc_basename in
9576
# old Intel for x86_64 which still supported -KPIC.
9578
lt_prog_compiler_wl='-Wl,'
9579
lt_prog_compiler_pic='-KPIC'
9580
lt_prog_compiler_static='-static'
9582
# icc used to be incompatible with GCC.
9583
# ICC 10 doesn't accept -KPIC any more.
9585
lt_prog_compiler_wl='-Wl,'
9586
lt_prog_compiler_pic='-fPIC'
9587
lt_prog_compiler_static='-static'
9589
# Lahey Fortran 8.1.
9591
lt_prog_compiler_wl='-Wl,'
9592
lt_prog_compiler_pic='--shared'
9593
lt_prog_compiler_static='--static'
9595
pgcc* | pgf77* | pgf90* | pgf95*)
9596
# Portland Group compilers (*not* the Pentium gcc compiler,
9597
# which looks to be a dead project)
9598
lt_prog_compiler_wl='-Wl,'
9599
lt_prog_compiler_pic='-fpic'
9600
lt_prog_compiler_static='-Bstatic'
9603
lt_prog_compiler_wl='-Wl,'
9604
# All Alpha code is PIC.
9605
lt_prog_compiler_static='-non_shared'
9608
# IBM XL C 8.0/Fortran 10.1 on PPC
9609
lt_prog_compiler_wl='-Wl,'
9610
lt_prog_compiler_pic='-qpic'
9611
lt_prog_compiler_static='-qstaticlink'
9614
case `$CC -V 2>&1 | sed 5q` in
9617
lt_prog_compiler_pic='-KPIC'
9618
lt_prog_compiler_static='-Bstatic'
9619
lt_prog_compiler_wl='-Wl,'
9622
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9623
lt_prog_compiler_pic='-KPIC'
9624
lt_prog_compiler_static='-Bstatic'
9625
lt_prog_compiler_wl=''
9633
lt_prog_compiler_pic='-KPIC'
9634
lt_prog_compiler_static='-Bstatic'
9638
# QNX uses GNU C++, but need to define -shared option too, otherwise
9640
lt_prog_compiler_pic='-fPIC -shared'
9643
osf3* | osf4* | osf5*)
9644
lt_prog_compiler_wl='-Wl,'
9645
# All OSF/1 code is PIC.
9646
lt_prog_compiler_static='-non_shared'
9650
lt_prog_compiler_static='-non_shared'
9654
lt_prog_compiler_pic='-KPIC'
9655
lt_prog_compiler_static='-Bstatic'
9656
case $cc_basename in
9658
lt_prog_compiler_wl='-Qoption ld ';;
9660
lt_prog_compiler_wl='-Wl,';;
9665
lt_prog_compiler_wl='-Qoption ld '
9666
lt_prog_compiler_pic='-PIC'
9667
lt_prog_compiler_static='-Bstatic'
9670
sysv4 | sysv4.2uw2* | sysv4.3*)
9671
lt_prog_compiler_wl='-Wl,'
9672
lt_prog_compiler_pic='-KPIC'
9673
lt_prog_compiler_static='-Bstatic'
9677
if test -d /usr/nec ;then
9678
lt_prog_compiler_pic='-Kconform_pic'
9679
lt_prog_compiler_static='-Bstatic'
9683
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9684
lt_prog_compiler_wl='-Wl,'
9685
lt_prog_compiler_pic='-KPIC'
9686
lt_prog_compiler_static='-Bstatic'
9690
lt_prog_compiler_wl='-Wl,'
9691
lt_prog_compiler_can_build_shared=no
9695
lt_prog_compiler_pic='-pic'
9696
lt_prog_compiler_static='-Bstatic'
9700
lt_prog_compiler_can_build_shared=no
9706
# For platforms which do not support PIC, -DPIC is meaningless:
9708
lt_prog_compiler_pic=
9711
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9715
$as_echo "$lt_prog_compiler_pic" >&6; }
9723
# Check to make sure the PIC flag actually works.
9725
if test -n "$lt_prog_compiler_pic"; then
9726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9727
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9728
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9729
$as_echo_n "(cached) " >&6
9731
lt_cv_prog_compiler_pic_works=no
9732
ac_outfile=conftest.$ac_objext
9733
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9734
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9735
# Insert the option either (1) after the last *FLAGS variable, or
9736
# (2) before a word containing "conftest.", or (3) at the end.
9737
# Note that $ac_compile itself does not contain backslashes and begins
9738
# with a dollar sign (not a hyphen), so the echo should work correctly.
9739
# The option is referenced via a variable to avoid confusing sed.
9740
lt_compile=`echo "$ac_compile" | $SED \
9741
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9742
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9743
-e 's:$: $lt_compiler_flag:'`
9744
(eval echo "\"\$as_me:9744: $lt_compile\"" >&5)
9745
(eval "$lt_compile" 2>conftest.err)
9747
cat conftest.err >&5
9748
echo "$as_me:9748: \$? = $ac_status" >&5
9749
if (exit $ac_status) && test -s "$ac_outfile"; then
9750
# The compiler can only warn and ignore the option if not recognized
9751
# So say no if there are warnings other than the usual output.
9752
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9753
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9754
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9755
lt_cv_prog_compiler_pic_works=yes
9761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9762
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9764
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9765
case $lt_prog_compiler_pic in
9767
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9770
lt_prog_compiler_pic=
9771
lt_prog_compiler_can_build_shared=no
9782
# Check to make sure the static flag actually works.
9784
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9786
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9787
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9788
$as_echo_n "(cached) " >&6
9790
lt_cv_prog_compiler_static_works=no
9791
save_LDFLAGS="$LDFLAGS"
9792
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9793
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9794
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9795
# The linker can only warn and ignore the option if not recognized
9796
# So say no if there are warnings
9797
if test -s conftest.err; then
9798
# Append any errors to the config.log.
9799
cat conftest.err 1>&5
9800
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9801
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9802
if diff conftest.exp conftest.er2 >/dev/null; then
9803
lt_cv_prog_compiler_static_works=yes
9806
lt_cv_prog_compiler_static_works=yes
9810
LDFLAGS="$save_LDFLAGS"
9813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9814
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9816
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9819
lt_prog_compiler_static=
9828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9829
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9830
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9831
$as_echo_n "(cached) " >&6
9833
lt_cv_prog_compiler_c_o=no
9834
$RM -r conftest 2>/dev/null
9838
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9840
lt_compiler_flag="-o out/conftest2.$ac_objext"
9841
# Insert the option either (1) after the last *FLAGS variable, or
9842
# (2) before a word containing "conftest.", or (3) at the end.
9843
# Note that $ac_compile itself does not contain backslashes and begins
9844
# with a dollar sign (not a hyphen), so the echo should work correctly.
9845
lt_compile=`echo "$ac_compile" | $SED \
9846
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9847
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9848
-e 's:$: $lt_compiler_flag:'`
9849
(eval echo "\"\$as_me:9849: $lt_compile\"" >&5)
9850
(eval "$lt_compile" 2>out/conftest.err)
9852
cat out/conftest.err >&5
9853
echo "$as_me:9853: \$? = $ac_status" >&5
9854
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9856
# The compiler can only warn and ignore the option if not recognized
9857
# So say no if there are warnings
9858
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9859
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9860
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9861
lt_cv_prog_compiler_c_o=yes
9866
# SGI C++ compiler will create directory out/ii_files/ for
9867
# template instantiation
9868
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9869
$RM out/* && rmdir out
9875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9876
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9884
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9885
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9886
$as_echo_n "(cached) " >&6
9888
lt_cv_prog_compiler_c_o=no
9889
$RM -r conftest 2>/dev/null
9893
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9895
lt_compiler_flag="-o out/conftest2.$ac_objext"
9896
# Insert the option either (1) after the last *FLAGS variable, or
9897
# (2) before a word containing "conftest.", or (3) at the end.
9898
# Note that $ac_compile itself does not contain backslashes and begins
9899
# with a dollar sign (not a hyphen), so the echo should work correctly.
9900
lt_compile=`echo "$ac_compile" | $SED \
9901
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9902
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9903
-e 's:$: $lt_compiler_flag:'`
9904
(eval echo "\"\$as_me:9904: $lt_compile\"" >&5)
9905
(eval "$lt_compile" 2>out/conftest.err)
9907
cat out/conftest.err >&5
9908
echo "$as_me:9908: \$? = $ac_status" >&5
9909
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9911
# The compiler can only warn and ignore the option if not recognized
9912
# So say no if there are warnings
9913
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9914
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9915
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9916
lt_cv_prog_compiler_c_o=yes
9921
# SGI C++ compiler will create directory out/ii_files/ for
9922
# template instantiation
9923
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9924
$RM out/* && rmdir out
9930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9931
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9936
hard_links="nottested"
9937
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9938
# do not overwrite the value of need_locks provided by the user
9939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9940
$as_echo_n "checking if we can lock with hard links... " >&6; }
9943
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9945
ln conftest.a conftest.b 2>&5 || hard_links=no
9946
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9948
$as_echo "$hard_links" >&6; }
9949
if test "$hard_links" = no; then
9950
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9951
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9964
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9967
allow_undefined_flag=
9968
always_export_symbols=no
9970
archive_expsym_cmds=
9971
compiler_needs_object=no
9972
enable_shared_with_static_runtimes=no
9973
export_dynamic_flag_spec=
9974
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9975
hardcode_automatic=no
9977
hardcode_direct_absolute=no
9978
hardcode_libdir_flag_spec=
9979
hardcode_libdir_flag_spec_ld=
9980
hardcode_libdir_separator=
9982
hardcode_shlibpath_var=unsupported
9984
link_all_deplibs=unknown
9987
old_archive_from_new_cmds=
9988
old_archive_from_expsyms_cmds=
9989
thread_safe_flag_spec=
9990
whole_archive_flag_spec=
9991
# include_expsyms should be a list of space-separated symbols to be *always*
9992
# included in the symbol list
9994
# exclude_expsyms can be an extended regexp of symbols to exclude
9995
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9996
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9997
# as well as any symbol that contains `d'.
9998
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9999
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10000
# platforms (ab)use it in PIC code, but their linkers get confused if
10001
# the symbol is explicitly referenced. Since portable code cannot
10002
# rely on this symbol name, it's probably fine to never include it in
10003
# preloaded symbol tables.
10004
# Exclude shared library initialization/finalization symbols.
10005
extract_expsyms_cmds=
10008
cygwin* | mingw* | pw32* | cegcc*)
10009
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10010
# When not using gcc, we currently assume that we are using
10011
# Microsoft Visual C++.
10012
if test "$GCC" != yes; then
10017
# we just hope/assume this is gcc and not c89 (= MSVC++)
10026
if test "$with_gnu_ld" = yes; then
10027
# If archive_cmds runs LD, not CC, wlarc should be empty
10030
# Set some defaults for GNU ld with shared library support. These
10031
# are reset later if shared libraries are not supported. Putting them
10032
# here allows them to be overridden if necessary.
10033
runpath_var=LD_RUN_PATH
10034
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035
export_dynamic_flag_spec='${wl}--export-dynamic'
10036
# ancient GNU ld didn't support --whole-archive et. al.
10037
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10038
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10040
whole_archive_flag_spec=
10042
supports_anon_versioning=no
10043
case `$LD -v 2>&1` in
10044
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10045
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10046
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10047
*\ 2.11.*) ;; # other 2.11 versions
10048
*) supports_anon_versioning=yes ;;
10051
# See if GNU ld supports shared libraries.
10054
# On AIX/PPC, the GNU linker is very broken
10055
if test "$host_cpu" != ia64; then
10059
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10060
*** to be unable to reliably create shared libraries on AIX.
10061
*** Therefore, libtool is disabling shared libraries support. If you
10062
*** really care for shared libraries, you may want to modify your PATH
10063
*** so that a non-GNU linker is found, and then restart.
10072
# see comment about AmigaOS4 .so support
10073
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074
archive_expsym_cmds=''
10077
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10078
hardcode_libdir_flag_spec='-L$libdir'
10079
hardcode_minus_L=yes
10085
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10086
allow_undefined_flag=unsupported
10087
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10088
# support --undefined. This deserves some investigation. FIXME
10089
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095
cygwin* | mingw* | pw32* | cegcc*)
10096
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10097
# as there is no search path for DLLs.
10098
hardcode_libdir_flag_spec='-L$libdir'
10099
allow_undefined_flag=unsupported
10100
always_export_symbols=no
10101
enable_shared_with_static_runtimes=yes
10102
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10104
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10105
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10106
# If the export-symbols file already is a .def file (1st line
10107
# is EXPORTS), use it as is; otherwise, prepend...
10108
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10109
cp $export_symbols $output_objdir/$soname.def;
10111
echo EXPORTS > $output_objdir/$soname.def;
10112
cat $export_symbols >> $output_objdir/$soname.def;
10114
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10122
hardcode_shlibpath_var=no
10123
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10124
export_dynamic_flag_spec='${wl}-E'
10125
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10126
# Instead, shared libraries are loaded at an image base (0x10000000 by
10127
# default) and relocated if they conflict, which is a slow very memory
10128
# consuming and fragmenting process. To avoid this, we pick a random,
10129
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10130
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10131
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10132
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10135
gnu* | linux* | tpf* | k*bsd*-gnu)
10137
if test "$host_os" = linux-dietlibc; then
10138
case $cc_basename in
10139
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10142
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10143
&& test "$tmp_diet" = no
10146
tmp_sharedflag='-shared'
10147
case $cc_basename,$host_cpu in
10148
pgcc*) # Portland Group C compiler
10149
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10150
tmp_addflag=' $pic_flag'
10152
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10153
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10154
tmp_addflag=' $pic_flag -Mnomain' ;;
10155
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10156
tmp_addflag=' -i_dynamic' ;;
10157
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10158
tmp_addflag=' -i_dynamic -nofor_main' ;;
10159
ifc* | ifort*) # Intel Fortran compiler
10160
tmp_addflag=' -nofor_main' ;;
10161
lf95*) # Lahey Fortran 8.1
10162
whole_archive_flag_spec=
10163
tmp_sharedflag='--shared' ;;
10164
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10165
tmp_sharedflag='-qmkshrobj'
10168
case `$CC -V 2>&1 | sed 5q` in
10169
*Sun\ C*) # Sun C 5.9
10170
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10171
compiler_needs_object=yes
10172
tmp_sharedflag='-G' ;;
10173
*Sun\ F*) # Sun Fortran 8.3
10174
tmp_sharedflag='-G' ;;
10176
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178
if test "x$supports_anon_versioning" = xyes; then
10179
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10180
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10181
echo "local: *; };" >> $output_objdir/$libname.ver~
10182
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10185
case $cc_basename in
10187
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10188
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10189
hardcode_libdir_flag_spec=
10190
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10191
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10192
if test "x$supports_anon_versioning" = xyes; then
10193
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195
echo "local: *; };" >> $output_objdir/$libname.ver~
10196
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10206
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10210
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10216
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10220
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10221
*** create shared libraries on Solaris systems. Therefore, libtool
10222
*** is disabling shared libraries support. We urge you to upgrade GNU
10223
*** binutils to release 2.9.1 or newer. Another option is to modify
10224
*** your PATH or compiler configuration so that the native linker is
10225
*** used, and then restart.
10228
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10237
case `$LD -v 2>&1` in
10238
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10242
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10243
*** reliably create shared libraries on SCO systems. Therefore, libtool
10244
*** is disabling shared libraries support. We urge you to upgrade GNU
10245
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10246
*** your PATH or compiler configuration so that the native linker is
10247
*** used, and then restart.
10252
# For security reasons, it is highly recommended that you always
10253
# use absolute paths for naming shared libraries, and exclude the
10254
# DT_RUNPATH tag from executables and libraries. But doing so
10255
# requires that you compile everything twice, which is a pain.
10256
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10258
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10268
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10270
hardcode_direct=yes
10271
hardcode_shlibpath_var=no
10275
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10284
if test "$ld_shlibs" = no; then
10286
hardcode_libdir_flag_spec=
10287
export_dynamic_flag_spec=
10288
whole_archive_flag_spec=
10291
# PORTME fill in a description of your system's linker (not GNU ld)
10294
allow_undefined_flag=unsupported
10295
always_export_symbols=yes
10296
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10297
# Note: this linker hardcodes the directories in LIBPATH if there
10298
# are no directories specified by -L.
10299
hardcode_minus_L=yes
10300
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10301
# Neither direct hardcoding nor static linking is supported with a
10303
hardcode_direct=unsupported
10308
if test "$host_cpu" = ia64; then
10309
# On IA64, the linker does run time linking by default, so we don't
10310
# have to do anything special.
10311
aix_use_runtimelinking=no
10312
exp_sym_flag='-Bexport'
10315
# If we're using GNU nm, then we don't want the "-C" option.
10316
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10317
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10318
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10320
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10322
aix_use_runtimelinking=no
10324
# Test if we are trying to use run time linking or normal
10325
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10326
# need to do runtime linking.
10327
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10328
for ld_flag in $LDFLAGS; do
10329
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10330
aix_use_runtimelinking=yes
10337
exp_sym_flag='-bexport'
10338
no_entry_flag='-bnoentry'
10341
# When large executables or shared objects are built, AIX ld can
10342
# have problems creating the table of contents. If linking a library
10343
# or program results in "error TOC overflow" add -mminimal-toc to
10344
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10345
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10348
hardcode_direct=yes
10349
hardcode_direct_absolute=yes
10350
hardcode_libdir_separator=':'
10351
link_all_deplibs=yes
10352
file_list_spec='${wl}-f,'
10354
if test "$GCC" = yes; then
10355
case $host_os in aix4.[012]|aix4.[012].*)
10356
# We only want to do this on AIX 4.2 and lower, the check
10357
# below for broken collect2 doesn't work under 4.3+
10358
collect2name=`${CC} -print-prog-name=collect2`
10359
if test -f "$collect2name" &&
10360
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10362
# We have reworked collect2
10365
# We have old collect2
10366
hardcode_direct=unsupported
10367
# It fails to find uninstalled libraries when the uninstalled
10368
# path is not listed in the libpath. Setting hardcode_minus_L
10369
# to unsupported forces relinking
10370
hardcode_minus_L=yes
10371
hardcode_libdir_flag_spec='-L$libdir'
10372
hardcode_libdir_separator=
10376
shared_flag='-shared'
10377
if test "$aix_use_runtimelinking" = yes; then
10378
shared_flag="$shared_flag "'${wl}-G'
10382
if test "$host_cpu" = ia64; then
10383
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10384
# chokes on -Wl,-G. The following line is correct:
10387
if test "$aix_use_runtimelinking" = yes; then
10388
shared_flag='${wl}-G'
10390
shared_flag='${wl}-bM:SRE'
10395
export_dynamic_flag_spec='${wl}-bexpall'
10396
# It seems that -bexpall does not export symbols beginning with
10397
# underscore (_), so it is better to generate a list of symbols to export.
10398
always_export_symbols=yes
10399
if test "$aix_use_runtimelinking" = yes; then
10400
# Warning - without using the other runtime loading flags (-brtl),
10401
# -berok will link without error, but may produce a broken library.
10402
allow_undefined_flag='-berok'
10403
# Determine the default libpath from the value encoded in an
10404
# empty executable.
10405
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406
/* end confdefs.h. */
10416
if ac_fn_c_try_link "$LINENO"; then :
10418
lt_aix_libpath_sed='
10419
/Import File Strings/,/^$/ {
10425
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426
# Check for a 64-bit object if we didn't find anything.
10427
if test -z "$aix_libpath"; then
10428
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10431
rm -f core conftest.err conftest.$ac_objext \
10432
conftest$ac_exeext conftest.$ac_ext
10433
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10435
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10436
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10438
if test "$host_cpu" = ia64; then
10439
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10440
allow_undefined_flag="-z nodefs"
10441
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10443
# Determine the default libpath from the value encoded in an
10444
# empty executable.
10445
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446
/* end confdefs.h. */
10456
if ac_fn_c_try_link "$LINENO"; then :
10458
lt_aix_libpath_sed='
10459
/Import File Strings/,/^$/ {
10465
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10466
# Check for a 64-bit object if we didn't find anything.
10467
if test -z "$aix_libpath"; then
10468
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10471
rm -f core conftest.err conftest.$ac_objext \
10472
conftest$ac_exeext conftest.$ac_ext
10473
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10475
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10476
# Warning - without using the other run time loading flags,
10477
# -berok will link without error, but may produce a broken library.
10478
no_undefined_flag=' ${wl}-bernotok'
10479
allow_undefined_flag=' ${wl}-berok'
10480
# Exported symbols can be pulled into shared objects from archives
10481
whole_archive_flag_spec='$convenience'
10482
archive_cmds_need_lc=yes
10483
# This is similar to how AIX traditionally builds its shared libraries.
10484
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10492
# see comment about AmigaOS4 .so support
10493
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494
archive_expsym_cmds=''
10497
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10498
hardcode_libdir_flag_spec='-L$libdir'
10499
hardcode_minus_L=yes
10505
export_dynamic_flag_spec=-rdynamic
10508
cygwin* | mingw* | pw32* | cegcc*)
10509
# When not using gcc, we currently assume that we are using
10510
# Microsoft Visual C++.
10511
# hardcode_libdir_flag_spec is actually meaningless, as there is
10512
# no search path for DLLs.
10513
hardcode_libdir_flag_spec=' '
10514
allow_undefined_flag=unsupported
10515
# Tell ltmain to make .lib files, not .a files.
10517
# Tell ltmain to make .dll files, not .so files.
10519
# FIXME: Setting linknames here is a bad hack.
10520
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10521
# The linker will automatically build a .lib file if we build a DLL.
10522
old_archive_from_new_cmds='true'
10523
# FIXME: Should let the user specify the lib program.
10524
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10525
fix_srcfile_path='`cygpath -w "$srcfile"`'
10526
enable_shared_with_static_runtimes=yes
10529
darwin* | rhapsody*)
10532
archive_cmds_need_lc=no
10534
hardcode_automatic=yes
10535
hardcode_shlibpath_var=unsupported
10536
whole_archive_flag_spec=''
10537
link_all_deplibs=yes
10538
allow_undefined_flag="$_lt_dar_allow_undefined"
10539
case $cc_basename in
10540
ifort*) _lt_dar_can_shared=yes ;;
10541
*) _lt_dar_can_shared=$GCC ;;
10543
if test "$_lt_dar_can_shared" = "yes"; then
10544
output_verbose_link_cmd=echo
10545
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10546
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10547
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10548
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10557
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558
hardcode_libdir_flag_spec='-L$libdir'
10559
hardcode_shlibpath_var=no
10566
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10567
# support. Future versions do this automatically, but an explicit c++rt0.o
10568
# does not break anything, and helps significantly (at the cost of a little
10571
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10572
hardcode_libdir_flag_spec='-R$libdir'
10573
hardcode_direct=yes
10574
hardcode_shlibpath_var=no
10577
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10579
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10580
hardcode_direct=yes
10581
hardcode_minus_L=yes
10582
hardcode_shlibpath_var=no
10585
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10586
freebsd* | dragonfly*)
10587
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10588
hardcode_libdir_flag_spec='-R$libdir'
10589
hardcode_direct=yes
10590
hardcode_shlibpath_var=no
10594
if test "$GCC" = yes; then
10595
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10597
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10599
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600
hardcode_libdir_separator=:
10601
hardcode_direct=yes
10603
# hardcode_minus_L: Not really in the search PATH,
10604
# but as the default location of the library.
10605
hardcode_minus_L=yes
10606
export_dynamic_flag_spec='${wl}-E'
10610
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10611
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10613
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10615
if test "$with_gnu_ld" = no; then
10616
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10617
hardcode_libdir_flag_spec_ld='+b $libdir'
10618
hardcode_libdir_separator=:
10619
hardcode_direct=yes
10620
hardcode_direct_absolute=yes
10621
export_dynamic_flag_spec='${wl}-E'
10622
# hardcode_minus_L: Not really in the search PATH,
10623
# but as the default location of the library.
10624
hardcode_minus_L=yes
10629
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10632
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10638
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10644
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10647
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10650
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10654
if test "$with_gnu_ld" = no; then
10655
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10656
hardcode_libdir_separator=:
10661
hardcode_shlibpath_var=no
10664
hardcode_direct=yes
10665
hardcode_direct_absolute=yes
10666
export_dynamic_flag_spec='${wl}-E'
10668
# hardcode_minus_L: Not really in the search PATH,
10669
# but as the default location of the library.
10670
hardcode_minus_L=yes
10676
irix5* | irix6* | nonstopux*)
10677
if test "$GCC" = yes; then
10678
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10679
# Try to use the -exported_symbol ld option, if it does not
10680
# work, assume that -exports_file does not work either and
10681
# implicitly export all symbols.
10682
save_LDFLAGS="$LDFLAGS"
10683
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685
/* end confdefs.h. */
10688
if ac_fn_c_try_link "$LINENO"; then :
10689
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10692
rm -f core conftest.err conftest.$ac_objext \
10693
conftest$ac_exeext conftest.$ac_ext
10694
LDFLAGS="$save_LDFLAGS"
10696
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10697
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10699
archive_cmds_need_lc='no'
10700
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10701
hardcode_libdir_separator=:
10703
link_all_deplibs=yes
10707
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10708
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10710
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10712
hardcode_libdir_flag_spec='-R$libdir'
10713
hardcode_direct=yes
10714
hardcode_shlibpath_var=no
10718
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719
hardcode_direct=yes
10720
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10721
hardcode_libdir_separator=:
10722
hardcode_shlibpath_var=no
10729
if test -f /usr/libexec/ld.so; then
10730
hardcode_direct=yes
10731
hardcode_shlibpath_var=no
10732
hardcode_direct_absolute=yes
10733
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10735
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10736
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10737
export_dynamic_flag_spec='${wl}-E'
10740
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10741
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10742
hardcode_libdir_flag_spec='-R$libdir'
10745
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10746
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10756
hardcode_libdir_flag_spec='-L$libdir'
10757
hardcode_minus_L=yes
10758
allow_undefined_flag=unsupported
10759
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10760
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10764
if test "$GCC" = yes; then
10765
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10766
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10768
allow_undefined_flag=' -expect_unresolved \*'
10769
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10771
archive_cmds_need_lc='no'
10772
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10773
hardcode_libdir_separator=:
10776
osf4* | osf5*) # as osf3* with the addition of -msym flag
10777
if test "$GCC" = yes; then
10778
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10779
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10780
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10782
allow_undefined_flag=' -expect_unresolved \*'
10783
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10784
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10785
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10787
# Both c and cxx compiler support -rpath directly
10788
hardcode_libdir_flag_spec='-rpath $libdir'
10790
archive_cmds_need_lc='no'
10791
hardcode_libdir_separator=:
10795
no_undefined_flag=' -z defs'
10796
if test "$GCC" = yes; then
10798
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10799
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10802
case `$CC -V 2>&1` in
10805
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10806
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10807
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10811
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10812
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10813
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10817
hardcode_libdir_flag_spec='-R$libdir'
10818
hardcode_shlibpath_var=no
10820
solaris2.[0-5] | solaris2.[0-5].*) ;;
10822
# The compiler driver will combine and reorder linker options,
10823
# but understands `-z linker_flag'. GCC discards it without `$wl',
10824
# but is careful enough not to reorder.
10825
# Supported since Solaris 2.6 (maybe 2.5.1?)
10826
if test "$GCC" = yes; then
10827
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10829
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10833
link_all_deplibs=yes
10837
if test "x$host_vendor" = xsequent; then
10838
# Use $CC to link under sequent, because it throws in some extra .o
10839
# files that make .init and .fini sections work.
10840
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10842
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10844
hardcode_libdir_flag_spec='-L$libdir'
10845
hardcode_direct=yes
10846
hardcode_minus_L=yes
10847
hardcode_shlibpath_var=no
10851
case $host_vendor in
10853
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854
hardcode_direct=yes # is this really true???
10857
## LD is ld it makes a PLAMLIB
10858
## CC just makes a GrossModule.
10859
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10860
reload_cmds='$CC -r -o $output$reload_objs'
10864
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10868
runpath_var='LD_RUN_PATH'
10869
hardcode_shlibpath_var=no
10873
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874
hardcode_shlibpath_var=no
10875
export_dynamic_flag_spec='-Bexport'
10879
if test -d /usr/nec; then
10880
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881
hardcode_shlibpath_var=no
10882
runpath_var=LD_RUN_PATH
10883
hardcode_runpath_var=yes
10888
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10889
no_undefined_flag='${wl}-z,text'
10890
archive_cmds_need_lc=no
10891
hardcode_shlibpath_var=no
10892
runpath_var='LD_RUN_PATH'
10894
if test "$GCC" = yes; then
10895
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903
sysv5* | sco3.2v5* | sco5v6*)
10904
# Note: We can NOT use -z defs as we might desire, because we do not
10905
# link with -lc, and that would cause any symbols used from libc to
10906
# always be unresolved, which means just about no library would
10907
# ever link correctly. If we're not using GNU ld we use -z text
10908
# though, which does catch some bad symbols but isn't as heavy-handed
10910
no_undefined_flag='${wl}-z,text'
10911
allow_undefined_flag='${wl}-z,nodefs'
10912
archive_cmds_need_lc=no
10913
hardcode_shlibpath_var=no
10914
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10915
hardcode_libdir_separator=':'
10916
link_all_deplibs=yes
10917
export_dynamic_flag_spec='${wl}-Bexport'
10918
runpath_var='LD_RUN_PATH'
10920
if test "$GCC" = yes; then
10921
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931
hardcode_libdir_flag_spec='-L$libdir'
10932
hardcode_shlibpath_var=no
10940
if test x$host_vendor = xsni; then
10942
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10943
export_dynamic_flag_spec='${wl}-Blargedynsym'
10949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10950
$as_echo "$ld_shlibs" >&6; }
10951
test "$ld_shlibs" = no && can_build_shared=no
10953
with_gnu_ld=$with_gnu_ld
10970
# Do we need to explicitly link libc?
10972
case "x$archive_cmds_need_lc" in
10974
# Assume -lc should be added
10975
archive_cmds_need_lc=yes
10977
if test "$enable_shared" = yes && test "$GCC" = yes; then
10978
case $archive_cmds in
10980
# FIXME: we may have to deal with multi-command sequences.
10983
# Test whether the compiler implicitly links with -lc since on some
10984
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10985
# to ld, don't add -lc before -lgcc.
10986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10987
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10989
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10991
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10992
(eval $ac_compile) 2>&5
10994
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995
test $ac_status = 0; } 2>conftest.err; then
10998
libobjs=conftest.$ac_objext
11000
wl=$lt_prog_compiler_wl
11001
pic_flag=$lt_prog_compiler_pic
11007
lt_save_allow_undefined_flag=$allow_undefined_flag
11008
allow_undefined_flag=
11009
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11010
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11012
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11013
test $ac_status = 0; }
11015
archive_cmds_need_lc=no
11017
archive_cmds_need_lc=yes
11019
allow_undefined_flag=$lt_save_allow_undefined_flag
11021
cat conftest.err 1>&5
11024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11025
$as_echo "$archive_cmds_need_lc" >&6; }
11188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11189
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11191
if test "$GCC" = yes; then
11193
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11194
*) lt_awk_arg="/^libraries:/" ;;
11196
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11197
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11198
# if the path contains ";" then we assume it to be the separator
11199
# otherwise default to the standard path separator (i.e. ":") - it is
11200
# assumed that no part of a normal pathname contains ";" but that should
11201
# okay in the real world where ";" in dirpaths is itself problematic.
11202
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11204
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11206
# Ok, now we have the path, separated by spaces, we can step through it
11207
# and add multilib dir if necessary.
11208
lt_tmp_lt_search_path_spec=
11209
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11210
for lt_sys_path in $lt_search_path_spec; do
11211
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11212
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11214
test -d "$lt_sys_path" && \
11215
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11218
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11219
BEGIN {RS=" "; FS="/|\n";} {
11222
for (lt_i = NF; lt_i > 0; lt_i--) {
11223
if ($lt_i != "" && $lt_i != ".") {
11224
if ($lt_i == "..") {
11227
if (lt_count == 0) {
11228
lt_foo="/" $lt_i lt_foo;
11235
if (lt_foo != "") { lt_freq[lt_foo]++; }
11236
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11238
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11240
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11242
library_names_spec=
11243
libname_spec='lib$name'
11247
postuninstall_cmds=
11251
shlibpath_overrides_runpath=unknown
11253
dynamic_linker="$host_os ld.so"
11254
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255
need_lib_prefix=unknown
11256
hardcode_into_libs=no
11258
# when you set need_version to no, make sure it does not cause -set_version
11259
# flags to be left without arguments
11260
need_version=unknown
11265
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11266
shlibpath_var=LIBPATH
11268
# AIX 3 has no versioning support, so we append a major version to the name.
11269
soname_spec='${libname}${release}${shared_ext}$major'
11276
hardcode_into_libs=yes
11277
if test "$host_cpu" = ia64; then
11278
# AIX 5 supports IA64
11279
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11280
shlibpath_var=LD_LIBRARY_PATH
11282
# With GCC up to 2.95.x, collect2 would create an import file
11283
# for dependence libraries. The import file would start with
11284
# the line `#! .'. This would cause the generated library to
11285
# depend on `.', always an invalid library. This was fixed in
11286
# development snapshots of GCC prior to 3.0.
11288
aix4 | aix4.[01] | aix4.[01].*)
11289
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11291
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11294
can_build_shared=no
11298
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11299
# soname into executable. Probably we can add versioning support to
11300
# collect2, so additional links can be useful in future.
11301
if test "$aix_use_runtimelinking" = yes; then
11302
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11303
# instead of lib<name>.a to let people know that these are not
11304
# typical AIX shared libraries.
11305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307
# We preserve .a as extension for shared libraries through AIX4.2
11308
# and later when we are not doing run time linking.
11309
library_names_spec='${libname}${release}.a $libname.a'
11310
soname_spec='${libname}${release}${shared_ext}$major'
11312
shlibpath_var=LIBPATH
11319
# Since July 2007 AmigaOS4 officially supports .so libraries.
11320
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324
library_names_spec='$libname.ixlibrary $libname.a'
11325
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11326
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11332
library_names_spec='${libname}${shared_ext}'
11333
dynamic_linker="$host_os ld.so"
11334
shlibpath_var=LIBRARY_PATH
11340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341
soname_spec='${libname}${release}${shared_ext}$major'
11342
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11343
shlibpath_var=LD_LIBRARY_PATH
11344
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11345
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11346
# the default ld.so.conf also contains /usr/contrib/lib and
11347
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11348
# libtool to hard-code these into programs
11351
cygwin* | mingw* | pw32* | cegcc*)
11352
version_type=windows
11357
case $GCC,$host_os in
11358
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11359
library_names_spec='$libname.dll.a'
11360
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11361
postinstall_cmds='base_file=`basename \${file}`~
11362
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11363
dldir=$destdir/`dirname \$dlpath`~
11364
test -d \$dldir || mkdir -p \$dldir~
11365
$install_prog $dir/$dlname \$dldir/$dlname~
11366
chmod a+x \$dldir/$dlname~
11367
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11368
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11370
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11371
dlpath=$dir/\$dldll~
11373
shlibpath_overrides_runpath=yes
11377
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11378
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11379
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11382
# MinGW DLLs use traditional 'lib' prefix
11383
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11384
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11385
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11386
# It is most probably a Windows format PATH printed by
11387
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11388
# path with ; separators, and with drive letters. We can handle the
11389
# drive letters (cygwin fileutils understands them), so leave them,
11390
# especially as we might pass files found there to a mingw objdump,
11391
# which wouldn't understand a cygwinified path. Ahh.
11392
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11394
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11398
# pw32 DLLs use 'pw' prefix rather than 'lib'
11399
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11408
dynamic_linker='Win32 ld.exe'
11409
# FIXME: first we should search . and the directory the executable is in
11413
darwin* | rhapsody*)
11414
dynamic_linker="$host_os dyld"
11415
version_type=darwin
11418
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11419
soname_spec='${libname}${release}${major}$shared_ext'
11420
shlibpath_overrides_runpath=yes
11421
shlibpath_var=DYLD_LIBRARY_PATH
11422
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11424
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11425
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11433
soname_spec='${libname}${release}${shared_ext}$major'
11434
shlibpath_var=LD_LIBRARY_PATH
11441
freebsd* | dragonfly*)
11442
# DragonFly does not have aout. When/if they implement a new
11443
# versioning mechanism, adjust this.
11444
if test -x /usr/bin/objformat; then
11445
objformat=`/usr/bin/objformat`
11448
freebsd[123]*) objformat=aout ;;
11449
*) objformat=elf ;;
11452
version_type=freebsd-$objformat
11453
case $version_type in
11455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11460
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11464
shlibpath_var=LD_LIBRARY_PATH
11467
shlibpath_overrides_runpath=yes
11469
freebsd3.[01]* | freebsdelf3.[01]*)
11470
shlibpath_overrides_runpath=yes
11471
hardcode_into_libs=yes
11473
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11474
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11475
shlibpath_overrides_runpath=no
11476
hardcode_into_libs=yes
11478
*) # from 4.6 on, and DragonFly
11479
shlibpath_overrides_runpath=yes
11480
hardcode_into_libs=yes
11489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11490
soname_spec='${libname}${release}${shared_ext}$major'
11491
shlibpath_var=LD_LIBRARY_PATH
11492
hardcode_into_libs=yes
11495
hpux9* | hpux10* | hpux11*)
11496
# Give a soname corresponding to the major version so that dld.sl refuses to
11497
# link against other versions.
11504
hardcode_into_libs=yes
11505
dynamic_linker="$host_os dld.so"
11506
shlibpath_var=LD_LIBRARY_PATH
11507
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509
soname_spec='${libname}${release}${shared_ext}$major'
11510
if test "X$HPUX_IA64_MODE" = X32; then
11511
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11513
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11515
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519
hardcode_into_libs=yes
11520
dynamic_linker="$host_os dld.sl"
11521
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11522
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524
soname_spec='${libname}${release}${shared_ext}$major'
11525
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11526
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11530
dynamic_linker="$host_os dld.sl"
11531
shlibpath_var=SHLIB_PATH
11532
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534
soname_spec='${libname}${release}${shared_ext}$major'
11537
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11538
postinstall_cmds='chmod 555 $lib'
11545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11546
soname_spec='${libname}${release}${shared_ext}$major'
11547
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11548
shlibpath_var=LD_LIBRARY_PATH
11549
shlibpath_overrides_runpath=no
11550
hardcode_into_libs=yes
11553
irix5* | irix6* | nonstopux*)
11555
nonstopux*) version_type=nonstopux ;;
11557
if test "$lt_cv_prog_gnu_ld" = yes; then
11565
soname_spec='${libname}${release}${shared_ext}$major'
11566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11568
irix5* | nonstopux*)
11569
libsuff= shlibsuff=
11572
case $LD in # libtool.m4 will add one of these switches to LD
11573
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11574
libsuff= shlibsuff= libmagic=32-bit;;
11575
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11576
libsuff=32 shlibsuff=N32 libmagic=N32;;
11577
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11578
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11579
*) libsuff= shlibsuff= libmagic=never-match;;
11583
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11584
shlibpath_overrides_runpath=no
11585
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11586
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11587
hardcode_into_libs=yes
11590
# No shared lib support for Linux oldld, aout, or coff.
11591
linux*oldld* | linux*aout* | linux*coff*)
11595
# This must be Linux ELF.
11596
linux* | k*bsd*-gnu)
11600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601
soname_spec='${libname}${release}${shared_ext}$major'
11602
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11603
shlibpath_var=LD_LIBRARY_PATH
11604
shlibpath_overrides_runpath=no
11605
# Some binutils ld are patched to set DT_RUNPATH
11606
save_LDFLAGS=$LDFLAGS
11607
save_libdir=$libdir
11608
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11609
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611
/* end confdefs.h. */
11621
if ac_fn_c_try_link "$LINENO"; then :
11622
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11623
shlibpath_overrides_runpath=yes
11626
rm -f core conftest.err conftest.$ac_objext \
11627
conftest$ac_exeext conftest.$ac_ext
11628
LDFLAGS=$save_LDFLAGS
11629
libdir=$save_libdir
11631
# This implies no fast_install, which is unacceptable.
11632
# Some rework will be needed to allow for fast_install
11633
# before this can be enabled.
11634
hardcode_into_libs=yes
11636
# Append ld.so.conf contents to the search path
11637
if test -f /etc/ld.so.conf; then
11638
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11639
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11642
# We used to test for /lib/ld.so.1 and disable shared libraries on
11643
# powerpc, because MkLinux only supported shared libraries with the
11644
# GNU dynamic linker. Since this was broken with cross compilers,
11645
# most powerpc-linux boxes support dynamic linking these days and
11646
# people can always --disable-shared, the test was removed, and we
11647
# assume the GNU/Linux dynamic linker is in use.
11648
dynamic_linker='GNU/Linux ld.so'
11655
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658
dynamic_linker='NetBSD (a.out) ld.so'
11660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11661
soname_spec='${libname}${release}${shared_ext}$major'
11662
dynamic_linker='NetBSD ld.elf_so'
11664
shlibpath_var=LD_LIBRARY_PATH
11665
shlibpath_overrides_runpath=yes
11666
hardcode_into_libs=yes
11671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672
shlibpath_var=LD_LIBRARY_PATH
11673
shlibpath_overrides_runpath=yes
11680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681
soname_spec='${libname}${release}${shared_ext}$major'
11682
shlibpath_var=LD_LIBRARY_PATH
11683
shlibpath_overrides_runpath=no
11684
hardcode_into_libs=yes
11685
dynamic_linker='ldqnx.so'
11690
sys_lib_dlsearch_path_spec="/usr/lib"
11692
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11694
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11695
*) need_version=no ;;
11697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11699
shlibpath_var=LD_LIBRARY_PATH
11700
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11702
openbsd2.[89] | openbsd2.[89].*)
11703
shlibpath_overrides_runpath=no
11706
shlibpath_overrides_runpath=yes
11710
shlibpath_overrides_runpath=yes
11715
libname_spec='$name'
11718
library_names_spec='$libname${shared_ext} $libname.a'
11719
dynamic_linker='OS/2 ld.exe'
11720
shlibpath_var=LIBPATH
11723
osf3* | osf4* | osf5*)
11727
soname_spec='${libname}${release}${shared_ext}$major'
11728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729
shlibpath_var=LD_LIBRARY_PATH
11730
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11731
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743
soname_spec='${libname}${release}${shared_ext}$major'
11744
shlibpath_var=LD_LIBRARY_PATH
11745
shlibpath_overrides_runpath=yes
11746
hardcode_into_libs=yes
11747
# ldd complains unless libraries are executable
11748
postinstall_cmds='chmod +x $lib'
11753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11755
shlibpath_var=LD_LIBRARY_PATH
11756
shlibpath_overrides_runpath=yes
11757
if test "$with_gnu_ld" = yes; then
11765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11766
soname_spec='${libname}${release}${shared_ext}$major'
11767
shlibpath_var=LD_LIBRARY_PATH
11768
case $host_vendor in
11770
shlibpath_overrides_runpath=no
11772
runpath_var=LD_RUN_PATH
11780
shlibpath_overrides_runpath=no
11781
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11787
if test -d /usr/nec ;then
11789
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11790
soname_spec='$libname${shared_ext}.$major'
11791
shlibpath_var=LD_LIBRARY_PATH
11795
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11796
version_type=freebsd-elf
11799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11800
soname_spec='${libname}${release}${shared_ext}$major'
11801
shlibpath_var=LD_LIBRARY_PATH
11802
shlibpath_overrides_runpath=yes
11803
hardcode_into_libs=yes
11804
if test "$with_gnu_ld" = yes; then
11805
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11807
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11810
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11814
sys_lib_dlsearch_path_spec='/usr/lib'
11818
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823
shlibpath_var=LD_LIBRARY_PATH
11824
shlibpath_overrides_runpath=no
11825
hardcode_into_libs=yes
11830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831
soname_spec='${libname}${release}${shared_ext}$major'
11832
shlibpath_var=LD_LIBRARY_PATH
11839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11840
$as_echo "$dynamic_linker" >&6; }
11841
test "$dynamic_linker" = no && can_build_shared=no
11843
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11844
if test "$GCC" = yes; then
11845
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11848
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11849
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11851
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11852
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11942
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11944
if test -n "$hardcode_libdir_flag_spec" ||
11945
test -n "$runpath_var" ||
11946
test "X$hardcode_automatic" = "Xyes" ; then
11948
# We can hardcode non-existent directories.
11949
if test "$hardcode_direct" != no &&
11950
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11951
# have to relink, otherwise we might link with an installed library
11952
# when we should be linking with a yet-to-be-installed one
11953
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11954
test "$hardcode_minus_L" != no; then
11955
# Linking always hardcodes the temporary library directory.
11956
hardcode_action=relink
11958
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11959
hardcode_action=immediate
11962
# We cannot hardcode anything, or else we can only hardcode existing
11964
hardcode_action=unsupported
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11967
$as_echo "$hardcode_action" >&6; }
11969
if test "$hardcode_action" = relink ||
11970
test "$inherit_rpath" = yes; then
11971
# Fast installation is not supported
11972
enable_fast_install=no
11973
elif test "$shlibpath_overrides_runpath" = yes ||
11974
test "$enable_shared" = no; then
11975
# Fast installation is not necessary
11976
enable_fast_install=needless
11984
if test "x$enable_dlopen" != xyes; then
11985
enable_dlopen=unknown
11986
enable_dlopen_self=unknown
11987
enable_dlopen_self_static=unknown
11994
lt_cv_dlopen="load_add_on"
11996
lt_cv_dlopen_self=yes
11999
mingw* | pw32* | cegcc*)
12000
lt_cv_dlopen="LoadLibrary"
12005
lt_cv_dlopen="dlopen"
12010
# if libdl is installed we need to link against it
12011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12012
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12013
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12014
$as_echo_n "(cached) " >&6
12016
ac_check_lib_save_LIBS=$LIBS
12018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019
/* end confdefs.h. */
12021
/* Override any GCC internal prototype to avoid an error.
12022
Use char because int might match the return type of a GCC
12023
builtin and then its argument prototype would still apply. */
12036
if ac_fn_c_try_link "$LINENO"; then :
12037
ac_cv_lib_dl_dlopen=yes
12039
ac_cv_lib_dl_dlopen=no
12041
rm -f core conftest.err conftest.$ac_objext \
12042
conftest$ac_exeext conftest.$ac_ext
12043
LIBS=$ac_check_lib_save_LIBS
12045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12046
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12047
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12048
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12051
lt_cv_dlopen="dyld"
12053
lt_cv_dlopen_self=yes
12060
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12061
if test "x$ac_cv_func_shl_load" = x""yes; then :
12062
lt_cv_dlopen="shl_load"
12064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12065
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12066
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12067
$as_echo_n "(cached) " >&6
12069
ac_check_lib_save_LIBS=$LIBS
12071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072
/* end confdefs.h. */
12074
/* Override any GCC internal prototype to avoid an error.
12075
Use char because int might match the return type of a GCC
12076
builtin and then its argument prototype would still apply. */
12084
return shl_load ();
12089
if ac_fn_c_try_link "$LINENO"; then :
12090
ac_cv_lib_dld_shl_load=yes
12092
ac_cv_lib_dld_shl_load=no
12094
rm -f core conftest.err conftest.$ac_objext \
12095
conftest$ac_exeext conftest.$ac_ext
12096
LIBS=$ac_check_lib_save_LIBS
12098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12099
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12100
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12101
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12103
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12104
if test "x$ac_cv_func_dlopen" = x""yes; then :
12105
lt_cv_dlopen="dlopen"
12107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12108
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12109
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12110
$as_echo_n "(cached) " >&6
12112
ac_check_lib_save_LIBS=$LIBS
12114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115
/* end confdefs.h. */
12117
/* Override any GCC internal prototype to avoid an error.
12118
Use char because int might match the return type of a GCC
12119
builtin and then its argument prototype would still apply. */
12132
if ac_fn_c_try_link "$LINENO"; then :
12133
ac_cv_lib_dl_dlopen=yes
12135
ac_cv_lib_dl_dlopen=no
12137
rm -f core conftest.err conftest.$ac_objext \
12138
conftest$ac_exeext conftest.$ac_ext
12139
LIBS=$ac_check_lib_save_LIBS
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12142
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12143
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12144
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12147
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12148
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12149
$as_echo_n "(cached) " >&6
12151
ac_check_lib_save_LIBS=$LIBS
12152
LIBS="-lsvld $LIBS"
12153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154
/* end confdefs.h. */
12156
/* Override any GCC internal prototype to avoid an error.
12157
Use char because int might match the return type of a GCC
12158
builtin and then its argument prototype would still apply. */
12171
if ac_fn_c_try_link "$LINENO"; then :
12172
ac_cv_lib_svld_dlopen=yes
12174
ac_cv_lib_svld_dlopen=no
12176
rm -f core conftest.err conftest.$ac_objext \
12177
conftest$ac_exeext conftest.$ac_ext
12178
LIBS=$ac_check_lib_save_LIBS
12180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12181
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12182
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12183
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12186
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12187
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12188
$as_echo_n "(cached) " >&6
12190
ac_check_lib_save_LIBS=$LIBS
12192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193
/* end confdefs.h. */
12195
/* Override any GCC internal prototype to avoid an error.
12196
Use char because int might match the return type of a GCC
12197
builtin and then its argument prototype would still apply. */
12205
return dld_link ();
12210
if ac_fn_c_try_link "$LINENO"; then :
12211
ac_cv_lib_dld_dld_link=yes
12213
ac_cv_lib_dld_dld_link=no
12215
rm -f core conftest.err conftest.$ac_objext \
12216
conftest$ac_exeext conftest.$ac_ext
12217
LIBS=$ac_check_lib_save_LIBS
12219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12220
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12221
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12222
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12243
if test "x$lt_cv_dlopen" != xno; then
12249
case $lt_cv_dlopen in
12251
save_CPPFLAGS="$CPPFLAGS"
12252
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12254
save_LDFLAGS="$LDFLAGS"
12255
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12258
LIBS="$lt_cv_dlopen_libs $LIBS"
12260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12261
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12262
if test "${lt_cv_dlopen_self+set}" = set; then :
12263
$as_echo_n "(cached) " >&6
12265
if test "$cross_compiling" = yes; then :
12266
lt_cv_dlopen_self=cross
12268
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12269
lt_status=$lt_dlunknown
12270
cat > conftest.$ac_ext <<_LT_EOF
12271
#line 12271 "configure"
12272
#include "confdefs.h"
12281
# define LT_DLGLOBAL RTLD_GLOBAL
12284
# define LT_DLGLOBAL DL_GLOBAL
12286
# define LT_DLGLOBAL 0
12290
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12291
find out it does not work in some platform. */
12292
#ifndef LT_DLLAZY_OR_NOW
12294
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12297
# define LT_DLLAZY_OR_NOW DL_LAZY
12300
# define LT_DLLAZY_OR_NOW RTLD_NOW
12303
# define LT_DLLAZY_OR_NOW DL_NOW
12305
# define LT_DLLAZY_OR_NOW 0
12312
void fnord() { int i=42;}
12315
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12316
int status = $lt_dlunknown;
12320
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12321
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12322
/* dlclose (self); */
12330
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12331
(eval $ac_link) 2>&5
12333
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12335
(./conftest; exit; ) >&5 2>/dev/null
12337
case x$lt_status in
12338
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12339
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12340
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12343
# compilation failed
12344
lt_cv_dlopen_self=no
12351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12352
$as_echo "$lt_cv_dlopen_self" >&6; }
12354
if test "x$lt_cv_dlopen_self" = xyes; then
12355
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12357
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12358
if test "${lt_cv_dlopen_self_static+set}" = set; then :
12359
$as_echo_n "(cached) " >&6
12361
if test "$cross_compiling" = yes; then :
12362
lt_cv_dlopen_self_static=cross
12364
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365
lt_status=$lt_dlunknown
12366
cat > conftest.$ac_ext <<_LT_EOF
12367
#line 12367 "configure"
12368
#include "confdefs.h"
12377
# define LT_DLGLOBAL RTLD_GLOBAL
12380
# define LT_DLGLOBAL DL_GLOBAL
12382
# define LT_DLGLOBAL 0
12386
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387
find out it does not work in some platform. */
12388
#ifndef LT_DLLAZY_OR_NOW
12390
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12393
# define LT_DLLAZY_OR_NOW DL_LAZY
12396
# define LT_DLLAZY_OR_NOW RTLD_NOW
12399
# define LT_DLLAZY_OR_NOW DL_NOW
12401
# define LT_DLLAZY_OR_NOW 0
12408
void fnord() { int i=42;}
12411
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412
int status = $lt_dlunknown;
12416
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12417
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418
/* dlclose (self); */
12426
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12427
(eval $ac_link) 2>&5
12429
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12430
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12431
(./conftest; exit; ) >&5 2>/dev/null
12433
case x$lt_status in
12434
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12435
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12436
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12439
# compilation failed
12440
lt_cv_dlopen_self_static=no
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12448
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12451
CPPFLAGS="$save_CPPFLAGS"
12452
LDFLAGS="$save_LDFLAGS"
12457
case $lt_cv_dlopen_self in
12458
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12459
*) enable_dlopen_self=unknown ;;
12462
case $lt_cv_dlopen_self_static in
12463
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12464
*) enable_dlopen_self_static=unknown ;;
12486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12487
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12488
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12489
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12490
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12492
$as_echo "yes" >&6; }
12494
# FIXME - insert some real tests, host_os isn't really good enough
12497
if test -n "$STRIP" ; then
12498
striplib="$STRIP -x"
12499
old_striplib="$STRIP -S"
12500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501
$as_echo "yes" >&6; }
12503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504
$as_echo "no" >&6; }
12508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509
$as_echo "no" >&6; }
12525
# Report which library types will actually be built
12526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12527
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12529
$as_echo "$can_build_shared" >&6; }
12531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12532
$as_echo_n "checking whether to build shared libraries... " >&6; }
12533
test "$can_build_shared" = "no" && enable_shared=no
12535
# On AIX, shared libraries and static libraries use the same namespace, and
12536
# are all built from PIC.
12539
test "$enable_shared" = yes && enable_static=no
12540
if test -n "$RANLIB"; then
12541
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12542
postinstall_cmds='$RANLIB $lib'
12547
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12548
test "$enable_shared" = yes && enable_static=no
12552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12553
$as_echo "$enable_shared" >&6; }
12555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12556
$as_echo_n "checking whether to build static libraries... " >&6; }
12557
# Make sure either enable_shared or enable_static is yes.
12558
test "$enable_shared" = yes || enable_static=yes
12559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12560
$as_echo "$enable_static" >&6; }
12567
ac_cpp='$CPP $CPPFLAGS'
12568
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586
ac_config_commands="$ac_config_commands libtool"
12591
# Only expand once:
1565
12595
# Select memory manager depending on user input.
1566
12596
# If no "-enable-maxmem", use jmemnobs
1567
MEMORYMGR='jmemnobs.$(O)'
12597
MEMORYMGR='jmemnobs'
1569
# Check whether --enable-maxmem or --disable-maxmem was given.
1570
if test "${enable_maxmem+set}" = set; then
1571
enableval="$enable_maxmem"
1575
# support --with-maxmem for backwards compatibility with IJG V5.
1576
# Check whether --with-maxmem or --without-maxmem was given.
1577
if test "${with_maxmem+set}" = set; then
1578
withval="$with_maxmem"
12599
# Check whether --enable-maxmem was given.
12600
if test "${enable_maxmem+set}" = set; then :
12601
enableval=$enable_maxmem; MAXMEM="$enableval"
1582
12604
if test "x$MAXMEM" = xyes; then
1585
12607
if test "x$MAXMEM" != xno; then
1586
12608
if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
1587
{ echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }
12609
as_fn_error "non-numeric argument to --enable-maxmem" "$LINENO" 5
1589
12611
DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
1590
cat >> confdefs.h <<EOF
12613
cat >>confdefs.h <<_ACEOF
1591
12614
#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
1594
echo $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6
1595
echo "configure:1596: checking for 'tmpfile()'" >&5
1596
cat > conftest.$ac_ext <<EOF
1597
#line 1598 "configure"
1598
#include "confdefs.h"
12617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
12618
$as_echo_n "checking for 'tmpfile()'... " >&6; }
12619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620
/* end confdefs.h. */
1599
12621
#include <stdio.h>
1601
FILE * tfile = tmpfile();
1604
if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1606
echo "$ac_t""yes" 1>&6
1607
MEMORYMGR='jmemansi.$(O)'
1609
echo "configure: failed program was:" >&5
1610
cat conftest.$ac_ext >&5
1612
echo "$ac_t""no" 1>&6
1613
MEMORYMGR='jmemname.$(O)'
1614
cat >> confdefs.h <<\EOF
1615
#define NEED_SIGNAL_CATCHER
1618
echo $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6
1619
echo "configure:1620: checking for 'mktemp()'" >&5
1620
cat > conftest.$ac_ext <<EOF
1621
#line 1622 "configure"
1622
#include "confdefs.h"
1625
char fname[80]; mktemp(fname);
1628
if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1630
echo "$ac_t""yes" 1>&6
1632
echo "configure: failed program was:" >&5
1633
cat conftest.$ac_ext >&5
1635
echo "$ac_t""no" 1>&6
1636
cat >> confdefs.h <<\EOF
12625
FILE * tfile = tmpfile();
12630
if ac_fn_c_try_link "$LINENO"; then :
12631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12632
$as_echo "yes" >&6; }
12633
MEMORYMGR='jmemansi'
12635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636
$as_echo "no" >&6; }
12637
MEMORYMGR='jmemname'
12639
# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
12641
$as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
12643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
12644
$as_echo_n "checking for 'mktemp()'... " >&6; }
12645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646
/* end confdefs.h. */
12651
char fname[80]; mktemp(fname);
12656
if ac_fn_c_try_link "$LINENO"; then :
12657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658
$as_echo "yes" >&6; }
12660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661
$as_echo "no" >&6; }
12663
$as_echo "#define NO_MKTEMP 1" >>confdefs.h
12666
rm -f core conftest.err conftest.$ac_objext \
12667
conftest$ac_exeext conftest.$ac_ext
12669
rm -f core conftest.err conftest.$ac_objext \
12670
conftest$ac_exeext conftest.$ac_ext
1647
12674
# Extract the library version ID from jpeglib.h.
1648
echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6
1649
echo "configure:1650: checking libjpeg version number" >&5
12675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
12676
$as_echo_n "checking libjpeg version number... " >&6; }
1650
12677
JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
1651
echo "$ac_t""$JPEG_LIB_VERSION" 1>&6
1654
# Prepare to massage makefile.cfg correctly.
1655
if test $ijg_cv_have_prototypes = yes; then
1664
# ansi2knr needs -DBSD if string.h is missing
1665
if test $ac_cv_header_string_h = no; then
1666
ANSI2KNRFLAGS="-DBSD"
1671
# Substitutions to enable or disable libtool-related stuff
1672
if test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then
1678
if test "x$LTSHARED" != xno; then
1679
FORCE_INSTALL_LIB="install-lib"
1681
FORCE_INSTALL_LIB=""
1684
# Set up -I directives
1685
if test "x$srcdir" = x.; then
1686
INCLUDEFLAGS='-I$(srcdir)'
1688
INCLUDEFLAGS='-I. -I$(srcdir)'
1693
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12678
#[JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:`expr $JPEG_LIB_VERSION % 10`"]
12679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
12680
$as_echo "$JPEG_LIB_VERSION" >&6; }
12683
ac_config_files="$ac_config_files Makefile"
12685
cat >confcache <<\_ACEOF
12686
# This file is a shell script that caches the results of configure
12687
# tests run on this system so they can be shared between configure
12688
# scripts and configure runs, see configure's option --config-cache.
12689
# It is not useful on other systems. If it contains results you don't
12690
# want to keep, you may remove or edit it.
12692
# config.status only pays attention to the cache file if you give it
12693
# the --recheck option to rerun configure.
12695
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12696
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12697
# following values.
12701
# The following way of writing the cache mishandles newlines in values,
12702
# but we know of no workaround that is simple, portable, and efficient.
12703
# So, we kill variables containing newlines.
12704
# Ultrix sh set writes to stderr and can't be redirected directly,
12705
# and sets the high bit in the cache file unless we assign to the vars.
12707
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12708
eval ac_val=\$$ac_var
12712
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12713
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12716
_ | IFS | as_nl) ;; #(
12717
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12718
*) { eval $ac_var=; unset $ac_var;} ;;
12724
case $as_nl`(ac_space=' '; set) 2>&1` in #(
12725
*${as_nl}ac_space=\ *)
12726
# `set' does not quote correctly, so add quotes: double-quote
12727
# substitution turns \\\\ into \\, and sed turns \\ into \.
12730
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12733
# `set' quotes correctly as required by POSIX, so do not add quotes.
12734
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12743
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12745
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12747
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12748
if test -w "$cache_file"; then
12749
test "x$cache_file" != "x/dev/null" &&
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12751
$as_echo "$as_me: updating cache $cache_file" >&6;}
12752
cat confcache >$cache_file
12754
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12755
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1695
12760
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1696
12761
# Let make expand exec_prefix.
1697
12762
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1699
# Any assignment to VPATH causes Sun make to only execute
1700
# the first set of double-colon rules, so remove it if not needed.
1701
# If there is a colon in the path, we need to keep it.
1702
if test "x$srcdir" = x.; then
1703
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1706
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1708
12764
DEFS=-DHAVE_CONFIG_H
1710
# Without the "./", some shells look in PATH for config.status.
12768
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12769
# 1. Remove the extension, and $U if already installed.
12770
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12771
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12772
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12773
# will be set to the directory where LIBOBJS objects are built.
12774
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12775
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12777
LIBOBJS=$ac_libobjs
12779
LTLIBOBJS=$ac_ltlibobjs
12782
if test -n "$EXEEXT"; then
12784
am__EXEEXT_FALSE='#'
12786
am__EXEEXT_TRUE='#'
12790
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12791
as_fn_error "conditional \"AMDEP\" was never defined.
12792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12795
as_fn_error "conditional \"am__fastdepCC\" was never defined.
12796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12798
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12799
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12800
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12802
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12803
as_fn_error "conditional \"am__fastdepCC\" was never defined.
12804
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12806
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12807
as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12808
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1711
12811
: ${CONFIG_STATUS=./config.status}
1713
echo creating $CONFIG_STATUS
1714
rm -f $CONFIG_STATUS
1715
cat > $CONFIG_STATUS <<EOF
1717
# Generated automatically by configure.
12813
ac_clean_files_save=$ac_clean_files
12814
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12815
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12816
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12818
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12820
# Generated by $as_me.
1718
12821
# Run this file to recreate the current configuration.
1719
# This directory was configured as follows,
1720
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1722
# $0 $ac_configure_args
1724
12822
# Compiler output produced by configure, useful for debugging
1725
# configure, is in ./config.log if it exists.
1727
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1730
case "\$ac_option" in
12823
# configure, is in config.log if it exists.
12826
ac_cs_recheck=false
12829
SHELL=\${CONFIG_SHELL-$SHELL}
12832
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12833
## -------------------- ##
12834
## M4sh Initialization. ##
12835
## -------------------- ##
12837
# Be more Bourne compatible
12838
DUALCASE=1; export DUALCASE # for MKS sh
12839
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12842
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12843
# is contrary to our usage. Disable this feature.
12844
alias -g '${1+"$@"}'='"$@"'
12845
setopt NO_GLOB_SUBST
12847
case `(set -o) 2>/dev/null` in #(
12859
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12860
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12861
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12862
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12863
# Prefer a ksh shell builtin over an external printf program on Solaris,
12864
# but without wasting forks for bash or zsh.
12865
if test -z "$BASH_VERSION$ZSH_VERSION" \
12866
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12867
as_echo='print -r --'
12868
as_echo_n='print -rn --'
12869
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12870
as_echo='printf %s\n'
12871
as_echo_n='printf %s'
12873
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12874
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12875
as_echo_n='/usr/ucb/echo -n'
12877
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12878
as_echo_n_body='eval
12882
expr "X$arg" : "X\\(.*\\)$as_nl";
12883
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12885
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12887
export as_echo_n_body
12888
as_echo_n='sh -c $as_echo_n_body as_echo'
12890
export as_echo_body
12891
as_echo='sh -c $as_echo_body as_echo'
12894
# The user is always right.
12895
if test "${PATH_SEPARATOR+set}" != set; then
12897
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12898
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12905
# We need space, tab and new line, in precisely that order. Quoting is
12906
# there to prevent editors from complaining about space-tab.
12907
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12908
# splitting by setting IFS to empty value.)
12911
# Find who we are. Look in the path if we contain no directory separator.
12913
*[\\/]* ) as_myself=$0 ;;
12914
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915
for as_dir in $PATH
12918
test -z "$as_dir" && as_dir=.
12919
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12925
# We did not find ourselves, most probably we were run as `sh COMMAND'
12926
# in which case we are not to be found in the path.
12927
if test "x$as_myself" = x; then
12930
if test ! -f "$as_myself"; then
12931
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12935
# Unset variables that we do not need and which cause bugs (e.g. in
12936
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12937
# suppresses any "Segmentation fault" message there. '((' could
12938
# trigger a bug in pdksh 5.2.14.
12939
for as_var in BASH_ENV ENV MAIL MAILPATH
12940
do eval test x\${$as_var+set} = xset \
12941
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12954
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12957
# as_fn_error ERROR [LINENO LOG_FD]
12958
# ---------------------------------
12959
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12960
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12961
# script with status $?, using 1 if that was 0.
12964
as_status=$?; test $as_status -eq 0 && as_status=1
12966
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12967
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12969
$as_echo "$as_me: error: $1" >&2
12970
as_fn_exit $as_status
12974
# as_fn_set_status STATUS
12975
# -----------------------
12976
# Set $? to STATUS, without forking.
12977
as_fn_set_status ()
12980
} # as_fn_set_status
12982
# as_fn_exit STATUS
12983
# -----------------
12984
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12988
as_fn_set_status $1
12994
# Portably unset VAR.
12997
{ eval $1=; unset $1;}
12999
as_unset=as_fn_unset
13000
# as_fn_append VAR VALUE
13001
# ----------------------
13002
# Append the text in VALUE to the end of the definition contained in VAR. Take
13003
# advantage of any shell optimizations that allow amortized linear growth over
13004
# repeated appends, instead of the typical quadratic growth present in naive
13006
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13007
eval 'as_fn_append ()
13018
# as_fn_arith ARG...
13019
# ------------------
13020
# Perform arithmetic evaluation on the ARGs, and store the result in the
13021
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13022
# must be portable across $(()) and expr.
13023
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13024
eval 'as_fn_arith ()
13031
as_val=`expr "$@" || test $? -eq 1`
13036
if expr a : '\(a\)' >/dev/null 2>&1 &&
13037
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13043
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13044
as_basename=basename
13049
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13055
as_me=`$as_basename -- "$0" ||
13056
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13057
X"$0" : 'X\(//\)$' \| \
13058
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13060
sed '/^.*\/\([^/][^/]*\)\/*$/{
13074
# Avoid depending upon Character Ranges.
13075
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13076
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13077
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13078
as_cr_digits='0123456789'
13079
as_cr_alnum=$as_cr_Letters$as_cr_digits
13081
ECHO_C= ECHO_N= ECHO_T=
13082
case `echo -n x` in #(((((
13084
case `echo 'xy\c'` in
13085
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13087
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13094
rm -f conf$$ conf$$.exe conf$$.file
13095
if test -d conf$$.dir; then
13096
rm -f conf$$.dir/conf$$.file
13099
mkdir conf$$.dir 2>/dev/null
13101
if (echo >conf$$.file) 2>/dev/null; then
13102
if ln -s conf$$.file conf$$ 2>/dev/null; then
13104
# ... but there are two gotchas:
13105
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13106
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13107
# In both cases, we have to default to `cp -p'.
13108
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13110
elif ln conf$$.file conf$$ 2>/dev/null; then
13118
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13119
rmdir conf$$.dir 2>/dev/null
13124
# Create "$as_dir" as a directory, including parents if necessary.
13129
-*) as_dir=./$as_dir;;
13131
test -d "$as_dir" || eval $as_mkdir_p || {
13135
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13136
*) as_qdir=$as_dir;;
13138
as_dirs="'$as_qdir' $as_dirs"
13139
as_dir=`$as_dirname -- "$as_dir" ||
13140
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13141
X"$as_dir" : 'X\(//\)[^/]' \| \
13142
X"$as_dir" : 'X\(//\)$' \| \
13143
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13144
$as_echo X"$as_dir" |
13145
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149
/^X\(\/\/\)[^/].*/{
13162
test -d "$as_dir" && break
13164
test -z "$as_dirs" || eval "mkdir $as_dirs"
13165
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13169
if mkdir -p . 2>/dev/null; then
13170
as_mkdir_p='mkdir -p "$as_dir"'
13172
test -d ./-p && rmdir ./-p
13176
if test -x / >/dev/null 2>&1; then
13177
as_test_x='test -x'
13179
if ls -dL / >/dev/null 2>&1; then
13186
if test -d "$1"; then
13192
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13193
???[sx]*):;;*)false;;esac;fi
13197
as_executable_p=$as_test_x
13199
# Sed expression to map a string onto a valid CPP name.
13200
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13202
# Sed expression to map a string onto a valid variable name.
13203
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13207
## ----------------------------------- ##
13208
## Main body of $CONFIG_STATUS script. ##
13209
## ----------------------------------- ##
13211
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13213
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13214
# Save the log message, to keep $0 and so on meaningful, and to
13215
# report actual input values of CONFIG_FILES etc. instead of their
13216
# values after options handling.
13218
This file was extended by libjpeg $as_me 6.2.1, which was
13219
generated by GNU Autoconf 2.65. Invocation command line was
13221
CONFIG_FILES = $CONFIG_FILES
13222
CONFIG_HEADERS = $CONFIG_HEADERS
13223
CONFIG_LINKS = $CONFIG_LINKS
13224
CONFIG_COMMANDS = $CONFIG_COMMANDS
13227
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13232
case $ac_config_files in *"
13233
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13236
case $ac_config_headers in *"
13237
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13241
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13242
# Files that config.status was made for.
13243
config_files="$ac_config_files"
13244
config_headers="$ac_config_headers"
13245
config_commands="$ac_config_commands"
13249
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13251
\`$as_me' instantiates files and other configuration actions
13252
from templates according to the current configuration. Unless the files
13253
and actions are specified as TAGs, all are instantiated by default.
13255
Usage: $0 [OPTION]... [TAG]...
13257
-h, --help print this help, then exit
13258
-V, --version print version number and configuration settings, then exit
13259
--config print configuration, then exit
13260
-q, --quiet, --silent
13261
do not print progress messages
13262
-d, --debug don't remove temporary files
13263
--recheck update $as_me by reconfiguring in the same conditions
13264
--file=FILE[:TEMPLATE]
13265
instantiate the configuration file FILE
13266
--header=FILE[:TEMPLATE]
13267
instantiate the configuration header FILE
13269
Configuration files:
13272
Configuration headers:
13275
Configuration commands:
13278
Report bugs to the package provider."
13281
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13284
libjpeg config.status 6.2.1
13285
configured by $0, generated by GNU Autoconf 2.65,
13286
with options \\"\$ac_cs_config\\"
13288
Copyright (C) 2009 Free Software Foundation, Inc.
13289
This config.status script is free software; the Free Software Foundation
13290
gives unlimited permission to copy, distribute and modify it."
13297
test -n "\$AWK" || AWK=awk
13300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13301
# The default lists apply if the user does not specify any file.
13307
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13308
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13319
# Handling of the options.
1731
13320
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1732
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1733
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1734
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1735
echo "$CONFIG_STATUS generated by autoconf version 2.12"
1737
-help | --help | --hel | --he | --h)
1738
echo "\$ac_cs_usage"; exit 0 ;;
1739
*) echo "\$ac_cs_usage"; exit 1 ;;
1743
ac_given_srcdir=$srcdir
1744
ac_given_INSTALL="$INSTALL"
1746
trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1748
cat >> $CONFIG_STATUS <<EOF
1750
# Protect against being on the right side of a sed subst in config.status.
1751
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1752
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13322
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13323
$as_echo "$ac_cs_version"; exit ;;
13324
--config | --confi | --conf | --con | --co | --c )
13325
$as_echo "$ac_cs_config"; exit ;;
13326
--debug | --debu | --deb | --de | --d | -d )
13328
--file | --fil | --fi | --f )
13331
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13333
as_fn_append CONFIG_FILES " '$ac_optarg'"
13334
ac_need_defaults=false;;
13335
--header | --heade | --head | --hea )
13338
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13340
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13341
ac_need_defaults=false;;
13343
# Conflict between --help and --header
13344
as_fn_error "ambiguous option: \`$1'
13345
Try \`$0 --help' for more information.";;
13346
--help | --hel | -h )
13347
$as_echo "$ac_cs_usage"; exit ;;
13348
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13349
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13352
# This is an error.
13353
-*) as_fn_error "unrecognized option: \`$1'
13354
Try \`$0 --help' for more information." ;;
13356
*) as_fn_append ac_config_targets " $1"
13357
ac_need_defaults=false ;;
13363
ac_configure_extra_args=
13365
if $ac_cs_silent; then
13367
ac_configure_extra_args="$ac_configure_extra_args --silent"
13371
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13372
if \$ac_cs_recheck; then
13373
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13375
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13376
CONFIG_SHELL='$SHELL'
13377
export CONFIG_SHELL
13382
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13387
## Running $as_me. ##
13393
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13397
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13400
# The HP-UX ksh and POSIX shell print the target directory to stdout
13401
# if CDPATH is set.
13402
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13404
sed_quote_subst='$sed_quote_subst'
13405
double_quote_subst='$double_quote_subst'
13406
delay_variable_subst='$delay_variable_subst'
13407
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13408
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13409
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13410
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13411
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13412
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13413
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13414
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13415
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13416
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13417
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13418
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13419
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13420
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13421
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13422
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13423
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13424
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13425
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13426
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13427
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13428
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13429
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13430
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13431
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13432
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13433
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13434
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13435
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13436
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13437
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13438
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13439
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13440
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13441
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13442
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13443
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13444
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13445
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13447
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13448
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13449
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13450
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13451
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13452
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13453
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13454
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13455
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13456
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13457
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13458
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13459
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13460
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13461
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13462
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13463
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13464
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13465
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13466
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13467
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13468
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13469
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13470
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13471
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13472
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13473
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13474
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13475
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13476
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13477
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13478
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13479
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13480
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13482
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13483
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13484
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13485
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13486
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13487
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13488
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13489
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13490
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13491
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13492
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13493
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13494
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13495
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13496
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13497
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13498
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13499
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13501
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13502
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13503
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13504
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13505
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13506
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13507
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13508
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13509
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13510
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13511
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13512
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13513
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13514
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13515
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13516
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13518
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13519
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13520
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13521
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13522
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13523
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13524
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13525
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13526
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13529
LTCFLAGS='$LTCFLAGS'
13530
compiler='$compiler_DEFAULT'
13532
# Quote evaled strings.
13543
deplibs_check_method \
13552
lt_cv_sys_global_symbol_pipe \
13553
lt_cv_sys_global_symbol_to_cdecl \
13554
lt_cv_sys_global_symbol_to_c_name_address \
13555
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13558
lt_prog_compiler_no_builtin_flag \
13559
lt_prog_compiler_wl \
13560
lt_prog_compiler_pic \
13561
lt_prog_compiler_static \
13562
lt_cv_prog_compiler_c_o \
13570
export_dynamic_flag_spec \
13571
whole_archive_flag_spec \
13572
compiler_needs_object \
13574
allow_undefined_flag \
13575
no_undefined_flag \
13576
hardcode_libdir_flag_spec \
13577
hardcode_libdir_flag_spec_ld \
13578
hardcode_libdir_separator \
13583
variables_saved_for_relink \
13585
library_names_spec \
13590
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13591
*[\\\\\\\`\\"\\\$]*)
13592
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13595
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13600
# Double-quote double-evaled strings.
13601
for var in reload_cmds \
13602
old_postinstall_cmds \
13603
old_postuninstall_cmds \
13605
extract_expsyms_cmds \
13606
old_archive_from_new_cmds \
13607
old_archive_from_expsyms_cmds \
13609
archive_expsym_cmds \
13611
module_expsym_cmds \
13612
export_symbols_cmds \
13615
postuninstall_cmds \
13617
sys_lib_search_path_spec \
13618
sys_lib_dlsearch_path_spec; do
13619
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13620
*[\\\\\\\`\\"\\\$]*)
13621
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13624
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13629
# Fix-up fallback echo if it was mangled by the above quoting rules.
13631
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13635
ac_aux_dir='$ac_aux_dir'
13636
xsi_shell='$xsi_shell'
13637
lt_shell_append='$lt_shell_append'
13639
# See if we are running on zsh, and set the options which allow our
13640
# commands through without removal of \ escapes INIT.
13641
if test -n "\${ZSH_VERSION+set}" ; then
13642
setopt NO_GLOB_SUBST
13648
TIMESTAMP='$TIMESTAMP'
13657
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659
# Handling of arguments.
13660
for ac_config_target in $ac_config_targets
13662
case $ac_config_target in
13663
"jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
13664
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13665
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13666
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13668
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13673
# If the user did not use the arguments to specify the items to instantiate,
13674
# then the envvar interface is used. Set only those that are not.
13675
# We use the long form for the default assignment because of an extremely
13676
# bizarre bug on SunOS 4.1.3.
13677
if $ac_need_defaults; then
13678
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13679
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13680
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13683
# Have a temporary directory for convenience. Make it in the build tree
13684
# simply because there is no reason against having it here, and in addition,
13685
# creating and moving files from /tmp can sometimes cause problems.
13686
# Hook for its removal unless debugging.
13687
# Note that there is a small window in which the directory will not be cleaned:
13688
# after its creation but before its name has been assigned to `$tmp'.
13692
trap 'exit_status=$?
13693
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13695
trap 'as_fn_exit 1' 1 2 13 15
13697
# Create a (secure) tmp directory for tmp files.
13700
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13701
test -n "$tmp" && test -d "$tmp"
13704
tmp=./conf$$-$RANDOM
13705
(umask 077 && mkdir "$tmp")
13706
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13708
# Set up the scripts for CONFIG_FILES section.
13709
# No need to generate them if there are no CONFIG_FILES.
13710
# This happens for instance with `./config.status config.h'.
13711
if test -n "$CONFIG_FILES"; then
13714
ac_cr=`echo X | tr X '\015'`
13715
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13716
# But we know of no other shell where ac_cr would be empty at this
13717
# point, so we can use a bashism as a fallback.
13718
if test "x$ac_cr" = x; then
13719
eval ac_cr=\$\'\\r\'
13721
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13722
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13725
ac_cs_awk_cr=$ac_cr
13728
echo 'BEGIN {' >"$tmp/subs1.awk" &&
13733
echo "cat >conf$$subs.awk <<_ACEOF" &&
13734
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13736
} >conf$$subs.sh ||
13737
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13738
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13740
for ac_last_try in false false false false false :; do
13741
. ./conf$$subs.sh ||
13742
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13744
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13745
if test $ac_delim_n = $ac_delim_num; then
13747
elif $ac_last_try; then
13748
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13750
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13753
rm -f conf$$subs.sh
13755
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13756
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13760
s/^/S["/; s/!.*/"]=/
13770
s/\(.\{148\}\)..*/\1/
13772
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13777
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13784
s/\(.\{148\}\)..*/\1/
13786
s/["\\]/\\&/g; s/^/"/; s/$/"/
13790
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13795
' <conf$$subs.awk | sed '
13800
' >>$CONFIG_STATUS || ac_write_fail=1
13801
rm -f conf$$subs.awk
13802
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13805
for (key in S) S_is_set[key] = 1
13811
nfields = split(line, field, "@")
13813
len = length(field[1])
13814
for (i = 2; i < nfields; i++) {
13816
keylen = length(key)
13817
if (S_is_set[key]) {
13819
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13820
len += length(value) + length(field[++i])
13831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13832
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13833
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13836
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13837
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
13840
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13841
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13842
# trailing colons and then remove the whole line if VPATH becomes empty
13843
# (actually we leave an empty line to preserve line numbers).
13844
if test "x$srcdir" = x.; then
13845
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13846
s/:*\$(srcdir):*/:/
13847
s/:*\${srcdir}:*/:/
13849
s/^\([^=]*=[ ]*\):*/\1/
13855
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856
fi # test -n "$CONFIG_FILES"
13858
# Set up the scripts for CONFIG_HEADERS section.
13859
# No need to generate them if there are no CONFIG_HEADERS.
13860
# This happens for instance with `./config.status Makefile'.
13861
if test -n "$CONFIG_HEADERS"; then
13862
cat >"$tmp/defines.awk" <<\_ACAWK ||
13866
# Transform confdefs.h into an awk script `defines.awk', embedded as
13867
# here-document in config.status, that substitutes the proper values into
13868
# config.h.in to produce config.h.
13870
# Create a delimiter string that does not exist in confdefs.h, to ease
13871
# handling of long lines.
13873
for ac_last_try in false false :; do
13874
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13875
if test -z "$ac_t"; then
13877
elif $ac_last_try; then
13878
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13880
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13884
# For the awk script, D is an array of macro values keyed by name,
13885
# likewise P contains macro parameters if any. Preserve backslash
13886
# newline sequences.
13888
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13890
s/.\{148\}/&'"$ac_delim"'/g
13893
s/^[ ]*#[ ]*define[ ][ ]*/ /
13900
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13902
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13906
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13907
D["\1"]=" \3\\\\\\n"\\/p
13909
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13914
s/.\{148\}/&'"$ac_delim"'/g
13919
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13922
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13924
' <confdefs.h | sed '
13925
s/'"$ac_delim"'/"\\\
13926
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13928
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929
for (key in D) D_is_set[key] = 1
13932
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13934
split(line, arg, " ")
13935
if (arg[1] == "#") {
13939
defundef = substr(arg[1], 2)
13942
split(mac1, mac2, "(") #)
13944
prefix = substr(line, 1, index(line, defundef) - 1)
13945
if (D_is_set[macro]) {
13946
# Preserve the white space surrounding the "#".
13947
print prefix "define", macro P[macro] D[macro]
13950
# Replace #undef with comments. This is necessary, for example,
13951
# in the case of _POSIX_SOURCE, which is predefined and required
13952
# on some systems where configure will not decide to define it.
13953
if (defundef == "undef") {
13954
print "/*", prefix defundef, macro, "*/"
13962
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13963
as_fn_error "could not setup config headers machinery" "$LINENO" 5
13964
fi # test -n "$CONFIG_HEADERS"
13967
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13972
:[FHLC]) ac_mode=$ac_tag; continue;;
13974
case $ac_mode$ac_tag in
13976
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13977
:[FH]-) ac_tag=-:-;;
13978
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13995
-) ac_f="$tmp/stdin";;
13996
*) # Look for the file first in the build tree, then in the source tree
13997
# (if the path is not absolute). The absolute path cannot be DOS-style,
13998
# because $ac_f cannot contain `:'.
14002
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14004
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14006
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14007
as_fn_append ac_file_inputs " '$ac_f'"
14010
# Let's still pretend it is `configure' which instantiates (i.e., don't
14011
# use $as_me), people would be surprised to read:
14012
# /* config.h. Generated by config.status. */
14013
configure_input='Generated from '`
14014
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14016
if test x"$ac_file" != x-; then
14017
configure_input="$ac_file. $configure_input"
14018
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14019
$as_echo "$as_me: creating $ac_file" >&6;}
14021
# Neutralize special characters interpreted by sed in replacement strings.
14022
case $configure_input in #(
14023
*\&* | *\|* | *\\* )
14024
ac_sed_conf_input=`$as_echo "$configure_input" |
14025
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14026
*) ac_sed_conf_input=$configure_input;;
14030
*:-:* | *:-) cat >"$tmp/stdin" \
14031
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14036
ac_dir=`$as_dirname -- "$ac_file" ||
14037
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14038
X"$ac_file" : 'X\(//\)[^/]' \| \
14039
X"$ac_file" : 'X\(//\)$' \| \
14040
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14041
$as_echo X"$ac_file" |
14042
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14046
/^X\(\/\/\)[^/].*/{
14059
as_dir="$ac_dir"; as_fn_mkdir_p
14063
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14065
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14066
# A ".." for each directory in $ac_dir_suffix.
14067
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14068
case $ac_top_builddir_sub in
14069
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14070
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14073
ac_abs_top_builddir=$ac_pwd
14074
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14075
# for backward compatibility:
14076
ac_top_builddir=$ac_top_build_prefix
14079
.) # We are building in place.
14081
ac_top_srcdir=$ac_top_builddir_sub
14082
ac_abs_top_srcdir=$ac_pwd ;;
14083
[\\/]* | ?:[\\/]* ) # Absolute name.
14084
ac_srcdir=$srcdir$ac_dir_suffix;
14085
ac_top_srcdir=$srcdir
14086
ac_abs_top_srcdir=$srcdir ;;
14087
*) # Relative name.
14088
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14089
ac_top_srcdir=$ac_top_build_prefix$srcdir
14090
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14092
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14102
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14103
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14105
ac_MKDIR_P=$MKDIR_P
14107
[\\/$]* | ?:[\\/]* ) ;;
14108
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14112
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113
# If the template does not know about datarootdir, expand it.
14114
# FIXME: This hack should be removed a few years after 2.60.
14115
ac_datarootdir_hack=; ac_datarootdir_seen=
14126
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14127
*datarootdir*) ac_datarootdir_seen=yes;;
14128
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14129
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14130
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14132
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133
ac_datarootdir_hack='
14134
s&@datadir@&$datadir&g
14135
s&@docdir@&$docdir&g
14136
s&@infodir@&$infodir&g
14137
s&@localedir@&$localedir&g
14138
s&@mandir@&$mandir&g
14139
s&\\\${datarootdir}&$datarootdir&g' ;;
14143
# Neutralize VPATH when `$srcdir' = `.'.
14144
# Shell code in configure.ac might set extrasub.
14145
# FIXME: do we really want to maintain this feature?
14146
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14147
ac_sed_extra="$ac_vpsub
1755
s%@CFLAGS@%$CFLAGS%g
1756
s%@CPPFLAGS@%$CPPFLAGS%g
1757
s%@CXXFLAGS@%$CXXFLAGS%g
1759
s%@LDFLAGS@%$LDFLAGS%g
1761
s%@exec_prefix@%$exec_prefix%g
1762
s%@prefix@%$prefix%g
1763
s%@program_transform_name@%$program_transform_name%g
1764
s%@bindir@%$bindir%g
1765
s%@sbindir@%$sbindir%g
1766
s%@libexecdir@%$libexecdir%g
1767
s%@datadir@%$datadir%g
1768
s%@sysconfdir@%$sysconfdir%g
1769
s%@sharedstatedir@%$sharedstatedir%g
1770
s%@localstatedir@%$localstatedir%g
1771
s%@libdir@%$libdir%g
1772
s%@includedir@%$includedir%g
1773
s%@oldincludedir@%$oldincludedir%g
1774
s%@infodir@%$infodir%g
1775
s%@mandir@%$mandir%g
1778
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1779
s%@INSTALL_DATA@%$INSTALL_DATA%g
1780
s%@RANLIB@%$RANLIB%g
1781
s%@LIBTOOL@%$LIBTOOL%g
1785
s%@INSTALL_LIB@%$INSTALL_LIB%g
1786
s%@MEMORYMGR@%$MEMORYMGR%g
1787
s%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%g
1788
s%@A2K_DEPS@%$A2K_DEPS%g
1789
s%@COM_A2K@%$COM_A2K%g
1790
s%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%g
1791
s%@COM_LT@%$COM_LT%g
1792
s%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%g
1793
s%@INCLUDEFLAGS@%$INCLUDEFLAGS%g
1798
cat >> $CONFIG_STATUS <<\EOF
1800
# Split the substitutions into bite-sized pieces for seds with
1801
# small command number limits, like on Digital OSF/1 and HP-UX.
1802
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1803
ac_file=1 # Number of current file.
1804
ac_beg=1 # First line for current file.
1805
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1808
while $ac_more_lines; do
1809
if test $ac_beg -gt 1; then
1810
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1812
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1814
if test ! -s conftest.s$ac_file; then
1816
rm -f conftest.s$ac_file
1818
if test -z "$ac_sed_cmds"; then
1819
ac_sed_cmds="sed -f conftest.s$ac_file"
1821
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1823
ac_file=`expr $ac_file + 1`
1825
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1828
if test -z "$ac_sed_cmds"; then
1833
cat >> $CONFIG_STATUS <<EOF
1835
CONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}
1837
cat >> $CONFIG_STATUS <<\EOF
1838
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1839
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1841
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843
*) ac_file_in="${ac_file}.in" ;;
1846
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1848
# Remove last slash and all that follows it. Not all systems have dirname.
1849
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1851
# The file is in a subdirectory.
1852
test ! -d "$ac_dir" && mkdir "$ac_dir"
1853
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1854
# A "../" for each directory in $ac_dir_suffix.
1855
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1857
ac_dir_suffix= ac_dots=
1860
case "$ac_given_srcdir" in
1862
if test -z "$ac_dots"; then top_srcdir=.
1863
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1866
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1870
case "$ac_given_INSTALL" in
1871
[/$]*) INSTALL="$ac_given_INSTALL" ;;
1872
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1875
echo creating "$ac_file"
1877
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1879
*Makefile*) ac_comsub="1i\\
1880
# $configure_input" ;;
1884
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1886
s%@configure_input@%$configure_input%g
1887
s%@srcdir@%$srcdir%g
1888
s%@top_srcdir@%$top_srcdir%g
1889
s%@INSTALL@%$INSTALL%g
1890
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1894
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1895
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1897
# ac_d sets the value in "#define NAME VALUE" lines.
1898
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1899
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1902
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1903
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1904
ac_uB='\([ ]\)%\1#\2define\3'
1907
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1908
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1909
ac_eB='$%\1#\2define\3'
1913
if test "${CONFIG_HEADERS+set}" != set; then
1915
cat >> $CONFIG_STATUS <<EOF
1916
CONFIG_HEADERS="jconfig.h:jconfig.cfg"
1918
cat >> $CONFIG_STATUS <<\EOF
1920
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1921
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1923
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1924
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1925
*) ac_file_in="${ac_file}.in" ;;
1928
echo creating $ac_file
1930
rm -f conftest.frag conftest.in conftest.out
1931
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1932
cat $ac_file_inputs > conftest.in
1936
# Transform confdefs.h into a sed script conftest.vals that substitutes
1937
# the proper values into config.h.in to produce config.h. And first:
1938
# Protect against being on the right side of a sed subst in config.status.
1939
# Protect against being in an unquoted here document in config.status.
1941
cat > conftest.hdr <<\EOF
1944
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1948
sed -n -f conftest.hdr confdefs.h > conftest.vals
1951
# This sed command replaces #undef with comments. This is necessary, for
1952
# example, in the case of _POSIX_SOURCE, which is predefined and required
1953
# on some systems where configure will not decide to define it.
1954
cat >> conftest.vals <<\EOF
1957
# Break up conftest.vals because some shells have a limit on
1958
# the size of here documents, and old seds have small limits too.
1963
ac_lines=`grep -c . conftest.vals`
1964
# grep -c gives empty output for an empty file on some AIX systems.
1965
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966
# Write a limited-size here document to conftest.frag.
1967
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1970
sed -f conftest.frag conftest.in > conftest.out
1972
mv conftest.out conftest.in
1974
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1976
mv conftest.tail conftest.vals
1980
cat >> $CONFIG_STATUS <<\EOF
1981
rm -f conftest.frag conftest.h
1982
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1983
cat conftest.in >> conftest.h
1985
if cmp -s $ac_file conftest.h 2>/dev/null; then
1986
echo "$ac_file is unchanged"
1989
# Remove last slash and all that follows it. Not all systems have dirname.
1990
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992
# The file is in a subdirectory.
1993
test ! -d "$ac_dir" && mkdir "$ac_dir"
1996
mv conftest.h $ac_file
2001
cat >> $CONFIG_STATUS <<EOF
2004
cat >> $CONFIG_STATUS <<\EOF
2008
chmod +x $CONFIG_STATUS
2009
rm -fr confdefs* $ac_clean_files
2010
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14150
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14152
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14153
s|@configure_input@|$ac_sed_conf_input|;t t
14154
s&@top_builddir@&$ac_top_builddir_sub&;t t
14155
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14156
s&@srcdir@&$ac_srcdir&;t t
14157
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14158
s&@top_srcdir@&$ac_top_srcdir&;t t
14159
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14160
s&@builddir@&$ac_builddir&;t t
14161
s&@abs_builddir@&$ac_abs_builddir&;t t
14162
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14163
s&@INSTALL@&$ac_INSTALL&;t t
14164
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14165
$ac_datarootdir_hack
14167
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14168
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14170
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14171
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14172
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14173
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14174
which seems to be undefined. Please make sure it is defined." >&5
14175
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14176
which seems to be undefined. Please make sure it is defined." >&2;}
14180
-) cat "$tmp/out" && rm -f "$tmp/out";;
14181
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14183
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14189
if test x"$ac_file" != x-; then
14191
$as_echo "/* $configure_input */" \
14192
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14193
} >"$tmp/config.h" \
14194
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14195
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14196
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14197
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14200
mv "$tmp/config.h" "$ac_file" \
14201
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14204
$as_echo "/* $configure_input */" \
14205
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14206
|| as_fn_error "could not create -" "$LINENO" 5
14208
# Compute "$ac_file"'s index in $config_headers.
14211
for _am_header in $config_headers :; do
14212
case $_am_header in
14213
$_am_arg | $_am_arg:* )
14216
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
14219
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14220
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14221
X"$_am_arg" : 'X\(//\)[^/]' \| \
14222
X"$_am_arg" : 'X\(//\)$' \| \
14223
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14224
$as_echo X"$_am_arg" |
14225
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14229
/^X\(\/\/\)[^/].*/{
14241
s/.*/./; q'`/stamp-h$_am_stamp_count
14244
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14245
$as_echo "$as_me: executing $ac_file commands" >&6;}
14250
case $ac_file$ac_mode in
14251
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14252
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14253
# are listed without --file. Let's play safe and only enable the eval
14254
# if we detect the quoting.
14255
case $CONFIG_FILES in
14256
*\'*) eval set x "$CONFIG_FILES" ;;
14257
*) set x $CONFIG_FILES ;;
14262
# Strip MF so we end up with the name of the file.
14263
mf=`echo "$mf" | sed -e 's/:.*$//'`
14264
# Check whether this is an Automake generated Makefile or not.
14265
# We used to match only the files named `Makefile.in', but
14266
# some people rename them; so instead we look at the file content.
14267
# Grep'ing the first line is not enough: some people post-process
14268
# each Makefile.in and add a new line on top of each file to say so.
14269
# Grep'ing the whole file is not good either: AIX grep has a line
14270
# limit of 2048, but all sed's we know have understand at least 4000.
14271
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14272
dirpart=`$as_dirname -- "$mf" ||
14273
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14274
X"$mf" : 'X\(//\)[^/]' \| \
14275
X"$mf" : 'X\(//\)$' \| \
14276
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14278
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14282
/^X\(\/\/\)[^/].*/{
14298
# Extract the definition of DEPDIR, am__include, and am__quote
14299
# from the Makefile without running `make'.
14300
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14301
test -z "$DEPDIR" && continue
14302
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14303
test -z "am__include" && continue
14304
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14305
# When using ansi2knr, U may be empty or an underscore; expand it
14306
U=`sed -n 's/^U = //p' < "$mf"`
14307
# Find all dependency output files, they are included files with
14308
# $(DEPDIR) in their names. We invoke sed twice because it is the
14309
# simplest approach to changing $(DEPDIR) to its actual value in the
14311
for file in `sed -n "
14312
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14313
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14314
# Make sure the directory exists.
14315
test -f "$dirpart/$file" && continue
14316
fdir=`$as_dirname -- "$file" ||
14317
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14318
X"$file" : 'X\(//\)[^/]' \| \
14319
X"$file" : 'X\(//\)$' \| \
14320
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14321
$as_echo X"$file" |
14322
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14326
/^X\(\/\/\)[^/].*/{
14339
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14340
# echo "creating $dirpart/$file"
14341
echo '# dummy' > "$dirpart/$file"
14348
# See if we are running on zsh, and set the options which allow our
14349
# commands through without removal of \ escapes.
14350
if test -n "${ZSH_VERSION+set}" ; then
14351
setopt NO_GLOB_SUBST
14354
cfgfile="${ofile}T"
14355
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14358
cat <<_LT_EOF >> "$cfgfile"
14361
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14362
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14364
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14366
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14367
# 2006, 2007, 2008 Free Software Foundation, Inc.
14368
# Written by Gordon Matzigkeit, 1996
14370
# This file is part of GNU Libtool.
14372
# GNU Libtool is free software; you can redistribute it and/or
14373
# modify it under the terms of the GNU General Public License as
14374
# published by the Free Software Foundation; either version 2 of
14375
# the License, or (at your option) any later version.
14377
# As a special exception to the GNU General Public License,
14378
# if you distribute this file as part of a program or library that
14379
# is built using GNU Libtool, you may include this file under the
14380
# same distribution terms that you use for the rest of that program.
14382
# GNU Libtool is distributed in the hope that it will be useful,
14383
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14384
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14385
# GNU General Public License for more details.
14387
# You should have received a copy of the GNU General Public License
14388
# along with GNU Libtool; see the file COPYING. If not, a copy
14389
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14390
# obtained by writing to the Free Software Foundation, Inc.,
14391
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14394
# The names of the tagged configurations supported by this script.
14397
# ### BEGIN LIBTOOL CONFIG
14399
# Assembler program.
14402
# DLL creation program.
14405
# Object dumper program.
14408
# Which release of libtool.m4 was used?
14409
macro_version=$macro_version
14410
macro_revision=$macro_revision
14412
# Whether or not to build shared libraries.
14413
build_libtool_libs=$enable_shared
14415
# Whether or not to build static libraries.
14416
build_old_libs=$enable_static
14418
# What type of objects to build.
14421
# Whether or not to optimize for fast installation.
14422
fast_install=$enable_fast_install
14425
host_alias=$host_alias
14429
# The build system.
14430
build_alias=$build_alias
14434
# A sed program that does not truncate output.
14437
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14438
Xsed="\$SED -e 1s/^X//"
14440
# A grep program that handles long lines.
14446
# A literal string matcher.
14449
# A BSD- or MS-compatible name lister.
14452
# Whether we need soft or hard links.
14455
# What is the maximum length of a command?
14456
max_cmd_len=$max_cmd_len
14458
# Object file suffix (normally "o").
14461
# Executable file suffix (normally "").
14464
# whether the shell understands "unset".
14467
# turn spaces into newlines.
14470
# turn newlines into spaces.
14473
# How to create reloadable object files.
14474
reload_flag=$lt_reload_flag
14475
reload_cmds=$lt_reload_cmds
14477
# Method to check whether dependent libraries are shared objects.
14478
deplibs_check_method=$lt_deplibs_check_method
14480
# Command to use when deplibs_check_method == "file_magic".
14481
file_magic_cmd=$lt_file_magic_cmd
14485
AR_FLAGS=$lt_AR_FLAGS
14487
# A symbol stripping program.
14490
# Commands used to install an old-style archive.
14492
old_postinstall_cmds=$lt_old_postinstall_cmds
14493
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14498
# LTCC compiler flags.
14499
LTCFLAGS=$lt_CFLAGS
14501
# Take the output of nm and produce a listing of raw symbols and C names.
14502
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14504
# Transform the output of nm in a proper C declaration.
14505
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14507
# Transform the output of nm in a C name address pair.
14508
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14510
# Transform the output of nm in a C name address pair when lib prefix is needed.
14511
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14513
# The name of the directory that contains temporary libtool files.
14516
# Shell to use when invoking shell scripts.
14519
# An echo program that does not interpret backslashes.
14522
# Used to examine libraries when file_magic_cmd begins with "file".
14523
MAGIC_CMD=$MAGIC_CMD
14525
# Must we lock files when doing compilation?
14526
need_locks=$lt_need_locks
14528
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14529
DSYMUTIL=$lt_DSYMUTIL
14531
# Tool to change global to local symbols on Mac OS X.
14534
# Tool to manipulate fat objects and archives on Mac OS X.
14537
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14540
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14541
OTOOL64=$lt_OTOOL64
14543
# Old archive suffix (normally "a").
14546
# Shared library suffix (normally ".so").
14547
shrext_cmds=$lt_shrext_cmds
14549
# The commands to extract the exported symbol list from a shared archive.
14550
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14552
# Variables whose values should be saved in libtool wrapper scripts and
14553
# restored at link time.
14554
variables_saved_for_relink=$lt_variables_saved_for_relink
14556
# Do we need the "lib" prefix for modules?
14557
need_lib_prefix=$need_lib_prefix
14559
# Do we need a version for libraries?
14560
need_version=$need_version
14562
# Library versioning type.
14563
version_type=$version_type
14565
# Shared library runtime path variable.
14566
runpath_var=$runpath_var
14568
# Shared library path variable.
14569
shlibpath_var=$shlibpath_var
14571
# Is shlibpath searched before the hard-coded library search path?
14572
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14574
# Format of library name prefix.
14575
libname_spec=$lt_libname_spec
14577
# List of archive names. First name is the real one, the rest are links.
14578
# The last name is the one that the linker finds with -lNAME
14579
library_names_spec=$lt_library_names_spec
14581
# The coded name of the library, if different from the real name.
14582
soname_spec=$lt_soname_spec
14584
# Command to use after installation of a shared archive.
14585
postinstall_cmds=$lt_postinstall_cmds
14587
# Command to use after uninstallation of a shared archive.
14588
postuninstall_cmds=$lt_postuninstall_cmds
14590
# Commands used to finish a libtool library installation in a directory.
14591
finish_cmds=$lt_finish_cmds
14593
# As "finish_cmds", except a single script fragment to be evaled but
14595
finish_eval=$lt_finish_eval
14597
# Whether we should hardcode library paths into libraries.
14598
hardcode_into_libs=$hardcode_into_libs
14600
# Compile-time system search path for libraries.
14601
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14603
# Run-time system search path for libraries.
14604
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14606
# Whether dlopen is supported.
14607
dlopen_support=$enable_dlopen
14609
# Whether dlopen of programs is supported.
14610
dlopen_self=$enable_dlopen_self
14612
# Whether dlopen of statically linked programs is supported.
14613
dlopen_self_static=$enable_dlopen_self_static
14615
# Commands to strip libraries.
14616
old_striplib=$lt_old_striplib
14617
striplib=$lt_striplib
14620
# The linker used to build libraries.
14623
# Commands used to build an old-style archive.
14624
old_archive_cmds=$lt_old_archive_cmds
14626
# A language specific compiler.
14629
# Is the compiler the GNU compiler?
14632
# Compiler flag to turn off builtin functions.
14633
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14635
# How to pass a linker flag through the compiler.
14636
wl=$lt_lt_prog_compiler_wl
14638
# Additional compiler flags for building library objects.
14639
pic_flag=$lt_lt_prog_compiler_pic
14641
# Compiler flag to prevent dynamic linking.
14642
link_static_flag=$lt_lt_prog_compiler_static
14644
# Does compiler simultaneously support -c and -o options?
14645
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14647
# Whether or not to add -lc for building shared libraries.
14648
build_libtool_need_lc=$archive_cmds_need_lc
14650
# Whether or not to disallow shared libs when runtime libs are static.
14651
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14653
# Compiler flag to allow reflexive dlopens.
14654
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14656
# Compiler flag to generate shared objects directly from archives.
14657
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14659
# Whether the compiler copes with passing no objects directly.
14660
compiler_needs_object=$lt_compiler_needs_object
14662
# Create an old-style archive from a shared archive.
14663
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14665
# Create a temporary old-style archive to link instead of a shared archive.
14666
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14668
# Commands used to build a shared archive.
14669
archive_cmds=$lt_archive_cmds
14670
archive_expsym_cmds=$lt_archive_expsym_cmds
14672
# Commands used to build a loadable module if different from building
14673
# a shared archive.
14674
module_cmds=$lt_module_cmds
14675
module_expsym_cmds=$lt_module_expsym_cmds
14677
# Whether we are building with GNU ld or not.
14678
with_gnu_ld=$lt_with_gnu_ld
14680
# Flag that allows shared libraries with undefined symbols to be built.
14681
allow_undefined_flag=$lt_allow_undefined_flag
14683
# Flag that enforces no undefined symbols.
14684
no_undefined_flag=$lt_no_undefined_flag
14686
# Flag to hardcode \$libdir into a binary during linking.
14687
# This must work even if \$libdir does not exist
14688
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14690
# If ld is used when linking, flag to hardcode \$libdir into a binary
14691
# during linking. This must work even if \$libdir does not exist.
14692
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14694
# Whether we need a single "-rpath" flag with a separated argument.
14695
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14697
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14698
# DIR into the resulting binary.
14699
hardcode_direct=$hardcode_direct
14701
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14702
# DIR into the resulting binary and the resulting library dependency is
14703
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14704
# library is relocated.
14705
hardcode_direct_absolute=$hardcode_direct_absolute
14707
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14708
# into the resulting binary.
14709
hardcode_minus_L=$hardcode_minus_L
14711
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14712
# into the resulting binary.
14713
hardcode_shlibpath_var=$hardcode_shlibpath_var
14715
# Set to "yes" if building a shared library automatically hardcodes DIR
14716
# into the library and all subsequent libraries and executables linked
14718
hardcode_automatic=$hardcode_automatic
14720
# Set to yes if linker adds runtime paths of dependent libraries
14721
# to runtime path list.
14722
inherit_rpath=$inherit_rpath
14724
# Whether libtool must link a program against all its dependency libraries.
14725
link_all_deplibs=$link_all_deplibs
14727
# Fix the shell variable \$srcfile for the compiler.
14728
fix_srcfile_path=$lt_fix_srcfile_path
14730
# Set to "yes" if exported symbols are required.
14731
always_export_symbols=$always_export_symbols
14733
# The commands to list exported symbols.
14734
export_symbols_cmds=$lt_export_symbols_cmds
14736
# Symbols that should not be listed in the preloaded symbols.
14737
exclude_expsyms=$lt_exclude_expsyms
14739
# Symbols that must always be exported.
14740
include_expsyms=$lt_include_expsyms
14742
# Commands necessary for linking programs (against libraries) with templates.
14743
prelink_cmds=$lt_prelink_cmds
14745
# Specify filename containing input files.
14746
file_list_spec=$lt_file_list_spec
14748
# How to hardcode a shared library path into an executable.
14749
hardcode_action=$hardcode_action
14751
# ### END LIBTOOL CONFIG
14757
cat <<\_LT_EOF >> "$cfgfile"
14758
# AIX sometimes has problems with the GCC collect2 program. For some
14759
# reason, if we set the COLLECT_NAMES environment variable, the problems
14760
# vanish in a puff of smoke.
14761
if test "X${COLLECT_NAMES+set}" != Xset; then
14763
export COLLECT_NAMES
14770
ltmain="$ac_aux_dir/ltmain.sh"
14773
# We use sed instead of cat because bash on DJGPP gets confused if
14774
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14775
# text mode, it properly converts lines to CR/LF. This bash problem
14776
# is reportedly fixed, but why not run on old versions too?
14777
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14778
|| (rm -f "$cfgfile"; exit 1)
14782
cat << \_LT_EOF >> "$cfgfile"
14784
# func_dirname file append nondir_replacement
14785
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14786
# otherwise set result to NONDIR_REPLACEMENT.
14790
*/*) func_dirname_result="${1%/*}${2}" ;;
14791
* ) func_dirname_result="${3}" ;;
14795
# func_basename file
14798
func_basename_result="${1##*/}"
14801
# func_dirname_and_basename file append nondir_replacement
14802
# perform func_basename and func_dirname in a single function
14804
# dirname: Compute the dirname of FILE. If nonempty,
14805
# add APPEND to the result, otherwise set result
14806
# to NONDIR_REPLACEMENT.
14807
# value returned in "$func_dirname_result"
14808
# basename: Compute filename of FILE.
14809
# value retuned in "$func_basename_result"
14810
# Implementation must be kept synchronized with func_dirname
14811
# and func_basename. For efficiency, we do not delegate to
14812
# those functions but instead duplicate the functionality here.
14813
func_dirname_and_basename ()
14816
*/*) func_dirname_result="${1%/*}${2}" ;;
14817
* ) func_dirname_result="${3}" ;;
14819
func_basename_result="${1##*/}"
14822
# func_stripname prefix suffix name
14823
# strip PREFIX and SUFFIX off of NAME.
14824
# PREFIX and SUFFIX must not contain globbing or regex special
14825
# characters, hashes, percent signs, but SUFFIX may contain a leading
14826
# dot (in which case that matches only a dot).
14829
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14830
# positional parameters, so assign one to ordinary parameter first.
14831
func_stripname_result=${3}
14832
func_stripname_result=${func_stripname_result#"${1}"}
14833
func_stripname_result=${func_stripname_result%"${2}"}
14839
func_opt_split_opt=${1%%=*}
14840
func_opt_split_arg=${1#*=}
14847
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14848
*) func_lo2o_result=${1} ;;
14852
# func_xform libobj-or-source
14855
func_xform_result=${1%.*}.lo
14858
# func_arith arithmetic-term...
14861
func_arith_result=$(( $* ))
14865
# STRING may not start with a hyphen.
14868
func_len_result=${#1}
14873
*) # Bourne compatible functions.
14874
cat << \_LT_EOF >> "$cfgfile"
14876
# func_dirname file append nondir_replacement
14877
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14878
# otherwise set result to NONDIR_REPLACEMENT.
14881
# Extract subdirectory from the argument.
14882
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14883
if test "X$func_dirname_result" = "X${1}"; then
14884
func_dirname_result="${3}"
14886
func_dirname_result="$func_dirname_result${2}"
14890
# func_basename file
14893
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14897
# func_stripname prefix suffix name
14898
# strip PREFIX and SUFFIX off of NAME.
14899
# PREFIX and SUFFIX must not contain globbing or regex special
14900
# characters, hashes, percent signs, but SUFFIX may contain a leading
14901
# dot (in which case that matches only a dot).
14902
# func_strip_suffix prefix name
14906
.*) func_stripname_result=`$ECHO "X${3}" \
14907
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14908
*) func_stripname_result=`$ECHO "X${3}" \
14909
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14914
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14915
my_sed_long_arg='1s/^-[^=]*=//'
14920
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14921
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14927
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14930
# func_xform libobj-or-source
14933
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14936
# func_arith arithmetic-term...
14939
func_arith_result=`expr "$@"`
14943
# STRING may not start with a hyphen.
14946
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14952
case $lt_shell_append in
14954
cat << \_LT_EOF >> "$cfgfile"
14956
# func_append var value
14957
# Append VALUE to the end of shell variable VAR.
14965
cat << \_LT_EOF >> "$cfgfile"
14967
# func_append var value
14968
# Append VALUE to the end of shell variable VAR.
14979
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14980
|| (rm -f "$cfgfile"; exit 1)
14982
mv -f "$cfgfile" "$ofile" ||
14983
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14994
ac_clean_files=$ac_clean_files_save
14996
test $ac_write_fail = 0 ||
14997
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000
# configure is writing to config.log, and then calls config.status.
15001
# config.status does its own redirection, appending to config.log.
15002
# Unfortunately, on DOS this fails, as config.log is still kept open
15003
# by configure, so config.status won't be able to write to it; its
15004
# output is simply discarded. So we exec the FD to /dev/null,
15005
# effectively closing config.log, so it can be properly (re)opened and
15006
# appended to by config.status. When coming back to configure, we
15007
# need to make the FD available again.
15008
if test "$no_create" != yes; then
15010
ac_config_status_args=
15011
test "$silent" = yes &&
15012
ac_config_status_args="$ac_config_status_args --quiet"
15014
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15016
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15017
# would make configure fail if this is the last instruction.
15018
$ac_cs_success || as_fn_exit $?
15020
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15022
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}