12036
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12037
# archiving commands below assume that GNU ld is being used.
12038
if test "$with_gnu_ld" = yes; then
12039
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12040
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12042
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12043
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12045
# If archive_cmds runs LD, not CC, wlarc should be empty
12046
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12047
# investigate it a little bit more. (MM)
12050
# ancient GNU ld didn't support --whole-archive et. al.
12051
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12052
grep 'no-whole-archive' > /dev/null; then
12053
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12055
whole_archive_flag_spec_CXX=
12061
# A generic and very simple default shared library creation
12062
# command for GNU C++ for the case where it uses the native
12063
# linker, instead of GNU ld. If possible, this setting should
12064
# overridden to take advantage of the native linker features on
12065
# the platform it is being used on.
12066
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12069
# Commands to make compiler produce verbose output that lists
12070
# what "hidden" libraries, object files and flags are used when
12071
# linking a shared library.
12072
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12080
# PORTME: fill in a description of your system's C++ link characteristics
12081
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12082
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12086
# FIXME: insert proper C++ library support
12090
if test "$host_cpu" = ia64; then
12091
# On IA64, the linker does run time linking by default, so we don't
12092
# have to do anything special.
12093
aix_use_runtimelinking=no
12094
exp_sym_flag='-Bexport'
12097
aix_use_runtimelinking=no
12099
# Test if we are trying to use run time linking or normal
12100
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12101
# need to do runtime linking.
12102
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12103
for ld_flag in $LDFLAGS; do
12106
aix_use_runtimelinking=yes
12114
exp_sym_flag='-bexport'
12115
no_entry_flag='-bnoentry'
12118
# When large executables or shared objects are built, AIX ld can
12119
# have problems creating the table of contents. If linking a library
12120
# or program results in "error TOC overflow" add -mminimal-toc to
12121
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12122
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12124
archive_cmds_CXX=''
12125
hardcode_direct_CXX=yes
12126
hardcode_libdir_separator_CXX=':'
12127
link_all_deplibs_CXX=yes
12129
if test "$GXX" = yes; then
12130
case $host_os in aix4.[012]|aix4.[012].*)
12131
# We only want to do this on AIX 4.2 and lower, the check
12132
# below for broken collect2 doesn't work under 4.3+
12133
collect2name=`${CC} -print-prog-name=collect2`
12134
if test -f "$collect2name" && \
12135
strings "$collect2name" | grep resolve_lib_name >/dev/null
12137
# We have reworked collect2
12140
# We have old collect2
12141
hardcode_direct_CXX=unsupported
12142
# It fails to find uninstalled libraries when the uninstalled
12143
# path is not listed in the libpath. Setting hardcode_minus_L
12144
# to unsupported forces relinking
12145
hardcode_minus_L_CXX=yes
12146
hardcode_libdir_flag_spec_CXX='-L$libdir'
12147
hardcode_libdir_separator_CXX=
12151
shared_flag='-shared'
12152
if test "$aix_use_runtimelinking" = yes; then
12153
shared_flag="$shared_flag "'${wl}-G'
12157
if test "$host_cpu" = ia64; then
12158
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12159
# chokes on -Wl,-G. The following line is correct:
12162
if test "$aix_use_runtimelinking" = yes; then
12163
shared_flag='${wl}-G'
12165
shared_flag='${wl}-bM:SRE'
12170
# It seems that -bexpall does not export symbols beginning with
12171
# underscore (_), so it is better to generate a list of symbols to export.
12172
always_export_symbols_CXX=yes
12173
if test "$aix_use_runtimelinking" = yes; then
12174
# Warning - without using the other runtime loading flags (-brtl),
12175
# -berok will link without error, but may produce a broken library.
12176
allow_undefined_flag_CXX='-berok'
12177
# Determine the default libpath from the value encoded in an empty executable.
12178
cat >conftest.$ac_ext <<_ACEOF
12181
cat confdefs.h >>conftest.$ac_ext
12182
cat >>conftest.$ac_ext <<_ACEOF
12183
/* end confdefs.h. */
12193
rm -f conftest.$ac_objext conftest$ac_exeext
12194
if { (ac_try="$ac_link"
12195
case "(($ac_try" in
12196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197
*) ac_try_echo=$ac_try;;
12199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200
(eval "$ac_link") 2>conftest.er1
12202
grep -v '^ *+' conftest.er1 >conftest.err
12204
cat conftest.err >&5
12205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206
(exit $ac_status); } && {
12207
test -z "$ac_cxx_werror_flag" ||
12208
test ! -s conftest.err
12209
} && test -s conftest$ac_exeext &&
12210
$as_test_x conftest$ac_exeext; then
12212
lt_aix_libpath_sed='
12213
/Import File Strings/,/^$/ {
12219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12220
# Check for a 64-bit object if we didn't find anything.
12221
if test -z "$aix_libpath"; then
12222
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12225
echo "$as_me: failed program was:" >&5
12226
sed 's/^/| /' conftest.$ac_ext >&5
12231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232
conftest$ac_exeext conftest.$ac_ext
12233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12235
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12237
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12239
if test "$host_cpu" = ia64; then
12240
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12241
allow_undefined_flag_CXX="-z nodefs"
12242
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12244
# Determine the default libpath from the value encoded in an empty executable.
12245
cat >conftest.$ac_ext <<_ACEOF
12248
cat confdefs.h >>conftest.$ac_ext
12249
cat >>conftest.$ac_ext <<_ACEOF
12250
/* end confdefs.h. */
12260
rm -f conftest.$ac_objext conftest$ac_exeext
12261
if { (ac_try="$ac_link"
12262
case "(($ac_try" in
12263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264
*) ac_try_echo=$ac_try;;
12266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267
(eval "$ac_link") 2>conftest.er1
12269
grep -v '^ *+' conftest.er1 >conftest.err
12271
cat conftest.err >&5
12272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273
(exit $ac_status); } && {
12274
test -z "$ac_cxx_werror_flag" ||
12275
test ! -s conftest.err
12276
} && test -s conftest$ac_exeext &&
12277
$as_test_x conftest$ac_exeext; then
12279
lt_aix_libpath_sed='
12280
/Import File Strings/,/^$/ {
12286
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12287
# Check for a 64-bit object if we didn't find anything.
12288
if test -z "$aix_libpath"; then
12289
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12292
echo "$as_me: failed program was:" >&5
12293
sed 's/^/| /' conftest.$ac_ext >&5
12298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299
conftest$ac_exeext conftest.$ac_ext
12300
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12302
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12303
# Warning - without using the other run time loading flags,
12304
# -berok will link without error, but may produce a broken library.
12305
no_undefined_flag_CXX=' ${wl}-bernotok'
12306
allow_undefined_flag_CXX=' ${wl}-berok'
12307
# Exported symbols can be pulled into shared objects from archives
12308
whole_archive_flag_spec_CXX='$convenience'
12309
archive_cmds_need_lc_CXX=yes
12310
# This is similar to how AIX traditionally builds its shared libraries.
12311
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12317
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12318
allow_undefined_flag_CXX=unsupported
12319
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12320
# support --undefined. This deserves some investigation. FIXME
12321
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12328
case $cc_basename in
12330
# FIXME: insert proper C++ library support
12336
cygwin* | mingw* | pw32*)
12337
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12338
# as there is no search path for DLLs.
12339
hardcode_libdir_flag_spec_CXX='-L$libdir'
12340
allow_undefined_flag_CXX=unsupported
12341
always_export_symbols_CXX=no
12342
enable_shared_with_static_runtimes_CXX=yes
12344
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12345
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12346
# If the export-symbols file already is a .def file (1st line
12347
# is EXPORTS), use it as is; otherwise, prepend...
12348
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12349
cp $export_symbols $output_objdir/$soname.def;
12351
echo EXPORTS > $output_objdir/$soname.def;
12352
cat $export_symbols >> $output_objdir/$soname.def;
12354
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12359
darwin* | rhapsody*)
12360
archive_cmds_need_lc_CXX=no
12361
hardcode_direct_CXX=no
12362
hardcode_automatic_CXX=yes
12363
hardcode_shlibpath_var_CXX=unsupported
12364
whole_archive_flag_spec_CXX=''
12365
link_all_deplibs_CXX=yes
12366
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12367
if test "$GXX" = yes ; then
12368
output_verbose_link_cmd='echo'
12369
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12370
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12371
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12372
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12373
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12374
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12375
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12378
case $cc_basename in
12380
output_verbose_link_cmd='echo'
12381
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12382
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12383
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12384
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12385
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12395
case $cc_basename in
12397
# FIXME: insert proper C++ library support
12401
# Green Hills C++ Compiler
12402
# FIXME: insert proper C++ library support
12406
# FIXME: insert proper C++ library support
12412
# C++ shared libraries reported to be fairly broken before switch to ELF
12416
archive_cmds_need_lc_CXX=no
12418
freebsd* | dragonfly*)
12419
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12426
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12427
hardcode_libdir_separator_CXX=:
12428
export_dynamic_flag_spec_CXX='${wl}-E'
12429
hardcode_direct_CXX=yes
12430
hardcode_minus_L_CXX=yes # Not in the search PATH,
12431
# but as the default
12432
# location of the library.
12434
case $cc_basename in
12436
# FIXME: insert proper C++ library support
12440
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12033
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12034
# archiving commands below assume that GNU ld is being used.
12035
if test "$with_gnu_ld" = yes; then
12036
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12039
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12040
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12042
# If archive_cmds runs LD, not CC, wlarc should be empty
12043
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12044
# investigate it a little bit more. (MM)
12047
# ancient GNU ld didn't support --whole-archive et. al.
12048
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12049
$GREP 'no-whole-archive' > /dev/null; then
12050
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12052
whole_archive_flag_spec_CXX=
12058
# A generic and very simple default shared library creation
12059
# command for GNU C++ for the case where it uses the native
12060
# linker, instead of GNU ld. If possible, this setting should
12061
# overridden to take advantage of the native linker features on
12062
# the platform it is being used on.
12063
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12441
12066
# Commands to make compiler produce verbose output that lists
12442
12067
# what "hidden" libraries, object files and flags are used when
12443
12068
# linking a shared library.
12445
# There doesn't appear to be a way to prevent this compiler from
12446
# explicitly linking system object files so we need to strip them
12447
# from the output so that they don't get included in the library
12449
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12452
if test "$GXX" = yes; then
12453
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12069
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12077
# PORTME: fill in a description of your system's C++ link characteristics
12078
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12079
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12455
12083
# FIXME: insert proper C++ library support
12456
12084
ld_shlibs_CXX=no
12462
if test $with_gnu_ld = no; then
12463
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12464
hardcode_libdir_separator_CXX=:
12087
if test "$host_cpu" = ia64; then
12088
# On IA64, the linker does run time linking by default, so we don't
12089
# have to do anything special.
12090
aix_use_runtimelinking=no
12091
exp_sym_flag='-Bexport'
12094
aix_use_runtimelinking=no
12096
# Test if we are trying to use run time linking or normal
12097
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12098
# need to do runtime linking.
12099
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12100
for ld_flag in $LDFLAGS; do
12103
aix_use_runtimelinking=yes
12111
exp_sym_flag='-bexport'
12112
no_entry_flag='-bnoentry'
12115
# When large executables or shared objects are built, AIX ld can
12116
# have problems creating the table of contents. If linking a library
12117
# or program results in "error TOC overflow" add -mminimal-toc to
12118
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12119
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12121
archive_cmds_CXX=''
12122
hardcode_direct_CXX=yes
12123
hardcode_direct_absolute_CXX=yes
12124
hardcode_libdir_separator_CXX=':'
12125
link_all_deplibs_CXX=yes
12126
file_list_spec_CXX='${wl}-f,'
12128
if test "$GXX" = yes; then
12129
case $host_os in aix4.[012]|aix4.[012].*)
12130
# We only want to do this on AIX 4.2 and lower, the check
12131
# below for broken collect2 doesn't work under 4.3+
12132
collect2name=`${CC} -print-prog-name=collect2`
12133
if test -f "$collect2name" &&
12134
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12136
# We have reworked collect2
12139
# We have old collect2
12140
hardcode_direct_CXX=unsupported
12141
# It fails to find uninstalled libraries when the uninstalled
12142
# path is not listed in the libpath. Setting hardcode_minus_L
12143
# to unsupported forces relinking
12144
hardcode_minus_L_CXX=yes
12145
hardcode_libdir_flag_spec_CXX='-L$libdir'
12146
hardcode_libdir_separator_CXX=
12149
shared_flag='-shared'
12150
if test "$aix_use_runtimelinking" = yes; then
12151
shared_flag="$shared_flag "'${wl}-G'
12155
if test "$host_cpu" = ia64; then
12156
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12157
# chokes on -Wl,-G. The following line is correct:
12160
if test "$aix_use_runtimelinking" = yes; then
12161
shared_flag='${wl}-G'
12163
shared_flag='${wl}-bM:SRE'
12168
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12169
# It seems that -bexpall does not export symbols beginning with
12170
# underscore (_), so it is better to generate a list of symbols to
12172
always_export_symbols_CXX=yes
12173
if test "$aix_use_runtimelinking" = yes; then
12174
# Warning - without using the other runtime loading flags (-brtl),
12175
# -berok will link without error, but may produce a broken library.
12176
allow_undefined_flag_CXX='-berok'
12177
# Determine the default libpath from the value encoded in an empty
12179
cat >conftest.$ac_ext <<_ACEOF
12182
cat confdefs.h >>conftest.$ac_ext
12183
cat >>conftest.$ac_ext <<_ACEOF
12184
/* end confdefs.h. */
12194
rm -f conftest.$ac_objext conftest$ac_exeext
12195
if { (ac_try="$ac_link"
12196
case "(($ac_try" in
12197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198
*) ac_try_echo=$ac_try;;
12200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201
(eval "$ac_link") 2>conftest.er1
12203
grep -v '^ *+' conftest.er1 >conftest.err
12205
cat conftest.err >&5
12206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207
(exit $ac_status); } && {
12208
test -z "$ac_cxx_werror_flag" ||
12209
test ! -s conftest.err
12210
} && test -s conftest$ac_exeext &&
12211
$as_test_x conftest$ac_exeext; then
12213
lt_aix_libpath_sed='
12214
/Import File Strings/,/^$/ {
12220
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12221
# Check for a 64-bit object if we didn't find anything.
12222
if test -z "$aix_libpath"; then
12223
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12226
echo "$as_me: failed program was:" >&5
12227
sed 's/^/| /' conftest.$ac_ext >&5
12232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233
conftest$ac_exeext conftest.$ac_ext
12234
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12236
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12238
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12240
if test "$host_cpu" = ia64; then
12241
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12242
allow_undefined_flag_CXX="-z nodefs"
12243
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12245
# Determine the default libpath from the value encoded in an
12246
# empty executable.
12247
cat >conftest.$ac_ext <<_ACEOF
12250
cat confdefs.h >>conftest.$ac_ext
12251
cat >>conftest.$ac_ext <<_ACEOF
12252
/* end confdefs.h. */
12262
rm -f conftest.$ac_objext conftest$ac_exeext
12263
if { (ac_try="$ac_link"
12264
case "(($ac_try" in
12265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266
*) ac_try_echo=$ac_try;;
12268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269
(eval "$ac_link") 2>conftest.er1
12271
grep -v '^ *+' conftest.er1 >conftest.err
12273
cat conftest.err >&5
12274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275
(exit $ac_status); } && {
12276
test -z "$ac_cxx_werror_flag" ||
12277
test ! -s conftest.err
12278
} && test -s conftest$ac_exeext &&
12279
$as_test_x conftest$ac_exeext; then
12281
lt_aix_libpath_sed='
12282
/Import File Strings/,/^$/ {
12288
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12289
# Check for a 64-bit object if we didn't find anything.
12290
if test -z "$aix_libpath"; then
12291
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12294
echo "$as_me: failed program was:" >&5
12295
sed 's/^/| /' conftest.$ac_ext >&5
12300
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301
conftest$ac_exeext conftest.$ac_ext
12302
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12304
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12305
# Warning - without using the other run time loading flags,
12306
# -berok will link without error, but may produce a broken library.
12307
no_undefined_flag_CXX=' ${wl}-bernotok'
12308
allow_undefined_flag_CXX=' ${wl}-berok'
12309
# Exported symbols can be pulled into shared objects from archives
12310
whole_archive_flag_spec_CXX='$convenience'
12311
archive_cmds_need_lc_CXX=yes
12312
# This is similar to how AIX traditionally builds its shared
12314
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12320
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12321
allow_undefined_flag_CXX=unsupported
12322
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12323
# support --undefined. This deserves some investigation. FIXME
12324
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331
case $cc_basename in
12333
# FIXME: insert proper C++ library support
12339
cygwin* | mingw* | pw32* | cegcc*)
12340
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12341
# as there is no search path for DLLs.
12342
hardcode_libdir_flag_spec_CXX='-L$libdir'
12343
allow_undefined_flag_CXX=unsupported
12344
always_export_symbols_CXX=no
12345
enable_shared_with_static_runtimes_CXX=yes
12347
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12348
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12349
# If the export-symbols file already is a .def file (1st line
12350
# is EXPORTS), use it as is; otherwise, prepend...
12351
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12352
cp $export_symbols $output_objdir/$soname.def;
12354
echo EXPORTS > $output_objdir/$soname.def;
12355
cat $export_symbols >> $output_objdir/$soname.def;
12357
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12362
darwin* | rhapsody*)
12365
archive_cmds_need_lc_CXX=no
12366
hardcode_direct_CXX=no
12367
hardcode_automatic_CXX=yes
12368
hardcode_shlibpath_var_CXX=unsupported
12369
whole_archive_flag_spec_CXX=''
12370
link_all_deplibs_CXX=yes
12371
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12372
case $cc_basename in
12373
ifort*) _lt_dar_can_shared=yes ;;
12374
*) _lt_dar_can_shared=$GCC ;;
12376
if test "$_lt_dar_can_shared" = "yes"; then
12377
output_verbose_link_cmd=echo
12378
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12379
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12380
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12381
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12382
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12383
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12384
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12394
case $cc_basename in
12396
# FIXME: insert proper C++ library support
12400
# Green Hills C++ Compiler
12401
# FIXME: insert proper C++ library support
12405
# FIXME: insert proper C++ library support
12412
# C++ shared libraries reported to be fairly broken before
12418
archive_cmds_need_lc_CXX=no
12421
freebsd* | dragonfly*)
12422
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12431
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12432
hardcode_libdir_separator_CXX=:
12433
export_dynamic_flag_spec_CXX='${wl}-E'
12434
hardcode_direct_CXX=yes
12435
hardcode_minus_L_CXX=yes # Not in the search PATH,
12436
# but as the default
12437
# location of the library.
12439
case $cc_basename in
12441
# FIXME: insert proper C++ library support
12445
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12446
# Commands to make compiler produce verbose output that lists
12447
# what "hidden" libraries, object files and flags are used when
12448
# linking a shared library.
12450
# There doesn't appear to be a way to prevent this compiler from
12451
# explicitly linking system object files so we need to strip them
12452
# from the output so that they don't get included in the library
12454
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12457
if test "$GXX" = yes; then
12458
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12460
# FIXME: insert proper C++ library support
12468
if test $with_gnu_ld = no; then
12469
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12470
hardcode_libdir_separator_CXX=:
12476
export_dynamic_flag_spec_CXX='${wl}-E'
12482
hardcode_direct_CXX=no
12483
hardcode_shlibpath_var_CXX=no
12486
hardcode_direct_CXX=yes
12487
hardcode_direct_absolute_CXX=yes
12488
hardcode_minus_L_CXX=yes # Not in the search PATH,
12489
# but as the default
12490
# location of the library.
12494
case $cc_basename in
12496
# FIXME: insert proper C++ library support
12502
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12505
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12511
# Commands to make compiler produce verbose output that lists
12512
# what "hidden" libraries, object files and flags are used when
12513
# linking a shared library.
12515
# There doesn't appear to be a way to prevent this compiler from
12516
# explicitly linking system object files so we need to strip them
12517
# from the output so that they don't get included in the library
12519
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12522
if test "$GXX" = yes; then
12523
if test $with_gnu_ld = no; then
12526
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12532
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12537
# FIXME: insert proper C++ library support
12545
hardcode_direct_CXX=no
12546
hardcode_shlibpath_var_CXX=no
12547
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12469
12548
export_dynamic_flag_spec_CXX='${wl}-E'
12475
hardcode_direct_CXX=no
12549
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12550
# Instead, shared libraries are loaded at an image base (0x10000000 by
12551
# default) and relocated if they conflict, which is a slow very memory
12552
# consuming and fragmenting process. To avoid this, we pick a random,
12553
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12554
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12555
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12556
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12559
case $cc_basename in
12562
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12564
# Archives containing C++ object files must be created using
12565
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12566
# necessary to make sure instantiated templates are included
12568
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12571
if test "$GXX" = yes; then
12572
if test "$with_gnu_ld" = no; then
12573
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12575
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12578
link_all_deplibs_CXX=yes
12581
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12582
hardcode_libdir_separator_CXX=:
12583
inherit_rpath_CXX=yes
12586
linux* | k*bsd*-gnu)
12587
case $cc_basename in
12589
# Kuck and Associates, Inc. (KAI) C++ Compiler
12591
# KCC will only create a shared library if the output file
12592
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12593
# to its proper name (with version) after linking.
12594
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12595
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12596
# Commands to make compiler produce verbose output that lists
12597
# what "hidden" libraries, object files and flags are used when
12598
# linking a shared library.
12600
# There doesn't appear to be a way to prevent this compiler from
12601
# explicitly linking system object files so we need to strip them
12602
# from the output so that they don't get included in the library
12604
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12606
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12607
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12609
# Archives containing C++ object files must be created using
12610
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12611
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12616
# version 8.0 and above of icpc choke on multiply defined symbols
12617
# if we add $predep_objects and $postdep_objects, however 7.1 and
12618
# earlier do not add the objects themselves.
12619
case `$CC -V 2>&1` in
12621
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12622
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12624
*) # Version 8.0 or newer
12627
ia64*) tmp_idyn=' -i_dynamic';;
12629
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12633
archive_cmds_need_lc_CXX=no
12634
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12635
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12636
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12639
# Portland Group C++ compiler
12641
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12642
prelink_cmds_CXX='tpldir=Template.dir~
12644
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12645
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12646
old_archive_cmds_CXX='tpldir=Template.dir~
12648
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12649
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12651
archive_cmds_CXX='tpldir=Template.dir~
12653
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12654
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12655
archive_expsym_cmds_CXX='tpldir=Template.dir~
12657
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12658
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12660
*) # Version 6 will use weak symbols
12661
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12662
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12666
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12667
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12668
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12672
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12673
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12675
runpath_var=LD_RUN_PATH
12676
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12677
hardcode_libdir_separator_CXX=:
12679
# Commands to make compiler produce verbose output that lists
12680
# what "hidden" libraries, object files and flags are used when
12681
# linking a shared library.
12683
# There doesn't appear to be a way to prevent this compiler from
12684
# explicitly linking system object files so we need to strip them
12685
# from the output so that they don't get included in the library
12687
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12690
# IBM XL 8.0 on PPC, with GNU ld
12691
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12692
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12693
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12694
if test "x$supports_anon_versioning" = xyes; then
12695
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12696
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12697
echo "local: *; };" >> $output_objdir/$libname.ver~
12698
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12702
case `$CC -V 2>&1 | sed 5q` in
12705
no_undefined_flag_CXX=' -zdefs'
12706
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12707
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12708
hardcode_libdir_flag_spec_CXX='-R$libdir'
12709
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12710
compiler_needs_object_CXX=yes
12712
# Not sure whether something based on
12713
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12715
output_verbose_link_cmd='echo'
12717
# Archives containing C++ object files must be created using
12718
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12719
# necessary to make sure instantiated templates are included
12721
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12729
# FIXME: insert proper C++ library support
12734
# FIXME: insert proper C++ library support
12739
case $cc_basename in
12741
# FIXME: insert proper C++ library support
12745
# FIXME: insert proper C++ library support
12752
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12753
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12755
hardcode_libdir_flag_spec_CXX='-R$libdir'
12756
hardcode_direct_CXX=yes
12757
hardcode_shlibpath_var_CXX=no
12759
# Workaround some broken pre-1.5 toolchains
12760
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12768
# C++ shared libraries are fairly broken
12773
if test -f /usr/libexec/ld.so; then
12774
hardcode_direct_CXX=yes
12775
hardcode_shlibpath_var_CXX=no
12776
hardcode_direct_absolute_CXX=yes
12777
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12778
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12779
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12780
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12781
export_dynamic_flag_spec_CXX='${wl}-E'
12782
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12784
output_verbose_link_cmd=echo
12790
osf3* | osf4* | osf5*)
12791
case $cc_basename in
12793
# Kuck and Associates, Inc. (KAI) C++ Compiler
12795
# KCC will only create a shared library if the output file
12796
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12797
# to its proper name (with version) after linking.
12798
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12800
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12801
hardcode_libdir_separator_CXX=:
12803
# Archives containing C++ object files must be created using
12804
# the KAI C++ compiler.
12806
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12807
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12811
# Rational C++ 2.4.1
12812
# FIXME: insert proper C++ library support
12818
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12819
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12820
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12823
allow_undefined_flag_CXX=' -expect_unresolved \*'
12824
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12825
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12826
echo "-hidden">> $lib.exp~
12827
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12829
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12833
hardcode_libdir_separator_CXX=:
12835
# Commands to make compiler produce verbose output that lists
12836
# what "hidden" libraries, object files and flags are used when
12837
# linking a shared library.
12839
# There doesn't appear to be a way to prevent this compiler from
12840
# explicitly linking system object files so we need to strip them
12841
# from the output so that they don't get included in the library
12843
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12846
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12847
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12850
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12853
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12857
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858
hardcode_libdir_separator_CXX=:
12860
# Commands to make compiler produce verbose output that lists
12861
# what "hidden" libraries, object files and flags are used when
12862
# linking a shared library.
12863
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12866
# FIXME: insert proper C++ library support
12874
# FIXME: insert proper C++ library support
12879
case $cc_basename in
12882
# FIXME: insert proper C++ library support
12887
# FIXME: insert proper C++ library support
12891
# FIXME: insert proper C++ library support
12898
case $cc_basename in
12900
# Sun C++ 4.2, 5.x and Centerline C++
12901
archive_cmds_need_lc_CXX=yes
12902
no_undefined_flag_CXX=' -zdefs'
12903
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12904
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12905
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12907
hardcode_libdir_flag_spec_CXX='-R$libdir'
12908
hardcode_shlibpath_var_CXX=no
12910
solaris2.[0-5] | solaris2.[0-5].*) ;;
12912
# The compiler driver will combine and reorder linker options,
12913
# but understands `-z linker_flag'.
12914
# Supported since Solaris 2.6 (maybe 2.5.1?)
12915
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12918
link_all_deplibs_CXX=yes
12920
output_verbose_link_cmd='echo'
12922
# Archives containing C++ object files must be created using
12923
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12924
# necessary to make sure instantiated templates are included
12926
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12929
# Green Hills C++ Compiler
12930
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12932
# The C++ compiler must be used to create the archive.
12933
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12936
# GNU C++ compiler with Solaris linker
12937
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12938
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12939
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12940
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12941
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12942
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12944
# Commands to make compiler produce verbose output that lists
12945
# what "hidden" libraries, object files and flags are used when
12946
# linking a shared library.
12947
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12949
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12951
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12952
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12953
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12955
# Commands to make compiler produce verbose output that lists
12956
# what "hidden" libraries, object files and flags are used when
12957
# linking a shared library.
12958
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12961
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12963
solaris2.[0-5] | solaris2.[0-5].*) ;;
12965
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12973
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12974
no_undefined_flag_CXX='${wl}-z,text'
12975
archive_cmds_need_lc_CXX=no
12476
12976
hardcode_shlibpath_var_CXX=no
12479
hardcode_direct_CXX=yes
12480
hardcode_minus_L_CXX=yes # Not in the search PATH,
12481
# but as the default
12482
# location of the library.
12977
runpath_var='LD_RUN_PATH'
12486
case $cc_basename in
12488
# FIXME: insert proper C++ library support
12494
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12497
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12979
case $cc_basename in
12981
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12982
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12503
# Commands to make compiler produce verbose output that lists
12504
# what "hidden" libraries, object files and flags are used when
12505
# linking a shared library.
12507
# There doesn't appear to be a way to prevent this compiler from
12508
# explicitly linking system object files so we need to strip them
12509
# from the output so that they don't get included in the library
12511
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12514
if test "$GXX" = yes; then
12515
if test $with_gnu_ld = no; then
12518
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12524
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529
# FIXME: insert proper C++ library support
12536
hardcode_direct_CXX=no
12537
hardcode_shlibpath_var_CXX=no
12538
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12539
export_dynamic_flag_spec_CXX='${wl}-E'
12540
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12541
# Instead, shared libraries are loaded at an image base (0x10000000 by
12542
# default) and relocated if they conflict, which is a slow very memory
12543
# consuming and fragmenting process. To avoid this, we pick a random,
12544
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12545
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12546
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12547
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12550
case $cc_basename in
12553
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12555
# Archives containing C++ object files must be created using
12556
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12557
# necessary to make sure instantiated templates are included
12559
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12562
if test "$GXX" = yes; then
12563
if test "$with_gnu_ld" = no; then
12564
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12566
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12569
link_all_deplibs_CXX=yes
12572
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573
hardcode_libdir_separator_CXX=:
12575
linux* | k*bsd*-gnu)
12576
case $cc_basename in
12578
# Kuck and Associates, Inc. (KAI) C++ Compiler
12580
# KCC will only create a shared library if the output file
12581
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12582
# to its proper name (with version) after linking.
12583
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12584
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12585
# Commands to make compiler produce verbose output that lists
12586
# what "hidden" libraries, object files and flags are used when
12587
# linking a shared library.
12589
# There doesn't appear to be a way to prevent this compiler from
12590
# explicitly linking system object files so we need to strip them
12591
# from the output so that they don't get included in the library
12593
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12595
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12596
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12598
# Archives containing C++ object files must be created using
12599
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12600
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12605
# version 8.0 and above of icpc choke on multiply defined symbols
12606
# if we add $predep_objects and $postdep_objects, however 7.1 and
12607
# earlier do not add the objects themselves.
12608
case `$CC -V 2>&1` in
12610
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12611
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12613
*) # Version 8.0 or newer
12616
ia64*) tmp_idyn=' -i_dynamic';;
12618
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12985
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12991
sysv5* | sco3.2v5* | sco5v6*)
12992
# Note: We can NOT use -z defs as we might desire, because we do not
12993
# link with -lc, and that would cause any symbols used from libc to
12994
# always be unresolved, which means just about no library would
12995
# ever link correctly. If we're not using GNU ld we use -z text
12996
# though, which does catch some bad symbols but isn't as heavy-handed
12998
no_undefined_flag_CXX='${wl}-z,text'
12999
allow_undefined_flag_CXX='${wl}-z,nodefs'
12622
13000
archive_cmds_need_lc_CXX=no
12623
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12624
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12625
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12628
# Portland Group C++ compiler
12629
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12630
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12632
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12633
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12634
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12638
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12641
runpath_var=LD_RUN_PATH
12642
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12643
hardcode_libdir_separator_CXX=:
12645
# Commands to make compiler produce verbose output that lists
12646
# what "hidden" libraries, object files and flags are used when
12647
# linking a shared library.
12649
# There doesn't appear to be a way to prevent this compiler from
12650
# explicitly linking system object files so we need to strip them
12651
# from the output so that they don't get included in the library
12653
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12656
case `$CC -V 2>&1 | sed 5q` in
12659
no_undefined_flag_CXX=' -zdefs'
12660
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12662
hardcode_libdir_flag_spec_CXX='-R$libdir'
12663
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12665
# Not sure whether something based on
12666
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12668
output_verbose_link_cmd='echo'
12670
# Archives containing C++ object files must be created using
12671
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12672
# necessary to make sure instantiated templates are included
12674
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12681
# FIXME: insert proper C++ library support
12685
# FIXME: insert proper C++ library support
12689
case $cc_basename in
12691
# FIXME: insert proper C++ library support
12695
# FIXME: insert proper C++ library support
12700
netbsd* | netbsdelf*-gnu)
12701
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12702
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12704
hardcode_libdir_flag_spec_CXX='-R$libdir'
12705
hardcode_direct_CXX=yes
12706
hardcode_shlibpath_var_CXX=no
12708
# Workaround some broken pre-1.5 toolchains
12709
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12712
# C++ shared libraries are fairly broken
12716
if test -f /usr/libexec/ld.so; then
12717
hardcode_direct_CXX=yes
12718
hardcode_shlibpath_var_CXX=no
12719
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12720
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12721
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12722
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12723
export_dynamic_flag_spec_CXX='${wl}-E'
12724
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12726
output_verbose_link_cmd='echo'
12732
case $cc_basename in
12734
# Kuck and Associates, Inc. (KAI) C++ Compiler
12736
# KCC will only create a shared library if the output file
12737
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12738
# to its proper name (with version) after linking.
12739
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12741
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742
hardcode_libdir_separator_CXX=:
12744
# Archives containing C++ object files must be created using
12745
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12746
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12750
# Rational C++ 2.4.1
12751
# FIXME: insert proper C++ library support
12755
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12756
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12758
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12759
hardcode_libdir_separator_CXX=:
12761
# Commands to make compiler produce verbose output that lists
12762
# what "hidden" libraries, object files and flags are used when
12763
# linking a shared library.
12765
# There doesn't appear to be a way to prevent this compiler from
12766
# explicitly linking system object files so we need to strip them
12767
# from the output so that they don't get included in the library
12769
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12772
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12773
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12774
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12776
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777
hardcode_libdir_separator_CXX=:
12779
# Commands to make compiler produce verbose output that lists
12780
# what "hidden" libraries, object files and flags are used when
12781
# linking a shared library.
12782
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12785
# FIXME: insert proper C++ library support
12792
case $cc_basename in
12794
# Kuck and Associates, Inc. (KAI) C++ Compiler
12796
# KCC will only create a shared library if the output file
12797
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12798
# to its proper name (with version) after linking.
12799
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12801
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802
hardcode_libdir_separator_CXX=:
12804
# Archives containing C++ object files must be created using
12805
# the KAI C++ compiler.
12806
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12809
# Rational C++ 2.4.1
12810
# FIXME: insert proper C++ library support
12814
allow_undefined_flag_CXX=' -expect_unresolved \*'
12815
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12816
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12817
echo "-hidden">> $lib.exp~
12818
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12821
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12822
hardcode_libdir_separator_CXX=:
12824
# Commands to make compiler produce verbose output that lists
12825
# what "hidden" libraries, object files and flags are used when
12826
# linking a shared library.
12828
# There doesn't appear to be a way to prevent this compiler from
12829
# explicitly linking system object files so we need to strip them
12830
# from the output so that they don't get included in the library
12832
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12835
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12836
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12837
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12839
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12840
hardcode_libdir_separator_CXX=:
12842
# Commands to make compiler produce verbose output that lists
12843
# what "hidden" libraries, object files and flags are used when
12844
# linking a shared library.
12845
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12848
# FIXME: insert proper C++ library support
12855
# FIXME: insert proper C++ library support
12859
case $cc_basename in
12862
# FIXME: insert proper C++ library support
12867
# FIXME: insert proper C++ library support
12871
# FIXME: insert proper C++ library support
12877
case $cc_basename in
12879
# Sun C++ 4.2, 5.x and Centerline C++
12880
archive_cmds_need_lc_CXX=yes
12881
no_undefined_flag_CXX=' -zdefs'
12882
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12883
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12884
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12886
hardcode_libdir_flag_spec_CXX='-R$libdir'
12887
13001
hardcode_shlibpath_var_CXX=no
12889
solaris2.[0-5] | solaris2.[0-5].*) ;;
12891
# The compiler driver will combine and reorder linker options,
12892
# but understands `-z linker_flag'.
12893
# Supported since Solaris 2.6 (maybe 2.5.1?)
12894
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13002
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13003
hardcode_libdir_separator_CXX=':'
12897
13004
link_all_deplibs_CXX=yes
12899
output_verbose_link_cmd='echo'
12901
# Archives containing C++ object files must be created using
12902
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12903
# necessary to make sure instantiated templates are included
12905
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12908
# Green Hills C++ Compiler
12909
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12911
# The C++ compiler must be used to create the archive.
12912
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12915
# GNU C++ compiler with Solaris linker
12916
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12917
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12918
if $CC --version | grep -v '^2\.7' > /dev/null; then
12919
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12920
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12921
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12923
# Commands to make compiler produce verbose output that lists
12924
# what "hidden" libraries, object files and flags are used when
12925
# linking a shared library.
12926
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12928
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12930
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12931
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12932
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12934
# Commands to make compiler produce verbose output that lists
12935
# what "hidden" libraries, object files and flags are used when
12936
# linking a shared library.
12937
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12940
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12942
solaris2.[0-5] | solaris2.[0-5].*) ;;
13005
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13006
runpath_var='LD_RUN_PATH'
13008
case $cc_basename in
13010
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13011
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12944
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12951
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12952
no_undefined_flag_CXX='${wl}-z,text'
12953
archive_cmds_need_lc_CXX=no
12954
hardcode_shlibpath_var_CXX=no
12955
runpath_var='LD_RUN_PATH'
12957
case $cc_basename in
12959
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12963
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12964
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968
sysv5* | sco3.2v5* | sco5v6*)
12969
# Note: We can NOT use -z defs as we might desire, because we do not
12970
# link with -lc, and that would cause any symbols used from libc to
12971
# always be unresolved, which means just about no library would
12972
# ever link correctly. If we're not using GNU ld we use -z text
12973
# though, which does catch some bad symbols but isn't as heavy-handed
12975
# For security reasons, it is highly recommended that you always
12976
# use absolute paths for naming shared libraries, and exclude the
12977
# DT_RUNPATH tag from executables and libraries. But doing so
12978
# requires that you compile everything twice, which is a pain.
12979
# So that behaviour is only enabled if SCOABSPATH is set to a
12980
# non-empty value in the environment. Most likely only useful for
12981
# creating official distributions of packages.
12982
# This is a hack until libtool officially supports absolute path
12983
# names for shared libraries.
12984
no_undefined_flag_CXX='${wl}-z,text'
12985
allow_undefined_flag_CXX='${wl}-z,nodefs'
12986
archive_cmds_need_lc_CXX=no
12987
hardcode_shlibpath_var_CXX=no
12988
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12989
hardcode_libdir_separator_CXX=':'
12990
link_all_deplibs_CXX=yes
12991
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12992
runpath_var='LD_RUN_PATH'
12994
case $cc_basename in
12996
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13000
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13001
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13006
case $cc_basename in
13008
# NonStop-UX NCC 3.20
13009
# FIXME: insert proper C++ library support
13013
# FIXME: insert proper C++ library support
13019
# FIXME: insert proper C++ library support
13023
# FIXME: insert proper C++ library support
13027
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13014
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13021
case $cc_basename in
13023
# NonStop-UX NCC 3.20
13024
# FIXME: insert proper C++ library support
13028
# FIXME: insert proper C++ library support
13035
# FIXME: insert proper C++ library support
13040
# FIXME: insert proper C++ library support
13045
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13028
13046
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13029
test "$ld_shlibs_CXX" = no && can_build_shared=no
13034
cat > conftest.$ac_ext <<EOF
13047
test "$ld_shlibs_CXX" = no && can_build_shared=no
13053
## There is no encapsulation within the following macros, do not change
13054
## the running order or otherwise move them around unless you know exactly
13055
## what you are doing...
13056
# Dependencies to place before and after the object being linked:
13057
predep_objects_CXX=
13058
postdep_objects_CXX=
13061
compiler_lib_search_path_CXX=
13063
cat > conftest.$ac_ext <<_LT_EOF
14376
14675
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14377
14676
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14379
if test "$hardcode_action_CXX" = relink; then
14380
# Fast installation is not supported
14381
enable_fast_install=no
14382
elif test "$shlibpath_overrides_runpath" = yes ||
14383
test "$enable_shared" = no; then
14384
# Fast installation is not necessary
14385
enable_fast_install=needless
14389
# The else clause should only fire when bootstrapping the
14390
# libtool distribution, otherwise you forgot to ship ltmain.sh
14391
# with your package, and you will get complaints that there are
14392
# no rules to generate ltmain.sh.
14393
if test -f "$ltmain"; then
14394
# See if we are running on zsh, and set the options which allow our commands through
14395
# without removal of \ escapes.
14396
if test -n "${ZSH_VERSION+set}" ; then
14397
setopt NO_GLOB_SUBST
14399
# Now quote all the things that may contain metacharacters while being
14400
# careful not to overquote the AC_SUBSTed values. We take copies of the
14401
# variables and quote the copies for generation of the libtool script.
14402
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14404
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14405
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14406
deplibs_check_method reload_flag reload_cmds need_locks \
14407
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14408
lt_cv_sys_global_symbol_to_c_name_address \
14409
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14410
old_postinstall_cmds old_postuninstall_cmds \
14414
lt_prog_compiler_wl_CXX \
14415
lt_prog_compiler_pic_CXX \
14416
lt_prog_compiler_static_CXX \
14417
lt_prog_compiler_no_builtin_flag_CXX \
14418
export_dynamic_flag_spec_CXX \
14419
thread_safe_flag_spec_CXX \
14420
whole_archive_flag_spec_CXX \
14421
enable_shared_with_static_runtimes_CXX \
14422
old_archive_cmds_CXX \
14423
old_archive_from_new_cmds_CXX \
14424
predep_objects_CXX \
14425
postdep_objects_CXX \
14428
compiler_lib_search_path_CXX \
14429
compiler_lib_search_dirs_CXX \
14431
archive_expsym_cmds_CXX \
14432
postinstall_cmds_CXX \
14433
postuninstall_cmds_CXX \
14434
old_archive_from_expsyms_cmds_CXX \
14435
allow_undefined_flag_CXX \
14436
no_undefined_flag_CXX \
14437
export_symbols_cmds_CXX \
14438
hardcode_libdir_flag_spec_CXX \
14439
hardcode_libdir_flag_spec_ld_CXX \
14440
hardcode_libdir_separator_CXX \
14441
hardcode_automatic_CXX \
14443
module_expsym_cmds_CXX \
14444
lt_cv_prog_compiler_c_o_CXX \
14445
fix_srcfile_path_CXX \
14446
exclude_expsyms_CXX \
14447
include_expsyms_CXX; do
14450
old_archive_cmds_CXX | \
14451
old_archive_from_new_cmds_CXX | \
14452
archive_cmds_CXX | \
14453
archive_expsym_cmds_CXX | \
14454
module_cmds_CXX | \
14455
module_expsym_cmds_CXX | \
14456
old_archive_from_expsyms_cmds_CXX | \
14457
export_symbols_cmds_CXX | \
14458
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14459
postinstall_cmds | postuninstall_cmds | \
14460
old_postinstall_cmds | old_postuninstall_cmds | \
14461
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14462
# Double-quote double-evaled strings.
14463
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14466
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14472
*'\$0 --fallback-echo"')
14473
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14479
cat <<__EOF__ >> "$cfgfile"
14480
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14482
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14484
# Shell to use when invoking shell scripts.
14487
# Whether or not to build shared libraries.
14488
build_libtool_libs=$enable_shared
14490
# Whether or not to build static libraries.
14491
build_old_libs=$enable_static
14493
# Whether or not to add -lc for building shared libraries.
14494
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14496
# Whether or not to disallow shared libs when runtime libs are static
14497
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14499
# Whether or not to optimize for fast installation.
14500
fast_install=$enable_fast_install
14503
host_alias=$host_alias
14507
# The build system.
14508
build_alias=$build_alias
14512
# An echo program that does not interpret backslashes.
14517
AR_FLAGS=$lt_AR_FLAGS
14522
# LTCC compiler flags.
14523
LTCFLAGS=$lt_LTCFLAGS
14525
# A language-specific compiler.
14526
CC=$lt_compiler_CXX
14528
# Is the compiler the GNU C compiler?
14534
# The linker used to build libraries.
14537
# Whether we need hard or soft links.
14540
# A BSD-compatible nm program.
14543
# A symbol stripping program
14546
# Used to examine libraries when file_magic_cmd begins "file"
14547
MAGIC_CMD=$MAGIC_CMD
14549
# Used on cygwin: DLL creation program.
14552
# Used on cygwin: object dumper.
14555
# Used on cygwin: assembler.
14558
# The name of the directory that contains temporary libtool files.
14561
# How to create reloadable object files.
14562
reload_flag=$lt_reload_flag
14563
reload_cmds=$lt_reload_cmds
14565
# How to pass a linker flag through the compiler.
14566
wl=$lt_lt_prog_compiler_wl_CXX
14568
# Object file suffix (normally "o").
14569
objext="$ac_objext"
14571
# Old archive suffix (normally "a").
14574
# Shared library suffix (normally ".so").
14575
shrext_cmds='$shrext_cmds'
14577
# Executable file suffix (normally "").
14580
# Additional compiler flags for building library objects.
14581
pic_flag=$lt_lt_prog_compiler_pic_CXX
14584
# What is the maximum length of a command?
14585
max_cmd_len=$lt_cv_sys_max_cmd_len
14587
# Does compiler simultaneously support -c and -o options?
14588
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14590
# Must we lock files when doing compilation?
14591
need_locks=$lt_need_locks
14593
# Do we need the lib prefix for modules?
14594
need_lib_prefix=$need_lib_prefix
14596
# Do we need a version for libraries?
14597
need_version=$need_version
14599
# Whether dlopen is supported.
14600
dlopen_support=$enable_dlopen
14602
# Whether dlopen of programs is supported.
14603
dlopen_self=$enable_dlopen_self
14605
# Whether dlopen of statically linked programs is supported.
14606
dlopen_self_static=$enable_dlopen_self_static
14608
# Compiler flag to prevent dynamic linking.
14609
link_static_flag=$lt_lt_prog_compiler_static_CXX
14611
# Compiler flag to turn off builtin functions.
14612
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14614
# Compiler flag to allow reflexive dlopens.
14615
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14617
# Compiler flag to generate shared objects directly from archives.
14618
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14620
# Compiler flag to generate thread-safe objects.
14621
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14623
# Library versioning type.
14624
version_type=$version_type
14626
# Format of library name prefix.
14627
libname_spec=$lt_libname_spec
14629
# List of archive names. First name is the real one, the rest are links.
14630
# The last name is the one that the linker finds with -lNAME.
14631
library_names_spec=$lt_library_names_spec
14633
# The coded name of the library, if different from the real name.
14634
soname_spec=$lt_soname_spec
14636
# Commands used to build and install an old-style archive.
14638
old_archive_cmds=$lt_old_archive_cmds_CXX
14639
old_postinstall_cmds=$lt_old_postinstall_cmds
14640
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14642
# Create an old-style archive from a shared archive.
14643
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14645
# Create a temporary old-style archive to link instead of a shared archive.
14646
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14648
# Commands used to build and install a shared archive.
14649
archive_cmds=$lt_archive_cmds_CXX
14650
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14651
postinstall_cmds=$lt_postinstall_cmds
14652
postuninstall_cmds=$lt_postuninstall_cmds
14654
# Commands used to build a loadable module (assumed same as above if empty)
14655
module_cmds=$lt_module_cmds_CXX
14656
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14658
# Commands to strip libraries.
14659
old_striplib=$lt_old_striplib
14660
striplib=$lt_striplib
14662
# Dependencies to place before the objects being linked to create a
14664
predep_objects=$lt_predep_objects_CXX
14666
# Dependencies to place after the objects being linked to create a
14668
postdep_objects=$lt_postdep_objects_CXX
14670
# Dependencies to place before the objects being linked to create a
14672
predeps=$lt_predeps_CXX
14674
# Dependencies to place after the objects being linked to create a
14676
postdeps=$lt_postdeps_CXX
14678
# The directories searched by this compiler when creating a shared
14680
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14682
# The library search path used internally by the compiler when linking
14683
# a shared library.
14684
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14686
# Method to check whether dependent libraries are shared objects.
14687
deplibs_check_method=$lt_deplibs_check_method
14689
# Command to use when deplibs_check_method == file_magic.
14690
file_magic_cmd=$lt_file_magic_cmd
14692
# Flag that allows shared libraries with undefined symbols to be built.
14693
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14695
# Flag that forces no undefined symbols.
14696
no_undefined_flag=$lt_no_undefined_flag_CXX
14698
# Commands used to finish a libtool library installation in a directory.
14699
finish_cmds=$lt_finish_cmds
14701
# Same as above, but a single script fragment to be evaled but not shown.
14702
finish_eval=$lt_finish_eval
14704
# Take the output of nm and produce a listing of raw symbols and C names.
14705
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14707
# Transform the output of nm in a proper C declaration
14708
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14710
# Transform the output of nm in a C name address pair
14711
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14713
# This is the shared library runtime path variable.
14714
runpath_var=$runpath_var
14716
# This is the shared library path variable.
14717
shlibpath_var=$shlibpath_var
14719
# Is shlibpath searched before the hard-coded library search path?
14720
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14722
# How to hardcode a shared library path into an executable.
14723
hardcode_action=$hardcode_action_CXX
14725
# Whether we should hardcode library paths into libraries.
14726
hardcode_into_libs=$hardcode_into_libs
14728
# Flag to hardcode \$libdir into a binary during linking.
14729
# This must work even if \$libdir does not exist.
14730
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14732
# If ld is used when linking, flag to hardcode \$libdir into
14733
# a binary during linking. This must work even if \$libdir does
14735
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14737
# Whether we need a single -rpath flag with a separated argument.
14738
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14740
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14741
# resulting binary.
14742
hardcode_direct=$hardcode_direct_CXX
14744
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14745
# resulting binary.
14746
hardcode_minus_L=$hardcode_minus_L_CXX
14748
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14749
# the resulting binary.
14750
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14752
# Set to yes if building a shared library automatically hardcodes DIR into the library
14753
# and all subsequent libraries and executables linked against it.
14754
hardcode_automatic=$hardcode_automatic_CXX
14756
# Variables whose values should be saved in libtool wrapper scripts and
14757
# restored at relink time.
14758
variables_saved_for_relink="$variables_saved_for_relink"
14760
# Whether libtool must link a program against all its dependency libraries.
14761
link_all_deplibs=$link_all_deplibs_CXX
14763
# Compile-time system search path for libraries
14764
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14766
# Run-time system search path for libraries
14767
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14769
# Fix the shell variable \$srcfile for the compiler.
14770
fix_srcfile_path=$lt_fix_srcfile_path
14772
# Set to yes if exported symbols are required.
14773
always_export_symbols=$always_export_symbols_CXX
14775
# The commands to list exported symbols.
14776
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14778
# The commands to extract the exported symbol list from a shared archive.
14779
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14781
# Symbols that should not be listed in the preloaded symbols.
14782
exclude_expsyms=$lt_exclude_expsyms_CXX
14784
# Symbols that must always be exported.
14785
include_expsyms=$lt_include_expsyms_CXX
14787
# ### END LIBTOOL TAG CONFIG: $tagname
14793
# If there is no Makefile yet, we rely on a make rule to execute
14794
# `config.status --recheck' to rerun these tests and create the
14795
# libtool script then.
14796
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14797
if test -f "$ltmain_in"; then
14798
test -f Makefile && make "$ltmain"
14804
ac_cpp='$CPP $CPPFLAGS'
14805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14813
with_gnu_ldcxx=$with_gnu_ld
14814
with_gnu_ld=$lt_save_with_gnu_ld
14815
lt_cv_path_LDCXX=$lt_cv_path_LD
14816
lt_cv_path_LD=$lt_save_path_LD
14817
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14818
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14826
if test -n "$F77" && test "X$F77" != "Xno"; then
14829
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14830
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14831
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14834
archive_cmds_need_lc_F77=no
14835
allow_undefined_flag_F77=
14836
always_export_symbols_F77=no
14837
archive_expsym_cmds_F77=
14838
export_dynamic_flag_spec_F77=
14839
hardcode_direct_F77=no
14840
hardcode_libdir_flag_spec_F77=
14841
hardcode_libdir_flag_spec_ld_F77=
14842
hardcode_libdir_separator_F77=
14843
hardcode_minus_L_F77=no
14844
hardcode_automatic_F77=no
14846
module_expsym_cmds_F77=
14847
link_all_deplibs_F77=unknown
14848
old_archive_cmds_F77=$old_archive_cmds
14849
no_undefined_flag_F77=
14850
whole_archive_flag_spec_F77=
14851
enable_shared_with_static_runtimes_F77=no
14853
# Source file extension for f77 test sources.
14856
# Object file extension for compiled f77 test sources.
14860
# Code to be used in simple compile tests
14861
lt_simple_compile_test_code="\
14867
# Code to be used in simple link tests
14868
lt_simple_link_test_code="\
14873
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14875
# If no C compiler was specified, use CC.
14878
# If no C compiler flags were specified, use CFLAGS.
14879
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14881
# Allow CC to be a program name with arguments.
14885
# save warnings/boilerplate of simple test code
14886
ac_outfile=conftest.$ac_objext
14887
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14888
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14889
_lt_compiler_boilerplate=`cat conftest.err`
14892
ac_outfile=conftest.$ac_objext
14893
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14894
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14895
_lt_linker_boilerplate=`cat conftest.err`
14899
# Allow CC to be a program name with arguments.
14904
for cc_temp in $compiler""; do
14906
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14907
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14912
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14915
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14916
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14917
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14918
echo "${ECHO_T}$can_build_shared" >&6; }
14920
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14921
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14922
test "$can_build_shared" = "no" && enable_shared=no
14924
# On AIX, shared libraries and static libraries use the same namespace, and
14925
# are all built from PIC.
14928
test "$enable_shared" = yes && enable_static=no
14929
if test -n "$RANLIB"; then
14930
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14931
postinstall_cmds='$RANLIB $lib'
14935
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14936
test "$enable_shared" = yes && enable_static=no
14940
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14941
echo "${ECHO_T}$enable_shared" >&6; }
14943
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14944
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14945
# Make sure either enable_shared or enable_static is yes.
14946
test "$enable_shared" = yes || enable_static=yes
14947
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14948
echo "${ECHO_T}$enable_static" >&6; }
14953
lt_prog_compiler_wl_F77=
14954
lt_prog_compiler_pic_F77=
14955
lt_prog_compiler_static_F77=
14957
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14958
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14960
if test "$GCC" = yes; then
14961
lt_prog_compiler_wl_F77='-Wl,'
14962
lt_prog_compiler_static_F77='-static'
14966
# All AIX code is PIC.
14967
if test "$host_cpu" = ia64; then
14968
# AIX 5 now supports IA64 processor
14969
lt_prog_compiler_static_F77='-Bstatic'
14974
# FIXME: we need at least 68020 code to build shared libraries, but
14975
# adding the `-m68020' flag to GCC prevents building anything better,
14977
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14980
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14981
# PIC is the default for these OSes.
14984
mingw* | cygwin* | pw32* | os2*)
14985
# This hack is so that the source file can tell whether it is being
14986
# built for inclusion in a dll (and should export symbols for example).
14987
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14988
# (--disable-auto-import) libraries
14989
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14992
darwin* | rhapsody*)
14993
# PIC is the default on this platform
14994
# Common symbols not allowed in MH_DYLIB files
14995
lt_prog_compiler_pic_F77='-fno-common'
14999
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15000
# Instead, we relocate shared libraries at runtime.
15004
# Just because we use GCC doesn't mean we suddenly get shared libraries
15005
# on systems that don't support them.
15006
lt_prog_compiler_can_build_shared_F77=no
15011
if test -d /usr/nec; then
15012
lt_prog_compiler_pic_F77=-Kconform_pic
15017
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15018
# not for PA HP-UX.
15024
lt_prog_compiler_pic_F77='-fPIC'
15030
lt_prog_compiler_pic_F77='-fPIC'
15034
# PORTME Check for flag to pass linker flags through the system compiler.
15037
lt_prog_compiler_wl_F77='-Wl,'
15038
if test "$host_cpu" = ia64; then
15039
# AIX 5 now supports IA64 processor
15040
lt_prog_compiler_static_F77='-Bstatic'
15042
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15046
# PIC is the default on this platform
15047
# Common symbols not allowed in MH_DYLIB files
15048
case $cc_basename in
15050
lt_prog_compiler_pic_F77='-qnocommon'
15051
lt_prog_compiler_wl_F77='-Wl,'
15056
mingw* | cygwin* | pw32* | os2*)
15057
# This hack is so that the source file can tell whether it is being
15058
# built for inclusion in a dll (and should export symbols for example).
15059
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15062
hpux9* | hpux10* | hpux11*)
15063
lt_prog_compiler_wl_F77='-Wl,'
15064
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15065
# not for PA HP-UX.
15071
lt_prog_compiler_pic_F77='+Z'
15074
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15075
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15078
irix5* | irix6* | nonstopux*)
15079
lt_prog_compiler_wl_F77='-Wl,'
15080
# PIC (with -KPIC) is the default.
15081
lt_prog_compiler_static_F77='-non_shared'
15085
lt_prog_compiler_pic_F77='-KPIC'
15086
lt_prog_compiler_static_F77='-Bstatic'
15089
linux* | k*bsd*-gnu)
15090
case $cc_basename in
15092
lt_prog_compiler_wl_F77='-Wl,'
15093
lt_prog_compiler_pic_F77='-KPIC'
15094
lt_prog_compiler_static_F77='-static'
15096
pgcc* | pgf77* | pgf90* | pgf95*)
15097
# Portland Group compilers (*not* the Pentium gcc compiler,
15098
# which looks to be a dead project)
15099
lt_prog_compiler_wl_F77='-Wl,'
15100
lt_prog_compiler_pic_F77='-fpic'
15101
lt_prog_compiler_static_F77='-Bstatic'
15104
lt_prog_compiler_wl_F77='-Wl,'
15105
# All Alpha code is PIC.
15106
lt_prog_compiler_static_F77='-non_shared'
15109
case `$CC -V 2>&1 | sed 5q` in
15112
lt_prog_compiler_pic_F77='-KPIC'
15113
lt_prog_compiler_static_F77='-Bstatic'
15114
lt_prog_compiler_wl_F77='-Wl,'
15117
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15118
lt_prog_compiler_pic_F77='-KPIC'
15119
lt_prog_compiler_static_F77='-Bstatic'
15120
lt_prog_compiler_wl_F77=''
15127
osf3* | osf4* | osf5*)
15128
lt_prog_compiler_wl_F77='-Wl,'
15129
# All OSF/1 code is PIC.
15130
lt_prog_compiler_static_F77='-non_shared'
15134
lt_prog_compiler_static_F77='-non_shared'
15138
lt_prog_compiler_pic_F77='-KPIC'
15139
lt_prog_compiler_static_F77='-Bstatic'
15140
case $cc_basename in
15141
f77* | f90* | f95*)
15142
lt_prog_compiler_wl_F77='-Qoption ld ';;
15144
lt_prog_compiler_wl_F77='-Wl,';;
15149
lt_prog_compiler_wl_F77='-Qoption ld '
15150
lt_prog_compiler_pic_F77='-PIC'
15151
lt_prog_compiler_static_F77='-Bstatic'
15154
sysv4 | sysv4.2uw2* | sysv4.3*)
15155
lt_prog_compiler_wl_F77='-Wl,'
15156
lt_prog_compiler_pic_F77='-KPIC'
15157
lt_prog_compiler_static_F77='-Bstatic'
15161
if test -d /usr/nec ;then
15162
lt_prog_compiler_pic_F77='-Kconform_pic'
15163
lt_prog_compiler_static_F77='-Bstatic'
15167
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15168
lt_prog_compiler_wl_F77='-Wl,'
15169
lt_prog_compiler_pic_F77='-KPIC'
15170
lt_prog_compiler_static_F77='-Bstatic'
15174
lt_prog_compiler_wl_F77='-Wl,'
15175
lt_prog_compiler_can_build_shared_F77=no
15179
lt_prog_compiler_pic_F77='-pic'
15180
lt_prog_compiler_static_F77='-Bstatic'
15184
lt_prog_compiler_can_build_shared_F77=no
15189
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15190
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15193
# Check to make sure the PIC flag actually works.
15195
if test -n "$lt_prog_compiler_pic_F77"; then
15197
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15198
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15199
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15200
echo $ECHO_N "(cached) $ECHO_C" >&6
15202
lt_cv_prog_compiler_pic_works_F77=no
15203
ac_outfile=conftest.$ac_objext
15204
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15205
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15206
# Insert the option either (1) after the last *FLAGS variable, or
15207
# (2) before a word containing "conftest.", or (3) at the end.
15208
# Note that $ac_compile itself does not contain backslashes and begins
15209
# with a dollar sign (not a hyphen), so the echo should work correctly.
15210
# The option is referenced via a variable to avoid confusing sed.
15211
lt_compile=`echo "$ac_compile" | $SED \
15212
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15213
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214
-e 's:$: $lt_compiler_flag:'`
15215
(eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216
(eval "$lt_compile" 2>conftest.err)
15218
cat conftest.err >&5
15219
echo "$as_me:15219: \$? = $ac_status" >&5
15220
if (exit $ac_status) && test -s "$ac_outfile"; then
15221
# The compiler can only warn and ignore the option if not recognized
15222
# So say no if there are warnings other than the usual output.
15223
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15224
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15225
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15226
lt_cv_prog_compiler_pic_works_F77=yes
15232
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15233
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15235
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15236
case $lt_prog_compiler_pic_F77 in
15238
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15241
lt_prog_compiler_pic_F77=
15242
lt_prog_compiler_can_build_shared_F77=no
15247
# For platforms which do not support PIC, -DPIC is meaningless:
15249
lt_prog_compiler_pic_F77=
15252
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15257
# Check to make sure the static flag actually works.
15259
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15260
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15261
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15262
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15263
echo $ECHO_N "(cached) $ECHO_C" >&6
15265
lt_cv_prog_compiler_static_works_F77=no
15266
save_LDFLAGS="$LDFLAGS"
15267
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15268
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15269
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15270
# The linker can only warn and ignore the option if not recognized
15271
# So say no if there are warnings
15272
if test -s conftest.err; then
15273
# Append any errors to the config.log.
15274
cat conftest.err 1>&5
15275
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15276
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15277
if diff conftest.exp conftest.er2 >/dev/null; then
15278
lt_cv_prog_compiler_static_works_F77=yes
15281
lt_cv_prog_compiler_static_works_F77=yes
15285
LDFLAGS="$save_LDFLAGS"
15288
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15289
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15291
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15294
lt_prog_compiler_static_F77=
15298
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15299
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15300
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15301
echo $ECHO_N "(cached) $ECHO_C" >&6
15303
lt_cv_prog_compiler_c_o_F77=no
15304
$rm -r conftest 2>/dev/null
15308
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15310
lt_compiler_flag="-o out/conftest2.$ac_objext"
15311
# Insert the option either (1) after the last *FLAGS variable, or
15312
# (2) before a word containing "conftest.", or (3) at the end.
15313
# Note that $ac_compile itself does not contain backslashes and begins
15314
# with a dollar sign (not a hyphen), so the echo should work correctly.
15315
lt_compile=`echo "$ac_compile" | $SED \
15316
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15317
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15318
-e 's:$: $lt_compiler_flag:'`
15319
(eval echo "\"\$as_me:15319: $lt_compile\"" >&5)
15320
(eval "$lt_compile" 2>out/conftest.err)
15322
cat out/conftest.err >&5
15323
echo "$as_me:15323: \$? = $ac_status" >&5
15324
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15326
# The compiler can only warn and ignore the option if not recognized
15327
# So say no if there are warnings
15328
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15329
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15330
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15331
lt_cv_prog_compiler_c_o_F77=yes
15336
# SGI C++ compiler will create directory out/ii_files/ for
15337
# template instantiation
15338
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15339
$rm out/* && rmdir out
15345
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15346
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15349
hard_links="nottested"
15350
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15351
# do not overwrite the value of need_locks provided by the user
15352
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15353
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15356
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15358
ln conftest.a conftest.b 2>&5 || hard_links=no
15359
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15360
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15361
echo "${ECHO_T}$hard_links" >&6; }
15362
if test "$hard_links" = no; then
15363
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15364
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15371
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15372
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15375
allow_undefined_flag_F77=
15376
enable_shared_with_static_runtimes_F77=no
15378
archive_expsym_cmds_F77=
15379
old_archive_From_new_cmds_F77=
15380
old_archive_from_expsyms_cmds_F77=
15381
export_dynamic_flag_spec_F77=
15382
whole_archive_flag_spec_F77=
15383
thread_safe_flag_spec_F77=
15384
hardcode_libdir_flag_spec_F77=
15385
hardcode_libdir_flag_spec_ld_F77=
15386
hardcode_libdir_separator_F77=
15387
hardcode_direct_F77=no
15388
hardcode_minus_L_F77=no
15389
hardcode_shlibpath_var_F77=unsupported
15390
link_all_deplibs_F77=unknown
15391
hardcode_automatic_F77=no
15393
module_expsym_cmds_F77=
15394
always_export_symbols_F77=no
15395
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396
# include_expsyms should be a list of space-separated symbols to be *always*
15397
# included in the symbol list
15398
include_expsyms_F77=
15399
# exclude_expsyms can be an extended regexp of symbols to exclude
15400
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15401
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15402
# as well as any symbol that contains `d'.
15403
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15404
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15405
# platforms (ab)use it in PIC code, but their linkers get confused if
15406
# the symbol is explicitly referenced. Since portable code cannot
15407
# rely on this symbol name, it's probably fine to never include it in
15408
# preloaded symbol tables.
15409
# Exclude shared library initialization/finalization symbols.
15410
extract_expsyms_cmds=
15411
# Just being paranoid about ensuring that cc_basename is set.
15412
for cc_temp in $compiler""; do
15414
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15415
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15420
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15423
cygwin* | mingw* | pw32*)
15424
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15425
# When not using gcc, we currently assume that we are using
15426
# Microsoft Visual C++.
15427
if test "$GCC" != yes; then
15432
# we just hope/assume this is gcc and not c89 (= MSVC++)
15441
if test "$with_gnu_ld" = yes; then
15442
# If archive_cmds runs LD, not CC, wlarc should be empty
15445
# Set some defaults for GNU ld with shared library support. These
15446
# are reset later if shared libraries are not supported. Putting them
15447
# here allows them to be overridden if necessary.
15448
runpath_var=LD_RUN_PATH
15449
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15450
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15451
# ancient GNU ld didn't support --whole-archive et. al.
15452
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15453
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15455
whole_archive_flag_spec_F77=
15457
supports_anon_versioning=no
15458
case `$LD -v 2>/dev/null` in
15459
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15460
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15461
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15462
*\ 2.11.*) ;; # other 2.11 versions
15463
*) supports_anon_versioning=yes ;;
15466
# See if GNU ld supports shared libraries.
15469
# On AIX/PPC, the GNU linker is very broken
15470
if test "$host_cpu" != ia64; then
15474
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475
*** to be unable to reliably create shared libraries on AIX.
15476
*** Therefore, libtool is disabling shared libraries support. If you
15477
*** really care for shared libraries, you may want to modify your PATH
15478
*** so that a non-GNU linker is found, and then restart.
15485
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15486
hardcode_libdir_flag_spec_F77='-L$libdir'
15487
hardcode_minus_L_F77=yes
15489
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490
# that the semantics of dynamic libraries on AmigaOS, at least up
15491
# to version 4, is to share data among multiple programs linked
15492
# with the same dynamic library. Since this doesn't match the
15493
# behavior of shared libraries on other platforms, we can't use
15499
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500
allow_undefined_flag_F77=unsupported
15501
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502
# support --undefined. This deserves some investigation. FIXME
15503
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509
cygwin* | mingw* | pw32*)
15510
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15511
# as there is no search path for DLLs.
15512
hardcode_libdir_flag_spec_F77='-L$libdir'
15513
allow_undefined_flag_F77=unsupported
15514
always_export_symbols_F77=no
15515
enable_shared_with_static_runtimes_F77=yes
15516
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15518
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15520
# If the export-symbols file already is a .def file (1st line
15521
# is EXPORTS), use it as is; otherwise, prepend...
15522
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523
cp $export_symbols $output_objdir/$soname.def;
15525
echo EXPORTS > $output_objdir/$soname.def;
15526
cat $export_symbols >> $output_objdir/$soname.def;
15528
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15535
hardcode_direct_F77=no
15536
hardcode_shlibpath_var_F77=no
15537
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15538
export_dynamic_flag_spec_F77='${wl}-E'
15539
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15540
# Instead, shared libraries are loaded at an image base (0x10000000 by
15541
# default) and relocated if they conflict, which is a slow very memory
15542
# consuming and fragmenting process. To avoid this, we pick a random,
15543
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15544
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15545
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15546
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15549
gnu* | linux* | k*bsd*-gnu)
15550
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15552
case $cc_basename,$host_cpu in
15553
pgcc*) # Portland Group C compiler
15554
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15555
tmp_addflag=' $pic_flag'
15557
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15558
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15559
tmp_addflag=' $pic_flag -Mnomain' ;;
15560
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15561
tmp_addflag=' -i_dynamic' ;;
15562
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15563
tmp_addflag=' -i_dynamic -nofor_main' ;;
15564
ifc* | ifort*) # Intel Fortran compiler
15565
tmp_addflag=' -nofor_main' ;;
15567
case `$CC -V 2>&1 | sed 5q` in
15568
*Sun\ C*) # Sun C 5.9
15569
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15570
tmp_sharedflag='-G' ;;
15571
*Sun\ F*) # Sun Fortran 8.3
15572
tmp_sharedflag='-G' ;;
15574
tmp_sharedflag='-shared' ;;
15576
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15578
if test $supports_anon_versioning = yes; then
15579
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15580
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15581
$echo "local: *; };" >> $output_objdir/$libname.ver~
15582
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15584
link_all_deplibs_F77=no
15590
netbsd* | netbsdelf*-gnu)
15591
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15595
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15596
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15601
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15605
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15606
*** create shared libraries on Solaris systems. Therefore, libtool
15607
*** is disabling shared libraries support. We urge you to upgrade GNU
15608
*** binutils to release 2.9.1 or newer. Another option is to modify
15609
*** your PATH or compiler configuration so that the native linker is
15610
*** used, and then restart.
15613
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15614
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15621
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15622
case `$LD -v 2>&1` in
15623
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15627
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15628
*** reliably create shared libraries on SCO systems. Therefore, libtool
15629
*** is disabling shared libraries support. We urge you to upgrade GNU
15630
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15631
*** your PATH or compiler configuration so that the native linker is
15632
*** used, and then restart.
15637
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15638
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15639
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15640
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15649
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15651
hardcode_direct_F77=yes
15652
hardcode_shlibpath_var_F77=no
15656
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15657
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15665
if test "$ld_shlibs_F77" = no; then
15667
hardcode_libdir_flag_spec_F77=
15668
export_dynamic_flag_spec_F77=
15669
whole_archive_flag_spec_F77=
15672
# PORTME fill in a description of your system's linker (not GNU ld)
15675
allow_undefined_flag_F77=unsupported
15676
always_export_symbols_F77=yes
15677
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15678
# Note: this linker hardcodes the directories in LIBPATH if there
15679
# are no directories specified by -L.
15680
hardcode_minus_L_F77=yes
15681
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15682
# Neither direct hardcoding nor static linking is supported with a
15684
hardcode_direct_F77=unsupported
15689
if test "$host_cpu" = ia64; then
15690
# On IA64, the linker does run time linking by default, so we don't
15691
# have to do anything special.
15692
aix_use_runtimelinking=no
15693
exp_sym_flag='-Bexport'
15696
# If we're using GNU nm, then we don't want the "-C" option.
15697
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15698
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15699
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15701
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15703
aix_use_runtimelinking=no
15705
# Test if we are trying to use run time linking or normal
15706
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15707
# need to do runtime linking.
15708
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15709
for ld_flag in $LDFLAGS; do
15710
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15711
aix_use_runtimelinking=yes
15718
exp_sym_flag='-bexport'
15719
no_entry_flag='-bnoentry'
15722
# When large executables or shared objects are built, AIX ld can
15723
# have problems creating the table of contents. If linking a library
15724
# or program results in "error TOC overflow" add -mminimal-toc to
15725
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15726
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15728
archive_cmds_F77=''
15729
hardcode_direct_F77=yes
15730
hardcode_libdir_separator_F77=':'
15731
link_all_deplibs_F77=yes
15733
if test "$GCC" = yes; then
15734
case $host_os in aix4.[012]|aix4.[012].*)
15735
# We only want to do this on AIX 4.2 and lower, the check
15736
# below for broken collect2 doesn't work under 4.3+
15737
collect2name=`${CC} -print-prog-name=collect2`
15738
if test -f "$collect2name" && \
15739
strings "$collect2name" | grep resolve_lib_name >/dev/null
15741
# We have reworked collect2
15744
# We have old collect2
15745
hardcode_direct_F77=unsupported
15746
# It fails to find uninstalled libraries when the uninstalled
15747
# path is not listed in the libpath. Setting hardcode_minus_L
15748
# to unsupported forces relinking
15749
hardcode_minus_L_F77=yes
15750
hardcode_libdir_flag_spec_F77='-L$libdir'
15751
hardcode_libdir_separator_F77=
15755
shared_flag='-shared'
15756
if test "$aix_use_runtimelinking" = yes; then
15757
shared_flag="$shared_flag "'${wl}-G'
15761
if test "$host_cpu" = ia64; then
15762
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15763
# chokes on -Wl,-G. The following line is correct:
15766
if test "$aix_use_runtimelinking" = yes; then
15767
shared_flag='${wl}-G'
15769
shared_flag='${wl}-bM:SRE'
15774
# It seems that -bexpall does not export symbols beginning with
15775
# underscore (_), so it is better to generate a list of symbols to export.
15776
always_export_symbols_F77=yes
15777
if test "$aix_use_runtimelinking" = yes; then
15778
# Warning - without using the other runtime loading flags (-brtl),
15779
# -berok will link without error, but may produce a broken library.
15780
allow_undefined_flag_F77='-berok'
15781
# Determine the default libpath from the value encoded in an empty executable.
15782
cat >conftest.$ac_ext <<_ACEOF
15787
rm -f conftest.$ac_objext conftest$ac_exeext
15788
if { (ac_try="$ac_link"
15789
case "(($ac_try" in
15790
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791
*) ac_try_echo=$ac_try;;
15793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794
(eval "$ac_link") 2>conftest.er1
15796
grep -v '^ *+' conftest.er1 >conftest.err
15798
cat conftest.err >&5
15799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800
(exit $ac_status); } && {
15801
test -z "$ac_f77_werror_flag" ||
15802
test ! -s conftest.err
15803
} && test -s conftest$ac_exeext &&
15804
$as_test_x conftest$ac_exeext; then
15806
lt_aix_libpath_sed='
15807
/Import File Strings/,/^$/ {
15813
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15814
# Check for a 64-bit object if we didn't find anything.
15815
if test -z "$aix_libpath"; then
15816
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15819
echo "$as_me: failed program was:" >&5
15820
sed 's/^/| /' conftest.$ac_ext >&5
15825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15826
conftest$ac_exeext conftest.$ac_ext
15827
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15829
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15830
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15832
if test "$host_cpu" = ia64; then
15833
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15834
allow_undefined_flag_F77="-z nodefs"
15835
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15837
# Determine the default libpath from the value encoded in an empty executable.
15838
cat >conftest.$ac_ext <<_ACEOF
15843
rm -f conftest.$ac_objext conftest$ac_exeext
15844
if { (ac_try="$ac_link"
15845
case "(($ac_try" in
15846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847
*) ac_try_echo=$ac_try;;
15849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850
(eval "$ac_link") 2>conftest.er1
15852
grep -v '^ *+' conftest.er1 >conftest.err
15854
cat conftest.err >&5
15855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856
(exit $ac_status); } && {
15857
test -z "$ac_f77_werror_flag" ||
15858
test ! -s conftest.err
15859
} && test -s conftest$ac_exeext &&
15860
$as_test_x conftest$ac_exeext; then
15862
lt_aix_libpath_sed='
15863
/Import File Strings/,/^$/ {
15869
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15870
# Check for a 64-bit object if we didn't find anything.
15871
if test -z "$aix_libpath"; then
15872
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15875
echo "$as_me: failed program was:" >&5
15876
sed 's/^/| /' conftest.$ac_ext >&5
15881
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882
conftest$ac_exeext conftest.$ac_ext
15883
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15885
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15886
# Warning - without using the other run time loading flags,
15887
# -berok will link without error, but may produce a broken library.
15888
no_undefined_flag_F77=' ${wl}-bernotok'
15889
allow_undefined_flag_F77=' ${wl}-berok'
15890
# Exported symbols can be pulled into shared objects from archives
15891
whole_archive_flag_spec_F77='$convenience'
15892
archive_cmds_need_lc_F77=yes
15893
# This is similar to how AIX traditionally builds its shared libraries.
15894
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15900
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15901
hardcode_libdir_flag_spec_F77='-L$libdir'
15902
hardcode_minus_L_F77=yes
15903
# see comment about different semantics on the GNU ld section
15908
export_dynamic_flag_spec_F77=-rdynamic
15911
cygwin* | mingw* | pw32*)
15912
# When not using gcc, we currently assume that we are using
15913
# Microsoft Visual C++.
15914
# hardcode_libdir_flag_spec is actually meaningless, as there is
15915
# no search path for DLLs.
15916
hardcode_libdir_flag_spec_F77=' '
15917
allow_undefined_flag_F77=unsupported
15918
# Tell ltmain to make .lib files, not .a files.
15920
# Tell ltmain to make .dll files, not .so files.
15922
# FIXME: Setting linknames here is a bad hack.
15923
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15924
# The linker will automatically build a .lib file if we build a DLL.
15925
old_archive_From_new_cmds_F77='true'
15926
# FIXME: Should let the user specify the lib program.
15927
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15928
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15929
enable_shared_with_static_runtimes_F77=yes
15932
darwin* | rhapsody*)
15934
rhapsody* | darwin1.[012])
15935
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15938
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15939
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15941
case ${MACOSX_DEPLOYMENT_TARGET} in
15943
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15946
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15952
archive_cmds_need_lc_F77=no
15953
hardcode_direct_F77=no
15954
hardcode_automatic_F77=yes
15955
hardcode_shlibpath_var_F77=unsupported
15956
whole_archive_flag_spec_F77=''
15957
link_all_deplibs_F77=yes
15958
if test "$GCC" = yes ; then
15959
output_verbose_link_cmd='echo'
15960
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15961
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15962
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15963
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15965
case $cc_basename in
15967
output_verbose_link_cmd='echo'
15968
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15969
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15970
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15971
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15972
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15982
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983
hardcode_libdir_flag_spec_F77='-L$libdir'
15984
hardcode_shlibpath_var_F77=no
15991
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15992
# support. Future versions do this automatically, but an explicit c++rt0.o
15993
# does not break anything, and helps significantly (at the cost of a little
15996
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15997
hardcode_libdir_flag_spec_F77='-R$libdir'
15998
hardcode_direct_F77=yes
15999
hardcode_shlibpath_var_F77=no
16002
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16004
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16005
hardcode_direct_F77=yes
16006
hardcode_minus_L_F77=yes
16007
hardcode_shlibpath_var_F77=no
16010
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16011
freebsd* | dragonfly*)
16012
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16013
hardcode_libdir_flag_spec_F77='-R$libdir'
16014
hardcode_direct_F77=yes
16015
hardcode_shlibpath_var_F77=no
16019
if test "$GCC" = yes; then
16020
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16022
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16024
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16025
hardcode_libdir_separator_F77=:
16026
hardcode_direct_F77=yes
16028
# hardcode_minus_L: Not really in the search PATH,
16029
# but as the default location of the library.
16030
hardcode_minus_L_F77=yes
16031
export_dynamic_flag_spec_F77='${wl}-E'
16035
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16036
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16038
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16040
if test "$with_gnu_ld" = no; then
16041
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16042
hardcode_libdir_separator_F77=:
16044
hardcode_direct_F77=yes
16045
export_dynamic_flag_spec_F77='${wl}-E'
16047
# hardcode_minus_L: Not really in the search PATH,
16048
# but as the default location of the library.
16049
hardcode_minus_L_F77=yes
16054
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16057
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16060
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16063
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16069
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16072
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16075
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16079
if test "$with_gnu_ld" = no; then
16080
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16081
hardcode_libdir_separator_F77=:
16085
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16086
hardcode_direct_F77=no
16087
hardcode_shlibpath_var_F77=no
16090
hardcode_direct_F77=yes
16091
export_dynamic_flag_spec_F77='${wl}-E'
16093
# hardcode_minus_L: Not really in the search PATH,
16094
# but as the default location of the library.
16095
hardcode_minus_L_F77=yes
16101
irix5* | irix6* | nonstopux*)
16102
if test "$GCC" = yes; then
16103
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16105
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16106
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16108
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16109
hardcode_libdir_separator_F77=:
16110
link_all_deplibs_F77=yes
16113
netbsd* | netbsdelf*-gnu)
16114
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16115
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16117
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16119
hardcode_libdir_flag_spec_F77='-R$libdir'
16120
hardcode_direct_F77=yes
16121
hardcode_shlibpath_var_F77=no
16125
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126
hardcode_direct_F77=yes
16127
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16128
hardcode_libdir_separator_F77=:
16129
hardcode_shlibpath_var_F77=no
16133
if test -f /usr/libexec/ld.so; then
16134
hardcode_direct_F77=yes
16135
hardcode_shlibpath_var_F77=no
16136
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16137
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16139
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16140
export_dynamic_flag_spec_F77='${wl}-E'
16143
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16144
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145
hardcode_libdir_flag_spec_F77='-R$libdir'
16148
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16149
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16159
hardcode_libdir_flag_spec_F77='-L$libdir'
16160
hardcode_minus_L_F77=yes
16161
allow_undefined_flag_F77=unsupported
16162
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16163
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16167
if test "$GCC" = yes; then
16168
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16169
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16171
allow_undefined_flag_F77=' -expect_unresolved \*'
16172
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16174
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16175
hardcode_libdir_separator_F77=:
16178
osf4* | osf5*) # as osf3* with the addition of -msym flag
16179
if test "$GCC" = yes; then
16180
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16181
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16182
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16184
allow_undefined_flag_F77=' -expect_unresolved \*'
16185
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16186
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16187
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16189
# Both c and cxx compiler support -rpath directly
16190
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16192
hardcode_libdir_separator_F77=:
16196
no_undefined_flag_F77=' -z text'
16197
if test "$GCC" = yes; then
16199
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16201
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16204
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16208
hardcode_libdir_flag_spec_F77='-R$libdir'
16209
hardcode_shlibpath_var_F77=no
16211
solaris2.[0-5] | solaris2.[0-5].*) ;;
16213
# The compiler driver will combine and reorder linker options,
16214
# but understands `-z linker_flag'. GCC discards it without `$wl',
16215
# but is careful enough not to reorder.
16216
# Supported since Solaris 2.6 (maybe 2.5.1?)
16217
if test "$GCC" = yes; then
16218
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16220
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16224
link_all_deplibs_F77=yes
16228
if test "x$host_vendor" = xsequent; then
16229
# Use $CC to link under sequent, because it throws in some extra .o
16230
# files that make .init and .fini sections work.
16231
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16233
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16235
hardcode_libdir_flag_spec_F77='-L$libdir'
16236
hardcode_direct_F77=yes
16237
hardcode_minus_L_F77=yes
16238
hardcode_shlibpath_var_F77=no
16242
case $host_vendor in
16244
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245
hardcode_direct_F77=yes # is this really true???
16248
## LD is ld it makes a PLAMLIB
16249
## CC just makes a GrossModule.
16250
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16251
reload_cmds_F77='$CC -r -o $output$reload_objs'
16252
hardcode_direct_F77=no
16255
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16259
runpath_var='LD_RUN_PATH'
16260
hardcode_shlibpath_var_F77=no
16264
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265
hardcode_shlibpath_var_F77=no
16266
export_dynamic_flag_spec_F77='-Bexport'
16270
if test -d /usr/nec; then
16271
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272
hardcode_shlibpath_var_F77=no
16273
runpath_var=LD_RUN_PATH
16274
hardcode_runpath_var=yes
16279
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16280
no_undefined_flag_F77='${wl}-z,text'
16281
archive_cmds_need_lc_F77=no
16282
hardcode_shlibpath_var_F77=no
16283
runpath_var='LD_RUN_PATH'
16285
if test "$GCC" = yes; then
16286
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16287
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16294
sysv5* | sco3.2v5* | sco5v6*)
16295
# Note: We can NOT use -z defs as we might desire, because we do not
16296
# link with -lc, and that would cause any symbols used from libc to
16297
# always be unresolved, which means just about no library would
16298
# ever link correctly. If we're not using GNU ld we use -z text
16299
# though, which does catch some bad symbols but isn't as heavy-handed
16301
no_undefined_flag_F77='${wl}-z,text'
16302
allow_undefined_flag_F77='${wl}-z,nodefs'
16303
archive_cmds_need_lc_F77=no
16304
hardcode_shlibpath_var_F77=no
16305
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16306
hardcode_libdir_separator_F77=':'
16307
link_all_deplibs_F77=yes
16308
export_dynamic_flag_spec_F77='${wl}-Bexport'
16309
runpath_var='LD_RUN_PATH'
16311
if test "$GCC" = yes; then
16312
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16316
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16321
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322
hardcode_libdir_flag_spec_F77='-L$libdir'
16323
hardcode_shlibpath_var_F77=no
16332
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16333
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16334
test "$ld_shlibs_F77" = no && can_build_shared=no
16337
# Do we need to explicitly link libc?
16339
case "x$archive_cmds_need_lc_F77" in
16341
# Assume -lc should be added
16342
archive_cmds_need_lc_F77=yes
16344
if test "$enable_shared" = yes && test "$GCC" = yes; then
16345
case $archive_cmds_F77 in
16347
# FIXME: we may have to deal with multi-command sequences.
16350
# Test whether the compiler implicitly links with -lc since on some
16351
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16352
# to ld, don't add -lc before -lgcc.
16353
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16354
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16356
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16358
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16359
(eval $ac_compile) 2>&5
16361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362
(exit $ac_status); } 2>conftest.err; then
16365
libobjs=conftest.$ac_objext
16367
wl=$lt_prog_compiler_wl_F77
16368
pic_flag=$lt_prog_compiler_pic_F77
16374
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16375
allow_undefined_flag_F77=
16376
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16377
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380
(exit $ac_status); }
16382
archive_cmds_need_lc_F77=no
16384
archive_cmds_need_lc_F77=yes
16386
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16388
cat conftest.err 1>&5
16391
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16392
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16399
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16400
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16401
library_names_spec=
16402
libname_spec='lib$name'
16406
postuninstall_cmds=
16410
shlibpath_overrides_runpath=unknown
16412
dynamic_linker="$host_os ld.so"
16413
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16415
need_lib_prefix=unknown
16416
hardcode_into_libs=no
16418
# when you set need_version to no, make sure it does not cause -set_version
16419
# flags to be left without arguments
16420
need_version=unknown
16425
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16426
shlibpath_var=LIBPATH
16428
# AIX 3 has no versioning support, so we append a major version to the name.
16429
soname_spec='${libname}${release}${shared_ext}$major'
16436
hardcode_into_libs=yes
16437
if test "$host_cpu" = ia64; then
16438
# AIX 5 supports IA64
16439
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440
shlibpath_var=LD_LIBRARY_PATH
16442
# With GCC up to 2.95.x, collect2 would create an import file
16443
# for dependence libraries. The import file would start with
16444
# the line `#! .'. This would cause the generated library to
16445
# depend on `.', always an invalid library. This was fixed in
16446
# development snapshots of GCC prior to 3.0.
16448
aix4 | aix4.[01] | aix4.[01].*)
16449
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16451
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16454
can_build_shared=no
16458
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459
# soname into executable. Probably we can add versioning support to
16460
# collect2, so additional links can be useful in future.
16461
if test "$aix_use_runtimelinking" = yes; then
16462
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463
# instead of lib<name>.a to let people know that these are not
16464
# typical AIX shared libraries.
16465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467
# We preserve .a as extension for shared libraries through AIX4.2
16468
# and later when we are not doing run time linking.
16469
library_names_spec='${libname}${release}.a $libname.a'
16470
soname_spec='${libname}${release}${shared_ext}$major'
16472
shlibpath_var=LIBPATH
16477
library_names_spec='$libname.ixlibrary $libname.a'
16478
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16479
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16483
library_names_spec='${libname}${shared_ext}'
16484
dynamic_linker="$host_os ld.so"
16485
shlibpath_var=LIBRARY_PATH
16491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492
soname_spec='${libname}${release}${shared_ext}$major'
16493
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16494
shlibpath_var=LD_LIBRARY_PATH
16495
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16496
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16497
# the default ld.so.conf also contains /usr/contrib/lib and
16498
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16499
# libtool to hard-code these into programs
16502
cygwin* | mingw* | pw32*)
16503
version_type=windows
16508
case $GCC,$host_os in
16509
yes,cygwin* | yes,mingw* | yes,pw32*)
16510
library_names_spec='$libname.dll.a'
16511
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16512
postinstall_cmds='base_file=`basename \${file}`~
16513
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16514
dldir=$destdir/`dirname \$dlpath`~
16515
test -d \$dldir || mkdir -p \$dldir~
16516
$install_prog $dir/$dlname \$dldir/$dlname~
16517
chmod a+x \$dldir/$dlname'
16518
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16519
dlpath=$dir/\$dldll~
16521
shlibpath_overrides_runpath=yes
16525
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16526
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16530
# MinGW DLLs use traditional 'lib' prefix
16531
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16533
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16534
# It is most probably a Windows format PATH printed by
16535
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16536
# path with ; separators, and with drive letters. We can handle the
16537
# drive letters (cygwin fileutils understands them), so leave them,
16538
# especially as we might pass files found there to a mingw objdump,
16539
# which wouldn't understand a cygwinified path. Ahh.
16540
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16542
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16546
# pw32 DLLs use 'pw' prefix rather than 'lib'
16547
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16553
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16556
dynamic_linker='Win32 ld.exe'
16557
# FIXME: first we should search . and the directory the executable is in
16561
darwin* | rhapsody*)
16562
dynamic_linker="$host_os dyld"
16563
version_type=darwin
16566
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16567
soname_spec='${libname}${release}${major}$shared_ext'
16568
shlibpath_overrides_runpath=yes
16569
shlibpath_var=DYLD_LIBRARY_PATH
16570
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16572
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16580
soname_spec='${libname}${release}${shared_ext}$major'
16581
shlibpath_var=LD_LIBRARY_PATH
16588
freebsd* | dragonfly*)
16589
# DragonFly does not have aout. When/if they implement a new
16590
# versioning mechanism, adjust this.
16591
if test -x /usr/bin/objformat; then
16592
objformat=`/usr/bin/objformat`
16595
freebsd[123]*) objformat=aout ;;
16596
*) objformat=elf ;;
16599
version_type=freebsd-$objformat
16600
case $version_type in
16602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16607
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16611
shlibpath_var=LD_LIBRARY_PATH
16614
shlibpath_overrides_runpath=yes
16616
freebsd3.[01]* | freebsdelf3.[01]*)
16617
shlibpath_overrides_runpath=yes
16618
hardcode_into_libs=yes
16620
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16621
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16622
shlibpath_overrides_runpath=no
16623
hardcode_into_libs=yes
16625
*) # from 4.6 on, and DragonFly
16626
shlibpath_overrides_runpath=yes
16627
hardcode_into_libs=yes
16636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16637
soname_spec='${libname}${release}${shared_ext}$major'
16638
shlibpath_var=LD_LIBRARY_PATH
16639
hardcode_into_libs=yes
16642
hpux9* | hpux10* | hpux11*)
16643
# Give a soname corresponding to the major version so that dld.sl refuses to
16644
# link against other versions.
16651
hardcode_into_libs=yes
16652
dynamic_linker="$host_os dld.so"
16653
shlibpath_var=LD_LIBRARY_PATH
16654
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656
soname_spec='${libname}${release}${shared_ext}$major'
16657
if test "X$HPUX_IA64_MODE" = X32; then
16658
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16660
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16662
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666
hardcode_into_libs=yes
16667
dynamic_linker="$host_os dld.sl"
16668
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16669
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16671
soname_spec='${libname}${release}${shared_ext}$major'
16672
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16673
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16677
dynamic_linker="$host_os dld.sl"
16678
shlibpath_var=SHLIB_PATH
16679
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681
soname_spec='${libname}${release}${shared_ext}$major'
16684
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16685
postinstall_cmds='chmod 555 $lib'
16692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16693
soname_spec='${libname}${release}${shared_ext}$major'
16694
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16695
shlibpath_var=LD_LIBRARY_PATH
16696
shlibpath_overrides_runpath=no
16697
hardcode_into_libs=yes
16700
irix5* | irix6* | nonstopux*)
16702
nonstopux*) version_type=nonstopux ;;
16704
if test "$lt_cv_prog_gnu_ld" = yes; then
16712
soname_spec='${libname}${release}${shared_ext}$major'
16713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16715
irix5* | nonstopux*)
16716
libsuff= shlibsuff=
16719
case $LD in # libtool.m4 will add one of these switches to LD
16720
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16721
libsuff= shlibsuff= libmagic=32-bit;;
16722
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16723
libsuff=32 shlibsuff=N32 libmagic=N32;;
16724
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16725
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16726
*) libsuff= shlibsuff= libmagic=never-match;;
16730
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16731
shlibpath_overrides_runpath=no
16732
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16733
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16734
hardcode_into_libs=yes
16737
# No shared lib support for Linux oldld, aout, or coff.
16738
linux*oldld* | linux*aout* | linux*coff*)
16742
# This must be Linux ELF.
16743
linux* | k*bsd*-gnu)
16747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748
soname_spec='${libname}${release}${shared_ext}$major'
16749
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16750
shlibpath_var=LD_LIBRARY_PATH
16751
shlibpath_overrides_runpath=no
16752
# This implies no fast_install, which is unacceptable.
16753
# Some rework will be needed to allow for fast_install
16754
# before this can be enabled.
16755
hardcode_into_libs=yes
16757
# Append ld.so.conf contents to the search path
16758
if test -f /etc/ld.so.conf; then
16759
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16760
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16763
# We used to test for /lib/ld.so.1 and disable shared libraries on
16764
# powerpc, because MkLinux only supported shared libraries with the
16765
# GNU dynamic linker. Since this was broken with cross compilers,
16766
# most powerpc-linux boxes support dynamic linking these days and
16767
# people can always --disable-shared, the test was removed, and we
16768
# assume the GNU/Linux dynamic linker is in use.
16769
dynamic_linker='GNU/Linux ld.so'
16776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16777
soname_spec='${libname}${release}${shared_ext}$major'
16778
shlibpath_var=LD_LIBRARY_PATH
16779
shlibpath_overrides_runpath=no
16780
hardcode_into_libs=yes
16781
dynamic_linker='NetBSD ld.elf_so'
16788
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791
dynamic_linker='NetBSD (a.out) ld.so'
16793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16794
soname_spec='${libname}${release}${shared_ext}$major'
16795
dynamic_linker='NetBSD ld.elf_so'
16797
shlibpath_var=LD_LIBRARY_PATH
16798
shlibpath_overrides_runpath=yes
16799
hardcode_into_libs=yes
16804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805
shlibpath_var=LD_LIBRARY_PATH
16806
shlibpath_overrides_runpath=yes
16813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814
soname_spec='${libname}${release}${shared_ext}$major'
16815
shlibpath_var=LD_LIBRARY_PATH
16816
shlibpath_overrides_runpath=yes
16821
sys_lib_dlsearch_path_spec="/usr/lib"
16823
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16825
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16826
*) need_version=no ;;
16828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16829
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16830
shlibpath_var=LD_LIBRARY_PATH
16831
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16833
openbsd2.[89] | openbsd2.[89].*)
16834
shlibpath_overrides_runpath=no
16837
shlibpath_overrides_runpath=yes
16841
shlibpath_overrides_runpath=yes
16846
libname_spec='$name'
16849
library_names_spec='$libname${shared_ext} $libname.a'
16850
dynamic_linker='OS/2 ld.exe'
16851
shlibpath_var=LIBPATH
16854
osf3* | osf4* | osf5*)
16858
soname_spec='${libname}${release}${shared_ext}$major'
16859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860
shlibpath_var=LD_LIBRARY_PATH
16861
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16862
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874
soname_spec='${libname}${release}${shared_ext}$major'
16875
shlibpath_var=LD_LIBRARY_PATH
16876
shlibpath_overrides_runpath=yes
16877
hardcode_into_libs=yes
16878
# ldd complains unless libraries are executable
16879
postinstall_cmds='chmod +x $lib'
16884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16885
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16886
shlibpath_var=LD_LIBRARY_PATH
16887
shlibpath_overrides_runpath=yes
16888
if test "$with_gnu_ld" = yes; then
16896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897
soname_spec='${libname}${release}${shared_ext}$major'
16898
shlibpath_var=LD_LIBRARY_PATH
16899
case $host_vendor in
16901
shlibpath_overrides_runpath=no
16903
export_dynamic_flag_spec='${wl}-Blargedynsym'
16904
runpath_var=LD_RUN_PATH
16912
shlibpath_overrides_runpath=no
16913
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16919
if test -d /usr/nec ;then
16921
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16922
soname_spec='$libname${shared_ext}.$major'
16923
shlibpath_var=LD_LIBRARY_PATH
16927
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16928
version_type=freebsd-elf
16931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16932
soname_spec='${libname}${release}${shared_ext}$major'
16933
shlibpath_var=LD_LIBRARY_PATH
16934
hardcode_into_libs=yes
16935
if test "$with_gnu_ld" = yes; then
16936
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16937
shlibpath_overrides_runpath=no
16939
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16940
shlibpath_overrides_runpath=yes
16943
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16947
sys_lib_dlsearch_path_spec='/usr/lib'
16952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953
soname_spec='${libname}${release}${shared_ext}$major'
16954
shlibpath_var=LD_LIBRARY_PATH
16961
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16962
echo "${ECHO_T}$dynamic_linker" >&6; }
16963
test "$dynamic_linker" = no && can_build_shared=no
16965
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16966
echo $ECHO_N "(cached) $ECHO_C" >&6
16968
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16971
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16972
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16973
echo $ECHO_N "(cached) $ECHO_C" >&6
16975
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16978
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16980
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16981
if test "$GCC" = yes; then
16982
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16985
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16986
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16987
hardcode_action_F77=
16988
if test -n "$hardcode_libdir_flag_spec_F77" || \
16989
test -n "$runpath_var_F77" || \
16990
test "X$hardcode_automatic_F77" = "Xyes" ; then
16992
# We can hardcode non-existant directories.
16993
if test "$hardcode_direct_F77" != no &&
16994
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16995
# have to relink, otherwise we might link with an installed library
16996
# when we should be linking with a yet-to-be-installed one
16997
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16998
test "$hardcode_minus_L_F77" != no; then
16999
# Linking always hardcodes the temporary library directory.
17000
hardcode_action_F77=relink
17002
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17003
hardcode_action_F77=immediate
17006
# We cannot hardcode anything, or else we can only hardcode existing
17008
hardcode_action_F77=unsupported
17010
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17011
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17013
if test "$hardcode_action_F77" = relink; then
17014
# Fast installation is not supported
17015
enable_fast_install=no
17016
elif test "$shlibpath_overrides_runpath" = yes ||
17017
test "$enable_shared" = no; then
17018
# Fast installation is not necessary
17019
enable_fast_install=needless
17023
# The else clause should only fire when bootstrapping the
17024
# libtool distribution, otherwise you forgot to ship ltmain.sh
17025
# with your package, and you will get complaints that there are
17026
# no rules to generate ltmain.sh.
17027
if test -f "$ltmain"; then
17028
# See if we are running on zsh, and set the options which allow our commands through
17029
# without removal of \ escapes.
17030
if test -n "${ZSH_VERSION+set}" ; then
17031
setopt NO_GLOB_SUBST
17033
# Now quote all the things that may contain metacharacters while being
17034
# careful not to overquote the AC_SUBSTed values. We take copies of the
17035
# variables and quote the copies for generation of the libtool script.
17036
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17038
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17039
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17040
deplibs_check_method reload_flag reload_cmds need_locks \
17041
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17042
lt_cv_sys_global_symbol_to_c_name_address \
17043
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17044
old_postinstall_cmds old_postuninstall_cmds \
17048
lt_prog_compiler_wl_F77 \
17049
lt_prog_compiler_pic_F77 \
17050
lt_prog_compiler_static_F77 \
17051
lt_prog_compiler_no_builtin_flag_F77 \
17052
export_dynamic_flag_spec_F77 \
17053
thread_safe_flag_spec_F77 \
17054
whole_archive_flag_spec_F77 \
17055
enable_shared_with_static_runtimes_F77 \
17056
old_archive_cmds_F77 \
17057
old_archive_from_new_cmds_F77 \
17058
predep_objects_F77 \
17059
postdep_objects_F77 \
17062
compiler_lib_search_path_F77 \
17063
compiler_lib_search_dirs_F77 \
17065
archive_expsym_cmds_F77 \
17066
postinstall_cmds_F77 \
17067
postuninstall_cmds_F77 \
17068
old_archive_from_expsyms_cmds_F77 \
17069
allow_undefined_flag_F77 \
17070
no_undefined_flag_F77 \
17071
export_symbols_cmds_F77 \
17072
hardcode_libdir_flag_spec_F77 \
17073
hardcode_libdir_flag_spec_ld_F77 \
17074
hardcode_libdir_separator_F77 \
17075
hardcode_automatic_F77 \
17077
module_expsym_cmds_F77 \
17078
lt_cv_prog_compiler_c_o_F77 \
17079
fix_srcfile_path_F77 \
17080
exclude_expsyms_F77 \
17081
include_expsyms_F77; do
17084
old_archive_cmds_F77 | \
17085
old_archive_from_new_cmds_F77 | \
17086
archive_cmds_F77 | \
17087
archive_expsym_cmds_F77 | \
17088
module_cmds_F77 | \
17089
module_expsym_cmds_F77 | \
17090
old_archive_from_expsyms_cmds_F77 | \
17091
export_symbols_cmds_F77 | \
17092
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17093
postinstall_cmds | postuninstall_cmds | \
17094
old_postinstall_cmds | old_postuninstall_cmds | \
17095
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17096
# Double-quote double-evaled strings.
17097
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17100
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17106
*'\$0 --fallback-echo"')
17107
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17113
cat <<__EOF__ >> "$cfgfile"
17114
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17116
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17118
# Shell to use when invoking shell scripts.
17121
# Whether or not to build shared libraries.
17122
build_libtool_libs=$enable_shared
17124
# Whether or not to build static libraries.
17125
build_old_libs=$enable_static
17127
# Whether or not to add -lc for building shared libraries.
17128
build_libtool_need_lc=$archive_cmds_need_lc_F77
17130
# Whether or not to disallow shared libs when runtime libs are static
17131
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17133
# Whether or not to optimize for fast installation.
17134
fast_install=$enable_fast_install
17137
host_alias=$host_alias
17141
# The build system.
17142
build_alias=$build_alias
17146
# An echo program that does not interpret backslashes.
17151
AR_FLAGS=$lt_AR_FLAGS
17156
# LTCC compiler flags.
17157
LTCFLAGS=$lt_LTCFLAGS
17159
# A language-specific compiler.
17160
CC=$lt_compiler_F77
17162
# Is the compiler the GNU C compiler?
17168
# The linker used to build libraries.
17171
# Whether we need hard or soft links.
17174
# A BSD-compatible nm program.
17177
# A symbol stripping program
17180
# Used to examine libraries when file_magic_cmd begins "file"
17181
MAGIC_CMD=$MAGIC_CMD
17183
# Used on cygwin: DLL creation program.
17186
# Used on cygwin: object dumper.
17189
# Used on cygwin: assembler.
17192
# The name of the directory that contains temporary libtool files.
17195
# How to create reloadable object files.
17196
reload_flag=$lt_reload_flag
17197
reload_cmds=$lt_reload_cmds
17199
# How to pass a linker flag through the compiler.
17200
wl=$lt_lt_prog_compiler_wl_F77
17202
# Object file suffix (normally "o").
17203
objext="$ac_objext"
17205
# Old archive suffix (normally "a").
17208
# Shared library suffix (normally ".so").
17209
shrext_cmds='$shrext_cmds'
17211
# Executable file suffix (normally "").
17214
# Additional compiler flags for building library objects.
17215
pic_flag=$lt_lt_prog_compiler_pic_F77
17218
# What is the maximum length of a command?
17219
max_cmd_len=$lt_cv_sys_max_cmd_len
17221
# Does compiler simultaneously support -c and -o options?
17222
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17224
# Must we lock files when doing compilation?
17225
need_locks=$lt_need_locks
17227
# Do we need the lib prefix for modules?
17228
need_lib_prefix=$need_lib_prefix
17230
# Do we need a version for libraries?
17231
need_version=$need_version
17233
# Whether dlopen is supported.
17234
dlopen_support=$enable_dlopen
17236
# Whether dlopen of programs is supported.
17237
dlopen_self=$enable_dlopen_self
17239
# Whether dlopen of statically linked programs is supported.
17240
dlopen_self_static=$enable_dlopen_self_static
17242
# Compiler flag to prevent dynamic linking.
17243
link_static_flag=$lt_lt_prog_compiler_static_F77
17245
# Compiler flag to turn off builtin functions.
17246
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17248
# Compiler flag to allow reflexive dlopens.
17249
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17251
# Compiler flag to generate shared objects directly from archives.
17252
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17254
# Compiler flag to generate thread-safe objects.
17255
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17257
# Library versioning type.
17258
version_type=$version_type
17260
# Format of library name prefix.
17261
libname_spec=$lt_libname_spec
17263
# List of archive names. First name is the real one, the rest are links.
17264
# The last name is the one that the linker finds with -lNAME.
17265
library_names_spec=$lt_library_names_spec
17267
# The coded name of the library, if different from the real name.
17268
soname_spec=$lt_soname_spec
17270
# Commands used to build and install an old-style archive.
17272
old_archive_cmds=$lt_old_archive_cmds_F77
17273
old_postinstall_cmds=$lt_old_postinstall_cmds
17274
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17276
# Create an old-style archive from a shared archive.
17277
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17279
# Create a temporary old-style archive to link instead of a shared archive.
17280
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17282
# Commands used to build and install a shared archive.
17283
archive_cmds=$lt_archive_cmds_F77
17284
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17285
postinstall_cmds=$lt_postinstall_cmds
17286
postuninstall_cmds=$lt_postuninstall_cmds
17288
# Commands used to build a loadable module (assumed same as above if empty)
17289
module_cmds=$lt_module_cmds_F77
17290
module_expsym_cmds=$lt_module_expsym_cmds_F77
17292
# Commands to strip libraries.
17293
old_striplib=$lt_old_striplib
17294
striplib=$lt_striplib
17296
# Dependencies to place before the objects being linked to create a
17298
predep_objects=$lt_predep_objects_F77
17300
# Dependencies to place after the objects being linked to create a
17302
postdep_objects=$lt_postdep_objects_F77
17304
# Dependencies to place before the objects being linked to create a
17306
predeps=$lt_predeps_F77
17308
# Dependencies to place after the objects being linked to create a
17310
postdeps=$lt_postdeps_F77
17312
# The directories searched by this compiler when creating a shared
17314
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17316
# The library search path used internally by the compiler when linking
17317
# a shared library.
17318
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17320
# Method to check whether dependent libraries are shared objects.
17321
deplibs_check_method=$lt_deplibs_check_method
17323
# Command to use when deplibs_check_method == file_magic.
17324
file_magic_cmd=$lt_file_magic_cmd
17326
# Flag that allows shared libraries with undefined symbols to be built.
17327
allow_undefined_flag=$lt_allow_undefined_flag_F77
17329
# Flag that forces no undefined symbols.
17330
no_undefined_flag=$lt_no_undefined_flag_F77
17332
# Commands used to finish a libtool library installation in a directory.
17333
finish_cmds=$lt_finish_cmds
17335
# Same as above, but a single script fragment to be evaled but not shown.
17336
finish_eval=$lt_finish_eval
17338
# Take the output of nm and produce a listing of raw symbols and C names.
17339
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17341
# Transform the output of nm in a proper C declaration
17342
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17344
# Transform the output of nm in a C name address pair
17345
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17347
# This is the shared library runtime path variable.
17348
runpath_var=$runpath_var
17350
# This is the shared library path variable.
17351
shlibpath_var=$shlibpath_var
17353
# Is shlibpath searched before the hard-coded library search path?
17354
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17356
# How to hardcode a shared library path into an executable.
17357
hardcode_action=$hardcode_action_F77
17359
# Whether we should hardcode library paths into libraries.
17360
hardcode_into_libs=$hardcode_into_libs
17362
# Flag to hardcode \$libdir into a binary during linking.
17363
# This must work even if \$libdir does not exist.
17364
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17366
# If ld is used when linking, flag to hardcode \$libdir into
17367
# a binary during linking. This must work even if \$libdir does
17369
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17371
# Whether we need a single -rpath flag with a separated argument.
17372
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17374
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17375
# resulting binary.
17376
hardcode_direct=$hardcode_direct_F77
17378
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17379
# resulting binary.
17380
hardcode_minus_L=$hardcode_minus_L_F77
17382
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17383
# the resulting binary.
17384
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17386
# Set to yes if building a shared library automatically hardcodes DIR into the library
17387
# and all subsequent libraries and executables linked against it.
17388
hardcode_automatic=$hardcode_automatic_F77
17390
# Variables whose values should be saved in libtool wrapper scripts and
17391
# restored at relink time.
17392
variables_saved_for_relink="$variables_saved_for_relink"
17394
# Whether libtool must link a program against all its dependency libraries.
17395
link_all_deplibs=$link_all_deplibs_F77
17397
# Compile-time system search path for libraries
17398
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17400
# Run-time system search path for libraries
17401
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17403
# Fix the shell variable \$srcfile for the compiler.
17404
fix_srcfile_path=$lt_fix_srcfile_path
17406
# Set to yes if exported symbols are required.
17407
always_export_symbols=$always_export_symbols_F77
17409
# The commands to list exported symbols.
17410
export_symbols_cmds=$lt_export_symbols_cmds_F77
17412
# The commands to extract the exported symbol list from a shared archive.
17413
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17415
# Symbols that should not be listed in the preloaded symbols.
17416
exclude_expsyms=$lt_exclude_expsyms_F77
17418
# Symbols that must always be exported.
17419
include_expsyms=$lt_include_expsyms_F77
17421
# ### END LIBTOOL TAG CONFIG: $tagname
17427
# If there is no Makefile yet, we rely on a make rule to execute
17428
# `config.status --recheck' to rerun these tests and create the
17429
# libtool script then.
17430
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17431
if test -f "$ltmain_in"; then
17432
test -f Makefile && make "$ltmain"
17438
ac_cpp='$CPP $CPPFLAGS'
17439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17451
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17454
# Source file extension for Java test sources.
17457
# Object file extension for compiled Java test sources.
17461
# Code to be used in simple compile tests
17462
lt_simple_compile_test_code="class foo {}"
17464
# Code to be used in simple link tests
17465
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17467
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17469
# If no C compiler was specified, use CC.
17472
# If no C compiler flags were specified, use CFLAGS.
17473
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17475
# Allow CC to be a program name with arguments.
17479
# save warnings/boilerplate of simple test code
17480
ac_outfile=conftest.$ac_objext
17481
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17482
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17483
_lt_compiler_boilerplate=`cat conftest.err`
17486
ac_outfile=conftest.$ac_objext
17487
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17488
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17489
_lt_linker_boilerplate=`cat conftest.err`
17493
# Allow CC to be a program name with arguments.
17498
for cc_temp in $compiler""; do
17500
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17501
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17506
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17509
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17510
archive_cmds_need_lc_GCJ=no
17512
old_archive_cmds_GCJ=$old_archive_cmds
17515
lt_prog_compiler_no_builtin_flag_GCJ=
17517
if test "$GCC" = yes; then
17518
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17521
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17522
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17523
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17524
echo $ECHO_N "(cached) $ECHO_C" >&6
17526
lt_cv_prog_compiler_rtti_exceptions=no
17527
ac_outfile=conftest.$ac_objext
17528
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17529
lt_compiler_flag="-fno-rtti -fno-exceptions"
17530
# Insert the option either (1) after the last *FLAGS variable, or
17531
# (2) before a word containing "conftest.", or (3) at the end.
17532
# Note that $ac_compile itself does not contain backslashes and begins
17533
# with a dollar sign (not a hyphen), so the echo should work correctly.
17534
# The option is referenced via a variable to avoid confusing sed.
17535
lt_compile=`echo "$ac_compile" | $SED \
17536
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17537
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17538
-e 's:$: $lt_compiler_flag:'`
17539
(eval echo "\"\$as_me:17539: $lt_compile\"" >&5)
17540
(eval "$lt_compile" 2>conftest.err)
17542
cat conftest.err >&5
17543
echo "$as_me:17543: \$? = $ac_status" >&5
17544
if (exit $ac_status) && test -s "$ac_outfile"; then
17545
# The compiler can only warn and ignore the option if not recognized
17546
# So say no if there are warnings other than the usual output.
17547
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17548
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17549
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17550
lt_cv_prog_compiler_rtti_exceptions=yes
17556
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17557
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17559
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17560
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17567
lt_prog_compiler_wl_GCJ=
17568
lt_prog_compiler_pic_GCJ=
17569
lt_prog_compiler_static_GCJ=
17571
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17572
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17574
if test "$GCC" = yes; then
17575
lt_prog_compiler_wl_GCJ='-Wl,'
17576
lt_prog_compiler_static_GCJ='-static'
17580
# All AIX code is PIC.
17581
if test "$host_cpu" = ia64; then
17582
# AIX 5 now supports IA64 processor
17583
lt_prog_compiler_static_GCJ='-Bstatic'
17588
# FIXME: we need at least 68020 code to build shared libraries, but
17589
# adding the `-m68020' flag to GCC prevents building anything better,
17591
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17594
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17595
# PIC is the default for these OSes.
17598
mingw* | cygwin* | pw32* | os2*)
17599
# This hack is so that the source file can tell whether it is being
17600
# built for inclusion in a dll (and should export symbols for example).
17601
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17602
# (--disable-auto-import) libraries
17606
darwin* | rhapsody*)
17607
# PIC is the default on this platform
17608
# Common symbols not allowed in MH_DYLIB files
17609
lt_prog_compiler_pic_GCJ='-fno-common'
17613
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17614
# Instead, we relocate shared libraries at runtime.
17618
# Just because we use GCC doesn't mean we suddenly get shared libraries
17619
# on systems that don't support them.
17620
lt_prog_compiler_can_build_shared_GCJ=no
17625
if test -d /usr/nec; then
17626
lt_prog_compiler_pic_GCJ=-Kconform_pic
17631
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17632
# not for PA HP-UX.
17638
lt_prog_compiler_pic_GCJ='-fPIC'
17644
lt_prog_compiler_pic_GCJ='-fPIC'
17648
# PORTME Check for flag to pass linker flags through the system compiler.
17651
lt_prog_compiler_wl_GCJ='-Wl,'
17652
if test "$host_cpu" = ia64; then
17653
# AIX 5 now supports IA64 processor
17654
lt_prog_compiler_static_GCJ='-Bstatic'
17656
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17660
# PIC is the default on this platform
17661
# Common symbols not allowed in MH_DYLIB files
17662
case $cc_basename in
17664
lt_prog_compiler_pic_GCJ='-qnocommon'
17665
lt_prog_compiler_wl_GCJ='-Wl,'
17670
mingw* | cygwin* | pw32* | os2*)
17671
# This hack is so that the source file can tell whether it is being
17672
# built for inclusion in a dll (and should export symbols for example).
17676
hpux9* | hpux10* | hpux11*)
17677
lt_prog_compiler_wl_GCJ='-Wl,'
17678
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17679
# not for PA HP-UX.
17685
lt_prog_compiler_pic_GCJ='+Z'
17688
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17689
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17692
irix5* | irix6* | nonstopux*)
17693
lt_prog_compiler_wl_GCJ='-Wl,'
17694
# PIC (with -KPIC) is the default.
17695
lt_prog_compiler_static_GCJ='-non_shared'
17699
lt_prog_compiler_pic_GCJ='-KPIC'
17700
lt_prog_compiler_static_GCJ='-Bstatic'
17703
linux* | k*bsd*-gnu)
17704
case $cc_basename in
17706
lt_prog_compiler_wl_GCJ='-Wl,'
17707
lt_prog_compiler_pic_GCJ='-KPIC'
17708
lt_prog_compiler_static_GCJ='-static'
17710
pgcc* | pgf77* | pgf90* | pgf95*)
17711
# Portland Group compilers (*not* the Pentium gcc compiler,
17712
# which looks to be a dead project)
17713
lt_prog_compiler_wl_GCJ='-Wl,'
17714
lt_prog_compiler_pic_GCJ='-fpic'
17715
lt_prog_compiler_static_GCJ='-Bstatic'
17718
lt_prog_compiler_wl_GCJ='-Wl,'
17719
# All Alpha code is PIC.
17720
lt_prog_compiler_static_GCJ='-non_shared'
17723
case `$CC -V 2>&1 | sed 5q` in
17726
lt_prog_compiler_pic_GCJ='-KPIC'
17727
lt_prog_compiler_static_GCJ='-Bstatic'
17728
lt_prog_compiler_wl_GCJ='-Wl,'
17731
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17732
lt_prog_compiler_pic_GCJ='-KPIC'
17733
lt_prog_compiler_static_GCJ='-Bstatic'
17734
lt_prog_compiler_wl_GCJ=''
17741
osf3* | osf4* | osf5*)
17742
lt_prog_compiler_wl_GCJ='-Wl,'
17743
# All OSF/1 code is PIC.
17744
lt_prog_compiler_static_GCJ='-non_shared'
17748
lt_prog_compiler_static_GCJ='-non_shared'
17752
lt_prog_compiler_pic_GCJ='-KPIC'
17753
lt_prog_compiler_static_GCJ='-Bstatic'
17754
case $cc_basename in
17755
f77* | f90* | f95*)
17756
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17758
lt_prog_compiler_wl_GCJ='-Wl,';;
17763
lt_prog_compiler_wl_GCJ='-Qoption ld '
17764
lt_prog_compiler_pic_GCJ='-PIC'
17765
lt_prog_compiler_static_GCJ='-Bstatic'
17768
sysv4 | sysv4.2uw2* | sysv4.3*)
17769
lt_prog_compiler_wl_GCJ='-Wl,'
17770
lt_prog_compiler_pic_GCJ='-KPIC'
17771
lt_prog_compiler_static_GCJ='-Bstatic'
17775
if test -d /usr/nec ;then
17776
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17777
lt_prog_compiler_static_GCJ='-Bstatic'
17781
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17782
lt_prog_compiler_wl_GCJ='-Wl,'
17783
lt_prog_compiler_pic_GCJ='-KPIC'
17784
lt_prog_compiler_static_GCJ='-Bstatic'
17788
lt_prog_compiler_wl_GCJ='-Wl,'
17789
lt_prog_compiler_can_build_shared_GCJ=no
17793
lt_prog_compiler_pic_GCJ='-pic'
17794
lt_prog_compiler_static_GCJ='-Bstatic'
17798
lt_prog_compiler_can_build_shared_GCJ=no
17803
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17804
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17807
# Check to make sure the PIC flag actually works.
17809
if test -n "$lt_prog_compiler_pic_GCJ"; then
17811
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17812
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17813
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17814
echo $ECHO_N "(cached) $ECHO_C" >&6
17816
lt_cv_prog_compiler_pic_works_GCJ=no
17817
ac_outfile=conftest.$ac_objext
17818
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17819
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17820
# Insert the option either (1) after the last *FLAGS variable, or
17821
# (2) before a word containing "conftest.", or (3) at the end.
17822
# Note that $ac_compile itself does not contain backslashes and begins
17823
# with a dollar sign (not a hyphen), so the echo should work correctly.
17824
# The option is referenced via a variable to avoid confusing sed.
17825
lt_compile=`echo "$ac_compile" | $SED \
17826
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17827
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17828
-e 's:$: $lt_compiler_flag:'`
17829
(eval echo "\"\$as_me:17829: $lt_compile\"" >&5)
17830
(eval "$lt_compile" 2>conftest.err)
17832
cat conftest.err >&5
17833
echo "$as_me:17833: \$? = $ac_status" >&5
17834
if (exit $ac_status) && test -s "$ac_outfile"; then
17835
# The compiler can only warn and ignore the option if not recognized
17836
# So say no if there are warnings other than the usual output.
17837
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17838
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17839
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17840
lt_cv_prog_compiler_pic_works_GCJ=yes
17846
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17847
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17849
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17850
case $lt_prog_compiler_pic_GCJ in
17852
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17855
lt_prog_compiler_pic_GCJ=
17856
lt_prog_compiler_can_build_shared_GCJ=no
17861
# For platforms which do not support PIC, -DPIC is meaningless:
17863
lt_prog_compiler_pic_GCJ=
17866
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17871
# Check to make sure the static flag actually works.
17873
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17874
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17875
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17876
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17877
echo $ECHO_N "(cached) $ECHO_C" >&6
17879
lt_cv_prog_compiler_static_works_GCJ=no
17880
save_LDFLAGS="$LDFLAGS"
17881
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17882
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17883
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17884
# The linker can only warn and ignore the option if not recognized
17885
# So say no if there are warnings
17886
if test -s conftest.err; then
17887
# Append any errors to the config.log.
17888
cat conftest.err 1>&5
17889
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17890
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17891
if diff conftest.exp conftest.er2 >/dev/null; then
17892
lt_cv_prog_compiler_static_works_GCJ=yes
17895
lt_cv_prog_compiler_static_works_GCJ=yes
17899
LDFLAGS="$save_LDFLAGS"
17902
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17903
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17905
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17908
lt_prog_compiler_static_GCJ=
17912
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17913
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17914
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17915
echo $ECHO_N "(cached) $ECHO_C" >&6
17917
lt_cv_prog_compiler_c_o_GCJ=no
17918
$rm -r conftest 2>/dev/null
17922
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17924
lt_compiler_flag="-o out/conftest2.$ac_objext"
17925
# Insert the option either (1) after the last *FLAGS variable, or
17926
# (2) before a word containing "conftest.", or (3) at the end.
17927
# Note that $ac_compile itself does not contain backslashes and begins
17928
# with a dollar sign (not a hyphen), so the echo should work correctly.
17929
lt_compile=`echo "$ac_compile" | $SED \
17930
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17931
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17932
-e 's:$: $lt_compiler_flag:'`
17933
(eval echo "\"\$as_me:17933: $lt_compile\"" >&5)
17934
(eval "$lt_compile" 2>out/conftest.err)
17936
cat out/conftest.err >&5
17937
echo "$as_me:17937: \$? = $ac_status" >&5
17938
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17940
# The compiler can only warn and ignore the option if not recognized
17941
# So say no if there are warnings
17942
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17943
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17944
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17945
lt_cv_prog_compiler_c_o_GCJ=yes
17950
# SGI C++ compiler will create directory out/ii_files/ for
17951
# template instantiation
17952
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17953
$rm out/* && rmdir out
17959
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17960
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17963
hard_links="nottested"
17964
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17965
# do not overwrite the value of need_locks provided by the user
17966
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17967
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17970
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17972
ln conftest.a conftest.b 2>&5 || hard_links=no
17973
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17974
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17975
echo "${ECHO_T}$hard_links" >&6; }
17976
if test "$hard_links" = no; then
17977
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17978
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17985
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17986
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17989
allow_undefined_flag_GCJ=
17990
enable_shared_with_static_runtimes_GCJ=no
17992
archive_expsym_cmds_GCJ=
17993
old_archive_From_new_cmds_GCJ=
17994
old_archive_from_expsyms_cmds_GCJ=
17995
export_dynamic_flag_spec_GCJ=
17996
whole_archive_flag_spec_GCJ=
17997
thread_safe_flag_spec_GCJ=
17998
hardcode_libdir_flag_spec_GCJ=
17999
hardcode_libdir_flag_spec_ld_GCJ=
18000
hardcode_libdir_separator_GCJ=
18001
hardcode_direct_GCJ=no
18002
hardcode_minus_L_GCJ=no
18003
hardcode_shlibpath_var_GCJ=unsupported
18004
link_all_deplibs_GCJ=unknown
18005
hardcode_automatic_GCJ=no
18007
module_expsym_cmds_GCJ=
18008
always_export_symbols_GCJ=no
18009
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18010
# include_expsyms should be a list of space-separated symbols to be *always*
18011
# included in the symbol list
18012
include_expsyms_GCJ=
18013
# exclude_expsyms can be an extended regexp of symbols to exclude
18014
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18015
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18016
# as well as any symbol that contains `d'.
18017
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18018
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18019
# platforms (ab)use it in PIC code, but their linkers get confused if
18020
# the symbol is explicitly referenced. Since portable code cannot
18021
# rely on this symbol name, it's probably fine to never include it in
18022
# preloaded symbol tables.
18023
# Exclude shared library initialization/finalization symbols.
18024
extract_expsyms_cmds=
18025
# Just being paranoid about ensuring that cc_basename is set.
18026
for cc_temp in $compiler""; do
18028
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18034
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18037
cygwin* | mingw* | pw32*)
18038
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18039
# When not using gcc, we currently assume that we are using
18040
# Microsoft Visual C++.
18041
if test "$GCC" != yes; then
18046
# we just hope/assume this is gcc and not c89 (= MSVC++)
18055
if test "$with_gnu_ld" = yes; then
18056
# If archive_cmds runs LD, not CC, wlarc should be empty
18059
# Set some defaults for GNU ld with shared library support. These
18060
# are reset later if shared libraries are not supported. Putting them
18061
# here allows them to be overridden if necessary.
18062
runpath_var=LD_RUN_PATH
18063
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18064
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18065
# ancient GNU ld didn't support --whole-archive et. al.
18066
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18067
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18069
whole_archive_flag_spec_GCJ=
18071
supports_anon_versioning=no
18072
case `$LD -v 2>/dev/null` in
18073
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18074
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18075
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18076
*\ 2.11.*) ;; # other 2.11 versions
18077
*) supports_anon_versioning=yes ;;
18080
# See if GNU ld supports shared libraries.
18083
# On AIX/PPC, the GNU linker is very broken
18084
if test "$host_cpu" != ia64; then
18088
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18089
*** to be unable to reliably create shared libraries on AIX.
18090
*** Therefore, libtool is disabling shared libraries support. If you
18091
*** really care for shared libraries, you may want to modify your PATH
18092
*** so that a non-GNU linker is found, and then restart.
18099
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18100
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18101
hardcode_minus_L_GCJ=yes
18103
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18104
# that the semantics of dynamic libraries on AmigaOS, at least up
18105
# to version 4, is to share data among multiple programs linked
18106
# with the same dynamic library. Since this doesn't match the
18107
# behavior of shared libraries on other platforms, we can't use
18113
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18114
allow_undefined_flag_GCJ=unsupported
18115
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18116
# support --undefined. This deserves some investigation. FIXME
18117
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18123
cygwin* | mingw* | pw32*)
18124
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18125
# as there is no search path for DLLs.
18126
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18127
allow_undefined_flag_GCJ=unsupported
18128
always_export_symbols_GCJ=no
18129
enable_shared_with_static_runtimes_GCJ=yes
18130
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18132
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18133
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18134
# If the export-symbols file already is a .def file (1st line
18135
# is EXPORTS), use it as is; otherwise, prepend...
18136
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18137
cp $export_symbols $output_objdir/$soname.def;
18139
echo EXPORTS > $output_objdir/$soname.def;
18140
cat $export_symbols >> $output_objdir/$soname.def;
18142
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18149
hardcode_direct_GCJ=no
18150
hardcode_shlibpath_var_GCJ=no
18151
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18152
export_dynamic_flag_spec_GCJ='${wl}-E'
18153
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18154
# Instead, shared libraries are loaded at an image base (0x10000000 by
18155
# default) and relocated if they conflict, which is a slow very memory
18156
# consuming and fragmenting process. To avoid this, we pick a random,
18157
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18158
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18159
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18160
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18163
gnu* | linux* | k*bsd*-gnu)
18164
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18166
case $cc_basename,$host_cpu in
18167
pgcc*) # Portland Group C compiler
18168
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18169
tmp_addflag=' $pic_flag'
18171
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18172
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18173
tmp_addflag=' $pic_flag -Mnomain' ;;
18174
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18175
tmp_addflag=' -i_dynamic' ;;
18176
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18177
tmp_addflag=' -i_dynamic -nofor_main' ;;
18178
ifc* | ifort*) # Intel Fortran compiler
18179
tmp_addflag=' -nofor_main' ;;
18181
case `$CC -V 2>&1 | sed 5q` in
18182
*Sun\ C*) # Sun C 5.9
18183
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18184
tmp_sharedflag='-G' ;;
18185
*Sun\ F*) # Sun Fortran 8.3
18186
tmp_sharedflag='-G' ;;
18188
tmp_sharedflag='-shared' ;;
18190
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18192
if test $supports_anon_versioning = yes; then
18193
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18194
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18195
$echo "local: *; };" >> $output_objdir/$libname.ver~
18196
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18198
link_all_deplibs_GCJ=no
18204
netbsd* | netbsdelf*-gnu)
18205
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18206
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18209
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18215
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18219
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18220
*** create shared libraries on Solaris systems. Therefore, libtool
18221
*** is disabling shared libraries support. We urge you to upgrade GNU
18222
*** binutils to release 2.9.1 or newer. Another option is to modify
18223
*** your PATH or compiler configuration so that the native linker is
18224
*** used, and then restart.
18227
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18228
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18229
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18235
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18236
case `$LD -v 2>&1` in
18237
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18241
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18242
*** reliably create shared libraries on SCO systems. Therefore, libtool
18243
*** is disabling shared libraries support. We urge you to upgrade GNU
18244
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18245
*** your PATH or compiler configuration so that the native linker is
18246
*** used, and then restart.
18251
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18252
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18253
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18254
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18263
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18265
hardcode_direct_GCJ=yes
18266
hardcode_shlibpath_var_GCJ=no
18270
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18271
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18272
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18279
if test "$ld_shlibs_GCJ" = no; then
18281
hardcode_libdir_flag_spec_GCJ=
18282
export_dynamic_flag_spec_GCJ=
18283
whole_archive_flag_spec_GCJ=
18286
# PORTME fill in a description of your system's linker (not GNU ld)
18289
allow_undefined_flag_GCJ=unsupported
18290
always_export_symbols_GCJ=yes
18291
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18292
# Note: this linker hardcodes the directories in LIBPATH if there
18293
# are no directories specified by -L.
18294
hardcode_minus_L_GCJ=yes
18295
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18296
# Neither direct hardcoding nor static linking is supported with a
18298
hardcode_direct_GCJ=unsupported
18303
if test "$host_cpu" = ia64; then
18304
# On IA64, the linker does run time linking by default, so we don't
18305
# have to do anything special.
18306
aix_use_runtimelinking=no
18307
exp_sym_flag='-Bexport'
18310
# If we're using GNU nm, then we don't want the "-C" option.
18311
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18312
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18313
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18315
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18317
aix_use_runtimelinking=no
18319
# Test if we are trying to use run time linking or normal
18320
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18321
# need to do runtime linking.
18322
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18323
for ld_flag in $LDFLAGS; do
18324
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18325
aix_use_runtimelinking=yes
18332
exp_sym_flag='-bexport'
18333
no_entry_flag='-bnoentry'
18336
# When large executables or shared objects are built, AIX ld can
18337
# have problems creating the table of contents. If linking a library
18338
# or program results in "error TOC overflow" add -mminimal-toc to
18339
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18340
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18342
archive_cmds_GCJ=''
18343
hardcode_direct_GCJ=yes
18344
hardcode_libdir_separator_GCJ=':'
18345
link_all_deplibs_GCJ=yes
18347
if test "$GCC" = yes; then
18348
case $host_os in aix4.[012]|aix4.[012].*)
18349
# We only want to do this on AIX 4.2 and lower, the check
18350
# below for broken collect2 doesn't work under 4.3+
18351
collect2name=`${CC} -print-prog-name=collect2`
18352
if test -f "$collect2name" && \
18353
strings "$collect2name" | grep resolve_lib_name >/dev/null
18355
# We have reworked collect2
18358
# We have old collect2
18359
hardcode_direct_GCJ=unsupported
18360
# It fails to find uninstalled libraries when the uninstalled
18361
# path is not listed in the libpath. Setting hardcode_minus_L
18362
# to unsupported forces relinking
18363
hardcode_minus_L_GCJ=yes
18364
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18365
hardcode_libdir_separator_GCJ=
18369
shared_flag='-shared'
18370
if test "$aix_use_runtimelinking" = yes; then
18371
shared_flag="$shared_flag "'${wl}-G'
18375
if test "$host_cpu" = ia64; then
18376
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18377
# chokes on -Wl,-G. The following line is correct:
18380
if test "$aix_use_runtimelinking" = yes; then
18381
shared_flag='${wl}-G'
18383
shared_flag='${wl}-bM:SRE'
18388
# It seems that -bexpall does not export symbols beginning with
18389
# underscore (_), so it is better to generate a list of symbols to export.
18390
always_export_symbols_GCJ=yes
18391
if test "$aix_use_runtimelinking" = yes; then
18392
# Warning - without using the other runtime loading flags (-brtl),
18393
# -berok will link without error, but may produce a broken library.
18394
allow_undefined_flag_GCJ='-berok'
18395
# Determine the default libpath from the value encoded in an empty executable.
18396
cat >conftest.$ac_ext <<_ACEOF
18399
cat confdefs.h >>conftest.$ac_ext
18400
cat >>conftest.$ac_ext <<_ACEOF
18401
/* end confdefs.h. */
18411
rm -f conftest.$ac_objext conftest$ac_exeext
18412
if { (ac_try="$ac_link"
18413
case "(($ac_try" in
18414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415
*) ac_try_echo=$ac_try;;
18417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418
(eval "$ac_link") 2>conftest.er1
18420
grep -v '^ *+' conftest.er1 >conftest.err
18422
cat conftest.err >&5
18423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424
(exit $ac_status); } && {
18425
test -z "$ac_c_werror_flag" ||
18426
test ! -s conftest.err
18427
} && test -s conftest$ac_exeext &&
18428
$as_test_x conftest$ac_exeext; then
18430
lt_aix_libpath_sed='
18431
/Import File Strings/,/^$/ {
18437
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18438
# Check for a 64-bit object if we didn't find anything.
18439
if test -z "$aix_libpath"; then
18440
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18443
echo "$as_me: failed program was:" >&5
18444
sed 's/^/| /' conftest.$ac_ext >&5
18449
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450
conftest$ac_exeext conftest.$ac_ext
18451
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18453
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18454
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18456
if test "$host_cpu" = ia64; then
18457
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18458
allow_undefined_flag_GCJ="-z nodefs"
18459
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18461
# Determine the default libpath from the value encoded in an empty executable.
18462
cat >conftest.$ac_ext <<_ACEOF
18465
cat confdefs.h >>conftest.$ac_ext
18466
cat >>conftest.$ac_ext <<_ACEOF
18467
/* end confdefs.h. */
18477
rm -f conftest.$ac_objext conftest$ac_exeext
18478
if { (ac_try="$ac_link"
18479
case "(($ac_try" in
18480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481
*) ac_try_echo=$ac_try;;
18483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484
(eval "$ac_link") 2>conftest.er1
18486
grep -v '^ *+' conftest.er1 >conftest.err
18488
cat conftest.err >&5
18489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490
(exit $ac_status); } && {
18491
test -z "$ac_c_werror_flag" ||
18492
test ! -s conftest.err
18493
} && test -s conftest$ac_exeext &&
18494
$as_test_x conftest$ac_exeext; then
18496
lt_aix_libpath_sed='
18497
/Import File Strings/,/^$/ {
18503
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18504
# Check for a 64-bit object if we didn't find anything.
18505
if test -z "$aix_libpath"; then
18506
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18509
echo "$as_me: failed program was:" >&5
18510
sed 's/^/| /' conftest.$ac_ext >&5
18515
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18516
conftest$ac_exeext conftest.$ac_ext
18517
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18519
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18520
# Warning - without using the other run time loading flags,
18521
# -berok will link without error, but may produce a broken library.
18522
no_undefined_flag_GCJ=' ${wl}-bernotok'
18523
allow_undefined_flag_GCJ=' ${wl}-berok'
18524
# Exported symbols can be pulled into shared objects from archives
18525
whole_archive_flag_spec_GCJ='$convenience'
18526
archive_cmds_need_lc_GCJ=yes
18527
# This is similar to how AIX traditionally builds its shared libraries.
18528
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18534
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18535
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18536
hardcode_minus_L_GCJ=yes
18537
# see comment about different semantics on the GNU ld section
18542
export_dynamic_flag_spec_GCJ=-rdynamic
18545
cygwin* | mingw* | pw32*)
18546
# When not using gcc, we currently assume that we are using
18547
# Microsoft Visual C++.
18548
# hardcode_libdir_flag_spec is actually meaningless, as there is
18549
# no search path for DLLs.
18550
hardcode_libdir_flag_spec_GCJ=' '
18551
allow_undefined_flag_GCJ=unsupported
18552
# Tell ltmain to make .lib files, not .a files.
18554
# Tell ltmain to make .dll files, not .so files.
18556
# FIXME: Setting linknames here is a bad hack.
18557
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18558
# The linker will automatically build a .lib file if we build a DLL.
18559
old_archive_From_new_cmds_GCJ='true'
18560
# FIXME: Should let the user specify the lib program.
18561
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18562
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18563
enable_shared_with_static_runtimes_GCJ=yes
18566
darwin* | rhapsody*)
18568
rhapsody* | darwin1.[012])
18569
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18572
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18573
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18575
case ${MACOSX_DEPLOYMENT_TARGET} in
18577
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18580
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18586
archive_cmds_need_lc_GCJ=no
18587
hardcode_direct_GCJ=no
18588
hardcode_automatic_GCJ=yes
18589
hardcode_shlibpath_var_GCJ=unsupported
18590
whole_archive_flag_spec_GCJ=''
18591
link_all_deplibs_GCJ=yes
18592
if test "$GCC" = yes ; then
18593
output_verbose_link_cmd='echo'
18594
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18595
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18596
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18597
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18599
case $cc_basename in
18601
output_verbose_link_cmd='echo'
18602
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18603
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18604
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18605
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18606
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18616
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18617
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18618
hardcode_shlibpath_var_GCJ=no
18625
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18626
# support. Future versions do this automatically, but an explicit c++rt0.o
18627
# does not break anything, and helps significantly (at the cost of a little
18630
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18631
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18632
hardcode_direct_GCJ=yes
18633
hardcode_shlibpath_var_GCJ=no
18636
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18638
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18639
hardcode_direct_GCJ=yes
18640
hardcode_minus_L_GCJ=yes
18641
hardcode_shlibpath_var_GCJ=no
18644
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18645
freebsd* | dragonfly*)
18646
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18647
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18648
hardcode_direct_GCJ=yes
18649
hardcode_shlibpath_var_GCJ=no
18653
if test "$GCC" = yes; then
18654
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18656
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18658
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18659
hardcode_libdir_separator_GCJ=:
18660
hardcode_direct_GCJ=yes
18662
# hardcode_minus_L: Not really in the search PATH,
18663
# but as the default location of the library.
18664
hardcode_minus_L_GCJ=yes
18665
export_dynamic_flag_spec_GCJ='${wl}-E'
18669
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18670
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18672
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18674
if test "$with_gnu_ld" = no; then
18675
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18676
hardcode_libdir_separator_GCJ=:
18678
hardcode_direct_GCJ=yes
18679
export_dynamic_flag_spec_GCJ='${wl}-E'
18681
# hardcode_minus_L: Not really in the search PATH,
18682
# but as the default location of the library.
18683
hardcode_minus_L_GCJ=yes
18688
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18691
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18694
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18697
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18703
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18706
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18709
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18713
if test "$with_gnu_ld" = no; then
18714
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18715
hardcode_libdir_separator_GCJ=:
18719
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18720
hardcode_direct_GCJ=no
18721
hardcode_shlibpath_var_GCJ=no
18724
hardcode_direct_GCJ=yes
18725
export_dynamic_flag_spec_GCJ='${wl}-E'
18727
# hardcode_minus_L: Not really in the search PATH,
18728
# but as the default location of the library.
18729
hardcode_minus_L_GCJ=yes
18735
irix5* | irix6* | nonstopux*)
18736
if test "$GCC" = yes; then
18737
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18739
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18740
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18742
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18743
hardcode_libdir_separator_GCJ=:
18744
link_all_deplibs_GCJ=yes
18747
netbsd* | netbsdelf*-gnu)
18748
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18749
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18751
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18753
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18754
hardcode_direct_GCJ=yes
18755
hardcode_shlibpath_var_GCJ=no
18759
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18760
hardcode_direct_GCJ=yes
18761
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18762
hardcode_libdir_separator_GCJ=:
18763
hardcode_shlibpath_var_GCJ=no
18767
if test -f /usr/libexec/ld.so; then
18768
hardcode_direct_GCJ=yes
18769
hardcode_shlibpath_var_GCJ=no
18770
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18771
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18773
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18774
export_dynamic_flag_spec_GCJ='${wl}-E'
18777
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18778
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18779
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18782
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18783
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18793
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18794
hardcode_minus_L_GCJ=yes
18795
allow_undefined_flag_GCJ=unsupported
18796
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18797
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18801
if test "$GCC" = yes; then
18802
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18803
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18805
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18806
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18808
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18809
hardcode_libdir_separator_GCJ=:
18812
osf4* | osf5*) # as osf3* with the addition of -msym flag
18813
if test "$GCC" = yes; then
18814
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18815
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18816
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18818
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18819
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18820
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18821
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18823
# Both c and cxx compiler support -rpath directly
18824
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18826
hardcode_libdir_separator_GCJ=:
18830
no_undefined_flag_GCJ=' -z text'
18831
if test "$GCC" = yes; then
18833
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18834
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18835
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18838
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18839
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18840
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18842
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18843
hardcode_shlibpath_var_GCJ=no
18845
solaris2.[0-5] | solaris2.[0-5].*) ;;
18847
# The compiler driver will combine and reorder linker options,
18848
# but understands `-z linker_flag'. GCC discards it without `$wl',
18849
# but is careful enough not to reorder.
18850
# Supported since Solaris 2.6 (maybe 2.5.1?)
18851
if test "$GCC" = yes; then
18852
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18854
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18858
link_all_deplibs_GCJ=yes
18862
if test "x$host_vendor" = xsequent; then
18863
# Use $CC to link under sequent, because it throws in some extra .o
18864
# files that make .init and .fini sections work.
18865
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18867
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18869
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18870
hardcode_direct_GCJ=yes
18871
hardcode_minus_L_GCJ=yes
18872
hardcode_shlibpath_var_GCJ=no
18876
case $host_vendor in
18878
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879
hardcode_direct_GCJ=yes # is this really true???
18882
## LD is ld it makes a PLAMLIB
18883
## CC just makes a GrossModule.
18884
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18885
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18886
hardcode_direct_GCJ=no
18889
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18890
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18893
runpath_var='LD_RUN_PATH'
18894
hardcode_shlibpath_var_GCJ=no
18898
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18899
hardcode_shlibpath_var_GCJ=no
18900
export_dynamic_flag_spec_GCJ='-Bexport'
18904
if test -d /usr/nec; then
18905
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18906
hardcode_shlibpath_var_GCJ=no
18907
runpath_var=LD_RUN_PATH
18908
hardcode_runpath_var=yes
18913
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18914
no_undefined_flag_GCJ='${wl}-z,text'
18915
archive_cmds_need_lc_GCJ=no
18916
hardcode_shlibpath_var_GCJ=no
18917
runpath_var='LD_RUN_PATH'
18919
if test "$GCC" = yes; then
18920
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18921
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18923
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18928
sysv5* | sco3.2v5* | sco5v6*)
18929
# Note: We can NOT use -z defs as we might desire, because we do not
18930
# link with -lc, and that would cause any symbols used from libc to
18931
# always be unresolved, which means just about no library would
18932
# ever link correctly. If we're not using GNU ld we use -z text
18933
# though, which does catch some bad symbols but isn't as heavy-handed
18935
no_undefined_flag_GCJ='${wl}-z,text'
18936
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18937
archive_cmds_need_lc_GCJ=no
18938
hardcode_shlibpath_var_GCJ=no
18939
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18940
hardcode_libdir_separator_GCJ=':'
18941
link_all_deplibs_GCJ=yes
18942
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18943
runpath_var='LD_RUN_PATH'
18945
if test "$GCC" = yes; then
18946
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18947
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18949
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18950
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18956
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18957
hardcode_shlibpath_var_GCJ=no
18966
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18967
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18968
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18971
# Do we need to explicitly link libc?
18973
case "x$archive_cmds_need_lc_GCJ" in
18975
# Assume -lc should be added
18976
archive_cmds_need_lc_GCJ=yes
18978
if test "$enable_shared" = yes && test "$GCC" = yes; then
18979
case $archive_cmds_GCJ in
18981
# FIXME: we may have to deal with multi-command sequences.
18984
# Test whether the compiler implicitly links with -lc since on some
18985
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18986
# to ld, don't add -lc before -lgcc.
18987
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18988
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18990
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993
(eval $ac_compile) 2>&5
18995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996
(exit $ac_status); } 2>conftest.err; then
18999
libobjs=conftest.$ac_objext
19001
wl=$lt_prog_compiler_wl_GCJ
19002
pic_flag=$lt_prog_compiler_pic_GCJ
19008
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19009
allow_undefined_flag_GCJ=
19010
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19011
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014
(exit $ac_status); }
19016
archive_cmds_need_lc_GCJ=no
19018
archive_cmds_need_lc_GCJ=yes
19020
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19022
cat conftest.err 1>&5
19025
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19026
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19033
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19034
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19035
library_names_spec=
19036
libname_spec='lib$name'
19040
postuninstall_cmds=
19044
shlibpath_overrides_runpath=unknown
19046
dynamic_linker="$host_os ld.so"
19047
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19049
need_lib_prefix=unknown
19050
hardcode_into_libs=no
19052
# when you set need_version to no, make sure it does not cause -set_version
19053
# flags to be left without arguments
19054
need_version=unknown
19059
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19060
shlibpath_var=LIBPATH
19062
# AIX 3 has no versioning support, so we append a major version to the name.
19063
soname_spec='${libname}${release}${shared_ext}$major'
19070
hardcode_into_libs=yes
19071
if test "$host_cpu" = ia64; then
19072
# AIX 5 supports IA64
19073
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19074
shlibpath_var=LD_LIBRARY_PATH
19076
# With GCC up to 2.95.x, collect2 would create an import file
19077
# for dependence libraries. The import file would start with
19078
# the line `#! .'. This would cause the generated library to
19079
# depend on `.', always an invalid library. This was fixed in
19080
# development snapshots of GCC prior to 3.0.
19082
aix4 | aix4.[01] | aix4.[01].*)
19083
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19085
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19088
can_build_shared=no
19092
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19093
# soname into executable. Probably we can add versioning support to
19094
# collect2, so additional links can be useful in future.
19095
if test "$aix_use_runtimelinking" = yes; then
19096
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19097
# instead of lib<name>.a to let people know that these are not
19098
# typical AIX shared libraries.
19099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101
# We preserve .a as extension for shared libraries through AIX4.2
19102
# and later when we are not doing run time linking.
19103
library_names_spec='${libname}${release}.a $libname.a'
19104
soname_spec='${libname}${release}${shared_ext}$major'
19106
shlibpath_var=LIBPATH
19111
library_names_spec='$libname.ixlibrary $libname.a'
19112
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19113
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19117
library_names_spec='${libname}${shared_ext}'
19118
dynamic_linker="$host_os ld.so"
19119
shlibpath_var=LIBRARY_PATH
19125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126
soname_spec='${libname}${release}${shared_ext}$major'
19127
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19128
shlibpath_var=LD_LIBRARY_PATH
19129
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19130
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19131
# the default ld.so.conf also contains /usr/contrib/lib and
19132
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19133
# libtool to hard-code these into programs
19136
cygwin* | mingw* | pw32*)
19137
version_type=windows
19142
case $GCC,$host_os in
19143
yes,cygwin* | yes,mingw* | yes,pw32*)
19144
library_names_spec='$libname.dll.a'
19145
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19146
postinstall_cmds='base_file=`basename \${file}`~
19147
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19148
dldir=$destdir/`dirname \$dlpath`~
19149
test -d \$dldir || mkdir -p \$dldir~
19150
$install_prog $dir/$dlname \$dldir/$dlname~
19151
chmod a+x \$dldir/$dlname'
19152
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19153
dlpath=$dir/\$dldll~
19155
shlibpath_overrides_runpath=yes
19159
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19160
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19161
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19164
# MinGW DLLs use traditional 'lib' prefix
19165
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19166
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19167
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19168
# It is most probably a Windows format PATH printed by
19169
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19170
# path with ; separators, and with drive letters. We can handle the
19171
# drive letters (cygwin fileutils understands them), so leave them,
19172
# especially as we might pass files found there to a mingw objdump,
19173
# which wouldn't understand a cygwinified path. Ahh.
19174
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19176
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19180
# pw32 DLLs use 'pw' prefix rather than 'lib'
19181
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19187
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19190
dynamic_linker='Win32 ld.exe'
19191
# FIXME: first we should search . and the directory the executable is in
19195
darwin* | rhapsody*)
19196
dynamic_linker="$host_os dyld"
19197
version_type=darwin
19200
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19201
soname_spec='${libname}${release}${major}$shared_ext'
19202
shlibpath_overrides_runpath=yes
19203
shlibpath_var=DYLD_LIBRARY_PATH
19204
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19206
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19214
soname_spec='${libname}${release}${shared_ext}$major'
19215
shlibpath_var=LD_LIBRARY_PATH
19222
freebsd* | dragonfly*)
19223
# DragonFly does not have aout. When/if they implement a new
19224
# versioning mechanism, adjust this.
19225
if test -x /usr/bin/objformat; then
19226
objformat=`/usr/bin/objformat`
19229
freebsd[123]*) objformat=aout ;;
19230
*) objformat=elf ;;
19233
version_type=freebsd-$objformat
19234
case $version_type in
19236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19241
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19245
shlibpath_var=LD_LIBRARY_PATH
19248
shlibpath_overrides_runpath=yes
19250
freebsd3.[01]* | freebsdelf3.[01]*)
19251
shlibpath_overrides_runpath=yes
19252
hardcode_into_libs=yes
19254
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19255
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19256
shlibpath_overrides_runpath=no
19257
hardcode_into_libs=yes
19259
*) # from 4.6 on, and DragonFly
19260
shlibpath_overrides_runpath=yes
19261
hardcode_into_libs=yes
19270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19271
soname_spec='${libname}${release}${shared_ext}$major'
19272
shlibpath_var=LD_LIBRARY_PATH
19273
hardcode_into_libs=yes
19276
hpux9* | hpux10* | hpux11*)
19277
# Give a soname corresponding to the major version so that dld.sl refuses to
19278
# link against other versions.
19285
hardcode_into_libs=yes
19286
dynamic_linker="$host_os dld.so"
19287
shlibpath_var=LD_LIBRARY_PATH
19288
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290
soname_spec='${libname}${release}${shared_ext}$major'
19291
if test "X$HPUX_IA64_MODE" = X32; then
19292
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19294
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19296
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19300
hardcode_into_libs=yes
19301
dynamic_linker="$host_os dld.sl"
19302
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19303
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305
soname_spec='${libname}${release}${shared_ext}$major'
19306
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19307
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19311
dynamic_linker="$host_os dld.sl"
19312
shlibpath_var=SHLIB_PATH
19313
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315
soname_spec='${libname}${release}${shared_ext}$major'
19318
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19319
postinstall_cmds='chmod 555 $lib'
19326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19327
soname_spec='${libname}${release}${shared_ext}$major'
19328
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19329
shlibpath_var=LD_LIBRARY_PATH
19330
shlibpath_overrides_runpath=no
19331
hardcode_into_libs=yes
19334
irix5* | irix6* | nonstopux*)
19336
nonstopux*) version_type=nonstopux ;;
19338
if test "$lt_cv_prog_gnu_ld" = yes; then
19346
soname_spec='${libname}${release}${shared_ext}$major'
19347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19349
irix5* | nonstopux*)
19350
libsuff= shlibsuff=
19353
case $LD in # libtool.m4 will add one of these switches to LD
19354
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19355
libsuff= shlibsuff= libmagic=32-bit;;
19356
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19357
libsuff=32 shlibsuff=N32 libmagic=N32;;
19358
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19359
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19360
*) libsuff= shlibsuff= libmagic=never-match;;
19364
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19365
shlibpath_overrides_runpath=no
19366
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19367
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19368
hardcode_into_libs=yes
19371
# No shared lib support for Linux oldld, aout, or coff.
19372
linux*oldld* | linux*aout* | linux*coff*)
19376
# This must be Linux ELF.
19377
linux* | k*bsd*-gnu)
19381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382
soname_spec='${libname}${release}${shared_ext}$major'
19383
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19384
shlibpath_var=LD_LIBRARY_PATH
19385
shlibpath_overrides_runpath=no
19386
# This implies no fast_install, which is unacceptable.
19387
# Some rework will be needed to allow for fast_install
19388
# before this can be enabled.
19389
hardcode_into_libs=yes
19391
# Append ld.so.conf contents to the search path
19392
if test -f /etc/ld.so.conf; then
19393
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19394
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19397
# We used to test for /lib/ld.so.1 and disable shared libraries on
19398
# powerpc, because MkLinux only supported shared libraries with the
19399
# GNU dynamic linker. Since this was broken with cross compilers,
19400
# most powerpc-linux boxes support dynamic linking these days and
19401
# people can always --disable-shared, the test was removed, and we
19402
# assume the GNU/Linux dynamic linker is in use.
19403
dynamic_linker='GNU/Linux ld.so'
19410
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19411
soname_spec='${libname}${release}${shared_ext}$major'
19412
shlibpath_var=LD_LIBRARY_PATH
19413
shlibpath_overrides_runpath=no
19414
hardcode_into_libs=yes
19415
dynamic_linker='NetBSD ld.elf_so'
19422
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19424
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19425
dynamic_linker='NetBSD (a.out) ld.so'
19427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19428
soname_spec='${libname}${release}${shared_ext}$major'
19429
dynamic_linker='NetBSD ld.elf_so'
19431
shlibpath_var=LD_LIBRARY_PATH
19432
shlibpath_overrides_runpath=yes
19433
hardcode_into_libs=yes
19438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19439
shlibpath_var=LD_LIBRARY_PATH
19440
shlibpath_overrides_runpath=yes
19447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19448
soname_spec='${libname}${release}${shared_ext}$major'
19449
shlibpath_var=LD_LIBRARY_PATH
19450
shlibpath_overrides_runpath=yes
19455
sys_lib_dlsearch_path_spec="/usr/lib"
19457
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19459
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19460
*) need_version=no ;;
19462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19463
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19464
shlibpath_var=LD_LIBRARY_PATH
19465
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19467
openbsd2.[89] | openbsd2.[89].*)
19468
shlibpath_overrides_runpath=no
19471
shlibpath_overrides_runpath=yes
19475
shlibpath_overrides_runpath=yes
19480
libname_spec='$name'
19483
library_names_spec='$libname${shared_ext} $libname.a'
19484
dynamic_linker='OS/2 ld.exe'
19485
shlibpath_var=LIBPATH
19488
osf3* | osf4* | osf5*)
19492
soname_spec='${libname}${release}${shared_ext}$major'
19493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19494
shlibpath_var=LD_LIBRARY_PATH
19495
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19496
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19508
soname_spec='${libname}${release}${shared_ext}$major'
19509
shlibpath_var=LD_LIBRARY_PATH
19510
shlibpath_overrides_runpath=yes
19511
hardcode_into_libs=yes
19512
# ldd complains unless libraries are executable
19513
postinstall_cmds='chmod +x $lib'
19518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19519
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19520
shlibpath_var=LD_LIBRARY_PATH
19521
shlibpath_overrides_runpath=yes
19522
if test "$with_gnu_ld" = yes; then
19530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19531
soname_spec='${libname}${release}${shared_ext}$major'
19532
shlibpath_var=LD_LIBRARY_PATH
19533
case $host_vendor in
19535
shlibpath_overrides_runpath=no
19537
export_dynamic_flag_spec='${wl}-Blargedynsym'
19538
runpath_var=LD_RUN_PATH
19546
shlibpath_overrides_runpath=no
19547
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19553
if test -d /usr/nec ;then
19555
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19556
soname_spec='$libname${shared_ext}.$major'
19557
shlibpath_var=LD_LIBRARY_PATH
19561
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19562
version_type=freebsd-elf
19565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19566
soname_spec='${libname}${release}${shared_ext}$major'
19567
shlibpath_var=LD_LIBRARY_PATH
19568
hardcode_into_libs=yes
19569
if test "$with_gnu_ld" = yes; then
19570
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19571
shlibpath_overrides_runpath=no
19573
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19574
shlibpath_overrides_runpath=yes
19577
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19581
sys_lib_dlsearch_path_spec='/usr/lib'
19586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19587
soname_spec='${libname}${release}${shared_ext}$major'
19588
shlibpath_var=LD_LIBRARY_PATH
19595
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19596
echo "${ECHO_T}$dynamic_linker" >&6; }
19597
test "$dynamic_linker" = no && can_build_shared=no
19599
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19600
echo $ECHO_N "(cached) $ECHO_C" >&6
19602
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19605
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19606
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19607
echo $ECHO_N "(cached) $ECHO_C" >&6
19609
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19612
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19614
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19615
if test "$GCC" = yes; then
19616
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19619
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19620
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19621
hardcode_action_GCJ=
19622
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19623
test -n "$runpath_var_GCJ" || \
19624
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19626
# We can hardcode non-existant directories.
19627
if test "$hardcode_direct_GCJ" != no &&
19628
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19629
# have to relink, otherwise we might link with an installed library
19630
# when we should be linking with a yet-to-be-installed one
19631
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19632
test "$hardcode_minus_L_GCJ" != no; then
19633
# Linking always hardcodes the temporary library directory.
19634
hardcode_action_GCJ=relink
19636
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19637
hardcode_action_GCJ=immediate
19640
# We cannot hardcode anything, or else we can only hardcode existing
19642
hardcode_action_GCJ=unsupported
19644
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19645
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19647
if test "$hardcode_action_GCJ" = relink; then
19648
# Fast installation is not supported
19649
enable_fast_install=no
19650
elif test "$shlibpath_overrides_runpath" = yes ||
19651
test "$enable_shared" = no; then
19652
# Fast installation is not necessary
19653
enable_fast_install=needless
19657
# The else clause should only fire when bootstrapping the
19658
# libtool distribution, otherwise you forgot to ship ltmain.sh
19659
# with your package, and you will get complaints that there are
19660
# no rules to generate ltmain.sh.
19661
if test -f "$ltmain"; then
19662
# See if we are running on zsh, and set the options which allow our commands through
19663
# without removal of \ escapes.
19664
if test -n "${ZSH_VERSION+set}" ; then
19665
setopt NO_GLOB_SUBST
19667
# Now quote all the things that may contain metacharacters while being
19668
# careful not to overquote the AC_SUBSTed values. We take copies of the
19669
# variables and quote the copies for generation of the libtool script.
19670
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19672
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19673
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19674
deplibs_check_method reload_flag reload_cmds need_locks \
19675
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19676
lt_cv_sys_global_symbol_to_c_name_address \
19677
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19678
old_postinstall_cmds old_postuninstall_cmds \
19682
lt_prog_compiler_wl_GCJ \
19683
lt_prog_compiler_pic_GCJ \
19684
lt_prog_compiler_static_GCJ \
19685
lt_prog_compiler_no_builtin_flag_GCJ \
19686
export_dynamic_flag_spec_GCJ \
19687
thread_safe_flag_spec_GCJ \
19688
whole_archive_flag_spec_GCJ \
19689
enable_shared_with_static_runtimes_GCJ \
19690
old_archive_cmds_GCJ \
19691
old_archive_from_new_cmds_GCJ \
19692
predep_objects_GCJ \
19693
postdep_objects_GCJ \
19696
compiler_lib_search_path_GCJ \
19697
compiler_lib_search_dirs_GCJ \
19699
archive_expsym_cmds_GCJ \
19700
postinstall_cmds_GCJ \
19701
postuninstall_cmds_GCJ \
19702
old_archive_from_expsyms_cmds_GCJ \
19703
allow_undefined_flag_GCJ \
19704
no_undefined_flag_GCJ \
19705
export_symbols_cmds_GCJ \
19706
hardcode_libdir_flag_spec_GCJ \
19707
hardcode_libdir_flag_spec_ld_GCJ \
19708
hardcode_libdir_separator_GCJ \
19709
hardcode_automatic_GCJ \
19711
module_expsym_cmds_GCJ \
19712
lt_cv_prog_compiler_c_o_GCJ \
19713
fix_srcfile_path_GCJ \
19714
exclude_expsyms_GCJ \
19715
include_expsyms_GCJ; do
19718
old_archive_cmds_GCJ | \
19719
old_archive_from_new_cmds_GCJ | \
19720
archive_cmds_GCJ | \
19721
archive_expsym_cmds_GCJ | \
19722
module_cmds_GCJ | \
19723
module_expsym_cmds_GCJ | \
19724
old_archive_from_expsyms_cmds_GCJ | \
19725
export_symbols_cmds_GCJ | \
19726
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19727
postinstall_cmds | postuninstall_cmds | \
19728
old_postinstall_cmds | old_postuninstall_cmds | \
19729
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19730
# Double-quote double-evaled strings.
19731
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19734
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19740
*'\$0 --fallback-echo"')
19741
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19747
cat <<__EOF__ >> "$cfgfile"
19748
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19750
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19752
# Shell to use when invoking shell scripts.
19755
# Whether or not to build shared libraries.
19756
build_libtool_libs=$enable_shared
19758
# Whether or not to build static libraries.
19759
build_old_libs=$enable_static
19761
# Whether or not to add -lc for building shared libraries.
19762
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19764
# Whether or not to disallow shared libs when runtime libs are static
19765
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19767
# Whether or not to optimize for fast installation.
19768
fast_install=$enable_fast_install
19771
host_alias=$host_alias
19775
# The build system.
19776
build_alias=$build_alias
19780
# An echo program that does not interpret backslashes.
19785
AR_FLAGS=$lt_AR_FLAGS
19790
# LTCC compiler flags.
19791
LTCFLAGS=$lt_LTCFLAGS
19793
# A language-specific compiler.
19794
CC=$lt_compiler_GCJ
19796
# Is the compiler the GNU C compiler?
19802
# The linker used to build libraries.
19805
# Whether we need hard or soft links.
19808
# A BSD-compatible nm program.
19811
# A symbol stripping program
19814
# Used to examine libraries when file_magic_cmd begins "file"
19815
MAGIC_CMD=$MAGIC_CMD
19817
# Used on cygwin: DLL creation program.
19820
# Used on cygwin: object dumper.
19823
# Used on cygwin: assembler.
19826
# The name of the directory that contains temporary libtool files.
19829
# How to create reloadable object files.
19830
reload_flag=$lt_reload_flag
19831
reload_cmds=$lt_reload_cmds
19833
# How to pass a linker flag through the compiler.
19834
wl=$lt_lt_prog_compiler_wl_GCJ
19836
# Object file suffix (normally "o").
19837
objext="$ac_objext"
19839
# Old archive suffix (normally "a").
19842
# Shared library suffix (normally ".so").
19843
shrext_cmds='$shrext_cmds'
19845
# Executable file suffix (normally "").
19848
# Additional compiler flags for building library objects.
19849
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19852
# What is the maximum length of a command?
19853
max_cmd_len=$lt_cv_sys_max_cmd_len
19855
# Does compiler simultaneously support -c and -o options?
19856
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19858
# Must we lock files when doing compilation?
19859
need_locks=$lt_need_locks
19861
# Do we need the lib prefix for modules?
19862
need_lib_prefix=$need_lib_prefix
19864
# Do we need a version for libraries?
19865
need_version=$need_version
19867
# Whether dlopen is supported.
19868
dlopen_support=$enable_dlopen
19870
# Whether dlopen of programs is supported.
19871
dlopen_self=$enable_dlopen_self
19873
# Whether dlopen of statically linked programs is supported.
19874
dlopen_self_static=$enable_dlopen_self_static
19876
# Compiler flag to prevent dynamic linking.
19877
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19879
# Compiler flag to turn off builtin functions.
19880
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19882
# Compiler flag to allow reflexive dlopens.
19883
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19885
# Compiler flag to generate shared objects directly from archives.
19886
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19888
# Compiler flag to generate thread-safe objects.
19889
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19891
# Library versioning type.
19892
version_type=$version_type
19894
# Format of library name prefix.
19895
libname_spec=$lt_libname_spec
19897
# List of archive names. First name is the real one, the rest are links.
19898
# The last name is the one that the linker finds with -lNAME.
19899
library_names_spec=$lt_library_names_spec
19901
# The coded name of the library, if different from the real name.
19902
soname_spec=$lt_soname_spec
19904
# Commands used to build and install an old-style archive.
19906
old_archive_cmds=$lt_old_archive_cmds_GCJ
19907
old_postinstall_cmds=$lt_old_postinstall_cmds
19908
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19910
# Create an old-style archive from a shared archive.
19911
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19913
# Create a temporary old-style archive to link instead of a shared archive.
19914
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19916
# Commands used to build and install a shared archive.
19917
archive_cmds=$lt_archive_cmds_GCJ
19918
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19919
postinstall_cmds=$lt_postinstall_cmds
19920
postuninstall_cmds=$lt_postuninstall_cmds
19922
# Commands used to build a loadable module (assumed same as above if empty)
19923
module_cmds=$lt_module_cmds_GCJ
19924
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19926
# Commands to strip libraries.
19927
old_striplib=$lt_old_striplib
19928
striplib=$lt_striplib
19930
# Dependencies to place before the objects being linked to create a
19932
predep_objects=$lt_predep_objects_GCJ
19934
# Dependencies to place after the objects being linked to create a
19936
postdep_objects=$lt_postdep_objects_GCJ
19938
# Dependencies to place before the objects being linked to create a
19940
predeps=$lt_predeps_GCJ
19942
# Dependencies to place after the objects being linked to create a
19944
postdeps=$lt_postdeps_GCJ
19946
# The directories searched by this compiler when creating a shared
19948
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19950
# The library search path used internally by the compiler when linking
19951
# a shared library.
19952
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19954
# Method to check whether dependent libraries are shared objects.
19955
deplibs_check_method=$lt_deplibs_check_method
19957
# Command to use when deplibs_check_method == file_magic.
19958
file_magic_cmd=$lt_file_magic_cmd
19960
# Flag that allows shared libraries with undefined symbols to be built.
19961
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19963
# Flag that forces no undefined symbols.
19964
no_undefined_flag=$lt_no_undefined_flag_GCJ
19966
# Commands used to finish a libtool library installation in a directory.
19967
finish_cmds=$lt_finish_cmds
19969
# Same as above, but a single script fragment to be evaled but not shown.
19970
finish_eval=$lt_finish_eval
19972
# Take the output of nm and produce a listing of raw symbols and C names.
19973
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19975
# Transform the output of nm in a proper C declaration
19976
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19978
# Transform the output of nm in a C name address pair
19979
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19981
# This is the shared library runtime path variable.
19982
runpath_var=$runpath_var
19984
# This is the shared library path variable.
19985
shlibpath_var=$shlibpath_var
19987
# Is shlibpath searched before the hard-coded library search path?
19988
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19990
# How to hardcode a shared library path into an executable.
19991
hardcode_action=$hardcode_action_GCJ
19993
# Whether we should hardcode library paths into libraries.
19994
hardcode_into_libs=$hardcode_into_libs
19996
# Flag to hardcode \$libdir into a binary during linking.
19997
# This must work even if \$libdir does not exist.
19998
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20000
# If ld is used when linking, flag to hardcode \$libdir into
20001
# a binary during linking. This must work even if \$libdir does
20003
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20005
# Whether we need a single -rpath flag with a separated argument.
20006
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20008
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20009
# resulting binary.
20010
hardcode_direct=$hardcode_direct_GCJ
20012
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20013
# resulting binary.
20014
hardcode_minus_L=$hardcode_minus_L_GCJ
20016
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20017
# the resulting binary.
20018
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20020
# Set to yes if building a shared library automatically hardcodes DIR into the library
20021
# and all subsequent libraries and executables linked against it.
20022
hardcode_automatic=$hardcode_automatic_GCJ
20024
# Variables whose values should be saved in libtool wrapper scripts and
20025
# restored at relink time.
20026
variables_saved_for_relink="$variables_saved_for_relink"
20028
# Whether libtool must link a program against all its dependency libraries.
20029
link_all_deplibs=$link_all_deplibs_GCJ
20031
# Compile-time system search path for libraries
20032
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20034
# Run-time system search path for libraries
20035
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20037
# Fix the shell variable \$srcfile for the compiler.
20038
fix_srcfile_path=$lt_fix_srcfile_path
20040
# Set to yes if exported symbols are required.
20041
always_export_symbols=$always_export_symbols_GCJ
20043
# The commands to list exported symbols.
20044
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20046
# The commands to extract the exported symbol list from a shared archive.
20047
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20049
# Symbols that should not be listed in the preloaded symbols.
20050
exclude_expsyms=$lt_exclude_expsyms_GCJ
20052
# Symbols that must always be exported.
20053
include_expsyms=$lt_include_expsyms_GCJ
20055
# ### END LIBTOOL TAG CONFIG: $tagname
20061
# If there is no Makefile yet, we rely on a make rule to execute
20062
# `config.status --recheck' to rerun these tests and create the
20063
# libtool script then.
20064
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20065
if test -f "$ltmain_in"; then
20066
test -f Makefile && make "$ltmain"
20072
ac_cpp='$CPP $CPPFLAGS'
20073
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20087
# Source file extension for RC test sources.
20090
# Object file extension for compiled RC test sources.
20094
# Code to be used in simple compile tests
20095
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20097
# Code to be used in simple link tests
20098
lt_simple_link_test_code="$lt_simple_compile_test_code"
20100
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20102
# If no C compiler was specified, use CC.
20105
# If no C compiler flags were specified, use CFLAGS.
20106
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20108
# Allow CC to be a program name with arguments.
20112
# save warnings/boilerplate of simple test code
20113
ac_outfile=conftest.$ac_objext
20114
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20115
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20116
_lt_compiler_boilerplate=`cat conftest.err`
20119
ac_outfile=conftest.$ac_objext
20120
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20121
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20122
_lt_linker_boilerplate=`cat conftest.err`
20126
# Allow CC to be a program name with arguments.
20131
for cc_temp in $compiler""; do
20133
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20134
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20139
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20141
lt_cv_prog_compiler_c_o_RC=yes
20143
# The else clause should only fire when bootstrapping the
20144
# libtool distribution, otherwise you forgot to ship ltmain.sh
20145
# with your package, and you will get complaints that there are
20146
# no rules to generate ltmain.sh.
20147
if test -f "$ltmain"; then
20148
# See if we are running on zsh, and set the options which allow our commands through
20149
# without removal of \ escapes.
20150
if test -n "${ZSH_VERSION+set}" ; then
20151
setopt NO_GLOB_SUBST
20153
# Now quote all the things that may contain metacharacters while being
20154
# careful not to overquote the AC_SUBSTed values. We take copies of the
20155
# variables and quote the copies for generation of the libtool script.
20156
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20158
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20159
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20160
deplibs_check_method reload_flag reload_cmds need_locks \
20161
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20162
lt_cv_sys_global_symbol_to_c_name_address \
20163
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20164
old_postinstall_cmds old_postuninstall_cmds \
20168
lt_prog_compiler_wl_RC \
20169
lt_prog_compiler_pic_RC \
20170
lt_prog_compiler_static_RC \
20171
lt_prog_compiler_no_builtin_flag_RC \
20172
export_dynamic_flag_spec_RC \
20173
thread_safe_flag_spec_RC \
20174
whole_archive_flag_spec_RC \
20175
enable_shared_with_static_runtimes_RC \
20176
old_archive_cmds_RC \
20177
old_archive_from_new_cmds_RC \
20178
predep_objects_RC \
20179
postdep_objects_RC \
20182
compiler_lib_search_path_RC \
20183
compiler_lib_search_dirs_RC \
20185
archive_expsym_cmds_RC \
20186
postinstall_cmds_RC \
20187
postuninstall_cmds_RC \
20188
old_archive_from_expsyms_cmds_RC \
20189
allow_undefined_flag_RC \
20190
no_undefined_flag_RC \
20191
export_symbols_cmds_RC \
20192
hardcode_libdir_flag_spec_RC \
20193
hardcode_libdir_flag_spec_ld_RC \
20194
hardcode_libdir_separator_RC \
20195
hardcode_automatic_RC \
20197
module_expsym_cmds_RC \
20198
lt_cv_prog_compiler_c_o_RC \
20199
fix_srcfile_path_RC \
20200
exclude_expsyms_RC \
20201
include_expsyms_RC; do
20204
old_archive_cmds_RC | \
20205
old_archive_from_new_cmds_RC | \
20206
archive_cmds_RC | \
20207
archive_expsym_cmds_RC | \
20209
module_expsym_cmds_RC | \
20210
old_archive_from_expsyms_cmds_RC | \
20211
export_symbols_cmds_RC | \
20212
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20213
postinstall_cmds | postuninstall_cmds | \
20214
old_postinstall_cmds | old_postuninstall_cmds | \
20215
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20216
# Double-quote double-evaled strings.
20217
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20220
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20226
*'\$0 --fallback-echo"')
20227
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20233
cat <<__EOF__ >> "$cfgfile"
20234
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20236
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20238
# Shell to use when invoking shell scripts.
20241
# Whether or not to build shared libraries.
20242
build_libtool_libs=$enable_shared
20244
# Whether or not to build static libraries.
20245
build_old_libs=$enable_static
20247
# Whether or not to add -lc for building shared libraries.
20248
build_libtool_need_lc=$archive_cmds_need_lc_RC
20250
# Whether or not to disallow shared libs when runtime libs are static
20251
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20253
# Whether or not to optimize for fast installation.
20254
fast_install=$enable_fast_install
20257
host_alias=$host_alias
20261
# The build system.
20262
build_alias=$build_alias
20266
# An echo program that does not interpret backslashes.
20271
AR_FLAGS=$lt_AR_FLAGS
20276
# LTCC compiler flags.
20277
LTCFLAGS=$lt_LTCFLAGS
20279
# A language-specific compiler.
20282
# Is the compiler the GNU C compiler?
20288
# The linker used to build libraries.
20291
# Whether we need hard or soft links.
20294
# A BSD-compatible nm program.
20297
# A symbol stripping program
20300
# Used to examine libraries when file_magic_cmd begins "file"
20301
MAGIC_CMD=$MAGIC_CMD
20303
# Used on cygwin: DLL creation program.
20306
# Used on cygwin: object dumper.
20309
# Used on cygwin: assembler.
20312
# The name of the directory that contains temporary libtool files.
20315
# How to create reloadable object files.
20316
reload_flag=$lt_reload_flag
20317
reload_cmds=$lt_reload_cmds
20319
# How to pass a linker flag through the compiler.
20320
wl=$lt_lt_prog_compiler_wl_RC
20322
# Object file suffix (normally "o").
20323
objext="$ac_objext"
20325
# Old archive suffix (normally "a").
20328
# Shared library suffix (normally ".so").
20329
shrext_cmds='$shrext_cmds'
20331
# Executable file suffix (normally "").
20334
# Additional compiler flags for building library objects.
20335
pic_flag=$lt_lt_prog_compiler_pic_RC
20338
# What is the maximum length of a command?
20339
max_cmd_len=$lt_cv_sys_max_cmd_len
20341
# Does compiler simultaneously support -c and -o options?
20342
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20344
# Must we lock files when doing compilation?
20345
need_locks=$lt_need_locks
20347
# Do we need the lib prefix for modules?
20348
need_lib_prefix=$need_lib_prefix
20350
# Do we need a version for libraries?
20351
need_version=$need_version
20353
# Whether dlopen is supported.
20354
dlopen_support=$enable_dlopen
20356
# Whether dlopen of programs is supported.
20357
dlopen_self=$enable_dlopen_self
20359
# Whether dlopen of statically linked programs is supported.
20360
dlopen_self_static=$enable_dlopen_self_static
20362
# Compiler flag to prevent dynamic linking.
20363
link_static_flag=$lt_lt_prog_compiler_static_RC
20365
# Compiler flag to turn off builtin functions.
20366
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20368
# Compiler flag to allow reflexive dlopens.
20369
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20371
# Compiler flag to generate shared objects directly from archives.
20372
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20374
# Compiler flag to generate thread-safe objects.
20375
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20377
# Library versioning type.
20378
version_type=$version_type
20380
# Format of library name prefix.
20381
libname_spec=$lt_libname_spec
20383
# List of archive names. First name is the real one, the rest are links.
20384
# The last name is the one that the linker finds with -lNAME.
20385
library_names_spec=$lt_library_names_spec
20387
# The coded name of the library, if different from the real name.
20388
soname_spec=$lt_soname_spec
20390
# Commands used to build and install an old-style archive.
20392
old_archive_cmds=$lt_old_archive_cmds_RC
20393
old_postinstall_cmds=$lt_old_postinstall_cmds
20394
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20396
# Create an old-style archive from a shared archive.
20397
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20399
# Create a temporary old-style archive to link instead of a shared archive.
20400
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20402
# Commands used to build and install a shared archive.
20403
archive_cmds=$lt_archive_cmds_RC
20404
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20405
postinstall_cmds=$lt_postinstall_cmds
20406
postuninstall_cmds=$lt_postuninstall_cmds
20408
# Commands used to build a loadable module (assumed same as above if empty)
20409
module_cmds=$lt_module_cmds_RC
20410
module_expsym_cmds=$lt_module_expsym_cmds_RC
20412
# Commands to strip libraries.
20413
old_striplib=$lt_old_striplib
20414
striplib=$lt_striplib
20416
# Dependencies to place before the objects being linked to create a
20418
predep_objects=$lt_predep_objects_RC
20420
# Dependencies to place after the objects being linked to create a
20422
postdep_objects=$lt_postdep_objects_RC
20424
# Dependencies to place before the objects being linked to create a
20426
predeps=$lt_predeps_RC
20428
# Dependencies to place after the objects being linked to create a
20430
postdeps=$lt_postdeps_RC
20432
# The directories searched by this compiler when creating a shared
20434
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20436
# The library search path used internally by the compiler when linking
20437
# a shared library.
20438
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20440
# Method to check whether dependent libraries are shared objects.
20441
deplibs_check_method=$lt_deplibs_check_method
20443
# Command to use when deplibs_check_method == file_magic.
20444
file_magic_cmd=$lt_file_magic_cmd
20446
# Flag that allows shared libraries with undefined symbols to be built.
20447
allow_undefined_flag=$lt_allow_undefined_flag_RC
20449
# Flag that forces no undefined symbols.
20450
no_undefined_flag=$lt_no_undefined_flag_RC
20452
# Commands used to finish a libtool library installation in a directory.
20453
finish_cmds=$lt_finish_cmds
20455
# Same as above, but a single script fragment to be evaled but not shown.
20456
finish_eval=$lt_finish_eval
20458
# Take the output of nm and produce a listing of raw symbols and C names.
20459
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20461
# Transform the output of nm in a proper C declaration
20462
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20464
# Transform the output of nm in a C name address pair
20465
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20467
# This is the shared library runtime path variable.
20468
runpath_var=$runpath_var
20470
# This is the shared library path variable.
20471
shlibpath_var=$shlibpath_var
20473
# Is shlibpath searched before the hard-coded library search path?
20474
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20476
# How to hardcode a shared library path into an executable.
20477
hardcode_action=$hardcode_action_RC
20479
# Whether we should hardcode library paths into libraries.
20480
hardcode_into_libs=$hardcode_into_libs
20482
# Flag to hardcode \$libdir into a binary during linking.
20483
# This must work even if \$libdir does not exist.
20484
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20486
# If ld is used when linking, flag to hardcode \$libdir into
20487
# a binary during linking. This must work even if \$libdir does
20489
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20491
# Whether we need a single -rpath flag with a separated argument.
20492
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20494
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20495
# resulting binary.
20496
hardcode_direct=$hardcode_direct_RC
20498
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20499
# resulting binary.
20500
hardcode_minus_L=$hardcode_minus_L_RC
20502
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20503
# the resulting binary.
20504
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20506
# Set to yes if building a shared library automatically hardcodes DIR into the library
20507
# and all subsequent libraries and executables linked against it.
20508
hardcode_automatic=$hardcode_automatic_RC
20510
# Variables whose values should be saved in libtool wrapper scripts and
20511
# restored at relink time.
20512
variables_saved_for_relink="$variables_saved_for_relink"
20514
# Whether libtool must link a program against all its dependency libraries.
20515
link_all_deplibs=$link_all_deplibs_RC
20517
# Compile-time system search path for libraries
20518
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20520
# Run-time system search path for libraries
20521
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20523
# Fix the shell variable \$srcfile for the compiler.
20524
fix_srcfile_path=$lt_fix_srcfile_path
20526
# Set to yes if exported symbols are required.
20527
always_export_symbols=$always_export_symbols_RC
20529
# The commands to list exported symbols.
20530
export_symbols_cmds=$lt_export_symbols_cmds_RC
20532
# The commands to extract the exported symbol list from a shared archive.
20533
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20535
# Symbols that should not be listed in the preloaded symbols.
20536
exclude_expsyms=$lt_exclude_expsyms_RC
20538
# Symbols that must always be exported.
20539
include_expsyms=$lt_include_expsyms_RC
20541
# ### END LIBTOOL TAG CONFIG: $tagname
20547
# If there is no Makefile yet, we rely on a make rule to execute
20548
# `config.status --recheck' to rerun these tests and create the
20549
# libtool script then.
20550
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20551
if test -f "$ltmain_in"; then
20552
test -f Makefile && make "$ltmain"
20558
ac_cpp='$CPP $CPPFLAGS'
20559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20568
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20569
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20570
{ (exit 1); exit 1; }; }
20574
# Append the new tag name to the list of available tags.
20575
if test -n "$tagname" ; then
20576
available_tags="$available_tags $tagname"
20582
# Now substitute the updated list of available tags.
20583
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20584
mv "${ofile}T" "$ofile"
20588
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20589
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20590
{ (exit 1); exit 1; }; }
20596
# This can be used to rebuild libtool when needed
20597
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20599
# Always use our own libtool.
20600
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20602
# Prevent multiple expansion
20623
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20624
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20627
echo timestamp > conftest.file
20628
# Do `set' in a subshell so we don't clobber the current shell's
20629
# arguments. Must try -L first in case configure is actually a
20630
# symlink; some systems play weird games with the mod time of symlinks
20631
# (eg FreeBSD returns the mod time of the symlink's containing
20634
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20635
if test "$*" = "X"; then
20637
set X `ls -t $srcdir/configure conftest.file`
20639
rm -f conftest.file
20640
if test "$*" != "X $srcdir/configure conftest.file" \
20641
&& test "$*" != "X conftest.file $srcdir/configure"; then
20643
# If neither matched, then we have a broken ls. This can happen
20644
# if, for instance, CONFIG_SHELL is bash and it inherits a
20645
# broken ls alias from the environment. This has actually
20646
# happened. Such a system could not be considered "sane".
20647
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20648
alias in your environment" >&5
20649
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20650
alias in your environment" >&2;}
20651
{ (exit 1); exit 1; }; }
20654
test "$2" = conftest.file
20660
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20661
Check your system clock" >&5
20662
echo "$as_me: error: newly created file is older than distributed files!
20663
Check your system clock" >&2;}
20664
{ (exit 1); exit 1; }; }
20666
{ echo "$as_me:$LINENO: result: yes" >&5
20667
echo "${ECHO_T}yes" >&6; }
20668
LIBTOOL="$LIBTOOL --preserve-dup-deps"
20670
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14678
if test "$hardcode_action_CXX" = relink ||
14679
test "$inherit_rpath_CXX" = yes; then
14680
# Fast installation is not supported
14681
enable_fast_install=no
14682
elif test "$shlibpath_overrides_runpath" = yes ||
14683
test "$enable_shared" = no; then
14684
# Fast installation is not necessary
14685
enable_fast_install=needless
14694
fi # test -n "$compiler"
14700
with_gnu_ld=$lt_save_with_gnu_ld
14701
lt_cv_path_LDCXX=$lt_cv_path_LD
14702
lt_cv_path_LD=$lt_save_path_LD
14703
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14704
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14705
fi # test "$_lt_caught_CXX_error" != yes
14708
ac_cpp='$CPP $CPPFLAGS'
14709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14725
ac_config_commands="$ac_config_commands libtool"
14730
# Only expand once:
14734
{ echo "$as_me:$LINENO: checking if g++ supports C++0x features without additional flags" >&5
14735
echo $ECHO_N "checking if g++ supports C++0x features without additional flags... $ECHO_C" >&6; }
14736
if test "${ac_cv_cxx_compile_cxx0x_native+set}" = set; then
14737
echo $ECHO_N "(cached) $ECHO_C" >&6
14741
ac_cpp='$CXXCPP $CPPFLAGS'
14742
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14743
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14744
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14746
cat >conftest.$ac_ext <<_ACEOF
14749
cat confdefs.h >>conftest.$ac_ext
14750
cat >>conftest.$ac_ext <<_ACEOF
14751
/* end confdefs.h. */
14753
template <typename T>
14756
static_assert(sizeof(int) <= sizeof(T), "not big enough");
14759
typedef check<check<bool>> right_angle_brackets;
14764
typedef check<int> check_type;
14766
check_type&& cr = c;
14775
rm -f conftest.$ac_objext
14776
if { (ac_try="$ac_compile"
14777
case "(($ac_try" in
14778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779
*) ac_try_echo=$ac_try;;
14781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782
(eval "$ac_compile") 2>conftest.er1
14784
grep -v '^ *+' conftest.er1 >conftest.err
14786
cat conftest.err >&5
14787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788
(exit $ac_status); } && {
14789
test -z "$ac_cxx_werror_flag" ||
14790
test ! -s conftest.err
14791
} && test -s conftest.$ac_objext; then
14792
ac_cv_cxx_compile_cxx0x_native=yes
14794
echo "$as_me: failed program was:" >&5
14795
sed 's/^/| /' conftest.$ac_ext >&5
14797
ac_cv_cxx_compile_cxx0x_native=no
14800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802
ac_cpp='$CPP $CPPFLAGS'
14803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14809
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_native" >&5
14810
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_native" >&6; }
14812
{ echo "$as_me:$LINENO: checking if g++ supports C++0x features with -std=c++0x" >&5
14813
echo $ECHO_N "checking if g++ supports C++0x features with -std=c++0x... $ECHO_C" >&6; }
14814
if test "${ac_cv_cxx_compile_cxx0x_cxx+set}" = set; then
14815
echo $ECHO_N "(cached) $ECHO_C" >&6
14819
ac_cpp='$CXXCPP $CPPFLAGS'
14820
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14824
ac_save_CXXFLAGS="$CXXFLAGS"
14825
CXXFLAGS="$CXXFLAGS -std=c++0x"
14826
cat >conftest.$ac_ext <<_ACEOF
14829
cat confdefs.h >>conftest.$ac_ext
14830
cat >>conftest.$ac_ext <<_ACEOF
14831
/* end confdefs.h. */
14833
template <typename T>
14836
static_assert(sizeof(int) <= sizeof(T), "not big enough");
14839
typedef check<check<bool>> right_angle_brackets;
14844
typedef check<int> check_type;
14846
check_type&& cr = c;
14855
rm -f conftest.$ac_objext
14856
if { (ac_try="$ac_compile"
14857
case "(($ac_try" in
14858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859
*) ac_try_echo=$ac_try;;
14861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862
(eval "$ac_compile") 2>conftest.er1
14864
grep -v '^ *+' conftest.er1 >conftest.err
14866
cat conftest.err >&5
14867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868
(exit $ac_status); } && {
14869
test -z "$ac_cxx_werror_flag" ||
14870
test ! -s conftest.err
14871
} && test -s conftest.$ac_objext; then
14872
ac_cv_cxx_compile_cxx0x_cxx=yes
14874
echo "$as_me: failed program was:" >&5
14875
sed 's/^/| /' conftest.$ac_ext >&5
14877
ac_cv_cxx_compile_cxx0x_cxx=no
14880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881
CXXFLAGS="$ac_save_CXXFLAGS"
14883
ac_cpp='$CPP $CPPFLAGS'
14884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_cxx" >&5
14891
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_cxx" >&6; }
14893
{ echo "$as_me:$LINENO: checking if g++ supports C++0x features with -std=gnu++0x" >&5
14894
echo $ECHO_N "checking if g++ supports C++0x features with -std=gnu++0x... $ECHO_C" >&6; }
14895
if test "${ac_cv_cxx_compile_cxx0x_gxx+set}" = set; then
14896
echo $ECHO_N "(cached) $ECHO_C" >&6
14900
ac_cpp='$CXXCPP $CPPFLAGS'
14901
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14905
ac_save_CXXFLAGS="$CXXFLAGS"
14906
CXXFLAGS="$CXXFLAGS -std=gnu++0x"
14907
cat >conftest.$ac_ext <<_ACEOF
14910
cat confdefs.h >>conftest.$ac_ext
14911
cat >>conftest.$ac_ext <<_ACEOF
14912
/* end confdefs.h. */
14914
template <typename T>
14917
static_assert(sizeof(int) <= sizeof(T), "not big enough");
14920
typedef check<check<bool>> right_angle_brackets;
14925
typedef check<int> check_type;
14927
check_type&& cr = c;
14936
rm -f conftest.$ac_objext
14937
if { (ac_try="$ac_compile"
14938
case "(($ac_try" in
14939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940
*) ac_try_echo=$ac_try;;
14942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943
(eval "$ac_compile") 2>conftest.er1
14945
grep -v '^ *+' conftest.er1 >conftest.err
14947
cat conftest.err >&5
14948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949
(exit $ac_status); } && {
14950
test -z "$ac_cxx_werror_flag" ||
14951
test ! -s conftest.err
14952
} && test -s conftest.$ac_objext; then
14953
ac_cv_cxx_compile_cxx0x_gxx=yes
14955
echo "$as_me: failed program was:" >&5
14956
sed 's/^/| /' conftest.$ac_ext >&5
14958
ac_cv_cxx_compile_cxx0x_gxx=no
14961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14962
CXXFLAGS="$ac_save_CXXFLAGS"
14964
ac_cpp='$CPP $CPPFLAGS'
14965
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compile_cxx0x_gxx" >&5
14972
echo "${ECHO_T}$ac_cv_cxx_compile_cxx0x_gxx" >&6; }
14974
if test "$ac_cv_cxx_compile_cxx0x_native" = yes ||
14975
test "$ac_cv_cxx_compile_cxx0x_cxx" = yes ||
14976
test "$ac_cv_cxx_compile_cxx0x_gxx" = yes; then
14978
cat >>confdefs.h <<\_ACEOF
14979
#define HAVE_STDCXX_0X
14987
ac_cv_building_from_vc=no
14989
if test -d "${srcdir}/.bzr"; then
14991
ac_cv_building_from_bzr=yes
14992
ac_cv_building_from_vc=yes
14996
ac_cv_building_from_bzr=no
15001
if test -d "${srcdir}/.svn"; then
15003
ac_cv_building_from_svn=yes
15004
ac_cv_building_from_vc=yes
15008
ac_cv_building_from_svn=no
15013
if test -d "${srcdir}/.hg"; then
15015
ac_cv_building_from_hg=yes
15016
ac_cv_building_from_vc=yes
15020
ac_cv_building_from_hg=no
15032
{ echo "$as_me:$LINENO: checking for 64-bit host" >&5
15033
echo $ECHO_N "checking for 64-bit host... $ECHO_C" >&6; }
15034
if test "${gl_cv_solaris_64bit+set}" = set; then
15035
echo $ECHO_N "(cached) $ECHO_C" >&6
15037
if test "$cross_compiling" = yes; then
15038
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15039
See \`config.log' for more details." >&5
15040
echo "$as_me: error: cannot run test program while cross compiling
15041
See \`config.log' for more details." >&2;}
15042
{ (exit 1); exit 1; }; }
15044
cat >conftest.$ac_ext <<_ACEOF
15048
cat confdefs.h >>conftest.$ac_ext
15049
cat >>conftest.$ac_ext <<_ACEOF
15050
/* end confdefs.h. */
15056
return sizeof(void*) == 8 ? 0 : 1;
15063
rm -f conftest$ac_exeext
15064
if { (ac_try="$ac_link"
15065
case "(($ac_try" in
15066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067
*) ac_try_echo=$ac_try;;
15069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070
(eval "$ac_link") 2>&5
15072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15074
{ (case "(($ac_try" in
15075
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076
*) ac_try_echo=$ac_try;;
15078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079
(eval "$ac_try") 2>&5
15081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082
(exit $ac_status); }; }; then
15083
gl_cv_solaris_64bit=yes
15085
echo "$as_me: program exited with status $ac_status" >&5
15086
echo "$as_me: failed program was:" >&5
15087
sed 's/^/| /' conftest.$ac_ext >&5
15089
( exit $ac_status )
15090
gl_cv_solaris_64bit=no
15092
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15098
{ echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
15099
echo "${ECHO_T}$gl_cv_solaris_64bit" >&6; }
15100
if test $gl_cv_solaris_64bit = yes; then
15101
acl_libdirstem=lib/64
15102
case "$host_cpu" in
15103
sparc*) acl_libdirstem2=lib/sparcv9 ;;
15104
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15109
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15110
if test -n "$searchpath"; then
15111
acl_save_IFS="${IFS= }"; IFS=":"
15112
for searchdir in $searchpath; do
15113
if test -d "$searchdir"; then
15114
case "$searchdir" in
15115
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15116
*) searchdir=`cd "$searchdir" && pwd`
15117
case "$searchdir" in
15118
*/lib64 ) acl_libdirstem=lib64 ;;
15123
IFS="$acl_save_IFS"
15127
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15130
if test "X$prefix" = "XNONE"; then
15131
acl_final_prefix="$ac_default_prefix"
15133
acl_final_prefix="$prefix"
15135
if test "X$exec_prefix" = "XNONE"; then
15136
acl_final_exec_prefix='${prefix}'
15138
acl_final_exec_prefix="$exec_prefix"
15140
acl_save_prefix="$prefix"
15141
prefix="$acl_final_prefix"
15142
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15143
prefix="$acl_save_prefix"
15146
for ac_header in stdlib.h
15148
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15149
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15150
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15151
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15152
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15153
echo $ECHO_N "(cached) $ECHO_C" >&6
15155
ac_res=`eval echo '${'$as_ac_Header'}'`
15156
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15157
echo "${ECHO_T}$ac_res" >&6; }
15159
# Is the header compilable?
15160
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15162
cat >conftest.$ac_ext <<_ACEOF
15165
cat confdefs.h >>conftest.$ac_ext
15166
cat >>conftest.$ac_ext <<_ACEOF
15167
/* end confdefs.h. */
15168
$ac_includes_default
15169
#include <$ac_header>
15171
rm -f conftest.$ac_objext
15172
if { (ac_try="$ac_compile"
15173
case "(($ac_try" in
15174
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175
*) ac_try_echo=$ac_try;;
15177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178
(eval "$ac_compile") 2>conftest.er1
15180
grep -v '^ *+' conftest.er1 >conftest.err
15182
cat conftest.err >&5
15183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184
(exit $ac_status); } && {
15185
test -z "$ac_c_werror_flag" ||
15186
test ! -s conftest.err
15187
} && test -s conftest.$ac_objext; then
15188
ac_header_compiler=yes
15190
echo "$as_me: failed program was:" >&5
15191
sed 's/^/| /' conftest.$ac_ext >&5
15193
ac_header_compiler=no
15196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198
echo "${ECHO_T}$ac_header_compiler" >&6; }
15200
# Is the header present?
15201
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15203
cat >conftest.$ac_ext <<_ACEOF
15206
cat confdefs.h >>conftest.$ac_ext
15207
cat >>conftest.$ac_ext <<_ACEOF
15208
/* end confdefs.h. */
15209
#include <$ac_header>
15211
if { (ac_try="$ac_cpp conftest.$ac_ext"
15212
case "(($ac_try" in
15213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214
*) ac_try_echo=$ac_try;;
15216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219
grep -v '^ *+' conftest.er1 >conftest.err
15221
cat conftest.err >&5
15222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223
(exit $ac_status); } >/dev/null && {
15224
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15225
test ! -s conftest.err
15227
ac_header_preproc=yes
15229
echo "$as_me: failed program was:" >&5
15230
sed 's/^/| /' conftest.$ac_ext >&5
15232
ac_header_preproc=no
15235
rm -f conftest.err conftest.$ac_ext
15236
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237
echo "${ECHO_T}$ac_header_preproc" >&6; }
15239
# So? What about this header?
15240
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15243
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15245
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15246
ac_header_preproc=yes
15249
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15250
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15251
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15252
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15253
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15254
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15255
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15256
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15257
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15258
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15259
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15260
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15262
## --------------------------------------------- ##
15263
## Report this to https://launchpad.net/gearmand ##
15264
## --------------------------------------------- ##
15266
) | sed "s/^/$as_me: WARNING: /" >&2
15269
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15272
echo $ECHO_N "(cached) $ECHO_C" >&6
15274
eval "$as_ac_Header=\$ac_header_preproc"
15276
ac_res=`eval echo '${'$as_ac_Header'}'`
15277
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15278
echo "${ECHO_T}$ac_res" >&6; }
15281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15282
cat >>confdefs.h <<_ACEOF
15283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15290
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15291
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
15292
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15293
echo $ECHO_N "(cached) $ECHO_C" >&6
15295
if test "$cross_compiling" = yes; then
15296
ac_cv_func_malloc_0_nonnull=no
15298
cat >conftest.$ac_ext <<_ACEOF
15301
cat confdefs.h >>conftest.$ac_ext
15302
cat >>conftest.$ac_ext <<_ACEOF
15303
/* end confdefs.h. */
15304
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15305
# include <stdlib.h>
15313
return ! malloc (0);
15318
rm -f conftest$ac_exeext
15319
if { (ac_try="$ac_link"
15320
case "(($ac_try" in
15321
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322
*) ac_try_echo=$ac_try;;
15324
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325
(eval "$ac_link") 2>&5
15327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15329
{ (case "(($ac_try" in
15330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331
*) ac_try_echo=$ac_try;;
15333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334
(eval "$ac_try") 2>&5
15336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337
(exit $ac_status); }; }; then
15338
ac_cv_func_malloc_0_nonnull=yes
15340
echo "$as_me: program exited with status $ac_status" >&5
15341
echo "$as_me: failed program was:" >&5
15342
sed 's/^/| /' conftest.$ac_ext >&5
15344
( exit $ac_status )
15345
ac_cv_func_malloc_0_nonnull=no
15347
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15352
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15353
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
15354
if test $ac_cv_func_malloc_0_nonnull = yes; then
15356
cat >>confdefs.h <<\_ACEOF
15357
#define HAVE_MALLOC 1
15361
cat >>confdefs.h <<\_ACEOF
15362
#define HAVE_MALLOC 0
15365
case " $LIBOBJS " in
15366
*" malloc.$ac_objext "* ) ;;
15367
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15372
cat >>confdefs.h <<\_ACEOF
15373
#define malloc rpl_malloc
15381
for ac_header in stdlib.h
15383
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15386
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388
echo $ECHO_N "(cached) $ECHO_C" >&6
15390
ac_res=`eval echo '${'$as_ac_Header'}'`
15391
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15392
echo "${ECHO_T}$ac_res" >&6; }
15394
# Is the header compilable?
15395
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15397
cat >conftest.$ac_ext <<_ACEOF
15400
cat confdefs.h >>conftest.$ac_ext
15401
cat >>conftest.$ac_ext <<_ACEOF
15402
/* end confdefs.h. */
15403
$ac_includes_default
15404
#include <$ac_header>
15406
rm -f conftest.$ac_objext
15407
if { (ac_try="$ac_compile"
15408
case "(($ac_try" in
15409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410
*) ac_try_echo=$ac_try;;
15412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413
(eval "$ac_compile") 2>conftest.er1
15415
grep -v '^ *+' conftest.er1 >conftest.err
15417
cat conftest.err >&5
15418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419
(exit $ac_status); } && {
15420
test -z "$ac_c_werror_flag" ||
15421
test ! -s conftest.err
15422
} && test -s conftest.$ac_objext; then
15423
ac_header_compiler=yes
15425
echo "$as_me: failed program was:" >&5
15426
sed 's/^/| /' conftest.$ac_ext >&5
15428
ac_header_compiler=no
15431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433
echo "${ECHO_T}$ac_header_compiler" >&6; }
15435
# Is the header present?
15436
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438
cat >conftest.$ac_ext <<_ACEOF
15441
cat confdefs.h >>conftest.$ac_ext
15442
cat >>conftest.$ac_ext <<_ACEOF
15443
/* end confdefs.h. */
15444
#include <$ac_header>
15446
if { (ac_try="$ac_cpp conftest.$ac_ext"
15447
case "(($ac_try" in
15448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449
*) ac_try_echo=$ac_try;;
15451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15454
grep -v '^ *+' conftest.er1 >conftest.err
15456
cat conftest.err >&5
15457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458
(exit $ac_status); } >/dev/null && {
15459
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15460
test ! -s conftest.err
15462
ac_header_preproc=yes
15464
echo "$as_me: failed program was:" >&5
15465
sed 's/^/| /' conftest.$ac_ext >&5
15467
ac_header_preproc=no
15470
rm -f conftest.err conftest.$ac_ext
15471
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15472
echo "${ECHO_T}$ac_header_preproc" >&6; }
15474
# So? What about this header?
15475
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15477
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15478
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15479
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15480
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15481
ac_header_preproc=yes
15484
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15485
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15486
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15487
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15488
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15489
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15490
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15491
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15492
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15493
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15494
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15495
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15497
## --------------------------------------------- ##
15498
## Report this to https://launchpad.net/gearmand ##
15499
## --------------------------------------------- ##
15501
) | sed "s/^/$as_me: WARNING: /" >&2
15504
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15505
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15506
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15507
echo $ECHO_N "(cached) $ECHO_C" >&6
15509
eval "$as_ac_Header=\$ac_header_preproc"
15511
ac_res=`eval echo '${'$as_ac_Header'}'`
15512
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15513
echo "${ECHO_T}$ac_res" >&6; }
15516
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15517
cat >>confdefs.h <<_ACEOF
15518
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
15526
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
15527
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
15528
echo $ECHO_N "(cached) $ECHO_C" >&6
15530
if test "$cross_compiling" = yes; then
15531
ac_cv_func_realloc_0_nonnull=no
15533
cat >conftest.$ac_ext <<_ACEOF
15536
cat confdefs.h >>conftest.$ac_ext
15537
cat >>conftest.$ac_ext <<_ACEOF
15538
/* end confdefs.h. */
15539
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15540
# include <stdlib.h>
15548
return ! realloc (0, 0);
15553
rm -f conftest$ac_exeext
15554
if { (ac_try="$ac_link"
15555
case "(($ac_try" in
15556
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557
*) ac_try_echo=$ac_try;;
15559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560
(eval "$ac_link") 2>&5
15562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15564
{ (case "(($ac_try" in
15565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566
*) ac_try_echo=$ac_try;;
15568
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569
(eval "$ac_try") 2>&5
15571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572
(exit $ac_status); }; }; then
15573
ac_cv_func_realloc_0_nonnull=yes
15575
echo "$as_me: program exited with status $ac_status" >&5
15576
echo "$as_me: failed program was:" >&5
15577
sed 's/^/| /' conftest.$ac_ext >&5
15579
( exit $ac_status )
15580
ac_cv_func_realloc_0_nonnull=no
15582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15587
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
15588
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
15589
if test $ac_cv_func_realloc_0_nonnull = yes; then
15591
cat >>confdefs.h <<\_ACEOF
15592
#define HAVE_REALLOC 1
15596
cat >>confdefs.h <<\_ACEOF
15597
#define HAVE_REALLOC 0
15600
case " $LIBOBJS " in
15601
*" realloc.$ac_objext "* ) ;;
15602
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15607
cat >>confdefs.h <<\_ACEOF
15608
#define realloc rpl_realloc
15626
# We need to prevent canonical target
15627
# from injecting -O2 into CFLAGS - but we won't modify anything if we have
15628
# set CFLAGS on the command line, since that should take ultimate precedence
15629
if test "x${ac_cv_env_CFLAGS_set}" = "x"; then
15633
if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
15638
{ echo "$as_me:$LINENO: checking target system type" >&5
15639
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
15640
if test "${ac_cv_target+set}" = set; then
15641
echo $ECHO_N "(cached) $ECHO_C" >&6
15643
if test "x$target_alias" = x; then
15644
ac_cv_target=$ac_cv_host
15646
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15647
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
15648
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
15649
{ (exit 1); exit 1; }; }
15653
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
15654
echo "${ECHO_T}$ac_cv_target" >&6; }
15655
case $ac_cv_target in
15657
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
15658
echo "$as_me: error: invalid value of canonical target" >&2;}
15659
{ (exit 1); exit 1; }; };;
15661
target=$ac_cv_target
15662
ac_save_IFS=$IFS; IFS='-'
15663
set x $ac_cv_target
15668
# Remember, the first character of IFS is used to create $*,
15669
# except with old shells:
15672
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15675
# The aliases save the names the user supplied, while $host etc.
15676
# will get canonicalized.
15677
test -n "$target_alias" &&
15678
test "$program_prefix$program_suffix$program_transform_name" = \
15680
program_prefix=${target_alias}-
15682
if test "`cd $srcdir && pwd`" != "`pwd`"; then
15683
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15684
# is not polluted with repeated "-I."
15685
am__isrc=' -I$(srcdir)'
15686
# test to see if srcdir already configured
15687
if test -f $srcdir/config.status; then
15688
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
15689
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
15690
{ (exit 1); exit 1; }; }
15694
# test whether we have cygpath
15695
if test -z "$CYGPATH_W"; then
15696
if (cygpath --version) >/dev/null 2>/dev/null; then
15697
CYGPATH_W='cygpath -w'
15704
# Define the identity of the package.
15709
cat >>confdefs.h <<_ACEOF
15710
#define PACKAGE "$PACKAGE"
15714
cat >>confdefs.h <<_ACEOF
15715
#define VERSION "$VERSION"
15718
# Some tools Automake needs.
15720
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15723
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15726
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15729
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15732
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15734
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
15736
# Installed binaries are usually stripped using `strip' when the user
15737
# run `make install-strip'. However `strip' might not be the right
15738
# tool to use in cross-compilation environments, therefore Automake
15739
# will honor the `STRIP' environment variable to overrule this program.
15740
if test "$cross_compiling" != no; then
15741
if test -n "$ac_tool_prefix"; then
15742
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15743
set dummy ${ac_tool_prefix}strip; ac_word=$2
15744
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15746
if test "${ac_cv_prog_STRIP+set}" = set; then
15747
echo $ECHO_N "(cached) $ECHO_C" >&6
15749
if test -n "$STRIP"; then
15750
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753
for as_dir in $PATH
15756
test -z "$as_dir" && as_dir=.
15757
for ac_exec_ext in '' $ac_executable_extensions; do
15758
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15759
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15760
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15769
STRIP=$ac_cv_prog_STRIP
15770
if test -n "$STRIP"; then
15771
{ echo "$as_me:$LINENO: result: $STRIP" >&5
15772
echo "${ECHO_T}$STRIP" >&6; }
15774
{ echo "$as_me:$LINENO: result: no" >&5
15775
echo "${ECHO_T}no" >&6; }
15780
if test -z "$ac_cv_prog_STRIP"; then
15782
# Extract the first word of "strip", so it can be a program name with args.
15783
set dummy strip; ac_word=$2
15784
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15786
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15787
echo $ECHO_N "(cached) $ECHO_C" >&6
15789
if test -n "$ac_ct_STRIP"; then
15790
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793
for as_dir in $PATH
15796
test -z "$as_dir" && as_dir=.
15797
for ac_exec_ext in '' $ac_executable_extensions; do
15798
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15799
ac_cv_prog_ac_ct_STRIP="strip"
15800
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15809
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15810
if test -n "$ac_ct_STRIP"; then
15811
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15812
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
15814
{ echo "$as_me:$LINENO: result: no" >&5
15815
echo "${ECHO_T}no" >&6; }
15818
if test "x$ac_ct_STRIP" = x; then
15821
case $cross_compiling:$ac_tool_warned in
15823
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15824
whose name does not start with the host triplet. If you think this
15825
configuration is useful to you, please write to autoconf@gnu.org." >&5
15826
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15827
whose name does not start with the host triplet. If you think this
15828
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15829
ac_tool_warned=yes ;;
15834
STRIP="$ac_cv_prog_STRIP"
15838
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15840
# We need awk for the "check" target. The system "awk" is bad on
15842
# Always define AMTAR for backward compatibility.
15844
AMTAR=${AMTAR-"${am_missing_run}tar"}
15846
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15860
ac_cpp='$CXXCPP $CPPFLAGS'
15861
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15862
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15863
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15864
if test -z "$CXX"; then
15865
if test -n "$CCC"; then
15868
if test -n "$ac_tool_prefix"; then
15869
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15871
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15872
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15873
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15875
if test "${ac_cv_prog_CXX+set}" = set; then
15876
echo $ECHO_N "(cached) $ECHO_C" >&6
15878
if test -n "$CXX"; then
15879
ac_cv_prog_CXX="$CXX" # Let the user override the test.
15881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15882
for as_dir in $PATH
15885
test -z "$as_dir" && as_dir=.
15886
for ac_exec_ext in '' $ac_executable_extensions; do
15887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15888
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15889
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15898
CXX=$ac_cv_prog_CXX
15899
if test -n "$CXX"; then
15900
{ echo "$as_me:$LINENO: result: $CXX" >&5
15901
echo "${ECHO_T}$CXX" >&6; }
15903
{ echo "$as_me:$LINENO: result: no" >&5
15904
echo "${ECHO_T}no" >&6; }
15908
test -n "$CXX" && break
15911
if test -z "$CXX"; then
15913
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15915
# Extract the first word of "$ac_prog", so it can be a program name with args.
15916
set dummy $ac_prog; ac_word=$2
15917
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15919
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15920
echo $ECHO_N "(cached) $ECHO_C" >&6
15922
if test -n "$ac_ct_CXX"; then
15923
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926
for as_dir in $PATH
15929
test -z "$as_dir" && as_dir=.
15930
for ac_exec_ext in '' $ac_executable_extensions; do
15931
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15932
ac_cv_prog_ac_ct_CXX="$ac_prog"
15933
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15942
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15943
if test -n "$ac_ct_CXX"; then
15944
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15945
echo "${ECHO_T}$ac_ct_CXX" >&6; }
15947
{ echo "$as_me:$LINENO: result: no" >&5
15948
echo "${ECHO_T}no" >&6; }
15952
test -n "$ac_ct_CXX" && break
15955
if test "x$ac_ct_CXX" = x; then
15958
case $cross_compiling:$ac_tool_warned in
15960
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15961
whose name does not start with the host triplet. If you think this
15962
configuration is useful to you, please write to autoconf@gnu.org." >&5
15963
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15964
whose name does not start with the host triplet. If you think this
15965
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15966
ac_tool_warned=yes ;;
15974
# Provide some information about the compiler.
15975
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15976
ac_compiler=`set X $ac_compile; echo $2`
15977
{ (ac_try="$ac_compiler --version >&5"
15978
case "(($ac_try" in
15979
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980
*) ac_try_echo=$ac_try;;
15982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983
(eval "$ac_compiler --version >&5") 2>&5
15985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986
(exit $ac_status); }
15987
{ (ac_try="$ac_compiler -v >&5"
15988
case "(($ac_try" in
15989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990
*) ac_try_echo=$ac_try;;
15992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993
(eval "$ac_compiler -v >&5") 2>&5
15995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996
(exit $ac_status); }
15997
{ (ac_try="$ac_compiler -V >&5"
15998
case "(($ac_try" in
15999
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000
*) ac_try_echo=$ac_try;;
16002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003
(eval "$ac_compiler -V >&5") 2>&5
16005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006
(exit $ac_status); }
16008
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16009
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16010
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16011
echo $ECHO_N "(cached) $ECHO_C" >&6
16013
cat >conftest.$ac_ext <<_ACEOF
16016
cat confdefs.h >>conftest.$ac_ext
16017
cat >>conftest.$ac_ext <<_ACEOF
16018
/* end confdefs.h. */
16031
rm -f conftest.$ac_objext
16032
if { (ac_try="$ac_compile"
16033
case "(($ac_try" in
16034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035
*) ac_try_echo=$ac_try;;
16037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038
(eval "$ac_compile") 2>conftest.er1
16040
grep -v '^ *+' conftest.er1 >conftest.err
16042
cat conftest.err >&5
16043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044
(exit $ac_status); } && {
16045
test -z "$ac_cxx_werror_flag" ||
16046
test ! -s conftest.err
16047
} && test -s conftest.$ac_objext; then
16048
ac_compiler_gnu=yes
16050
echo "$as_me: failed program was:" >&5
16051
sed 's/^/| /' conftest.$ac_ext >&5
16056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16060
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16061
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16062
GXX=`test $ac_compiler_gnu = yes && echo yes`
16063
ac_test_CXXFLAGS=${CXXFLAGS+set}
16064
ac_save_CXXFLAGS=$CXXFLAGS
16065
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16066
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16067
if test "${ac_cv_prog_cxx_g+set}" = set; then
16068
echo $ECHO_N "(cached) $ECHO_C" >&6
16070
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16071
ac_cxx_werror_flag=yes
16072
ac_cv_prog_cxx_g=no
16074
cat >conftest.$ac_ext <<_ACEOF
16077
cat confdefs.h >>conftest.$ac_ext
16078
cat >>conftest.$ac_ext <<_ACEOF
16079
/* end confdefs.h. */
16089
rm -f conftest.$ac_objext
16090
if { (ac_try="$ac_compile"
16091
case "(($ac_try" in
16092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093
*) ac_try_echo=$ac_try;;
16095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096
(eval "$ac_compile") 2>conftest.er1
16098
grep -v '^ *+' conftest.er1 >conftest.err
16100
cat conftest.err >&5
16101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102
(exit $ac_status); } && {
16103
test -z "$ac_cxx_werror_flag" ||
16104
test ! -s conftest.err
16105
} && test -s conftest.$ac_objext; then
16106
ac_cv_prog_cxx_g=yes
16108
echo "$as_me: failed program was:" >&5
16109
sed 's/^/| /' conftest.$ac_ext >&5
16112
cat >conftest.$ac_ext <<_ACEOF
16115
cat confdefs.h >>conftest.$ac_ext
16116
cat >>conftest.$ac_ext <<_ACEOF
16117
/* end confdefs.h. */
16127
rm -f conftest.$ac_objext
16128
if { (ac_try="$ac_compile"
16129
case "(($ac_try" in
16130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131
*) ac_try_echo=$ac_try;;
16133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134
(eval "$ac_compile") 2>conftest.er1
16136
grep -v '^ *+' conftest.er1 >conftest.err
16138
cat conftest.err >&5
16139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140
(exit $ac_status); } && {
16141
test -z "$ac_cxx_werror_flag" ||
16142
test ! -s conftest.err
16143
} && test -s conftest.$ac_objext; then
16146
echo "$as_me: failed program was:" >&5
16147
sed 's/^/| /' conftest.$ac_ext >&5
16149
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16151
cat >conftest.$ac_ext <<_ACEOF
16154
cat confdefs.h >>conftest.$ac_ext
16155
cat >>conftest.$ac_ext <<_ACEOF
16156
/* end confdefs.h. */
16166
rm -f conftest.$ac_objext
16167
if { (ac_try="$ac_compile"
16168
case "(($ac_try" in
16169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170
*) ac_try_echo=$ac_try;;
16172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173
(eval "$ac_compile") 2>conftest.er1
16175
grep -v '^ *+' conftest.er1 >conftest.err
16177
cat conftest.err >&5
16178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179
(exit $ac_status); } && {
16180
test -z "$ac_cxx_werror_flag" ||
16181
test ! -s conftest.err
16182
} && test -s conftest.$ac_objext; then
16183
ac_cv_prog_cxx_g=yes
16185
echo "$as_me: failed program was:" >&5
16186
sed 's/^/| /' conftest.$ac_ext >&5
16191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16200
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16201
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16202
if test "$ac_test_CXXFLAGS" = set; then
16203
CXXFLAGS=$ac_save_CXXFLAGS
16204
elif test $ac_cv_prog_cxx_g = yes; then
16205
if test "$GXX" = yes; then
16211
if test "$GXX" = yes; then
16218
ac_cpp='$CPP $CPPFLAGS'
16219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16223
depcc="$CXX" am_compiler_list=
16225
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16226
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
16227
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16228
echo $ECHO_N "(cached) $ECHO_C" >&6
16230
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16231
# We make a subdir and do the tests there. Otherwise we can end up
16232
# making bogus files that we don't know about and never remove. For
16233
# instance it was reported that on HP-UX the gcc test will end up
16234
# making a dummy file named `D' -- because `-MD' means `put the output
16237
# Copy depcomp to subdir because otherwise we won't find it if we're
16238
# using a relative directory.
16239
cp "$am_depcomp" conftest.dir
16241
# We will build objects and dependencies in a subdirectory because
16242
# it helps to detect inapplicable dependency modes. For instance
16243
# both Tru64's cc and ICC support -MD to output dependencies as a
16244
# side effect of compilation, but ICC will put the dependencies in
16245
# the current directory while Tru64 will put them in the object
16249
am_cv_CXX_dependencies_compiler_type=none
16250
if test "$am_compiler_list" = ""; then
16251
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16253
for depmode in $am_compiler_list; do
16254
# Setup a source with many dependencies, because some compilers
16255
# like to wrap large dependency lists on column 80 (with \), and
16256
# we should not choose a depcomp mode which is confused by this.
16258
# We need to recreate these files for each test, as the compiler may
16259
# overwrite some of them when testing with obscure command lines.
16260
# This happens at least with the AIX C compiler.
16262
for i in 1 2 3 4 5 6; do
16263
echo '#include "conftst'$i'.h"' >> sub/conftest.c
16264
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16265
# Solaris 8's {/usr,}/bin/sh.
16266
touch sub/conftst$i.h
16268
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16272
# after this tag, mechanisms are not by side-effect, so they'll
16273
# only be used when explicitly requested
16274
if test "x$enable_dependency_tracking" = xyes; then
16282
# We check with `-c' and `-o' for the sake of the "dashmstdout"
16283
# mode. It turns out that the SunPro C++ compiler does not properly
16284
# handle `-M -o', and we need to detect this.
16285
if depmode=$depmode \
16286
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16287
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16288
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16289
>/dev/null 2>conftest.err &&
16290
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16291
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16292
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16293
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16294
# icc doesn't choke on unknown options, it will just issue warnings
16295
# or remarks (even with -Werror). So we grep stderr for any message
16296
# that says an option was ignored or not supported.
16297
# When given -MP, icc 7.0 and 7.1 complain thusly:
16298
# icc: Command line warning: ignoring option '-M'; no argument required
16299
# The diagnosis changed in icc 8.0:
16300
# icc: Command line remark: option '-MP' not supported
16301
if (grep 'ignoring option' conftest.err ||
16302
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16303
am_cv_CXX_dependencies_compiler_type=$depmode
16310
rm -rf conftest.dir
16312
am_cv_CXX_dependencies_compiler_type=none
16316
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16317
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
16318
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16321
test "x$enable_dependency_tracking" != xno \
16322
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16323
am__fastdepCXX_TRUE=
16324
am__fastdepCXX_FALSE='#'
16326
am__fastdepCXX_TRUE='#'
16327
am__fastdepCXX_FALSE=
16332
ac_cpp='$CPP $CPPFLAGS'
16333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16336
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16337
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16338
# On Suns, sometimes $CPP names a directory.
16339
if test -n "$CPP" && test -d "$CPP"; then
16342
if test -z "$CPP"; then
16343
if test "${ac_cv_prog_CPP+set}" = set; then
16344
echo $ECHO_N "(cached) $ECHO_C" >&6
16346
# Double quotes because CPP needs to be expanded
16347
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16349
ac_preproc_ok=false
16350
for ac_c_preproc_warn_flag in '' yes
16352
# Use a header file that comes with gcc, so configuring glibc
16353
# with a fresh cross-compiler works.
16354
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16355
# <limits.h> exists even on freestanding compilers.
16356
# On the NeXT, cc -E runs the code through the compiler's parser,
16357
# not just through cpp. "Syntax error" is here to catch this case.
16358
cat >conftest.$ac_ext <<_ACEOF
16361
cat confdefs.h >>conftest.$ac_ext
16362
cat >>conftest.$ac_ext <<_ACEOF
16363
/* end confdefs.h. */
16365
# include <limits.h>
16367
# include <assert.h>
16371
if { (ac_try="$ac_cpp conftest.$ac_ext"
16372
case "(($ac_try" in
16373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374
*) ac_try_echo=$ac_try;;
16376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16379
grep -v '^ *+' conftest.er1 >conftest.err
16381
cat conftest.err >&5
16382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383
(exit $ac_status); } >/dev/null && {
16384
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16385
test ! -s conftest.err
16389
echo "$as_me: failed program was:" >&5
16390
sed 's/^/| /' conftest.$ac_ext >&5
16392
# Broken: fails on valid input.
16396
rm -f conftest.err conftest.$ac_ext
16398
# OK, works on sane cases. Now check whether nonexistent headers
16399
# can be detected and how.
16400
cat >conftest.$ac_ext <<_ACEOF
16403
cat confdefs.h >>conftest.$ac_ext
16404
cat >>conftest.$ac_ext <<_ACEOF
16405
/* end confdefs.h. */
16406
#include <ac_nonexistent.h>
16408
if { (ac_try="$ac_cpp conftest.$ac_ext"
16409
case "(($ac_try" in
16410
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411
*) ac_try_echo=$ac_try;;
16413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416
grep -v '^ *+' conftest.er1 >conftest.err
16418
cat conftest.err >&5
16419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420
(exit $ac_status); } >/dev/null && {
16421
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16422
test ! -s conftest.err
16424
# Broken: success on invalid input.
16427
echo "$as_me: failed program was:" >&5
16428
sed 's/^/| /' conftest.$ac_ext >&5
16430
# Passes both tests.
16435
rm -f conftest.err conftest.$ac_ext
16438
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16439
rm -f conftest.err conftest.$ac_ext
16440
if $ac_preproc_ok; then
16445
ac_cv_prog_CPP=$CPP
16448
CPP=$ac_cv_prog_CPP
16450
ac_cv_prog_CPP=$CPP
16452
{ echo "$as_me:$LINENO: result: $CPP" >&5
16453
echo "${ECHO_T}$CPP" >&6; }
16454
ac_preproc_ok=false
16455
for ac_c_preproc_warn_flag in '' yes
16457
# Use a header file that comes with gcc, so configuring glibc
16458
# with a fresh cross-compiler works.
16459
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460
# <limits.h> exists even on freestanding compilers.
16461
# On the NeXT, cc -E runs the code through the compiler's parser,
16462
# not just through cpp. "Syntax error" is here to catch this case.
16463
cat >conftest.$ac_ext <<_ACEOF
16466
cat confdefs.h >>conftest.$ac_ext
16467
cat >>conftest.$ac_ext <<_ACEOF
16468
/* end confdefs.h. */
16470
# include <limits.h>
16472
# include <assert.h>
16476
if { (ac_try="$ac_cpp conftest.$ac_ext"
16477
case "(($ac_try" in
16478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479
*) ac_try_echo=$ac_try;;
16481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16484
grep -v '^ *+' conftest.er1 >conftest.err
16486
cat conftest.err >&5
16487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488
(exit $ac_status); } >/dev/null && {
16489
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16490
test ! -s conftest.err
16494
echo "$as_me: failed program was:" >&5
16495
sed 's/^/| /' conftest.$ac_ext >&5
16497
# Broken: fails on valid input.
16501
rm -f conftest.err conftest.$ac_ext
16503
# OK, works on sane cases. Now check whether nonexistent headers
16504
# can be detected and how.
16505
cat >conftest.$ac_ext <<_ACEOF
16508
cat confdefs.h >>conftest.$ac_ext
16509
cat >>conftest.$ac_ext <<_ACEOF
16510
/* end confdefs.h. */
16511
#include <ac_nonexistent.h>
16513
if { (ac_try="$ac_cpp conftest.$ac_ext"
16514
case "(($ac_try" in
16515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516
*) ac_try_echo=$ac_try;;
16518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16521
grep -v '^ *+' conftest.er1 >conftest.err
16523
cat conftest.err >&5
16524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525
(exit $ac_status); } >/dev/null && {
16526
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16527
test ! -s conftest.err
16529
# Broken: success on invalid input.
16532
echo "$as_me: failed program was:" >&5
16533
sed 's/^/| /' conftest.$ac_ext >&5
16535
# Passes both tests.
16540
rm -f conftest.err conftest.$ac_ext
16543
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16544
rm -f conftest.err conftest.$ac_ext
16545
if $ac_preproc_ok; then
16548
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16549
See \`config.log' for more details." >&5
16550
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16551
See \`config.log' for more details." >&2;}
16552
{ (exit 1); exit 1; }; }
16556
ac_cpp='$CPP $CPPFLAGS'
16557
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16558
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16559
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16561
# FIXME: we rely on the cache variable name because
16562
# there is no other way.
16564
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16565
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
16566
# Losing compiler, so override with the script.
16567
# FIXME: It is wrong to rewrite CC.
16568
# But if we don't then we get into trouble of one sort or another.
16569
# A longer-term fix would be to have automake use am__CC in this case,
16570
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16571
CC="$am_aux_dir/compile $CC"
16580
{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
16581
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
16582
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
16583
echo $ECHO_N "(cached) $ECHO_C" >&6
16585
cat >conftest.$ac_ext <<_ACEOF
16588
cat confdefs.h >>conftest.$ac_ext
16589
cat >>conftest.$ac_ext <<_ACEOF
16590
/* end confdefs.h. */
16591
$ac_includes_default
16603
rm -f conftest.$ac_objext
16604
if { (ac_try="$ac_compile"
16605
case "(($ac_try" in
16606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607
*) ac_try_echo=$ac_try;;
16609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610
(eval "$ac_compile") 2>conftest.er1
16612
grep -v '^ *+' conftest.er1 >conftest.err
16614
cat conftest.err >&5
16615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616
(exit $ac_status); } && {
16617
test -z "$ac_c_werror_flag" ||
16618
test ! -s conftest.err
16619
} && test -s conftest.$ac_objext; then
16620
ac_cv_have_decl___SUNPRO_C=yes
16622
echo "$as_me: failed program was:" >&5
16623
sed 's/^/| /' conftest.$ac_ext >&5
16625
ac_cv_have_decl___SUNPRO_C=no
16628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16630
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
16631
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
16632
if test $ac_cv_have_decl___SUNPRO_C = yes; then
16638
{ echo "$as_me:$LINENO: checking whether __ICC is declared" >&5
16639
echo $ECHO_N "checking whether __ICC is declared... $ECHO_C" >&6; }
16640
if test "${ac_cv_have_decl___ICC+set}" = set; then
16641
echo $ECHO_N "(cached) $ECHO_C" >&6
16643
cat >conftest.$ac_ext <<_ACEOF
16646
cat confdefs.h >>conftest.$ac_ext
16647
cat >>conftest.$ac_ext <<_ACEOF
16648
/* end confdefs.h. */
16649
$ac_includes_default
16661
rm -f conftest.$ac_objext
16662
if { (ac_try="$ac_compile"
16663
case "(($ac_try" in
16664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665
*) ac_try_echo=$ac_try;;
16667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668
(eval "$ac_compile") 2>conftest.er1
16670
grep -v '^ *+' conftest.er1 >conftest.err
16672
cat conftest.err >&5
16673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674
(exit $ac_status); } && {
16675
test -z "$ac_c_werror_flag" ||
16676
test ! -s conftest.err
16677
} && test -s conftest.$ac_objext; then
16678
ac_cv_have_decl___ICC=yes
16680
echo "$as_me: failed program was:" >&5
16681
sed 's/^/| /' conftest.$ac_ext >&5
16683
ac_cv_have_decl___ICC=no
16686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___ICC" >&5
16689
echo "${ECHO_T}$ac_cv_have_decl___ICC" >&6; }
16690
if test $ac_cv_have_decl___ICC = yes; then
16696
if test "x$INTELCC" = "xyes"; then
16711
if test "$GCC" = "yes"; then
16712
if test "$ac_cv_cxx_compile_cxx0x_native" = "yes"; then
16715
if test "$ac_cv_cxx_compile_cxx0x_gxx" = "yes"; then
16716
CXXFLAGS="-std=gnu++0x ${CXXFLAGS}"
16718
CXXFLAGS="-std=gnu++98"
16728
{ echo "$as_me:$LINENO: checking for ISO C++ 98 include files" >&5
16729
echo $ECHO_N "checking for ISO C++ 98 include files... $ECHO_C" >&6; }
16730
if test "${ac_cv_cxx_stdcxx_98+set}" = set; then
16731
echo $ECHO_N "(cached) $ECHO_C" >&6
16734
ac_cpp='$CXXCPP $CPPFLAGS'
16735
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16739
cat >conftest.$ac_ext <<_ACEOF
16742
cat confdefs.h >>conftest.$ac_ext
16743
cat >>conftest.$ac_ext <<_ACEOF
16744
/* end confdefs.h. */
16763
#include <algorithm>
16767
#include <exception>
16769
#include <functional>
16773
#include <iostream>
16775
#include <iterator>
16788
#include <stdexcept>
16789
#include <streambuf>
16791
#include <typeinfo>
16793
#include <valarray>
16804
rm -f conftest.$ac_objext
16805
if { (ac_try="$ac_compile"
16806
case "(($ac_try" in
16807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808
*) ac_try_echo=$ac_try;;
16810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811
(eval "$ac_compile") 2>conftest.er1
16813
grep -v '^ *+' conftest.er1 >conftest.err
16815
cat conftest.err >&5
16816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817
(exit $ac_status); } && {
16818
test -z "$ac_cxx_werror_flag" ||
16819
test ! -s conftest.err
16820
} && test -s conftest.$ac_objext; then
16821
ac_cv_cxx_stdcxx_98=yes
16823
echo "$as_me: failed program was:" >&5
16824
sed 's/^/| /' conftest.$ac_ext >&5
16826
ac_cv_cxx_stdcxx_98=no
16829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831
ac_cpp='$CPP $CPPFLAGS'
16832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16838
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_stdcxx_98" >&5
16839
echo "${ECHO_T}$ac_cv_cxx_stdcxx_98" >&6; }
16840
if test "$ac_cv_cxx_stdcxx_98" = yes; then
16842
cat >>confdefs.h <<\_ACEOF
16843
#define STDCXX_98_HEADERS
16854
ac_cpp='$CXXCPP $CPPFLAGS'
16855
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16862
for ac_header in memory tr1/memory boost/shared_ptr.hpp
16864
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16865
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16867
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16868
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16869
echo $ECHO_N "(cached) $ECHO_C" >&6
16871
ac_res=`eval echo '${'$as_ac_Header'}'`
16872
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16873
echo "${ECHO_T}$ac_res" >&6; }
16875
# Is the header compilable?
16876
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16877
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16878
cat >conftest.$ac_ext <<_ACEOF
16881
cat confdefs.h >>conftest.$ac_ext
16882
cat >>conftest.$ac_ext <<_ACEOF
16883
/* end confdefs.h. */
16884
$ac_includes_default
16885
#include <$ac_header>
16887
rm -f conftest.$ac_objext
16888
if { (ac_try="$ac_compile"
16889
case "(($ac_try" in
16890
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891
*) ac_try_echo=$ac_try;;
16893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894
(eval "$ac_compile") 2>conftest.er1
16896
grep -v '^ *+' conftest.er1 >conftest.err
16898
cat conftest.err >&5
16899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900
(exit $ac_status); } && {
16901
test -z "$ac_cxx_werror_flag" ||
16902
test ! -s conftest.err
16903
} && test -s conftest.$ac_objext; then
16904
ac_header_compiler=yes
16906
echo "$as_me: failed program was:" >&5
16907
sed 's/^/| /' conftest.$ac_ext >&5
16909
ac_header_compiler=no
16912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16914
echo "${ECHO_T}$ac_header_compiler" >&6; }
16916
# Is the header present?
16917
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16918
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16919
cat >conftest.$ac_ext <<_ACEOF
16922
cat confdefs.h >>conftest.$ac_ext
16923
cat >>conftest.$ac_ext <<_ACEOF
16924
/* end confdefs.h. */
16925
#include <$ac_header>
16927
if { (ac_try="$ac_cpp conftest.$ac_ext"
16928
case "(($ac_try" in
16929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930
*) ac_try_echo=$ac_try;;
16932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16935
grep -v '^ *+' conftest.er1 >conftest.err
16937
cat conftest.err >&5
16938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939
(exit $ac_status); } >/dev/null && {
16940
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
16941
test ! -s conftest.err
16943
ac_header_preproc=yes
16945
echo "$as_me: failed program was:" >&5
16946
sed 's/^/| /' conftest.$ac_ext >&5
16948
ac_header_preproc=no
16951
rm -f conftest.err conftest.$ac_ext
16952
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16953
echo "${ECHO_T}$ac_header_preproc" >&6; }
16955
# So? What about this header?
16956
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16958
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16959
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16960
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16961
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16962
ac_header_preproc=yes
16965
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16966
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16967
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16968
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16969
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16970
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16971
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16972
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16973
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16974
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16975
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16976
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16978
## --------------------------------------------- ##
16979
## Report this to https://launchpad.net/gearmand ##
16980
## --------------------------------------------- ##
16982
) | sed "s/^/$as_me: WARNING: /" >&2
16985
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16986
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16987
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16988
echo $ECHO_N "(cached) $ECHO_C" >&6
16990
eval "$as_ac_Header=\$ac_header_preproc"
16992
ac_res=`eval echo '${'$as_ac_Header'}'`
16993
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16994
echo "${ECHO_T}$ac_res" >&6; }
16997
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16998
cat >>confdefs.h <<_ACEOF
16999
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17006
{ echo "$as_me:$LINENO: checking the location of shared_ptr header file" >&5
17007
echo $ECHO_N "checking the location of shared_ptr header file... $ECHO_C" >&6; }
17008
if test "${ac_cv_shared_ptr_h+set}" = set; then
17009
echo $ECHO_N "(cached) $ECHO_C" >&6
17012
for namespace in std tr1 std::tr1 boost
17014
cat >conftest.$ac_ext <<_ACEOF
17017
cat confdefs.h >>conftest.$ac_ext
17018
cat >>conftest.$ac_ext <<_ACEOF
17019
/* end confdefs.h. */
17021
#if defined(HAVE_MEMORY)
17024
#if defined(HAVE_TR1_MEMORY)
17025
# include <tr1/memory>
17027
#if defined(HAVE_BOOST_SHARED_PTR_HPP)
17028
# include <boost/shared_ptr.hpp>
17032
using $namespace::shared_ptr;
17033
using namespace std;
17039
shared_ptr<string> test_ptr(new string("test string"));
17045
rm -f conftest.$ac_objext
17046
if { (ac_try="$ac_compile"
17047
case "(($ac_try" in
17048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049
*) ac_try_echo=$ac_try;;
17051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052
(eval "$ac_compile") 2>conftest.er1
17054
grep -v '^ *+' conftest.er1 >conftest.err
17056
cat conftest.err >&5
17057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058
(exit $ac_status); } && {
17059
test -z "$ac_cxx_werror_flag" ||
17060
test ! -s conftest.err
17061
} && test -s conftest.$ac_objext; then
17063
ac_cv_shared_ptr_namespace="${namespace}"
17067
echo "$as_me: failed program was:" >&5
17068
sed 's/^/| /' conftest.$ac_ext >&5
17070
ac_cv_shared_ptr_namespace=missing
17073
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077
{ echo "$as_me:$LINENO: result: $ac_cv_shared_ptr_h" >&5
17078
echo "${ECHO_T}$ac_cv_shared_ptr_h" >&6; }
17080
cat >>confdefs.h <<_ACEOF
17081
#define SHARED_PTR_NAMESPACE ${ac_cv_shared_ptr_namespace}
17085
ac_cpp='$CPP $CPPFLAGS'
17086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17092
if test "$ac_cv_shared_ptr_namespace" = "missing"; then
17094
{ echo "$as_me:$LINENO: WARNING: a usable shared_ptr implementation was not found. Let someone know what your platform is." >&5
17095
echo "$as_me: WARNING: a usable shared_ptr implementation was not found. Let someone know what your platform is." >&2;}
17103
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20671
17104
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
20672
17105
if test "${ac_cv_c_bigendian+set}" = set; then
20673
17106
echo $ECHO_N "(cached) $ECHO_C" >&6
21264
for ac_header in assert.h errno.h fcntl.h netinet/tcp.h pwd.h signal.h
21266
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21267
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21269
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271
echo $ECHO_N "(cached) $ECHO_C" >&6
21273
ac_res=`eval echo '${'$as_ac_Header'}'`
21274
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21275
echo "${ECHO_T}$ac_res" >&6; }
21277
# Is the header compilable?
21278
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21279
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21280
cat >conftest.$ac_ext <<_ACEOF
21283
cat confdefs.h >>conftest.$ac_ext
21284
cat >>conftest.$ac_ext <<_ACEOF
21285
/* end confdefs.h. */
21286
$ac_includes_default
21287
#include <$ac_header>
21289
rm -f conftest.$ac_objext
21290
if { (ac_try="$ac_compile"
21291
case "(($ac_try" in
21292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293
*) ac_try_echo=$ac_try;;
21295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296
(eval "$ac_compile") 2>conftest.er1
21298
grep -v '^ *+' conftest.er1 >conftest.err
21300
cat conftest.err >&5
21301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302
(exit $ac_status); } && {
21303
test -z "$ac_c_werror_flag" ||
21304
test ! -s conftest.err
21305
} && test -s conftest.$ac_objext; then
21306
ac_header_compiler=yes
21308
echo "$as_me: failed program was:" >&5
21309
sed 's/^/| /' conftest.$ac_ext >&5
21311
ac_header_compiler=no
21314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21316
echo "${ECHO_T}$ac_header_compiler" >&6; }
21318
# Is the header present?
21319
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21320
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21321
cat >conftest.$ac_ext <<_ACEOF
21324
cat confdefs.h >>conftest.$ac_ext
21325
cat >>conftest.$ac_ext <<_ACEOF
21326
/* end confdefs.h. */
21327
#include <$ac_header>
21329
if { (ac_try="$ac_cpp conftest.$ac_ext"
21330
case "(($ac_try" in
21331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332
*) ac_try_echo=$ac_try;;
21334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21337
grep -v '^ *+' conftest.er1 >conftest.err
21339
cat conftest.err >&5
21340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341
(exit $ac_status); } >/dev/null && {
21342
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21343
test ! -s conftest.err
21345
ac_header_preproc=yes
21347
echo "$as_me: failed program was:" >&5
21348
sed 's/^/| /' conftest.$ac_ext >&5
21350
ac_header_preproc=no
21353
rm -f conftest.err conftest.$ac_ext
21354
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21355
echo "${ECHO_T}$ac_header_preproc" >&6; }
21357
# So? What about this header?
21358
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21360
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21361
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21362
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21363
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21364
ac_header_preproc=yes
21367
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21368
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21369
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21370
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21371
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21372
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21373
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21374
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21375
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21376
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21377
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21378
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21380
## --------------------------------------------- ##
21381
## Report this to https://launchpad.net/gearmand ##
21382
## --------------------------------------------- ##
21384
) | sed "s/^/$as_me: WARNING: /" >&2
21387
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21389
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21390
echo $ECHO_N "(cached) $ECHO_C" >&6
21392
eval "$as_ac_Header=\$ac_header_preproc"
21394
ac_res=`eval echo '${'$as_ac_Header'}'`
21395
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21396
echo "${ECHO_T}$ac_res" >&6; }
21399
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400
cat >>confdefs.h <<_ACEOF
21401
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21414
for ac_header in stdarg.h stdio.h stdlib.h string.h sys/resource.h sys/stat.h
21416
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21419
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421
echo $ECHO_N "(cached) $ECHO_C" >&6
21423
ac_res=`eval echo '${'$as_ac_Header'}'`
21424
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21425
echo "${ECHO_T}$ac_res" >&6; }
21427
# Is the header compilable?
21428
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430
cat >conftest.$ac_ext <<_ACEOF
21433
cat confdefs.h >>conftest.$ac_ext
21434
cat >>conftest.$ac_ext <<_ACEOF
21435
/* end confdefs.h. */
21436
$ac_includes_default
21437
#include <$ac_header>
21439
rm -f conftest.$ac_objext
21440
if { (ac_try="$ac_compile"
21441
case "(($ac_try" in
21442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443
*) ac_try_echo=$ac_try;;
21445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446
(eval "$ac_compile") 2>conftest.er1
21448
grep -v '^ *+' conftest.er1 >conftest.err
21450
cat conftest.err >&5
21451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452
(exit $ac_status); } && {
21453
test -z "$ac_c_werror_flag" ||
21454
test ! -s conftest.err
21455
} && test -s conftest.$ac_objext; then
21456
ac_header_compiler=yes
21458
echo "$as_me: failed program was:" >&5
21459
sed 's/^/| /' conftest.$ac_ext >&5
21461
ac_header_compiler=no
21464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466
echo "${ECHO_T}$ac_header_compiler" >&6; }
21468
# Is the header present?
21469
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471
cat >conftest.$ac_ext <<_ACEOF
21474
cat confdefs.h >>conftest.$ac_ext
21475
cat >>conftest.$ac_ext <<_ACEOF
21476
/* end confdefs.h. */
21477
#include <$ac_header>
21479
if { (ac_try="$ac_cpp conftest.$ac_ext"
21480
case "(($ac_try" in
21481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482
*) ac_try_echo=$ac_try;;
21484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21487
grep -v '^ *+' conftest.er1 >conftest.err
21489
cat conftest.err >&5
21490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491
(exit $ac_status); } >/dev/null && {
21492
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493
test ! -s conftest.err
21495
ac_header_preproc=yes
21497
echo "$as_me: failed program was:" >&5
21498
sed 's/^/| /' conftest.$ac_ext >&5
21500
ac_header_preproc=no
21503
rm -f conftest.err conftest.$ac_ext
21504
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505
echo "${ECHO_T}$ac_header_preproc" >&6; }
21507
# So? What about this header?
21508
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21510
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514
ac_header_preproc=yes
21517
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21520
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21521
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21524
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21525
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21530
## --------------------------------------------- ##
21531
## Report this to https://launchpad.net/gearmand ##
21532
## --------------------------------------------- ##
21534
) | sed "s/^/$as_me: WARNING: /" >&2
21537
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21538
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540
echo $ECHO_N "(cached) $ECHO_C" >&6
21542
eval "$as_ac_Header=\$ac_header_preproc"
21544
ac_res=`eval echo '${'$as_ac_Header'}'`
21545
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21546
echo "${ECHO_T}$ac_res" >&6; }
21549
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550
cat >>confdefs.h <<_ACEOF
21551
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21562
for ac_header in sys/socket.h sys/types.h sys/utsname.h unistd.h
21564
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21567
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21568
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569
echo $ECHO_N "(cached) $ECHO_C" >&6
21571
ac_res=`eval echo '${'$as_ac_Header'}'`
21572
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21573
echo "${ECHO_T}$ac_res" >&6; }
21575
# Is the header compilable?
21576
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21577
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21578
cat >conftest.$ac_ext <<_ACEOF
21581
cat confdefs.h >>conftest.$ac_ext
21582
cat >>conftest.$ac_ext <<_ACEOF
21583
/* end confdefs.h. */
21584
$ac_includes_default
21585
#include <$ac_header>
21587
rm -f conftest.$ac_objext
21588
if { (ac_try="$ac_compile"
21589
case "(($ac_try" in
21590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591
*) ac_try_echo=$ac_try;;
21593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594
(eval "$ac_compile") 2>conftest.er1
21596
grep -v '^ *+' conftest.er1 >conftest.err
21598
cat conftest.err >&5
21599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600
(exit $ac_status); } && {
21601
test -z "$ac_c_werror_flag" ||
21602
test ! -s conftest.err
21603
} && test -s conftest.$ac_objext; then
21604
ac_header_compiler=yes
21606
echo "$as_me: failed program was:" >&5
21607
sed 's/^/| /' conftest.$ac_ext >&5
21609
ac_header_compiler=no
21612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21614
echo "${ECHO_T}$ac_header_compiler" >&6; }
21616
# Is the header present?
21617
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21618
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21619
cat >conftest.$ac_ext <<_ACEOF
21622
cat confdefs.h >>conftest.$ac_ext
21623
cat >>conftest.$ac_ext <<_ACEOF
21624
/* end confdefs.h. */
21625
#include <$ac_header>
21627
if { (ac_try="$ac_cpp conftest.$ac_ext"
21628
case "(($ac_try" in
21629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630
*) ac_try_echo=$ac_try;;
21632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21635
grep -v '^ *+' conftest.er1 >conftest.err
21637
cat conftest.err >&5
21638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639
(exit $ac_status); } >/dev/null && {
21640
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21641
test ! -s conftest.err
21643
ac_header_preproc=yes
21645
echo "$as_me: failed program was:" >&5
21646
sed 's/^/| /' conftest.$ac_ext >&5
21648
ac_header_preproc=no
21651
rm -f conftest.err conftest.$ac_ext
21652
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653
echo "${ECHO_T}$ac_header_preproc" >&6; }
21655
# So? What about this header?
21656
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662
ac_header_preproc=yes
21665
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21668
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21669
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21672
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21673
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21678
## --------------------------------------------- ##
21679
## Report this to https://launchpad.net/gearmand ##
21680
## --------------------------------------------- ##
21682
) | sed "s/^/$as_me: WARNING: /" >&2
21685
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21687
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688
echo $ECHO_N "(cached) $ECHO_C" >&6
21690
eval "$as_ac_Header=\$ac_header_preproc"
21692
ac_res=`eval echo '${'$as_ac_Header'}'`
21693
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21694
echo "${ECHO_T}$ac_res" >&6; }
21697
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21698
cat >>confdefs.h <<_ACEOF
21699
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21708
for ac_header in pthread.h
21710
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21711
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21712
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21713
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21714
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21715
echo $ECHO_N "(cached) $ECHO_C" >&6
21717
ac_res=`eval echo '${'$as_ac_Header'}'`
21718
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21719
echo "${ECHO_T}$ac_res" >&6; }
21721
# Is the header compilable?
21722
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21723
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21724
cat >conftest.$ac_ext <<_ACEOF
21727
cat confdefs.h >>conftest.$ac_ext
21728
cat >>conftest.$ac_ext <<_ACEOF
21729
/* end confdefs.h. */
21730
$ac_includes_default
21731
#include <$ac_header>
21733
rm -f conftest.$ac_objext
21734
if { (ac_try="$ac_compile"
21735
case "(($ac_try" in
21736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737
*) ac_try_echo=$ac_try;;
21739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740
(eval "$ac_compile") 2>conftest.er1
21742
grep -v '^ *+' conftest.er1 >conftest.err
21744
cat conftest.err >&5
21745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746
(exit $ac_status); } && {
21747
test -z "$ac_c_werror_flag" ||
21748
test ! -s conftest.err
21749
} && test -s conftest.$ac_objext; then
21750
ac_header_compiler=yes
21752
echo "$as_me: failed program was:" >&5
21753
sed 's/^/| /' conftest.$ac_ext >&5
21755
ac_header_compiler=no
21758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760
echo "${ECHO_T}$ac_header_compiler" >&6; }
21762
# Is the header present?
21763
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21764
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21765
cat >conftest.$ac_ext <<_ACEOF
21768
cat confdefs.h >>conftest.$ac_ext
21769
cat >>conftest.$ac_ext <<_ACEOF
21770
/* end confdefs.h. */
21771
#include <$ac_header>
21773
if { (ac_try="$ac_cpp conftest.$ac_ext"
21774
case "(($ac_try" in
21775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776
*) ac_try_echo=$ac_try;;
21778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21781
grep -v '^ *+' conftest.er1 >conftest.err
21783
cat conftest.err >&5
21784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785
(exit $ac_status); } >/dev/null && {
21786
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21787
test ! -s conftest.err
21789
ac_header_preproc=yes
21791
echo "$as_me: failed program was:" >&5
21792
sed 's/^/| /' conftest.$ac_ext >&5
21794
ac_header_preproc=no
21797
rm -f conftest.err conftest.$ac_ext
21798
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21799
echo "${ECHO_T}$ac_header_preproc" >&6; }
21801
# So? What about this header?
21802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21804
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21805
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21806
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21807
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21808
ac_header_preproc=yes
21811
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21812
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21813
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21814
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21815
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21816
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21817
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21818
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21819
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21820
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21821
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21822
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21824
## --------------------------------------------- ##
21825
## Report this to https://launchpad.net/gearmand ##
21826
## --------------------------------------------- ##
21828
) | sed "s/^/$as_me: WARNING: /" >&2
21831
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21832
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21833
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21834
echo $ECHO_N "(cached) $ECHO_C" >&6
21836
eval "$as_ac_Header=\$ac_header_preproc"
21838
ac_res=`eval echo '${'$as_ac_Header'}'`
21839
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21840
echo "${ECHO_T}$ac_res" >&6; }
21843
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21844
cat >>confdefs.h <<_ACEOF
21845
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21853
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21854
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21855
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21856
echo $ECHO_N "(cached) $ECHO_C" >&6
21858
ac_check_lib_save_LIBS=$LIBS
21859
LIBS="-lpthread $LIBS"
21860
cat >conftest.$ac_ext <<_ACEOF
21863
cat confdefs.h >>conftest.$ac_ext
21864
cat >>conftest.$ac_ext <<_ACEOF
21865
/* end confdefs.h. */
21867
/* Override any GCC internal prototype to avoid an error.
21868
Use char because int might match the return type of a GCC
21869
builtin and then its argument prototype would still apply. */
21873
char pthread_create ();
21877
return pthread_create ();
21882
rm -f conftest.$ac_objext conftest$ac_exeext
21883
if { (ac_try="$ac_link"
21884
case "(($ac_try" in
21885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886
*) ac_try_echo=$ac_try;;
21888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889
(eval "$ac_link") 2>conftest.er1
21891
grep -v '^ *+' conftest.er1 >conftest.err
21893
cat conftest.err >&5
21894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895
(exit $ac_status); } && {
21896
test -z "$ac_c_werror_flag" ||
21897
test ! -s conftest.err
21898
} && test -s conftest$ac_exeext &&
21899
$as_test_x conftest$ac_exeext; then
21900
ac_cv_lib_pthread_pthread_create=yes
21902
echo "$as_me: failed program was:" >&5
21903
sed 's/^/| /' conftest.$ac_ext >&5
21905
ac_cv_lib_pthread_pthread_create=no
21908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909
conftest$ac_exeext conftest.$ac_ext
21910
LIBS=$ac_check_lib_save_LIBS
21912
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21913
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21914
if test $ac_cv_lib_pthread_pthread_create = yes; then
21915
cat >>confdefs.h <<_ACEOF
21916
#define HAVE_LIBPTHREAD 1
21919
LIBS="-lpthread $LIBS"
17711
{ echo "$as_me:$LINENO: checking for size_t" >&5
17712
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17713
if test "${ac_cv_type_size_t+set}" = set; then
17714
echo $ECHO_N "(cached) $ECHO_C" >&6
17716
cat >conftest.$ac_ext <<_ACEOF
17719
cat confdefs.h >>conftest.$ac_ext
17720
cat >>conftest.$ac_ext <<_ACEOF
17721
/* end confdefs.h. */
17722
$ac_includes_default
17723
typedef size_t ac__type_new_;
17727
if ((ac__type_new_ *) 0)
17729
if (sizeof (ac__type_new_))
17735
rm -f conftest.$ac_objext
17736
if { (ac_try="$ac_compile"
17737
case "(($ac_try" in
17738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739
*) ac_try_echo=$ac_try;;
17741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742
(eval "$ac_compile") 2>conftest.er1
17744
grep -v '^ *+' conftest.er1 >conftest.err
17746
cat conftest.err >&5
17747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748
(exit $ac_status); } && {
17749
test -z "$ac_c_werror_flag" ||
17750
test ! -s conftest.err
17751
} && test -s conftest.$ac_objext; then
17752
ac_cv_type_size_t=yes
17754
echo "$as_me: failed program was:" >&5
17755
sed 's/^/| /' conftest.$ac_ext >&5
17757
ac_cv_type_size_t=no
17760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17762
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17763
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17764
if test $ac_cv_type_size_t = yes; then
17768
cat >>confdefs.h <<_ACEOF
17769
#define size_t unsigned int
17774
# Check whether --enable-largefile was given.
17775
if test "${enable_largefile+set}" = set; then
17776
enableval=$enable_largefile;
17779
if test "$enable_largefile" != no; then
17781
{ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17782
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
17783
if test "${ac_cv_sys_largefile_CC+set}" = set; then
17784
echo $ECHO_N "(cached) $ECHO_C" >&6
17786
ac_cv_sys_largefile_CC=no
17787
if test "$GCC" != yes; then
17790
# IRIX 6.2 and later do not support large files by default,
17791
# so use the C compiler's -n32 option if that helps.
17792
cat >conftest.$ac_ext <<_ACEOF
17795
cat confdefs.h >>conftest.$ac_ext
17796
cat >>conftest.$ac_ext <<_ACEOF
17797
/* end confdefs.h. */
17798
#include <sys/types.h>
17799
/* Check that off_t can represent 2**63 - 1 correctly.
17800
We can't simply define LARGE_OFF_T to be 9223372036854775807,
17801
since some C++ compilers masquerading as C compilers
17802
incorrectly reject 9223372036854775807. */
17803
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17804
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17805
&& LARGE_OFF_T % 2147483647 == 1)
17815
rm -f conftest.$ac_objext
17816
if { (ac_try="$ac_compile"
17817
case "(($ac_try" in
17818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819
*) ac_try_echo=$ac_try;;
17821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822
(eval "$ac_compile") 2>conftest.er1
17824
grep -v '^ *+' conftest.er1 >conftest.err
17826
cat conftest.err >&5
17827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828
(exit $ac_status); } && {
17829
test -z "$ac_c_werror_flag" ||
17830
test ! -s conftest.err
17831
} && test -s conftest.$ac_objext; then
17834
echo "$as_me: failed program was:" >&5
17835
sed 's/^/| /' conftest.$ac_ext >&5
17840
rm -f core conftest.err conftest.$ac_objext
17842
rm -f conftest.$ac_objext
17843
if { (ac_try="$ac_compile"
17844
case "(($ac_try" in
17845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846
*) ac_try_echo=$ac_try;;
17848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849
(eval "$ac_compile") 2>conftest.er1
17851
grep -v '^ *+' conftest.er1 >conftest.err
17853
cat conftest.err >&5
17854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855
(exit $ac_status); } && {
17856
test -z "$ac_c_werror_flag" ||
17857
test ! -s conftest.err
17858
} && test -s conftest.$ac_objext; then
17859
ac_cv_sys_largefile_CC=' -n32'; break
17861
echo "$as_me: failed program was:" >&5
17862
sed 's/^/| /' conftest.$ac_ext >&5
17867
rm -f core conftest.err conftest.$ac_objext
17871
rm -f conftest.$ac_ext
17874
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17875
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
17876
if test "$ac_cv_sys_largefile_CC" != no; then
17877
CC=$CC$ac_cv_sys_largefile_CC
17880
{ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17881
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
17882
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17883
echo $ECHO_N "(cached) $ECHO_C" >&6
17886
cat >conftest.$ac_ext <<_ACEOF
17889
cat confdefs.h >>conftest.$ac_ext
17890
cat >>conftest.$ac_ext <<_ACEOF
17891
/* end confdefs.h. */
17892
#include <sys/types.h>
17893
/* Check that off_t can represent 2**63 - 1 correctly.
17894
We can't simply define LARGE_OFF_T to be 9223372036854775807,
17895
since some C++ compilers masquerading as C compilers
17896
incorrectly reject 9223372036854775807. */
17897
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17898
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17899
&& LARGE_OFF_T % 2147483647 == 1)
17909
rm -f conftest.$ac_objext
17910
if { (ac_try="$ac_compile"
17911
case "(($ac_try" in
17912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913
*) ac_try_echo=$ac_try;;
17915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916
(eval "$ac_compile") 2>conftest.er1
17918
grep -v '^ *+' conftest.er1 >conftest.err
17920
cat conftest.err >&5
17921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922
(exit $ac_status); } && {
17923
test -z "$ac_c_werror_flag" ||
17924
test ! -s conftest.err
17925
} && test -s conftest.$ac_objext; then
17926
ac_cv_sys_file_offset_bits=no; break
17928
echo "$as_me: failed program was:" >&5
17929
sed 's/^/| /' conftest.$ac_ext >&5
17934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935
cat >conftest.$ac_ext <<_ACEOF
17938
cat confdefs.h >>conftest.$ac_ext
17939
cat >>conftest.$ac_ext <<_ACEOF
17940
/* end confdefs.h. */
17941
#define _FILE_OFFSET_BITS 64
17942
#include <sys/types.h>
17943
/* Check that off_t can represent 2**63 - 1 correctly.
17944
We can't simply define LARGE_OFF_T to be 9223372036854775807,
17945
since some C++ compilers masquerading as C compilers
17946
incorrectly reject 9223372036854775807. */
17947
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17948
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17949
&& LARGE_OFF_T % 2147483647 == 1)
17959
rm -f conftest.$ac_objext
17960
if { (ac_try="$ac_compile"
17961
case "(($ac_try" in
17962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963
*) ac_try_echo=$ac_try;;
17965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966
(eval "$ac_compile") 2>conftest.er1
17968
grep -v '^ *+' conftest.er1 >conftest.err
17970
cat conftest.err >&5
17971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972
(exit $ac_status); } && {
17973
test -z "$ac_c_werror_flag" ||
17974
test ! -s conftest.err
17975
} && test -s conftest.$ac_objext; then
17976
ac_cv_sys_file_offset_bits=64; break
17978
echo "$as_me: failed program was:" >&5
17979
sed 's/^/| /' conftest.$ac_ext >&5
17984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985
ac_cv_sys_file_offset_bits=unknown
17989
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17990
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
17991
case $ac_cv_sys_file_offset_bits in #(
17994
cat >>confdefs.h <<_ACEOF
17995
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18000
if test $ac_cv_sys_file_offset_bits = unknown; then
18001
{ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18002
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
18003
if test "${ac_cv_sys_large_files+set}" = set; then
18004
echo $ECHO_N "(cached) $ECHO_C" >&6
18007
cat >conftest.$ac_ext <<_ACEOF
18010
cat confdefs.h >>conftest.$ac_ext
18011
cat >>conftest.$ac_ext <<_ACEOF
18012
/* end confdefs.h. */
18013
#include <sys/types.h>
18014
/* Check that off_t can represent 2**63 - 1 correctly.
18015
We can't simply define LARGE_OFF_T to be 9223372036854775807,
18016
since some C++ compilers masquerading as C compilers
18017
incorrectly reject 9223372036854775807. */
18018
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18019
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18020
&& LARGE_OFF_T % 2147483647 == 1)
18030
rm -f conftest.$ac_objext
18031
if { (ac_try="$ac_compile"
18032
case "(($ac_try" in
18033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034
*) ac_try_echo=$ac_try;;
18036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037
(eval "$ac_compile") 2>conftest.er1
18039
grep -v '^ *+' conftest.er1 >conftest.err
18041
cat conftest.err >&5
18042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043
(exit $ac_status); } && {
18044
test -z "$ac_c_werror_flag" ||
18045
test ! -s conftest.err
18046
} && test -s conftest.$ac_objext; then
18047
ac_cv_sys_large_files=no; break
18049
echo "$as_me: failed program was:" >&5
18050
sed 's/^/| /' conftest.$ac_ext >&5
18055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056
cat >conftest.$ac_ext <<_ACEOF
18059
cat confdefs.h >>conftest.$ac_ext
18060
cat >>conftest.$ac_ext <<_ACEOF
18061
/* end confdefs.h. */
18062
#define _LARGE_FILES 1
18063
#include <sys/types.h>
18064
/* Check that off_t can represent 2**63 - 1 correctly.
18065
We can't simply define LARGE_OFF_T to be 9223372036854775807,
18066
since some C++ compilers masquerading as C compilers
18067
incorrectly reject 9223372036854775807. */
18068
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18069
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18070
&& LARGE_OFF_T % 2147483647 == 1)
18080
rm -f conftest.$ac_objext
18081
if { (ac_try="$ac_compile"
18082
case "(($ac_try" in
18083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084
*) ac_try_echo=$ac_try;;
18086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087
(eval "$ac_compile") 2>conftest.er1
18089
grep -v '^ *+' conftest.er1 >conftest.err
18091
cat conftest.err >&5
18092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093
(exit $ac_status); } && {
18094
test -z "$ac_c_werror_flag" ||
18095
test ! -s conftest.err
18096
} && test -s conftest.$ac_objext; then
18097
ac_cv_sys_large_files=1; break
18099
echo "$as_me: failed program was:" >&5
18100
sed 's/^/| /' conftest.$ac_ext >&5
18105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106
ac_cv_sys_large_files=unknown
18110
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18111
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18112
case $ac_cv_sys_large_files in #(
18115
cat >>confdefs.h <<_ACEOF
18116
#define _LARGE_FILES $ac_cv_sys_large_files
18128
{ echo "$as_me:$LINENO: checking \"C Compiler version--$GCC\"" >&5
18129
echo $ECHO_N "checking \"C Compiler version--$GCC\"... $ECHO_C" >&6; }
18130
if test "$GCC" = "yes"; then
18132
CC_VERSION=`$CC --version | sed 1q`
18135
if test "$SUNCC" = "yes"; then
18137
CC_VERSION=`$CC -V 2>&1 | sed 1q`
18148
{ echo "$as_me:$LINENO: result: \"$CC_VERSION\"" >&5
18149
echo "${ECHO_T}\"$CC_VERSION\"" >&6; }
18153
{ echo "$as_me:$LINENO: checking \"C++ Compiler version\"" >&5
18154
echo $ECHO_N "checking \"C++ Compiler version\"... $ECHO_C" >&6; }
18155
if test "$GCC" = "yes"; then
18157
CXX_VERSION=`$CXX --version | sed 1q`
18160
if test "$SUNCC" = "yes"; then
18162
CXX_VERSION=`$CXX -V 2>&1 | sed 1q`
18173
{ echo "$as_me:$LINENO: result: \"$CXX_VERSION\"" >&5
18174
echo "${ECHO_T}\"$CXX_VERSION\"" >&6; }
18179
if test "$GCC" = "yes" -a "$INTELCC" = "no"; then
18182
case "$target_cpu" in
18184
AM_CFLAGS="-mno-fused-madd ${AM_CFLAGS}"
18185
AM_CXXFLAGS="-mno-fused-madd ${AM_CXXFLAGS}"
18189
CC="${CC} -std=gnu99"
18191
AM_CPPFLAGS="-ggdb3 ${AM_CPPFLAGS}"
18194
DEBUG_CXXFLAGS="-O0"
18196
OPTIMIZE_CFLAGS="-O3"
18197
OPTIMIZE_CXXFLAGS="-O3"
18201
if test "$INTELCC" = "yes"; then
18203
CC="${CC} -std=c99"
18205
AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
18208
DEBUG_CXXFLAGS="-O0"
18210
OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
18211
OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
18216
if test "$SUNCC" = "yes"; then
18218
CC="${CC} -xc99=all"
18219
CXX="${CXX} -xlang=c99"
18221
AM_CFLAGS="-g -mt -xstrconst -Xa ${AM_CFLAGS}"
18222
AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -template=no%extdef ${AM_CXXFLAGS}"
18224
DEBUG_CXXFLAGS="-g"
18226
OPTIMIZE_FLAGS="-xO3 -xlibmil -xdepend -xbuiltin"
18227
OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS}"
18228
OPTIMIZE_CXXFLAGS="-g0 ${OPTIMIZE_FLAGS}"
18235
# Check whether --with-debug was given.
18236
if test "${with_debug+set}" = set; then
18237
withval=$with_debug; with_debug=$withval
18242
if test "$with_debug" = "yes"; then
18244
# Debugging. No optimization.
18245
AM_CFLAGS="${AM_CFLAGS} ${DEBUG_CFLAGS} -DDEBUG"
18246
AM_CXXFLAGS="${AM_CXXFLAGS} ${DEBUG_CXXFLAGS} -DDEBUG"
18250
# Optimized version. No debug
18251
AM_CFLAGS="${AM_CFLAGS} ${OPTIMIZE_CFLAGS}"
18252
AM_CXXFLAGS="${AM_CXXFLAGS} ${OPTIMIZE_CXXFLAGS}"
18258
save_CFLAGS="${CFLAGS}"
18259
CFLAGS="${CFLAGS} -Werror"
18264
if test -n "$GCC"; then
18265
{ echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
18266
echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
18267
if test "${gl_cv_cc_visibility+set}" = set; then
18268
echo $ECHO_N "(cached) $ECHO_C" >&6
18271
gl_save_CFLAGS="$CFLAGS"
18272
CFLAGS="$CFLAGS -fvisibility=hidden"
18273
cat >conftest.$ac_ext <<_ACEOF
18276
cat confdefs.h >>conftest.$ac_ext
18277
cat >>conftest.$ac_ext <<_ACEOF
18278
/* end confdefs.h. */
18279
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18280
extern __attribute__((__visibility__("default"))) int exportedvar;
18281
extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18282
extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18291
rm -f conftest.$ac_objext
18292
if { (ac_try="$ac_compile"
18293
case "(($ac_try" in
18294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295
*) ac_try_echo=$ac_try;;
18297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298
(eval "$ac_compile") 2>conftest.er1
18300
grep -v '^ *+' conftest.er1 >conftest.err
18302
cat conftest.err >&5
18303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304
(exit $ac_status); } && {
18305
test -z "$ac_c_werror_flag" ||
18306
test ! -s conftest.err
18307
} && test -s conftest.$ac_objext; then
18308
gl_cv_cc_visibility=yes
18310
echo "$as_me: failed program was:" >&5
18311
sed 's/^/| /' conftest.$ac_ext >&5
18313
gl_cv_cc_visibility=no
18316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317
CFLAGS="$gl_save_CFLAGS"
18320
{ echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
18321
echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
18322
if test $gl_cv_cc_visibility = yes; then
18323
CFLAG_VISIBILITY="-fvisibility=hidden"
18330
cat >>confdefs.h <<_ACEOF
18331
#define HAVE_VISIBILITY $HAVE_VISIBILITY
18335
CFLAGS="${save_CFLAGS}"
18338
{ echo "$as_me:$LINENO: checking whether to enable assertions" >&5
18339
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
18340
# Check whether --enable-assert was given.
18341
if test "${enable_assert+set}" = set; then
18342
enableval=$enable_assert; ac_cv_assert="no"
18347
{ echo "$as_me:$LINENO: result: $ac_cv_assert" >&5
18348
echo "${ECHO_T}$ac_cv_assert" >&6; }
18350
if test "$ac_cv_assert" = "yes"; then
18352
for ac_header in assert.h
18354
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18355
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18356
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18357
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18358
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18359
echo $ECHO_N "(cached) $ECHO_C" >&6
18361
ac_res=`eval echo '${'$as_ac_Header'}'`
18362
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18363
echo "${ECHO_T}$ac_res" >&6; }
18365
# Is the header compilable?
18366
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18367
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18368
cat >conftest.$ac_ext <<_ACEOF
18371
cat confdefs.h >>conftest.$ac_ext
18372
cat >>conftest.$ac_ext <<_ACEOF
18373
/* end confdefs.h. */
18374
$ac_includes_default
18375
#include <$ac_header>
18377
rm -f conftest.$ac_objext
18378
if { (ac_try="$ac_compile"
18379
case "(($ac_try" in
18380
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381
*) ac_try_echo=$ac_try;;
18383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384
(eval "$ac_compile") 2>conftest.er1
18386
grep -v '^ *+' conftest.er1 >conftest.err
18388
cat conftest.err >&5
18389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390
(exit $ac_status); } && {
18391
test -z "$ac_c_werror_flag" ||
18392
test ! -s conftest.err
18393
} && test -s conftest.$ac_objext; then
18394
ac_header_compiler=yes
18396
echo "$as_me: failed program was:" >&5
18397
sed 's/^/| /' conftest.$ac_ext >&5
18399
ac_header_compiler=no
18402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18403
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18404
echo "${ECHO_T}$ac_header_compiler" >&6; }
18406
# Is the header present?
18407
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18408
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18409
cat >conftest.$ac_ext <<_ACEOF
18412
cat confdefs.h >>conftest.$ac_ext
18413
cat >>conftest.$ac_ext <<_ACEOF
18414
/* end confdefs.h. */
18415
#include <$ac_header>
18417
if { (ac_try="$ac_cpp conftest.$ac_ext"
18418
case "(($ac_try" in
18419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420
*) ac_try_echo=$ac_try;;
18422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18425
grep -v '^ *+' conftest.er1 >conftest.err
18427
cat conftest.err >&5
18428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429
(exit $ac_status); } >/dev/null && {
18430
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18431
test ! -s conftest.err
18433
ac_header_preproc=yes
18435
echo "$as_me: failed program was:" >&5
18436
sed 's/^/| /' conftest.$ac_ext >&5
18438
ac_header_preproc=no
18441
rm -f conftest.err conftest.$ac_ext
18442
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18443
echo "${ECHO_T}$ac_header_preproc" >&6; }
18445
# So? What about this header?
18446
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18448
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18449
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18450
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18451
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18452
ac_header_preproc=yes
18455
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18456
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18457
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18458
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18459
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18460
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18461
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18462
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18463
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18464
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18465
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18466
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18468
## --------------------------------------------- ##
18469
## Report this to https://launchpad.net/gearmand ##
18470
## --------------------------------------------- ##
18472
) | sed "s/^/$as_me: WARNING: /" >&2
18475
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18476
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18477
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18478
echo $ECHO_N "(cached) $ECHO_C" >&6
18480
eval "$as_ac_Header=\$ac_header_preproc"
18482
ac_res=`eval echo '${'$as_ac_Header'}'`
18483
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18484
echo "${ECHO_T}$ac_res" >&6; }
18487
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18488
cat >>confdefs.h <<_ACEOF
18489
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18498
cat >>confdefs.h <<\_ACEOF
18514
if test "$ac_cv_building_from_vc" = "yes"; then
18515
ac_cv_warnings_as_errors=yes
18517
ac_cv_warnings_as_errors=no
18521
# Check whether --enable-profiling was given.
18522
if test "${enable_profiling+set}" = set; then
18523
enableval=$enable_profiling; ac_profiling="$enableval"
18529
# Check whether --enable-coverage was given.
18530
if test "${enable_coverage+set}" = set; then
18531
enableval=$enable_coverage; ac_coverage="$enableval"
18537
if test "$GCC" = "yes"; then
18540
if test "$ac_profiling" = "yes"; then
18543
save_LIBS="${LIBS}"
18546
{ echo "$as_me:$LINENO: checking for read in -lc_p" >&5
18547
echo $ECHO_N "checking for read in -lc_p... $ECHO_C" >&6; }
18548
if test "${ac_cv_lib_c_p_read+set}" = set; then
18549
echo $ECHO_N "(cached) $ECHO_C" >&6
18551
ac_check_lib_save_LIBS=$LIBS
18553
cat >conftest.$ac_ext <<_ACEOF
18556
cat confdefs.h >>conftest.$ac_ext
18557
cat >>conftest.$ac_ext <<_ACEOF
18558
/* end confdefs.h. */
18560
/* Override any GCC internal prototype to avoid an error.
18561
Use char because int might match the return type of a GCC
18562
builtin and then its argument prototype would still apply. */
18575
rm -f conftest.$ac_objext conftest$ac_exeext
18576
if { (ac_try="$ac_link"
18577
case "(($ac_try" in
18578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579
*) ac_try_echo=$ac_try;;
18581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582
(eval "$ac_link") 2>conftest.er1
18584
grep -v '^ *+' conftest.er1 >conftest.err
18586
cat conftest.err >&5
18587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588
(exit $ac_status); } && {
18589
test -z "$ac_c_werror_flag" ||
18590
test ! -s conftest.err
18591
} && test -s conftest$ac_exeext &&
18592
$as_test_x conftest$ac_exeext; then
18593
ac_cv_lib_c_p_read=yes
18595
echo "$as_me: failed program was:" >&5
18596
sed 's/^/| /' conftest.$ac_ext >&5
18598
ac_cv_lib_c_p_read=no
18601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18602
conftest$ac_exeext conftest.$ac_ext
18603
LIBS=$ac_check_lib_save_LIBS
18605
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_p_read" >&5
18606
echo "${ECHO_T}$ac_cv_lib_c_p_read" >&6; }
18607
if test $ac_cv_lib_c_p_read = yes; then
18608
cat >>confdefs.h <<_ACEOF
18609
#define HAVE_LIBC_P 1
18617
LIBS="${save_LIBS}"
18627
if test "$ac_coverage" = "yes"; then
18628
CC_COVERAGE="-fprofile-arcs -ftest-coverage"
18632
if test "$ac_cv_warnings_as_errors" = "yes"; then
18637
{ echo "$as_me:$LINENO: checking whether it is safe to use -fdiagnostics-show-option" >&5
18638
echo $ECHO_N "checking whether it is safe to use -fdiagnostics-show-option... $ECHO_C" >&6; }
18639
if test "${ac_cv_safe_to_use_fdiagnostics_show_option_+set}" = set; then
18640
echo $ECHO_N "(cached) $ECHO_C" >&6
18642
save_CFLAGS="$CFLAGS"
18643
CFLAGS="-fdiagnostics-show-option ${AM_CFLAGS} ${CFLAGS}"
18644
cat >conftest.$ac_ext <<_ACEOF
18647
cat confdefs.h >>conftest.$ac_ext
18648
cat >>conftest.$ac_ext <<_ACEOF
18649
/* end confdefs.h. */
18659
rm -f conftest.$ac_objext
18660
if { (ac_try="$ac_compile"
18661
case "(($ac_try" in
18662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663
*) ac_try_echo=$ac_try;;
18665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666
(eval "$ac_compile") 2>conftest.er1
18668
grep -v '^ *+' conftest.er1 >conftest.err
18670
cat conftest.err >&5
18671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672
(exit $ac_status); } && {
18673
test -z "$ac_c_werror_flag" ||
18674
test ! -s conftest.err
18675
} && test -s conftest.$ac_objext; then
18676
ac_cv_safe_to_use_fdiagnostics_show_option_=yes
18678
echo "$as_me: failed program was:" >&5
18679
sed 's/^/| /' conftest.$ac_ext >&5
18681
ac_cv_safe_to_use_fdiagnostics_show_option_=no
18684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685
CFLAGS="$save_CFLAGS"
18687
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_fdiagnostics_show_option_" >&5
18688
echo "${ECHO_T}$ac_cv_safe_to_use_fdiagnostics_show_option_" >&6; }
18690
if test "$ac_cv_safe_to_use_fdiagnostics_show_option_" = "yes"; then
18692
F_DIAGNOSTICS_SHOW_OPTION="-fdiagnostics-show-option"
18697
{ echo "$as_me:$LINENO: checking whether it is safe to use -Wconversion" >&5
18698
echo $ECHO_N "checking whether it is safe to use -Wconversion... $ECHO_C" >&6; }
18699
if test "${ac_cv_safe_to_use_wconversion_+set}" = set; then
18700
echo $ECHO_N "(cached) $ECHO_C" >&6
18702
save_CFLAGS="$CFLAGS"
18703
CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
18704
cat >conftest.$ac_ext <<_ACEOF
18707
cat confdefs.h >>conftest.$ac_ext
18708
cat >>conftest.$ac_ext <<_ACEOF
18709
/* end confdefs.h. */
18711
#include <stdbool.h>
18727
rm -f conftest.$ac_objext
18728
if { (ac_try="$ac_compile"
18729
case "(($ac_try" in
18730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731
*) ac_try_echo=$ac_try;;
18733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734
(eval "$ac_compile") 2>conftest.er1
18736
grep -v '^ *+' conftest.er1 >conftest.err
18738
cat conftest.err >&5
18739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740
(exit $ac_status); } && {
18741
test -z "$ac_c_werror_flag" ||
18742
test ! -s conftest.err
18743
} && test -s conftest.$ac_objext; then
18744
ac_cv_safe_to_use_wconversion_=yes
18746
echo "$as_me: failed program was:" >&5
18747
sed 's/^/| /' conftest.$ac_ext >&5
18749
ac_cv_safe_to_use_wconversion_=no
18752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18753
CFLAGS="$save_CFLAGS"
18755
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_wconversion_" >&5
18756
echo "${ECHO_T}$ac_cv_safe_to_use_wconversion_" >&6; }
18758
if test "$ac_cv_safe_to_use_wconversion_" = "yes"; then
18759
W_CONVERSION="-Wconversion"
18760
{ echo "$as_me:$LINENO: checking whether it is safe to use -Wconversion with htons" >&5
18761
echo $ECHO_N "checking whether it is safe to use -Wconversion with htons... $ECHO_C" >&6; }
18762
if test "${ac_cv_safe_to_use_Wconversion_+set}" = set; then
18763
echo $ECHO_N "(cached) $ECHO_C" >&6
18765
save_CFLAGS="$CFLAGS"
18766
CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
18767
cat >conftest.$ac_ext <<_ACEOF
18770
cat confdefs.h >>conftest.$ac_ext
18771
cat >>conftest.$ac_ext <<_ACEOF
18772
/* end confdefs.h. */
18774
#include <netinet/in.h>
18780
uint16_t x= htons(80);
18786
rm -f conftest.$ac_objext
18787
if { (ac_try="$ac_compile"
18788
case "(($ac_try" in
18789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790
*) ac_try_echo=$ac_try;;
18792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793
(eval "$ac_compile") 2>conftest.er1
18795
grep -v '^ *+' conftest.er1 >conftest.err
18797
cat conftest.err >&5
18798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799
(exit $ac_status); } && {
18800
test -z "$ac_c_werror_flag" ||
18801
test ! -s conftest.err
18802
} && test -s conftest.$ac_objext; then
18803
ac_cv_safe_to_use_Wconversion_=yes
18805
echo "$as_me: failed program was:" >&5
18806
sed 's/^/| /' conftest.$ac_ext >&5
18808
ac_cv_safe_to_use_Wconversion_=no
18811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812
CFLAGS="$save_CFLAGS"
18814
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wconversion_" >&5
18815
echo "${ECHO_T}$ac_cv_safe_to_use_Wconversion_" >&6; }
18817
if test "$ac_cv_safe_to_use_Wconversion_" = "no"; then
18818
NO_CONVERSION="-Wno-conversion"
18825
NO_STRICT_ALIASING="-fno-strict-aliasing -Wno-strict-aliasing"
18826
NO_SHADOW="-Wno-shadow"
18828
if test "$INTELCC" = "yes"; then
18831
BASE_WARNINGS="-w1 -Wall -Werror -Wcheck -Wformat -Wp64 -Woverloaded-virtual -Wcast-qual"
18833
CC_WARNINGS="${BASE_WARNINGS}"
18834
CXX_WARNINGS="${BASE_WARNINGS}"
18839
BASE_WARNINGS_FULL="-Wformat=2 ${W_CONVERSION} -Wstrict-aliasing"
18840
CC_WARNINGS_FULL="-Wswitch-default -Wswitch-enum -Wwrite-strings"
18841
CXX_WARNINGS_FULL="-Weffc++ -Wold-style-cast"
18844
if test "${ac_cv_assert}" = "no"; then
18845
NO_UNUSED="-Wno-unused-variable -Wno-unused-parameter"
18849
BASE_WARNINGS="${W_FAIL} -pedantic -Wall -Wextra -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}"
18850
CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
18851
CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long ${CXX_WARNINGS_FULL}"
18853
{ echo "$as_me:$LINENO: checking whether it is safe to use -Wmissing-declarations from C++" >&5
18854
echo $ECHO_N "checking whether it is safe to use -Wmissing-declarations from C++... $ECHO_C" >&6; }
18855
if test "${ac_cv_safe_to_use_Wmissing_declarations_+set}" = set; then
18856
echo $ECHO_N "(cached) $ECHO_C" >&6
18859
ac_cpp='$CXXCPP $CPPFLAGS'
18860
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864
save_CXXFLAGS="$CXXFLAGS"
18865
CXXFLAGS="-Werror -pedantic -Wmissing-declarations ${AM_CXXFLAGS}"
18866
cat >conftest.$ac_ext <<_ACEOF
18870
cat confdefs.h >>conftest.$ac_ext
18871
cat >>conftest.$ac_ext <<_ACEOF
18872
/* end confdefs.h. */
18885
rm -f conftest.$ac_objext
18886
if { (ac_try="$ac_compile"
18887
case "(($ac_try" in
18888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889
*) ac_try_echo=$ac_try;;
18891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892
(eval "$ac_compile") 2>conftest.er1
18894
grep -v '^ *+' conftest.er1 >conftest.err
18896
cat conftest.err >&5
18897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898
(exit $ac_status); } && {
18899
test -z "$ac_cxx_werror_flag" ||
18900
test ! -s conftest.err
18901
} && test -s conftest.$ac_objext; then
18902
ac_cv_safe_to_use_Wmissing_declarations_=yes
18904
echo "$as_me: failed program was:" >&5
18905
sed 's/^/| /' conftest.$ac_ext >&5
18907
ac_cv_safe_to_use_Wmissing_declarations_=no
18910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911
CXXFLAGS="$save_CXXFLAGS"
18913
ac_cpp='$CPP $CPPFLAGS'
18914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18920
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wmissing_declarations_" >&5
18921
echo "${ECHO_T}$ac_cv_safe_to_use_Wmissing_declarations_" >&6; }
18922
if test "$ac_cv_safe_to_use_Wmissing_declarations_" = "yes"; then
18923
CXX_WARNINGS="${CXX_WARNINGS} -Wmissing-declarations"
18927
{ echo "$as_me:$LINENO: checking whether it is safe to use -Wlogical-op" >&5
18928
echo $ECHO_N "checking whether it is safe to use -Wlogical-op... $ECHO_C" >&6; }
18929
if test "${ac_cv_safe_to_use_Wlogical_op_+set}" = set; then
18930
echo $ECHO_N "(cached) $ECHO_C" >&6
18932
save_CFLAGS="$CFLAGS"
18933
CFLAGS="${W_FAIL} -pedantic -Wlogical-op ${AM_CFLAGS} ${CFLAGS}"
18934
cat >conftest.$ac_ext <<_ACEOF
18938
cat confdefs.h >>conftest.$ac_ext
18939
cat >>conftest.$ac_ext <<_ACEOF
18940
/* end confdefs.h. */
18953
rm -f conftest.$ac_objext
18954
if { (ac_try="$ac_compile"
18955
case "(($ac_try" in
18956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957
*) ac_try_echo=$ac_try;;
18959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960
(eval "$ac_compile") 2>conftest.er1
18962
grep -v '^ *+' conftest.er1 >conftest.err
18964
cat conftest.err >&5
18965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966
(exit $ac_status); } && {
18967
test -z "$ac_c_werror_flag" ||
18968
test ! -s conftest.err
18969
} && test -s conftest.$ac_objext; then
18970
ac_cv_safe_to_use_Wlogical_op_=yes
18972
echo "$as_me: failed program was:" >&5
18973
sed 's/^/| /' conftest.$ac_ext >&5
18975
ac_cv_safe_to_use_Wlogical_op_=no
18978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979
CFLAGS="$save_CFLAGS"
18981
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wlogical_op_" >&5
18982
echo "${ECHO_T}$ac_cv_safe_to_use_Wlogical_op_" >&6; }
18983
if test "$ac_cv_safe_to_use_Wlogical_op_" = "yes"; then
18984
CC_WARNINGS="${CC_WARNINGS} -Wlogical-op"
18988
{ echo "$as_me:$LINENO: checking whether it is safe to use -Wredundant-decls from C++" >&5
18989
echo $ECHO_N "checking whether it is safe to use -Wredundant-decls from C++... $ECHO_C" >&6; }
18990
if test "${ac_cv_safe_to_use_Wredundant_decls_+set}" = set; then
18991
echo $ECHO_N "(cached) $ECHO_C" >&6
18994
ac_cpp='$CXXCPP $CPPFLAGS'
18995
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18996
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18997
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18999
save_CXXFLAGS="${CXXFLAGS}"
19000
CXXFLAGS="${W_FAIL} -pedantic -Wredundant-decls ${AM_CXXFLAGS}"
19001
cat >conftest.$ac_ext <<_ACEOF
19004
cat confdefs.h >>conftest.$ac_ext
19005
cat >>conftest.$ac_ext <<_ACEOF
19006
/* end confdefs.h. */
19008
template <typename E> struct C { void foo(); };
19009
template <typename E> void C<E>::foo() { }
19010
template <> void C<int>::foo();
19011
$ac_includes_default
19020
rm -f conftest.$ac_objext
19021
if { (ac_try="$ac_compile"
19022
case "(($ac_try" in
19023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024
*) ac_try_echo=$ac_try;;
19026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027
(eval "$ac_compile") 2>conftest.er1
19029
grep -v '^ *+' conftest.er1 >conftest.err
19031
cat conftest.err >&5
19032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033
(exit $ac_status); } && {
19034
test -z "$ac_cxx_werror_flag" ||
19035
test ! -s conftest.err
19036
} && test -s conftest.$ac_objext; then
19037
ac_cv_safe_to_use_Wredundant_decls_=yes
19039
echo "$as_me: failed program was:" >&5
19040
sed 's/^/| /' conftest.$ac_ext >&5
19042
ac_cv_safe_to_use_Wredundant_decls_=no
19045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046
CXXFLAGS="${save_CXXFLAGS}"
19048
ac_cpp='$CPP $CPPFLAGS'
19049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_use_Wredundant_decls_" >&5
19055
echo "${ECHO_T}$ac_cv_safe_to_use_Wredundant_decls_" >&6; }
19056
if test "$ac_cv_safe_to_use_Wredundant_decls_" = "yes"; then
19057
CXX_WARNINGS="${CXX_WARNINGS} -Wredundant-decls"
19059
CXX_WARNINGS="${CXX_WARNINGS} -Wno-redundant-decls"
19063
NO_REDUNDANT_DECLS="-Wno-redundant-decls"
19064
PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow"
19073
if test "$SUNCC" = "yes"; then
19076
if test "$ac_profiling" = "yes"; then
19077
CC_PROFILING="-xinstrument=datarace"
19081
if test "$ac_cv_warnings_as_errors" = "yes"; then
19082
W_FAIL="-errwarn=%all"
19086
{ echo "$as_me:$LINENO: checking whether E_PASTE_RESULT_NOT_TOKEN is usable" >&5
19087
echo $ECHO_N "checking whether E_PASTE_RESULT_NOT_TOKEN is usable... $ECHO_C" >&6; }
19088
if test "${ac_cv_paste_result+set}" = set; then
19089
echo $ECHO_N "(cached) $ECHO_C" >&6
19092
save_CFLAGS="${CFLAGS}"
19093
CFLAGS="-errwarn=%all -erroff=E_PASTE_RESULT_NOT_TOKEN ${CFLAGS}"
19094
cat >conftest.$ac_ext <<_ACEOF
19097
cat confdefs.h >>conftest.$ac_ext
19098
cat >>conftest.$ac_ext <<_ACEOF
19099
/* end confdefs.h. */
19101
$ac_includes_default
19112
rm -f conftest.$ac_objext
19113
if { (ac_try="$ac_compile"
19114
case "(($ac_try" in
19115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116
*) ac_try_echo=$ac_try;;
19118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119
(eval "$ac_compile") 2>conftest.er1
19121
grep -v '^ *+' conftest.er1 >conftest.err
19123
cat conftest.err >&5
19124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125
(exit $ac_status); } && {
19126
test -z "$ac_c_werror_flag" ||
19127
test ! -s conftest.err
19128
} && test -s conftest.$ac_objext; then
19129
ac_cv_paste_result=yes
19131
echo "$as_me: failed program was:" >&5
19132
sed 's/^/| /' conftest.$ac_ext >&5
19134
ac_cv_paste_result=no
19137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138
CFLAGS="${save_CFLAGS}"
19141
{ echo "$as_me:$LINENO: result: $ac_cv_paste_result" >&5
19142
echo "${ECHO_T}$ac_cv_paste_result" >&6; }
19143
if test $ac_cv_paste_result = yes; then
19144
W_PASTE_RESULT=",E_PASTE_RESULT_NOT_TOKEN"
19150
CC_WARNINGS_FULL="-erroff=E_INTEGER_OVERFLOW_DETECTED${W_PASTE_RESULT}"
19151
CXX_WARNINGS_FULL="-erroff=inllargeuse"
19154
CC_WARNINGS="-v -errtags=yes ${W_FAIL} ${CC_WARNINGS_FULL}"
19155
CXX_WARNINGS="+w +w2 -xwe -xport64 -errtags=yes ${CXX_WARNINGS_FULL} ${W_FAIL}"
19156
PROTOSKIP_WARNINGS="-erroff=attrskipunsup,doubunder,reftotemp,wbadinitl,identexpected,inllargeuse,truncwarn1,signextwarn"
19157
NO_UNREACHED="-erroff=E_STATEMENT_NOT_REACHED"
19173
# Check whether --enable-dtrace was given.
19174
if test "${enable_dtrace+set}" = set; then
19175
enableval=$enable_dtrace; ac_cv_enable_dtrace="yes"
19177
ac_cv_enable_dtrace="no"
19181
if test "$ac_cv_enable_dtrace" = "yes"; then
19183
for ac_prog in dtrace
19185
# Extract the first word of "$ac_prog", so it can be a program name with args.
19186
set dummy $ac_prog; ac_word=$2
19187
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19189
if test "${ac_cv_prog_DTRACE+set}" = set; then
19190
echo $ECHO_N "(cached) $ECHO_C" >&6
19192
if test -n "$DTRACE"; then
19193
ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
19195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19196
for as_dir in $PATH
19199
test -z "$as_dir" && as_dir=.
19200
for ac_exec_ext in '' $ac_executable_extensions; do
19201
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19202
ac_cv_prog_DTRACE="$ac_prog"
19203
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19212
DTRACE=$ac_cv_prog_DTRACE
19213
if test -n "$DTRACE"; then
19214
{ echo "$as_me:$LINENO: result: $DTRACE" >&5
19215
echo "${ECHO_T}$DTRACE" >&6; }
19217
{ echo "$as_me:$LINENO: result: no" >&5
19218
echo "${ECHO_T}no" >&6; }
19222
test -n "$DTRACE" && break
19225
if test "x$ac_cv_prog_DTRACE" = "xdtrace"; then
19228
cat >>confdefs.h <<\_ACEOF
19229
#define HAVE_DTRACE 1
19232
cat >conftest.d <<_ACEOF
19234
probe increment(int);
19237
$DTRACE -G -o conftest.d.o -s conftest.d 2>/dev/zero
19238
if test $? -eq 0; then
19239
ac_cv_dtrace_needs_objects=yes
19242
rm -f conftest.d.o conftest.d
19244
ac_cv_have_dtrace=yes
19251
if test "x$ac_cv_have_dtrace" = "xyes"; then
19253
HAVE_DTRACE_FALSE='#'
19255
HAVE_DTRACE_TRUE='#'
19259
if test "x$ac_cv_dtrace_needs_objects" = "xyes"; then
19260
DTRACE_NEEDS_OBJECTS_TRUE=
19261
DTRACE_NEEDS_OBJECTS_FALSE='#'
19263
DTRACE_NEEDS_OBJECTS_TRUE='#'
19264
DTRACE_NEEDS_OBJECTS_FALSE=
19278
acl_save_prefix="$prefix"
19279
prefix="$acl_final_prefix"
19280
acl_save_exec_prefix="$exec_prefix"
19281
exec_prefix="$acl_final_exec_prefix"
19283
eval additional_includedir=\"$includedir\"
19284
eval additional_libdir=\"$libdir\"
19286
exec_prefix="$acl_save_exec_prefix"
19287
prefix="$acl_save_prefix"
19290
# Check whether --with-lib-prefix was given.
19291
if test "${with_lib_prefix+set}" = set; then
19292
withval=$with_lib_prefix;
19293
if test "X$withval" = "Xno"; then
19296
if test "X$withval" = "X"; then
19298
acl_save_prefix="$prefix"
19299
prefix="$acl_final_prefix"
19300
acl_save_exec_prefix="$exec_prefix"
19301
exec_prefix="$acl_final_exec_prefix"
19303
eval additional_includedir=\"$includedir\"
19304
eval additional_libdir=\"$libdir\"
19306
exec_prefix="$acl_save_exec_prefix"
19307
prefix="$acl_save_prefix"
19310
additional_includedir="$withval/include"
19311
additional_libdir="$withval/$acl_libdirstem"
19317
if test $use_additional = yes; then
19318
if test "X$additional_includedir" != "X/usr/include"; then
19320
for x in $CPPFLAGS; do
19322
acl_save_prefix="$prefix"
19323
prefix="$acl_final_prefix"
19324
acl_save_exec_prefix="$exec_prefix"
19325
exec_prefix="$acl_final_exec_prefix"
19327
exec_prefix="$acl_save_exec_prefix"
19328
prefix="$acl_save_prefix"
19330
if test "X$x" = "X-I$additional_includedir"; then
19335
if test -z "$haveit"; then
19336
if test "X$additional_includedir" = "X/usr/local/include"; then
19337
if test -n "$GCC"; then
19339
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19343
if test -z "$haveit"; then
19344
if test -d "$additional_includedir"; then
19345
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
19350
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19352
for x in $LDFLAGS; do
19354
acl_save_prefix="$prefix"
19355
prefix="$acl_final_prefix"
19356
acl_save_exec_prefix="$exec_prefix"
19357
exec_prefix="$acl_final_exec_prefix"
19359
exec_prefix="$acl_save_exec_prefix"
19360
prefix="$acl_save_prefix"
19362
if test "X$x" = "X-L$additional_libdir"; then
19367
if test -z "$haveit"; then
19368
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19369
if test -n "$GCC"; then
19371
linux*) haveit=yes;;
19375
if test -z "$haveit"; then
19376
if test -d "$additional_libdir"; then
19377
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
19389
# Check whether --enable-umem was given.
19390
if test "${enable_umem+set}" = set; then
19391
enableval=$enable_umem; ac_enable_umem="$enableval"
19393
ac_enable_umem="no"
19397
# Check whether --enable-tcmalloc was given.
19398
if test "${enable_tcmalloc+set}" = set; then
19399
enableval=$enable_tcmalloc; ac_enable_tcmalloc="$enableval"
19401
ac_enable_tcmalloc="no"
19405
# Check whether --enable-mtmalloc was given.
19406
if test "${enable_mtmalloc+set}" = set; then
19407
enableval=$enable_mtmalloc; ac_enable_mtmalloc="$enableval"
19409
ac_enable_mtmalloc="yes"
19413
save_LIBS="${LIBS}"
19415
if test "x$ac_enable_umem" = "xyes"; then
19418
{ echo "$as_me:$LINENO: checking for malloc in -lumem" >&5
19419
echo $ECHO_N "checking for malloc in -lumem... $ECHO_C" >&6; }
19420
if test "${ac_cv_lib_umem_malloc+set}" = set; then
19421
echo $ECHO_N "(cached) $ECHO_C" >&6
19423
ac_check_lib_save_LIBS=$LIBS
19424
LIBS="-lumem $LIBS"
19425
cat >conftest.$ac_ext <<_ACEOF
19428
cat confdefs.h >>conftest.$ac_ext
19429
cat >>conftest.$ac_ext <<_ACEOF
19430
/* end confdefs.h. */
19432
/* Override any GCC internal prototype to avoid an error.
19433
Use char because int might match the return type of a GCC
19434
builtin and then its argument prototype would still apply. */
19447
rm -f conftest.$ac_objext conftest$ac_exeext
19448
if { (ac_try="$ac_link"
19449
case "(($ac_try" in
19450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451
*) ac_try_echo=$ac_try;;
19453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454
(eval "$ac_link") 2>conftest.er1
19456
grep -v '^ *+' conftest.er1 >conftest.err
19458
cat conftest.err >&5
19459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460
(exit $ac_status); } && {
19461
test -z "$ac_c_werror_flag" ||
19462
test ! -s conftest.err
19463
} && test -s conftest$ac_exeext &&
19464
$as_test_x conftest$ac_exeext; then
19465
ac_cv_lib_umem_malloc=yes
19467
echo "$as_me: failed program was:" >&5
19468
sed 's/^/| /' conftest.$ac_ext >&5
19470
ac_cv_lib_umem_malloc=no
19473
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474
conftest$ac_exeext conftest.$ac_ext
19475
LIBS=$ac_check_lib_save_LIBS
19477
{ echo "$as_me:$LINENO: result: $ac_cv_lib_umem_malloc" >&5
19478
echo "${ECHO_T}$ac_cv_lib_umem_malloc" >&6; }
19479
if test $ac_cv_lib_umem_malloc = yes; then
19480
cat >>confdefs.h <<_ACEOF
19481
#define HAVE_LIBUMEM 1
19484
LIBS="-lumem $LIBS"
19491
case "$target_os" in
19493
if test "x$ac_enable_tcmalloc" != "xno"; then
19496
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc-minimal" >&5
19497
echo $ECHO_N "checking for malloc in -ltcmalloc-minimal... $ECHO_C" >&6; }
19498
if test "${ac_cv_lib_tcmalloc_minimal_malloc+set}" = set; then
19499
echo $ECHO_N "(cached) $ECHO_C" >&6
19501
ac_check_lib_save_LIBS=$LIBS
19502
LIBS="-ltcmalloc-minimal $LIBS"
19503
cat >conftest.$ac_ext <<_ACEOF
19506
cat confdefs.h >>conftest.$ac_ext
19507
cat >>conftest.$ac_ext <<_ACEOF
19508
/* end confdefs.h. */
19510
/* Override any GCC internal prototype to avoid an error.
19511
Use char because int might match the return type of a GCC
19512
builtin and then its argument prototype would still apply. */
19525
rm -f conftest.$ac_objext conftest$ac_exeext
19526
if { (ac_try="$ac_link"
19527
case "(($ac_try" in
19528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529
*) ac_try_echo=$ac_try;;
19531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532
(eval "$ac_link") 2>conftest.er1
19534
grep -v '^ *+' conftest.er1 >conftest.err
19536
cat conftest.err >&5
19537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538
(exit $ac_status); } && {
19539
test -z "$ac_c_werror_flag" ||
19540
test ! -s conftest.err
19541
} && test -s conftest$ac_exeext &&
19542
$as_test_x conftest$ac_exeext; then
19543
ac_cv_lib_tcmalloc_minimal_malloc=yes
19545
echo "$as_me: failed program was:" >&5
19546
sed 's/^/| /' conftest.$ac_ext >&5
19548
ac_cv_lib_tcmalloc_minimal_malloc=no
19551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19552
conftest$ac_exeext conftest.$ac_ext
19553
LIBS=$ac_check_lib_save_LIBS
19555
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_minimal_malloc" >&5
19556
echo "${ECHO_T}$ac_cv_lib_tcmalloc_minimal_malloc" >&6; }
19557
if test $ac_cv_lib_tcmalloc_minimal_malloc = yes; then
19558
cat >>confdefs.h <<_ACEOF
19559
#define HAVE_LIBTCMALLOC_MINIMAL 1
19562
LIBS="-ltcmalloc-minimal $LIBS"
19566
if test "x$ac_cv_lib_tcmalloc_minimal_malloc" != "xyes"; then
19569
{ echo "$as_me:$LINENO: checking for malloc in -ltcmalloc" >&5
19570
echo $ECHO_N "checking for malloc in -ltcmalloc... $ECHO_C" >&6; }
19571
if test "${ac_cv_lib_tcmalloc_malloc+set}" = set; then
19572
echo $ECHO_N "(cached) $ECHO_C" >&6
19574
ac_check_lib_save_LIBS=$LIBS
19575
LIBS="-ltcmalloc $LIBS"
19576
cat >conftest.$ac_ext <<_ACEOF
19579
cat confdefs.h >>conftest.$ac_ext
19580
cat >>conftest.$ac_ext <<_ACEOF
19581
/* end confdefs.h. */
19583
/* Override any GCC internal prototype to avoid an error.
19584
Use char because int might match the return type of a GCC
19585
builtin and then its argument prototype would still apply. */
19598
rm -f conftest.$ac_objext conftest$ac_exeext
19599
if { (ac_try="$ac_link"
19600
case "(($ac_try" in
19601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602
*) ac_try_echo=$ac_try;;
19604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605
(eval "$ac_link") 2>conftest.er1
19607
grep -v '^ *+' conftest.er1 >conftest.err
19609
cat conftest.err >&5
19610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611
(exit $ac_status); } && {
19612
test -z "$ac_c_werror_flag" ||
19613
test ! -s conftest.err
19614
} && test -s conftest$ac_exeext &&
19615
$as_test_x conftest$ac_exeext; then
19616
ac_cv_lib_tcmalloc_malloc=yes
19618
echo "$as_me: failed program was:" >&5
19619
sed 's/^/| /' conftest.$ac_ext >&5
19621
ac_cv_lib_tcmalloc_malloc=no
19624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625
conftest$ac_exeext conftest.$ac_ext
19626
LIBS=$ac_check_lib_save_LIBS
19628
{ echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_malloc" >&5
19629
echo "${ECHO_T}$ac_cv_lib_tcmalloc_malloc" >&6; }
19630
if test $ac_cv_lib_tcmalloc_malloc = yes; then
19631
cat >>confdefs.h <<_ACEOF
19632
#define HAVE_LIBTCMALLOC 1
19635
LIBS="-ltcmalloc $LIBS"
19647
if test "x$ac_enable_mtmalloc" != "xno"; then
19650
{ echo "$as_me:$LINENO: checking for malloc in -lmtmalloc" >&5
19651
echo $ECHO_N "checking for malloc in -lmtmalloc... $ECHO_C" >&6; }
19652
if test "${ac_cv_lib_mtmalloc_malloc+set}" = set; then
19653
echo $ECHO_N "(cached) $ECHO_C" >&6
19655
ac_check_lib_save_LIBS=$LIBS
19656
LIBS="-lmtmalloc $LIBS"
19657
cat >conftest.$ac_ext <<_ACEOF
19660
cat confdefs.h >>conftest.$ac_ext
19661
cat >>conftest.$ac_ext <<_ACEOF
19662
/* end confdefs.h. */
19664
/* Override any GCC internal prototype to avoid an error.
19665
Use char because int might match the return type of a GCC
19666
builtin and then its argument prototype would still apply. */
19679
rm -f conftest.$ac_objext conftest$ac_exeext
19680
if { (ac_try="$ac_link"
19681
case "(($ac_try" in
19682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683
*) ac_try_echo=$ac_try;;
19685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686
(eval "$ac_link") 2>conftest.er1
19688
grep -v '^ *+' conftest.er1 >conftest.err
19690
cat conftest.err >&5
19691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692
(exit $ac_status); } && {
19693
test -z "$ac_c_werror_flag" ||
19694
test ! -s conftest.err
19695
} && test -s conftest$ac_exeext &&
19696
$as_test_x conftest$ac_exeext; then
19697
ac_cv_lib_mtmalloc_malloc=yes
19699
echo "$as_me: failed program was:" >&5
19700
sed 's/^/| /' conftest.$ac_ext >&5
19702
ac_cv_lib_mtmalloc_malloc=no
19705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19706
conftest$ac_exeext conftest.$ac_ext
19707
LIBS=$ac_check_lib_save_LIBS
19709
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mtmalloc_malloc" >&5
19710
echo "${ECHO_T}$ac_cv_lib_mtmalloc_malloc" >&6; }
19711
if test $ac_cv_lib_mtmalloc_malloc = yes; then
19712
cat >>confdefs.h <<_ACEOF
19713
#define HAVE_LIBMTMALLOC 1
19716
LIBS="-lmtmalloc $LIBS"
19728
BETTER_MALLOC_LIBS="${LIBS}"
19729
LIBS="${save_LIBS}"
19734
for ac_prog in doxygen
19736
# Extract the first word of "$ac_prog", so it can be a program name with args.
19737
set dummy $ac_prog; ac_word=$2
19738
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19740
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
19741
echo $ECHO_N "(cached) $ECHO_C" >&6
19743
if test -n "$DOXYGEN"; then
19744
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747
for as_dir in $PATH
19750
test -z "$as_dir" && as_dir=.
19751
for ac_exec_ext in '' $ac_executable_extensions; do
19752
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19753
ac_cv_prog_DOXYGEN="$ac_prog"
19754
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19763
DOXYGEN=$ac_cv_prog_DOXYGEN
19764
if test -n "$DOXYGEN"; then
19765
{ echo "$as_me:$LINENO: result: $DOXYGEN" >&5
19766
echo "${ECHO_T}$DOXYGEN" >&6; }
19768
{ echo "$as_me:$LINENO: result: no" >&5
19769
echo "${ECHO_T}no" >&6; }
19773
test -n "$DOXYGEN" && break
19776
for ac_prog in perl
19778
# Extract the first word of "$ac_prog", so it can be a program name with args.
19779
set dummy $ac_prog; ac_word=$2
19780
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19782
if test "${ac_cv_prog_PERL+set}" = set; then
19783
echo $ECHO_N "(cached) $ECHO_C" >&6
19785
if test -n "$PERL"; then
19786
ac_cv_prog_PERL="$PERL" # Let the user override the test.
19788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19789
for as_dir in $PATH
19792
test -z "$as_dir" && as_dir=.
19793
for ac_exec_ext in '' $ac_executable_extensions; do
19794
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19795
ac_cv_prog_PERL="$ac_prog"
19796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19805
PERL=$ac_cv_prog_PERL
19806
if test -n "$PERL"; then
19807
{ echo "$as_me:$LINENO: result: $PERL" >&5
19808
echo "${ECHO_T}$PERL" >&6; }
19810
{ echo "$as_me:$LINENO: result: no" >&5
19811
echo "${ECHO_T}no" >&6; }
19815
test -n "$PERL" && break
19819
if test "x${gl_LIBOBJS}" != "x"; then
19821
if test "$GCC" = "yes"; then
19823
AM_CPPFLAGS="-isystem \$(top_srcdir)/gnulib -isystem \$(top_builddir)/gnulib ${AM_CPPFLAGS}"
19827
AM_CPPFLAGS="-I\$(top_srcdir)/gnulib -I\$(top_builddir)/gnulib ${AM_CPPFLAGS}"
19835
AM_CPPFLAGS="-I\${top_srcdir} -I\${top_builddir} ${AM_CPPFLAGS}"
19836
AM_CFLAGS="${AM_CFLAGS} ${CC_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
19837
AM_CXXFLAGS="${AM_CXXFLAGS} ${CXX_WARNINGS} ${CC_PROFILING} ${CC_COVERAGE}"
19845
GEARMAN_LIBRARY_VERSION=1:3:0
19849
# current:revision:age
19851
# | | +- increment if interfaces have been added
19852
# | | set to zero if interfaces have been removed
19854
# | +- increment if source code has changed
19855
# | set to zero if current is incremented
19856
# +- increment if interfaces have been added, removed or changed
19859
# libgearman versioning when linked with GNU ld.
19860
if test "$lt_cv_prog_gnu_ld" = "yes"
19862
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libgearman/libgearman.ver"
19866
#--------------------------------------------------------------------
19867
# Check for libpthread
19868
#--------------------------------------------------------------------
19873
ac_cpp='$CPP $CPPFLAGS'
19874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
# We used to check for pthread.h first, but this fails if pthread.h
19881
# requires special compiler flags (e.g. on True64 or Sequent).
19882
# It gets checked for in the link test anyway.
19884
# First of all, check if the user has set any of the PTHREAD_LIBS,
19885
# etcetera environment variables, and if threads linking works using
19887
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19888
save_CFLAGS="$CFLAGS"
19889
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19891
LIBS="$PTHREAD_LIBS $LIBS"
19892
{ echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19893
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19894
cat >conftest.$ac_ext <<_ACEOF
19897
cat confdefs.h >>conftest.$ac_ext
19898
cat >>conftest.$ac_ext <<_ACEOF
19899
/* end confdefs.h. */
19901
/* Override any GCC internal prototype to avoid an error.
19902
Use char because int might match the return type of a GCC
19903
builtin and then its argument prototype would still apply. */
19907
char pthread_join ();
19911
return pthread_join ();
19916
rm -f conftest.$ac_objext conftest$ac_exeext
19917
if { (ac_try="$ac_link"
19918
case "(($ac_try" in
19919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920
*) ac_try_echo=$ac_try;;
19922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923
(eval "$ac_link") 2>conftest.er1
19925
grep -v '^ *+' conftest.er1 >conftest.err
19927
cat conftest.err >&5
19928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929
(exit $ac_status); } && {
19930
test -z "$ac_c_werror_flag" ||
19931
test ! -s conftest.err
19932
} && test -s conftest$ac_exeext &&
19933
$as_test_x conftest$ac_exeext; then
19936
echo "$as_me: failed program was:" >&5
19937
sed 's/^/| /' conftest.$ac_ext >&5
19942
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19943
conftest$ac_exeext conftest.$ac_ext
19944
{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19945
echo "${ECHO_T}$acx_pthread_ok" >&6; }
19946
if test x"$acx_pthread_ok" = xno; then
19951
CFLAGS="$save_CFLAGS"
19954
# We must check for the threads library under a number of different
19955
# names; the ordering is very important because some systems
19956
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19957
# libraries is broken (non-POSIX).
19959
# Create a list of thread flags to try. Items starting with a "-" are
19960
# C compiler flags, and other items are library names, except for "none"
19961
# which indicates that we try without any flags at all, and "pthread-config"
19962
# which is a program returning the flags for the Pth emulation library.
19964
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19966
# The ordering *is* (sometimes) important. Some notes on the
19967
# individual items follow:
19969
# pthreads: AIX (must check this before -lpthread)
19970
# none: in case threads are in libc; should be tried before -Kthread and
19971
# other compiler flags to prevent continual compiler warnings
19972
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19973
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19974
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19975
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19976
# -pthreads: Solaris/gcc
19977
# -mthreads: Mingw32/gcc, Lynx/gcc
19978
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19979
# doesn't hurt to check since this sometimes defines pthreads too;
19980
# also defines -D_REENTRANT)
19981
# ... -mt is also the pthreads flag for HP/aCC
19982
# pthread: Linux, etcetera
19983
# --thread-safe: KAI C++
19984
# pthread-config: use pthread-config program (for GNU Pth library)
19986
case "${host_cpu}-${host_os}" in
19989
# On Solaris (at least, for some versions), libc contains stubbed
19990
# (non-functional) versions of the pthreads routines, so link-based
19991
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
19992
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19993
# a function called by this macro, so we could check for that, but
19994
# who knows whether they'll stub that too in a future libc.) So,
19995
# we'll just look for -pthreads and -lpthread first:
19997
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20001
if test x"$acx_pthread_ok" = xno; then
20002
for flag in $acx_pthread_flags; do
20006
{ echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20007
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
20011
{ echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20012
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
20013
PTHREAD_CFLAGS="$flag"
20017
# Extract the first word of "pthread-config", so it can be a program name with args.
20018
set dummy pthread-config; ac_word=$2
20019
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20021
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20022
echo $ECHO_N "(cached) $ECHO_C" >&6
20024
if test -n "$acx_pthread_config"; then
20025
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20028
for as_dir in $PATH
20031
test -z "$as_dir" && as_dir=.
20032
for ac_exec_ext in '' $ac_executable_extensions; do
20033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20034
ac_cv_prog_acx_pthread_config="yes"
20035
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20045
acx_pthread_config=$ac_cv_prog_acx_pthread_config
20046
if test -n "$acx_pthread_config"; then
20047
{ echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20048
echo "${ECHO_T}$acx_pthread_config" >&6; }
20050
{ echo "$as_me:$LINENO: result: no" >&5
20051
echo "${ECHO_T}no" >&6; }
20055
if test x"$acx_pthread_config" = xno; then continue; fi
20056
PTHREAD_CFLAGS="`pthread-config --cflags`"
20057
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20061
{ echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20062
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
20063
PTHREAD_LIBS="-l$flag"
20068
save_CFLAGS="$CFLAGS"
20069
LIBS="$PTHREAD_LIBS $LIBS"
20070
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20072
# Check for various functions. We must include pthread.h,
20073
# since some functions may be macros. (On the Sequent, we
20074
# need a special flag -Kthread to make this header compile.)
20075
# We check for pthread_join because it is in -lpthread on IRIX
20076
# while pthread_create is in libc. We check for pthread_attr_init
20077
# due to DEC craziness with -lpthreads. We check for
20078
# pthread_cleanup_push because it is one of the few pthread
20079
# functions on Solaris that doesn't have a non-functional libc stub.
20080
# We try pthread_create on general principles.
20081
cat >conftest.$ac_ext <<_ACEOF
20084
cat confdefs.h >>conftest.$ac_ext
20085
cat >>conftest.$ac_ext <<_ACEOF
20086
/* end confdefs.h. */
20087
#include <pthread.h>
20091
pthread_t th; pthread_join(th, 0);
20092
pthread_attr_init(0); pthread_cleanup_push(0, 0);
20093
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20098
rm -f conftest.$ac_objext conftest$ac_exeext
20099
if { (ac_try="$ac_link"
20100
case "(($ac_try" in
20101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102
*) ac_try_echo=$ac_try;;
20104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105
(eval "$ac_link") 2>conftest.er1
20107
grep -v '^ *+' conftest.er1 >conftest.err
20109
cat conftest.err >&5
20110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111
(exit $ac_status); } && {
20112
test -z "$ac_c_werror_flag" ||
20113
test ! -s conftest.err
20114
} && test -s conftest$ac_exeext &&
20115
$as_test_x conftest$ac_exeext; then
20118
echo "$as_me: failed program was:" >&5
20119
sed 's/^/| /' conftest.$ac_ext >&5
20124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125
conftest$ac_exeext conftest.$ac_ext
20128
CFLAGS="$save_CFLAGS"
20130
{ echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20131
echo "${ECHO_T}$acx_pthread_ok" >&6; }
20132
if test "x$acx_pthread_ok" = xyes; then
20141
# Various other checks:
20142
if test "x$acx_pthread_ok" = xyes; then
20144
LIBS="$PTHREAD_LIBS $LIBS"
20145
save_CFLAGS="$CFLAGS"
20146
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20148
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20149
{ echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20150
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
20152
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20153
cat >conftest.$ac_ext <<_ACEOF
20156
cat confdefs.h >>conftest.$ac_ext
20157
cat >>conftest.$ac_ext <<_ACEOF
20158
/* end confdefs.h. */
20159
#include <pthread.h>
20163
int attr=$attr; return attr;
20168
rm -f conftest.$ac_objext conftest$ac_exeext
20169
if { (ac_try="$ac_link"
20170
case "(($ac_try" in
20171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172
*) ac_try_echo=$ac_try;;
20174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175
(eval "$ac_link") 2>conftest.er1
20177
grep -v '^ *+' conftest.er1 >conftest.err
20179
cat conftest.err >&5
20180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181
(exit $ac_status); } && {
20182
test -z "$ac_c_werror_flag" ||
20183
test ! -s conftest.err
20184
} && test -s conftest$ac_exeext &&
20185
$as_test_x conftest$ac_exeext; then
20186
attr_name=$attr; break
20188
echo "$as_me: failed program was:" >&5
20189
sed 's/^/| /' conftest.$ac_ext >&5
20194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20195
conftest$ac_exeext conftest.$ac_ext
20197
{ echo "$as_me:$LINENO: result: $attr_name" >&5
20198
echo "${ECHO_T}$attr_name" >&6; }
20199
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20201
cat >>confdefs.h <<_ACEOF
20202
#define PTHREAD_CREATE_JOINABLE $attr_name
20207
{ echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20208
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
20210
case "${host_cpu}-${host_os}" in
20211
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20212
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20214
{ echo "$as_me:$LINENO: result: ${flag}" >&5
20215
echo "${ECHO_T}${flag}" >&6; }
20216
if test "x$flag" != xno; then
20217
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20221
CFLAGS="$save_CFLAGS"
20223
# More AIX lossage: must compile with xlc_r or cc_r
20224
if test x"$GCC" != xyes; then
20225
for ac_prog in xlc_r cc_r
20227
# Extract the first word of "$ac_prog", so it can be a program name with args.
20228
set dummy $ac_prog; ac_word=$2
20229
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20230
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20231
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20232
echo $ECHO_N "(cached) $ECHO_C" >&6
20234
if test -n "$PTHREAD_CC"; then
20235
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20238
for as_dir in $PATH
20241
test -z "$as_dir" && as_dir=.
20242
for ac_exec_ext in '' $ac_executable_extensions; do
20243
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20244
ac_cv_prog_PTHREAD_CC="$ac_prog"
20245
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20254
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20255
if test -n "$PTHREAD_CC"; then
20256
{ echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
20257
echo "${ECHO_T}$PTHREAD_CC" >&6; }
20259
{ echo "$as_me:$LINENO: result: no" >&5
20260
echo "${ECHO_T}no" >&6; }
20264
test -n "$PTHREAD_CC" && break
20266
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20279
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20280
if test x"$acx_pthread_ok" = xyes; then
20282
cat >>confdefs.h <<\_ACEOF
20283
#define HAVE_PTHREAD 1
20289
{ { echo "$as_me:$LINENO: error: could not find libpthread" >&5
20290
echo "$as_me: error: could not find libpthread" >&2;}
20291
{ (exit 1); exit 1; }; }
20294
ac_cpp='$CPP $CPPFLAGS'
20295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20300
LIBS="${PTHREAD_LIBS} ${LIBS}"
20301
CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
21924
20305
#--------------------------------------------------------------------
24577
# Check whether to enable assertions.
24580
{ echo "$as_me:$LINENO: checking whether to enable assertions" >&5
24581
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
24582
# Check whether --enable-assert was given.
24583
if test "${enable_assert+set}" = set; then
24584
enableval=$enable_assert; ac_cv_assert="no"
24589
{ echo "$as_me:$LINENO: result: $ac_cv_assert" >&5
24590
echo "${ECHO_T}$ac_cv_assert" >&6; }
24595
building_from_bzr=yes
24597
building_from_bzr=no
24601
# Check whether --with-debug was given.
24602
if test "${with_debug+set}" = set; then
24603
withval=$with_debug; with_debug=$withval
24608
if test "$with_debug" = "yes"
24610
# Debugging. No optimization.
24611
CFLAGS="${DEBUG_CFLAGS} -DDEBUG ${CFLAGS}"
24613
# Optimized version. No debug
24614
CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS}"
24618
# Check whether --enable-profiling was given.
24619
if test "${enable_profiling+set}" = set; then
24620
enableval=$enable_profiling; ac_profiling="$enableval"
24626
# Check whether --enable-coverage was given.
24627
if test "${enable_coverage+set}" = set; then
24628
enableval=$enable_coverage; ac_coverage="$enableval"
24634
# Check whether --enable-fail was given.
24635
if test "${enable_fail+set}" = set; then
24636
enableval=$enable_fail; ac_warn_fail="$enableval"
24638
ac_warn_fail="$building_from_bzr"
24642
# Check whether --enable-pedantic-warnings was given.
24643
if test "${enable_pedantic_warnings+set}" = set; then
24644
enableval=$enable_pedantic_warnings; ac_warn_pedantic="$enableval"
24646
ac_warn_pedantic="$building_from_bzr"
24650
# Check whether --enable-unreachable was given.
24651
if test "${enable_unreachable+set}" = set; then
24652
enableval=$enable_unreachable; ac_warn_unreachable="$enableval"
24654
ac_warn_unreachable="no"
24658
if test "$GCC" = "yes"
24661
if test "$ac_warn_fail" = "yes"
24665
BASE_WARNINGS="-W -Wall -Wextra -Winvalid-pch ${W_FAIL}"
24667
if test "$ac_profiling" = "yes"
24669
GPROF_PROFILING="-pg"
24671
GPROF_PROFILING=" "
24674
if test "$ac_coverage" = "yes"
24676
GPROF_COVERAGE="-fprofile-arcs -ftest-coverage"
24681
if test "$ac_warn_pedantic" = "yes"
24683
W_PEDANTIC="-pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wswitch-default -Wswitch-enum -Wcast-align"
24684
save_CFLAGS="$CFLAGS"
24685
CFLAGS="-Wlogical-op"
24686
cat >conftest.$ac_ext <<_ACEOF
24689
cat confdefs.h >>conftest.$ac_ext
24690
cat >>conftest.$ac_ext <<_ACEOF
24691
/* end confdefs.h. */
24701
rm -f conftest.$ac_objext
24702
if { (ac_try="$ac_compile"
24703
case "(($ac_try" in
24704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705
*) ac_try_echo=$ac_try;;
24707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708
(eval "$ac_compile") 2>conftest.er1
24710
grep -v '^ *+' conftest.er1 >conftest.err
24712
cat conftest.err >&5
24713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714
(exit $ac_status); } && {
24715
test -z "$ac_c_werror_flag" ||
24716
test ! -s conftest.err
24717
} && test -s conftest.$ac_objext; then
24718
W_PEDANTIC="${W_PEDANTIC} -Wlogical-op"
24720
echo "$as_me: failed program was:" >&5
24721
sed 's/^/| /' conftest.$ac_ext >&5
24726
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727
CFLAGS="$save_CFLAGS"
24730
if test "$ac_warn_unreachable" = "yes"
24732
W_UNREACHABLE="-Wunreachable-code"
24735
CC_WARNINGS="${BASE_WARNINGS} ${W_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} "
24737
NO_REDUNDANT_DECLS="-Wno-redundant-decls"
24738
CPPFLAGS="-fpch-deps ${CPPFLAGS}"
24740
if test "$SUNCC" = "yes"
24743
if test "$ac_warn_fail" = "yes"
24745
W_FAIL="-errwarn=%all"
24748
{ echo "$as_me:$LINENO: checking whether E_PASTE_RESULT_NOT_TOKEN is usable" >&5
24749
echo $ECHO_N "checking whether E_PASTE_RESULT_NOT_TOKEN is usable... $ECHO_C" >&6; }
24750
if test "${ac_cv_paste_result+set}" = set; then
24751
echo $ECHO_N "(cached) $ECHO_C" >&6
24754
save_CFLAGS="${CFLAGS}"
24755
CFLAGS="-errwarn=%all -erroff=E_PASTE_RESULT_NOT_TOKEN ${CFLAGS}"
24756
cat >conftest.$ac_ext <<_ACEOF
24759
cat confdefs.h >>conftest.$ac_ext
24760
cat >>conftest.$ac_ext <<_ACEOF
24761
/* end confdefs.h. */
24763
$ac_includes_default
24774
rm -f conftest.$ac_objext
24775
if { (ac_try="$ac_compile"
24776
case "(($ac_try" in
24777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778
*) ac_try_echo=$ac_try;;
24780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781
(eval "$ac_compile") 2>conftest.er1
24783
grep -v '^ *+' conftest.er1 >conftest.err
24785
cat conftest.err >&5
24786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787
(exit $ac_status); } && {
24788
test -z "$ac_c_werror_flag" ||
24789
test ! -s conftest.err
24790
} && test -s conftest.$ac_objext; then
24791
ac_cv_paste_result=yes
24793
echo "$as_me: failed program was:" >&5
24794
sed 's/^/| /' conftest.$ac_ext >&5
24796
ac_cv_paste_result=no
24799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800
CFLAGS="${save_CFLAGS}"
24803
{ echo "$as_me:$LINENO: result: $ac_cv_paste_result" >&5
24804
echo "${ECHO_T}$ac_cv_paste_result" >&6; }
24805
if test $ac_cv_paste_result = yes; then
24806
W_PASTE_RESULT=",E_PASTE_RESULT_NOT_TOKEN"
24811
CC_WARNINGS="-v -errtags=yes ${W_FAIL} -erroff=E_INTEGER_OVERFLOW_DETECTED${W_PASTE_RESULT}"
24816
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
24820
AM_CPPFLAGS="-I\$(top_srcdir) -I\$(top_builddir) ${CPPFLAGS}"
24821
AM_CFLAGS="${CC_WARNINGS} ${CFLAGS}"
24829
for ac_prog in doxygen
24831
# Extract the first word of "$ac_prog", so it can be a program name with args.
24832
set dummy $ac_prog; ac_word=$2
24833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24835
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
24836
echo $ECHO_N "(cached) $ECHO_C" >&6
24838
if test -n "$DOXYGEN"; then
24839
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
24841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24842
for as_dir in $PATH
24845
test -z "$as_dir" && as_dir=.
24846
for ac_exec_ext in '' $ac_executable_extensions; do
24847
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24848
ac_cv_prog_DOXYGEN="$ac_prog"
24849
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24858
DOXYGEN=$ac_cv_prog_DOXYGEN
24859
if test -n "$DOXYGEN"; then
24860
{ echo "$as_me:$LINENO: result: $DOXYGEN" >&5
24861
echo "${ECHO_T}$DOXYGEN" >&6; }
24863
{ echo "$as_me:$LINENO: result: no" >&5
24864
echo "${ECHO_T}no" >&6; }
24868
test -n "$DOXYGEN" && break
24871
for ac_prog in perl
24873
# Extract the first word of "$ac_prog", so it can be a program name with args.
24874
set dummy $ac_prog; ac_word=$2
24875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24877
if test "${ac_cv_prog_PERL+set}" = set; then
24878
echo $ECHO_N "(cached) $ECHO_C" >&6
24880
if test -n "$PERL"; then
24881
ac_cv_prog_PERL="$PERL" # Let the user override the test.
24883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24884
for as_dir in $PATH
24887
test -z "$as_dir" && as_dir=.
24888
for ac_exec_ext in '' $ac_executable_extensions; do
24889
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24890
ac_cv_prog_PERL="$ac_prog"
24891
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24900
PERL=$ac_cv_prog_PERL
24901
if test -n "$PERL"; then
24902
{ echo "$as_me:$LINENO: result: $PERL" >&5
24903
echo "${ECHO_T}$PERL" >&6; }
24905
{ echo "$as_me:$LINENO: result: no" >&5
24906
echo "${ECHO_T}no" >&6; }
24910
test -n "$PERL" && break
23656
if test "x$GCC" = "xyes" -a "x" = "xsystem"
23658
i_system="-isystem "
23664
acl_save_prefix="$prefix"
23665
prefix="$acl_final_prefix"
23666
acl_save_exec_prefix="$exec_prefix"
23667
exec_prefix="$acl_final_exec_prefix"
23669
eval additional_includedir=\"$includedir\"
23670
eval additional_libdir=\"$libdir\"
23672
exec_prefix="$acl_save_exec_prefix"
23673
prefix="$acl_save_prefix"
23676
# Check whether --with-libmemcached-prefix was given.
23677
if test "${with_libmemcached_prefix+set}" = set; then
23678
withval=$with_libmemcached_prefix;
23679
if test "X$withval" = "Xno"; then
23682
if test "X$withval" = "X"; then
23684
acl_save_prefix="$prefix"
23685
prefix="$acl_final_prefix"
23686
acl_save_exec_prefix="$exec_prefix"
23687
exec_prefix="$acl_final_exec_prefix"
23689
eval additional_includedir=\"$includedir\"
23690
eval additional_libdir=\"$libdir\"
23692
exec_prefix="$acl_save_exec_prefix"
23693
prefix="$acl_save_prefix"
23696
additional_includedir="$withval/include"
23697
additional_libdir="$withval/$acl_libdirstem"
23698
if test "$acl_libdirstem2" != "$acl_libdirstem" \
23699
&& ! test -d "$withval/$acl_libdirstem"; then
23700
additional_libdir="$withval/$acl_libdirstem2"
23710
LIBMEMCACHED_PREFIX=
23713
names_already_handled=
23714
names_next_round='memcached '
23715
while test -n "$names_next_round"; do
23716
names_this_round="$names_next_round"
23718
for name in $names_this_round; do
23720
for n in $names_already_handled; do
23721
if test "$n" = "$name"; then
23722
already_handled=yes
23726
if test -z "$already_handled"; then
23727
names_already_handled="$names_already_handled $name"
23728
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23729
eval value=\"\$HAVE_LIB$uppername\"
23730
if test -n "$value"; then
23731
if test "$value" = yes; then
23732
eval value=\"\$LIB$uppername\"
23733
test -z "$value" || LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$value"
23734
eval value=\"\$LTLIB$uppername\"
23735
test -z "$value" || LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }$value"
23744
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23745
if test -n "$acl_shlibext"; then
23746
shrext=".$acl_shlibext" # typically: shrext=.so
23750
if test $use_additional = yes; then
23751
dir="$additional_libdir"
23752
if test -n "$acl_shlibext"; then
23753
if test -f "$dir/$libname$shrext"; then
23755
found_so="$dir/$libname$shrext"
23757
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23758
ver=`(cd "$dir" && \
23759
for f in "$libname$shrext".*; do echo "$f"; done \
23760
| sed -e "s,^$libname$shrext\\\\.,," \
23761
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23762
| sed 1q ) 2>/dev/null`
23763
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23765
found_so="$dir/$libname$shrext.$ver"
23768
eval library_names=\"$acl_library_names_spec\"
23769
for f in $library_names; do
23770
if test -f "$dir/$f"; then
23779
if test "X$found_dir" = "X"; then
23780
if test -f "$dir/$libname.$acl_libext"; then
23782
found_a="$dir/$libname.$acl_libext"
23785
if test "X$found_dir" != "X"; then
23786
if test -f "$dir/$libname.la"; then
23787
found_la="$dir/$libname.la"
23791
if test "X$found_dir" = "X"; then
23792
for x in $LDFLAGS $LTLIBMEMCACHED; do
23794
acl_save_prefix="$prefix"
23795
prefix="$acl_final_prefix"
23796
acl_save_exec_prefix="$exec_prefix"
23797
exec_prefix="$acl_final_exec_prefix"
23799
exec_prefix="$acl_save_exec_prefix"
23800
prefix="$acl_save_prefix"
23804
dir=`echo "X$x" | sed -e 's/^X-L//'`
23805
if test -n "$acl_shlibext"; then
23806
if test -f "$dir/$libname$shrext"; then
23808
found_so="$dir/$libname$shrext"
23810
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23811
ver=`(cd "$dir" && \
23812
for f in "$libname$shrext".*; do echo "$f"; done \
23813
| sed -e "s,^$libname$shrext\\\\.,," \
23814
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23815
| sed 1q ) 2>/dev/null`
23816
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23818
found_so="$dir/$libname$shrext.$ver"
23821
eval library_names=\"$acl_library_names_spec\"
23822
for f in $library_names; do
23823
if test -f "$dir/$f"; then
23832
if test "X$found_dir" = "X"; then
23833
if test -f "$dir/$libname.$acl_libext"; then
23835
found_a="$dir/$libname.$acl_libext"
23838
if test "X$found_dir" != "X"; then
23839
if test -f "$dir/$libname.la"; then
23840
found_la="$dir/$libname.la"
23845
if test "X$found_dir" != "X"; then
23850
if test "X$found_dir" != "X"; then
23851
LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-L$found_dir -l$name"
23852
if test "X$found_so" != "X"; then
23853
if test "$enable_rpath" = no \
23854
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
23855
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23856
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
23859
for x in $ltrpathdirs; do
23860
if test "X$x" = "X$found_dir"; then
23865
if test -z "$haveit"; then
23866
ltrpathdirs="$ltrpathdirs $found_dir"
23868
if test "$acl_hardcode_direct" = yes; then
23869
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
23871
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23872
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
23874
for x in $rpathdirs; do
23875
if test "X$x" = "X$found_dir"; then
23880
if test -z "$haveit"; then
23881
rpathdirs="$rpathdirs $found_dir"
23885
for x in $LDFLAGS $LIBMEMCACHED; do
23887
acl_save_prefix="$prefix"
23888
prefix="$acl_final_prefix"
23889
acl_save_exec_prefix="$exec_prefix"
23890
exec_prefix="$acl_final_exec_prefix"
23892
exec_prefix="$acl_save_exec_prefix"
23893
prefix="$acl_save_prefix"
23895
if test "X$x" = "X-L$found_dir"; then
23900
if test -z "$haveit"; then
23901
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$found_dir"
23903
if test "$acl_hardcode_minus_L" != no; then
23904
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_so"
23906
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-l$name"
23912
if test "X$found_a" != "X"; then
23913
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$found_a"
23915
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$found_dir -l$name"
23918
additional_includedir=
23919
case "$found_dir" in
23920
*/$acl_libdirstem | */$acl_libdirstem/)
23921
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23922
if test "$name" = 'memcached'; then
23923
LIBMEMCACHED_PREFIX="$basedir"
23925
additional_includedir="$basedir/include"
23927
*/$acl_libdirstem2 | */$acl_libdirstem2/)
23928
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23929
if test "$name" = 'memcached'; then
23930
LIBMEMCACHED_PREFIX="$basedir"
23932
additional_includedir="$basedir/include"
23935
if test "X$additional_includedir" != "X"; then
23936
if test "X$additional_includedir" != "X/usr/include"; then
23938
if test "X$additional_includedir" = "X/usr/local/include"; then
23939
if test -n "$GCC"; then
23941
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23945
if test -z "$haveit"; then
23946
for x in $CPPFLAGS $INCMEMCACHED; do
23948
acl_save_prefix="$prefix"
23949
prefix="$acl_final_prefix"
23950
acl_save_exec_prefix="$exec_prefix"
23951
exec_prefix="$acl_final_exec_prefix"
23953
exec_prefix="$acl_save_exec_prefix"
23954
prefix="$acl_save_prefix"
23956
if test "X$x" = "X${i_system}$additional_includedir"; then
23961
if test -z "$haveit"; then
23962
if test -d "$additional_includedir"; then
23963
INCMEMCACHED="${INCMEMCACHED}${INCMEMCACHED:+ }${i_system}$additional_includedir"
23969
if test -n "$found_la"; then
23970
save_libdir="$libdir"
23971
case "$found_la" in
23972
*/* | *\\*) . "$found_la" ;;
23973
*) . "./$found_la" ;;
23975
libdir="$save_libdir"
23976
for dep in $dependency_libs; do
23979
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23980
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23981
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23983
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23984
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23985
if test -n "$GCC"; then
23987
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23991
if test -z "$haveit"; then
23993
for x in $LDFLAGS $LIBMEMCACHED; do
23995
acl_save_prefix="$prefix"
23996
prefix="$acl_final_prefix"
23997
acl_save_exec_prefix="$exec_prefix"
23998
exec_prefix="$acl_final_exec_prefix"
24000
exec_prefix="$acl_save_exec_prefix"
24001
prefix="$acl_save_prefix"
24003
if test "X$x" = "X-L$additional_libdir"; then
24008
if test -z "$haveit"; then
24009
if test -d "$additional_libdir"; then
24010
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-L$additional_libdir"
24014
for x in $LDFLAGS $LTLIBMEMCACHED; do
24016
acl_save_prefix="$prefix"
24017
prefix="$acl_final_prefix"
24018
acl_save_exec_prefix="$exec_prefix"
24019
exec_prefix="$acl_final_exec_prefix"
24021
exec_prefix="$acl_save_exec_prefix"
24022
prefix="$acl_save_prefix"
24024
if test "X$x" = "X-L$additional_libdir"; then
24029
if test -z "$haveit"; then
24030
if test -d "$additional_libdir"; then
24031
LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-L$additional_libdir"
24038
dir=`echo "X$dep" | sed -e 's/^X-R//'`
24039
if test "$enable_rpath" != no; then
24041
for x in $rpathdirs; do
24042
if test "X$x" = "X$dir"; then
24047
if test -z "$haveit"; then
24048
rpathdirs="$rpathdirs $dir"
24051
for x in $ltrpathdirs; do
24052
if test "X$x" = "X$dir"; then
24057
if test -z "$haveit"; then
24058
ltrpathdirs="$ltrpathdirs $dir"
24063
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24066
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24069
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$dep"
24070
LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }$dep"
24076
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }-l$name"
24077
LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-l$name"
24083
if test "X$rpathdirs" != "X"; then
24084
if test -n "$acl_hardcode_libdir_separator"; then
24086
for found_dir in $rpathdirs; do
24087
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24089
acl_save_libdir="$libdir"
24091
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24092
libdir="$acl_save_libdir"
24093
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$flag"
24095
for found_dir in $rpathdirs; do
24096
acl_save_libdir="$libdir"
24097
libdir="$found_dir"
24098
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24099
libdir="$acl_save_libdir"
24100
LIBMEMCACHED="${LIBMEMCACHED}${LIBMEMCACHED:+ }$flag"
24104
if test "X$ltrpathdirs" != "X"; then
24105
for found_dir in $ltrpathdirs; do
24106
LTLIBMEMCACHED="${LTLIBMEMCACHED}${LTLIBMEMCACHED:+ }-R$found_dir"
24116
ac_save_CPPFLAGS="$CPPFLAGS"
24118
for element in $INCMEMCACHED; do
24120
for x in $CPPFLAGS; do
24122
acl_save_prefix="$prefix"
24123
prefix="$acl_final_prefix"
24124
acl_save_exec_prefix="$exec_prefix"
24125
exec_prefix="$acl_final_exec_prefix"
24127
exec_prefix="$acl_save_exec_prefix"
24128
prefix="$acl_save_prefix"
24130
if test "X$x" = "X$element"; then
24135
if test -z "$haveit"; then
24136
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24141
{ echo "$as_me:$LINENO: checking for libmemcached" >&5
24142
echo $ECHO_N "checking for libmemcached... $ECHO_C" >&6; }
24143
if test "${ac_cv_libmemcached+set}" = set; then
24144
echo $ECHO_N "(cached) $ECHO_C" >&6
24147
ac_save_LIBS="$LIBS"
24148
LIBS="$LIBS $LIBMEMCACHED"
24149
cat >conftest.$ac_ext <<_ACEOF
24152
cat confdefs.h >>conftest.$ac_ext
24153
cat >>conftest.$ac_ext <<_ACEOF
24154
/* end confdefs.h. */
24156
#include <libmemcached/memcached.h>
24163
memcached_dump_func *df;
24164
memcached_version();
24170
rm -f conftest.$ac_objext conftest$ac_exeext
24171
if { (ac_try="$ac_link"
24172
case "(($ac_try" in
24173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174
*) ac_try_echo=$ac_try;;
24176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177
(eval "$ac_link") 2>conftest.er1
24179
grep -v '^ *+' conftest.er1 >conftest.err
24181
cat conftest.err >&5
24182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183
(exit $ac_status); } && {
24184
test -z "$ac_c_werror_flag" ||
24185
test ! -s conftest.err
24186
} && test -s conftest$ac_exeext &&
24187
$as_test_x conftest$ac_exeext; then
24188
ac_cv_libmemcached=yes
24190
echo "$as_me: failed program was:" >&5
24191
sed 's/^/| /' conftest.$ac_ext >&5
24193
ac_cv_libmemcached=no
24196
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24197
conftest$ac_exeext conftest.$ac_ext
24198
LIBS="$ac_save_LIBS"
24201
{ echo "$as_me:$LINENO: result: $ac_cv_libmemcached" >&5
24202
echo "${ECHO_T}$ac_cv_libmemcached" >&6; }
24203
if test "$ac_cv_libmemcached" = yes; then
24204
HAVE_LIBMEMCACHED=yes
24206
cat >>confdefs.h <<\_ACEOF
24207
#define HAVE_LIBMEMCACHED 1
24210
{ echo "$as_me:$LINENO: checking how to link with libmemcached" >&5
24211
echo $ECHO_N "checking how to link with libmemcached... $ECHO_C" >&6; }
24212
{ echo "$as_me:$LINENO: result: $LIBMEMCACHED" >&5
24213
echo "${ECHO_T}$LIBMEMCACHED" >&6; }
24215
HAVE_LIBMEMCACHED=no
24216
CPPFLAGS="$ac_save_CPPFLAGS"
24219
LIBMEMCACHED_PREFIX=
24229
if test "x${ac_cv_libmemcached}" = "xyes"; then
24230
HAVE_LIBMEMCACHED_TRUE=
24231
HAVE_LIBMEMCACHED_FALSE='#'
24233
HAVE_LIBMEMCACHED_TRUE='#'
24234
HAVE_LIBMEMCACHED_FALSE=
24238
if test "x${ac_cv_libmemcached}" = "xyes"; then
24242
# Check whether --with-memcached was given.
24243
if test "${with_memcached+set}" = set; then
24244
withval=$with_memcached; ac_cv_with_memcached="$withval"
24246
ac_cv_with_memcached=memcached
24250
# just ignore the user if --without-memcached is passed.. it is
24251
# only used by make test
24252
if test "x$withval" = "xno"; then
24254
ac_cv_with_memcached=memcached
24255
MEMCACHED_BINARY=memcached
24259
if test -f "$withval"; then
24261
ac_cv_with_memcached=$withval
24262
MEMCACHED_BINARY=$withval
24266
# Extract the first word of "$ac_cv_with_memcached", so it can be a program name with args.
24267
set dummy $ac_cv_with_memcached; ac_word=$2
24268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24270
if test "${ac_cv_path_MEMCACHED_BINARY+set}" = set; then
24271
echo $ECHO_N "(cached) $ECHO_C" >&6
24273
case $MEMCACHED_BINARY in
24275
ac_cv_path_MEMCACHED_BINARY="$MEMCACHED_BINARY" # Let the user override the test with a path.
24278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279
for as_dir in $PATH
24282
test -z "$as_dir" && as_dir=.
24283
for ac_exec_ext in '' $ac_executable_extensions; do
24284
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24285
ac_cv_path_MEMCACHED_BINARY="$as_dir/$ac_word$ac_exec_ext"
24286
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24293
test -z "$ac_cv_path_MEMCACHED_BINARY" && ac_cv_path_MEMCACHED_BINARY=""no""
24297
MEMCACHED_BINARY=$ac_cv_path_MEMCACHED_BINARY
24298
if test -n "$MEMCACHED_BINARY"; then
24299
{ echo "$as_me:$LINENO: result: $MEMCACHED_BINARY" >&5
24300
echo "${ECHO_T}$MEMCACHED_BINARY" >&6; }
24302
{ echo "$as_me:$LINENO: result: no" >&5
24303
echo "${ECHO_T}no" >&6; }
24307
if test "x$MEMCACHED_BINARY" = "xno"; then
24309
{ { echo "$as_me:$LINENO: error: \"could not find memcached binary\"" >&5
24310
echo "$as_me: error: \"could not find memcached binary\"" >&2;}
24311
{ (exit 1); exit 1; }; }
24322
cat >>confdefs.h <<_ACEOF
24323
#define MEMCACHED_BINARY "$MEMCACHED_BINARY"
24353
if test "x$GCC" = "xyes" -a "x" = "xsystem"
24355
i_system="-isystem "
24361
acl_save_prefix="$prefix"
24362
prefix="$acl_final_prefix"
24363
acl_save_exec_prefix="$exec_prefix"
24364
exec_prefix="$acl_final_exec_prefix"
24366
eval additional_includedir=\"$includedir\"
24367
eval additional_libdir=\"$libdir\"
24369
exec_prefix="$acl_save_exec_prefix"
24370
prefix="$acl_save_prefix"
24373
# Check whether --with-libpq-prefix was given.
24374
if test "${with_libpq_prefix+set}" = set; then
24375
withval=$with_libpq_prefix;
24376
if test "X$withval" = "Xno"; then
24379
if test "X$withval" = "X"; then
24381
acl_save_prefix="$prefix"
24382
prefix="$acl_final_prefix"
24383
acl_save_exec_prefix="$exec_prefix"
24384
exec_prefix="$acl_final_exec_prefix"
24386
eval additional_includedir=\"$includedir\"
24387
eval additional_libdir=\"$libdir\"
24389
exec_prefix="$acl_save_exec_prefix"
24390
prefix="$acl_save_prefix"
24393
additional_includedir="$withval/include"
24394
additional_libdir="$withval/$acl_libdirstem"
24395
if test "$acl_libdirstem2" != "$acl_libdirstem" \
24396
&& ! test -d "$withval/$acl_libdirstem"; then
24397
additional_libdir="$withval/$acl_libdirstem2"
24410
names_already_handled=
24411
names_next_round='pq '
24412
while test -n "$names_next_round"; do
24413
names_this_round="$names_next_round"
24415
for name in $names_this_round; do
24417
for n in $names_already_handled; do
24418
if test "$n" = "$name"; then
24419
already_handled=yes
24423
if test -z "$already_handled"; then
24424
names_already_handled="$names_already_handled $name"
24425
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24426
eval value=\"\$HAVE_LIB$uppername\"
24427
if test -n "$value"; then
24428
if test "$value" = yes; then
24429
eval value=\"\$LIB$uppername\"
24430
test -z "$value" || LIBPQ="${LIBPQ}${LIBPQ:+ }$value"
24431
eval value=\"\$LTLIB$uppername\"
24432
test -z "$value" || LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }$value"
24441
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
24442
if test -n "$acl_shlibext"; then
24443
shrext=".$acl_shlibext" # typically: shrext=.so
24447
if test $use_additional = yes; then
24448
dir="$additional_libdir"
24449
if test -n "$acl_shlibext"; then
24450
if test -f "$dir/$libname$shrext"; then
24452
found_so="$dir/$libname$shrext"
24454
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24455
ver=`(cd "$dir" && \
24456
for f in "$libname$shrext".*; do echo "$f"; done \
24457
| sed -e "s,^$libname$shrext\\\\.,," \
24458
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24459
| sed 1q ) 2>/dev/null`
24460
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24462
found_so="$dir/$libname$shrext.$ver"
24465
eval library_names=\"$acl_library_names_spec\"
24466
for f in $library_names; do
24467
if test -f "$dir/$f"; then
24476
if test "X$found_dir" = "X"; then
24477
if test -f "$dir/$libname.$acl_libext"; then
24479
found_a="$dir/$libname.$acl_libext"
24482
if test "X$found_dir" != "X"; then
24483
if test -f "$dir/$libname.la"; then
24484
found_la="$dir/$libname.la"
24488
if test "X$found_dir" = "X"; then
24489
for x in $LDFLAGS $LTLIBPQ; do
24491
acl_save_prefix="$prefix"
24492
prefix="$acl_final_prefix"
24493
acl_save_exec_prefix="$exec_prefix"
24494
exec_prefix="$acl_final_exec_prefix"
24496
exec_prefix="$acl_save_exec_prefix"
24497
prefix="$acl_save_prefix"
24501
dir=`echo "X$x" | sed -e 's/^X-L//'`
24502
if test -n "$acl_shlibext"; then
24503
if test -f "$dir/$libname$shrext"; then
24505
found_so="$dir/$libname$shrext"
24507
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24508
ver=`(cd "$dir" && \
24509
for f in "$libname$shrext".*; do echo "$f"; done \
24510
| sed -e "s,^$libname$shrext\\\\.,," \
24511
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24512
| sed 1q ) 2>/dev/null`
24513
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24515
found_so="$dir/$libname$shrext.$ver"
24518
eval library_names=\"$acl_library_names_spec\"
24519
for f in $library_names; do
24520
if test -f "$dir/$f"; then
24529
if test "X$found_dir" = "X"; then
24530
if test -f "$dir/$libname.$acl_libext"; then
24532
found_a="$dir/$libname.$acl_libext"
24535
if test "X$found_dir" != "X"; then
24536
if test -f "$dir/$libname.la"; then
24537
found_la="$dir/$libname.la"
24542
if test "X$found_dir" != "X"; then
24547
if test "X$found_dir" != "X"; then
24548
LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-L$found_dir -l$name"
24549
if test "X$found_so" != "X"; then
24550
if test "$enable_rpath" = no \
24551
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
24552
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
24553
LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
24556
for x in $ltrpathdirs; do
24557
if test "X$x" = "X$found_dir"; then
24562
if test -z "$haveit"; then
24563
ltrpathdirs="$ltrpathdirs $found_dir"
24565
if test "$acl_hardcode_direct" = yes; then
24566
LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
24568
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24569
LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
24571
for x in $rpathdirs; do
24572
if test "X$x" = "X$found_dir"; then
24577
if test -z "$haveit"; then
24578
rpathdirs="$rpathdirs $found_dir"
24582
for x in $LDFLAGS $LIBPQ; do
24584
acl_save_prefix="$prefix"
24585
prefix="$acl_final_prefix"
24586
acl_save_exec_prefix="$exec_prefix"
24587
exec_prefix="$acl_final_exec_prefix"
24589
exec_prefix="$acl_save_exec_prefix"
24590
prefix="$acl_save_prefix"
24592
if test "X$x" = "X-L$found_dir"; then
24597
if test -z "$haveit"; then
24598
LIBPQ="${LIBPQ}${LIBPQ:+ }-L$found_dir"
24600
if test "$acl_hardcode_minus_L" != no; then
24601
LIBPQ="${LIBPQ}${LIBPQ:+ }$found_so"
24603
LIBPQ="${LIBPQ}${LIBPQ:+ }-l$name"
24609
if test "X$found_a" != "X"; then
24610
LIBPQ="${LIBPQ}${LIBPQ:+ }$found_a"
24612
LIBPQ="${LIBPQ}${LIBPQ:+ }-L$found_dir -l$name"
24615
additional_includedir=
24616
case "$found_dir" in
24617
*/$acl_libdirstem | */$acl_libdirstem/)
24618
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24619
if test "$name" = 'pq'; then
24620
LIBPQ_PREFIX="$basedir"
24622
additional_includedir="$basedir/include"
24624
*/$acl_libdirstem2 | */$acl_libdirstem2/)
24625
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
24626
if test "$name" = 'pq'; then
24627
LIBPQ_PREFIX="$basedir"
24629
additional_includedir="$basedir/include"
24632
if test "X$additional_includedir" != "X"; then
24633
if test "X$additional_includedir" != "X/usr/include"; then
24635
if test "X$additional_includedir" = "X/usr/local/include"; then
24636
if test -n "$GCC"; then
24638
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24642
if test -z "$haveit"; then
24643
for x in $CPPFLAGS $INCPQ; do
24645
acl_save_prefix="$prefix"
24646
prefix="$acl_final_prefix"
24647
acl_save_exec_prefix="$exec_prefix"
24648
exec_prefix="$acl_final_exec_prefix"
24650
exec_prefix="$acl_save_exec_prefix"
24651
prefix="$acl_save_prefix"
24653
if test "X$x" = "X${i_system}$additional_includedir"; then
24658
if test -z "$haveit"; then
24659
if test -d "$additional_includedir"; then
24660
INCPQ="${INCPQ}${INCPQ:+ }${i_system}$additional_includedir"
24666
if test -n "$found_la"; then
24667
save_libdir="$libdir"
24668
case "$found_la" in
24669
*/* | *\\*) . "$found_la" ;;
24670
*) . "./$found_la" ;;
24672
libdir="$save_libdir"
24673
for dep in $dependency_libs; do
24676
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24677
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
24678
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
24680
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
24681
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
24682
if test -n "$GCC"; then
24684
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24688
if test -z "$haveit"; then
24690
for x in $LDFLAGS $LIBPQ; do
24692
acl_save_prefix="$prefix"
24693
prefix="$acl_final_prefix"
24694
acl_save_exec_prefix="$exec_prefix"
24695
exec_prefix="$acl_final_exec_prefix"
24697
exec_prefix="$acl_save_exec_prefix"
24698
prefix="$acl_save_prefix"
24700
if test "X$x" = "X-L$additional_libdir"; then
24705
if test -z "$haveit"; then
24706
if test -d "$additional_libdir"; then
24707
LIBPQ="${LIBPQ}${LIBPQ:+ }-L$additional_libdir"
24711
for x in $LDFLAGS $LTLIBPQ; do
24713
acl_save_prefix="$prefix"
24714
prefix="$acl_final_prefix"
24715
acl_save_exec_prefix="$exec_prefix"
24716
exec_prefix="$acl_final_exec_prefix"
24718
exec_prefix="$acl_save_exec_prefix"
24719
prefix="$acl_save_prefix"
24721
if test "X$x" = "X-L$additional_libdir"; then
24726
if test -z "$haveit"; then
24727
if test -d "$additional_libdir"; then
24728
LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-L$additional_libdir"
24735
dir=`echo "X$dep" | sed -e 's/^X-R//'`
24736
if test "$enable_rpath" != no; then
24738
for x in $rpathdirs; do
24739
if test "X$x" = "X$dir"; then
24744
if test -z "$haveit"; then
24745
rpathdirs="$rpathdirs $dir"
24748
for x in $ltrpathdirs; do
24749
if test "X$x" = "X$dir"; then
24754
if test -z "$haveit"; then
24755
ltrpathdirs="$ltrpathdirs $dir"
24760
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24763
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24766
LIBPQ="${LIBPQ}${LIBPQ:+ }$dep"
24767
LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }$dep"
24773
LIBPQ="${LIBPQ}${LIBPQ:+ }-l$name"
24774
LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-l$name"
24780
if test "X$rpathdirs" != "X"; then
24781
if test -n "$acl_hardcode_libdir_separator"; then
24783
for found_dir in $rpathdirs; do
24784
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24786
acl_save_libdir="$libdir"
24788
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24789
libdir="$acl_save_libdir"
24790
LIBPQ="${LIBPQ}${LIBPQ:+ }$flag"
24792
for found_dir in $rpathdirs; do
24793
acl_save_libdir="$libdir"
24794
libdir="$found_dir"
24795
eval flag=\"$acl_hardcode_libdir_flag_spec\"
24796
libdir="$acl_save_libdir"
24797
LIBPQ="${LIBPQ}${LIBPQ:+ }$flag"
24801
if test "X$ltrpathdirs" != "X"; then
24802
for found_dir in $ltrpathdirs; do
24803
LTLIBPQ="${LTLIBPQ}${LTLIBPQ:+ }-R$found_dir"
24813
ac_save_CPPFLAGS="$CPPFLAGS"
24815
for element in $INCPQ; do
24817
for x in $CPPFLAGS; do
24819
acl_save_prefix="$prefix"
24820
prefix="$acl_final_prefix"
24821
acl_save_exec_prefix="$exec_prefix"
24822
exec_prefix="$acl_final_exec_prefix"
24824
exec_prefix="$acl_save_exec_prefix"
24825
prefix="$acl_save_prefix"
24827
if test "X$x" = "X$element"; then
24832
if test -z "$haveit"; then
24833
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24838
{ echo "$as_me:$LINENO: checking for libpq" >&5
24839
echo $ECHO_N "checking for libpq... $ECHO_C" >&6; }
24840
if test "${ac_cv_libpq+set}" = set; then
24841
echo $ECHO_N "(cached) $ECHO_C" >&6
24844
ac_save_LIBS="$LIBS"
24845
LIBS="$LIBS $LIBPQ"
24846
cat >conftest.$ac_ext <<_ACEOF
24849
cat confdefs.h >>conftest.$ac_ext
24850
cat >>conftest.$ac_ext <<_ACEOF
24851
/* end confdefs.h. */
24853
#include <libpq-fe.h>
24860
conn = PQconnectdb(NULL);
24866
rm -f conftest.$ac_objext conftest$ac_exeext
24867
if { (ac_try="$ac_link"
24868
case "(($ac_try" in
24869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870
*) ac_try_echo=$ac_try;;
24872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873
(eval "$ac_link") 2>conftest.er1
24875
grep -v '^ *+' conftest.er1 >conftest.err
24877
cat conftest.err >&5
24878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879
(exit $ac_status); } && {
24880
test -z "$ac_c_werror_flag" ||
24881
test ! -s conftest.err
24882
} && test -s conftest$ac_exeext &&
24883
$as_test_x conftest$ac_exeext; then
24886
echo "$as_me: failed program was:" >&5
24887
sed 's/^/| /' conftest.$ac_ext >&5
24892
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24893
conftest$ac_exeext conftest.$ac_ext
24894
LIBS="$ac_save_LIBS"
24897
{ echo "$as_me:$LINENO: result: $ac_cv_libpq" >&5
24898
echo "${ECHO_T}$ac_cv_libpq" >&6; }
24899
if test "$ac_cv_libpq" = yes; then
24902
cat >>confdefs.h <<\_ACEOF
24903
#define HAVE_LIBPQ 1
24906
{ echo "$as_me:$LINENO: checking how to link with libpq" >&5
24907
echo $ECHO_N "checking how to link with libpq... $ECHO_C" >&6; }
24908
{ echo "$as_me:$LINENO: result: $LIBPQ" >&5
24909
echo "${ECHO_T}$LIBPQ" >&6; }
24912
CPPFLAGS="$ac_save_CPPFLAGS"
24925
if test "x${ac_cv_libpq}" = "xyes"; then
24927
HAVE_LIBPQ_FALSE='#'
24929
HAVE_LIBPQ_TRUE='#'
24945
for ac_header in errno.h fcntl.h getopt.h netinet/tcp.h pwd.h signal.h
24947
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24948
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24949
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24950
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24951
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24952
echo $ECHO_N "(cached) $ECHO_C" >&6
24954
ac_res=`eval echo '${'$as_ac_Header'}'`
24955
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24956
echo "${ECHO_T}$ac_res" >&6; }
24958
# Is the header compilable?
24959
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24960
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24961
cat >conftest.$ac_ext <<_ACEOF
24964
cat confdefs.h >>conftest.$ac_ext
24965
cat >>conftest.$ac_ext <<_ACEOF
24966
/* end confdefs.h. */
24967
$ac_includes_default
24968
#include <$ac_header>
24970
rm -f conftest.$ac_objext
24971
if { (ac_try="$ac_compile"
24972
case "(($ac_try" in
24973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974
*) ac_try_echo=$ac_try;;
24976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977
(eval "$ac_compile") 2>conftest.er1
24979
grep -v '^ *+' conftest.er1 >conftest.err
24981
cat conftest.err >&5
24982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983
(exit $ac_status); } && {
24984
test -z "$ac_c_werror_flag" ||
24985
test ! -s conftest.err
24986
} && test -s conftest.$ac_objext; then
24987
ac_header_compiler=yes
24989
echo "$as_me: failed program was:" >&5
24990
sed 's/^/| /' conftest.$ac_ext >&5
24992
ac_header_compiler=no
24995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24996
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24997
echo "${ECHO_T}$ac_header_compiler" >&6; }
24999
# Is the header present?
25000
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25001
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25002
cat >conftest.$ac_ext <<_ACEOF
25005
cat confdefs.h >>conftest.$ac_ext
25006
cat >>conftest.$ac_ext <<_ACEOF
25007
/* end confdefs.h. */
25008
#include <$ac_header>
25010
if { (ac_try="$ac_cpp conftest.$ac_ext"
25011
case "(($ac_try" in
25012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013
*) ac_try_echo=$ac_try;;
25015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25018
grep -v '^ *+' conftest.er1 >conftest.err
25020
cat conftest.err >&5
25021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022
(exit $ac_status); } >/dev/null && {
25023
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25024
test ! -s conftest.err
25026
ac_header_preproc=yes
25028
echo "$as_me: failed program was:" >&5
25029
sed 's/^/| /' conftest.$ac_ext >&5
25031
ac_header_preproc=no
25034
rm -f conftest.err conftest.$ac_ext
25035
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25036
echo "${ECHO_T}$ac_header_preproc" >&6; }
25038
# So? What about this header?
25039
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25041
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25042
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25043
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25044
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25045
ac_header_preproc=yes
25048
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25049
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25050
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25051
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25052
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25053
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25054
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25055
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25056
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25057
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25058
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25059
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25061
## --------------------------------------------- ##
25062
## Report this to https://launchpad.net/gearmand ##
25063
## --------------------------------------------- ##
25065
) | sed "s/^/$as_me: WARNING: /" >&2
25068
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25070
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25071
echo $ECHO_N "(cached) $ECHO_C" >&6
25073
eval "$as_ac_Header=\$ac_header_preproc"
25075
ac_res=`eval echo '${'$as_ac_Header'}'`
25076
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25077
echo "${ECHO_T}$ac_res" >&6; }
25080
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25081
cat >>confdefs.h <<_ACEOF
25082
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25094
for ac_header in stdarg.h stddef.h stdio.h stdlib.h string.h
25096
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25097
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25098
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25099
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25101
echo $ECHO_N "(cached) $ECHO_C" >&6
25103
ac_res=`eval echo '${'$as_ac_Header'}'`
25104
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25105
echo "${ECHO_T}$ac_res" >&6; }
25107
# Is the header compilable?
25108
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25109
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25110
cat >conftest.$ac_ext <<_ACEOF
25113
cat confdefs.h >>conftest.$ac_ext
25114
cat >>conftest.$ac_ext <<_ACEOF
25115
/* end confdefs.h. */
25116
$ac_includes_default
25117
#include <$ac_header>
25119
rm -f conftest.$ac_objext
25120
if { (ac_try="$ac_compile"
25121
case "(($ac_try" in
25122
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123
*) ac_try_echo=$ac_try;;
25125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126
(eval "$ac_compile") 2>conftest.er1
25128
grep -v '^ *+' conftest.er1 >conftest.err
25130
cat conftest.err >&5
25131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132
(exit $ac_status); } && {
25133
test -z "$ac_c_werror_flag" ||
25134
test ! -s conftest.err
25135
} && test -s conftest.$ac_objext; then
25136
ac_header_compiler=yes
25138
echo "$as_me: failed program was:" >&5
25139
sed 's/^/| /' conftest.$ac_ext >&5
25141
ac_header_compiler=no
25144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25146
echo "${ECHO_T}$ac_header_compiler" >&6; }
25148
# Is the header present?
25149
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25150
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25151
cat >conftest.$ac_ext <<_ACEOF
25154
cat confdefs.h >>conftest.$ac_ext
25155
cat >>conftest.$ac_ext <<_ACEOF
25156
/* end confdefs.h. */
25157
#include <$ac_header>
25159
if { (ac_try="$ac_cpp conftest.$ac_ext"
25160
case "(($ac_try" in
25161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162
*) ac_try_echo=$ac_try;;
25164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25167
grep -v '^ *+' conftest.er1 >conftest.err
25169
cat conftest.err >&5
25170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171
(exit $ac_status); } >/dev/null && {
25172
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25173
test ! -s conftest.err
25175
ac_header_preproc=yes
25177
echo "$as_me: failed program was:" >&5
25178
sed 's/^/| /' conftest.$ac_ext >&5
25180
ac_header_preproc=no
25183
rm -f conftest.err conftest.$ac_ext
25184
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25185
echo "${ECHO_T}$ac_header_preproc" >&6; }
25187
# So? What about this header?
25188
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25190
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25191
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25192
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25193
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25194
ac_header_preproc=yes
25197
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25198
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25199
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25200
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25201
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25202
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25203
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25204
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25205
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25206
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25207
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25208
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25210
## --------------------------------------------- ##
25211
## Report this to https://launchpad.net/gearmand ##
25212
## --------------------------------------------- ##
25214
) | sed "s/^/$as_me: WARNING: /" >&2
25217
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25218
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25219
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25220
echo $ECHO_N "(cached) $ECHO_C" >&6
25222
eval "$as_ac_Header=\$ac_header_preproc"
25224
ac_res=`eval echo '${'$as_ac_Header'}'`
25225
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25226
echo "${ECHO_T}$ac_res" >&6; }
25229
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25230
cat >>confdefs.h <<_ACEOF
25231
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25240
for ac_header in sys/resource.h sys/stat.h
25242
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25244
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25246
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25247
echo $ECHO_N "(cached) $ECHO_C" >&6
25249
ac_res=`eval echo '${'$as_ac_Header'}'`
25250
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25251
echo "${ECHO_T}$ac_res" >&6; }
25253
# Is the header compilable?
25254
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25255
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25256
cat >conftest.$ac_ext <<_ACEOF
25259
cat confdefs.h >>conftest.$ac_ext
25260
cat >>conftest.$ac_ext <<_ACEOF
25261
/* end confdefs.h. */
25262
$ac_includes_default
25263
#include <$ac_header>
25265
rm -f conftest.$ac_objext
25266
if { (ac_try="$ac_compile"
25267
case "(($ac_try" in
25268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25269
*) ac_try_echo=$ac_try;;
25271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25272
(eval "$ac_compile") 2>conftest.er1
25274
grep -v '^ *+' conftest.er1 >conftest.err
25276
cat conftest.err >&5
25277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278
(exit $ac_status); } && {
25279
test -z "$ac_c_werror_flag" ||
25280
test ! -s conftest.err
25281
} && test -s conftest.$ac_objext; then
25282
ac_header_compiler=yes
25284
echo "$as_me: failed program was:" >&5
25285
sed 's/^/| /' conftest.$ac_ext >&5
25287
ac_header_compiler=no
25290
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25291
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25292
echo "${ECHO_T}$ac_header_compiler" >&6; }
25294
# Is the header present?
25295
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25296
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25297
cat >conftest.$ac_ext <<_ACEOF
25300
cat confdefs.h >>conftest.$ac_ext
25301
cat >>conftest.$ac_ext <<_ACEOF
25302
/* end confdefs.h. */
25303
#include <$ac_header>
25305
if { (ac_try="$ac_cpp conftest.$ac_ext"
25306
case "(($ac_try" in
25307
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308
*) ac_try_echo=$ac_try;;
25310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25313
grep -v '^ *+' conftest.er1 >conftest.err
25315
cat conftest.err >&5
25316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317
(exit $ac_status); } >/dev/null && {
25318
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25319
test ! -s conftest.err
25321
ac_header_preproc=yes
25323
echo "$as_me: failed program was:" >&5
25324
sed 's/^/| /' conftest.$ac_ext >&5
25326
ac_header_preproc=no
25329
rm -f conftest.err conftest.$ac_ext
25330
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25331
echo "${ECHO_T}$ac_header_preproc" >&6; }
25333
# So? What about this header?
25334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25336
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25337
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25338
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25339
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25340
ac_header_preproc=yes
25343
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25344
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25345
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25346
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25347
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25348
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25349
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25350
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25351
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25352
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25353
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25354
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25356
## --------------------------------------------- ##
25357
## Report this to https://launchpad.net/gearmand ##
25358
## --------------------------------------------- ##
25360
) | sed "s/^/$as_me: WARNING: /" >&2
25363
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25364
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25365
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25366
echo $ECHO_N "(cached) $ECHO_C" >&6
25368
eval "$as_ac_Header=\$ac_header_preproc"
25370
ac_res=`eval echo '${'$as_ac_Header'}'`
25371
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25372
echo "${ECHO_T}$ac_res" >&6; }
25375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25376
cat >>confdefs.h <<_ACEOF
25377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25389
for ac_header in sys/socket.h sys/types.h sys/utsname.h unistd.h strings.h
25391
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25392
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25393
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25394
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25395
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25396
echo $ECHO_N "(cached) $ECHO_C" >&6
25398
ac_res=`eval echo '${'$as_ac_Header'}'`
25399
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25400
echo "${ECHO_T}$ac_res" >&6; }
25402
# Is the header compilable?
25403
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25404
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25405
cat >conftest.$ac_ext <<_ACEOF
25408
cat confdefs.h >>conftest.$ac_ext
25409
cat >>conftest.$ac_ext <<_ACEOF
25410
/* end confdefs.h. */
25411
$ac_includes_default
25412
#include <$ac_header>
25414
rm -f conftest.$ac_objext
25415
if { (ac_try="$ac_compile"
25416
case "(($ac_try" in
25417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418
*) ac_try_echo=$ac_try;;
25420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421
(eval "$ac_compile") 2>conftest.er1
25423
grep -v '^ *+' conftest.er1 >conftest.err
25425
cat conftest.err >&5
25426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427
(exit $ac_status); } && {
25428
test -z "$ac_c_werror_flag" ||
25429
test ! -s conftest.err
25430
} && test -s conftest.$ac_objext; then
25431
ac_header_compiler=yes
25433
echo "$as_me: failed program was:" >&5
25434
sed 's/^/| /' conftest.$ac_ext >&5
25436
ac_header_compiler=no
25439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25441
echo "${ECHO_T}$ac_header_compiler" >&6; }
25443
# Is the header present?
25444
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25445
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25446
cat >conftest.$ac_ext <<_ACEOF
25449
cat confdefs.h >>conftest.$ac_ext
25450
cat >>conftest.$ac_ext <<_ACEOF
25451
/* end confdefs.h. */
25452
#include <$ac_header>
25454
if { (ac_try="$ac_cpp conftest.$ac_ext"
25455
case "(($ac_try" in
25456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457
*) ac_try_echo=$ac_try;;
25459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25462
grep -v '^ *+' conftest.er1 >conftest.err
25464
cat conftest.err >&5
25465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466
(exit $ac_status); } >/dev/null && {
25467
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25468
test ! -s conftest.err
25470
ac_header_preproc=yes
25472
echo "$as_me: failed program was:" >&5
25473
sed 's/^/| /' conftest.$ac_ext >&5
25475
ac_header_preproc=no
25478
rm -f conftest.err conftest.$ac_ext
25479
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25480
echo "${ECHO_T}$ac_header_preproc" >&6; }
25482
# So? What about this header?
25483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25485
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25487
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25489
ac_header_preproc=yes
25492
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25494
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25495
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25496
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25498
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25499
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25500
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25502
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25505
## --------------------------------------------- ##
25506
## Report this to https://launchpad.net/gearmand ##
25507
## --------------------------------------------- ##
25509
) | sed "s/^/$as_me: WARNING: /" >&2
25512
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25513
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25514
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25515
echo $ECHO_N "(cached) $ECHO_C" >&6
25517
eval "$as_ac_Header=\$ac_header_preproc"
25519
ac_res=`eval echo '${'$as_ac_Header'}'`
25520
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25521
echo "${ECHO_T}$ac_res" >&6; }
25524
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25525
cat >>confdefs.h <<_ACEOF
25526
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1