Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 347931 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +11 lines)
Line  Link Here
0
-- a/bfd/Makefile.in
0
++ b/bfd/Makefile.in
Lines 336-342 libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \ Link Here
336
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
336
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
337
AM_CFLAGS = $(WARN_CFLAGS)
337
AM_CFLAGS = $(WARN_CFLAGS)
338
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
338
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
339
@PLUGINS_TRUE@LIBDL = -ldl
340
339
341
# bfd.h goes here, for now
340
# bfd.h goes here, for now
342
BFD_H = bfd.h
341
BFD_H = bfd.h
Lines 1054-1060 OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@ Link Here
1054
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
1053
libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
1055
EXTRA_libbfd_la_SOURCES = $(CFILES)
1054
EXTRA_libbfd_la_SOURCES = $(CFILES)
1056
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
1055
libbfd_la_DEPENDENCIES = $(OFILES) ofiles
1057
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL)
1056
libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@
1058
1057
1059
# libtool will build .libs/libbfd.a.  We create libbfd.a in the build
1058
# libtool will build .libs/libbfd.a.  We create libbfd.a in the build
1060
# directory so that we don't have to convert all the programs that use
1059
# directory so that we don't have to convert all the programs that use
1061
-- a/bfd/configure.in
1060
++ b/bfd/configure.in
Lines 23-31 AC_PROG_CC Link Here
23
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
23
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
24
24
25
if test "$plugins" = "yes"; then
25
if test "$plugins" = "yes"; then
26
  if test "$enable_dlopen" != "yes" ; then
26
  has_dlopen=yes
27
  # Check for dlopen support
28
  AC_CHECK_HEADER([dlfcn.h],[],[has_dlopen=no],[AC_INCLUDES_DEFAULT])
29
  AC_SEARCH_LIBS([dlopen],[dl],[],[has_dlopen=no],[])
30
  AC_CHECK_FUNCS([dlsym dlclose],[],[has_dlopen=no])
31
32
  if test "$has_dlopen" != "yes" ; then
27
    AC_MSG_ERROR([
33
    AC_MSG_ERROR([
28
      Building BFD with plugin support requires a host that supports -ldl.])
34
      Building BFD with plugin support requires a host that supports dlopen.])
29
  fi
35
  fi
30
  enable_targets="$enable_targets plugin"
36
  enable_targets="$enable_targets plugin"
31
fi
37
fi
(-)a/gold/Makefile.am (-6 / +2 lines)
Lines 19-28 AM_CPPFLAGS = \ Link Here
19
19
20
LIBIBERTY = ../libiberty/libiberty.a
20
LIBIBERTY = ../libiberty/libiberty.a
21
21
22
if PLUGINS
23
LIBDL = -ldl
24
endif
25
26
if THREADS
22
if THREADS
27
THREADSLIB = -lpthread
23
THREADSLIB = -lpthread
28
endif
24
endif
Lines 152-158 libgold_a_LIBADD = $(LIBOBJS) Link Here
152
sources_var = main.cc
148
sources_var = main.cc
153
deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP)
149
deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP)
154
ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
150
ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
155
	 $(THREADSLIB) $(LIBDL)
151
	 $(THREADSLIB)
156
152
157
ld_new_SOURCES = $(sources_var)
153
ld_new_SOURCES = $(sources_var)
158
ld_new_DEPENDENCIES = $(deps_var)
154
ld_new_DEPENDENCIES = $(deps_var)
Lines 160-166 incremental_dump_SOURCES = incremental-dump.cc Link Here
160
incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \
160
incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \
161
	$(LIBINTL_DEP)
161
	$(LIBINTL_DEP)
162
incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
162
incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
163
	 $(THREADSLIB) $(LIBDL)
163
	 $(THREADSLIB)
164
164
165
# Use an explicit dependency for the bison generated header file.
165
# Use an explicit dependency for the bison generated header file.
166
expression.$(OBJEXT): yyscript.h
166
expression.$(OBJEXT): yyscript.h
(-)a/gold/configure.ac (-6 / +8 lines)
Lines 97-102 AC_ARG_ENABLE([plugins], Link Here
97
if test "$plugins" = "yes"; then
97
if test "$plugins" = "yes"; then
98
  AC_DEFINE(ENABLE_PLUGINS, 1,
98
  AC_DEFINE(ENABLE_PLUGINS, 1,
99
	    [Define to enable linker plugins])
99
	    [Define to enable linker plugins])
100
  # Check for dlopen support
101
  AC_CHECK_HEADER([dlfcn.h],[],[has_dlopen=no],[AC_INCLUDES_DEFAULT])
102
  AC_SEARCH_LIBS([dlopen],[dl],[],[has_dlopen=no],[])
103
  AC_CHECK_FUNCS([dlopen dlsym dlclose],[],[has_dlopen=no])
100
fi
104
fi
101
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
105
AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
102
106
103
-- a/gold/Makefile.in
107
++ b/gold/Makefile.in
Lines 100-107 am__objects_4 = main.$(OBJEXT) Link Here
100
am_ld_new_OBJECTS = $(am__objects_4)
100
am_ld_new_OBJECTS = $(am__objects_4)
101
ld_new_OBJECTS = $(am_ld_new_OBJECTS)
101
ld_new_OBJECTS = $(am_ld_new_OBJECTS)
102
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) libgold.a $(LIBIBERTY) \
102
am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) libgold.a $(LIBIBERTY) \
103
	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
103
	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
104
	$(am__DEPENDENCIES_1)
105
@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ld1_OBJECTS = $(am__objects_4)
104
@GCC_TRUE@@NATIVE_LINKER_TRUE@am_ld1_OBJECTS = $(am__objects_4)
106
ld1_OBJECTS = $(am_ld1_OBJECTS)
105
ld1_OBJECTS = $(am_ld1_OBJECTS)
107
ld1_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(ld1_LDFLAGS) \
106
ld1_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(ld1_LDFLAGS) \
Lines 368-374 AM_CPPFLAGS = \ Link Here
368
	@INCINTL@
367
	@INCINTL@
369
368
370
LIBIBERTY = ../libiberty/libiberty.a
369
LIBIBERTY = ../libiberty/libiberty.a
371
@PLUGINS_TRUE@LIBDL = -ldl
372
@THREADS_TRUE@THREADSLIB = -lpthread
370
@THREADS_TRUE@THREADSLIB = -lpthread
373
AM_YFLAGS = -d
371
AM_YFLAGS = -d
374
372
Lines 489-495 libgold_a_LIBADD = $(LIBOBJS) Link Here
489
sources_var = main.cc
487
sources_var = main.cc
490
deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP)
488
deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP)
491
ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
489
ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
492
	 $(THREADSLIB) $(LIBDL)
490
	 $(THREADSLIB)
493
491
494
ld_new_SOURCES = $(sources_var)
492
ld_new_SOURCES = $(sources_var)
495
ld_new_DEPENDENCIES = $(deps_var)
493
ld_new_DEPENDENCIES = $(deps_var)
Lines 498-504 incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \ Link Here
498
	$(LIBINTL_DEP)
498
	$(LIBINTL_DEP)
499
499
500
incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
500
incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
501
	 $(THREADSLIB) $(LIBDL)
501
	 $(THREADSLIB)
502
502
503
POTFILES = $(CCFILES) $(HFILES) $(TARGETSOURCES)
503
POTFILES = $(CCFILES) $(HFILES) $(TARGETSOURCES)
504
@GCC_TRUE@@NATIVE_LINKER_TRUE@ld1_SOURCES = $(sources_var)
504
@GCC_TRUE@@NATIVE_LINKER_TRUE@ld1_SOURCES = $(sources_var)
(-)a/gold/config.in (+9 lines)
Lines 66-71 Link Here
66
   don't. */
66
   don't. */
67
#undef HAVE_DECL_VSNPRINTF
67
#undef HAVE_DECL_VSNPRINTF
68
68
69
/* Define to 1 if you have the `dlclose' function. */
70
#undef HAVE_DLCLOSE
71
72
/* Define to 1 if you have the `dlopen' function. */
73
#undef HAVE_DLOPEN
74
75
/* Define to 1 if you have the `dlsym' function. */
76
#undef HAVE_DLSYM
77
69
/* Define to 1 if you have the <ext/hash_map> header file. */
78
/* Define to 1 if you have the <ext/hash_map> header file. */
70
#undef HAVE_EXT_HASH_MAP
79
#undef HAVE_EXT_HASH_MAP
71
80
(-)a/gold/configure (-1399 / +2238 lines)
Lines 644-652 INCINTL Link Here
644
LIBINTL_DEP
644
LIBINTL_DEP
645
LIBINTL
645
LIBINTL
646
USE_NLS
646
USE_NLS
647
EGREP
648
GREP
649
CPP
650
LN_S
647
LN_S
651
RANLIB
648
RANLIB
652
YFLAGS
649
YFLAGS
Lines 657-662 CXXDEPMODE Link Here
657
ac_ct_CXX
654
ac_ct_CXX
658
CXXFLAGS
655
CXXFLAGS
659
CXX
656
CXX
657
NM
658
TARGETOBJS
659
DEFAULT_TARGET_X86_64_FALSE
660
DEFAULT_TARGET_X86_64_TRUE
661
DEFAULT_TARGET_SPARC_FALSE
662
DEFAULT_TARGET_SPARC_TRUE
663
DEFAULT_TARGET_POWERPC_FALSE
664
DEFAULT_TARGET_POWERPC_TRUE
665
DEFAULT_TARGET_I386_FALSE
666
DEFAULT_TARGET_I386_TRUE
667
DEFAULT_TARGET_ARM_FALSE
668
DEFAULT_TARGET_ARM_TRUE
669
PLUGINS_FALSE
670
PLUGINS_TRUE
671
EGREP
672
GREP
673
CPP
660
am__fastdepCC_FALSE
674
am__fastdepCC_FALSE
661
am__fastdepCC_TRUE
675
am__fastdepCC_TRUE
662
CCDEPMODE
676
CCDEPMODE
Lines 673-692 CPPFLAGS Link Here
673
LDFLAGS
687
LDFLAGS
674
CFLAGS
688
CFLAGS
675
CC
689
CC
676
NM
677
TARGETOBJS
678
DEFAULT_TARGET_X86_64_FALSE
679
DEFAULT_TARGET_X86_64_TRUE
680
DEFAULT_TARGET_SPARC_FALSE
681
DEFAULT_TARGET_SPARC_TRUE
682
DEFAULT_TARGET_POWERPC_FALSE
683
DEFAULT_TARGET_POWERPC_TRUE
684
DEFAULT_TARGET_I386_FALSE
685
DEFAULT_TARGET_I386_TRUE
686
DEFAULT_TARGET_ARM_FALSE
687
DEFAULT_TARGET_ARM_TRUE
688
PLUGINS_FALSE
689
PLUGINS_TRUE
690
THREADS_FALSE
690
THREADS_FALSE
691
THREADS_TRUE
691
THREADS_TRUE
692
installed_linker
692
installed_linker
Lines 772-779 enable_ld Link Here
772
enable_gold
772
enable_gold
773
enable_threads
773
enable_threads
774
enable_plugins
774
enable_plugins
775
enable_targets
776
enable_dependency_tracking
775
enable_dependency_tracking
776
enable_targets
777
enable_nls
777
enable_nls
778
enable_werror
778
enable_werror
779
enable_build_warnings
779
enable_build_warnings
Lines 787-798 CFLAGS Link Here
787
LDFLAGS
787
LDFLAGS
788
LIBS
788
LIBS
789
CPPFLAGS
789
CPPFLAGS
790
CPP
790
CXX
791
CXX
791
CXXFLAGS
792
CXXFLAGS
792
CCC
793
CCC
793
YACC
794
YACC
794
YFLAGS
795
YFLAGS
795
CPP
796
CXXCPP'
796
CXXCPP'
797
797
798
798
Lines 1418-1426 Optional Features: Link Here
1418
  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1418
  --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1419
  --enable-threads        multi-threaded linking
1419
  --enable-threads        multi-threaded linking
1420
  --enable-plugins        linker plugins
1420
  --enable-plugins        linker plugins
1421
  --enable-targets        alternative target configurations
1422
  --disable-dependency-tracking  speeds up one-time build
1421
  --disable-dependency-tracking  speeds up one-time build
1423
  --enable-dependency-tracking   do not reject slow dependency extractors
1422
  --enable-dependency-tracking   do not reject slow dependency extractors
1423
  --enable-targets        alternative target configurations
1424
  --disable-nls           do not use Native Language Support
1424
  --disable-nls           do not use Native Language Support
1425
  --enable-werror         treat compile warnings as errors
1425
  --enable-werror         treat compile warnings as errors
1426
  --enable-build-warnings enable build-time compiler warnings
1426
  --enable-build-warnings enable build-time compiler warnings
Lines 1440-1445 Some influential environment variables: Link Here
1440
  LIBS        libraries to pass to the linker, e.g. -l<library>
1440
  LIBS        libraries to pass to the linker, e.g. -l<library>
1441
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442
              you have headers in a nonstandard directory <include dir>
1442
              you have headers in a nonstandard directory <include dir>
1443
  CPP         C preprocessor
1443
  CXX         C++ compiler command
1444
  CXX         C++ compiler command
1444
  CXXFLAGS    C++ compiler flags
1445
  CXXFLAGS    C++ compiler flags
1445
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1446
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
Lines 1447-1453 Some influential environment variables: Link Here
1447
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1448
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1448
              This script will default YFLAGS to the empty string to avoid a
1449
              This script will default YFLAGS to the empty string to avoid a
1449
              default value of `-d' given by some make applications.
1450
              default value of `-d' given by some make applications.
1450
  CPP         C preprocessor
1451
  CXXCPP      C++ preprocessor
1451
  CXXCPP      C++ preprocessor
1452
1452
1453
Use these variables to override the choices made by `configure' or to help
1453
Use these variables to override the choices made by `configure' or to help
Lines 1568-1610 fi Link Here
1568
1568
1569
} # ac_fn_c_try_compile
1569
} # ac_fn_c_try_compile
1570
1570
1571
# ac_fn_cxx_try_compile LINENO
1571
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1572
# ----------------------------
1572
# -------------------------------------------------------
1573
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573
# Tests whether HEADER exists and can be compiled using the include files in
1574
ac_fn_cxx_try_compile ()
1574
# INCLUDES, setting the cache variable VAR accordingly.
1575
ac_fn_c_check_header_compile ()
1575
{
1576
{
1576
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577
  rm -f conftest.$ac_objext
1578
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578
  if { { ac_try="$ac_compile"
1579
$as_echo_n "checking for $2... " >&6; }
1579
case "(($ac_try" in
1580
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581
  $as_echo_n "(cached) " >&6
1581
  *) ac_try_echo=$ac_try;;
1582
esac
1583
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584
$as_echo "$ac_try_echo"; } >&5
1585
  (eval "$ac_compile") 2>conftest.err
1586
  ac_status=$?
1587
  if test -s conftest.err; then
1588
    grep -v '^ *+' conftest.err >conftest.er1
1589
    cat conftest.er1 >&5
1590
    mv -f conftest.er1 conftest.err
1591
  fi
1592
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593
  test $ac_status = 0; } && {
1594
	 test -z "$ac_cxx_werror_flag" ||
1595
	 test ! -s conftest.err
1596
       } && test -s conftest.$ac_objext; then :
1597
  ac_retval=0
1598
else
1582
else
1599
  $as_echo "$as_me: failed program was:" >&5
1583
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600
sed 's/^/| /' conftest.$ac_ext >&5
1584
/* end confdefs.h.  */
1601
1585
$4
1602
	ac_retval=1
1586
#include <$2>
1587
_ACEOF
1588
if ac_fn_c_try_compile "$LINENO"; then :
1589
  eval "$3=yes"
1590
else
1591
  eval "$3=no"
1592
fi
1593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603
fi
1594
fi
1595
eval ac_res=\$$3
1596
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597
$as_echo "$ac_res" >&6; }
1604
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605
  return $ac_retval
1606
1599
1607
} # ac_fn_cxx_try_compile
1600
} # ac_fn_c_check_header_compile
1608
1601
1609
# ac_fn_c_try_cpp LINENO
1602
# ac_fn_c_try_cpp LINENO
1610
# ----------------------
1603
# ----------------------
Lines 1643-1735 fi Link Here
1643
1636
1644
} # ac_fn_c_try_cpp
1637
} # ac_fn_c_try_cpp
1645
1638
1646
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647
# -------------------------------------------------------
1648
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649
# the include files in INCLUDES and setting the cache variable VAR
1650
# accordingly.
1651
ac_fn_c_check_header_mongrel ()
1652
{
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656
$as_echo_n "checking for $2... " >&6; }
1657
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658
  $as_echo_n "(cached) " >&6
1659
fi
1660
eval ac_res=\$$3
1661
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662
$as_echo "$ac_res" >&6; }
1663
else
1664
  # Is the header compilable?
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666
$as_echo_n "checking $2 usability... " >&6; }
1667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668
/* end confdefs.h.  */
1669
$4
1670
#include <$2>
1671
_ACEOF
1672
if ac_fn_c_try_compile "$LINENO"; then :
1673
  ac_header_compiler=yes
1674
else
1675
  ac_header_compiler=no
1676
fi
1677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679
$as_echo "$ac_header_compiler" >&6; }
1680
1681
# Is the header present?
1682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683
$as_echo_n "checking $2 presence... " >&6; }
1684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685
/* end confdefs.h.  */
1686
#include <$2>
1687
_ACEOF
1688
if ac_fn_c_try_cpp "$LINENO"; then :
1689
  ac_header_preproc=yes
1690
else
1691
  ac_header_preproc=no
1692
fi
1693
rm -f conftest.err conftest.$ac_ext
1694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695
$as_echo "$ac_header_preproc" >&6; }
1696
1697
# So?  What about this header?
1698
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699
  yes:no: )
1700
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704
    ;;
1705
  no:yes:* )
1706
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1709
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1710
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1713
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1714
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716
    ;;
1717
esac
1718
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719
$as_echo_n "checking for $2... " >&6; }
1720
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721
  $as_echo_n "(cached) " >&6
1722
else
1723
  eval "$3=\$ac_header_compiler"
1724
fi
1725
eval ac_res=\$$3
1726
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727
$as_echo "$ac_res" >&6; }
1728
fi
1729
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
1731
} # ac_fn_c_check_header_mongrel
1732
1733
# ac_fn_c_try_run LINENO
1639
# ac_fn_c_try_run LINENO
1734
# ----------------------
1640
# ----------------------
1735
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Lines 1772-1808 fi Link Here
1772
1678
1773
} # ac_fn_c_try_run
1679
} # ac_fn_c_try_run
1774
1680
1775
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776
# -------------------------------------------------------
1777
# Tests whether HEADER exists and can be compiled using the include files in
1778
# INCLUDES, setting the cache variable VAR accordingly.
1779
ac_fn_c_check_header_compile ()
1780
{
1781
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783
$as_echo_n "checking for $2... " >&6; }
1784
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785
  $as_echo_n "(cached) " >&6
1786
else
1787
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788
/* end confdefs.h.  */
1789
$4
1790
#include <$2>
1791
_ACEOF
1792
if ac_fn_c_try_compile "$LINENO"; then :
1793
  eval "$3=yes"
1794
else
1795
  eval "$3=no"
1796
fi
1797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798
fi
1799
eval ac_res=\$$3
1800
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801
$as_echo "$ac_res" >&6; }
1802
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804
} # ac_fn_c_check_header_compile
1805
1806
# ac_fn_c_try_link LINENO
1681
# ac_fn_c_try_link LINENO
1807
# -----------------------
1682
# -----------------------
1808
# Try to link conftest.$ac_ext, and return whether this succeeded.
1683
# Try to link conftest.$ac_ext, and return whether this succeeded.
Lines 1916-1940 $as_echo "$ac_res" >&6; } Link Here
1916
1791
1917
} # ac_fn_c_check_func
1792
} # ac_fn_c_check_func
1918
1793
1919
# ac_fn_c_check_decl LINENO SYMBOL VAR
1794
# ac_fn_cxx_try_compile LINENO
1920
# ------------------------------------
1795
# ----------------------------
1921
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1796
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1922
ac_fn_c_check_decl ()
1797
ac_fn_cxx_try_compile ()
1923
{
1798
{
1924
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1800
  rm -f conftest.$ac_objext
1926
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1801
  if { { ac_try="$ac_compile"
1927
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1802
case "(($ac_try" in
1928
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804
  *) ac_try_echo=$ac_try;;
1930
  $as_echo_n "(cached) " >&6
1805
esac
1806
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807
$as_echo "$ac_try_echo"; } >&5
1808
  (eval "$ac_compile") 2>conftest.err
1809
  ac_status=$?
1810
  if test -s conftest.err; then
1811
    grep -v '^ *+' conftest.err >conftest.er1
1812
    cat conftest.er1 >&5
1813
    mv -f conftest.er1 conftest.err
1814
  fi
1815
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816
  test $ac_status = 0; } && {
1817
	 test -z "$ac_cxx_werror_flag" ||
1818
	 test ! -s conftest.err
1819
       } && test -s conftest.$ac_objext; then :
1820
  ac_retval=0
1931
else
1821
else
1932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822
  $as_echo "$as_me: failed program was:" >&5
1933
/* end confdefs.h.  */
1823
sed 's/^/| /' conftest.$ac_ext >&5
1934
$4
1824
1935
int
1825
	ac_retval=1
1936
main ()
1826
fi
1937
{
1827
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828
  return $ac_retval
1829
1830
} # ac_fn_cxx_try_compile
1831
1832
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833
# -------------------------------------------------------
1834
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835
# the include files in INCLUDES and setting the cache variable VAR
1836
# accordingly.
1837
ac_fn_c_check_header_mongrel ()
1838
{
1839
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842
$as_echo_n "checking for $2... " >&6; }
1843
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844
  $as_echo_n "(cached) " >&6
1845
fi
1846
eval ac_res=\$$3
1847
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848
$as_echo "$ac_res" >&6; }
1849
else
1850
  # Is the header compilable?
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852
$as_echo_n "checking $2 usability... " >&6; }
1853
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854
/* end confdefs.h.  */
1855
$4
1856
#include <$2>
1857
_ACEOF
1858
if ac_fn_c_try_compile "$LINENO"; then :
1859
  ac_header_compiler=yes
1860
else
1861
  ac_header_compiler=no
1862
fi
1863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865
$as_echo "$ac_header_compiler" >&6; }
1866
1867
# Is the header present?
1868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869
$as_echo_n "checking $2 presence... " >&6; }
1870
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871
/* end confdefs.h.  */
1872
#include <$2>
1873
_ACEOF
1874
if ac_fn_c_try_cpp "$LINENO"; then :
1875
  ac_header_preproc=yes
1876
else
1877
  ac_header_preproc=no
1878
fi
1879
rm -f conftest.err conftest.$ac_ext
1880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881
$as_echo "$ac_header_preproc" >&6; }
1882
1883
# So?  What about this header?
1884
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1885
  yes:no: )
1886
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890
    ;;
1891
  no:yes:* )
1892
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1895
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1896
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1899
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1900
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902
    ;;
1903
esac
1904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905
$as_echo_n "checking for $2... " >&6; }
1906
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907
  $as_echo_n "(cached) " >&6
1908
else
1909
  eval "$3=\$ac_header_compiler"
1910
fi
1911
eval ac_res=\$$3
1912
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913
$as_echo "$ac_res" >&6; }
1914
fi
1915
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917
} # ac_fn_c_check_header_mongrel
1918
1919
# ac_fn_c_check_decl LINENO SYMBOL VAR
1920
# ------------------------------------
1921
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1922
ac_fn_c_check_decl ()
1923
{
1924
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925
  as_decl_name=`echo $2|sed 's/ *(.*//'`
1926
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1927
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1928
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1929
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930
  $as_echo_n "(cached) " >&6
1931
else
1932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933
/* end confdefs.h.  */
1934
$4
1935
int
1936
main ()
1937
{
1938
#ifndef $as_decl_name
1938
#ifndef $as_decl_name
1939
#ifdef __cplusplus
1939
#ifdef __cplusplus
1940
  (void) $as_decl_use;
1940
  (void) $as_decl_use;
Lines 3327-3584 if test "$plugins" = "yes"; then Link Here
3327
3327
3328
$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
3328
$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
3329
3329
3330
  # Check for dlopen support
3331
  DEPDIR="${am__leading_dot}deps"
3332
3333
ac_config_commands="$ac_config_commands depfiles"
3334
3335
3336
am_make=${MAKE-make}
3337
cat > confinc << 'END'
3338
am__doit:
3339
	@echo this is the am__doit target
3340
.PHONY: am__doit
3341
END
3342
# If we don't find an include directive, just comment out the code.
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3344
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3345
am__include="#"
3346
am__quote=
3347
_am_result=none
3348
# First try GNU make style include.
3349
echo "include confinc" > confmf
3350
# Ignore all kinds of additional output from `make'.
3351
case `$am_make -s -f confmf 2> /dev/null` in #(
3352
*the\ am__doit\ target*)
3353
  am__include=include
3354
  am__quote=
3355
  _am_result=GNU
3356
  ;;
3357
esac
3358
# Now try BSD make style include.
3359
if test "$am__include" = "#"; then
3360
   echo '.include "confinc"' > confmf
3361
   case `$am_make -s -f confmf 2> /dev/null` in #(
3362
   *the\ am__doit\ target*)
3363
     am__include=.include
3364
     am__quote="\""
3365
     _am_result=BSD
3366
     ;;
3367
   esac
3368
fi
3369
3370
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3372
$as_echo "$_am_result" >&6; }
3373
rm -f confinc confmf
3374
3375
# Check whether --enable-dependency-tracking was given.
3376
if test "${enable_dependency_tracking+set}" = set; then :
3377
  enableval=$enable_dependency_tracking;
3378
fi
3379
3380
if test "x$enable_dependency_tracking" != xno; then
3381
  am_depcomp="$ac_aux_dir/depcomp"
3382
  AMDEPBACKSLASH='\'
3330
fi
3383
fi
3331
 if test "$plugins" = "yes"; then
3384
 if test "x$enable_dependency_tracking" != xno; then
3332
  PLUGINS_TRUE=
3385
  AMDEP_TRUE=
3333
  PLUGINS_FALSE='#'
3386
  AMDEP_FALSE='#'
3334
else
3387
else
3335
  PLUGINS_TRUE='#'
3388
  AMDEP_TRUE='#'
3336
  PLUGINS_FALSE=
3389
  AMDEP_FALSE=
3337
fi
3390
fi
3338
3391
3339
3392
3340
# Check whether --enable-targets was given.
3393
ac_ext=c
3341
if test "${enable_targets+set}" = set; then :
3394
ac_cpp='$CPP $CPPFLAGS'
3342
  enableval=$enable_targets; case "${enableval}" in
3395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343
  yes | "")
3396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344
    as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
3397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
    ;;
3398
if test -n "$ac_tool_prefix"; then
3346
  no)
3399
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3347
    enable_targets=
3400
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3348
    ;;
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349
  *)
3402
$as_echo_n "checking for $ac_word... " >&6; }
3350
    enable_targets=$enableval
3403
if test "${ac_cv_prog_CC+set}" = set; then :
3351
    ;;
3404
  $as_echo_n "(cached) " >&6
3352
esac
3353
else
3405
else
3354
  # For now, enable all targets by default
3406
  if test -n "$CC"; then
3355
 enable_targets=all
3407
  ac_cv_prog_CC="$CC" # Let the user override the test.
3408
else
3409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410
for as_dir in $PATH
3411
do
3412
  IFS=$as_save_IFS
3413
  test -z "$as_dir" && as_dir=.
3414
    for ac_exec_ext in '' $ac_executable_extensions; do
3415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3417
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418
    break 2
3419
  fi
3420
done
3421
  done
3422
IFS=$as_save_IFS
3356
3423
3357
fi
3424
fi
3425
fi
3426
CC=$ac_cv_prog_CC
3427
if test -n "$CC"; then
3428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429
$as_echo "$CC" >&6; }
3430
else
3431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432
$as_echo "no" >&6; }
3433
fi
3358
3434
3359
3435
3360
# Canonicalize the enabled targets.
3361
if test -n "$enable_targets"; then
3362
  for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
3363
    result=`$ac_config_sub $targ 2>/dev/null`
3364
    if test -n "$result"; then
3365
      canon_targets="$canon_targets $result"
3366
    else
3367
      # Permit unrecognized target names, like "all".
3368
      canon_targets="$canon_targets $targ"
3369
    fi
3370
  done
3371
fi
3436
fi
3372
3437
if test -z "$ac_cv_prog_CC"; then
3373
# See which specific instantiations we need.
3438
  ac_ct_CC=$CC
3374
targetobjs=
3439
  # Extract the first word of "gcc", so it can be a program name with args.
3375
all_targets=
3440
set dummy gcc; ac_word=$2
3376
default_machine=
3377
default_size=
3378
default_big_endian=
3379
default_osabi=ELFOSABI_NONE
3380
targ_32_little=
3381
targ_32_big=
3382
targ_64_little=
3383
targ_64_big=
3384
for targ in $target $canon_targets; do
3385
  if test "$targ" = "all"; then
3386
    targ_32_little=yes
3387
    targ_32_big=yes
3388
    targ_64_little=yes
3389
    targ_64_big=yes
3390
    all_targets=yes
3391
  else
3392
    . ${srcdir}/configure.tgt
3393
3394
    if test "$targ_obj" = "UNKNOWN"; then
3395
      as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
3396
    else
3397
      targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
3398
      if test "$targ_extra_obj" != ""; then
3399
        targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
3400
      fi
3401
      if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
3402
	  if test "$targ_big_endian" = "true" \
3403
	      -o "$targ_extra_big_endian" = "true"; then
3404
	      targ_32_big=yes
3405
	  fi
3406
	  if test "$targ_big_endian" = "false" \
3407
	      -o "$targ_extra_big_endian" = "false"; then
3408
	      targ_32_little=yes
3409
	  fi
3410
      fi
3411
      if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
3412
	  if test "$targ_big_endian" = "true" \
3413
	      -o "$targ_extra_big_endian" = "true"; then
3414
	      targ_64_big=yes
3415
	  fi
3416
	  if test "$targ_big_endian" = "false" \
3417
	      -o "$targ_extra_big_endian" = "false"; then
3418
	      targ_64_little=yes
3419
	  fi
3420
      fi
3421
3422
      if test "$target" = "$targ"; then
3423
        default_machine=$targ_machine
3424
	default_size=$targ_size
3425
	default_big_endian=$targ_big_endian
3426
	default_osabi=$targ_osabi
3427
3428
	 if test "$targ_obj" = "arm"; then
3429
  DEFAULT_TARGET_ARM_TRUE=
3430
  DEFAULT_TARGET_ARM_FALSE='#'
3431
else
3432
  DEFAULT_TARGET_ARM_TRUE='#'
3433
  DEFAULT_TARGET_ARM_FALSE=
3434
fi
3435
3436
	 if test "$targ_obj" = "i386"; then
3437
  DEFAULT_TARGET_I386_TRUE=
3438
  DEFAULT_TARGET_I386_FALSE='#'
3439
else
3440
  DEFAULT_TARGET_I386_TRUE='#'
3441
  DEFAULT_TARGET_I386_FALSE=
3442
fi
3443
3444
	 if test "$targ_obj" = "powerpc"; then
3445
  DEFAULT_TARGET_POWERPC_TRUE=
3446
  DEFAULT_TARGET_POWERPC_FALSE='#'
3447
else
3448
  DEFAULT_TARGET_POWERPC_TRUE='#'
3449
  DEFAULT_TARGET_POWERPC_FALSE=
3450
fi
3451
3452
	 if test "$targ_obj" = "sparc"; then
3453
  DEFAULT_TARGET_SPARC_TRUE=
3454
  DEFAULT_TARGET_SPARC_FALSE='#'
3455
else
3456
  DEFAULT_TARGET_SPARC_TRUE='#'
3457
  DEFAULT_TARGET_SPARC_FALSE=
3458
fi
3459
3460
	 if test "$targ_obj" = "x86_64"; then
3461
  DEFAULT_TARGET_X86_64_TRUE=
3462
  DEFAULT_TARGET_X86_64_FALSE='#'
3463
else
3464
  DEFAULT_TARGET_X86_64_TRUE='#'
3465
  DEFAULT_TARGET_X86_64_FALSE=
3466
fi
3467
3468
      fi
3469
    fi
3470
  fi
3471
done
3472
3473
# Remove any duplicates.
3474
to=""
3475
for t in $targetobjs; do
3476
  case " $to " in
3477
  *" $t "*) ;;
3478
  *) to="$to $t" ;;
3479
  esac
3480
done
3481
targetobjs=$to
3482
3483
if test -n "$targ_32_little"; then
3484
3485
$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
3486
3487
fi
3488
if test -n "$targ_32_big"; then
3489
3490
$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
3491
3492
fi
3493
if test -n "$targ_64_little"; then
3494
3495
$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
3496
3497
fi
3498
if test -n "$targ_64_big"; then
3499
3500
$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
3501
3502
fi
3503
3504
if test -n "$all_targets"; then
3505
  TARGETOBJS='$(ALL_TARGETOBJS)'
3506
else
3507
  TARGETOBJS="$targetobjs"
3508
fi
3509
3510
3511
3512
cat >>confdefs.h <<_ACEOF
3513
#define GOLD_DEFAULT_MACHINE $default_machine
3514
_ACEOF
3515
3516
3517
cat >>confdefs.h <<_ACEOF
3518
#define GOLD_DEFAULT_SIZE $default_size
3519
_ACEOF
3520
3521
3522
cat >>confdefs.h <<_ACEOF
3523
#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
3524
_ACEOF
3525
3526
3527
cat >>confdefs.h <<_ACEOF
3528
#define GOLD_DEFAULT_OSABI $default_osabi
3529
_ACEOF
3530
3531
3532
if test -n "$ac_tool_prefix"; then
3533
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3534
set dummy ${ac_tool_prefix}nm; ac_word=$2
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536
$as_echo_n "checking for $ac_word... " >&6; }
3537
if test "${ac_cv_prog_NM+set}" = set; then :
3538
  $as_echo_n "(cached) " >&6
3539
else
3540
  if test -n "$NM"; then
3541
  ac_cv_prog_NM="$NM" # Let the user override the test.
3542
else
3543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544
for as_dir in $PATH
3545
do
3546
  IFS=$as_save_IFS
3547
  test -z "$as_dir" && as_dir=.
3548
    for ac_exec_ext in '' $ac_executable_extensions; do
3549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550
    ac_cv_prog_NM="${ac_tool_prefix}nm"
3551
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552
    break 2
3553
  fi
3554
done
3555
  done
3556
IFS=$as_save_IFS
3557
3558
fi
3559
fi
3560
NM=$ac_cv_prog_NM
3561
if test -n "$NM"; then
3562
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3563
$as_echo "$NM" >&6; }
3564
else
3565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566
$as_echo "no" >&6; }
3567
fi
3568
3569
3570
fi
3571
if test -z "$ac_cv_prog_NM"; then
3572
  ac_ct_NM=$NM
3573
  # Extract the first word of "nm", so it can be a program name with args.
3574
set dummy nm; ac_word=$2
3575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576
$as_echo_n "checking for $ac_word... " >&6; }
3442
$as_echo_n "checking for $ac_word... " >&6; }
3577
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3443
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3578
  $as_echo_n "(cached) " >&6
3444
  $as_echo_n "(cached) " >&6
3579
else
3445
else
3580
  if test -n "$ac_ct_NM"; then
3446
  if test -n "$ac_ct_CC"; then
3581
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3447
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582
else
3448
else
3583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584
for as_dir in $PATH
3450
for as_dir in $PATH
Lines 3587-3593 do Link Here
3587
  test -z "$as_dir" && as_dir=.
3453
  test -z "$as_dir" && as_dir=.
3588
    for ac_exec_ext in '' $ac_executable_extensions; do
3454
    for ac_exec_ext in '' $ac_executable_extensions; do
3589
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590
    ac_cv_prog_ac_ct_NM="nm"
3456
    ac_cv_prog_ac_ct_CC="gcc"
3591
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592
    break 2
3458
    break 2
3593
  fi
3459
  fi
Lines 3597-3613 IFS=$as_save_IFS Link Here
3597
3463
3598
fi
3464
fi
3599
fi
3465
fi
3600
ac_ct_NM=$ac_cv_prog_ac_ct_NM
3466
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601
if test -n "$ac_ct_NM"; then
3467
if test -n "$ac_ct_CC"; then
3602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603
$as_echo "$ac_ct_NM" >&6; }
3469
$as_echo "$ac_ct_CC" >&6; }
3604
else
3470
else
3605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606
$as_echo "no" >&6; }
3472
$as_echo "no" >&6; }
3607
fi
3473
fi
3608
3474
3609
  if test "x$ac_ct_NM" = x; then
3475
  if test "x$ac_ct_CC" = x; then
3610
    NM=""
3476
    CC=""
3611
  else
3477
  else
3612
    case $cross_compiling:$ac_tool_warned in
3478
    case $cross_compiling:$ac_tool_warned in
3613
yes:)
3479
yes:)
Lines 3615-3635 yes:) Link Here
3615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616
ac_tool_warned=yes ;;
3482
ac_tool_warned=yes ;;
3617
esac
3483
esac
3618
    NM=$ac_ct_NM
3484
    CC=$ac_ct_CC
3619
  fi
3485
  fi
3620
else
3486
else
3621
  NM="$ac_cv_prog_NM"
3487
  CC="$ac_cv_prog_CC"
3622
fi
3488
fi
3623
3489
3624
3490
if test -z "$CC"; then
3625
ac_ext=c
3491
          if test -n "$ac_tool_prefix"; then
3626
ac_cpp='$CPP $CPPFLAGS'
3492
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493
set dummy ${ac_tool_prefix}cc; ac_word=$2
3628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
if test -n "$ac_tool_prefix"; then
3631
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3632
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634
$as_echo_n "checking for $ac_word... " >&6; }
3495
$as_echo_n "checking for $ac_word... " >&6; }
3635
if test "${ac_cv_prog_CC+set}" = set; then :
3496
if test "${ac_cv_prog_CC+set}" = set; then :
Lines 3645-3651 do Link Here
3645
  test -z "$as_dir" && as_dir=.
3506
  test -z "$as_dir" && as_dir=.
3646
    for ac_exec_ext in '' $ac_executable_extensions; do
3507
    for ac_exec_ext in '' $ac_executable_extensions; do
3647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3649
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650
    break 2
3511
    break 2
3651
  fi
3512
  fi
Lines 3665-3683 $as_echo "no" >&6; } Link Here
3665
fi
3526
fi
3666
3527
3667
3528
3529
  fi
3668
fi
3530
fi
3669
if test -z "$ac_cv_prog_CC"; then
3531
if test -z "$CC"; then
3670
  ac_ct_CC=$CC
3532
  # Extract the first word of "cc", so it can be a program name with args.
3671
  # Extract the first word of "gcc", so it can be a program name with args.
3533
set dummy cc; ac_word=$2
3672
set dummy gcc; ac_word=$2
3673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674
$as_echo_n "checking for $ac_word... " >&6; }
3535
$as_echo_n "checking for $ac_word... " >&6; }
3675
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536
if test "${ac_cv_prog_CC+set}" = set; then :
3676
  $as_echo_n "(cached) " >&6
3537
  $as_echo_n "(cached) " >&6
3677
else
3538
else
3678
  if test -n "$ac_ct_CC"; then
3539
  if test -n "$CC"; then
3679
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540
  ac_cv_prog_CC="$CC" # Let the user override the test.
3680
else
3541
else
3542
  ac_prog_rejected=no
3681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682
for as_dir in $PATH
3544
for as_dir in $PATH
3683
do
3545
do
Lines 3685-3789 do Link Here
3685
  test -z "$as_dir" && as_dir=.
3547
  test -z "$as_dir" && as_dir=.
3686
    for ac_exec_ext in '' $ac_executable_extensions; do
3548
    for ac_exec_ext in '' $ac_executable_extensions; do
3687
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688
    ac_cv_prog_ac_ct_CC="gcc"
3550
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3689
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551
       ac_prog_rejected=yes
3690
    break 2
3552
       continue
3691
  fi
3553
     fi
3692
done
3554
    ac_cv_prog_CC="cc"
3693
  done
3694
IFS=$as_save_IFS
3695
3696
fi
3697
fi
3698
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699
if test -n "$ac_ct_CC"; then
3700
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701
$as_echo "$ac_ct_CC" >&6; }
3702
else
3703
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704
$as_echo "no" >&6; }
3705
fi
3706
3707
  if test "x$ac_ct_CC" = x; then
3708
    CC=""
3709
  else
3710
    case $cross_compiling:$ac_tool_warned in
3711
yes:)
3712
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714
ac_tool_warned=yes ;;
3715
esac
3716
    CC=$ac_ct_CC
3717
  fi
3718
else
3719
  CC="$ac_cv_prog_CC"
3720
fi
3721
3722
if test -z "$CC"; then
3723
          if test -n "$ac_tool_prefix"; then
3724
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3725
set dummy ${ac_tool_prefix}cc; ac_word=$2
3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727
$as_echo_n "checking for $ac_word... " >&6; }
3728
if test "${ac_cv_prog_CC+set}" = set; then :
3729
  $as_echo_n "(cached) " >&6
3730
else
3731
  if test -n "$CC"; then
3732
  ac_cv_prog_CC="$CC" # Let the user override the test.
3733
else
3734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735
for as_dir in $PATH
3736
do
3737
  IFS=$as_save_IFS
3738
  test -z "$as_dir" && as_dir=.
3739
    for ac_exec_ext in '' $ac_executable_extensions; do
3740
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3742
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743
    break 2
3744
  fi
3745
done
3746
  done
3747
IFS=$as_save_IFS
3748
3749
fi
3750
fi
3751
CC=$ac_cv_prog_CC
3752
if test -n "$CC"; then
3753
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754
$as_echo "$CC" >&6; }
3755
else
3756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757
$as_echo "no" >&6; }
3758
fi
3759
3760
3761
  fi
3762
fi
3763
if test -z "$CC"; then
3764
  # Extract the first word of "cc", so it can be a program name with args.
3765
set dummy cc; ac_word=$2
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767
$as_echo_n "checking for $ac_word... " >&6; }
3768
if test "${ac_cv_prog_CC+set}" = set; then :
3769
  $as_echo_n "(cached) " >&6
3770
else
3771
  if test -n "$CC"; then
3772
  ac_cv_prog_CC="$CC" # Let the user override the test.
3773
else
3774
  ac_prog_rejected=no
3775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776
for as_dir in $PATH
3777
do
3778
  IFS=$as_save_IFS
3779
  test -z "$as_dir" && as_dir=.
3780
    for ac_exec_ext in '' $ac_executable_extensions; do
3781
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3783
       ac_prog_rejected=yes
3784
       continue
3785
     fi
3786
    ac_cv_prog_CC="cc"
3787
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788
    break 2
3556
    break 2
3789
  fi
3557
  fi
Lines 4386-4453 ac_cpp='$CPP $CPPFLAGS' Link Here
4386
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
DEPDIR="${am__leading_dot}deps"
4390
4391
ac_config_commands="$ac_config_commands depfiles"
4392
4393
4394
am_make=${MAKE-make}
4395
cat > confinc << 'END'
4396
am__doit:
4397
	@echo this is the am__doit target
4398
.PHONY: am__doit
4399
END
4400
# If we don't find an include directive, just comment out the code.
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4403
am__include="#"
4404
am__quote=
4405
_am_result=none
4406
# First try GNU make style include.
4407
echo "include confinc" > confmf
4408
# Ignore all kinds of additional output from `make'.
4409
case `$am_make -s -f confmf 2> /dev/null` in #(
4410
*the\ am__doit\ target*)
4411
  am__include=include
4412
  am__quote=
4413
  _am_result=GNU
4414
  ;;
4415
esac
4416
# Now try BSD make style include.
4417
if test "$am__include" = "#"; then
4418
   echo '.include "confinc"' > confmf
4419
   case `$am_make -s -f confmf 2> /dev/null` in #(
4420
   *the\ am__doit\ target*)
4421
     am__include=.include
4422
     am__quote="\""
4423
     _am_result=BSD
4424
     ;;
4425
   esac
4426
fi
4427
4428
4429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430
$as_echo "$_am_result" >&6; }
4431
rm -f confinc confmf
4432
4433
# Check whether --enable-dependency-tracking was given.
4434
if test "${enable_dependency_tracking+set}" = set; then :
4435
  enableval=$enable_dependency_tracking;
4436
fi
4437
4438
if test "x$enable_dependency_tracking" != xno; then
4439
  am_depcomp="$ac_aux_dir/depcomp"
4440
  AMDEPBACKSLASH='\'
4441
fi
4442
 if test "x$enable_dependency_tracking" != xno; then
4443
  AMDEP_TRUE=
4444
  AMDEP_FALSE='#'
4445
else
4446
  AMDEP_TRUE='#'
4447
  AMDEP_FALSE=
4448
fi
4449
4450
4451
4157
4452
depcc="$CC"   am_compiler_list=
4158
depcc="$CC"   am_compiler_list=
4453
4159
Lines 4576-5511 else Link Here
4576
fi
4282
fi
4577
4283
4578
4284
4579
ac_ext=cpp
4285
4580
ac_cpp='$CXXCPP $CPPFLAGS'
4286
ac_ext=c
4581
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287
ac_cpp='$CPP $CPPFLAGS'
4582
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584
if test -z "$CXX"; then
4290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
  if test -n "$CCC"; then
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4586
    CXX=$CCC
4292
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4587
  else
4293
# On Suns, sometimes $CPP names a directory.
4588
    if test -n "$ac_tool_prefix"; then
4294
if test -n "$CPP" && test -d "$CPP"; then
4589
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4295
  CPP=
4590
  do
4296
fi
4591
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4297
if test -z "$CPP"; then
4592
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4298
  if test "${ac_cv_prog_CPP+set}" = set; then :
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594
$as_echo_n "checking for $ac_word... " >&6; }
4595
if test "${ac_cv_prog_CXX+set}" = set; then :
4596
  $as_echo_n "(cached) " >&6
4299
  $as_echo_n "(cached) " >&6
4597
else
4300
else
4598
  if test -n "$CXX"; then
4301
      # Double quotes because CPP needs to be expanded
4599
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4302
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4600
else
4303
    do
4601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304
      ac_preproc_ok=false
4602
for as_dir in $PATH
4305
for ac_c_preproc_warn_flag in '' yes
4603
do
4306
do
4604
  IFS=$as_save_IFS
4307
  # Use a header file that comes with gcc, so configuring glibc
4605
  test -z "$as_dir" && as_dir=.
4308
  # with a fresh cross-compiler works.
4606
    for ac_exec_ext in '' $ac_executable_extensions; do
4309
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310
  # <limits.h> exists even on freestanding compilers.
4608
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4311
  # On the NeXT, cc -E runs the code through the compiler's parser,
4609
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312
  # not just through cpp. "Syntax error" is here to catch this case.
4610
    break 2
4313
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611
  fi
4314
/* end confdefs.h.  */
4612
done
4315
#ifdef __STDC__
4613
  done
4316
# include <limits.h>
4614
IFS=$as_save_IFS
4317
#else
4318
# include <assert.h>
4319
#endif
4320
		     Syntax error
4321
_ACEOF
4322
if ac_fn_c_try_cpp "$LINENO"; then :
4615
4323
4616
fi
4617
fi
4618
CXX=$ac_cv_prog_CXX
4619
if test -n "$CXX"; then
4620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4621
$as_echo "$CXX" >&6; }
4622
else
4324
else
4623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325
  # Broken: fails on valid input.
4624
$as_echo "no" >&6; }
4326
continue
4625
fi
4327
fi
4328
rm -f conftest.err conftest.$ac_ext
4626
4329
4330
  # OK, works on sane cases.  Now check whether nonexistent headers
4331
  # can be detected and how.
4332
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333
/* end confdefs.h.  */
4334
#include <ac_nonexistent.h>
4335
_ACEOF
4336
if ac_fn_c_try_cpp "$LINENO"; then :
4337
  # Broken: success on invalid input.
4338
continue
4339
else
4340
  # Passes both tests.
4341
ac_preproc_ok=:
4342
break
4343
fi
4344
rm -f conftest.err conftest.$ac_ext
4627
4345
4628
    test -n "$CXX" && break
4346
done
4629
  done
4347
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348
rm -f conftest.err conftest.$ac_ext
4349
if $ac_preproc_ok; then :
4350
  break
4630
fi
4351
fi
4631
if test -z "$CXX"; then
4632
  ac_ct_CXX=$CXX
4633
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4634
do
4635
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4636
set dummy $ac_prog; ac_word=$2
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638
$as_echo_n "checking for $ac_word... " >&6; }
4639
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4640
  $as_echo_n "(cached) " >&6
4641
else
4642
  if test -n "$ac_ct_CXX"; then
4643
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4644
else
4645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646
for as_dir in $PATH
4647
do
4648
  IFS=$as_save_IFS
4649
  test -z "$as_dir" && as_dir=.
4650
    for ac_exec_ext in '' $ac_executable_extensions; do
4651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4653
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654
    break 2
4655
  fi
4656
done
4657
  done
4658
IFS=$as_save_IFS
4659
4660
fi
4661
fi
4662
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4663
if test -n "$ac_ct_CXX"; then
4664
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4665
$as_echo "$ac_ct_CXX" >&6; }
4666
else
4667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668
$as_echo "no" >&6; }
4669
fi
4670
4671
4352
4672
  test -n "$ac_ct_CXX" && break
4353
    done
4673
done
4354
    ac_cv_prog_CPP=$CPP
4674
4675
  if test "x$ac_ct_CXX" = x; then
4676
    CXX="g++"
4677
  else
4678
    case $cross_compiling:$ac_tool_warned in
4679
yes:)
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682
ac_tool_warned=yes ;;
4683
esac
4684
    CXX=$ac_ct_CXX
4685
  fi
4686
fi
4687
4355
4688
  fi
4689
fi
4356
fi
4690
# Provide some information about the compiler.
4357
  CPP=$ac_cv_prog_CPP
4691
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4692
set X $ac_compile
4693
ac_compiler=$2
4694
for ac_option in --version -v -V -qversion; do
4695
  { { ac_try="$ac_compiler $ac_option >&5"
4696
case "(($ac_try" in
4697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698
  *) ac_try_echo=$ac_try;;
4699
esac
4700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701
$as_echo "$ac_try_echo"; } >&5
4702
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4703
  ac_status=$?
4704
  if test -s conftest.err; then
4705
    sed '10a\
4706
... rest of stderr output deleted ...
4707
         10q' conftest.err >conftest.er1
4708
    cat conftest.er1 >&5
4709
    rm -f conftest.er1 conftest.err
4710
  fi
4711
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712
  test $ac_status = 0; }
4713
done
4714
4715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4716
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4717
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4718
  $as_echo_n "(cached) " >&6
4719
else
4358
else
4359
  ac_cv_prog_CPP=$CPP
4360
fi
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4362
$as_echo "$CPP" >&6; }
4363
ac_preproc_ok=false
4364
for ac_c_preproc_warn_flag in '' yes
4365
do
4366
  # Use a header file that comes with gcc, so configuring glibc
4367
  # with a fresh cross-compiler works.
4368
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369
  # <limits.h> exists even on freestanding compilers.
4370
  # On the NeXT, cc -E runs the code through the compiler's parser,
4371
  # not just through cpp. "Syntax error" is here to catch this case.
4720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721
/* end confdefs.h.  */
4373
/* end confdefs.h.  */
4722
4374
#ifdef __STDC__
4723
int
4375
# include <limits.h>
4724
main ()
4376
#else
4725
{
4377
# include <assert.h>
4726
#ifndef __GNUC__
4727
       choke me
4728
#endif
4378
#endif
4729
4379
		     Syntax error
4730
  ;
4731
  return 0;
4732
}
4733
_ACEOF
4380
_ACEOF
4734
if ac_fn_cxx_try_compile "$LINENO"; then :
4381
if ac_fn_c_try_cpp "$LINENO"; then :
4735
  ac_compiler_gnu=yes
4736
else
4737
  ac_compiler_gnu=no
4738
fi
4739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4741
4382
4742
fi
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4744
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4745
if test $ac_compiler_gnu = yes; then
4746
  GXX=yes
4747
else
4383
else
4748
  GXX=
4384
  # Broken: fails on valid input.
4385
continue
4749
fi
4386
fi
4750
ac_test_CXXFLAGS=${CXXFLAGS+set}
4387
rm -f conftest.err conftest.$ac_ext
4751
ac_save_CXXFLAGS=$CXXFLAGS
4752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4753
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4754
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4755
  $as_echo_n "(cached) " >&6
4756
else
4757
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4758
   ac_cxx_werror_flag=yes
4759
   ac_cv_prog_cxx_g=no
4760
   CXXFLAGS="-g"
4761
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762
/* end confdefs.h.  */
4763
4764
int
4765
main ()
4766
{
4767
4388
4768
  ;
4389
  # OK, works on sane cases.  Now check whether nonexistent headers
4769
  return 0;
4390
  # can be detected and how.
4770
}
4391
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771
_ACEOF
4772
if ac_fn_cxx_try_compile "$LINENO"; then :
4773
  ac_cv_prog_cxx_g=yes
4774
else
4775
  CXXFLAGS=""
4776
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777
/* end confdefs.h.  */
4392
/* end confdefs.h.  */
4778
4393
#include <ac_nonexistent.h>
4779
int
4780
main ()
4781
{
4782
4783
  ;
4784
  return 0;
4785
}
4786
_ACEOF
4394
_ACEOF
4787
if ac_fn_cxx_try_compile "$LINENO"; then :
4395
if ac_fn_c_try_cpp "$LINENO"; then :
4788
4396
  # Broken: success on invalid input.
4397
continue
4789
else
4398
else
4790
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4399
  # Passes both tests.
4791
	 CXXFLAGS="-g"
4400
ac_preproc_ok=:
4792
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401
break
4793
/* end confdefs.h.  */
4402
fi
4403
rm -f conftest.err conftest.$ac_ext
4794
4404
4795
int
4405
done
4796
main ()
4406
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797
{
4407
rm -f conftest.err conftest.$ac_ext
4408
if $ac_preproc_ok; then :
4798
4409
4799
  ;
4800
  return 0;
4801
}
4802
_ACEOF
4803
if ac_fn_cxx_try_compile "$LINENO"; then :
4804
  ac_cv_prog_cxx_g=yes
4805
fi
4806
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807
fi
4808
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809
fi
4810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4812
fi
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4814
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4815
if test "$ac_test_CXXFLAGS" = set; then
4816
  CXXFLAGS=$ac_save_CXXFLAGS
4817
elif test $ac_cv_prog_cxx_g = yes; then
4818
  if test "$GXX" = yes; then
4819
    CXXFLAGS="-g -O2"
4820
  else
4821
    CXXFLAGS="-g"
4822
  fi
4823
else
4410
else
4824
  if test "$GXX" = yes; then
4411
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4825
    CXXFLAGS="-O2"
4412
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4826
  else
4413
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4827
    CXXFLAGS=
4414
See \`config.log' for more details." "$LINENO" 5; }
4828
  fi
4829
fi
4415
fi
4416
4830
ac_ext=c
4417
ac_ext=c
4831
ac_cpp='$CPP $CPPFLAGS'
4418
ac_cpp='$CPP $CPPFLAGS'
4832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4422
4836
depcc="$CXX"  am_compiler_list=
4837
4423
4838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4839
$as_echo_n "checking dependency style of $depcc... " >&6; }
4425
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4840
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4426
if test "${ac_cv_path_GREP+set}" = set; then :
4841
  $as_echo_n "(cached) " >&6
4427
  $as_echo_n "(cached) " >&6
4842
else
4428
else
4843
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4429
  if test -z "$GREP"; then
4844
  # We make a subdir and do the tests there.  Otherwise we can end up
4430
  ac_path_GREP_found=false
4845
  # making bogus files that we don't know about and never remove.  For
4431
  # Loop through the user's path and test for each of PROGNAME-LIST
4846
  # instance it was reported that on HP-UX the gcc test will end up
4432
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847
  # making a dummy file named `D' -- because `-MD' means `put the output
4433
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4848
  # in D'.
4434
do
4849
  mkdir conftest.dir
4435
  IFS=$as_save_IFS
4850
  # Copy depcomp to subdir because otherwise we won't find it if we're
4436
  test -z "$as_dir" && as_dir=.
4851
  # using a relative directory.
4437
    for ac_prog in grep ggrep; do
4852
  cp "$am_depcomp" conftest.dir
4438
    for ac_exec_ext in '' $ac_executable_extensions; do
4853
  cd conftest.dir
4439
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4854
  # We will build objects and dependencies in a subdirectory because
4440
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4855
  # it helps to detect inapplicable dependency modes.  For instance
4441
# Check for GNU ac_path_GREP and select it if it is found.
4856
  # both Tru64's cc and ICC support -MD to output dependencies as a
4442
  # Check for GNU $ac_path_GREP
4857
  # side effect of compilation, but ICC will put the dependencies in
4443
case `"$ac_path_GREP" --version 2>&1` in
4858
  # the current directory while Tru64 will put them in the object
4444
*GNU*)
4859
  # directory.
4445
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4860
  mkdir sub
4446
*)
4861
4447
  ac_count=0
4862
  am_cv_CXX_dependencies_compiler_type=none
4448
  $as_echo_n 0123456789 >"conftest.in"
4863
  if test "$am_compiler_list" = ""; then
4449
  while :
4864
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4450
  do
4865
  fi
4451
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4866
  am__universal=false
4452
    mv "conftest.tmp" "conftest.in"
4867
  case " $depcc " in #(
4453
    cp "conftest.in" "conftest.nl"
4868
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4454
    $as_echo 'GREP' >> "conftest.nl"
4869
     esac
4455
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4870
4456
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4871
  for depmode in $am_compiler_list; do
4457
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4872
    # Setup a source with many dependencies, because some compilers
4458
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4873
    # like to wrap large dependency lists on column 80 (with \), and
4459
      # Best one so far, save it but keep looking for a better one
4874
    # we should not choose a depcomp mode which is confused by this.
4460
      ac_cv_path_GREP="$ac_path_GREP"
4875
    #
4461
      ac_path_GREP_max=$ac_count
4876
    # We need to recreate these files for each test, as the compiler may
4877
    # overwrite some of them when testing with obscure command lines.
4878
    # This happens at least with the AIX C compiler.
4879
    : > sub/conftest.c
4880
    for i in 1 2 3 4 5 6; do
4881
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4883
      # Solaris 8's {/usr,}/bin/sh.
4884
      touch sub/conftst$i.h
4885
    done
4886
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4889
    # mode.  It turns out that the SunPro C++ compiler does not properly
4890
    # handle `-M -o', and we need to detect this.  Also, some Intel
4891
    # versions had trouble with output in subdirs
4892
    am__obj=sub/conftest.${OBJEXT-o}
4893
    am__minus_obj="-o $am__obj"
4894
    case $depmode in
4895
    gcc)
4896
      # This depmode causes a compiler race in universal mode.
4897
      test "$am__universal" = false || continue
4898
      ;;
4899
    nosideeffect)
4900
      # after this tag, mechanisms are not by side-effect, so they'll
4901
      # only be used when explicitly requested
4902
      if test "x$enable_dependency_tracking" = xyes; then
4903
	continue
4904
      else
4905
	break
4906
      fi
4907
      ;;
4908
    msvisualcpp | msvcmsys)
4909
      # This compiler won't grok `-c -o', but also, the minuso test has
4910
      # not run yet.  These depmodes are late enough in the game, and
4911
      # so weak that their functioning should not be impacted.
4912
      am__obj=conftest.${OBJEXT-o}
4913
      am__minus_obj=
4914
      ;;
4915
    none) break ;;
4916
    esac
4917
    if depmode=$depmode \
4918
       source=sub/conftest.c object=$am__obj \
4919
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921
         >/dev/null 2>conftest.err &&
4922
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926
      # icc doesn't choke on unknown options, it will just issue warnings
4927
      # or remarks (even with -Werror).  So we grep stderr for any message
4928
      # that says an option was ignored or not supported.
4929
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4930
      #   icc: Command line warning: ignoring option '-M'; no argument required
4931
      # The diagnosis changed in icc 8.0:
4932
      #   icc: Command line remark: option '-MP' not supported
4933
      if (grep 'ignoring option' conftest.err ||
4934
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935
        am_cv_CXX_dependencies_compiler_type=$depmode
4936
        break
4937
      fi
4938
    fi
4462
    fi
4463
    # 10*(2^10) chars as input seems more than enough
4464
    test $ac_count -gt 10 && break
4939
  done
4465
  done
4466
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467
esac
4940
4468
4941
  cd ..
4469
      $ac_path_GREP_found && break 3
4942
  rm -rf conftest.dir
4470
    done
4471
  done
4472
  done
4473
IFS=$as_save_IFS
4474
  if test -z "$ac_cv_path_GREP"; then
4475
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476
  fi
4943
else
4477
else
4944
  am_cv_CXX_dependencies_compiler_type=none
4478
  ac_cv_path_GREP=$GREP
4945
fi
4946
4947
fi
4479
fi
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4949
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4950
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4951
4480
4952
 if
4953
  test "x$enable_dependency_tracking" != xno \
4954
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4955
  am__fastdepCXX_TRUE=
4956
  am__fastdepCXX_FALSE='#'
4957
else
4958
  am__fastdepCXX_TRUE='#'
4959
  am__fastdepCXX_FALSE=
4960
fi
4481
fi
4482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4483
$as_echo "$ac_cv_path_GREP" >&6; }
4484
 GREP="$ac_cv_path_GREP"
4961
4485
4962
4486
4963
for ac_prog in 'bison -y' byacc
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4964
do
4488
$as_echo_n "checking for egrep... " >&6; }
4965
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4489
if test "${ac_cv_path_EGREP+set}" = set; then :
4966
set dummy $ac_prog; ac_word=$2
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968
$as_echo_n "checking for $ac_word... " >&6; }
4969
if test "${ac_cv_prog_YACC+set}" = set; then :
4970
  $as_echo_n "(cached) " >&6
4490
  $as_echo_n "(cached) " >&6
4971
else
4491
else
4972
  if test -n "$YACC"; then
4492
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4973
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4493
   then ac_cv_path_EGREP="$GREP -E"
4974
else
4494
   else
4975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495
     if test -z "$EGREP"; then
4976
for as_dir in $PATH
4496
  ac_path_EGREP_found=false
4497
  # Loop through the user's path and test for each of PROGNAME-LIST
4498
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977
do
4500
do
4978
  IFS=$as_save_IFS
4501
  IFS=$as_save_IFS
4979
  test -z "$as_dir" && as_dir=.
4502
  test -z "$as_dir" && as_dir=.
4503
    for ac_prog in egrep; do
4980
    for ac_exec_ext in '' $ac_executable_extensions; do
4504
    for ac_exec_ext in '' $ac_executable_extensions; do
4981
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4982
    ac_cv_prog_YACC="$ac_prog"
4506
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4983
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507
# Check for GNU ac_path_EGREP and select it if it is found.
4984
    break 2
4508
  # Check for GNU $ac_path_EGREP
4985
  fi
4509
case `"$ac_path_EGREP" --version 2>&1` in
4986
done
4510
*GNU*)
4511
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4512
*)
4513
  ac_count=0
4514
  $as_echo_n 0123456789 >"conftest.in"
4515
  while :
4516
  do
4517
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4518
    mv "conftest.tmp" "conftest.in"
4519
    cp "conftest.in" "conftest.nl"
4520
    $as_echo 'EGREP' >> "conftest.nl"
4521
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4524
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4525
      # Best one so far, save it but keep looking for a better one
4526
      ac_cv_path_EGREP="$ac_path_EGREP"
4527
      ac_path_EGREP_max=$ac_count
4528
    fi
4529
    # 10*(2^10) chars as input seems more than enough
4530
    test $ac_count -gt 10 && break
4987
  done
4531
  done
4988
IFS=$as_save_IFS
4532
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533
esac
4989
4534
4990
fi
4535
      $ac_path_EGREP_found && break 3
4991
fi
4536
    done
4992
YACC=$ac_cv_prog_YACC
4537
  done
4993
if test -n "$YACC"; then
4538
  done
4994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4539
IFS=$as_save_IFS
4995
$as_echo "$YACC" >&6; }
4540
  if test -z "$ac_cv_path_EGREP"; then
4541
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542
  fi
4996
else
4543
else
4997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544
  ac_cv_path_EGREP=$EGREP
4998
$as_echo "no" >&6; }
4999
fi
4545
fi
5000
4546
4547
   fi
4548
fi
4549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4550
$as_echo "$ac_cv_path_EGREP" >&6; }
4551
 EGREP="$ac_cv_path_EGREP"
5001
4552
5002
  test -n "$YACC" && break
5003
done
5004
test -n "$YACC" || YACC="yacc"
5005
4553
5006
if test -n "$ac_tool_prefix"; then
4554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5007
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4555
$as_echo_n "checking for ANSI C header files... " >&6; }
5008
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4556
if test "${ac_cv_header_stdc+set}" = set; then :
5009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010
$as_echo_n "checking for $ac_word... " >&6; }
5011
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5012
  $as_echo_n "(cached) " >&6
4557
  $as_echo_n "(cached) " >&6
5013
else
4558
else
5014
  if test -n "$RANLIB"; then
4559
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4560
/* end confdefs.h.  */
5016
else
4561
#include <stdlib.h>
5017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562
#include <stdarg.h>
5018
for as_dir in $PATH
4563
#include <string.h>
5019
do
4564
#include <float.h>
5020
  IFS=$as_save_IFS
5021
  test -z "$as_dir" && as_dir=.
5022
    for ac_exec_ext in '' $ac_executable_extensions; do
5023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5025
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026
    break 2
5027
  fi
5028
done
5029
  done
5030
IFS=$as_save_IFS
5031
4565
5032
fi
4566
int
5033
fi
4567
main ()
5034
RANLIB=$ac_cv_prog_RANLIB
4568
{
5035
if test -n "$RANLIB"; then
4569
5036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4570
  ;
5037
$as_echo "$RANLIB" >&6; }
4571
  return 0;
4572
}
4573
_ACEOF
4574
if ac_fn_c_try_compile "$LINENO"; then :
4575
  ac_cv_header_stdc=yes
5038
else
4576
else
5039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577
  ac_cv_header_stdc=no
5040
$as_echo "no" >&6; }
5041
fi
4578
fi
4579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042
4580
4581
if test $ac_cv_header_stdc = yes; then
4582
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4583
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584
/* end confdefs.h.  */
4585
#include <string.h>
5043
4586
5044
fi
4587
_ACEOF
5045
if test -z "$ac_cv_prog_RANLIB"; then
4588
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5046
  ac_ct_RANLIB=$RANLIB
4589
  $EGREP "memchr" >/dev/null 2>&1; then :
5047
  # Extract the first word of "ranlib", so it can be a program name with args.
5048
set dummy ranlib; ac_word=$2
5049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050
$as_echo_n "checking for $ac_word... " >&6; }
5051
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5052
  $as_echo_n "(cached) " >&6
5053
else
5054
  if test -n "$ac_ct_RANLIB"; then
5055
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5056
else
5057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058
for as_dir in $PATH
5059
do
5060
  IFS=$as_save_IFS
5061
  test -z "$as_dir" && as_dir=.
5062
    for ac_exec_ext in '' $ac_executable_extensions; do
5063
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066
    break 2
5067
  fi
5068
done
5069
  done
5070
IFS=$as_save_IFS
5071
4590
5072
fi
5073
fi
5074
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5075
if test -n "$ac_ct_RANLIB"; then
5076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5077
$as_echo "$ac_ct_RANLIB" >&6; }
5078
else
4591
else
5079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592
  ac_cv_header_stdc=no
5080
$as_echo "no" >&6; }
5081
fi
4593
fi
4594
rm -f conftest*
5082
4595
5083
  if test "x$ac_ct_RANLIB" = x; then
5084
    RANLIB=":"
5085
  else
5086
    case $cross_compiling:$ac_tool_warned in
5087
yes:)
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090
ac_tool_warned=yes ;;
5091
esac
5092
    RANLIB=$ac_ct_RANLIB
5093
  fi
5094
else
5095
  RANLIB="$ac_cv_prog_RANLIB"
5096
fi
4596
fi
5097
4597
4598
if test $ac_cv_header_stdc = yes; then
4599
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4600
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601
/* end confdefs.h.  */
4602
#include <stdlib.h>
4603
4604
_ACEOF
4605
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606
  $EGREP "free" >/dev/null 2>&1; then :
5098
4607
5099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5100
$as_echo_n "checking whether ln -s works... " >&6; }
5101
LN_S=$as_ln_s
5102
if test "$LN_S" = "ln -s"; then
5103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104
$as_echo "yes" >&6; }
5105
else
4608
else
5106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4609
  ac_cv_header_stdc=no
5107
$as_echo "no, using $LN_S" >&6; }
5108
fi
4610
fi
4611
rm -f conftest*
5109
4612
5110
5111
5112
ac_ext=c
5113
ac_cpp='$CPP $CPPFLAGS'
5114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5118
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5119
# On Suns, sometimes $CPP names a directory.
5120
if test -n "$CPP" && test -d "$CPP"; then
5121
  CPP=
5122
fi
4613
fi
5123
if test -z "$CPP"; then
4614
5124
  if test "${ac_cv_prog_CPP+set}" = set; then :
4615
if test $ac_cv_header_stdc = yes; then
5125
  $as_echo_n "(cached) " >&6
4616
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617
  if test "$cross_compiling" = yes; then :
4618
  :
5126
else
4619
else
5127
      # Double quotes because CPP needs to be expanded
5128
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5129
    do
5130
      ac_preproc_ok=false
5131
for ac_c_preproc_warn_flag in '' yes
5132
do
5133
  # Use a header file that comes with gcc, so configuring glibc
5134
  # with a fresh cross-compiler works.
5135
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136
  # <limits.h> exists even on freestanding compilers.
5137
  # On the NeXT, cc -E runs the code through the compiler's parser,
5138
  # not just through cpp. "Syntax error" is here to catch this case.
5139
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140
/* end confdefs.h.  */
4621
/* end confdefs.h.  */
5141
#ifdef __STDC__
4622
#include <ctype.h>
5142
# include <limits.h>
4623
#include <stdlib.h>
4624
#if ((' ' & 0x0FF) == 0x020)
4625
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4626
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5143
#else
4627
#else
5144
# include <assert.h>
4628
# define ISLOWER(c) \
4629
		   (('a' <= (c) && (c) <= 'i') \
4630
		     || ('j' <= (c) && (c) <= 'r') \
4631
		     || ('s' <= (c) && (c) <= 'z'))
4632
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5145
#endif
4633
#endif
5146
		     Syntax error
5147
_ACEOF
5148
if ac_fn_c_try_cpp "$LINENO"; then :
5149
5150
else
5151
  # Broken: fails on valid input.
5152
continue
5153
fi
5154
rm -f conftest.err conftest.$ac_ext
5155
4634
5156
  # OK, works on sane cases.  Now check whether nonexistent headers
4635
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5157
  # can be detected and how.
4636
int
5158
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637
main ()
5159
/* end confdefs.h.  */
4638
{
5160
#include <ac_nonexistent.h>
4639
  int i;
4640
  for (i = 0; i < 256; i++)
4641
    if (XOR (islower (i), ISLOWER (i))
4642
	|| toupper (i) != TOUPPER (i))
4643
      return 2;
4644
  return 0;
4645
}
5161
_ACEOF
4646
_ACEOF
5162
if ac_fn_c_try_cpp "$LINENO"; then :
4647
if ac_fn_c_try_run "$LINENO"; then :
5163
  # Broken: success on invalid input.
4648
5164
continue
5165
else
4649
else
5166
  # Passes both tests.
4650
  ac_cv_header_stdc=no
5167
ac_preproc_ok=:
5168
break
5169
fi
4651
fi
5170
rm -f conftest.err conftest.$ac_ext
4652
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5171
4653
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5172
done
5173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174
rm -f conftest.err conftest.$ac_ext
5175
if $ac_preproc_ok; then :
5176
  break
5177
fi
4654
fi
5178
4655
5179
    done
5180
    ac_cv_prog_CPP=$CPP
5181
5182
fi
4656
fi
5183
  CPP=$ac_cv_prog_CPP
5184
else
5185
  ac_cv_prog_CPP=$CPP
5186
fi
4657
fi
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5188
$as_echo "$CPP" >&6; }
4659
$as_echo "$ac_cv_header_stdc" >&6; }
5189
ac_preproc_ok=false
4660
if test $ac_cv_header_stdc = yes; then
5190
for ac_c_preproc_warn_flag in '' yes
4661
5191
do
4662
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5192
  # Use a header file that comes with gcc, so configuring glibc
5193
  # with a fresh cross-compiler works.
5194
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195
  # <limits.h> exists even on freestanding compilers.
5196
  # On the NeXT, cc -E runs the code through the compiler's parser,
5197
  # not just through cpp. "Syntax error" is here to catch this case.
5198
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199
/* end confdefs.h.  */
5200
#ifdef __STDC__
5201
# include <limits.h>
5202
#else
5203
# include <assert.h>
5204
#endif
5205
		     Syntax error
5206
_ACEOF
5207
if ac_fn_c_try_cpp "$LINENO"; then :
5208
4663
5209
else
5210
  # Broken: fails on valid input.
5211
continue
5212
fi
4664
fi
5213
rm -f conftest.err conftest.$ac_ext
5214
4665
5215
  # OK, works on sane cases.  Now check whether nonexistent headers
4666
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5216
  # can be detected and how.
4667
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5217
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668
		  inttypes.h stdint.h unistd.h
5218
/* end confdefs.h.  */
4669
do :
5219
#include <ac_nonexistent.h>
4670
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4672
"
4673
eval as_val=\$$as_ac_Header
4674
   if test "x$as_val" = x""yes; then :
4675
  cat >>confdefs.h <<_ACEOF
4676
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220
_ACEOF
4677
_ACEOF
5221
if ac_fn_c_try_cpp "$LINENO"; then :
4678
5222
  # Broken: success on invalid input.
5223
continue
5224
else
5225
  # Passes both tests.
5226
ac_preproc_ok=:
5227
break
5228
fi
4679
fi
5229
rm -f conftest.err conftest.$ac_ext
5230
4680
5231
done
4681
done
5232
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682
5233
rm -f conftest.err conftest.$ac_ext
4683
5234
if $ac_preproc_ok; then :
4684
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4685
"
4686
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5235
4687
5236
else
4688
else
5237
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689
  has_dlopen=no
5238
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5239
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5240
See \`config.log' for more details." "$LINENO" 5; }
5241
fi
4690
fi
5242
4691
5243
ac_ext=c
5244
ac_cpp='$CPP $CPPFLAGS'
5245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
4692
5249
4693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4694
$as_echo_n "checking for library containing dlopen... " >&6; }
5251
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4695
if test "${ac_cv_search_dlopen+set}" = set; then :
5252
if test "${ac_cv_path_GREP+set}" = set; then :
5253
  $as_echo_n "(cached) " >&6
4696
  $as_echo_n "(cached) " >&6
5254
else
4697
else
5255
  if test -z "$GREP"; then
4698
  ac_func_search_save_LIBS=$LIBS
5256
  ac_path_GREP_found=false
4699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257
  # Loop through the user's path and test for each of PROGNAME-LIST
4700
/* end confdefs.h.  */
5258
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260
do
5261
  IFS=$as_save_IFS
5262
  test -z "$as_dir" && as_dir=.
5263
    for ac_prog in grep ggrep; do
5264
    for ac_exec_ext in '' $ac_executable_extensions; do
5265
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5266
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5267
# Check for GNU ac_path_GREP and select it if it is found.
5268
  # Check for GNU $ac_path_GREP
5269
case `"$ac_path_GREP" --version 2>&1` in
5270
*GNU*)
5271
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5272
*)
5273
  ac_count=0
5274
  $as_echo_n 0123456789 >"conftest.in"
5275
  while :
5276
  do
5277
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5278
    mv "conftest.tmp" "conftest.in"
5279
    cp "conftest.in" "conftest.nl"
5280
    $as_echo 'GREP' >> "conftest.nl"
5281
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5284
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5285
      # Best one so far, save it but keep looking for a better one
5286
      ac_cv_path_GREP="$ac_path_GREP"
5287
      ac_path_GREP_max=$ac_count
5288
    fi
5289
    # 10*(2^10) chars as input seems more than enough
5290
    test $ac_count -gt 10 && break
5291
  done
5292
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293
esac
5294
4701
5295
      $ac_path_GREP_found && break 3
4702
/* Override any GCC internal prototype to avoid an error.
5296
    done
4703
   Use char because int might match the return type of a GCC
5297
  done
4704
   builtin and then its argument prototype would still apply.  */
5298
  done
4705
#ifdef __cplusplus
5299
IFS=$as_save_IFS
4706
extern "C"
5300
  if test -z "$ac_cv_path_GREP"; then
4707
#endif
5301
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708
char dlopen ();
4709
int
4710
main ()
4711
{
4712
return dlopen ();
4713
  ;
4714
  return 0;
4715
}
4716
_ACEOF
4717
for ac_lib in '' dl; do
4718
  if test -z "$ac_lib"; then
4719
    ac_res="none required"
4720
  else
4721
    ac_res=-l$ac_lib
4722
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5302
  fi
4723
  fi
4724
  if ac_fn_c_try_link "$LINENO"; then :
4725
  ac_cv_search_dlopen=$ac_res
4726
fi
4727
rm -f core conftest.err conftest.$ac_objext \
4728
    conftest$ac_exeext
4729
  if test "${ac_cv_search_dlopen+set}" = set; then :
4730
  break
4731
fi
4732
done
4733
if test "${ac_cv_search_dlopen+set}" = set; then :
4734
5303
else
4735
else
5304
  ac_cv_path_GREP=$GREP
4736
  ac_cv_search_dlopen=no
4737
fi
4738
rm conftest.$ac_ext
4739
LIBS=$ac_func_search_save_LIBS
5305
fi
4740
fi
4741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4742
$as_echo "$ac_cv_search_dlopen" >&6; }
4743
ac_res=$ac_cv_search_dlopen
4744
if test "$ac_res" != no; then :
4745
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5306
4746
4747
else
4748
  has_dlopen=no
5307
fi
4749
fi
5308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5309
$as_echo "$ac_cv_path_GREP" >&6; }
5310
 GREP="$ac_cv_path_GREP"
5311
4750
4751
  for ac_func in dlopen dlsym dlclose
4752
do :
4753
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4754
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4755
eval as_val=\$$as_ac_var
4756
   if test "x$as_val" = x""yes; then :
4757
  cat >>confdefs.h <<_ACEOF
4758
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4759
_ACEOF
5312
4760
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5314
$as_echo_n "checking for egrep... " >&6; }
5315
if test "${ac_cv_path_EGREP+set}" = set; then :
5316
  $as_echo_n "(cached) " >&6
5317
else
4761
else
5318
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4762
  has_dlopen=no
5319
   then ac_cv_path_EGREP="$GREP -E"
4763
fi
5320
   else
4764
done
5321
     if test -z "$EGREP"; then
4765
5322
  ac_path_EGREP_found=false
4766
fi
5323
  # Loop through the user's path and test for each of PROGNAME-LIST
4767
 if test "$plugins" = "yes"; then
5324
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768
  PLUGINS_TRUE=
5325
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4769
  PLUGINS_FALSE='#'
5326
do
4770
else
5327
  IFS=$as_save_IFS
4771
  PLUGINS_TRUE='#'
5328
  test -z "$as_dir" && as_dir=.
4772
  PLUGINS_FALSE=
5329
    for ac_prog in egrep; do
4773
fi
5330
    for ac_exec_ext in '' $ac_executable_extensions; do
4774
5331
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4775
5332
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4776
# Check whether --enable-targets was given.
5333
# Check for GNU ac_path_EGREP and select it if it is found.
4777
if test "${enable_targets+set}" = set; then :
5334
  # Check for GNU $ac_path_EGREP
4778
  enableval=$enable_targets; case "${enableval}" in
5335
case `"$ac_path_EGREP" --version 2>&1` in
4779
  yes | "")
5336
*GNU*)
4780
    as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
5337
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4781
    ;;
5338
*)
4782
  no)
5339
  ac_count=0
4783
    enable_targets=
5340
  $as_echo_n 0123456789 >"conftest.in"
4784
    ;;
5341
  while :
4785
  *)
5342
  do
4786
    enable_targets=$enableval
5343
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4787
    ;;
5344
    mv "conftest.tmp" "conftest.in"
5345
    cp "conftest.in" "conftest.nl"
5346
    $as_echo 'EGREP' >> "conftest.nl"
5347
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5350
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5351
      # Best one so far, save it but keep looking for a better one
5352
      ac_cv_path_EGREP="$ac_path_EGREP"
5353
      ac_path_EGREP_max=$ac_count
5354
    fi
5355
    # 10*(2^10) chars as input seems more than enough
5356
    test $ac_count -gt 10 && break
5357
  done
5358
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359
esac
4788
esac
4789
else
4790
  # For now, enable all targets by default
4791
 enable_targets=all
5360
4792
5361
      $ac_path_EGREP_found && break 3
4793
fi
5362
    done
4794
5363
  done
4795
4796
# Canonicalize the enabled targets.
4797
if test -n "$enable_targets"; then
4798
  for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
4799
    result=`$ac_config_sub $targ 2>/dev/null`
4800
    if test -n "$result"; then
4801
      canon_targets="$canon_targets $result"
4802
    else
4803
      # Permit unrecognized target names, like "all".
4804
      canon_targets="$canon_targets $targ"
4805
    fi
5364
  done
4806
  done
5365
IFS=$as_save_IFS
4807
fi
5366
  if test -z "$ac_cv_path_EGREP"; then
4808
5367
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809
# See which specific instantiations we need.
5368
  fi
4810
targetobjs=
4811
all_targets=
4812
default_machine=
4813
default_size=
4814
default_big_endian=
4815
default_osabi=ELFOSABI_NONE
4816
targ_32_little=
4817
targ_32_big=
4818
targ_64_little=
4819
targ_64_big=
4820
for targ in $target $canon_targets; do
4821
  if test "$targ" = "all"; then
4822
    targ_32_little=yes
4823
    targ_32_big=yes
4824
    targ_64_little=yes
4825
    targ_64_big=yes
4826
    all_targets=yes
4827
  else
4828
    . ${srcdir}/configure.tgt
4829
4830
    if test "$targ_obj" = "UNKNOWN"; then
4831
      as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
4832
    else
4833
      targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
4834
      if test "$targ_extra_obj" != ""; then
4835
        targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
4836
      fi
4837
      if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
4838
	  if test "$targ_big_endian" = "true" \
4839
	      -o "$targ_extra_big_endian" = "true"; then
4840
	      targ_32_big=yes
4841
	  fi
4842
	  if test "$targ_big_endian" = "false" \
4843
	      -o "$targ_extra_big_endian" = "false"; then
4844
	      targ_32_little=yes
4845
	  fi
4846
      fi
4847
      if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
4848
	  if test "$targ_big_endian" = "true" \
4849
	      -o "$targ_extra_big_endian" = "true"; then
4850
	      targ_64_big=yes
4851
	  fi
4852
	  if test "$targ_big_endian" = "false" \
4853
	      -o "$targ_extra_big_endian" = "false"; then
4854
	      targ_64_little=yes
4855
	  fi
4856
      fi
4857
4858
      if test "$target" = "$targ"; then
4859
        default_machine=$targ_machine
4860
	default_size=$targ_size
4861
	default_big_endian=$targ_big_endian
4862
	default_osabi=$targ_osabi
4863
4864
	 if test "$targ_obj" = "arm"; then
4865
  DEFAULT_TARGET_ARM_TRUE=
4866
  DEFAULT_TARGET_ARM_FALSE='#'
4867
else
4868
  DEFAULT_TARGET_ARM_TRUE='#'
4869
  DEFAULT_TARGET_ARM_FALSE=
4870
fi
4871
4872
	 if test "$targ_obj" = "i386"; then
4873
  DEFAULT_TARGET_I386_TRUE=
4874
  DEFAULT_TARGET_I386_FALSE='#'
4875
else
4876
  DEFAULT_TARGET_I386_TRUE='#'
4877
  DEFAULT_TARGET_I386_FALSE=
4878
fi
4879
4880
	 if test "$targ_obj" = "powerpc"; then
4881
  DEFAULT_TARGET_POWERPC_TRUE=
4882
  DEFAULT_TARGET_POWERPC_FALSE='#'
4883
else
4884
  DEFAULT_TARGET_POWERPC_TRUE='#'
4885
  DEFAULT_TARGET_POWERPC_FALSE=
4886
fi
4887
4888
	 if test "$targ_obj" = "sparc"; then
4889
  DEFAULT_TARGET_SPARC_TRUE=
4890
  DEFAULT_TARGET_SPARC_FALSE='#'
4891
else
4892
  DEFAULT_TARGET_SPARC_TRUE='#'
4893
  DEFAULT_TARGET_SPARC_FALSE=
4894
fi
4895
4896
	 if test "$targ_obj" = "x86_64"; then
4897
  DEFAULT_TARGET_X86_64_TRUE=
4898
  DEFAULT_TARGET_X86_64_FALSE='#'
4899
else
4900
  DEFAULT_TARGET_X86_64_TRUE='#'
4901
  DEFAULT_TARGET_X86_64_FALSE=
4902
fi
4903
4904
      fi
4905
    fi
4906
  fi
4907
done
4908
4909
# Remove any duplicates.
4910
to=""
4911
for t in $targetobjs; do
4912
  case " $to " in
4913
  *" $t "*) ;;
4914
  *) to="$to $t" ;;
4915
  esac
4916
done
4917
targetobjs=$to
4918
4919
if test -n "$targ_32_little"; then
4920
4921
$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
4922
4923
fi
4924
if test -n "$targ_32_big"; then
4925
4926
$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
4927
4928
fi
4929
if test -n "$targ_64_little"; then
4930
4931
$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
4932
4933
fi
4934
if test -n "$targ_64_big"; then
4935
4936
$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
4937
4938
fi
4939
4940
if test -n "$all_targets"; then
4941
  TARGETOBJS='$(ALL_TARGETOBJS)'
4942
else
4943
  TARGETOBJS="$targetobjs"
4944
fi
4945
4946
4947
4948
cat >>confdefs.h <<_ACEOF
4949
#define GOLD_DEFAULT_MACHINE $default_machine
4950
_ACEOF
4951
4952
4953
cat >>confdefs.h <<_ACEOF
4954
#define GOLD_DEFAULT_SIZE $default_size
4955
_ACEOF
4956
4957
4958
cat >>confdefs.h <<_ACEOF
4959
#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
4960
_ACEOF
4961
4962
4963
cat >>confdefs.h <<_ACEOF
4964
#define GOLD_DEFAULT_OSABI $default_osabi
4965
_ACEOF
4966
4967
4968
if test -n "$ac_tool_prefix"; then
4969
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4970
set dummy ${ac_tool_prefix}nm; ac_word=$2
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972
$as_echo_n "checking for $ac_word... " >&6; }
4973
if test "${ac_cv_prog_NM+set}" = set; then :
4974
  $as_echo_n "(cached) " >&6
4975
else
4976
  if test -n "$NM"; then
4977
  ac_cv_prog_NM="$NM" # Let the user override the test.
4978
else
4979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980
for as_dir in $PATH
4981
do
4982
  IFS=$as_save_IFS
4983
  test -z "$as_dir" && as_dir=.
4984
    for ac_exec_ext in '' $ac_executable_extensions; do
4985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986
    ac_cv_prog_NM="${ac_tool_prefix}nm"
4987
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988
    break 2
4989
  fi
4990
done
4991
  done
4992
IFS=$as_save_IFS
4993
4994
fi
4995
fi
4996
NM=$ac_cv_prog_NM
4997
if test -n "$NM"; then
4998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4999
$as_echo "$NM" >&6; }
5000
else
5001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002
$as_echo "no" >&6; }
5003
fi
5004
5005
5006
fi
5007
if test -z "$ac_cv_prog_NM"; then
5008
  ac_ct_NM=$NM
5009
  # Extract the first word of "nm", so it can be a program name with args.
5010
set dummy nm; ac_word=$2
5011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012
$as_echo_n "checking for $ac_word... " >&6; }
5013
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5014
  $as_echo_n "(cached) " >&6
5015
else
5016
  if test -n "$ac_ct_NM"; then
5017
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5018
else
5019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020
for as_dir in $PATH
5021
do
5022
  IFS=$as_save_IFS
5023
  test -z "$as_dir" && as_dir=.
5024
    for ac_exec_ext in '' $ac_executable_extensions; do
5025
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026
    ac_cv_prog_ac_ct_NM="nm"
5027
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028
    break 2
5029
  fi
5030
done
5031
  done
5032
IFS=$as_save_IFS
5033
5034
fi
5035
fi
5036
ac_ct_NM=$ac_cv_prog_ac_ct_NM
5037
if test -n "$ac_ct_NM"; then
5038
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5039
$as_echo "$ac_ct_NM" >&6; }
5040
else
5041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042
$as_echo "no" >&6; }
5043
fi
5044
5045
  if test "x$ac_ct_NM" = x; then
5046
    NM=""
5047
  else
5048
    case $cross_compiling:$ac_tool_warned in
5049
yes:)
5050
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052
ac_tool_warned=yes ;;
5053
esac
5054
    NM=$ac_ct_NM
5055
  fi
5056
else
5057
  NM="$ac_cv_prog_NM"
5058
fi
5059
5060
5061
ac_ext=c
5062
ac_cpp='$CPP $CPPFLAGS'
5063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
if test -n "$ac_tool_prefix"; then
5067
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5068
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070
$as_echo_n "checking for $ac_word... " >&6; }
5071
if test "${ac_cv_prog_CC+set}" = set; then :
5072
  $as_echo_n "(cached) " >&6
5073
else
5074
  if test -n "$CC"; then
5075
  ac_cv_prog_CC="$CC" # Let the user override the test.
5076
else
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
5082
    for ac_exec_ext in '' $ac_executable_extensions; do
5083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5085
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086
    break 2
5087
  fi
5088
done
5089
  done
5090
IFS=$as_save_IFS
5091
5092
fi
5093
fi
5094
CC=$ac_cv_prog_CC
5095
if test -n "$CC"; then
5096
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5097
$as_echo "$CC" >&6; }
5098
else
5099
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100
$as_echo "no" >&6; }
5101
fi
5102
5103
5104
fi
5105
if test -z "$ac_cv_prog_CC"; then
5106
  ac_ct_CC=$CC
5107
  # Extract the first word of "gcc", so it can be a program name with args.
5108
set dummy gcc; ac_word=$2
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110
$as_echo_n "checking for $ac_word... " >&6; }
5111
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5112
  $as_echo_n "(cached) " >&6
5113
else
5114
  if test -n "$ac_ct_CC"; then
5115
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5116
else
5117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118
for as_dir in $PATH
5119
do
5120
  IFS=$as_save_IFS
5121
  test -z "$as_dir" && as_dir=.
5122
    for ac_exec_ext in '' $ac_executable_extensions; do
5123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124
    ac_cv_prog_ac_ct_CC="gcc"
5125
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126
    break 2
5127
  fi
5128
done
5129
  done
5130
IFS=$as_save_IFS
5131
5132
fi
5133
fi
5134
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5135
if test -n "$ac_ct_CC"; then
5136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5137
$as_echo "$ac_ct_CC" >&6; }
5138
else
5139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140
$as_echo "no" >&6; }
5141
fi
5142
5143
  if test "x$ac_ct_CC" = x; then
5144
    CC=""
5145
  else
5146
    case $cross_compiling:$ac_tool_warned in
5147
yes:)
5148
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150
ac_tool_warned=yes ;;
5151
esac
5152
    CC=$ac_ct_CC
5153
  fi
5154
else
5155
  CC="$ac_cv_prog_CC"
5156
fi
5157
5158
if test -z "$CC"; then
5159
          if test -n "$ac_tool_prefix"; then
5160
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5161
set dummy ${ac_tool_prefix}cc; ac_word=$2
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163
$as_echo_n "checking for $ac_word... " >&6; }
5164
if test "${ac_cv_prog_CC+set}" = set; then :
5165
  $as_echo_n "(cached) " >&6
5166
else
5167
  if test -n "$CC"; then
5168
  ac_cv_prog_CC="$CC" # Let the user override the test.
5169
else
5170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171
for as_dir in $PATH
5172
do
5173
  IFS=$as_save_IFS
5174
  test -z "$as_dir" && as_dir=.
5175
    for ac_exec_ext in '' $ac_executable_extensions; do
5176
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177
    ac_cv_prog_CC="${ac_tool_prefix}cc"
5178
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179
    break 2
5180
  fi
5181
done
5182
  done
5183
IFS=$as_save_IFS
5184
5185
fi
5186
fi
5187
CC=$ac_cv_prog_CC
5188
if test -n "$CC"; then
5189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5190
$as_echo "$CC" >&6; }
5191
else
5192
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193
$as_echo "no" >&6; }
5194
fi
5195
5196
5197
  fi
5198
fi
5199
if test -z "$CC"; then
5200
  # Extract the first word of "cc", so it can be a program name with args.
5201
set dummy cc; ac_word=$2
5202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203
$as_echo_n "checking for $ac_word... " >&6; }
5204
if test "${ac_cv_prog_CC+set}" = set; then :
5205
  $as_echo_n "(cached) " >&6
5206
else
5207
  if test -n "$CC"; then
5208
  ac_cv_prog_CC="$CC" # Let the user override the test.
5209
else
5210
  ac_prog_rejected=no
5211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212
for as_dir in $PATH
5213
do
5214
  IFS=$as_save_IFS
5215
  test -z "$as_dir" && as_dir=.
5216
    for ac_exec_ext in '' $ac_executable_extensions; do
5217
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5219
       ac_prog_rejected=yes
5220
       continue
5221
     fi
5222
    ac_cv_prog_CC="cc"
5223
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224
    break 2
5225
  fi
5226
done
5227
  done
5228
IFS=$as_save_IFS
5229
5230
if test $ac_prog_rejected = yes; then
5231
  # We found a bogon in the path, so make sure we never use it.
5232
  set dummy $ac_cv_prog_CC
5233
  shift
5234
  if test $# != 0; then
5235
    # We chose a different compiler from the bogus one.
5236
    # However, it has the same basename, so the bogon will be chosen
5237
    # first if we set CC to just the basename; use the full file name.
5238
    shift
5239
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5240
  fi
5241
fi
5242
fi
5243
fi
5244
CC=$ac_cv_prog_CC
5245
if test -n "$CC"; then
5246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5247
$as_echo "$CC" >&6; }
5248
else
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250
$as_echo "no" >&6; }
5251
fi
5252
5253
5254
fi
5255
if test -z "$CC"; then
5256
  if test -n "$ac_tool_prefix"; then
5257
  for ac_prog in cl.exe
5258
  do
5259
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5260
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262
$as_echo_n "checking for $ac_word... " >&6; }
5263
if test "${ac_cv_prog_CC+set}" = set; then :
5264
  $as_echo_n "(cached) " >&6
5265
else
5266
  if test -n "$CC"; then
5267
  ac_cv_prog_CC="$CC" # Let the user override the test.
5268
else
5269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270
for as_dir in $PATH
5271
do
5272
  IFS=$as_save_IFS
5273
  test -z "$as_dir" && as_dir=.
5274
    for ac_exec_ext in '' $ac_executable_extensions; do
5275
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5277
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278
    break 2
5279
  fi
5280
done
5281
  done
5282
IFS=$as_save_IFS
5283
5284
fi
5285
fi
5286
CC=$ac_cv_prog_CC
5287
if test -n "$CC"; then
5288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5289
$as_echo "$CC" >&6; }
5290
else
5291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292
$as_echo "no" >&6; }
5293
fi
5294
5295
5296
    test -n "$CC" && break
5297
  done
5298
fi
5299
if test -z "$CC"; then
5300
  ac_ct_CC=$CC
5301
  for ac_prog in cl.exe
5302
do
5303
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5304
set dummy $ac_prog; ac_word=$2
5305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306
$as_echo_n "checking for $ac_word... " >&6; }
5307
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5308
  $as_echo_n "(cached) " >&6
5309
else
5310
  if test -n "$ac_ct_CC"; then
5311
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5312
else
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314
for as_dir in $PATH
5315
do
5316
  IFS=$as_save_IFS
5317
  test -z "$as_dir" && as_dir=.
5318
    for ac_exec_ext in '' $ac_executable_extensions; do
5319
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320
    ac_cv_prog_ac_ct_CC="$ac_prog"
5321
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322
    break 2
5323
  fi
5324
done
5325
  done
5326
IFS=$as_save_IFS
5327
5328
fi
5329
fi
5330
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5331
if test -n "$ac_ct_CC"; then
5332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5333
$as_echo "$ac_ct_CC" >&6; }
5334
else
5335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336
$as_echo "no" >&6; }
5337
fi
5338
5339
5340
  test -n "$ac_ct_CC" && break
5341
done
5342
5343
  if test "x$ac_ct_CC" = x; then
5344
    CC=""
5345
  else
5346
    case $cross_compiling:$ac_tool_warned in
5347
yes:)
5348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350
ac_tool_warned=yes ;;
5351
esac
5352
    CC=$ac_ct_CC
5353
  fi
5354
fi
5355
5356
fi
5357
5358
5359
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361
as_fn_error "no acceptable C compiler found in \$PATH
5362
See \`config.log' for more details." "$LINENO" 5; }
5363
5364
# Provide some information about the compiler.
5365
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5366
set X $ac_compile
5367
ac_compiler=$2
5368
for ac_option in --version -v -V -qversion; do
5369
  { { ac_try="$ac_compiler $ac_option >&5"
5370
case "(($ac_try" in
5371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372
  *) ac_try_echo=$ac_try;;
5373
esac
5374
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5375
$as_echo "$ac_try_echo"; } >&5
5376
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5377
  ac_status=$?
5378
  if test -s conftest.err; then
5379
    sed '10a\
5380
... rest of stderr output deleted ...
5381
         10q' conftest.err >conftest.er1
5382
    cat conftest.er1 >&5
5383
    rm -f conftest.er1 conftest.err
5384
  fi
5385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5386
  test $ac_status = 0; }
5387
done
5388
5389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5390
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5391
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5392
  $as_echo_n "(cached) " >&6
5393
else
5394
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395
/* end confdefs.h.  */
5396
5397
int
5398
main ()
5399
{
5400
#ifndef __GNUC__
5401
       choke me
5402
#endif
5403
5404
  ;
5405
  return 0;
5406
}
5407
_ACEOF
5408
if ac_fn_c_try_compile "$LINENO"; then :
5409
  ac_compiler_gnu=yes
5410
else
5411
  ac_compiler_gnu=no
5412
fi
5413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5415
5416
fi
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5418
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5419
if test $ac_compiler_gnu = yes; then
5420
  GCC=yes
5421
else
5422
  GCC=
5423
fi
5424
ac_test_CFLAGS=${CFLAGS+set}
5425
ac_save_CFLAGS=$CFLAGS
5426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5427
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5428
if test "${ac_cv_prog_cc_g+set}" = set; then :
5429
  $as_echo_n "(cached) " >&6
5430
else
5431
  ac_save_c_werror_flag=$ac_c_werror_flag
5432
   ac_c_werror_flag=yes
5433
   ac_cv_prog_cc_g=no
5434
   CFLAGS="-g"
5435
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436
/* end confdefs.h.  */
5437
5438
int
5439
main ()
5440
{
5441
5442
  ;
5443
  return 0;
5444
}
5445
_ACEOF
5446
if ac_fn_c_try_compile "$LINENO"; then :
5447
  ac_cv_prog_cc_g=yes
5448
else
5449
  CFLAGS=""
5450
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451
/* end confdefs.h.  */
5452
5453
int
5454
main ()
5455
{
5456
5457
  ;
5458
  return 0;
5459
}
5460
_ACEOF
5461
if ac_fn_c_try_compile "$LINENO"; then :
5462
5463
else
5464
  ac_c_werror_flag=$ac_save_c_werror_flag
5465
	 CFLAGS="-g"
5466
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467
/* end confdefs.h.  */
5468
5469
int
5470
main ()
5471
{
5472
5473
  ;
5474
  return 0;
5475
}
5476
_ACEOF
5477
if ac_fn_c_try_compile "$LINENO"; then :
5478
  ac_cv_prog_cc_g=yes
5479
fi
5480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
fi
5482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483
fi
5484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485
   ac_c_werror_flag=$ac_save_c_werror_flag
5486
fi
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5488
$as_echo "$ac_cv_prog_cc_g" >&6; }
5489
if test "$ac_test_CFLAGS" = set; then
5490
  CFLAGS=$ac_save_CFLAGS
5491
elif test $ac_cv_prog_cc_g = yes; then
5492
  if test "$GCC" = yes; then
5493
    CFLAGS="-g -O2"
5494
  else
5495
    CFLAGS="-g"
5496
  fi
5497
else
5498
  if test "$GCC" = yes; then
5499
    CFLAGS="-O2"
5500
  else
5501
    CFLAGS=
5502
  fi
5503
fi
5504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5505
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5506
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5507
  $as_echo_n "(cached) " >&6
5508
else
5509
  ac_cv_prog_cc_c89=no
5510
ac_save_CC=$CC
5511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512
/* end confdefs.h.  */
5513
#include <stdarg.h>
5514
#include <stdio.h>
5515
#include <sys/types.h>
5516
#include <sys/stat.h>
5517
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5518
struct buf { int x; };
5519
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5520
static char *e (p, i)
5521
     char **p;
5522
     int i;
5523
{
5524
  return p[i];
5525
}
5526
static char *f (char * (*g) (char **, int), char **p, ...)
5527
{
5528
  char *s;
5529
  va_list v;
5530
  va_start (v,p);
5531
  s = g (p, va_arg (v,int));
5532
  va_end (v);
5533
  return s;
5534
}
5535
5536
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5537
   function prototypes and stuff, but not '\xHH' hex character constants.
5538
   These don't provoke an error unfortunately, instead are silently treated
5539
   as 'x'.  The following induces an error, until -std is added to get
5540
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5541
   array size at least.  It's necessary to write '\x00'==0 to get something
5542
   that's true only with -std.  */
5543
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5544
5545
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5546
   inside strings and character constants.  */
5547
#define FOO(x) 'x'
5548
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5549
5550
int test (int i, double x);
5551
struct s1 {int (*f) (int a);};
5552
struct s2 {int (*f) (double a);};
5553
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5554
int argc;
5555
char **argv;
5556
int
5557
main ()
5558
{
5559
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5560
  ;
5561
  return 0;
5562
}
5563
_ACEOF
5564
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5565
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5566
do
5567
  CC="$ac_save_CC $ac_arg"
5568
  if ac_fn_c_try_compile "$LINENO"; then :
5569
  ac_cv_prog_cc_c89=$ac_arg
5570
fi
5571
rm -f core conftest.err conftest.$ac_objext
5572
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5573
done
5574
rm -f conftest.$ac_ext
5575
CC=$ac_save_CC
5576
5577
fi
5578
# AC_CACHE_VAL
5579
case "x$ac_cv_prog_cc_c89" in
5580
  x)
5581
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5582
$as_echo "none needed" >&6; } ;;
5583
  xno)
5584
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5585
$as_echo "unsupported" >&6; } ;;
5586
  *)
5587
    CC="$CC $ac_cv_prog_cc_c89"
5588
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5589
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5590
esac
5591
if test "x$ac_cv_prog_cc_c89" != xno; then :
5592
5593
fi
5594
5595
ac_ext=c
5596
ac_cpp='$CPP $CPPFLAGS'
5597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601
depcc="$CC"   am_compiler_list=
5602
5603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5604
$as_echo_n "checking dependency style of $depcc... " >&6; }
5605
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5606
  $as_echo_n "(cached) " >&6
5607
else
5608
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5609
  # We make a subdir and do the tests there.  Otherwise we can end up
5610
  # making bogus files that we don't know about and never remove.  For
5611
  # instance it was reported that on HP-UX the gcc test will end up
5612
  # making a dummy file named `D' -- because `-MD' means `put the output
5613
  # in D'.
5614
  mkdir conftest.dir
5615
  # Copy depcomp to subdir because otherwise we won't find it if we're
5616
  # using a relative directory.
5617
  cp "$am_depcomp" conftest.dir
5618
  cd conftest.dir
5619
  # We will build objects and dependencies in a subdirectory because
5620
  # it helps to detect inapplicable dependency modes.  For instance
5621
  # both Tru64's cc and ICC support -MD to output dependencies as a
5622
  # side effect of compilation, but ICC will put the dependencies in
5623
  # the current directory while Tru64 will put them in the object
5624
  # directory.
5625
  mkdir sub
5626
5627
  am_cv_CC_dependencies_compiler_type=none
5628
  if test "$am_compiler_list" = ""; then
5629
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5630
  fi
5631
  am__universal=false
5632
  case " $depcc " in #(
5633
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5634
     esac
5635
5636
  for depmode in $am_compiler_list; do
5637
    # Setup a source with many dependencies, because some compilers
5638
    # like to wrap large dependency lists on column 80 (with \), and
5639
    # we should not choose a depcomp mode which is confused by this.
5640
    #
5641
    # We need to recreate these files for each test, as the compiler may
5642
    # overwrite some of them when testing with obscure command lines.
5643
    # This happens at least with the AIX C compiler.
5644
    : > sub/conftest.c
5645
    for i in 1 2 3 4 5 6; do
5646
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5647
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5648
      # Solaris 8's {/usr,}/bin/sh.
5649
      touch sub/conftst$i.h
5650
    done
5651
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5652
5653
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5654
    # mode.  It turns out that the SunPro C++ compiler does not properly
5655
    # handle `-M -o', and we need to detect this.  Also, some Intel
5656
    # versions had trouble with output in subdirs
5657
    am__obj=sub/conftest.${OBJEXT-o}
5658
    am__minus_obj="-o $am__obj"
5659
    case $depmode in
5660
    gcc)
5661
      # This depmode causes a compiler race in universal mode.
5662
      test "$am__universal" = false || continue
5663
      ;;
5664
    nosideeffect)
5665
      # after this tag, mechanisms are not by side-effect, so they'll
5666
      # only be used when explicitly requested
5667
      if test "x$enable_dependency_tracking" = xyes; then
5668
	continue
5669
      else
5670
	break
5671
      fi
5672
      ;;
5673
    msvisualcpp | msvcmsys)
5674
      # This compiler won't grok `-c -o', but also, the minuso test has
5675
      # not run yet.  These depmodes are late enough in the game, and
5676
      # so weak that their functioning should not be impacted.
5677
      am__obj=conftest.${OBJEXT-o}
5678
      am__minus_obj=
5679
      ;;
5680
    none) break ;;
5681
    esac
5682
    if depmode=$depmode \
5683
       source=sub/conftest.c object=$am__obj \
5684
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5686
         >/dev/null 2>conftest.err &&
5687
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5688
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5689
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5690
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5691
      # icc doesn't choke on unknown options, it will just issue warnings
5692
      # or remarks (even with -Werror).  So we grep stderr for any message
5693
      # that says an option was ignored or not supported.
5694
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5695
      #   icc: Command line warning: ignoring option '-M'; no argument required
5696
      # The diagnosis changed in icc 8.0:
5697
      #   icc: Command line remark: option '-MP' not supported
5698
      if (grep 'ignoring option' conftest.err ||
5699
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5700
        am_cv_CC_dependencies_compiler_type=$depmode
5701
        break
5702
      fi
5703
    fi
5704
  done
5705
5706
  cd ..
5707
  rm -rf conftest.dir
5708
else
5709
  am_cv_CC_dependencies_compiler_type=none
5710
fi
5711
5712
fi
5713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5714
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5715
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5716
5717
 if
5718
  test "x$enable_dependency_tracking" != xno \
5719
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5720
  am__fastdepCC_TRUE=
5721
  am__fastdepCC_FALSE='#'
5722
else
5723
  am__fastdepCC_TRUE='#'
5724
  am__fastdepCC_FALSE=
5725
fi
5726
5727
5728
ac_ext=cpp
5729
ac_cpp='$CXXCPP $CPPFLAGS'
5730
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733
if test -z "$CXX"; then
5734
  if test -n "$CCC"; then
5735
    CXX=$CCC
5736
  else
5737
    if test -n "$ac_tool_prefix"; then
5738
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5739
  do
5740
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5741
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743
$as_echo_n "checking for $ac_word... " >&6; }
5744
if test "${ac_cv_prog_CXX+set}" = set; then :
5745
  $as_echo_n "(cached) " >&6
5746
else
5747
  if test -n "$CXX"; then
5748
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5749
else
5750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751
for as_dir in $PATH
5752
do
5753
  IFS=$as_save_IFS
5754
  test -z "$as_dir" && as_dir=.
5755
    for ac_exec_ext in '' $ac_executable_extensions; do
5756
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759
    break 2
5760
  fi
5761
done
5762
  done
5763
IFS=$as_save_IFS
5764
5765
fi
5766
fi
5767
CXX=$ac_cv_prog_CXX
5768
if test -n "$CXX"; then
5769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5770
$as_echo "$CXX" >&6; }
5771
else
5772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773
$as_echo "no" >&6; }
5774
fi
5775
5776
5777
    test -n "$CXX" && break
5778
  done
5779
fi
5780
if test -z "$CXX"; then
5781
  ac_ct_CXX=$CXX
5782
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5783
do
5784
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5785
set dummy $ac_prog; ac_word=$2
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787
$as_echo_n "checking for $ac_word... " >&6; }
5788
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5789
  $as_echo_n "(cached) " >&6
5790
else
5791
  if test -n "$ac_ct_CXX"; then
5792
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5793
else
5794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795
for as_dir in $PATH
5796
do
5797
  IFS=$as_save_IFS
5798
  test -z "$as_dir" && as_dir=.
5799
    for ac_exec_ext in '' $ac_executable_extensions; do
5800
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5802
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803
    break 2
5804
  fi
5805
done
5806
  done
5807
IFS=$as_save_IFS
5808
5809
fi
5810
fi
5811
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5812
if test -n "$ac_ct_CXX"; then
5813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5814
$as_echo "$ac_ct_CXX" >&6; }
5815
else
5816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817
$as_echo "no" >&6; }
5818
fi
5819
5820
5821
  test -n "$ac_ct_CXX" && break
5822
done
5823
5824
  if test "x$ac_ct_CXX" = x; then
5825
    CXX="g++"
5826
  else
5827
    case $cross_compiling:$ac_tool_warned in
5828
yes:)
5829
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5830
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831
ac_tool_warned=yes ;;
5832
esac
5833
    CXX=$ac_ct_CXX
5834
  fi
5835
fi
5836
5837
  fi
5838
fi
5839
# Provide some information about the compiler.
5840
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5841
set X $ac_compile
5842
ac_compiler=$2
5843
for ac_option in --version -v -V -qversion; do
5844
  { { ac_try="$ac_compiler $ac_option >&5"
5845
case "(($ac_try" in
5846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847
  *) ac_try_echo=$ac_try;;
5848
esac
5849
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5850
$as_echo "$ac_try_echo"; } >&5
5851
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5852
  ac_status=$?
5853
  if test -s conftest.err; then
5854
    sed '10a\
5855
... rest of stderr output deleted ...
5856
         10q' conftest.err >conftest.er1
5857
    cat conftest.er1 >&5
5858
    rm -f conftest.er1 conftest.err
5859
  fi
5860
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5861
  test $ac_status = 0; }
5862
done
5863
5864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5865
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5866
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5867
  $as_echo_n "(cached) " >&6
5868
else
5869
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870
/* end confdefs.h.  */
5871
5872
int
5873
main ()
5874
{
5875
#ifndef __GNUC__
5876
       choke me
5877
#endif
5878
5879
  ;
5880
  return 0;
5881
}
5882
_ACEOF
5883
if ac_fn_cxx_try_compile "$LINENO"; then :
5884
  ac_compiler_gnu=yes
5885
else
5886
  ac_compiler_gnu=no
5887
fi
5888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5890
5891
fi
5892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5893
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5894
if test $ac_compiler_gnu = yes; then
5895
  GXX=yes
5896
else
5897
  GXX=
5898
fi
5899
ac_test_CXXFLAGS=${CXXFLAGS+set}
5900
ac_save_CXXFLAGS=$CXXFLAGS
5901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5902
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5903
if test "${ac_cv_prog_cxx_g+set}" = set; then :
5904
  $as_echo_n "(cached) " >&6
5905
else
5906
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5907
   ac_cxx_werror_flag=yes
5908
   ac_cv_prog_cxx_g=no
5909
   CXXFLAGS="-g"
5910
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911
/* end confdefs.h.  */
5912
5913
int
5914
main ()
5915
{
5916
5917
  ;
5918
  return 0;
5919
}
5920
_ACEOF
5921
if ac_fn_cxx_try_compile "$LINENO"; then :
5922
  ac_cv_prog_cxx_g=yes
5923
else
5924
  CXXFLAGS=""
5925
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926
/* end confdefs.h.  */
5927
5928
int
5929
main ()
5930
{
5931
5932
  ;
5933
  return 0;
5934
}
5935
_ACEOF
5936
if ac_fn_cxx_try_compile "$LINENO"; then :
5937
5938
else
5939
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5940
	 CXXFLAGS="-g"
5941
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942
/* end confdefs.h.  */
5943
5944
int
5945
main ()
5946
{
5947
5948
  ;
5949
  return 0;
5950
}
5951
_ACEOF
5952
if ac_fn_cxx_try_compile "$LINENO"; then :
5953
  ac_cv_prog_cxx_g=yes
5954
fi
5955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956
fi
5957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958
fi
5959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5961
fi
5962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5963
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5964
if test "$ac_test_CXXFLAGS" = set; then
5965
  CXXFLAGS=$ac_save_CXXFLAGS
5966
elif test $ac_cv_prog_cxx_g = yes; then
5967
  if test "$GXX" = yes; then
5968
    CXXFLAGS="-g -O2"
5969
  else
5970
    CXXFLAGS="-g"
5971
  fi
5972
else
5973
  if test "$GXX" = yes; then
5974
    CXXFLAGS="-O2"
5975
  else
5976
    CXXFLAGS=
5977
  fi
5978
fi
5979
ac_ext=c
5980
ac_cpp='$CPP $CPPFLAGS'
5981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
5985
depcc="$CXX"  am_compiler_list=
5986
5987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5988
$as_echo_n "checking dependency style of $depcc... " >&6; }
5989
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5990
  $as_echo_n "(cached) " >&6
5991
else
5992
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5993
  # We make a subdir and do the tests there.  Otherwise we can end up
5994
  # making bogus files that we don't know about and never remove.  For
5995
  # instance it was reported that on HP-UX the gcc test will end up
5996
  # making a dummy file named `D' -- because `-MD' means `put the output
5997
  # in D'.
5998
  mkdir conftest.dir
5999
  # Copy depcomp to subdir because otherwise we won't find it if we're
6000
  # using a relative directory.
6001
  cp "$am_depcomp" conftest.dir
6002
  cd conftest.dir
6003
  # We will build objects and dependencies in a subdirectory because
6004
  # it helps to detect inapplicable dependency modes.  For instance
6005
  # both Tru64's cc and ICC support -MD to output dependencies as a
6006
  # side effect of compilation, but ICC will put the dependencies in
6007
  # the current directory while Tru64 will put them in the object
6008
  # directory.
6009
  mkdir sub
6010
6011
  am_cv_CXX_dependencies_compiler_type=none
6012
  if test "$am_compiler_list" = ""; then
6013
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6014
  fi
6015
  am__universal=false
6016
  case " $depcc " in #(
6017
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6018
     esac
6019
6020
  for depmode in $am_compiler_list; do
6021
    # Setup a source with many dependencies, because some compilers
6022
    # like to wrap large dependency lists on column 80 (with \), and
6023
    # we should not choose a depcomp mode which is confused by this.
6024
    #
6025
    # We need to recreate these files for each test, as the compiler may
6026
    # overwrite some of them when testing with obscure command lines.
6027
    # This happens at least with the AIX C compiler.
6028
    : > sub/conftest.c
6029
    for i in 1 2 3 4 5 6; do
6030
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6031
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6032
      # Solaris 8's {/usr,}/bin/sh.
6033
      touch sub/conftst$i.h
6034
    done
6035
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6036
6037
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6038
    # mode.  It turns out that the SunPro C++ compiler does not properly
6039
    # handle `-M -o', and we need to detect this.  Also, some Intel
6040
    # versions had trouble with output in subdirs
6041
    am__obj=sub/conftest.${OBJEXT-o}
6042
    am__minus_obj="-o $am__obj"
6043
    case $depmode in
6044
    gcc)
6045
      # This depmode causes a compiler race in universal mode.
6046
      test "$am__universal" = false || continue
6047
      ;;
6048
    nosideeffect)
6049
      # after this tag, mechanisms are not by side-effect, so they'll
6050
      # only be used when explicitly requested
6051
      if test "x$enable_dependency_tracking" = xyes; then
6052
	continue
6053
      else
6054
	break
6055
      fi
6056
      ;;
6057
    msvisualcpp | msvcmsys)
6058
      # This compiler won't grok `-c -o', but also, the minuso test has
6059
      # not run yet.  These depmodes are late enough in the game, and
6060
      # so weak that their functioning should not be impacted.
6061
      am__obj=conftest.${OBJEXT-o}
6062
      am__minus_obj=
6063
      ;;
6064
    none) break ;;
6065
    esac
6066
    if depmode=$depmode \
6067
       source=sub/conftest.c object=$am__obj \
6068
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6069
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6070
         >/dev/null 2>conftest.err &&
6071
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6072
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6073
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6074
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6075
      # icc doesn't choke on unknown options, it will just issue warnings
6076
      # or remarks (even with -Werror).  So we grep stderr for any message
6077
      # that says an option was ignored or not supported.
6078
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6079
      #   icc: Command line warning: ignoring option '-M'; no argument required
6080
      # The diagnosis changed in icc 8.0:
6081
      #   icc: Command line remark: option '-MP' not supported
6082
      if (grep 'ignoring option' conftest.err ||
6083
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6084
        am_cv_CXX_dependencies_compiler_type=$depmode
6085
        break
6086
      fi
6087
    fi
6088
  done
6089
6090
  cd ..
6091
  rm -rf conftest.dir
5369
else
6092
else
5370
  ac_cv_path_EGREP=$EGREP
6093
  am_cv_CXX_dependencies_compiler_type=none
5371
fi
6094
fi
5372
6095
5373
   fi
5374
fi
6096
fi
5375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5376
$as_echo "$ac_cv_path_EGREP" >&6; }
6098
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5377
 EGREP="$ac_cv_path_EGREP"
6099
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6100
6101
 if
6102
  test "x$enable_dependency_tracking" != xno \
6103
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6104
  am__fastdepCXX_TRUE=
6105
  am__fastdepCXX_FALSE='#'
6106
else
6107
  am__fastdepCXX_TRUE='#'
6108
  am__fastdepCXX_FALSE=
6109
fi
5378
6110
5379
6111
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6112
for ac_prog in 'bison -y' byacc
5381
$as_echo_n "checking for ANSI C header files... " >&6; }
6113
do
5382
if test "${ac_cv_header_stdc+set}" = set; then :
6114
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6115
set dummy $ac_prog; ac_word=$2
6116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117
$as_echo_n "checking for $ac_word... " >&6; }
6118
if test "${ac_cv_prog_YACC+set}" = set; then :
5383
  $as_echo_n "(cached) " >&6
6119
  $as_echo_n "(cached) " >&6
5384
else
6120
else
5385
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121
  if test -n "$YACC"; then
5386
/* end confdefs.h.  */
6122
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5387
#include <stdlib.h>
6123
else
5388
#include <stdarg.h>
6124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389
#include <string.h>
6125
for as_dir in $PATH
5390
#include <float.h>
6126
do
5391
6127
  IFS=$as_save_IFS
5392
int
6128
  test -z "$as_dir" && as_dir=.
5393
main ()
6129
    for ac_exec_ext in '' $ac_executable_extensions; do
5394
{
6130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131
    ac_cv_prog_YACC="$ac_prog"
6132
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133
    break 2
6134
  fi
6135
done
6136
  done
6137
IFS=$as_save_IFS
5395
6138
5396
  ;
6139
fi
5397
  return 0;
6140
fi
5398
}
6141
YACC=$ac_cv_prog_YACC
5399
_ACEOF
6142
if test -n "$YACC"; then
5400
if ac_fn_c_try_compile "$LINENO"; then :
6143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5401
  ac_cv_header_stdc=yes
6144
$as_echo "$YACC" >&6; }
5402
else
6145
else
5403
  ac_cv_header_stdc=no
6146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147
$as_echo "no" >&6; }
5404
fi
6148
fi
5405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406
6149
5407
if test $ac_cv_header_stdc = yes; then
5408
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5409
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410
/* end confdefs.h.  */
5411
#include <string.h>
5412
6150
5413
_ACEOF
6151
  test -n "$YACC" && break
5414
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152
done
5415
  $EGREP "memchr" >/dev/null 2>&1; then :
6153
test -n "$YACC" || YACC="yacc"
5416
6154
6155
if test -n "$ac_tool_prefix"; then
6156
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6157
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159
$as_echo_n "checking for $ac_word... " >&6; }
6160
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6161
  $as_echo_n "(cached) " >&6
5417
else
6162
else
5418
  ac_cv_header_stdc=no
6163
  if test -n "$RANLIB"; then
5419
fi
6164
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5420
rm -f conftest*
6165
else
6166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167
for as_dir in $PATH
6168
do
6169
  IFS=$as_save_IFS
6170
  test -z "$as_dir" && as_dir=.
6171
    for ac_exec_ext in '' $ac_executable_extensions; do
6172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6174
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175
    break 2
6176
  fi
6177
done
6178
  done
6179
IFS=$as_save_IFS
5421
6180
5422
fi
6181
fi
5423
6182
fi
5424
if test $ac_cv_header_stdc = yes; then
6183
RANLIB=$ac_cv_prog_RANLIB
5425
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6184
if test -n "$RANLIB"; then
5426
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5427
/* end confdefs.h.  */
6186
$as_echo "$RANLIB" >&6; }
5428
#include <stdlib.h>
5429
5430
_ACEOF
5431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432
  $EGREP "free" >/dev/null 2>&1; then :
5433
5434
else
6187
else
5435
  ac_cv_header_stdc=no
6188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189
$as_echo "no" >&6; }
5436
fi
6190
fi
5437
rm -f conftest*
5438
6191
5439
fi
5440
6192
5441
if test $ac_cv_header_stdc = yes; then
6193
fi
5442
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6194
if test -z "$ac_cv_prog_RANLIB"; then
5443
  if test "$cross_compiling" = yes; then :
6195
  ac_ct_RANLIB=$RANLIB
5444
  :
6196
  # Extract the first word of "ranlib", so it can be a program name with args.
6197
set dummy ranlib; ac_word=$2
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199
$as_echo_n "checking for $ac_word... " >&6; }
6200
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6201
  $as_echo_n "(cached) " >&6
5445
else
6202
else
5446
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203
  if test -n "$ac_ct_RANLIB"; then
5447
/* end confdefs.h.  */
6204
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5448
#include <ctype.h>
5449
#include <stdlib.h>
5450
#if ((' ' & 0x0FF) == 0x020)
5451
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5452
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5453
#else
5454
# define ISLOWER(c) \
5455
		   (('a' <= (c) && (c) <= 'i') \
5456
		     || ('j' <= (c) && (c) <= 'r') \
5457
		     || ('s' <= (c) && (c) <= 'z'))
5458
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5459
#endif
5460
5461
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5462
int
5463
main ()
5464
{
5465
  int i;
5466
  for (i = 0; i < 256; i++)
5467
    if (XOR (islower (i), ISLOWER (i))
5468
	|| toupper (i) != TOUPPER (i))
5469
      return 2;
5470
  return 0;
5471
}
5472
_ACEOF
5473
if ac_fn_c_try_run "$LINENO"; then :
5474
5475
else
6205
else
5476
  ac_cv_header_stdc=no
6206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477
fi
6207
for as_dir in $PATH
5478
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6208
do
5479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6209
  IFS=$as_save_IFS
5480
fi
6210
  test -z "$as_dir" && as_dir=.
6211
    for ac_exec_ext in '' $ac_executable_extensions; do
6212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6214
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215
    break 2
6216
  fi
6217
done
6218
  done
6219
IFS=$as_save_IFS
5481
6220
5482
fi
6221
fi
5483
fi
6222
fi
5484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6223
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5485
$as_echo "$ac_cv_header_stdc" >&6; }
6224
if test -n "$ac_ct_RANLIB"; then
5486
if test $ac_cv_header_stdc = yes; then
6225
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5487
6226
$as_echo "$ac_ct_RANLIB" >&6; }
5488
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6227
else
6228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229
$as_echo "no" >&6; }
6230
fi
5489
6231
6232
  if test "x$ac_ct_RANLIB" = x; then
6233
    RANLIB=":"
6234
  else
6235
    case $cross_compiling:$ac_tool_warned in
6236
yes:)
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239
ac_tool_warned=yes ;;
6240
esac
6241
    RANLIB=$ac_ct_RANLIB
6242
  fi
6243
else
6244
  RANLIB="$ac_cv_prog_RANLIB"
5490
fi
6245
fi
5491
6246
5492
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5493
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5494
		  inttypes.h stdint.h unistd.h
5495
do :
5496
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5497
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5498
"
5499
eval as_val=\$$as_ac_Header
5500
   if test "x$as_val" = x""yes; then :
5501
  cat >>confdefs.h <<_ACEOF
5502
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5503
_ACEOF
5504
6247
6248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6249
$as_echo_n "checking whether ln -s works... " >&6; }
6250
LN_S=$as_ln_s
6251
if test "$LN_S" = "ln -s"; then
6252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253
$as_echo "yes" >&6; }
6254
else
6255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6256
$as_echo "no, using $LN_S" >&6; }
5505
fi
6257
fi
5506
6258
5507
done
5508
5509
6259
5510
6260
5511
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6261
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Lines 7393-7398 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then Link Here
7393
  as_fn_error "conditional \"THREADS\" was never defined.
8143
  as_fn_error "conditional \"THREADS\" was never defined.
7394
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7395
fi
8145
fi
8146
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8147
  as_fn_error "conditional \"AMDEP\" was never defined.
8148
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8149
fi
8150
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8151
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
8152
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8153
fi
7396
if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
8154
if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
7397
  as_fn_error "conditional \"PLUGINS\" was never defined.
8155
  as_fn_error "conditional \"PLUGINS\" was never defined.
7398
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8156
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lines 7417-7426 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_F Link Here
7417
  as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
8175
  as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
7418
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8176
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7419
fi
8177
fi
7420
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7421
  as_fn_error "conditional \"AMDEP\" was never defined.
7422
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7423
fi
7424
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8178
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7425
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
8179
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
7426
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8180
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7427
-- a/bfd/configure
8181
++ b/bfd/configure
Lines 11995-12003 fi Link Here
11995
11995
11996
11996
11997
if test "$plugins" = "yes"; then
11997
if test "$plugins" = "yes"; then
11998
  if test "$enable_dlopen" != "yes" ; then
11998
  has_dlopen=yes
11999
  # Check for dlopen support
12000
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12001
"
12002
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12003
12004
else
12005
  has_dlopen=no
12006
fi
12007
12008
12009
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12010
$as_echo_n "checking for library containing dlopen... " >&6; }
12011
if test "${ac_cv_search_dlopen+set}" = set; then :
12012
  $as_echo_n "(cached) " >&6
12013
else
12014
  ac_func_search_save_LIBS=$LIBS
12015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016
/* end confdefs.h.  */
12017
12018
/* Override any GCC internal prototype to avoid an error.
12019
   Use char because int might match the return type of a GCC
12020
   builtin and then its argument prototype would still apply.  */
12021
#ifdef __cplusplus
12022
extern "C"
12023
#endif
12024
char dlopen ();
12025
int
12026
main ()
12027
{
12028
return dlopen ();
12029
  ;
12030
  return 0;
12031
}
12032
_ACEOF
12033
for ac_lib in '' dl; do
12034
  if test -z "$ac_lib"; then
12035
    ac_res="none required"
12036
  else
12037
    ac_res=-l$ac_lib
12038
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12039
  fi
12040
  if ac_fn_c_try_link "$LINENO"; then :
12041
  ac_cv_search_dlopen=$ac_res
12042
fi
12043
rm -f core conftest.err conftest.$ac_objext \
12044
    conftest$ac_exeext
12045
  if test "${ac_cv_search_dlopen+set}" = set; then :
12046
  break
12047
fi
12048
done
12049
if test "${ac_cv_search_dlopen+set}" = set; then :
12050
12051
else
12052
  ac_cv_search_dlopen=no
12053
fi
12054
rm conftest.$ac_ext
12055
LIBS=$ac_func_search_save_LIBS
12056
fi
12057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12058
$as_echo "$ac_cv_search_dlopen" >&6; }
12059
ac_res=$ac_cv_search_dlopen
12060
if test "$ac_res" != no; then :
12061
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12062
12063
else
12064
  has_dlopen=no
12065
fi
12066
12067
  for ac_func in dlsym dlclose
12068
do :
12069
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12071
eval as_val=\$$as_ac_var
12072
   if test "x$as_val" = x""yes; then :
12073
  cat >>confdefs.h <<_ACEOF
12074
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075
_ACEOF
12076
12077
else
12078
  has_dlopen=no
12079
fi
12080
done
12081
12082
12083
  if test "$has_dlopen" != "yes" ; then
11999
    as_fn_error "
12084
    as_fn_error "
12000
      Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
12085
      Building BFD with plugin support requires a host that supports dlopen." "$LINENO" 5
12001
  fi
12086
  fi
12002
  enable_targets="$enable_targets plugin"
12087
  enable_targets="$enable_targets plugin"
12003
fi
12088
fi

Return to bug 347931