2266
# Find a good install program. We prefer a C program (faster),
2267
# so one script is as good as another. But avoid the broken or
2268
# incompatible versions:
2269
# SysV /etc/install, /usr/sbin/install
2270
# SunOS /usr/etc/install
2271
# IRIX /sbin/install
2273
# AmigaOS /C/install, which installs bootblocks on floppy discs
2274
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277
# OS/2's system install, which has a completely different semantic
2278
# ./install, which can be erroneously created by make from ./install.sh.
2279
# Reject install programs that cannot install multiple files.
2280
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2281
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2282
if test -z "$INSTALL"; then
2283
if test "${ac_cv_path_install+set}" = set; then
2284
$as_echo_n "(cached) " >&6
2286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290
test -z "$as_dir" && as_dir=.
2291
# Account for people who put trailing slashes in PATH elements.
2293
./ | .// | /cC/* | \
2294
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2295
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2298
# OSF1 and SCO ODT 3.0 have their own names for install.
2299
# Don't use installbsd from OSF since it installs stuff as root
2301
for ac_prog in ginstall scoinst install; do
2302
for ac_exec_ext in '' $ac_executable_extensions; do
2303
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2304
if test $ac_prog = install &&
2305
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306
# AIX install. It has an incompatible calling convention.
2308
elif test $ac_prog = install &&
2309
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310
# program-specific install script used by HP pwplus--don't use.
2313
rm -rf conftest.one conftest.two conftest.dir
2314
echo one > conftest.one
2315
echo two > conftest.two
2317
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2318
test -s conftest.one && test -s conftest.two &&
2319
test -s conftest.dir/conftest.one &&
2320
test -s conftest.dir/conftest.two
2322
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2335
rm -rf conftest.one conftest.two conftest.dir
2338
if test "${ac_cv_path_install+set}" = set; then
2339
INSTALL=$ac_cv_path_install
2341
# As a last resort, use the slow shell script. Don't cache a
2342
# value for INSTALL within a source directory, because that will
2343
# break other packages using the cache if that directory is
2344
# removed, or if the value is a relative name.
2345
INSTALL=$ac_install_sh
2348
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2349
$as_echo "$INSTALL" >&6; }
2351
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2352
# It thinks the first close brace ends the variable substitution.
2353
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362
subdirs="$subdirs replace common server sss_client"
2365
# If the VERSION file has a second line, we'll append it
2366
# to the release tag when creating an RPM or SRPM
2367
# This is intended for build systems to create snapshot
2368
# RPMs. The format should be something like:
2369
# .20090915gitf1bcde7
2370
# and would result in an SRPM looking like:
2371
# sssd-0.5.0-0.20090915gitf1bcde7.fc11.src.rpm
2374
ac_config_files="$ac_config_files Makefile contrib/sssd.spec"
3296
DEPDIR="${am__leading_dot}deps"
3298
ac_config_commands="$ac_config_commands depfiles"
3301
am_make=${MAKE-make}
3302
cat > confinc << 'END'
3304
@echo this is the am__doit target
3307
# If we don't find an include directive, just comment out the code.
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3309
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3313
# First try GNU make style include.
3314
echo "include confinc" > confmf
3315
# Ignore all kinds of additional output from `make'.
3316
case `$am_make -s -f confmf 2> /dev/null` in #(
3317
*the\ am__doit\ target*)
3323
# Now try BSD make style include.
3324
if test "$am__include" = "#"; then
3325
echo '.include "confinc"' > confmf
3326
case `$am_make -s -f confmf 2> /dev/null` in #(
3327
*the\ am__doit\ target*)
3328
am__include=.include
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3337
$as_echo "$_am_result" >&6; }
3338
rm -f confinc confmf
3340
# Check whether --enable-dependency-tracking was given.
3341
if test "${enable_dependency_tracking+set}" = set; then :
3342
enableval=$enable_dependency_tracking;
3345
if test "x$enable_dependency_tracking" != xno; then
3346
am_depcomp="$ac_aux_dir/depcomp"
3349
if test "x$enable_dependency_tracking" != xno; then
3359
ac_cpp='$CPP $CPPFLAGS'
3360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363
if test -n "$ac_tool_prefix"; then
3364
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367
$as_echo_n "checking for $ac_word... " >&6; }
3368
if ${ac_cv_prog_CC+:} false; then :
3369
$as_echo_n "(cached) " >&6
3371
if test -n "$CC"; then
3372
ac_cv_prog_CC="$CC" # Let the user override the test.
3374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378
test -z "$as_dir" && as_dir=.
3379
for ac_exec_ext in '' $ac_executable_extensions; do
3380
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3382
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392
if test -n "$CC"; then
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394
$as_echo "$CC" >&6; }
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397
$as_echo "no" >&6; }
3402
if test -z "$ac_cv_prog_CC"; then
3404
# Extract the first word of "gcc", so it can be a program name with args.
3405
set dummy gcc; ac_word=$2
3406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407
$as_echo_n "checking for $ac_word... " >&6; }
3408
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3409
$as_echo_n "(cached) " >&6
3411
if test -n "$ac_ct_CC"; then
3412
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418
test -z "$as_dir" && as_dir=.
3419
for ac_exec_ext in '' $ac_executable_extensions; do
3420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421
ac_cv_prog_ac_ct_CC="gcc"
3422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432
if test -n "$ac_ct_CC"; then
3433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434
$as_echo "$ac_ct_CC" >&6; }
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437
$as_echo "no" >&6; }
3440
if test "x$ac_ct_CC" = x; then
3443
case $cross_compiling:$ac_tool_warned in
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447
ac_tool_warned=yes ;;
3455
if test -z "$CC"; then
3456
if test -n "$ac_tool_prefix"; then
3457
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3458
set dummy ${ac_tool_prefix}cc; ac_word=$2
3459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460
$as_echo_n "checking for $ac_word... " >&6; }
3461
if ${ac_cv_prog_CC+:} false; then :
3462
$as_echo_n "(cached) " >&6
3464
if test -n "$CC"; then
3465
ac_cv_prog_CC="$CC" # Let the user override the test.
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471
test -z "$as_dir" && as_dir=.
3472
for ac_exec_ext in '' $ac_executable_extensions; do
3473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474
ac_cv_prog_CC="${ac_tool_prefix}cc"
3475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485
if test -n "$CC"; then
3486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487
$as_echo "$CC" >&6; }
3489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490
$as_echo "no" >&6; }
3496
if test -z "$CC"; then
3497
# Extract the first word of "cc", so it can be a program name with args.
3498
set dummy cc; ac_word=$2
3499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500
$as_echo_n "checking for $ac_word... " >&6; }
3501
if ${ac_cv_prog_CC+:} false; then :
3502
$as_echo_n "(cached) " >&6
3504
if test -n "$CC"; then
3505
ac_cv_prog_CC="$CC" # Let the user override the test.
3508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512
test -z "$as_dir" && as_dir=.
3513
for ac_exec_ext in '' $ac_executable_extensions; do
3514
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3516
ac_prog_rejected=yes
3520
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527
if test $ac_prog_rejected = yes; then
3528
# We found a bogon in the path, so make sure we never use it.
3529
set dummy $ac_cv_prog_CC
3531
if test $# != 0; then
3532
# We chose a different compiler from the bogus one.
3533
# However, it has the same basename, so the bogon will be chosen
3534
# first if we set CC to just the basename; use the full file name.
3536
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3542
if test -n "$CC"; then
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544
$as_echo "$CC" >&6; }
3546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547
$as_echo "no" >&6; }
3552
if test -z "$CC"; then
3553
if test -n "$ac_tool_prefix"; then
3554
for ac_prog in cl.exe
3556
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3557
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559
$as_echo_n "checking for $ac_word... " >&6; }
3560
if ${ac_cv_prog_CC+:} false; then :
3561
$as_echo_n "(cached) " >&6
3563
if test -n "$CC"; then
3564
ac_cv_prog_CC="$CC" # Let the user override the test.
3566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570
test -z "$as_dir" && as_dir=.
3571
for ac_exec_ext in '' $ac_executable_extensions; do
3572
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3574
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584
if test -n "$CC"; then
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586
$as_echo "$CC" >&6; }
3588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589
$as_echo "no" >&6; }
3593
test -n "$CC" && break
3596
if test -z "$CC"; then
3598
for ac_prog in cl.exe
3600
# Extract the first word of "$ac_prog", so it can be a program name with args.
3601
set dummy $ac_prog; ac_word=$2
3602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603
$as_echo_n "checking for $ac_word... " >&6; }
3604
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3605
$as_echo_n "(cached) " >&6
3607
if test -n "$ac_ct_CC"; then
3608
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614
test -z "$as_dir" && as_dir=.
3615
for ac_exec_ext in '' $ac_executable_extensions; do
3616
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617
ac_cv_prog_ac_ct_CC="$ac_prog"
3618
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3628
if test -n "$ac_ct_CC"; then
3629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3630
$as_echo "$ac_ct_CC" >&6; }
3632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633
$as_echo "no" >&6; }
3637
test -n "$ac_ct_CC" && break
3640
if test "x$ac_ct_CC" = x; then
3643
case $cross_compiling:$ac_tool_warned in
3645
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647
ac_tool_warned=yes ;;
3656
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658
as_fn_error $? "no acceptable C compiler found in \$PATH
3659
See \`config.log' for more details" "$LINENO" 5; }
3661
# Provide some information about the compiler.
3662
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3665
for ac_option in --version -v -V -qversion; do
3666
{ { ac_try="$ac_compiler $ac_option >&5"
3668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669
*) ac_try_echo=$ac_try;;
3671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672
$as_echo "$ac_try_echo"; } >&5
3673
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3675
if test -s conftest.err; then
3677
... rest of stderr output deleted ...
3678
10q' conftest.err >conftest.er1
3679
cat conftest.er1 >&5
3681
rm -f conftest.er1 conftest.err
3682
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683
test $ac_status = 0; }
3686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687
/* end confdefs.h. */
3697
ac_clean_files_save=$ac_clean_files
3698
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3699
# Try to create an executable without -o first, disregard a.out.
3700
# It will help us diagnose broken compilers, and finding out an intuition
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3703
$as_echo_n "checking whether the C compiler works... " >&6; }
3704
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3706
# The possible output files:
3707
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3710
for ac_file in $ac_files
3713
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3714
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3719
if { { ac_try="$ac_link_default"
3721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
*) ac_try_echo=$ac_try;;
3724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725
$as_echo "$ac_try_echo"; } >&5
3726
(eval "$ac_link_default") 2>&5
3728
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729
test $ac_status = 0; }; then :
3730
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3731
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3732
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3733
# so that the user can short-circuit this test for compilers unknown to
3735
for ac_file in $ac_files ''
3737
test -f "$ac_file" || continue
3739
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3742
# We found the default executable, but exeext='' is most
3746
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3748
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3750
# We set ac_cv_exeext here because the later test for it is not
3751
# safe: cross compilers may not add the suffix if given an `-o'
3752
# argument, so we may need to know it at that point already.
3753
# Even if this section looks crufty: it has the advantage of
3760
test "$ac_cv_exeext" = no && ac_cv_exeext=
3765
if test -z "$ac_file"; then :
3766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767
$as_echo "no" >&6; }
3768
$as_echo "$as_me: failed program was:" >&5
3769
sed 's/^/| /' conftest.$ac_ext >&5
3771
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773
as_fn_error 77 "C compiler cannot create executables
3774
See \`config.log' for more details" "$LINENO" 5; }
3776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777
$as_echo "yes" >&6; }
3779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3780
$as_echo_n "checking for C compiler default output file name... " >&6; }
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3782
$as_echo "$ac_file" >&6; }
3783
ac_exeext=$ac_cv_exeext
3785
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3786
ac_clean_files=$ac_clean_files_save
3787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3788
$as_echo_n "checking for suffix of executables... " >&6; }
3789
if { { ac_try="$ac_link"
3791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792
*) ac_try_echo=$ac_try;;
3794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795
$as_echo "$ac_try_echo"; } >&5
3796
(eval "$ac_link") 2>&5
3798
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799
test $ac_status = 0; }; then :
3800
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3801
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3802
# work properly (i.e., refer to `conftest.exe'), while it won't with
3804
for ac_file in conftest.exe conftest conftest.*; do
3805
test -f "$ac_file" || continue
3807
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3817
See \`config.log' for more details" "$LINENO" 5; }
3819
rm -f conftest conftest$ac_cv_exeext
3820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3821
$as_echo "$ac_cv_exeext" >&6; }
3823
rm -f conftest.$ac_ext
3824
EXEEXT=$ac_cv_exeext
3826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827
/* end confdefs.h. */
3832
FILE *f = fopen ("conftest.out", "w");
3833
return ferror (f) || fclose (f) != 0;
3839
ac_clean_files="$ac_clean_files conftest.out"
3840
# Check that the compiler produces executables we can run. If not, either
3841
# the compiler is broken, or we cross compile.
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843
$as_echo_n "checking whether we are cross compiling... " >&6; }
3844
if test "$cross_compiling" != yes; then
3845
{ { ac_try="$ac_link"
3847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848
*) ac_try_echo=$ac_try;;
3850
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851
$as_echo "$ac_try_echo"; } >&5
3852
(eval "$ac_link") 2>&5
3854
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855
test $ac_status = 0; }
3856
if { ac_try='./conftest$ac_cv_exeext'
3857
{ { case "(($ac_try" in
3858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859
*) ac_try_echo=$ac_try;;
3861
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862
$as_echo "$ac_try_echo"; } >&5
3863
(eval "$ac_try") 2>&5
3865
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866
test $ac_status = 0; }; }; then
3869
if test "$cross_compiling" = maybe; then
3872
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874
as_fn_error $? "cannot run C compiled programs.
3875
If you meant to cross compile, use \`--host'.
3876
See \`config.log' for more details" "$LINENO" 5; }
3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3881
$as_echo "$cross_compiling" >&6; }
3883
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3884
ac_clean_files=$ac_clean_files_save
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3886
$as_echo_n "checking for suffix of object files... " >&6; }
3887
if ${ac_cv_objext+:} false; then :
3888
$as_echo_n "(cached) " >&6
3890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891
/* end confdefs.h. */
3901
rm -f conftest.o conftest.obj
3902
if { { ac_try="$ac_compile"
3904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905
*) ac_try_echo=$ac_try;;
3907
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908
$as_echo "$ac_try_echo"; } >&5
3909
(eval "$ac_compile") 2>&5
3911
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912
test $ac_status = 0; }; then :
3913
for ac_file in conftest.o conftest.obj conftest.*; do
3914
test -f "$ac_file" || continue;
3916
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3917
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3922
$as_echo "$as_me: failed program was:" >&5
3923
sed 's/^/| /' conftest.$ac_ext >&5
3925
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927
as_fn_error $? "cannot compute suffix of object files: cannot compile
3928
See \`config.log' for more details" "$LINENO" 5; }
3930
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3933
$as_echo "$ac_cv_objext" >&6; }
3934
OBJEXT=$ac_cv_objext
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3937
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3938
if ${ac_cv_c_compiler_gnu+:} false; then :
3939
$as_echo_n "(cached) " >&6
3941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942
/* end confdefs.h. */
3955
if ac_fn_c_try_compile "$LINENO"; then :
3960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3965
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3966
if test $ac_compiler_gnu = yes; then
3971
ac_test_CFLAGS=${CFLAGS+set}
3972
ac_save_CFLAGS=$CFLAGS
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3974
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3975
if ${ac_cv_prog_cc_g+:} false; then :
3976
$as_echo_n "(cached) " >&6
3978
ac_save_c_werror_flag=$ac_c_werror_flag
3979
ac_c_werror_flag=yes
3982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983
/* end confdefs.h. */
3993
if ac_fn_c_try_compile "$LINENO"; then :
3997
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998
/* end confdefs.h. */
4008
if ac_fn_c_try_compile "$LINENO"; then :
4011
ac_c_werror_flag=$ac_save_c_werror_flag
4013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014
/* end confdefs.h. */
4024
if ac_fn_c_try_compile "$LINENO"; then :
4027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032
ac_c_werror_flag=$ac_save_c_werror_flag
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4035
$as_echo "$ac_cv_prog_cc_g" >&6; }
4036
if test "$ac_test_CFLAGS" = set; then
4037
CFLAGS=$ac_save_CFLAGS
4038
elif test $ac_cv_prog_cc_g = yes; then
4039
if test "$GCC" = yes; then
4045
if test "$GCC" = yes; then
4051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4052
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4053
if ${ac_cv_prog_cc_c89+:} false; then :
4054
$as_echo_n "(cached) " >&6
4056
ac_cv_prog_cc_c89=no
4058
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059
/* end confdefs.h. */
4062
#include <sys/types.h>
4063
#include <sys/stat.h>
4064
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4065
struct buf { int x; };
4066
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4067
static char *e (p, i)
4073
static char *f (char * (*g) (char **, int), char **p, ...)
4078
s = g (p, va_arg (v,int));
4083
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4084
function prototypes and stuff, but not '\xHH' hex character constants.
4085
These don't provoke an error unfortunately, instead are silently treated
4086
as 'x'. The following induces an error, until -std is added to get
4087
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4088
array size at least. It's necessary to write '\x00'==0 to get something
4089
that's true only with -std. */
4090
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4093
inside strings and character constants. */
4095
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097
int test (int i, double x);
4098
struct s1 {int (*f) (int a);};
4099
struct s2 {int (*f) (double a);};
4100
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4111
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4112
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114
CC="$ac_save_CC $ac_arg"
4115
if ac_fn_c_try_compile "$LINENO"; then :
4116
ac_cv_prog_cc_c89=$ac_arg
4118
rm -f core conftest.err conftest.$ac_objext
4119
test "x$ac_cv_prog_cc_c89" != "xno" && break
4121
rm -f conftest.$ac_ext
4126
case "x$ac_cv_prog_cc_c89" in
4128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129
$as_echo "none needed" >&6; } ;;
4131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132
$as_echo "unsupported" >&6; } ;;
4134
CC="$CC $ac_cv_prog_cc_c89"
4135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4136
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4138
if test "x$ac_cv_prog_cc_c89" != xno; then :
4143
ac_cpp='$CPP $CPPFLAGS'
4144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
depcc="$CC" am_compiler_list=
4150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4151
$as_echo_n "checking dependency style of $depcc... " >&6; }
4152
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4153
$as_echo_n "(cached) " >&6
4155
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156
# We make a subdir and do the tests there. Otherwise we can end up
4157
# making bogus files that we don't know about and never remove. For
4158
# instance it was reported that on HP-UX the gcc test will end up
4159
# making a dummy file named `D' -- because `-MD' means `put the output
4162
# Copy depcomp to subdir because otherwise we won't find it if we're
4163
# using a relative directory.
4164
cp "$am_depcomp" conftest.dir
4166
# We will build objects and dependencies in a subdirectory because
4167
# it helps to detect inapplicable dependency modes. For instance
4168
# both Tru64's cc and ICC support -MD to output dependencies as a
4169
# side effect of compilation, but ICC will put the dependencies in
4170
# the current directory while Tru64 will put them in the object
4174
am_cv_CC_dependencies_compiler_type=none
4175
if test "$am_compiler_list" = ""; then
4176
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4179
case " $depcc " in #(
4180
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4183
for depmode in $am_compiler_list; do
4184
# Setup a source with many dependencies, because some compilers
4185
# like to wrap large dependency lists on column 80 (with \), and
4186
# we should not choose a depcomp mode which is confused by this.
4188
# We need to recreate these files for each test, as the compiler may
4189
# overwrite some of them when testing with obscure command lines.
4190
# This happens at least with the AIX C compiler.
4192
for i in 1 2 3 4 5 6; do
4193
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4195
# Solaris 8's {/usr,}/bin/sh.
4196
touch sub/conftst$i.h
4198
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4201
# mode. It turns out that the SunPro C++ compiler does not properly
4202
# handle `-M -o', and we need to detect this. Also, some Intel
4203
# versions had trouble with output in subdirs
4204
am__obj=sub/conftest.${OBJEXT-o}
4205
am__minus_obj="-o $am__obj"
4208
# This depmode causes a compiler race in universal mode.
4209
test "$am__universal" = false || continue
4212
# after this tag, mechanisms are not by side-effect, so they'll
4213
# only be used when explicitly requested
4214
if test "x$enable_dependency_tracking" = xyes; then
4220
msvisualcpp | msvcmsys)
4221
# This compiler won't grok `-c -o', but also, the minuso test has
4222
# not run yet. These depmodes are late enough in the game, and
4223
# so weak that their functioning should not be impacted.
4224
am__obj=conftest.${OBJEXT-o}
4229
if depmode=$depmode \
4230
source=sub/conftest.c object=$am__obj \
4231
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233
>/dev/null 2>conftest.err &&
4234
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238
# icc doesn't choke on unknown options, it will just issue warnings
4239
# or remarks (even with -Werror). So we grep stderr for any message
4240
# that says an option was ignored or not supported.
4241
# When given -MP, icc 7.0 and 7.1 complain thusly:
4242
# icc: Command line warning: ignoring option '-M'; no argument required
4243
# The diagnosis changed in icc 8.0:
4244
# icc: Command line remark: option '-MP' not supported
4245
if (grep 'ignoring option' conftest.err ||
4246
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247
am_cv_CC_dependencies_compiler_type=$depmode
4256
am_cv_CC_dependencies_compiler_type=none
4260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265
test "x$enable_dependency_tracking" != xno \
4266
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4268
am__fastdepCC_FALSE='#'
4270
am__fastdepCC_TRUE='#'
4271
am__fastdepCC_FALSE=
4275
if test "x$CC" != xcc; then
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4277
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4280
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4282
set dummy $CC; ac_cc=`$as_echo "$2" |
4283
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4284
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4285
$as_echo_n "(cached) " >&6
4287
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288
/* end confdefs.h. */
4298
# Make sure it works both with $CC and with simple cc.
4299
# We do the test twice because some compilers refuse to overwrite an
4300
# existing .o file with -o, though they will create one.
4301
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4303
if { { case "(($ac_try" in
4304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305
*) ac_try_echo=$ac_try;;
4307
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308
$as_echo "$ac_try_echo"; } >&5
4309
(eval "$ac_try") 2>&5
4311
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312
test $ac_status = 0; } &&
4313
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315
*) ac_try_echo=$ac_try;;
4317
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318
$as_echo "$ac_try_echo"; } >&5
4319
(eval "$ac_try") 2>&5
4321
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322
test $ac_status = 0; };
4324
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4325
if test "x$CC" != xcc; then
4326
# Test first that cc exists at all.
4327
if { ac_try='cc -c conftest.$ac_ext >&5'
4328
{ { case "(($ac_try" in
4329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330
*) ac_try_echo=$ac_try;;
4332
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333
$as_echo "$ac_try_echo"; } >&5
4334
(eval "$ac_try") 2>&5
4336
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337
test $ac_status = 0; }; }; then
4338
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4340
if { { case "(($ac_try" in
4341
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342
*) ac_try_echo=$ac_try;;
4344
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345
$as_echo "$ac_try_echo"; } >&5
4346
(eval "$ac_try") 2>&5
4348
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349
test $ac_status = 0; } &&
4350
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352
*) ac_try_echo=$ac_try;;
4354
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355
$as_echo "$ac_try_echo"; } >&5
4356
(eval "$ac_try") 2>&5
4358
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4359
test $ac_status = 0; };
4364
# cc exists but doesn't like -o.
4365
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4370
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4372
rm -f core conftest*
4375
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377
$as_echo "yes" >&6; }
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380
$as_echo "no" >&6; }
4382
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4386
# FIXME: we rely on the cache variable name because
4387
# there is no other way.
4389
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4390
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4391
if test "$am_t" != yes; then
4392
# Losing compiler, so override with the script.
4393
# FIXME: It is wrong to rewrite CC.
4394
# But if we don't then we get into trouble of one sort or another.
4395
# A longer-term fix would be to have automake use am__CC in this case,
4396
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4397
CC="$am_aux_dir/compile $CC"
4401
# Check whether --enable-static was given.
4402
if test "${enable_static+set}" = set; then :
4403
enableval=$enable_static; p=${PACKAGE-default}
4405
yes) enable_static=yes ;;
4406
no) enable_static=no ;;
4409
# Look at the argument we got. We use all the common list separators.
4410
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4411
for pkg in $enableval; do
4413
if test "X$pkg" = "X$p"; then
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4436
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4442
macro_revision='1.3293'
4456
ltmain="$ac_aux_dir/ltmain.sh"
4458
# Make sure we can run config.sub.
4459
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4460
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4463
$as_echo_n "checking build system type... " >&6; }
4464
if ${ac_cv_build+:} false; then :
4465
$as_echo_n "(cached) " >&6
4467
ac_build_alias=$build_alias
4468
test "x$ac_build_alias" = x &&
4469
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4470
test "x$ac_build_alias" = x &&
4471
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4472
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4473
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4477
$as_echo "$ac_cv_build" >&6; }
4478
case $ac_cv_build in
4480
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4483
ac_save_IFS=$IFS; IFS='-'
4489
# Remember, the first character of IFS is used to create $*,
4490
# except with old shells:
4493
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4497
$as_echo_n "checking host system type... " >&6; }
4498
if ${ac_cv_host+:} false; then :
4499
$as_echo_n "(cached) " >&6
4501
if test "x$host_alias" = x; then
4502
ac_cv_host=$ac_cv_build
4504
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4505
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4510
$as_echo "$ac_cv_host" >&6; }
4513
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4516
ac_save_IFS=$IFS; IFS='-'
4522
# Remember, the first character of IFS is used to create $*,
4523
# except with old shells:
4526
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4529
# Backslashify metacharacters that are still active within
4530
# double-quoted strings.
4531
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4533
# Same as above, but do not quote variable references.
4534
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4536
# Sed substitution to delay expansion of an escaped shell variable in a
4537
# double_quote_subst'ed string.
4538
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4540
# Sed substitution to delay expansion of an escaped single quote.
4541
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4543
# Sed substitution to avoid accidental globbing in evaled expressions
4544
no_glob_subst='s/\*/\\\*/g'
4546
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4547
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4548
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4551
$as_echo_n "checking how to print strings... " >&6; }
4552
# Test print first, because it will be a builtin if present.
4553
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4554
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4556
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4559
# Use this function as a fallback that always works.
4560
func_fallback_echo ()
4562
eval 'cat <<_LTECHO_EOF
4566
ECHO='func_fallback_echo'
4569
# func_echo_all arg...
4570
# Invoke $ECHO with all args, space-separated.
4577
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4578
$as_echo "printf" >&6; } ;;
4579
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4580
$as_echo "print -r" >&6; } ;;
4581
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4582
$as_echo "cat" >&6; } ;;
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4599
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4600
if ${ac_cv_path_SED+:} false; then :
4601
$as_echo_n "(cached) " >&6
4603
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4604
for ac_i in 1 2 3 4 5 6 7; do
4605
ac_script="$ac_script$as_nl$ac_script"
4607
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4608
{ ac_script=; unset ac_script;}
4609
if test -z "$SED"; then
4610
ac_path_SED_found=false
4611
# Loop through the user's path and test for each of PROGNAME-LIST
4612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616
test -z "$as_dir" && as_dir=.
4617
for ac_prog in sed gsed; do
4618
for ac_exec_ext in '' $ac_executable_extensions; do
4619
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4620
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4621
# Check for GNU ac_path_SED and select it if it is found.
4622
# Check for GNU $ac_path_SED
4623
case `"$ac_path_SED" --version 2>&1` in
4625
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4628
$as_echo_n 0123456789 >"conftest.in"
4631
cat "conftest.in" "conftest.in" >"conftest.tmp"
4632
mv "conftest.tmp" "conftest.in"
4633
cp "conftest.in" "conftest.nl"
4634
$as_echo '' >> "conftest.nl"
4635
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637
as_fn_arith $ac_count + 1 && ac_count=$as_val
4638
if test $ac_count -gt ${ac_path_SED_max-0}; then
4639
# Best one so far, save it but keep looking for a better one
4640
ac_cv_path_SED="$ac_path_SED"
4641
ac_path_SED_max=$ac_count
4643
# 10*(2^10) chars as input seems more than enough
4644
test $ac_count -gt 10 && break
4646
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649
$ac_path_SED_found && break 3
4654
if test -z "$ac_cv_path_SED"; then
4655
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4663
$as_echo "$ac_cv_path_SED" >&6; }
4664
SED="$ac_cv_path_SED"
4667
test -z "$SED" && SED=sed
4668
Xsed="$SED -e 1s/^X//"
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4681
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4682
if ${ac_cv_path_GREP+:} false; then :
4683
$as_echo_n "(cached) " >&6
4685
if test -z "$GREP"; then
4686
ac_path_GREP_found=false
4687
# Loop through the user's path and test for each of PROGNAME-LIST
4688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692
test -z "$as_dir" && as_dir=.
4693
for ac_prog in grep ggrep; do
4694
for ac_exec_ext in '' $ac_executable_extensions; do
4695
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4696
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4697
# Check for GNU ac_path_GREP and select it if it is found.
4698
# Check for GNU $ac_path_GREP
4699
case `"$ac_path_GREP" --version 2>&1` in
4701
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4704
$as_echo_n 0123456789 >"conftest.in"
4707
cat "conftest.in" "conftest.in" >"conftest.tmp"
4708
mv "conftest.tmp" "conftest.in"
4709
cp "conftest.in" "conftest.nl"
4710
$as_echo 'GREP' >> "conftest.nl"
4711
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713
as_fn_arith $ac_count + 1 && ac_count=$as_val
4714
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4715
# Best one so far, save it but keep looking for a better one
4716
ac_cv_path_GREP="$ac_path_GREP"
4717
ac_path_GREP_max=$ac_count
4719
# 10*(2^10) chars as input seems more than enough
4720
test $ac_count -gt 10 && break
4722
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725
$ac_path_GREP_found && break 3
4730
if test -z "$ac_cv_path_GREP"; then
4731
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734
ac_cv_path_GREP=$GREP
4738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4739
$as_echo "$ac_cv_path_GREP" >&6; }
4740
GREP="$ac_cv_path_GREP"
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4744
$as_echo_n "checking for egrep... " >&6; }
4745
if ${ac_cv_path_EGREP+:} false; then :
4746
$as_echo_n "(cached) " >&6
4748
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4749
then ac_cv_path_EGREP="$GREP -E"
4751
if test -z "$EGREP"; then
4752
ac_path_EGREP_found=false
4753
# Loop through the user's path and test for each of PROGNAME-LIST
4754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4758
test -z "$as_dir" && as_dir=.
4759
for ac_prog in egrep; do
4760
for ac_exec_ext in '' $ac_executable_extensions; do
4761
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4762
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4763
# Check for GNU ac_path_EGREP and select it if it is found.
4764
# Check for GNU $ac_path_EGREP
4765
case `"$ac_path_EGREP" --version 2>&1` in
4767
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4770
$as_echo_n 0123456789 >"conftest.in"
4773
cat "conftest.in" "conftest.in" >"conftest.tmp"
4774
mv "conftest.tmp" "conftest.in"
4775
cp "conftest.in" "conftest.nl"
4776
$as_echo 'EGREP' >> "conftest.nl"
4777
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779
as_fn_arith $ac_count + 1 && ac_count=$as_val
4780
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4781
# Best one so far, save it but keep looking for a better one
4782
ac_cv_path_EGREP="$ac_path_EGREP"
4783
ac_path_EGREP_max=$ac_count
4785
# 10*(2^10) chars as input seems more than enough
4786
test $ac_count -gt 10 && break
4788
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791
$ac_path_EGREP_found && break 3
4796
if test -z "$ac_cv_path_EGREP"; then
4797
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4800
ac_cv_path_EGREP=$EGREP
4805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4806
$as_echo "$ac_cv_path_EGREP" >&6; }
4807
EGREP="$ac_cv_path_EGREP"
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4811
$as_echo_n "checking for fgrep... " >&6; }
4812
if ${ac_cv_path_FGREP+:} false; then :
4813
$as_echo_n "(cached) " >&6
4815
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4816
then ac_cv_path_FGREP="$GREP -F"
4818
if test -z "$FGREP"; then
4819
ac_path_FGREP_found=false
4820
# Loop through the user's path and test for each of PROGNAME-LIST
4821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825
test -z "$as_dir" && as_dir=.
4826
for ac_prog in fgrep; do
4827
for ac_exec_ext in '' $ac_executable_extensions; do
4828
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4829
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4830
# Check for GNU ac_path_FGREP and select it if it is found.
4831
# Check for GNU $ac_path_FGREP
4832
case `"$ac_path_FGREP" --version 2>&1` in
4834
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4837
$as_echo_n 0123456789 >"conftest.in"
4840
cat "conftest.in" "conftest.in" >"conftest.tmp"
4841
mv "conftest.tmp" "conftest.in"
4842
cp "conftest.in" "conftest.nl"
4843
$as_echo 'FGREP' >> "conftest.nl"
4844
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846
as_fn_arith $ac_count + 1 && ac_count=$as_val
4847
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4848
# Best one so far, save it but keep looking for a better one
4849
ac_cv_path_FGREP="$ac_path_FGREP"
4850
ac_path_FGREP_max=$ac_count
4852
# 10*(2^10) chars as input seems more than enough
4853
test $ac_count -gt 10 && break
4855
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858
$ac_path_FGREP_found && break 3
4863
if test -z "$ac_cv_path_FGREP"; then
4864
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867
ac_cv_path_FGREP=$FGREP
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4873
$as_echo "$ac_cv_path_FGREP" >&6; }
4874
FGREP="$ac_cv_path_FGREP"
4877
test -z "$GREP" && GREP=grep
4897
# Check whether --with-gnu-ld was given.
4898
if test "${with_gnu_ld+set}" = set; then :
4899
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4905
if test "$GCC" = yes; then
4906
# Check if gcc -print-prog-name=ld gives a path.
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4908
$as_echo_n "checking for ld used by $CC... " >&6; }
4911
# gcc leaves a trailing carriage return which upsets mingw
4912
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4914
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917
# Accept absolute paths.
4919
re_direlt='/[^/][^/]*/\.\./'
4920
# Canonicalize the pathname of ld
4921
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4925
test -z "$LD" && LD="$ac_prog"
4928
# If it fails, then pretend we aren't using GCC.
4932
# If it is relative, then search for the first ld in PATH.
4936
elif test "$with_gnu_ld" = yes; then
4937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4938
$as_echo_n "checking for GNU ld... " >&6; }
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4941
$as_echo_n "checking for non-GNU ld... " >&6; }
4943
if ${lt_cv_path_LD+:} false; then :
4944
$as_echo_n "(cached) " >&6
4946
if test -z "$LD"; then
4947
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948
for ac_dir in $PATH; do
4950
test -z "$ac_dir" && ac_dir=.
4951
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952
lt_cv_path_LD="$ac_dir/$ac_prog"
4953
# Check to see if the program is GNU ld. I'd rather use --version,
4954
# but apparently some variants of GNU ld only accept -v.
4955
# Break only if it was the GNU/non-GNU ld that we prefer.
4956
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957
*GNU* | *'with BFD'*)
4958
test "$with_gnu_ld" != no && break
4961
test "$with_gnu_ld" != yes && break
4968
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973
if test -n "$LD"; then
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4975
$as_echo "$LD" >&6; }
4977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978
$as_echo "no" >&6; }
4980
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4982
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4983
if ${lt_cv_prog_gnu_ld+:} false; then :
4984
$as_echo_n "(cached) " >&6
4986
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4987
case `$LD -v 2>&1 </dev/null` in
4988
*GNU* | *'with BFD'*)
4989
lt_cv_prog_gnu_ld=yes
4992
lt_cv_prog_gnu_ld=no
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4997
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4998
with_gnu_ld=$lt_cv_prog_gnu_ld
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5009
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5010
if ${lt_cv_path_NM+:} false; then :
5011
$as_echo_n "(cached) " >&6
5013
if test -n "$NM"; then
5014
# Let the user override the test.
5017
lt_nm_to_check="${ac_tool_prefix}nm"
5018
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5019
lt_nm_to_check="$lt_nm_to_check nm"
5021
for lt_tmp_nm in $lt_nm_to_check; do
5022
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5025
test -z "$ac_dir" && ac_dir=.
5026
tmp_nm="$ac_dir/$lt_tmp_nm"
5027
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5028
# Check to see if the nm accepts a BSD-compat flag.
5029
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5030
# nm: unknown option "B" ignored
5031
# Tru64's nm complains that /dev/null is an invalid object file
5032
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5033
*/dev/null* | *'Invalid file or object type'*)
5034
lt_cv_path_NM="$tmp_nm -B"
5038
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5040
lt_cv_path_NM="$tmp_nm -p"
5044
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5045
continue # so that we can try to find one that supports BSD flags
5054
: ${lt_cv_path_NM=no}
5057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5058
$as_echo "$lt_cv_path_NM" >&6; }
5059
if test "$lt_cv_path_NM" != "no"; then
5062
# Didn't find any BSD compatible name lister, look for dumpbin.
5063
if test -n "$DUMPBIN"; then :
5064
# Let the user override the test.
5066
if test -n "$ac_tool_prefix"; then
5067
for ac_prog in dumpbin "link -dump"
5069
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5070
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072
$as_echo_n "checking for $ac_word... " >&6; }
5073
if ${ac_cv_prog_DUMPBIN+:} false; then :
5074
$as_echo_n "(cached) " >&6
5076
if test -n "$DUMPBIN"; then
5077
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083
test -z "$as_dir" && as_dir=.
5084
for ac_exec_ext in '' $ac_executable_extensions; do
5085
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5087
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096
DUMPBIN=$ac_cv_prog_DUMPBIN
5097
if test -n "$DUMPBIN"; then
5098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5099
$as_echo "$DUMPBIN" >&6; }
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102
$as_echo "no" >&6; }
5106
test -n "$DUMPBIN" && break
5109
if test -z "$DUMPBIN"; then
5110
ac_ct_DUMPBIN=$DUMPBIN
5111
for ac_prog in dumpbin "link -dump"
5113
# Extract the first word of "$ac_prog", so it can be a program name with args.
5114
set dummy $ac_prog; ac_word=$2
5115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116
$as_echo_n "checking for $ac_word... " >&6; }
5117
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5118
$as_echo_n "(cached) " >&6
5120
if test -n "$ac_ct_DUMPBIN"; then
5121
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127
test -z "$as_dir" && as_dir=.
5128
for ac_exec_ext in '' $ac_executable_extensions; do
5129
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5131
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5141
if test -n "$ac_ct_DUMPBIN"; then
5142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5143
$as_echo "$ac_ct_DUMPBIN" >&6; }
5145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146
$as_echo "no" >&6; }
5150
test -n "$ac_ct_DUMPBIN" && break
5153
if test "x$ac_ct_DUMPBIN" = x; then
5156
case $cross_compiling:$ac_tool_warned in
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160
ac_tool_warned=yes ;;
5162
DUMPBIN=$ac_ct_DUMPBIN
5166
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5168
DUMPBIN="$DUMPBIN -symbols"
5176
if test "$DUMPBIN" != ":"; then
5180
test -z "$NM" && NM=nm
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5188
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5189
if ${lt_cv_nm_interface+:} false; then :
5190
$as_echo_n "(cached) " >&6
5192
lt_cv_nm_interface="BSD nm"
5193
echo "int some_variable = 0;" > conftest.$ac_ext
5194
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5195
(eval "$ac_compile" 2>conftest.err)
5196
cat conftest.err >&5
5197
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5198
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5199
cat conftest.err >&5
5200
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5201
cat conftest.out >&5
5202
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5203
lt_cv_nm_interface="MS dumpbin"
5207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5208
$as_echo "$lt_cv_nm_interface" >&6; }
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5211
$as_echo_n "checking whether ln -s works... " >&6; }
5213
if test "$LN_S" = "ln -s"; then
5214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215
$as_echo "yes" >&6; }
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5218
$as_echo "no, using $LN_S" >&6; }
5221
# find the maximum length of command line arguments
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5223
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5224
if ${lt_cv_sys_max_cmd_len+:} false; then :
5225
$as_echo_n "(cached) " >&6
5232
# On DJGPP, this test can blow up pretty badly due to problems in libc
5233
# (any single argument exceeding 2000 bytes causes a buffer overrun
5234
# during glob expansion). Even if it were fixed, the result of this
5235
# check would be larger than it should be.
5236
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5240
# Under GNU Hurd, this test is not required because there is
5241
# no limit to the length of command line arguments.
5242
# Libtool will interpret -1 as no limit whatsoever
5243
lt_cv_sys_max_cmd_len=-1;
5246
cygwin* | mingw* | cegcc*)
5247
# On Win9x/ME, this test blows up -- it succeeds, but takes
5248
# about 5 minutes as the teststring grows exponentially.
5249
# Worse, since 9x/ME are not pre-emptively multitasking,
5250
# you end up with a "frozen" computer, even though with patience
5251
# the test eventually succeeds (with a max line length of 256k).
5252
# Instead, let's just punt: use the minimum linelength reported by
5253
# all of the supported platforms: 8192 (on NT/2K/XP).
5254
lt_cv_sys_max_cmd_len=8192;
5258
# On MiNT this can take a long time and run out of memory.
5259
lt_cv_sys_max_cmd_len=8192;
5263
# On AmigaOS with pdksh, this test takes hours, literally.
5264
# So we just punt and use a minimum line length of 8192.
5265
lt_cv_sys_max_cmd_len=8192;
5268
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5269
# This has been around since 386BSD, at least. Likely further.
5270
if test -x /sbin/sysctl; then
5271
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5272
elif test -x /usr/sbin/sysctl; then
5273
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5275
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5277
# And add a safety zone
5278
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5283
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5284
lt_cv_sys_max_cmd_len=196608
5288
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5289
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5290
# nice to cause kernel panics so lets avoid the loop below.
5291
# First set a reasonable default.
5292
lt_cv_sys_max_cmd_len=16384
5294
if test -x /sbin/sysconfig; then
5295
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5296
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5301
lt_cv_sys_max_cmd_len=102400
5303
sysv5* | sco5v6* | sysv4.2uw2*)
5304
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5305
if test -n "$kargmax"; then
5306
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5308
lt_cv_sys_max_cmd_len=32768
5312
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5313
if test -n "$lt_cv_sys_max_cmd_len"; then
5314
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5317
# Make teststring a little bigger before we do anything with it.
5318
# a 1K string should be a reasonable start.
5319
for i in 1 2 3 4 5 6 7 8 ; do
5320
teststring=$teststring$teststring
5322
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5323
# If test is not a shell built-in, we'll probably end up computing a
5324
# maximum length that is only half of the actual maximum length, but
5326
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5327
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5328
test $i != 17 # 1/2 MB should be enough
5331
teststring=$teststring$teststring
5333
# Only check the string length outside the loop.
5334
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5336
# Add a significant safety factor because C++ compilers can tack on
5337
# massive amounts of additional arguments before passing them to the
5338
# linker. It appears as though 1/2 is a usable value.
5339
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5346
if test -n $lt_cv_sys_max_cmd_len ; then
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5348
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5351
$as_echo "none" >&6; }
5353
max_cmd_len=$lt_cv_sys_max_cmd_len
5364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5365
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5366
# Try some XSI features
5369
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5371
&& eval 'test $(( 1 + 1 )) -eq 2 \
5372
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5375
$as_echo "$xsi_shell" >&6; }
5378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5379
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5381
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5383
&& lt_shell_append=yes
5384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5385
$as_echo "$lt_shell_append" >&6; }
5388
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5398
# test EBCDIC or ASCII
5399
case `echo X|tr X '\101'` in
5400
A) # ASCII based system
5401
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5402
lt_SP2NL='tr \040 \012'
5403
lt_NL2SP='tr \015\012 \040\040'
5405
*) # EBCDIC based system
5406
lt_SP2NL='tr \100 \n'
5407
lt_NL2SP='tr \r\n \100\100'
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5420
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5421
if ${lt_cv_to_host_file_cmd+:} false; then :
5422
$as_echo_n "(cached) " >&6
5427
*-*-mingw* ) # actually msys
5428
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5431
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5433
* ) # otherwise, assume *nix
5434
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5440
*-*-mingw* ) # actually msys
5441
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5444
lt_cv_to_host_file_cmd=func_convert_file_noop
5446
* ) # otherwise, assume *nix
5447
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5451
* ) # unhandled hosts (and "normal" native builds)
5452
lt_cv_to_host_file_cmd=func_convert_file_noop
5458
to_host_file_cmd=$lt_cv_to_host_file_cmd
5459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5460
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5467
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5468
if ${lt_cv_to_tool_file_cmd+:} false; then :
5469
$as_echo_n "(cached) " >&6
5471
#assume ordinary cross tools, or native build.
5472
lt_cv_to_tool_file_cmd=func_convert_file_noop
5476
*-*-mingw* ) # actually msys
5477
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5485
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5487
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5494
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5495
if ${lt_cv_ld_reload_flag+:} false; then :
5496
$as_echo_n "(cached) " >&6
5498
lt_cv_ld_reload_flag='-r'
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5501
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5502
reload_flag=$lt_cv_ld_reload_flag
5503
case $reload_flag in
5505
*) reload_flag=" $reload_flag" ;;
5507
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5509
cygwin* | mingw* | pw32* | cegcc*)
5510
if test "$GCC" != yes; then
5515
if test "$GCC" = yes; then
5516
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5518
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5531
if test -n "$ac_tool_prefix"; then
5532
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5533
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535
$as_echo_n "checking for $ac_word... " >&6; }
5536
if ${ac_cv_prog_OBJDUMP+:} false; then :
5537
$as_echo_n "(cached) " >&6
5539
if test -n "$OBJDUMP"; then
5540
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546
test -z "$as_dir" && as_dir=.
5547
for ac_exec_ext in '' $ac_executable_extensions; do
5548
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5550
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559
OBJDUMP=$ac_cv_prog_OBJDUMP
5560
if test -n "$OBJDUMP"; then
5561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5562
$as_echo "$OBJDUMP" >&6; }
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565
$as_echo "no" >&6; }
5570
if test -z "$ac_cv_prog_OBJDUMP"; then
5571
ac_ct_OBJDUMP=$OBJDUMP
5572
# Extract the first word of "objdump", so it can be a program name with args.
5573
set dummy objdump; ac_word=$2
5574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575
$as_echo_n "checking for $ac_word... " >&6; }
5576
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5577
$as_echo_n "(cached) " >&6
5579
if test -n "$ac_ct_OBJDUMP"; then
5580
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586
test -z "$as_dir" && as_dir=.
5587
for ac_exec_ext in '' $ac_executable_extensions; do
5588
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5590
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5600
if test -n "$ac_ct_OBJDUMP"; then
5601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5602
$as_echo "$ac_ct_OBJDUMP" >&6; }
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605
$as_echo "no" >&6; }
5608
if test "x$ac_ct_OBJDUMP" = x; then
5611
case $cross_compiling:$ac_tool_warned in
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615
ac_tool_warned=yes ;;
5617
OBJDUMP=$ac_ct_OBJDUMP
5620
OBJDUMP="$ac_cv_prog_OBJDUMP"
5623
test -z "$OBJDUMP" && OBJDUMP=objdump
5633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5634
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5635
if ${lt_cv_deplibs_check_method+:} false; then :
5636
$as_echo_n "(cached) " >&6
5638
lt_cv_file_magic_cmd='$MAGIC_CMD'
5639
lt_cv_file_magic_test_file=
5640
lt_cv_deplibs_check_method='unknown'
5641
# Need to set the preceding variable on all platforms that support
5642
# interlibrary dependencies.
5643
# 'none' -- dependencies not supported.
5644
# `unknown' -- same as none, but documents that we really don't know.
5645
# 'pass_all' -- all dependencies passed with no checks.
5646
# 'test_compile' -- check by making test program.
5647
# 'file_magic [[regex]]' -- check by looking for files in library path
5648
# which responds to the $file_magic_cmd with a given extended regex.
5649
# If you have `file' or equivalent on your system and you're not sure
5650
# whether `pass_all' will *always* work, you probably want this one.
5654
lt_cv_deplibs_check_method=pass_all
5658
lt_cv_deplibs_check_method=pass_all
5662
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5663
lt_cv_file_magic_cmd='/usr/bin/file -L'
5664
lt_cv_file_magic_test_file=/shlib/libc.so
5668
# func_win32_libid is a shell function defined in ltmain.sh
5669
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670
lt_cv_file_magic_cmd='func_win32_libid'
5674
# Base MSYS/MinGW do not provide the 'file' command needed by
5675
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5676
# unless we find 'file', for example because we are cross-compiling.
5677
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5678
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5679
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5680
lt_cv_file_magic_cmd='func_win32_libid'
5682
# Keep this pattern in sync with the one in func_win32_libid.
5683
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5684
lt_cv_file_magic_cmd='$OBJDUMP -f'
5689
# use the weaker test based on 'objdump'. See mingw*.
5690
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5691
lt_cv_file_magic_cmd='$OBJDUMP -f'
5694
darwin* | rhapsody*)
5695
lt_cv_deplibs_check_method=pass_all
5698
freebsd* | dragonfly*)
5699
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5702
# Not sure whether the presence of OpenBSD here was a mistake.
5703
# Let's accept both of them until this is cleared up.
5704
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5705
lt_cv_file_magic_cmd=/usr/bin/file
5706
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5710
lt_cv_deplibs_check_method=pass_all
5715
lt_cv_deplibs_check_method=pass_all
5719
lt_cv_deplibs_check_method=pass_all
5722
hpux10.20* | hpux11*)
5723
lt_cv_file_magic_cmd=/usr/bin/file
5726
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5727
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5730
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5731
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5734
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5735
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5741
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5742
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5745
irix5* | irix6* | nonstopux*)
5747
*-32|*"-32 ") libmagic=32-bit;;
5748
*-n32|*"-n32 ") libmagic=N32;;
5749
*-64|*"-64 ") libmagic=64-bit;;
5750
*) libmagic=never-match;;
5752
lt_cv_deplibs_check_method=pass_all
5755
# This must be Linux ELF.
5756
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5757
lt_cv_deplibs_check_method=pass_all
5761
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5762
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5764
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5769
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5770
lt_cv_file_magic_cmd=/usr/bin/file
5771
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5775
lt_cv_deplibs_check_method=pass_all
5779
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5780
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5782
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5786
osf3* | osf4* | osf5*)
5787
lt_cv_deplibs_check_method=pass_all
5791
lt_cv_deplibs_check_method=pass_all
5795
lt_cv_deplibs_check_method=pass_all
5798
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5799
lt_cv_deplibs_check_method=pass_all
5803
case $host_vendor in
5805
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5806
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5809
lt_cv_deplibs_check_method=pass_all
5812
lt_cv_file_magic_cmd='/bin/file'
5813
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5816
lt_cv_file_magic_cmd='/bin/file'
5817
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5818
lt_cv_file_magic_test_file=/lib/libc.so
5821
lt_cv_deplibs_check_method=pass_all
5824
lt_cv_deplibs_check_method=pass_all
5830
lt_cv_deplibs_check_method=pass_all
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5836
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5840
if test "$build" = "$host"; then
5843
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5846
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5852
file_magic_cmd=$lt_cv_file_magic_cmd
5853
deplibs_check_method=$lt_cv_deplibs_check_method
5854
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5877
if test -n "$ac_tool_prefix"; then
5878
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5879
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881
$as_echo_n "checking for $ac_word... " >&6; }
5882
if ${ac_cv_prog_DLLTOOL+:} false; then :
5883
$as_echo_n "(cached) " >&6
5885
if test -n "$DLLTOOL"; then
5886
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892
test -z "$as_dir" && as_dir=.
5893
for ac_exec_ext in '' $ac_executable_extensions; do
5894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5896
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905
DLLTOOL=$ac_cv_prog_DLLTOOL
5906
if test -n "$DLLTOOL"; then
5907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5908
$as_echo "$DLLTOOL" >&6; }
5910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911
$as_echo "no" >&6; }
5916
if test -z "$ac_cv_prog_DLLTOOL"; then
5917
ac_ct_DLLTOOL=$DLLTOOL
5918
# Extract the first word of "dlltool", so it can be a program name with args.
5919
set dummy dlltool; ac_word=$2
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921
$as_echo_n "checking for $ac_word... " >&6; }
5922
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5923
$as_echo_n "(cached) " >&6
5925
if test -n "$ac_ct_DLLTOOL"; then
5926
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
test -z "$as_dir" && as_dir=.
5933
for ac_exec_ext in '' $ac_executable_extensions; do
5934
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5936
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5946
if test -n "$ac_ct_DLLTOOL"; then
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5948
$as_echo "$ac_ct_DLLTOOL" >&6; }
5950
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951
$as_echo "no" >&6; }
5954
if test "x$ac_ct_DLLTOOL" = x; then
5957
case $cross_compiling:$ac_tool_warned in
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961
ac_tool_warned=yes ;;
5963
DLLTOOL=$ac_ct_DLLTOOL
5966
DLLTOOL="$ac_cv_prog_DLLTOOL"
5969
test -z "$DLLTOOL" && DLLTOOL=dlltool
5980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5981
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5982
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5983
$as_echo_n "(cached) " >&6
5985
lt_cv_sharedlib_from_linklib_cmd='unknown'
5988
cygwin* | mingw* | pw32* | cegcc*)
5989
# two different shell functions defined in ltmain.sh
5990
# decide which to use based on capabilities of $DLLTOOL
5991
case `$DLLTOOL --help 2>&1` in
5992
*--identify-strict*)
5993
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5996
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6001
# fallback: assume linklib IS sharedlib
6002
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6008
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6009
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6010
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6019
if test -n "$ac_tool_prefix"; then
6022
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6023
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025
$as_echo_n "checking for $ac_word... " >&6; }
6026
if ${ac_cv_prog_AR+:} false; then :
6027
$as_echo_n "(cached) " >&6
6029
if test -n "$AR"; then
6030
ac_cv_prog_AR="$AR" # Let the user override the test.
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036
test -z "$as_dir" && as_dir=.
6037
for ac_exec_ext in '' $ac_executable_extensions; do
6038
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6040
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050
if test -n "$AR"; then
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6052
$as_echo "$AR" >&6; }
6054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055
$as_echo "no" >&6; }
6059
test -n "$AR" && break
6062
if test -z "$AR"; then
6066
# Extract the first word of "$ac_prog", so it can be a program name with args.
6067
set dummy $ac_prog; ac_word=$2
6068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069
$as_echo_n "checking for $ac_word... " >&6; }
6070
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6071
$as_echo_n "(cached) " >&6
6073
if test -n "$ac_ct_AR"; then
6074
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080
test -z "$as_dir" && as_dir=.
6081
for ac_exec_ext in '' $ac_executable_extensions; do
6082
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6083
ac_cv_prog_ac_ct_AR="$ac_prog"
6084
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6094
if test -n "$ac_ct_AR"; then
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6096
$as_echo "$ac_ct_AR" >&6; }
6098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099
$as_echo "no" >&6; }
6103
test -n "$ac_ct_AR" && break
6106
if test "x$ac_ct_AR" = x; then
6109
case $cross_compiling:$ac_tool_warned in
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113
ac_tool_warned=yes ;;
6132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6133
$as_echo_n "checking for archiver @FILE support... " >&6; }
6134
if ${lt_cv_ar_at_file+:} false; then :
6135
$as_echo_n "(cached) " >&6
6138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139
/* end confdefs.h. */
6149
if ac_fn_c_try_compile "$LINENO"; then :
6150
echo conftest.$ac_objext > conftest.lst
6151
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6152
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6153
(eval $lt_ar_try) 2>&5
6155
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156
test $ac_status = 0; }
6157
if test "$ac_status" -eq 0; then
6158
# Ensure the archiver fails upon bogus file names.
6159
rm -f conftest.$ac_objext libconftest.a
6160
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6161
(eval $lt_ar_try) 2>&5
6163
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164
test $ac_status = 0; }
6165
if test "$ac_status" -ne 0; then
6169
rm -f conftest.* libconftest.a
6172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6176
$as_echo "$lt_cv_ar_at_file" >&6; }
6178
if test "x$lt_cv_ar_at_file" = xno; then
6181
archiver_list_spec=$lt_cv_ar_at_file
6190
if test -n "$ac_tool_prefix"; then
6191
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6192
set dummy ${ac_tool_prefix}strip; ac_word=$2
6193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194
$as_echo_n "checking for $ac_word... " >&6; }
6195
if ${ac_cv_prog_STRIP+:} false; then :
6196
$as_echo_n "(cached) " >&6
6198
if test -n "$STRIP"; then
6199
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205
test -z "$as_dir" && as_dir=.
6206
for ac_exec_ext in '' $ac_executable_extensions; do
6207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6209
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218
STRIP=$ac_cv_prog_STRIP
6219
if test -n "$STRIP"; then
6220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6221
$as_echo "$STRIP" >&6; }
6223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224
$as_echo "no" >&6; }
6229
if test -z "$ac_cv_prog_STRIP"; then
6231
# Extract the first word of "strip", so it can be a program name with args.
6232
set dummy strip; ac_word=$2
6233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234
$as_echo_n "checking for $ac_word... " >&6; }
6235
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6236
$as_echo_n "(cached) " >&6
6238
if test -n "$ac_ct_STRIP"; then
6239
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245
test -z "$as_dir" && as_dir=.
6246
for ac_exec_ext in '' $ac_executable_extensions; do
6247
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248
ac_cv_prog_ac_ct_STRIP="strip"
6249
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6259
if test -n "$ac_ct_STRIP"; then
6260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6261
$as_echo "$ac_ct_STRIP" >&6; }
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264
$as_echo "no" >&6; }
6267
if test "x$ac_ct_STRIP" = x; then
6270
case $cross_compiling:$ac_tool_warned in
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274
ac_tool_warned=yes ;;
6279
STRIP="$ac_cv_prog_STRIP"
6282
test -z "$STRIP" && STRIP=:
6289
if test -n "$ac_tool_prefix"; then
6290
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293
$as_echo_n "checking for $ac_word... " >&6; }
6294
if ${ac_cv_prog_RANLIB+:} false; then :
6295
$as_echo_n "(cached) " >&6
6297
if test -n "$RANLIB"; then
6298
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304
test -z "$as_dir" && as_dir=.
6305
for ac_exec_ext in '' $ac_executable_extensions; do
6306
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317
RANLIB=$ac_cv_prog_RANLIB
6318
if test -n "$RANLIB"; then
6319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6320
$as_echo "$RANLIB" >&6; }
6322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323
$as_echo "no" >&6; }
6328
if test -z "$ac_cv_prog_RANLIB"; then
6329
ac_ct_RANLIB=$RANLIB
6330
# Extract the first word of "ranlib", so it can be a program name with args.
6331
set dummy ranlib; ac_word=$2
6332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333
$as_echo_n "checking for $ac_word... " >&6; }
6334
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6335
$as_echo_n "(cached) " >&6
6337
if test -n "$ac_ct_RANLIB"; then
6338
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344
test -z "$as_dir" && as_dir=.
6345
for ac_exec_ext in '' $ac_executable_extensions; do
6346
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347
ac_cv_prog_ac_ct_RANLIB="ranlib"
6348
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358
if test -n "$ac_ct_RANLIB"; then
6359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6360
$as_echo "$ac_ct_RANLIB" >&6; }
6362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363
$as_echo "no" >&6; }
6366
if test "x$ac_ct_RANLIB" = x; then
6369
case $cross_compiling:$ac_tool_warned in
6371
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373
ac_tool_warned=yes ;;
6375
RANLIB=$ac_ct_RANLIB
6378
RANLIB="$ac_cv_prog_RANLIB"
6381
test -z "$RANLIB" && RANLIB=:
6388
# Determine commands to create old-style static archives.
6389
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6390
old_postinstall_cmds='chmod 644 $oldlib'
6391
old_postuninstall_cmds=
6393
if test -n "$RANLIB"; then
6396
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6399
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6402
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6407
lock_old_archive_extraction=yes ;;
6409
lock_old_archive_extraction=no ;;
6450
# If no C compiler was specified, use CC.
6453
# If no C compiler flags were specified, use CFLAGS.
6454
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6456
# Allow CC to be a program name with arguments.
6460
# Check for command to grab the raw symbol name followed by C symbol from nm.
6461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6462
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6463
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6464
$as_echo_n "(cached) " >&6
6467
# These are sane defaults that work on at least a few old systems.
6468
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6470
# Character class describing NM global symbol codes.
6471
symcode='[BCDEGRST]'
6473
# Regexp to match symbols that can be accessed directly from C.
6474
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6476
# Define system-specific variables.
6481
cygwin* | mingw* | pw32* | cegcc*)
6482
symcode='[ABCDGISTW]'
6485
if test "$host_cpu" = ia64; then
6486
symcode='[ABCDEGRST]'
6490
symcode='[BCDEGRST]'
6493
symcode='[BCDEGQRST]'
6504
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6512
# If we're using GNU nm, then use its standard symbol codes.
6513
case `$NM -V 2>&1` in
6514
*GNU* | *'with BFD'*)
6515
symcode='[ABCDGIRSTW]' ;;
6518
# Transform an extracted symbol line into a proper C declaration.
6519
# Some systems (esp. on ia64) link data and code symbols differently,
6520
# so use this general approach.
6521
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6523
# Transform an extracted symbol line into symbol name and symbol address
6524
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6525
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6527
# Handle CRLF in mingw tool chain
6531
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6535
# Try without a prefix underscore, then with it.
6536
for ac_symprfx in "" "_"; do
6538
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6539
symxfrm="\\1 $ac_symprfx\\2 \\2"
6541
# Write the raw and C identifiers.
6542
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6543
# Fake it for dumpbin and say T for any non-static function
6544
# and D for any global variable.
6545
# Also find C++ and __fastcall symbols from MSVC++,
6546
# which start with @ or ?.
6547
lt_cv_sys_global_symbol_pipe="$AWK '"\
6548
" {last_section=section; section=\$ 3};"\
6549
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6550
" \$ 0!~/External *\|/{next};"\
6551
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6552
" {if(hide[section]) next};"\
6553
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6554
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6555
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6556
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6557
" ' prfx=^$ac_symprfx"
6559
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6561
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6563
# Check to see that the pipe works correctly.
6567
cat > conftest.$ac_ext <<_LT_EOF
6572
void nm_test_func(void);
6573
void nm_test_func(void){}
6577
int main(){nm_test_var='a';nm_test_func();return(0);}
6580
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581
(eval $ac_compile) 2>&5
6583
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584
test $ac_status = 0; }; then
6585
# Now try to grab the symbols.
6587
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6588
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6590
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591
test $ac_status = 0; } && test -s "$nlist"; then
6592
# Try sorting and uniquifying the output.
6593
if sort "$nlist" | uniq > "$nlist"T; then
6594
mv -f "$nlist"T "$nlist"
6599
# Make sure that we snagged all the symbols we need.
6600
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6601
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6602
cat <<_LT_EOF > conftest.$ac_ext
6603
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6604
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6605
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6606
relocations are performed -- see ld's documentation on pseudo-relocs. */
6607
# define LT_DLSYM_CONST
6608
#elif defined(__osf__)
6609
/* This system does not cope well with relocations in const data. */
6610
# define LT_DLSYM_CONST
6612
# define LT_DLSYM_CONST const
6620
# Now generate the symbol file.
6621
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6623
cat <<_LT_EOF >> conftest.$ac_ext
6625
/* The mapping between symbol names and symbols. */
6626
LT_DLSYM_CONST struct {
6630
lt__PROGRAM__LTX_preloaded_symbols[] =
6632
{ "@PROGRAM@", (void *) 0 },
6634
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6635
cat <<\_LT_EOF >> conftest.$ac_ext
6639
/* This works around a problem in FreeBSD linker */
6640
#ifdef FREEBSD_WORKAROUND
6641
static const void *lt_preloaded_setup() {
6642
return lt__PROGRAM__LTX_preloaded_symbols;
6650
# Now try linking the two files.
6651
mv conftest.$ac_objext conftstm.$ac_objext
6652
lt_globsym_save_LIBS=$LIBS
6653
lt_globsym_save_CFLAGS=$CFLAGS
6654
LIBS="conftstm.$ac_objext"
6655
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6656
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6657
(eval $ac_link) 2>&5
6659
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6663
LIBS=$lt_globsym_save_LIBS
6664
CFLAGS=$lt_globsym_save_CFLAGS
6666
echo "cannot find nm_test_func in $nlist" >&5
6669
echo "cannot find nm_test_var in $nlist" >&5
6672
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6675
echo "$progname: failed program was:" >&5
6676
cat conftest.$ac_ext >&5
6678
rm -rf conftest* conftst*
6680
# Do not use the global_symbol_pipe unless it works.
6681
if test "$pipe_works" = yes; then
6684
lt_cv_sys_global_symbol_pipe=
6690
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6691
lt_cv_sys_global_symbol_to_cdecl=
6693
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6695
$as_echo "failed" >&6; }
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6698
$as_echo "ok" >&6; }
6701
# Response file support.
6702
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6703
nm_file_list_spec='@'
6704
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6705
nm_file_list_spec='@'
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6735
$as_echo_n "checking for sysroot... " >&6; }
6737
# Check whether --with-sysroot was given.
6738
if test "${with_sysroot+set}" = set; then :
6739
withval=$with_sysroot;
6746
case ${with_sysroot} in #(
6748
if test "$GCC" = yes; then
6749
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6753
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6759
$as_echo "${with_sysroot}" >&6; }
6760
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6765
$as_echo "${lt_sysroot:-no}" >&6; }
6771
# Check whether --enable-libtool-lock was given.
6772
if test "${enable_libtool_lock+set}" = set; then :
6773
enableval=$enable_libtool_lock;
6776
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6778
# Some flags need to be propagated to the compiler or linker for good
6782
# Find out which ABI we are using.
6783
echo 'int i;' > conftest.$ac_ext
6784
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785
(eval $ac_compile) 2>&5
6787
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788
test $ac_status = 0; }; then
6789
case `/usr/bin/file conftest.$ac_objext` in
6801
# Find out which ABI we are using.
6802
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6803
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804
(eval $ac_compile) 2>&5
6806
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807
test $ac_status = 0; }; then
6808
if test "$lt_cv_prog_gnu_ld" = yes; then
6809
case `/usr/bin/file conftest.$ac_objext` in
6811
LD="${LD-ld} -melf32bsmip"
6814
LD="${LD-ld} -melf32bmipn32"
6817
LD="${LD-ld} -melf64bmip"
6821
case `/usr/bin/file conftest.$ac_objext` in
6837
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6838
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6839
# Find out which ABI we are using.
6840
echo 'int i;' > conftest.$ac_ext
6841
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842
(eval $ac_compile) 2>&5
6844
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845
test $ac_status = 0; }; then
6846
case `/usr/bin/file conftest.o` in
6849
x86_64-*kfreebsd*-gnu)
6850
LD="${LD-ld} -m elf_i386_fbsd"
6853
LD="${LD-ld} -m elf_i386"
6855
ppc64-*linux*|powerpc64-*linux*)
6856
LD="${LD-ld} -m elf32ppclinux"
6859
LD="${LD-ld} -m elf_s390"
6862
LD="${LD-ld} -m elf32_sparc"
6868
x86_64-*kfreebsd*-gnu)
6869
LD="${LD-ld} -m elf_x86_64_fbsd"
6872
LD="${LD-ld} -m elf_x86_64"
6874
ppc*-*linux*|powerpc*-*linux*)
6875
LD="${LD-ld} -m elf64ppc"
6877
s390*-*linux*|s390*-*tpf*)
6878
LD="${LD-ld} -m elf64_s390"
6881
LD="${LD-ld} -m elf64_sparc"
6891
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6892
SAVE_CFLAGS="$CFLAGS"
6893
CFLAGS="$CFLAGS -belf"
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6895
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6896
if ${lt_cv_cc_needs_belf+:} false; then :
6897
$as_echo_n "(cached) " >&6
6900
ac_cpp='$CPP $CPPFLAGS'
6901
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906
/* end confdefs.h. */
6916
if ac_fn_c_try_link "$LINENO"; then :
6917
lt_cv_cc_needs_belf=yes
6919
lt_cv_cc_needs_belf=no
6921
rm -f core conftest.err conftest.$ac_objext \
6922
conftest$ac_exeext conftest.$ac_ext
6924
ac_cpp='$CPP $CPPFLAGS'
6925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6931
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6932
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6933
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6934
CFLAGS="$SAVE_CFLAGS"
6938
# Find out which ABI we are using.
6939
echo 'int i;' > conftest.$ac_ext
6940
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6941
(eval $ac_compile) 2>&5
6943
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944
test $ac_status = 0; }; then
6945
case `/usr/bin/file conftest.o` in
6947
case $lt_cv_prog_gnu_ld in
6948
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6950
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6962
need_locks="$enable_libtool_lock"
6964
if test -n "$ac_tool_prefix"; then
6965
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6966
set dummy ${ac_tool_prefix}mt; ac_word=$2
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968
$as_echo_n "checking for $ac_word... " >&6; }
6969
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6970
$as_echo_n "(cached) " >&6
6972
if test -n "$MANIFEST_TOOL"; then
6973
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979
test -z "$as_dir" && as_dir=.
6980
for ac_exec_ext in '' $ac_executable_extensions; do
6981
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6983
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6993
if test -n "$MANIFEST_TOOL"; then
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6995
$as_echo "$MANIFEST_TOOL" >&6; }
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998
$as_echo "no" >&6; }
7003
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7004
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7005
# Extract the first word of "mt", so it can be a program name with args.
7006
set dummy mt; ac_word=$2
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008
$as_echo_n "checking for $ac_word... " >&6; }
7009
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7010
$as_echo_n "(cached) " >&6
7012
if test -n "$ac_ct_MANIFEST_TOOL"; then
7013
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019
test -z "$as_dir" && as_dir=.
7020
for ac_exec_ext in '' $ac_executable_extensions; do
7021
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7023
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7033
if test -n "$ac_ct_MANIFEST_TOOL"; then
7034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7035
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038
$as_echo "no" >&6; }
7041
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7044
case $cross_compiling:$ac_tool_warned in
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048
ac_tool_warned=yes ;;
7050
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7053
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7056
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7058
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7059
if ${lt_cv_path_mainfest_tool+:} false; then :
7060
$as_echo_n "(cached) " >&6
7062
lt_cv_path_mainfest_tool=no
7063
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7064
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7065
cat conftest.err >&5
7066
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7067
lt_cv_path_mainfest_tool=yes
7071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7072
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7073
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7083
rhapsody* | darwin*)
7084
if test -n "$ac_tool_prefix"; then
7085
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7086
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088
$as_echo_n "checking for $ac_word... " >&6; }
7089
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7090
$as_echo_n "(cached) " >&6
7092
if test -n "$DSYMUTIL"; then
7093
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099
test -z "$as_dir" && as_dir=.
7100
for ac_exec_ext in '' $ac_executable_extensions; do
7101
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7103
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7113
if test -n "$DSYMUTIL"; then
7114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7115
$as_echo "$DSYMUTIL" >&6; }
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118
$as_echo "no" >&6; }
7123
if test -z "$ac_cv_prog_DSYMUTIL"; then
7124
ac_ct_DSYMUTIL=$DSYMUTIL
7125
# Extract the first word of "dsymutil", so it can be a program name with args.
7126
set dummy dsymutil; ac_word=$2
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128
$as_echo_n "checking for $ac_word... " >&6; }
7129
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7130
$as_echo_n "(cached) " >&6
7132
if test -n "$ac_ct_DSYMUTIL"; then
7133
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139
test -z "$as_dir" && as_dir=.
7140
for ac_exec_ext in '' $ac_executable_extensions; do
7141
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7143
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7153
if test -n "$ac_ct_DSYMUTIL"; then
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7155
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158
$as_echo "no" >&6; }
7161
if test "x$ac_ct_DSYMUTIL" = x; then
7164
case $cross_compiling:$ac_tool_warned in
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168
ac_tool_warned=yes ;;
7170
DSYMUTIL=$ac_ct_DSYMUTIL
7173
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7176
if test -n "$ac_tool_prefix"; then
7177
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7178
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180
$as_echo_n "checking for $ac_word... " >&6; }
7181
if ${ac_cv_prog_NMEDIT+:} false; then :
7182
$as_echo_n "(cached) " >&6
7184
if test -n "$NMEDIT"; then
7185
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191
test -z "$as_dir" && as_dir=.
7192
for ac_exec_ext in '' $ac_executable_extensions; do
7193
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7195
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204
NMEDIT=$ac_cv_prog_NMEDIT
7205
if test -n "$NMEDIT"; then
7206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7207
$as_echo "$NMEDIT" >&6; }
7209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210
$as_echo "no" >&6; }
7215
if test -z "$ac_cv_prog_NMEDIT"; then
7216
ac_ct_NMEDIT=$NMEDIT
7217
# Extract the first word of "nmedit", so it can be a program name with args.
7218
set dummy nmedit; ac_word=$2
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220
$as_echo_n "checking for $ac_word... " >&6; }
7221
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7222
$as_echo_n "(cached) " >&6
7224
if test -n "$ac_ct_NMEDIT"; then
7225
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231
test -z "$as_dir" && as_dir=.
7232
for ac_exec_ext in '' $ac_executable_extensions; do
7233
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7235
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7245
if test -n "$ac_ct_NMEDIT"; then
7246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7247
$as_echo "$ac_ct_NMEDIT" >&6; }
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250
$as_echo "no" >&6; }
7253
if test "x$ac_ct_NMEDIT" = x; then
7256
case $cross_compiling:$ac_tool_warned in
7258
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260
ac_tool_warned=yes ;;
7262
NMEDIT=$ac_ct_NMEDIT
7265
NMEDIT="$ac_cv_prog_NMEDIT"
7268
if test -n "$ac_tool_prefix"; then
7269
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7270
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272
$as_echo_n "checking for $ac_word... " >&6; }
7273
if ${ac_cv_prog_LIPO+:} false; then :
7274
$as_echo_n "(cached) " >&6
7276
if test -n "$LIPO"; then
7277
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283
test -z "$as_dir" && as_dir=.
7284
for ac_exec_ext in '' $ac_executable_extensions; do
7285
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7287
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296
LIPO=$ac_cv_prog_LIPO
7297
if test -n "$LIPO"; then
7298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7299
$as_echo "$LIPO" >&6; }
7301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302
$as_echo "no" >&6; }
7307
if test -z "$ac_cv_prog_LIPO"; then
7309
# Extract the first word of "lipo", so it can be a program name with args.
7310
set dummy lipo; ac_word=$2
7311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312
$as_echo_n "checking for $ac_word... " >&6; }
7313
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7314
$as_echo_n "(cached) " >&6
7316
if test -n "$ac_ct_LIPO"; then
7317
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323
test -z "$as_dir" && as_dir=.
7324
for ac_exec_ext in '' $ac_executable_extensions; do
7325
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326
ac_cv_prog_ac_ct_LIPO="lipo"
7327
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7337
if test -n "$ac_ct_LIPO"; then
7338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7339
$as_echo "$ac_ct_LIPO" >&6; }
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342
$as_echo "no" >&6; }
7345
if test "x$ac_ct_LIPO" = x; then
7348
case $cross_compiling:$ac_tool_warned in
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352
ac_tool_warned=yes ;;
7357
LIPO="$ac_cv_prog_LIPO"
7360
if test -n "$ac_tool_prefix"; then
7361
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7362
set dummy ${ac_tool_prefix}otool; ac_word=$2
7363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364
$as_echo_n "checking for $ac_word... " >&6; }
7365
if ${ac_cv_prog_OTOOL+:} false; then :
7366
$as_echo_n "(cached) " >&6
7368
if test -n "$OTOOL"; then
7369
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375
test -z "$as_dir" && as_dir=.
7376
for ac_exec_ext in '' $ac_executable_extensions; do
7377
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7379
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388
OTOOL=$ac_cv_prog_OTOOL
7389
if test -n "$OTOOL"; then
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7391
$as_echo "$OTOOL" >&6; }
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394
$as_echo "no" >&6; }
7399
if test -z "$ac_cv_prog_OTOOL"; then
7401
# Extract the first word of "otool", so it can be a program name with args.
7402
set dummy otool; ac_word=$2
7403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404
$as_echo_n "checking for $ac_word... " >&6; }
7405
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7406
$as_echo_n "(cached) " >&6
7408
if test -n "$ac_ct_OTOOL"; then
7409
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415
test -z "$as_dir" && as_dir=.
7416
for ac_exec_ext in '' $ac_executable_extensions; do
7417
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418
ac_cv_prog_ac_ct_OTOOL="otool"
7419
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7429
if test -n "$ac_ct_OTOOL"; then
7430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7431
$as_echo "$ac_ct_OTOOL" >&6; }
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434
$as_echo "no" >&6; }
7437
if test "x$ac_ct_OTOOL" = x; then
7440
case $cross_compiling:$ac_tool_warned in
7442
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444
ac_tool_warned=yes ;;
7449
OTOOL="$ac_cv_prog_OTOOL"
7452
if test -n "$ac_tool_prefix"; then
7453
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7454
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456
$as_echo_n "checking for $ac_word... " >&6; }
7457
if ${ac_cv_prog_OTOOL64+:} false; then :
7458
$as_echo_n "(cached) " >&6
7460
if test -n "$OTOOL64"; then
7461
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467
test -z "$as_dir" && as_dir=.
7468
for ac_exec_ext in '' $ac_executable_extensions; do
7469
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7471
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480
OTOOL64=$ac_cv_prog_OTOOL64
7481
if test -n "$OTOOL64"; then
7482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7483
$as_echo "$OTOOL64" >&6; }
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486
$as_echo "no" >&6; }
7491
if test -z "$ac_cv_prog_OTOOL64"; then
7492
ac_ct_OTOOL64=$OTOOL64
7493
# Extract the first word of "otool64", so it can be a program name with args.
7494
set dummy otool64; ac_word=$2
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496
$as_echo_n "checking for $ac_word... " >&6; }
7497
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7498
$as_echo_n "(cached) " >&6
7500
if test -n "$ac_ct_OTOOL64"; then
7501
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507
test -z "$as_dir" && as_dir=.
7508
for ac_exec_ext in '' $ac_executable_extensions; do
7509
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510
ac_cv_prog_ac_ct_OTOOL64="otool64"
7511
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7521
if test -n "$ac_ct_OTOOL64"; then
7522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7523
$as_echo "$ac_ct_OTOOL64" >&6; }
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526
$as_echo "no" >&6; }
7529
if test "x$ac_ct_OTOOL64" = x; then
7532
case $cross_compiling:$ac_tool_warned in
7534
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536
ac_tool_warned=yes ;;
7538
OTOOL64=$ac_ct_OTOOL64
7541
OTOOL64="$ac_cv_prog_OTOOL64"
7570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7571
$as_echo_n "checking for -single_module linker flag... " >&6; }
7572
if ${lt_cv_apple_cc_single_mod+:} false; then :
7573
$as_echo_n "(cached) " >&6
7575
lt_cv_apple_cc_single_mod=no
7576
if test -z "${LT_MULTI_MODULE}"; then
7577
# By default we will add the -single_module flag. You can override
7578
# by either setting the environment variable LT_MULTI_MODULE
7579
# non-empty at configure time, or by adding -multi_module to the
7581
rm -rf libconftest.dylib*
7582
echo "int foo(void){return 1;}" > conftest.c
7583
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7584
-dynamiclib -Wl,-single_module conftest.c" >&5
7585
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7586
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7588
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7589
lt_cv_apple_cc_single_mod=yes
7591
cat conftest.err >&5
7593
rm -rf libconftest.dylib*
7597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7598
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7600
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7601
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7602
$as_echo_n "(cached) " >&6
7604
lt_cv_ld_exported_symbols_list=no
7605
save_LDFLAGS=$LDFLAGS
7606
echo "_main" > conftest.sym
7607
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609
/* end confdefs.h. */
7619
if ac_fn_c_try_link "$LINENO"; then :
7620
lt_cv_ld_exported_symbols_list=yes
7622
lt_cv_ld_exported_symbols_list=no
7624
rm -f core conftest.err conftest.$ac_objext \
7625
conftest$ac_exeext conftest.$ac_ext
7626
LDFLAGS="$save_LDFLAGS"
7629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7630
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7632
$as_echo_n "checking for -force_load linker flag... " >&6; }
7633
if ${lt_cv_ld_force_load+:} false; then :
7634
$as_echo_n "(cached) " >&6
7636
lt_cv_ld_force_load=no
7637
cat > conftest.c << _LT_EOF
7638
int forced_loaded() { return 2;}
7640
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7641
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7642
echo "$AR cru libconftest.a conftest.o" >&5
7643
$AR cru libconftest.a conftest.o 2>&5
7644
echo "$RANLIB libconftest.a" >&5
7645
$RANLIB libconftest.a 2>&5
7646
cat > conftest.c << _LT_EOF
7647
int main() { return 0;}
7649
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7650
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7652
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7653
lt_cv_ld_force_load=yes
7655
cat conftest.err >&5
7657
rm -f conftest.err libconftest.a conftest conftest.c
7658
rm -rf conftest.dSYM
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7662
$as_echo "$lt_cv_ld_force_load" >&6; }
7664
rhapsody* | darwin1.[012])
7665
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7667
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7668
darwin*) # darwin 5.x on
7669
# if running on 10.5 or later, the deployment target defaults
7670
# to the OS version, if on x86, and 10.4, the deployment
7671
# target defaults to 10.4. Don't you love it?
7672
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7673
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7674
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7676
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7678
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7683
_lt_dar_single_mod='$single_module'
7685
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7686
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7688
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7690
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7691
_lt_dsymutil='~$DSYMUTIL $lib || :'
7699
ac_cpp='$CPP $CPPFLAGS'
7700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7704
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7705
# On Suns, sometimes $CPP names a directory.
7706
if test -n "$CPP" && test -d "$CPP"; then
7709
if test -z "$CPP"; then
7710
if ${ac_cv_prog_CPP+:} false; then :
7711
$as_echo_n "(cached) " >&6
7713
# Double quotes because CPP needs to be expanded
7714
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7717
for ac_c_preproc_warn_flag in '' yes
7719
# Use a header file that comes with gcc, so configuring glibc
7720
# with a fresh cross-compiler works.
7721
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722
# <limits.h> exists even on freestanding compilers.
7723
# On the NeXT, cc -E runs the code through the compiler's parser,
7724
# not just through cpp. "Syntax error" is here to catch this case.
7725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726
/* end confdefs.h. */
7728
# include <limits.h>
7730
# include <assert.h>
7734
if ac_fn_c_try_cpp "$LINENO"; then :
7737
# Broken: fails on valid input.
7740
rm -f conftest.err conftest.i conftest.$ac_ext
7742
# OK, works on sane cases. Now check whether nonexistent headers
7743
# can be detected and how.
7744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745
/* end confdefs.h. */
7746
#include <ac_nonexistent.h>
7748
if ac_fn_c_try_cpp "$LINENO"; then :
7749
# Broken: success on invalid input.
7752
# Passes both tests.
7756
rm -f conftest.err conftest.i conftest.$ac_ext
7759
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760
rm -f conftest.i conftest.err conftest.$ac_ext
7761
if $ac_preproc_ok; then :
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7774
$as_echo "$CPP" >&6; }
7776
for ac_c_preproc_warn_flag in '' yes
7778
# Use a header file that comes with gcc, so configuring glibc
7779
# with a fresh cross-compiler works.
7780
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781
# <limits.h> exists even on freestanding compilers.
7782
# On the NeXT, cc -E runs the code through the compiler's parser,
7783
# not just through cpp. "Syntax error" is here to catch this case.
7784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785
/* end confdefs.h. */
7787
# include <limits.h>
7789
# include <assert.h>
7793
if ac_fn_c_try_cpp "$LINENO"; then :
7796
# Broken: fails on valid input.
7799
rm -f conftest.err conftest.i conftest.$ac_ext
7801
# OK, works on sane cases. Now check whether nonexistent headers
7802
# can be detected and how.
7803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804
/* end confdefs.h. */
7805
#include <ac_nonexistent.h>
7807
if ac_fn_c_try_cpp "$LINENO"; then :
7808
# Broken: success on invalid input.
7811
# Passes both tests.
7815
rm -f conftest.err conftest.i conftest.$ac_ext
7818
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819
rm -f conftest.i conftest.err conftest.$ac_ext
7820
if $ac_preproc_ok; then :
7823
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7824
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7825
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7826
See \`config.log' for more details" "$LINENO" 5; }
7830
ac_cpp='$CPP $CPPFLAGS'
7831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7837
$as_echo_n "checking for ANSI C header files... " >&6; }
7838
if ${ac_cv_header_stdc+:} false; then :
7839
$as_echo_n "(cached) " >&6
7841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842
/* end confdefs.h. */
7856
if ac_fn_c_try_compile "$LINENO"; then :
7857
ac_cv_header_stdc=yes
7859
ac_cv_header_stdc=no
7861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863
if test $ac_cv_header_stdc = yes; then
7864
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7865
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866
/* end confdefs.h. */
7870
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871
$EGREP "memchr" >/dev/null 2>&1; then :
7874
ac_cv_header_stdc=no
7880
if test $ac_cv_header_stdc = yes; then
7881
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883
/* end confdefs.h. */
7887
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888
$EGREP "free" >/dev/null 2>&1; then :
7891
ac_cv_header_stdc=no
7897
if test $ac_cv_header_stdc = yes; then
7898
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7899
if test "$cross_compiling" = yes; then :
7902
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903
/* end confdefs.h. */
7906
#if ((' ' & 0x0FF) == 0x020)
7907
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7908
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7910
# define ISLOWER(c) \
7911
(('a' <= (c) && (c) <= 'i') \
7912
|| ('j' <= (c) && (c) <= 'r') \
7913
|| ('s' <= (c) && (c) <= 'z'))
7914
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7917
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7922
for (i = 0; i < 256; i++)
7923
if (XOR (islower (i), ISLOWER (i))
7924
|| toupper (i) != TOUPPER (i))
7929
if ac_fn_c_try_run "$LINENO"; then :
7932
ac_cv_header_stdc=no
7934
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7935
conftest.$ac_objext conftest.beam conftest.$ac_ext
7940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7941
$as_echo "$ac_cv_header_stdc" >&6; }
7942
if test $ac_cv_header_stdc = yes; then
7944
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7948
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7949
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7950
inttypes.h stdint.h unistd.h
7952
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7955
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7956
cat >>confdefs.h <<_ACEOF
7957
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965
for ac_header in dlfcn.h
7967
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7969
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7970
cat >>confdefs.h <<_ACEOF
7971
#define HAVE_DLFCN_H 1
7992
# Check whether --enable-shared was given.
7993
if test "${enable_shared+set}" = set; then :
7994
enableval=$enable_shared; p=${PACKAGE-default}
7996
yes) enable_shared=yes ;;
7997
no) enable_shared=no ;;
8000
# Look at the argument we got. We use all the common list separators.
8001
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8002
for pkg in $enableval; do
8004
if test "X$pkg" = "X$p"; then
8025
# Check whether --with-pic was given.
8026
if test "${with_pic+set}" = set; then :
8027
withval=$with_pic; pic_mode="$withval"
8033
test -z "$pic_mode" && pic_mode=default
8041
# Check whether --enable-fast-install was given.
8042
if test "${enable_fast_install+set}" = set; then :
8043
enableval=$enable_fast_install; p=${PACKAGE-default}
8045
yes) enable_fast_install=yes ;;
8046
no) enable_fast_install=no ;;
8048
enable_fast_install=no
8049
# Look at the argument we got. We use all the common list separators.
8050
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8051
for pkg in $enableval; do
8053
if test "X$pkg" = "X$p"; then
8054
enable_fast_install=yes
8061
enable_fast_install=yes
8074
# This can be used to rebuild libtool when needed
8075
LIBTOOL_DEPS="$ltmain"
8077
# Always use our own libtool.
8078
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8105
test -z "$LN_S" && LN_S="ln -s"
8120
if test -n "${ZSH_VERSION+set}" ; then
8121
setopt NO_GLOB_SUBST
8124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8125
$as_echo_n "checking for objdir... " >&6; }
8126
if ${lt_cv_objdir+:} false; then :
8127
$as_echo_n "(cached) " >&6
8129
rm -f .libs 2>/dev/null
8130
mkdir .libs 2>/dev/null
8131
if test -d .libs; then
8134
# MS-DOS does not allow filenames that begin with a dot.
8137
rmdir .libs 2>/dev/null
8139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8140
$as_echo "$lt_cv_objdir" >&6; }
8141
objdir=$lt_cv_objdir
8147
cat >>confdefs.h <<_ACEOF
8148
#define LT_OBJDIR "$lt_cv_objdir/"
8156
# AIX sometimes has problems with the GCC collect2 program. For some
8157
# reason, if we set the COLLECT_NAMES environment variable, the problems
8158
# vanish in a puff of smoke.
8159
if test "X${COLLECT_NAMES+set}" != Xset; then
8161
export COLLECT_NAMES
8168
can_build_shared=yes
8170
# All known linkers require a `.a' archive for static linking (except MSVC,
8171
# which needs '.lib').
8174
with_gnu_ld="$lt_cv_prog_gnu_ld"
8177
old_CFLAGS="$CFLAGS"
8179
# Set sane defaults for various variables
8180
test -z "$CC" && CC=cc
8181
test -z "$LTCC" && LTCC=$CC
8182
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8183
test -z "$LD" && LD=ld
8184
test -z "$ac_objext" && ac_objext=o
8186
for cc_temp in $compiler""; do
8188
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8197
# Only perform the check for file, if the check method requires it
8198
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8199
case $deplibs_check_method in
8201
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8203
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8204
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8205
$as_echo_n "(cached) " >&6
8209
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8212
lt_save_MAGIC_CMD="$MAGIC_CMD"
8213
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8214
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8215
for ac_dir in $ac_dummy; do
8217
test -z "$ac_dir" && ac_dir=.
8218
if test -f $ac_dir/${ac_tool_prefix}file; then
8219
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8220
if test -n "$file_magic_test_file"; then
8221
case $deplibs_check_method in
8223
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8224
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8226
$EGREP "$file_magic_regex" > /dev/null; then
8231
*** Warning: the command libtool uses to detect shared libraries,
8232
*** $file_magic_cmd, produces output that libtool cannot recognize.
8233
*** The result is that libtool may fail to recognize shared libraries
8234
*** as such. This will affect the creation of libtool libraries that
8235
*** depend on shared libraries, but programs linked with such libtool
8236
*** libraries will work regardless of this problem. Nevertheless, you
8237
*** may want to report the problem to your system manager and/or to
8238
*** bug-libtool@gnu.org
8248
MAGIC_CMD="$lt_save_MAGIC_CMD"
8253
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8254
if test -n "$MAGIC_CMD"; then
8255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8256
$as_echo "$MAGIC_CMD" >&6; }
8258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259
$as_echo "no" >&6; }
8266
if test -z "$lt_cv_path_MAGIC_CMD"; then
8267
if test -n "$ac_tool_prefix"; then
8268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8269
$as_echo_n "checking for file... " >&6; }
8270
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8271
$as_echo_n "(cached) " >&6
8275
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8278
lt_save_MAGIC_CMD="$MAGIC_CMD"
8279
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8280
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8281
for ac_dir in $ac_dummy; do
8283
test -z "$ac_dir" && ac_dir=.
8284
if test -f $ac_dir/file; then
8285
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8286
if test -n "$file_magic_test_file"; then
8287
case $deplibs_check_method in
8289
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8290
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8292
$EGREP "$file_magic_regex" > /dev/null; then
8297
*** Warning: the command libtool uses to detect shared libraries,
8298
*** $file_magic_cmd, produces output that libtool cannot recognize.
8299
*** The result is that libtool may fail to recognize shared libraries
8300
*** as such. This will affect the creation of libtool libraries that
8301
*** depend on shared libraries, but programs linked with such libtool
8302
*** libraries will work regardless of this problem. Nevertheless, you
8303
*** may want to report the problem to your system manager and/or to
8304
*** bug-libtool@gnu.org
8314
MAGIC_CMD="$lt_save_MAGIC_CMD"
8319
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8320
if test -n "$MAGIC_CMD"; then
8321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8322
$as_echo "$MAGIC_CMD" >&6; }
8324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325
$as_echo "no" >&6; }
8338
# Use C for the default configuration in the libtool script
8342
ac_cpp='$CPP $CPPFLAGS'
8343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
# Source file extension for C test sources.
8351
# Object file extension for compiled C test sources.
8355
# Code to be used in simple compile tests
8356
lt_simple_compile_test_code="int some_variable = 0;"
8358
# Code to be used in simple link tests
8359
lt_simple_link_test_code='int main(){return(0);}'
8367
# If no C compiler was specified, use CC.
8370
# If no C compiler flags were specified, use CFLAGS.
8371
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8373
# Allow CC to be a program name with arguments.
8376
# Save the default compiler, since it gets overwritten when the other
8377
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8378
compiler_DEFAULT=$CC
8380
# save warnings/boilerplate of simple test code
8381
ac_outfile=conftest.$ac_objext
8382
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8383
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8384
_lt_compiler_boilerplate=`cat conftest.err`
8387
ac_outfile=conftest.$ac_objext
8388
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8389
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390
_lt_linker_boilerplate=`cat conftest.err`
8395
## There is no encapsulation within the following macros, do not change
8396
## the running order or otherwise move them around unless you know exactly
8397
## what you are doing...
8398
if test -n "$compiler"; then
8400
lt_prog_compiler_no_builtin_flag=
8402
if test "$GCC" = yes; then
8403
case $cc_basename in
8405
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8407
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8411
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8412
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8413
$as_echo_n "(cached) " >&6
8415
lt_cv_prog_compiler_rtti_exceptions=no
8416
ac_outfile=conftest.$ac_objext
8417
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8418
lt_compiler_flag="-fno-rtti -fno-exceptions"
8419
# Insert the option either (1) after the last *FLAGS variable, or
8420
# (2) before a word containing "conftest.", or (3) at the end.
8421
# Note that $ac_compile itself does not contain backslashes and begins
8422
# with a dollar sign (not a hyphen), so the echo should work correctly.
8423
# The option is referenced via a variable to avoid confusing sed.
8424
lt_compile=`echo "$ac_compile" | $SED \
8425
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8426
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8427
-e 's:$: $lt_compiler_flag:'`
8428
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8429
(eval "$lt_compile" 2>conftest.err)
8431
cat conftest.err >&5
8432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433
if (exit $ac_status) && test -s "$ac_outfile"; then
8434
# The compiler can only warn and ignore the option if not recognized
8435
# So say no if there are warnings other than the usual output.
8436
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8437
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8438
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8439
lt_cv_prog_compiler_rtti_exceptions=yes
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8446
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8448
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8449
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8461
lt_prog_compiler_wl=
8462
lt_prog_compiler_pic=
8463
lt_prog_compiler_static=
8466
if test "$GCC" = yes; then
8467
lt_prog_compiler_wl='-Wl,'
8468
lt_prog_compiler_static='-static'
8472
# All AIX code is PIC.
8473
if test "$host_cpu" = ia64; then
8474
# AIX 5 now supports IA64 processor
8475
lt_prog_compiler_static='-Bstatic'
8482
# see comment about AmigaOS4 .so support
8483
lt_prog_compiler_pic='-fPIC'
8486
# FIXME: we need at least 68020 code to build shared libraries, but
8487
# adding the `-m68020' flag to GCC prevents building anything better,
8489
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8494
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8495
# PIC is the default for these OSes.
8498
mingw* | cygwin* | pw32* | os2* | cegcc*)
8499
# This hack is so that the source file can tell whether it is being
8500
# built for inclusion in a dll (and should export symbols for example).
8501
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8502
# (--disable-auto-import) libraries
8503
lt_prog_compiler_pic='-DDLL_EXPORT'
8506
darwin* | rhapsody*)
8507
# PIC is the default on this platform
8508
# Common symbols not allowed in MH_DYLIB files
8509
lt_prog_compiler_pic='-fno-common'
8513
# PIC is the default for Haiku.
8514
# The "-static" flag exists, but is broken.
8515
lt_prog_compiler_static=
8519
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8520
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8521
# sets the default TLS model and affects inlining.
8527
lt_prog_compiler_pic='-fPIC'
8533
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8534
# Instead, we relocate shared libraries at runtime.
8538
# Just because we use GCC doesn't mean we suddenly get shared libraries
8539
# on systems that don't support them.
8540
lt_prog_compiler_can_build_shared=no
8545
# QNX uses GNU C++, but need to define -shared option too, otherwise
8547
lt_prog_compiler_pic='-fPIC -shared'
8551
if test -d /usr/nec; then
8552
lt_prog_compiler_pic=-Kconform_pic
8557
lt_prog_compiler_pic='-fPIC'
8561
case $cc_basename in
8562
nvcc*) # Cuda Compiler Driver 2.2
8563
lt_prog_compiler_wl='-Xlinker '
8564
lt_prog_compiler_pic='-Xcompiler -fPIC'
8568
# PORTME Check for flag to pass linker flags through the system compiler.
8571
lt_prog_compiler_wl='-Wl,'
8572
if test "$host_cpu" = ia64; then
8573
# AIX 5 now supports IA64 processor
8574
lt_prog_compiler_static='-Bstatic'
8576
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8580
mingw* | cygwin* | pw32* | os2* | cegcc*)
8581
# This hack is so that the source file can tell whether it is being
8582
# built for inclusion in a dll (and should export symbols for example).
8583
lt_prog_compiler_pic='-DDLL_EXPORT'
8586
hpux9* | hpux10* | hpux11*)
8587
lt_prog_compiler_wl='-Wl,'
8588
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8595
lt_prog_compiler_pic='+Z'
8598
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8599
lt_prog_compiler_static='${wl}-a ${wl}archive'
8602
irix5* | irix6* | nonstopux*)
8603
lt_prog_compiler_wl='-Wl,'
8604
# PIC (with -KPIC) is the default.
8605
lt_prog_compiler_static='-non_shared'
8608
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8609
case $cc_basename in
8610
# old Intel for x86_64 which still supported -KPIC.
8612
lt_prog_compiler_wl='-Wl,'
8613
lt_prog_compiler_pic='-KPIC'
8614
lt_prog_compiler_static='-static'
8616
# icc used to be incompatible with GCC.
8617
# ICC 10 doesn't accept -KPIC any more.
8619
lt_prog_compiler_wl='-Wl,'
8620
lt_prog_compiler_pic='-fPIC'
8621
lt_prog_compiler_static='-static'
8623
# Lahey Fortran 8.1.
8625
lt_prog_compiler_wl='-Wl,'
8626
lt_prog_compiler_pic='--shared'
8627
lt_prog_compiler_static='--static'
8630
# NAG Fortran compiler
8631
lt_prog_compiler_wl='-Wl,-Wl,,'
8632
lt_prog_compiler_pic='-PIC'
8633
lt_prog_compiler_static='-Bstatic'
8635
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8636
# Portland Group compilers (*not* the Pentium gcc compiler,
8637
# which looks to be a dead project)
8638
lt_prog_compiler_wl='-Wl,'
8639
lt_prog_compiler_pic='-fpic'
8640
lt_prog_compiler_static='-Bstatic'
8643
lt_prog_compiler_wl='-Wl,'
8644
# All Alpha code is PIC.
8645
lt_prog_compiler_static='-non_shared'
8647
xl* | bgxl* | bgf* | mpixl*)
8648
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8649
lt_prog_compiler_wl='-Wl,'
8650
lt_prog_compiler_pic='-qpic'
8651
lt_prog_compiler_static='-qstaticlink'
8654
case `$CC -V 2>&1 | sed 5q` in
8655
*Sun\ F* | *Sun*Fortran*)
8656
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8657
lt_prog_compiler_pic='-KPIC'
8658
lt_prog_compiler_static='-Bstatic'
8659
lt_prog_compiler_wl=''
8663
lt_prog_compiler_pic='-KPIC'
8664
lt_prog_compiler_static='-Bstatic'
8665
lt_prog_compiler_wl='-Wl,'
8673
lt_prog_compiler_pic='-KPIC'
8674
lt_prog_compiler_static='-Bstatic'
8678
# QNX uses GNU C++, but need to define -shared option too, otherwise
8680
lt_prog_compiler_pic='-fPIC -shared'
8683
osf3* | osf4* | osf5*)
8684
lt_prog_compiler_wl='-Wl,'
8685
# All OSF/1 code is PIC.
8686
lt_prog_compiler_static='-non_shared'
8690
lt_prog_compiler_static='-non_shared'
8694
lt_prog_compiler_pic='-KPIC'
8695
lt_prog_compiler_static='-Bstatic'
8696
case $cc_basename in
8697
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8698
lt_prog_compiler_wl='-Qoption ld ';;
8700
lt_prog_compiler_wl='-Wl,';;
8705
lt_prog_compiler_wl='-Qoption ld '
8706
lt_prog_compiler_pic='-PIC'
8707
lt_prog_compiler_static='-Bstatic'
8710
sysv4 | sysv4.2uw2* | sysv4.3*)
8711
lt_prog_compiler_wl='-Wl,'
8712
lt_prog_compiler_pic='-KPIC'
8713
lt_prog_compiler_static='-Bstatic'
8717
if test -d /usr/nec ;then
8718
lt_prog_compiler_pic='-Kconform_pic'
8719
lt_prog_compiler_static='-Bstatic'
8723
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8724
lt_prog_compiler_wl='-Wl,'
8725
lt_prog_compiler_pic='-KPIC'
8726
lt_prog_compiler_static='-Bstatic'
8730
lt_prog_compiler_wl='-Wl,'
8731
lt_prog_compiler_can_build_shared=no
8735
lt_prog_compiler_pic='-pic'
8736
lt_prog_compiler_static='-Bstatic'
8740
lt_prog_compiler_can_build_shared=no
8746
# For platforms which do not support PIC, -DPIC is meaningless:
8748
lt_prog_compiler_pic=
8751
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8756
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8757
if ${lt_cv_prog_compiler_pic+:} false; then :
8758
$as_echo_n "(cached) " >&6
8760
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8763
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8764
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8767
# Check to make sure the PIC flag actually works.
8769
if test -n "$lt_prog_compiler_pic"; then
8770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8773
$as_echo_n "(cached) " >&6
8775
lt_cv_prog_compiler_pic_works=no
8776
ac_outfile=conftest.$ac_objext
8777
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779
# Insert the option either (1) after the last *FLAGS variable, or
8780
# (2) before a word containing "conftest.", or (3) at the end.
8781
# Note that $ac_compile itself does not contain backslashes and begins
8782
# with a dollar sign (not a hyphen), so the echo should work correctly.
8783
# The option is referenced via a variable to avoid confusing sed.
8784
lt_compile=`echo "$ac_compile" | $SED \
8785
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787
-e 's:$: $lt_compiler_flag:'`
8788
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8789
(eval "$lt_compile" 2>conftest.err)
8791
cat conftest.err >&5
8792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
if (exit $ac_status) && test -s "$ac_outfile"; then
8794
# The compiler can only warn and ignore the option if not recognized
8795
# So say no if there are warnings other than the usual output.
8796
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8797
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8799
lt_cv_prog_compiler_pic_works=yes
8805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8808
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8809
case $lt_prog_compiler_pic in
8811
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8814
lt_prog_compiler_pic=
8815
lt_prog_compiler_can_build_shared=no
8831
# Check to make sure the static flag actually works.
8833
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8835
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8836
if ${lt_cv_prog_compiler_static_works+:} false; then :
8837
$as_echo_n "(cached) " >&6
8839
lt_cv_prog_compiler_static_works=no
8840
save_LDFLAGS="$LDFLAGS"
8841
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8842
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8843
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8844
# The linker can only warn and ignore the option if not recognized
8845
# So say no if there are warnings
8846
if test -s conftest.err; then
8847
# Append any errors to the config.log.
8848
cat conftest.err 1>&5
8849
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8850
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8851
if diff conftest.exp conftest.er2 >/dev/null; then
8852
lt_cv_prog_compiler_static_works=yes
8855
lt_cv_prog_compiler_static_works=yes
8859
LDFLAGS="$save_LDFLAGS"
8862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8863
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8865
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8868
lt_prog_compiler_static=
8877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8878
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8879
if ${lt_cv_prog_compiler_c_o+:} false; then :
8880
$as_echo_n "(cached) " >&6
8882
lt_cv_prog_compiler_c_o=no
8883
$RM -r conftest 2>/dev/null
8887
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889
lt_compiler_flag="-o out/conftest2.$ac_objext"
8890
# Insert the option either (1) after the last *FLAGS variable, or
8891
# (2) before a word containing "conftest.", or (3) at the end.
8892
# Note that $ac_compile itself does not contain backslashes and begins
8893
# with a dollar sign (not a hyphen), so the echo should work correctly.
8894
lt_compile=`echo "$ac_compile" | $SED \
8895
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897
-e 's:$: $lt_compiler_flag:'`
8898
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899
(eval "$lt_compile" 2>out/conftest.err)
8901
cat out/conftest.err >&5
8902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8905
# The compiler can only warn and ignore the option if not recognized
8906
# So say no if there are warnings
8907
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8908
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8909
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8910
lt_cv_prog_compiler_c_o=yes
8915
# SGI C++ compiler will create directory out/ii_files/ for
8916
# template instantiation
8917
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8918
$RM out/* && rmdir out
8924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8925
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8933
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8934
if ${lt_cv_prog_compiler_c_o+:} false; then :
8935
$as_echo_n "(cached) " >&6
8937
lt_cv_prog_compiler_c_o=no
8938
$RM -r conftest 2>/dev/null
8942
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8944
lt_compiler_flag="-o out/conftest2.$ac_objext"
8945
# Insert the option either (1) after the last *FLAGS variable, or
8946
# (2) before a word containing "conftest.", or (3) at the end.
8947
# Note that $ac_compile itself does not contain backslashes and begins
8948
# with a dollar sign (not a hyphen), so the echo should work correctly.
8949
lt_compile=`echo "$ac_compile" | $SED \
8950
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952
-e 's:$: $lt_compiler_flag:'`
8953
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954
(eval "$lt_compile" 2>out/conftest.err)
8956
cat out/conftest.err >&5
8957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8960
# The compiler can only warn and ignore the option if not recognized
8961
# So say no if there are warnings
8962
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8963
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8964
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8965
lt_cv_prog_compiler_c_o=yes
8970
# SGI C++ compiler will create directory out/ii_files/ for
8971
# template instantiation
8972
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8973
$RM out/* && rmdir out
8979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8980
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8985
hard_links="nottested"
8986
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8987
# do not overwrite the value of need_locks provided by the user
8988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8989
$as_echo_n "checking if we can lock with hard links... " >&6; }
8992
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8994
ln conftest.a conftest.b 2>&5 || hard_links=no
8995
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8997
$as_echo "$hard_links" >&6; }
8998
if test "$hard_links" = no; then
8999
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9000
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9013
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9016
allow_undefined_flag=
9017
always_export_symbols=no
9019
archive_expsym_cmds=
9020
compiler_needs_object=no
9021
enable_shared_with_static_runtimes=no
9022
export_dynamic_flag_spec=
9023
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9024
hardcode_automatic=no
9026
hardcode_direct_absolute=no
9027
hardcode_libdir_flag_spec=
9028
hardcode_libdir_flag_spec_ld=
9029
hardcode_libdir_separator=
9031
hardcode_shlibpath_var=unsupported
9033
link_all_deplibs=unknown
9036
old_archive_from_new_cmds=
9037
old_archive_from_expsyms_cmds=
9038
thread_safe_flag_spec=
9039
whole_archive_flag_spec=
9040
# include_expsyms should be a list of space-separated symbols to be *always*
9041
# included in the symbol list
9043
# exclude_expsyms can be an extended regexp of symbols to exclude
9044
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9045
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9046
# as well as any symbol that contains `d'.
9047
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9048
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9049
# platforms (ab)use it in PIC code, but their linkers get confused if
9050
# the symbol is explicitly referenced. Since portable code cannot
9051
# rely on this symbol name, it's probably fine to never include it in
9052
# preloaded symbol tables.
9053
# Exclude shared library initialization/finalization symbols.
9054
extract_expsyms_cmds=
9057
cygwin* | mingw* | pw32* | cegcc*)
9058
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9059
# When not using gcc, we currently assume that we are using
9060
# Microsoft Visual C++.
9061
if test "$GCC" != yes; then
9066
# we just hope/assume this is gcc and not c89 (= MSVC++)
9076
# On some targets, GNU ld is compatible enough with the native linker
9077
# that we're better off using the native interface for both.
9078
lt_use_gnu_ld_interface=no
9079
if test "$with_gnu_ld" = yes; then
9082
# The AIX port of GNU ld has always aspired to compatibility
9083
# with the native linker. However, as the warning in the GNU ld
9084
# block says, versions before 2.19.5* couldn't really create working
9085
# shared libraries, regardless of the interface used.
9086
case `$LD -v 2>&1` in
9087
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9088
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9089
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9091
lt_use_gnu_ld_interface=yes
9096
lt_use_gnu_ld_interface=yes
9101
if test "$lt_use_gnu_ld_interface" = yes; then
9102
# If archive_cmds runs LD, not CC, wlarc should be empty
9105
# Set some defaults for GNU ld with shared library support. These
9106
# are reset later if shared libraries are not supported. Putting them
9107
# here allows them to be overridden if necessary.
9108
runpath_var=LD_RUN_PATH
9109
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110
export_dynamic_flag_spec='${wl}--export-dynamic'
9111
# ancient GNU ld didn't support --whole-archive et. al.
9112
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9113
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9115
whole_archive_flag_spec=
9117
supports_anon_versioning=no
9118
case `$LD -v 2>&1` in
9119
*GNU\ gold*) supports_anon_versioning=yes ;;
9120
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9121
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9122
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9123
*\ 2.11.*) ;; # other 2.11 versions
9124
*) supports_anon_versioning=yes ;;
9127
# See if GNU ld supports shared libraries.
9130
# On AIX/PPC, the GNU linker is very broken
9131
if test "$host_cpu" != ia64; then
9135
*** Warning: the GNU linker, at least up to release 2.19, is reported
9136
*** to be unable to reliably create shared libraries on AIX.
9137
*** Therefore, libtool is disabling shared libraries support. If you
9138
*** really care for shared libraries, you may want to install binutils
9139
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9140
*** You will then need to restart the configuration process.
9149
# see comment about AmigaOS4 .so support
9150
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151
archive_expsym_cmds=''
9154
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9155
hardcode_libdir_flag_spec='-L$libdir'
9156
hardcode_minus_L=yes
9162
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163
allow_undefined_flag=unsupported
9164
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9165
# support --undefined. This deserves some investigation. FIXME
9166
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172
cygwin* | mingw* | pw32* | cegcc*)
9173
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9174
# as there is no search path for DLLs.
9175
hardcode_libdir_flag_spec='-L$libdir'
9176
export_dynamic_flag_spec='${wl}--export-all-symbols'
9177
allow_undefined_flag=unsupported
9178
always_export_symbols=no
9179
enable_shared_with_static_runtimes=yes
9180
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9181
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9183
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9184
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185
# If the export-symbols file already is a .def file (1st line
9186
# is EXPORTS), use it as is; otherwise, prepend...
9187
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9188
cp $export_symbols $output_objdir/$soname.def;
9190
echo EXPORTS > $output_objdir/$soname.def;
9191
cat $export_symbols >> $output_objdir/$soname.def;
9193
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201
link_all_deplibs=yes
9206
hardcode_shlibpath_var=no
9207
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9208
export_dynamic_flag_spec='${wl}-E'
9209
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9210
# Instead, shared libraries are loaded at an image base (0x10000000 by
9211
# default) and relocated if they conflict, which is a slow very memory
9212
# consuming and fragmenting process. To avoid this, we pick a random,
9213
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9214
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9215
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9216
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9219
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9221
if test "$host_os" = linux-dietlibc; then
9222
case $cc_basename in
9223
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9226
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9227
&& test "$tmp_diet" = no
9229
tmp_addflag=' $pic_flag'
9230
tmp_sharedflag='-shared'
9231
case $cc_basename,$host_cpu in
9232
pgcc*) # Portland Group C compiler
9233
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9234
tmp_addflag=' $pic_flag'
9236
pgf77* | pgf90* | pgf95* | pgfortran*)
9237
# Portland Group f77 and f90 compilers
9238
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9239
tmp_addflag=' $pic_flag -Mnomain' ;;
9240
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9241
tmp_addflag=' -i_dynamic' ;;
9242
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9243
tmp_addflag=' -i_dynamic -nofor_main' ;;
9244
ifc* | ifort*) # Intel Fortran compiler
9245
tmp_addflag=' -nofor_main' ;;
9246
lf95*) # Lahey Fortran 8.1
9247
whole_archive_flag_spec=
9248
tmp_sharedflag='--shared' ;;
9249
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9250
tmp_sharedflag='-qmkshrobj'
9252
nvcc*) # Cuda Compiler Driver 2.2
9253
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9254
compiler_needs_object=yes
9257
case `$CC -V 2>&1 | sed 5q` in
9258
*Sun\ C*) # Sun C 5.9
9259
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9260
compiler_needs_object=yes
9261
tmp_sharedflag='-G' ;;
9262
*Sun\ F*) # Sun Fortran 8.3
9263
tmp_sharedflag='-G' ;;
9265
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267
if test "x$supports_anon_versioning" = xyes; then
9268
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9269
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9270
echo "local: *; };" >> $output_objdir/$libname.ver~
9271
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9274
case $cc_basename in
9275
xlf* | bgf* | bgxlf* | mpixlf*)
9276
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9277
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9278
hardcode_libdir_flag_spec=
9279
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9280
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9281
if test "x$supports_anon_versioning" = xyes; then
9282
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9283
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9284
echo "local: *; };" >> $output_objdir/$libname.ver~
9285
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9295
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9296
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9299
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9309
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9310
*** create shared libraries on Solaris systems. Therefore, libtool
9311
*** is disabling shared libraries support. We urge you to upgrade GNU
9312
*** binutils to release 2.9.1 or newer. Another option is to modify
9313
*** your PATH or compiler configuration so that the native linker is
9314
*** used, and then restart.
9317
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9326
case `$LD -v 2>&1` in
9327
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9331
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9332
*** reliably create shared libraries on SCO systems. Therefore, libtool
9333
*** is disabling shared libraries support. We urge you to upgrade GNU
9334
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9335
*** your PATH or compiler configuration so that the native linker is
9336
*** used, and then restart.
9341
# For security reasons, it is highly recommended that you always
9342
# use absolute paths for naming shared libraries, and exclude the
9343
# DT_RUNPATH tag from executables and libraries. But doing so
9344
# requires that you compile everything twice, which is a pain.
9345
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9360
hardcode_shlibpath_var=no
9364
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373
if test "$ld_shlibs" = no; then
9375
hardcode_libdir_flag_spec=
9376
export_dynamic_flag_spec=
9377
whole_archive_flag_spec=
9380
# PORTME fill in a description of your system's linker (not GNU ld)
9383
allow_undefined_flag=unsupported
9384
always_export_symbols=yes
9385
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9386
# Note: this linker hardcodes the directories in LIBPATH if there
9387
# are no directories specified by -L.
9388
hardcode_minus_L=yes
9389
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9390
# Neither direct hardcoding nor static linking is supported with a
9392
hardcode_direct=unsupported
9397
if test "$host_cpu" = ia64; then
9398
# On IA64, the linker does run time linking by default, so we don't
9399
# have to do anything special.
9400
aix_use_runtimelinking=no
9401
exp_sym_flag='-Bexport'
9404
# If we're using GNU nm, then we don't want the "-C" option.
9405
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9406
# Also, AIX nm treats weak defined symbols like other global
9407
# defined symbols, whereas GNU nm marks them as "W".
9408
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9409
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9411
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9413
aix_use_runtimelinking=no
9415
# Test if we are trying to use run time linking or normal
9416
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9417
# need to do runtime linking.
9418
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9419
for ld_flag in $LDFLAGS; do
9420
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9421
aix_use_runtimelinking=yes
9428
exp_sym_flag='-bexport'
9429
no_entry_flag='-bnoentry'
9432
# When large executables or shared objects are built, AIX ld can
9433
# have problems creating the table of contents. If linking a library
9434
# or program results in "error TOC overflow" add -mminimal-toc to
9435
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9436
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9440
hardcode_direct_absolute=yes
9441
hardcode_libdir_separator=':'
9442
link_all_deplibs=yes
9443
file_list_spec='${wl}-f,'
9445
if test "$GCC" = yes; then
9446
case $host_os in aix4.[012]|aix4.[012].*)
9447
# We only want to do this on AIX 4.2 and lower, the check
9448
# below for broken collect2 doesn't work under 4.3+
9449
collect2name=`${CC} -print-prog-name=collect2`
9450
if test -f "$collect2name" &&
9451
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9453
# We have reworked collect2
9456
# We have old collect2
9457
hardcode_direct=unsupported
9458
# It fails to find uninstalled libraries when the uninstalled
9459
# path is not listed in the libpath. Setting hardcode_minus_L
9460
# to unsupported forces relinking
9461
hardcode_minus_L=yes
9462
hardcode_libdir_flag_spec='-L$libdir'
9463
hardcode_libdir_separator=
9467
shared_flag='-shared'
9468
if test "$aix_use_runtimelinking" = yes; then
9469
shared_flag="$shared_flag "'${wl}-G'
9473
if test "$host_cpu" = ia64; then
9474
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9475
# chokes on -Wl,-G. The following line is correct:
9478
if test "$aix_use_runtimelinking" = yes; then
9479
shared_flag='${wl}-G'
9481
shared_flag='${wl}-bM:SRE'
9486
export_dynamic_flag_spec='${wl}-bexpall'
9487
# It seems that -bexpall does not export symbols beginning with
9488
# underscore (_), so it is better to generate a list of symbols to export.
9489
always_export_symbols=yes
9490
if test "$aix_use_runtimelinking" = yes; then
9491
# Warning - without using the other runtime loading flags (-brtl),
9492
# -berok will link without error, but may produce a broken library.
9493
allow_undefined_flag='-berok'
9494
# Determine the default libpath from the value encoded in an
9496
if test "${lt_cv_aix_libpath+set}" = set; then
9497
aix_libpath=$lt_cv_aix_libpath
9499
if ${lt_cv_aix_libpath_+:} false; then :
9500
$as_echo_n "(cached) " >&6
9502
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503
/* end confdefs.h. */
9513
if ac_fn_c_try_link "$LINENO"; then :
9515
lt_aix_libpath_sed='
9516
/Import File Strings/,/^$/ {
9518
s/^0 *\([^ ]*\) *$/\1/
9522
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523
# Check for a 64-bit object if we didn't find anything.
9524
if test -z "$lt_cv_aix_libpath_"; then
9525
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528
rm -f core conftest.err conftest.$ac_objext \
9529
conftest$ac_exeext conftest.$ac_ext
9530
if test -z "$lt_cv_aix_libpath_"; then
9531
lt_cv_aix_libpath_="/usr/lib:/lib"
9536
aix_libpath=$lt_cv_aix_libpath_
9539
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9540
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9542
if test "$host_cpu" = ia64; then
9543
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9544
allow_undefined_flag="-z nodefs"
9545
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9547
# Determine the default libpath from the value encoded in an
9549
if test "${lt_cv_aix_libpath+set}" = set; then
9550
aix_libpath=$lt_cv_aix_libpath
9552
if ${lt_cv_aix_libpath_+:} false; then :
9553
$as_echo_n "(cached) " >&6
9555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556
/* end confdefs.h. */
9566
if ac_fn_c_try_link "$LINENO"; then :
9568
lt_aix_libpath_sed='
9569
/Import File Strings/,/^$/ {
9571
s/^0 *\([^ ]*\) *$/\1/
9575
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576
# Check for a 64-bit object if we didn't find anything.
9577
if test -z "$lt_cv_aix_libpath_"; then
9578
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581
rm -f core conftest.err conftest.$ac_objext \
9582
conftest$ac_exeext conftest.$ac_ext
9583
if test -z "$lt_cv_aix_libpath_"; then
9584
lt_cv_aix_libpath_="/usr/lib:/lib"
9589
aix_libpath=$lt_cv_aix_libpath_
9592
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9593
# Warning - without using the other run time loading flags,
9594
# -berok will link without error, but may produce a broken library.
9595
no_undefined_flag=' ${wl}-bernotok'
9596
allow_undefined_flag=' ${wl}-berok'
9597
if test "$with_gnu_ld" = yes; then
9598
# We only use this code for GNU lds that support --whole-archive.
9599
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9601
# Exported symbols can be pulled into shared objects from archives
9602
whole_archive_flag_spec='$convenience'
9604
archive_cmds_need_lc=yes
9605
# This is similar to how AIX traditionally builds its shared libraries.
9606
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9614
# see comment about AmigaOS4 .so support
9615
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616
archive_expsym_cmds=''
9619
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9620
hardcode_libdir_flag_spec='-L$libdir'
9621
hardcode_minus_L=yes
9627
export_dynamic_flag_spec=-rdynamic
9630
cygwin* | mingw* | pw32* | cegcc*)
9631
# When not using gcc, we currently assume that we are using
9632
# Microsoft Visual C++.
9633
# hardcode_libdir_flag_spec is actually meaningless, as there is
9634
# no search path for DLLs.
9635
case $cc_basename in
9638
hardcode_libdir_flag_spec=' '
9639
allow_undefined_flag=unsupported
9640
always_export_symbols=yes
9642
# Tell ltmain to make .lib files, not .a files.
9644
# Tell ltmain to make .dll files, not .so files.
9646
# FIXME: Setting linknames here is a bad hack.
9647
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9648
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9649
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9651
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9653
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9655
# The linker will not automatically build a static lib if we build a DLL.
9656
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9657
enable_shared_with_static_runtimes=yes
9658
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9660
old_postinstall_cmds='chmod 644 $oldlib'
9661
postlink_cmds='lt_outputfile="@OUTPUT@"~
9662
lt_tool_outputfile="@TOOL_OUTPUT@"~
9663
case $lt_outputfile in
9666
lt_outputfile="$lt_outputfile.exe"
9667
lt_tool_outputfile="$lt_tool_outputfile.exe"
9670
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9671
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672
$RM "$lt_outputfile.manifest";
9676
# Assume MSVC wrapper
9677
hardcode_libdir_flag_spec=' '
9678
allow_undefined_flag=unsupported
9679
# Tell ltmain to make .lib files, not .a files.
9681
# Tell ltmain to make .dll files, not .so files.
9683
# FIXME: Setting linknames here is a bad hack.
9684
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685
# The linker will automatically build a .lib file if we build a DLL.
9686
old_archive_from_new_cmds='true'
9687
# FIXME: Should let the user specify the lib program.
9688
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689
enable_shared_with_static_runtimes=yes
9694
darwin* | rhapsody*)
9697
archive_cmds_need_lc=no
9699
hardcode_automatic=yes
9700
hardcode_shlibpath_var=unsupported
9701
if test "$lt_cv_ld_force_load" = "yes"; then
9702
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9704
whole_archive_flag_spec=''
9706
link_all_deplibs=yes
9707
allow_undefined_flag="$_lt_dar_allow_undefined"
9708
case $cc_basename in
9709
ifort*) _lt_dar_can_shared=yes ;;
9710
*) _lt_dar_can_shared=$GCC ;;
9712
if test "$_lt_dar_can_shared" = "yes"; then
9713
output_verbose_link_cmd=func_echo_all
9714
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9715
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9716
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9717
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9726
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727
hardcode_libdir_flag_spec='-L$libdir'
9728
hardcode_shlibpath_var=no
9735
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9736
# support. Future versions do this automatically, but an explicit c++rt0.o
9737
# does not break anything, and helps significantly (at the cost of a little
9740
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9741
hardcode_libdir_flag_spec='-R$libdir'
9743
hardcode_shlibpath_var=no
9746
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9748
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750
hardcode_minus_L=yes
9751
hardcode_shlibpath_var=no
9754
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9755
freebsd* | dragonfly*)
9756
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9757
hardcode_libdir_flag_spec='-R$libdir'
9759
hardcode_shlibpath_var=no
9763
if test "$GCC" = yes; then
9764
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9766
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9768
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769
hardcode_libdir_separator=:
9772
# hardcode_minus_L: Not really in the search PATH,
9773
# but as the default location of the library.
9774
hardcode_minus_L=yes
9775
export_dynamic_flag_spec='${wl}-E'
9779
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9780
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9782
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9784
if test "$with_gnu_ld" = no; then
9785
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9786
hardcode_libdir_flag_spec_ld='+b $libdir'
9787
hardcode_libdir_separator=:
9789
hardcode_direct_absolute=yes
9790
export_dynamic_flag_spec='${wl}-E'
9791
# hardcode_minus_L: Not really in the search PATH,
9792
# but as the default location of the library.
9793
hardcode_minus_L=yes
9798
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9801
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9820
# Older versions of the 11.00 compiler do not understand -b yet
9821
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9823
$as_echo_n "checking if $CC understands -b... " >&6; }
9824
if ${lt_cv_prog_compiler__b+:} false; then :
9825
$as_echo_n "(cached) " >&6
9827
lt_cv_prog_compiler__b=no
9828
save_LDFLAGS="$LDFLAGS"
9829
LDFLAGS="$LDFLAGS -b"
9830
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9831
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9832
# The linker can only warn and ignore the option if not recognized
9833
# So say no if there are warnings
9834
if test -s conftest.err; then
9835
# Append any errors to the config.log.
9836
cat conftest.err 1>&5
9837
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9838
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9839
if diff conftest.exp conftest.er2 >/dev/null; then
9840
lt_cv_prog_compiler__b=yes
9843
lt_cv_prog_compiler__b=yes
9847
LDFLAGS="$save_LDFLAGS"
9850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9851
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9853
if test x"$lt_cv_prog_compiler__b" = xyes; then
9854
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862
if test "$with_gnu_ld" = no; then
9863
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9864
hardcode_libdir_separator=:
9869
hardcode_shlibpath_var=no
9873
hardcode_direct_absolute=yes
9874
export_dynamic_flag_spec='${wl}-E'
9876
# hardcode_minus_L: Not really in the search PATH,
9877
# but as the default location of the library.
9878
hardcode_minus_L=yes
9884
irix5* | irix6* | nonstopux*)
9885
if test "$GCC" = yes; then
9886
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9887
# Try to use the -exported_symbol ld option, if it does not
9888
# work, assume that -exports_file does not work either and
9889
# implicitly export all symbols.
9890
# This should be the same for all languages, so no per-tag cache variable.
9891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9892
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9893
if ${lt_cv_irix_exported_symbol+:} false; then :
9894
$as_echo_n "(cached) " >&6
9896
save_LDFLAGS="$LDFLAGS"
9897
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899
/* end confdefs.h. */
9900
int foo (void) { return 0; }
9902
if ac_fn_c_try_link "$LINENO"; then :
9903
lt_cv_irix_exported_symbol=yes
9905
lt_cv_irix_exported_symbol=no
9907
rm -f core conftest.err conftest.$ac_objext \
9908
conftest$ac_exeext conftest.$ac_ext
9909
LDFLAGS="$save_LDFLAGS"
9911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9912
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9913
if test "$lt_cv_irix_exported_symbol" = yes; then
9914
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9917
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9918
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9920
archive_cmds_need_lc='no'
9921
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922
hardcode_libdir_separator=:
9924
link_all_deplibs=yes
9928
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9929
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9931
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9933
hardcode_libdir_flag_spec='-R$libdir'
9935
hardcode_shlibpath_var=no
9939
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942
hardcode_libdir_separator=:
9943
hardcode_shlibpath_var=no
9950
if test -f /usr/libexec/ld.so; then
9952
hardcode_shlibpath_var=no
9953
hardcode_direct_absolute=yes
9954
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9955
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9956
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9957
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9958
export_dynamic_flag_spec='${wl}-E'
9961
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9962
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963
hardcode_libdir_flag_spec='-R$libdir'
9966
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9977
hardcode_libdir_flag_spec='-L$libdir'
9978
hardcode_minus_L=yes
9979
allow_undefined_flag=unsupported
9980
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9981
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9985
if test "$GCC" = yes; then
9986
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9987
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9989
allow_undefined_flag=' -expect_unresolved \*'
9990
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9992
archive_cmds_need_lc='no'
9993
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9994
hardcode_libdir_separator=:
9997
osf4* | osf5*) # as osf3* with the addition of -msym flag
9998
if test "$GCC" = yes; then
9999
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10000
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10001
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003
allow_undefined_flag=' -expect_unresolved \*'
10004
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10005
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10006
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10008
# Both c and cxx compiler support -rpath directly
10009
hardcode_libdir_flag_spec='-rpath $libdir'
10011
archive_cmds_need_lc='no'
10012
hardcode_libdir_separator=:
10016
no_undefined_flag=' -z defs'
10017
if test "$GCC" = yes; then
10019
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10020
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10021
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10023
case `$CC -V 2>&1` in
10026
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10027
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10028
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10032
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10034
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10038
hardcode_libdir_flag_spec='-R$libdir'
10039
hardcode_shlibpath_var=no
10041
solaris2.[0-5] | solaris2.[0-5].*) ;;
10043
# The compiler driver will combine and reorder linker options,
10044
# but understands `-z linker_flag'. GCC discards it without `$wl',
10045
# but is careful enough not to reorder.
10046
# Supported since Solaris 2.6 (maybe 2.5.1?)
10047
if test "$GCC" = yes; then
10048
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10050
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10054
link_all_deplibs=yes
10058
if test "x$host_vendor" = xsequent; then
10059
# Use $CC to link under sequent, because it throws in some extra .o
10060
# files that make .init and .fini sections work.
10061
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10065
hardcode_libdir_flag_spec='-L$libdir'
10066
hardcode_direct=yes
10067
hardcode_minus_L=yes
10068
hardcode_shlibpath_var=no
10072
case $host_vendor in
10074
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075
hardcode_direct=yes # is this really true???
10078
## LD is ld it makes a PLAMLIB
10079
## CC just makes a GrossModule.
10080
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10081
reload_cmds='$CC -r -o $output$reload_objs'
10085
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10089
runpath_var='LD_RUN_PATH'
10090
hardcode_shlibpath_var=no
10094
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095
hardcode_shlibpath_var=no
10096
export_dynamic_flag_spec='-Bexport'
10100
if test -d /usr/nec; then
10101
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102
hardcode_shlibpath_var=no
10103
runpath_var=LD_RUN_PATH
10104
hardcode_runpath_var=yes
10109
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10110
no_undefined_flag='${wl}-z,text'
10111
archive_cmds_need_lc=no
10112
hardcode_shlibpath_var=no
10113
runpath_var='LD_RUN_PATH'
10115
if test "$GCC" = yes; then
10116
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124
sysv5* | sco3.2v5* | sco5v6*)
10125
# Note: We can NOT use -z defs as we might desire, because we do not
10126
# link with -lc, and that would cause any symbols used from libc to
10127
# always be unresolved, which means just about no library would
10128
# ever link correctly. If we're not using GNU ld we use -z text
10129
# though, which does catch some bad symbols but isn't as heavy-handed
10131
no_undefined_flag='${wl}-z,text'
10132
allow_undefined_flag='${wl}-z,nodefs'
10133
archive_cmds_need_lc=no
10134
hardcode_shlibpath_var=no
10135
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10136
hardcode_libdir_separator=':'
10137
link_all_deplibs=yes
10138
export_dynamic_flag_spec='${wl}-Bexport'
10139
runpath_var='LD_RUN_PATH'
10141
if test "$GCC" = yes; then
10142
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152
hardcode_libdir_flag_spec='-L$libdir'
10153
hardcode_shlibpath_var=no
10161
if test x$host_vendor = xsni; then
10163
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10164
export_dynamic_flag_spec='${wl}-Blargedynsym'
10170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10171
$as_echo "$ld_shlibs" >&6; }
10172
test "$ld_shlibs" = no && can_build_shared=no
10174
with_gnu_ld=$with_gnu_ld
10191
# Do we need to explicitly link libc?
10193
case "x$archive_cmds_need_lc" in
10195
# Assume -lc should be added
10196
archive_cmds_need_lc=yes
10198
if test "$enable_shared" = yes && test "$GCC" = yes; then
10199
case $archive_cmds in
10201
# FIXME: we may have to deal with multi-command sequences.
10204
# Test whether the compiler implicitly links with -lc since on some
10205
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10206
# to ld, don't add -lc before -lgcc.
10207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10208
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10209
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10210
$as_echo_n "(cached) " >&6
10213
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10215
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10216
(eval $ac_compile) 2>&5
10218
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219
test $ac_status = 0; } 2>conftest.err; then
10222
libobjs=conftest.$ac_objext
10224
wl=$lt_prog_compiler_wl
10225
pic_flag=$lt_prog_compiler_pic
10231
lt_save_allow_undefined_flag=$allow_undefined_flag
10232
allow_undefined_flag=
10233
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10234
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10236
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237
test $ac_status = 0; }
10239
lt_cv_archive_cmds_need_lc=no
10241
lt_cv_archive_cmds_need_lc=yes
10243
allow_undefined_flag=$lt_save_allow_undefined_flag
10245
cat conftest.err 1>&5
10250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10251
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10252
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10416
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10418
if test "$GCC" = yes; then
10420
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10421
*) lt_awk_arg="/^libraries:/" ;;
10424
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10425
*) lt_sed_strip_eq="s,=/,/,g" ;;
10427
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10428
case $lt_search_path_spec in
10430
# if the path contains ";" then we assume it to be the separator
10431
# otherwise default to the standard path separator (i.e. ":") - it is
10432
# assumed that no part of a normal pathname contains ";" but that should
10433
# okay in the real world where ";" in dirpaths is itself problematic.
10434
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10437
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10440
# Ok, now we have the path, separated by spaces, we can step through it
10441
# and add multilib dir if necessary.
10442
lt_tmp_lt_search_path_spec=
10443
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10444
for lt_sys_path in $lt_search_path_spec; do
10445
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10446
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10448
test -d "$lt_sys_path" && \
10449
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10452
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10453
BEGIN {RS=" "; FS="/|\n";} {
10456
for (lt_i = NF; lt_i > 0; lt_i--) {
10457
if ($lt_i != "" && $lt_i != ".") {
10458
if ($lt_i == "..") {
10461
if (lt_count == 0) {
10462
lt_foo="/" $lt_i lt_foo;
10469
if (lt_foo != "") { lt_freq[lt_foo]++; }
10470
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10472
# AWK program above erroneously prepends '/' to C:/dos/paths
10475
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10476
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10478
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10480
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10482
library_names_spec=
10483
libname_spec='lib$name'
10487
postuninstall_cmds=
10491
shlibpath_overrides_runpath=unknown
10493
dynamic_linker="$host_os ld.so"
10494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10495
need_lib_prefix=unknown
10496
hardcode_into_libs=no
10498
# when you set need_version to no, make sure it does not cause -set_version
10499
# flags to be left without arguments
10500
need_version=unknown
10505
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10506
shlibpath_var=LIBPATH
10508
# AIX 3 has no versioning support, so we append a major version to the name.
10509
soname_spec='${libname}${release}${shared_ext}$major'
10516
hardcode_into_libs=yes
10517
if test "$host_cpu" = ia64; then
10518
# AIX 5 supports IA64
10519
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10520
shlibpath_var=LD_LIBRARY_PATH
10522
# With GCC up to 2.95.x, collect2 would create an import file
10523
# for dependence libraries. The import file would start with
10524
# the line `#! .'. This would cause the generated library to
10525
# depend on `.', always an invalid library. This was fixed in
10526
# development snapshots of GCC prior to 3.0.
10528
aix4 | aix4.[01] | aix4.[01].*)
10529
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10531
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10534
can_build_shared=no
10538
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10539
# soname into executable. Probably we can add versioning support to
10540
# collect2, so additional links can be useful in future.
10541
if test "$aix_use_runtimelinking" = yes; then
10542
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10543
# instead of lib<name>.a to let people know that these are not
10544
# typical AIX shared libraries.
10545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547
# We preserve .a as extension for shared libraries through AIX4.2
10548
# and later when we are not doing run time linking.
10549
library_names_spec='${libname}${release}.a $libname.a'
10550
soname_spec='${libname}${release}${shared_ext}$major'
10552
shlibpath_var=LIBPATH
10559
# Since July 2007 AmigaOS4 officially supports .so libraries.
10560
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564
library_names_spec='$libname.ixlibrary $libname.a'
10565
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10566
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10572
library_names_spec='${libname}${shared_ext}'
10573
dynamic_linker="$host_os ld.so"
10574
shlibpath_var=LIBRARY_PATH
10580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581
soname_spec='${libname}${release}${shared_ext}$major'
10582
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10583
shlibpath_var=LD_LIBRARY_PATH
10584
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10585
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10586
# the default ld.so.conf also contains /usr/contrib/lib and
10587
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10588
# libtool to hard-code these into programs
10591
cygwin* | mingw* | pw32* | cegcc*)
10592
version_type=windows
10597
case $GCC,$cc_basename in
10600
library_names_spec='$libname.dll.a'
10601
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10602
postinstall_cmds='base_file=`basename \${file}`~
10603
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10604
dldir=$destdir/`dirname \$dlpath`~
10605
test -d \$dldir || mkdir -p \$dldir~
10606
$install_prog $dir/$dlname \$dldir/$dlname~
10607
chmod a+x \$dldir/$dlname~
10608
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10609
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10611
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10612
dlpath=$dir/\$dldll~
10614
shlibpath_overrides_runpath=yes
10618
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10619
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10621
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10624
# MinGW DLLs use traditional 'lib' prefix
10625
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10628
# pw32 DLLs use 'pw' prefix rather than 'lib'
10629
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
dynamic_linker='Win32 ld.exe'
10637
libname_spec='$name'
10638
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10639
library_names_spec='${libname}.dll.lib'
10643
sys_lib_search_path_spec=
10646
for lt_path in $LIB
10649
# Let DOS variable expansion print the short 8.3 style file name.
10650
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10651
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10654
# Convert to MSYS style.
10655
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10658
# Convert to unix form, then to dos form, then back to unix form
10659
# but this time dos style (no spaces!) so that the unix form looks
10660
# like /cygdrive/c/PROGRA~1:/cygdr...
10661
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10662
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10663
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10666
sys_lib_search_path_spec="$LIB"
10667
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10668
# It is most probably a Windows format PATH.
10669
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10671
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10673
# FIXME: find the short name or the path components, as spaces are
10674
# common. (e.g. "Program Files" -> "PROGRA~1")
10678
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10679
postinstall_cmds='base_file=`basename \${file}`~
10680
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10681
dldir=$destdir/`dirname \$dlpath`~
10682
test -d \$dldir || mkdir -p \$dldir~
10683
$install_prog $dir/$dlname \$dldir/$dlname'
10684
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10685
dlpath=$dir/\$dldll~
10687
shlibpath_overrides_runpath=yes
10688
dynamic_linker='Win32 link.exe'
10692
# Assume MSVC wrapper
10693
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10694
dynamic_linker='Win32 ld.exe'
10697
# FIXME: first we should search . and the directory the executable is in
10701
darwin* | rhapsody*)
10702
dynamic_linker="$host_os dyld"
10703
version_type=darwin
10706
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10707
soname_spec='${libname}${release}${major}$shared_ext'
10708
shlibpath_overrides_runpath=yes
10709
shlibpath_var=DYLD_LIBRARY_PATH
10710
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10712
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10713
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10720
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10721
soname_spec='${libname}${release}${shared_ext}$major'
10722
shlibpath_var=LD_LIBRARY_PATH
10729
freebsd* | dragonfly*)
10730
# DragonFly does not have aout. When/if they implement a new
10731
# versioning mechanism, adjust this.
10732
if test -x /usr/bin/objformat; then
10733
objformat=`/usr/bin/objformat`
10736
freebsd[123]*) objformat=aout ;;
10737
*) objformat=elf ;;
10740
version_type=freebsd-$objformat
10741
case $version_type in
10743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10748
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10752
shlibpath_var=LD_LIBRARY_PATH
10755
shlibpath_overrides_runpath=yes
10757
freebsd3.[01]* | freebsdelf3.[01]*)
10758
shlibpath_overrides_runpath=yes
10759
hardcode_into_libs=yes
10761
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10762
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10763
shlibpath_overrides_runpath=no
10764
hardcode_into_libs=yes
10766
*) # from 4.6 on, and DragonFly
10767
shlibpath_overrides_runpath=yes
10768
hardcode_into_libs=yes
10777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10778
soname_spec='${libname}${release}${shared_ext}$major'
10779
shlibpath_var=LD_LIBRARY_PATH
10780
hardcode_into_libs=yes
10787
dynamic_linker="$host_os runtime_loader"
10788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10789
soname_spec='${libname}${release}${shared_ext}$major'
10790
shlibpath_var=LIBRARY_PATH
10791
shlibpath_overrides_runpath=yes
10792
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10793
hardcode_into_libs=yes
10796
hpux9* | hpux10* | hpux11*)
10797
# Give a soname corresponding to the major version so that dld.sl refuses to
10798
# link against other versions.
10805
hardcode_into_libs=yes
10806
dynamic_linker="$host_os dld.so"
10807
shlibpath_var=LD_LIBRARY_PATH
10808
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810
soname_spec='${libname}${release}${shared_ext}$major'
10811
if test "X$HPUX_IA64_MODE" = X32; then
10812
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10814
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10816
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820
hardcode_into_libs=yes
10821
dynamic_linker="$host_os dld.sl"
10822
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10823
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825
soname_spec='${libname}${release}${shared_ext}$major'
10826
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10827
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10831
dynamic_linker="$host_os dld.sl"
10832
shlibpath_var=SHLIB_PATH
10833
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835
soname_spec='${libname}${release}${shared_ext}$major'
10838
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10839
postinstall_cmds='chmod 555 $lib'
10840
# or fails outright, so override atomically:
10841
install_override_mode=555
10848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10849
soname_spec='${libname}${release}${shared_ext}$major'
10850
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10851
shlibpath_var=LD_LIBRARY_PATH
10852
shlibpath_overrides_runpath=no
10853
hardcode_into_libs=yes
10856
irix5* | irix6* | nonstopux*)
10858
nonstopux*) version_type=nonstopux ;;
10860
if test "$lt_cv_prog_gnu_ld" = yes; then
10868
soname_spec='${libname}${release}${shared_ext}$major'
10869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10871
irix5* | nonstopux*)
10872
libsuff= shlibsuff=
10875
case $LD in # libtool.m4 will add one of these switches to LD
10876
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10877
libsuff= shlibsuff= libmagic=32-bit;;
10878
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10879
libsuff=32 shlibsuff=N32 libmagic=N32;;
10880
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10881
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10882
*) libsuff= shlibsuff= libmagic=never-match;;
10886
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10887
shlibpath_overrides_runpath=no
10888
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10889
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10890
hardcode_into_libs=yes
10893
# No shared lib support for Linux oldld, aout, or coff.
10894
linux*oldld* | linux*aout* | linux*coff*)
10898
# This must be Linux ELF.
10899
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904
soname_spec='${libname}${release}${shared_ext}$major'
10905
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10906
shlibpath_var=LD_LIBRARY_PATH
10907
shlibpath_overrides_runpath=no
10909
# Some binutils ld are patched to set DT_RUNPATH
10910
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10911
$as_echo_n "(cached) " >&6
10913
lt_cv_shlibpath_overrides_runpath=no
10914
save_LDFLAGS=$LDFLAGS
10915
save_libdir=$libdir
10916
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10917
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919
/* end confdefs.h. */
10929
if ac_fn_c_try_link "$LINENO"; then :
10930
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10931
lt_cv_shlibpath_overrides_runpath=yes
10934
rm -f core conftest.err conftest.$ac_objext \
10935
conftest$ac_exeext conftest.$ac_ext
10936
LDFLAGS=$save_LDFLAGS
10937
libdir=$save_libdir
10941
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10943
# This implies no fast_install, which is unacceptable.
10944
# Some rework will be needed to allow for fast_install
10945
# before this can be enabled.
10946
hardcode_into_libs=yes
10948
# Add ABI-specific directories to the system library path.
10949
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10951
# Append ld.so.conf contents to the search path
10952
if test -f /etc/ld.so.conf; then
10953
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;s/"//g;/^$/d' | tr '\n' ' '`
10954
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10958
# We used to test for /lib/ld.so.1 and disable shared libraries on
10959
# powerpc, because MkLinux only supported shared libraries with the
10960
# GNU dynamic linker. Since this was broken with cross compilers,
10961
# most powerpc-linux boxes support dynamic linking these days and
10962
# people can always --disable-shared, the test was removed, and we
10963
# assume the GNU/Linux dynamic linker is in use.
10964
dynamic_linker='GNU/Linux ld.so'
10971
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10974
dynamic_linker='NetBSD (a.out) ld.so'
10976
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10977
soname_spec='${libname}${release}${shared_ext}$major'
10978
dynamic_linker='NetBSD ld.elf_so'
10980
shlibpath_var=LD_LIBRARY_PATH
10981
shlibpath_overrides_runpath=yes
10982
hardcode_into_libs=yes
10987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988
shlibpath_var=LD_LIBRARY_PATH
10989
shlibpath_overrides_runpath=yes
10996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997
soname_spec='${libname}${release}${shared_ext}$major'
10998
shlibpath_var=LD_LIBRARY_PATH
10999
shlibpath_overrides_runpath=no
11000
hardcode_into_libs=yes
11001
dynamic_linker='ldqnx.so'
11006
sys_lib_dlsearch_path_spec="/usr/lib"
11008
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11010
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11011
*) need_version=no ;;
11013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11014
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11015
shlibpath_var=LD_LIBRARY_PATH
11016
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11018
openbsd2.[89] | openbsd2.[89].*)
11019
shlibpath_overrides_runpath=no
11022
shlibpath_overrides_runpath=yes
11026
shlibpath_overrides_runpath=yes
11031
libname_spec='$name'
11034
library_names_spec='$libname${shared_ext} $libname.a'
11035
dynamic_linker='OS/2 ld.exe'
11036
shlibpath_var=LIBPATH
11039
osf3* | osf4* | osf5*)
11043
soname_spec='${libname}${release}${shared_ext}$major'
11044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045
shlibpath_var=LD_LIBRARY_PATH
11046
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11047
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059
soname_spec='${libname}${release}${shared_ext}$major'
11060
shlibpath_var=LD_LIBRARY_PATH
11061
shlibpath_overrides_runpath=yes
11062
hardcode_into_libs=yes
11063
# ldd complains unless libraries are executable
11064
postinstall_cmds='chmod +x $lib'
11069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11070
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11071
shlibpath_var=LD_LIBRARY_PATH
11072
shlibpath_overrides_runpath=yes
11073
if test "$with_gnu_ld" = yes; then
11081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082
soname_spec='${libname}${release}${shared_ext}$major'
11083
shlibpath_var=LD_LIBRARY_PATH
11084
case $host_vendor in
11086
shlibpath_overrides_runpath=no
11088
runpath_var=LD_RUN_PATH
11096
shlibpath_overrides_runpath=no
11097
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11103
if test -d /usr/nec ;then
11105
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11106
soname_spec='$libname${shared_ext}.$major'
11107
shlibpath_var=LD_LIBRARY_PATH
11111
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11112
version_type=freebsd-elf
11115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11116
soname_spec='${libname}${release}${shared_ext}$major'
11117
shlibpath_var=LD_LIBRARY_PATH
11118
shlibpath_overrides_runpath=yes
11119
hardcode_into_libs=yes
11120
if test "$with_gnu_ld" = yes; then
11121
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11123
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11126
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11130
sys_lib_dlsearch_path_spec='/usr/lib'
11134
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139
shlibpath_var=LD_LIBRARY_PATH
11140
shlibpath_overrides_runpath=no
11141
hardcode_into_libs=yes
11146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147
soname_spec='${libname}${release}${shared_ext}$major'
11148
shlibpath_var=LD_LIBRARY_PATH
11155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11156
$as_echo "$dynamic_linker" >&6; }
11157
test "$dynamic_linker" = no && can_build_shared=no
11159
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11160
if test "$GCC" = yes; then
11161
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11164
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11165
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11167
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11168
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11263
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11265
if test -n "$hardcode_libdir_flag_spec" ||
11266
test -n "$runpath_var" ||
11267
test "X$hardcode_automatic" = "Xyes" ; then
11269
# We can hardcode non-existent directories.
11270
if test "$hardcode_direct" != no &&
11271
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11272
# have to relink, otherwise we might link with an installed library
11273
# when we should be linking with a yet-to-be-installed one
11274
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11275
test "$hardcode_minus_L" != no; then
11276
# Linking always hardcodes the temporary library directory.
11277
hardcode_action=relink
11279
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11280
hardcode_action=immediate
11283
# We cannot hardcode anything, or else we can only hardcode existing
11285
hardcode_action=unsupported
11287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11288
$as_echo "$hardcode_action" >&6; }
11290
if test "$hardcode_action" = relink ||
11291
test "$inherit_rpath" = yes; then
11292
# Fast installation is not supported
11293
enable_fast_install=no
11294
elif test "$shlibpath_overrides_runpath" = yes ||
11295
test "$enable_shared" = no; then
11296
# Fast installation is not necessary
11297
enable_fast_install=needless
11305
if test "x$enable_dlopen" != xyes; then
11306
enable_dlopen=unknown
11307
enable_dlopen_self=unknown
11308
enable_dlopen_self_static=unknown
11315
lt_cv_dlopen="load_add_on"
11317
lt_cv_dlopen_self=yes
11320
mingw* | pw32* | cegcc*)
11321
lt_cv_dlopen="LoadLibrary"
11326
lt_cv_dlopen="dlopen"
11331
# if libdl is installed we need to link against it
11332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11334
if ${ac_cv_lib_dl_dlopen+:} false; then :
11335
$as_echo_n "(cached) " >&6
11337
ac_check_lib_save_LIBS=$LIBS
11339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340
/* end confdefs.h. */
11342
/* Override any GCC internal prototype to avoid an error.
11343
Use char because int might match the return type of a GCC
11344
builtin and then its argument prototype would still apply. */
11357
if ac_fn_c_try_link "$LINENO"; then :
11358
ac_cv_lib_dl_dlopen=yes
11360
ac_cv_lib_dl_dlopen=no
11362
rm -f core conftest.err conftest.$ac_objext \
11363
conftest$ac_exeext conftest.$ac_ext
11364
LIBS=$ac_check_lib_save_LIBS
11366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11368
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11369
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11372
lt_cv_dlopen="dyld"
11374
lt_cv_dlopen_self=yes
11381
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11382
if test "x$ac_cv_func_shl_load" = xyes; then :
11383
lt_cv_dlopen="shl_load"
11385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11386
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11387
if ${ac_cv_lib_dld_shl_load+:} false; then :
11388
$as_echo_n "(cached) " >&6
11390
ac_check_lib_save_LIBS=$LIBS
11392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393
/* end confdefs.h. */
11395
/* Override any GCC internal prototype to avoid an error.
11396
Use char because int might match the return type of a GCC
11397
builtin and then its argument prototype would still apply. */
11405
return shl_load ();
11410
if ac_fn_c_try_link "$LINENO"; then :
11411
ac_cv_lib_dld_shl_load=yes
11413
ac_cv_lib_dld_shl_load=no
11415
rm -f core conftest.err conftest.$ac_objext \
11416
conftest$ac_exeext conftest.$ac_ext
11417
LIBS=$ac_check_lib_save_LIBS
11419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11420
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11421
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11422
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11424
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11425
if test "x$ac_cv_func_dlopen" = xyes; then :
11426
lt_cv_dlopen="dlopen"
11428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11429
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11430
if ${ac_cv_lib_dl_dlopen+:} false; then :
11431
$as_echo_n "(cached) " >&6
11433
ac_check_lib_save_LIBS=$LIBS
11435
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436
/* end confdefs.h. */
11438
/* Override any GCC internal prototype to avoid an error.
11439
Use char because int might match the return type of a GCC
11440
builtin and then its argument prototype would still apply. */
11453
if ac_fn_c_try_link "$LINENO"; then :
11454
ac_cv_lib_dl_dlopen=yes
11456
ac_cv_lib_dl_dlopen=no
11458
rm -f core conftest.err conftest.$ac_objext \
11459
conftest$ac_exeext conftest.$ac_ext
11460
LIBS=$ac_check_lib_save_LIBS
11462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11463
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11464
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11465
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11468
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11469
if ${ac_cv_lib_svld_dlopen+:} false; then :
11470
$as_echo_n "(cached) " >&6
11472
ac_check_lib_save_LIBS=$LIBS
11473
LIBS="-lsvld $LIBS"
11474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475
/* end confdefs.h. */
11477
/* Override any GCC internal prototype to avoid an error.
11478
Use char because int might match the return type of a GCC
11479
builtin and then its argument prototype would still apply. */
11492
if ac_fn_c_try_link "$LINENO"; then :
11493
ac_cv_lib_svld_dlopen=yes
11495
ac_cv_lib_svld_dlopen=no
11497
rm -f core conftest.err conftest.$ac_objext \
11498
conftest$ac_exeext conftest.$ac_ext
11499
LIBS=$ac_check_lib_save_LIBS
11501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11502
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11503
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11504
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11507
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11508
if ${ac_cv_lib_dld_dld_link+:} false; then :
11509
$as_echo_n "(cached) " >&6
11511
ac_check_lib_save_LIBS=$LIBS
11513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514
/* end confdefs.h. */
11516
/* Override any GCC internal prototype to avoid an error.
11517
Use char because int might match the return type of a GCC
11518
builtin and then its argument prototype would still apply. */
11526
return dld_link ();
11531
if ac_fn_c_try_link "$LINENO"; then :
11532
ac_cv_lib_dld_dld_link=yes
11534
ac_cv_lib_dld_dld_link=no
11536
rm -f core conftest.err conftest.$ac_objext \
11537
conftest$ac_exeext conftest.$ac_ext
11538
LIBS=$ac_check_lib_save_LIBS
11540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11541
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11542
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11543
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11564
if test "x$lt_cv_dlopen" != xno; then
11570
case $lt_cv_dlopen in
11572
save_CPPFLAGS="$CPPFLAGS"
11573
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11575
save_LDFLAGS="$LDFLAGS"
11576
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11579
LIBS="$lt_cv_dlopen_libs $LIBS"
11581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11582
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11583
if ${lt_cv_dlopen_self+:} false; then :
11584
$as_echo_n "(cached) " >&6
11586
if test "$cross_compiling" = yes; then :
11587
lt_cv_dlopen_self=cross
11589
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590
lt_status=$lt_dlunknown
11591
cat > conftest.$ac_ext <<_LT_EOF
11592
#line $LINENO "configure"
11593
#include "confdefs.h"
11602
# define LT_DLGLOBAL RTLD_GLOBAL
11605
# define LT_DLGLOBAL DL_GLOBAL
11607
# define LT_DLGLOBAL 0
11611
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612
find out it does not work in some platform. */
11613
#ifndef LT_DLLAZY_OR_NOW
11615
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11618
# define LT_DLLAZY_OR_NOW DL_LAZY
11621
# define LT_DLLAZY_OR_NOW RTLD_NOW
11624
# define LT_DLLAZY_OR_NOW DL_NOW
11626
# define LT_DLLAZY_OR_NOW 0
11633
/* When -fvisbility=hidden is used, assume the code has been annotated
11634
correspondingly for the symbols needed. */
11635
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636
int fnord () __attribute__((visibility("default")));
11639
int fnord () { return 42; }
11642
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643
int status = $lt_dlunknown;
11647
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11650
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651
else puts (dlerror ());
11653
/* dlclose (self); */
11661
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662
(eval $ac_link) 2>&5
11664
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11666
(./conftest; exit; ) >&5 2>/dev/null
11668
case x$lt_status in
11669
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11670
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11671
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11674
# compilation failed
11675
lt_cv_dlopen_self=no
11682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11683
$as_echo "$lt_cv_dlopen_self" >&6; }
11685
if test "x$lt_cv_dlopen_self" = xyes; then
11686
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11688
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11689
if ${lt_cv_dlopen_self_static+:} false; then :
11690
$as_echo_n "(cached) " >&6
11692
if test "$cross_compiling" = yes; then :
11693
lt_cv_dlopen_self_static=cross
11695
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11696
lt_status=$lt_dlunknown
11697
cat > conftest.$ac_ext <<_LT_EOF
11698
#line $LINENO "configure"
11699
#include "confdefs.h"
11708
# define LT_DLGLOBAL RTLD_GLOBAL
11711
# define LT_DLGLOBAL DL_GLOBAL
11713
# define LT_DLGLOBAL 0
11717
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11718
find out it does not work in some platform. */
11719
#ifndef LT_DLLAZY_OR_NOW
11721
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11724
# define LT_DLLAZY_OR_NOW DL_LAZY
11727
# define LT_DLLAZY_OR_NOW RTLD_NOW
11730
# define LT_DLLAZY_OR_NOW DL_NOW
11732
# define LT_DLLAZY_OR_NOW 0
11739
/* When -fvisbility=hidden is used, assume the code has been annotated
11740
correspondingly for the symbols needed. */
11741
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11742
int fnord () __attribute__((visibility("default")));
11745
int fnord () { return 42; }
11748
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749
int status = $lt_dlunknown;
11753
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11756
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757
else puts (dlerror ());
11759
/* dlclose (self); */
11767
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11768
(eval $ac_link) 2>&5
11770
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11772
(./conftest; exit; ) >&5 2>/dev/null
11774
case x$lt_status in
11775
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11776
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11777
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11780
# compilation failed
11781
lt_cv_dlopen_self_static=no
11788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11789
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11792
CPPFLAGS="$save_CPPFLAGS"
11793
LDFLAGS="$save_LDFLAGS"
11798
case $lt_cv_dlopen_self in
11799
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11800
*) enable_dlopen_self=unknown ;;
11803
case $lt_cv_dlopen_self_static in
11804
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11805
*) enable_dlopen_self_static=unknown ;;
11827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11828
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11829
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11830
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11831
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833
$as_echo "yes" >&6; }
11835
# FIXME - insert some real tests, host_os isn't really good enough
11838
if test -n "$STRIP" ; then
11839
striplib="$STRIP -x"
11840
old_striplib="$STRIP -S"
11841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842
$as_echo "yes" >&6; }
11844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845
$as_echo "no" >&6; }
11849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850
$as_echo "no" >&6; }
11866
# Report which library types will actually be built
11867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11868
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11870
$as_echo "$can_build_shared" >&6; }
11872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11873
$as_echo_n "checking whether to build shared libraries... " >&6; }
11874
test "$can_build_shared" = "no" && enable_shared=no
11876
# On AIX, shared libraries and static libraries use the same namespace, and
11877
# are all built from PIC.
11880
test "$enable_shared" = yes && enable_static=no
11881
if test -n "$RANLIB"; then
11882
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11883
postinstall_cmds='$RANLIB $lib'
11888
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11889
test "$enable_shared" = yes && enable_static=no
11893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11894
$as_echo "$enable_shared" >&6; }
11896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11897
$as_echo_n "checking whether to build static libraries... " >&6; }
11898
# Make sure either enable_shared or enable_static is yes.
11899
test "$enable_shared" = yes || enable_static=yes
11900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11901
$as_echo "$enable_static" >&6; }
11908
ac_cpp='$CPP $CPPFLAGS'
11909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927
ac_config_commands="$ac_config_commands libtool"
11932
# Only expand once:
11938
if test -n "$ac_aux_dir"; then
11939
case "$ac_aux_dir" in
11940
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11941
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11944
if test -z "$MKINSTALLDIRS"; then
11945
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11951
$as_echo_n "checking whether NLS is requested... " >&6; }
11952
# Check whether --enable-nls was given.
11953
if test "${enable_nls+set}" = set; then :
11954
enableval=$enable_nls; USE_NLS=$enableval
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11960
$as_echo "$USE_NLS" >&6; }
11967
# Prepare PATH_SEPARATOR.
11968
# The user is always right.
11969
if test "${PATH_SEPARATOR+set}" != set; then
11970
echo "#! /bin/sh" >conf$$.sh
11971
echo "exit 0" >>conf$$.sh
11973
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11981
# Find out how to test for executable files. Don't use a zero-byte file,
11982
# as systems may use methods other than mode bits to determine executability.
11983
cat >conf$$.file <<_ASEOF
11987
chmod +x conf$$.file
11988
if test -x conf$$.file >/dev/null 2>&1; then
11989
ac_executable_p="test -x"
11991
ac_executable_p="test -f"
11995
# Extract the first word of "msgfmt", so it can be a program name with args.
11996
set dummy msgfmt; ac_word=$2
11997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998
$as_echo_n "checking for $ac_word... " >&6; }
11999
if ${ac_cv_path_MSGFMT+:} false; then :
12000
$as_echo_n "(cached) " >&6
12004
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12007
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12008
for ac_dir in $PATH; do
12010
test -z "$ac_dir" && ac_dir=.
12011
for ac_exec_ext in '' $ac_executable_extensions; do
12012
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12013
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12014
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12015
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12022
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12026
MSGFMT="$ac_cv_path_MSGFMT"
12027
if test "$MSGFMT" != ":"; then
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12029
$as_echo "$MSGFMT" >&6; }
12031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032
$as_echo "no" >&6; }
12035
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12036
set dummy gmsgfmt; ac_word=$2
12037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038
$as_echo_n "checking for $ac_word... " >&6; }
12039
if ${ac_cv_path_GMSGFMT+:} false; then :
12040
$as_echo_n "(cached) " >&6
12044
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048
for as_dir in $PATH
12051
test -z "$as_dir" && as_dir=.
12052
for ac_exec_ext in '' $ac_executable_extensions; do
12053
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12055
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12066
GMSGFMT=$ac_cv_path_GMSGFMT
12067
if test -n "$GMSGFMT"; then
12068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12069
$as_echo "$GMSGFMT" >&6; }
12071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072
$as_echo "no" >&6; }
12078
# Prepare PATH_SEPARATOR.
12079
# The user is always right.
12080
if test "${PATH_SEPARATOR+set}" != set; then
12081
echo "#! /bin/sh" >conf$$.sh
12082
echo "exit 0" >>conf$$.sh
12084
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12092
# Find out how to test for executable files. Don't use a zero-byte file,
12093
# as systems may use methods other than mode bits to determine executability.
12094
cat >conf$$.file <<_ASEOF
12098
chmod +x conf$$.file
12099
if test -x conf$$.file >/dev/null 2>&1; then
12100
ac_executable_p="test -x"
12102
ac_executable_p="test -f"
12106
# Extract the first word of "xgettext", so it can be a program name with args.
12107
set dummy xgettext; ac_word=$2
12108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109
$as_echo_n "checking for $ac_word... " >&6; }
12110
if ${ac_cv_path_XGETTEXT+:} false; then :
12111
$as_echo_n "(cached) " >&6
12113
case "$XGETTEXT" in
12115
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12118
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12119
for ac_dir in $PATH; do
12121
test -z "$ac_dir" && ac_dir=.
12122
for ac_exec_ext in '' $ac_executable_extensions; do
12123
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12124
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12125
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12126
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12133
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12137
XGETTEXT="$ac_cv_path_XGETTEXT"
12138
if test "$XGETTEXT" != ":"; then
12139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12140
$as_echo "$XGETTEXT" >&6; }
12142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143
$as_echo "no" >&6; }
12149
# Prepare PATH_SEPARATOR.
12150
# The user is always right.
12151
if test "${PATH_SEPARATOR+set}" != set; then
12152
echo "#! /bin/sh" >conf$$.sh
12153
echo "exit 0" >>conf$$.sh
12155
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12163
# Find out how to test for executable files. Don't use a zero-byte file,
12164
# as systems may use methods other than mode bits to determine executability.
12165
cat >conf$$.file <<_ASEOF
12169
chmod +x conf$$.file
12170
if test -x conf$$.file >/dev/null 2>&1; then
12171
ac_executable_p="test -x"
12173
ac_executable_p="test -f"
12177
# Extract the first word of "msgmerge", so it can be a program name with args.
12178
set dummy msgmerge; ac_word=$2
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180
$as_echo_n "checking for $ac_word... " >&6; }
12181
if ${ac_cv_path_MSGMERGE+:} false; then :
12182
$as_echo_n "(cached) " >&6
12184
case "$MSGMERGE" in
12186
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12189
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12190
for ac_dir in $PATH; do
12192
test -z "$ac_dir" && ac_dir=.
12193
for ac_exec_ext in '' $ac_executable_extensions; do
12194
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12195
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12196
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12203
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12207
MSGMERGE="$ac_cv_path_MSGMERGE"
12208
if test "$MSGMERGE" != ":"; then
12209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12210
$as_echo "$MSGMERGE" >&6; }
12212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213
$as_echo "no" >&6; }
12217
if test "$GMSGFMT" != ":"; then
12218
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12219
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12222
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12224
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12229
if test "$XGETTEXT" != ":"; then
12230
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12231
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12235
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12241
ac_config_commands="$ac_config_commands default-1"
12245
if test "X$prefix" = "XNONE"; then
12246
acl_final_prefix="$ac_default_prefix"
12248
acl_final_prefix="$prefix"
12250
if test "X$exec_prefix" = "XNONE"; then
12251
acl_final_exec_prefix='${prefix}'
12253
acl_final_exec_prefix="$exec_prefix"
12255
acl_save_prefix="$prefix"
12256
prefix="$acl_final_prefix"
12257
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12258
prefix="$acl_save_prefix"
12261
# Check whether --with-gnu-ld was given.
12262
if test "${with_gnu_ld+set}" = set; then :
12263
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12268
# Prepare PATH_SEPARATOR.
12269
# The user is always right.
12270
if test "${PATH_SEPARATOR+set}" != set; then
12271
echo "#! /bin/sh" >conf$$.sh
12272
echo "exit 0" >>conf$$.sh
12274
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12282
if test "$GCC" = yes; then
12283
# Check if gcc -print-prog-name=ld gives a path.
12284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12285
$as_echo_n "checking for ld used by GCC... " >&6; }
12288
# gcc leaves a trailing carriage return which upsets mingw
12289
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12291
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12294
# Accept absolute paths.
12295
[\\/]* | [A-Za-z]:[\\/]*)
12296
re_direlt='/[^/][^/]*/\.\./'
12297
# Canonicalize the path of ld
12298
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12299
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12300
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12302
test -z "$LD" && LD="$ac_prog"
12305
# If it fails, then pretend we aren't using GCC.
12309
# If it is relative, then search for the first ld in PATH.
12310
with_gnu_ld=unknown
12313
elif test "$with_gnu_ld" = yes; then
12314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12315
$as_echo_n "checking for GNU ld... " >&6; }
12317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12318
$as_echo_n "checking for non-GNU ld... " >&6; }
12320
if ${acl_cv_path_LD+:} false; then :
12321
$as_echo_n "(cached) " >&6
12323
if test -z "$LD"; then
12324
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12325
for ac_dir in $PATH; do
12326
test -z "$ac_dir" && ac_dir=.
12327
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12328
acl_cv_path_LD="$ac_dir/$ac_prog"
12329
# Check to see if the program is GNU ld. I'd rather use --version,
12330
# but apparently some GNU ld's only accept -v.
12331
# Break only if it was the GNU/non-GNU ld that we prefer.
12332
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12333
*GNU* | *'with BFD'*)
12334
test "$with_gnu_ld" != no && break ;;
12336
test "$with_gnu_ld" != yes && break ;;
12342
acl_cv_path_LD="$LD" # Let the user override the test with a path.
12346
LD="$acl_cv_path_LD"
12347
if test -n "$LD"; then
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12349
$as_echo "$LD" >&6; }
12351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352
$as_echo "no" >&6; }
12354
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12356
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12357
if ${acl_cv_prog_gnu_ld+:} false; then :
12358
$as_echo_n "(cached) " >&6
12360
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12361
case `$LD -v 2>&1 </dev/null` in
12362
*GNU* | *'with BFD'*)
12363
acl_cv_prog_gnu_ld=yes ;;
12365
acl_cv_prog_gnu_ld=no ;;
12368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12369
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12370
with_gnu_ld=$acl_cv_prog_gnu_ld
12374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12375
$as_echo_n "checking for shared library run path origin... " >&6; }
12376
if ${acl_cv_rpath+:} false; then :
12377
$as_echo_n "(cached) " >&6
12380
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12381
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12383
rm -f ./conftest.sh
12387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12388
$as_echo "$acl_cv_rpath" >&6; }
12390
libext="$acl_cv_libext"
12391
shlibext="$acl_cv_shlibext"
12392
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12393
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12394
hardcode_direct="$acl_cv_hardcode_direct"
12395
hardcode_minus_L="$acl_cv_hardcode_minus_L"
12396
# Check whether --enable-rpath was given.
12397
if test "${enable_rpath+set}" = set; then :
12398
enableval=$enable_rpath; :
12412
acl_save_prefix="$prefix"
12413
prefix="$acl_final_prefix"
12414
acl_save_exec_prefix="$exec_prefix"
12415
exec_prefix="$acl_final_exec_prefix"
12417
eval additional_includedir=\"$includedir\"
12418
eval additional_libdir=\"$libdir\"
12420
exec_prefix="$acl_save_exec_prefix"
12421
prefix="$acl_save_prefix"
12424
# Check whether --with-libiconv-prefix was given.
12425
if test "${with_libiconv_prefix+set}" = set; then :
12426
withval=$with_libiconv_prefix;
12427
if test "X$withval" = "Xno"; then
12430
if test "X$withval" = "X"; then
12432
acl_save_prefix="$prefix"
12433
prefix="$acl_final_prefix"
12434
acl_save_exec_prefix="$exec_prefix"
12435
exec_prefix="$acl_final_exec_prefix"
12437
eval additional_includedir=\"$includedir\"
12438
eval additional_libdir=\"$libdir\"
12440
exec_prefix="$acl_save_exec_prefix"
12441
prefix="$acl_save_prefix"
12444
additional_includedir="$withval/include"
12445
additional_libdir="$withval/lib"
12456
names_already_handled=
12457
names_next_round='iconv '
12458
while test -n "$names_next_round"; do
12459
names_this_round="$names_next_round"
12461
for name in $names_this_round; do
12463
for n in $names_already_handled; do
12464
if test "$n" = "$name"; then
12465
already_handled=yes
12469
if test -z "$already_handled"; then
12470
names_already_handled="$names_already_handled $name"
12471
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12472
eval value=\"\$HAVE_LIB$uppername\"
12473
if test -n "$value"; then
12474
if test "$value" = yes; then
12475
eval value=\"\$LIB$uppername\"
12476
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12477
eval value=\"\$LTLIB$uppername\"
12478
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12487
if test $use_additional = yes; then
12488
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12489
found_dir="$additional_libdir"
12490
found_so="$additional_libdir/lib$name.$shlibext"
12491
if test -f "$additional_libdir/lib$name.la"; then
12492
found_la="$additional_libdir/lib$name.la"
12495
if test -f "$additional_libdir/lib$name.$libext"; then
12496
found_dir="$additional_libdir"
12497
found_a="$additional_libdir/lib$name.$libext"
12498
if test -f "$additional_libdir/lib$name.la"; then
12499
found_la="$additional_libdir/lib$name.la"
12504
if test "X$found_dir" = "X"; then
12505
for x in $LDFLAGS $LTLIBICONV; do
12507
acl_save_prefix="$prefix"
12508
prefix="$acl_final_prefix"
12509
acl_save_exec_prefix="$exec_prefix"
12510
exec_prefix="$acl_final_exec_prefix"
12512
exec_prefix="$acl_save_exec_prefix"
12513
prefix="$acl_save_prefix"
12517
dir=`echo "X$x" | sed -e 's/^X-L//'`
12518
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12520
found_so="$dir/lib$name.$shlibext"
12521
if test -f "$dir/lib$name.la"; then
12522
found_la="$dir/lib$name.la"
12525
if test -f "$dir/lib$name.$libext"; then
12527
found_a="$dir/lib$name.$libext"
12528
if test -f "$dir/lib$name.la"; then
12529
found_la="$dir/lib$name.la"
12535
if test "X$found_dir" != "X"; then
12540
if test "X$found_dir" != "X"; then
12541
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12542
if test "X$found_so" != "X"; then
12543
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12544
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12547
for x in $ltrpathdirs; do
12548
if test "X$x" = "X$found_dir"; then
12553
if test -z "$haveit"; then
12554
ltrpathdirs="$ltrpathdirs $found_dir"
12556
if test "$hardcode_direct" = yes; then
12557
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12559
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12560
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12562
for x in $rpathdirs; do
12563
if test "X$x" = "X$found_dir"; then
12568
if test -z "$haveit"; then
12569
rpathdirs="$rpathdirs $found_dir"
12573
for x in $LDFLAGS $LIBICONV; do
12575
acl_save_prefix="$prefix"
12576
prefix="$acl_final_prefix"
12577
acl_save_exec_prefix="$exec_prefix"
12578
exec_prefix="$acl_final_exec_prefix"
12580
exec_prefix="$acl_save_exec_prefix"
12581
prefix="$acl_save_prefix"
12583
if test "X$x" = "X-L$found_dir"; then
12588
if test -z "$haveit"; then
12589
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12591
if test "$hardcode_minus_L" != no; then
12592
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12594
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12600
if test "X$found_a" != "X"; then
12601
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12603
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12606
additional_includedir=
12607
case "$found_dir" in
12609
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12610
additional_includedir="$basedir/include"
12613
if test "X$additional_includedir" != "X"; then
12614
if test "X$additional_includedir" != "X/usr/include"; then
12616
if test "X$additional_includedir" = "X/usr/local/include"; then
12617
if test -n "$GCC"; then
12619
linux*) haveit=yes;;
12623
if test -z "$haveit"; then
12624
for x in $CPPFLAGS $INCICONV; do
12626
acl_save_prefix="$prefix"
12627
prefix="$acl_final_prefix"
12628
acl_save_exec_prefix="$exec_prefix"
12629
exec_prefix="$acl_final_exec_prefix"
12631
exec_prefix="$acl_save_exec_prefix"
12632
prefix="$acl_save_prefix"
12634
if test "X$x" = "X-I$additional_includedir"; then
12639
if test -z "$haveit"; then
12640
if test -d "$additional_includedir"; then
12641
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12647
if test -n "$found_la"; then
12648
save_libdir="$libdir"
12649
case "$found_la" in
12650
*/* | *\\*) . "$found_la" ;;
12651
*) . "./$found_la" ;;
12653
libdir="$save_libdir"
12654
for dep in $dependency_libs; do
12657
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12658
if test "X$additional_libdir" != "X/usr/lib"; then
12660
if test "X$additional_libdir" = "X/usr/local/lib"; then
12661
if test -n "$GCC"; then
12663
linux*) haveit=yes;;
12667
if test -z "$haveit"; then
12669
for x in $LDFLAGS $LIBICONV; do
12671
acl_save_prefix="$prefix"
12672
prefix="$acl_final_prefix"
12673
acl_save_exec_prefix="$exec_prefix"
12674
exec_prefix="$acl_final_exec_prefix"
12676
exec_prefix="$acl_save_exec_prefix"
12677
prefix="$acl_save_prefix"
12679
if test "X$x" = "X-L$additional_libdir"; then
12684
if test -z "$haveit"; then
12685
if test -d "$additional_libdir"; then
12686
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12690
for x in $LDFLAGS $LTLIBICONV; do
12692
acl_save_prefix="$prefix"
12693
prefix="$acl_final_prefix"
12694
acl_save_exec_prefix="$exec_prefix"
12695
exec_prefix="$acl_final_exec_prefix"
12697
exec_prefix="$acl_save_exec_prefix"
12698
prefix="$acl_save_prefix"
12700
if test "X$x" = "X-L$additional_libdir"; then
12705
if test -z "$haveit"; then
12706
if test -d "$additional_libdir"; then
12707
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12714
dir=`echo "X$dep" | sed -e 's/^X-R//'`
12715
if test "$enable_rpath" != no; then
12717
for x in $rpathdirs; do
12718
if test "X$x" = "X$dir"; then
12723
if test -z "$haveit"; then
12724
rpathdirs="$rpathdirs $dir"
12727
for x in $ltrpathdirs; do
12728
if test "X$x" = "X$dir"; then
12733
if test -z "$haveit"; then
12734
ltrpathdirs="$ltrpathdirs $dir"
12739
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12742
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12745
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12746
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12752
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12753
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12759
if test "X$rpathdirs" != "X"; then
12760
if test -n "$hardcode_libdir_separator"; then
12762
for found_dir in $rpathdirs; do
12763
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12765
acl_save_libdir="$libdir"
12767
eval flag=\"$hardcode_libdir_flag_spec\"
12768
libdir="$acl_save_libdir"
12769
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12771
for found_dir in $rpathdirs; do
12772
acl_save_libdir="$libdir"
12773
libdir="$found_dir"
12774
eval flag=\"$hardcode_libdir_flag_spec\"
12775
libdir="$acl_save_libdir"
12776
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12780
if test "X$ltrpathdirs" != "X"; then
12781
for found_dir in $ltrpathdirs; do
12782
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12804
$as_echo_n "checking whether NLS is requested... " >&6; }
12805
# Check whether --enable-nls was given.
12806
if test "${enable_nls+set}" = set; then :
12807
enableval=$enable_nls; USE_NLS=$enableval
12812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12813
$as_echo "$USE_NLS" >&6; }
12822
if test "$USE_NLS" = "yes"; then
12823
gt_use_preinstalled_gnugettext=no
12830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12831
$as_echo_n "checking for GNU gettext in libc... " >&6; }
12832
if ${gt_cv_func_gnugettext1_libc+:} false; then :
12833
$as_echo_n "(cached) " >&6
12835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836
/* end confdefs.h. */
12837
#include <libintl.h>
12838
extern int _nl_msg_cat_cntr;
12839
extern int *_nl_domain_bindings;
12843
bindtextdomain ("", "");
12844
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12849
if ac_fn_c_try_link "$LINENO"; then :
12850
gt_cv_func_gnugettext1_libc=yes
12852
gt_cv_func_gnugettext1_libc=no
12854
rm -f core conftest.err conftest.$ac_objext \
12855
conftest$ac_exeext conftest.$ac_ext
12857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
12858
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
12860
if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12866
am_save_CPPFLAGS="$CPPFLAGS"
12868
for element in $INCICONV; do
12870
for x in $CPPFLAGS; do
12872
acl_save_prefix="$prefix"
12873
prefix="$acl_final_prefix"
12874
acl_save_exec_prefix="$exec_prefix"
12875
exec_prefix="$acl_final_exec_prefix"
12877
exec_prefix="$acl_save_exec_prefix"
12878
prefix="$acl_save_prefix"
12880
if test "X$x" = "X$element"; then
12885
if test -z "$haveit"; then
12886
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12892
$as_echo_n "checking for iconv... " >&6; }
12893
if ${am_cv_func_iconv+:} false; then :
12894
$as_echo_n "(cached) " >&6
12897
am_cv_func_iconv="no, consider installing GNU libiconv"
12899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900
/* end confdefs.h. */
12901
#include <stdlib.h>
12906
iconv_t cd = iconv_open("","");
12907
iconv(cd,NULL,NULL,NULL,NULL);
12913
if ac_fn_c_try_link "$LINENO"; then :
12914
am_cv_func_iconv=yes
12916
rm -f core conftest.err conftest.$ac_objext \
12917
conftest$ac_exeext conftest.$ac_ext
12918
if test "$am_cv_func_iconv" != yes; then
12919
am_save_LIBS="$LIBS"
12920
LIBS="$LIBS $LIBICONV"
12921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922
/* end confdefs.h. */
12923
#include <stdlib.h>
12928
iconv_t cd = iconv_open("","");
12929
iconv(cd,NULL,NULL,NULL,NULL);
12935
if ac_fn_c_try_link "$LINENO"; then :
12936
am_cv_lib_iconv=yes
12937
am_cv_func_iconv=yes
12939
rm -f core conftest.err conftest.$ac_objext \
12940
conftest$ac_exeext conftest.$ac_ext
12941
LIBS="$am_save_LIBS"
12945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12946
$as_echo "$am_cv_func_iconv" >&6; }
12947
if test "$am_cv_func_iconv" = yes; then
12949
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12952
if test "$am_cv_lib_iconv" = yes; then
12953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12954
$as_echo_n "checking how to link with libiconv... " >&6; }
12955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12956
$as_echo "$LIBICONV" >&6; }
12958
CPPFLAGS="$am_save_CPPFLAGS"
12970
acl_save_prefix="$prefix"
12971
prefix="$acl_final_prefix"
12972
acl_save_exec_prefix="$exec_prefix"
12973
exec_prefix="$acl_final_exec_prefix"
12975
eval additional_includedir=\"$includedir\"
12976
eval additional_libdir=\"$libdir\"
12978
exec_prefix="$acl_save_exec_prefix"
12979
prefix="$acl_save_prefix"
12982
# Check whether --with-libintl-prefix was given.
12983
if test "${with_libintl_prefix+set}" = set; then :
12984
withval=$with_libintl_prefix;
12985
if test "X$withval" = "Xno"; then
12988
if test "X$withval" = "X"; then
12990
acl_save_prefix="$prefix"
12991
prefix="$acl_final_prefix"
12992
acl_save_exec_prefix="$exec_prefix"
12993
exec_prefix="$acl_final_exec_prefix"
12995
eval additional_includedir=\"$includedir\"
12996
eval additional_libdir=\"$libdir\"
12998
exec_prefix="$acl_save_exec_prefix"
12999
prefix="$acl_save_prefix"
13002
additional_includedir="$withval/include"
13003
additional_libdir="$withval/lib"
13014
names_already_handled=
13015
names_next_round='intl '
13016
while test -n "$names_next_round"; do
13017
names_this_round="$names_next_round"
13019
for name in $names_this_round; do
13021
for n in $names_already_handled; do
13022
if test "$n" = "$name"; then
13023
already_handled=yes
13027
if test -z "$already_handled"; then
13028
names_already_handled="$names_already_handled $name"
13029
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13030
eval value=\"\$HAVE_LIB$uppername\"
13031
if test -n "$value"; then
13032
if test "$value" = yes; then
13033
eval value=\"\$LIB$uppername\"
13034
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13035
eval value=\"\$LTLIB$uppername\"
13036
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13045
if test $use_additional = yes; then
13046
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13047
found_dir="$additional_libdir"
13048
found_so="$additional_libdir/lib$name.$shlibext"
13049
if test -f "$additional_libdir/lib$name.la"; then
13050
found_la="$additional_libdir/lib$name.la"
13053
if test -f "$additional_libdir/lib$name.$libext"; then
13054
found_dir="$additional_libdir"
13055
found_a="$additional_libdir/lib$name.$libext"
13056
if test -f "$additional_libdir/lib$name.la"; then
13057
found_la="$additional_libdir/lib$name.la"
13062
if test "X$found_dir" = "X"; then
13063
for x in $LDFLAGS $LTLIBINTL; do
13065
acl_save_prefix="$prefix"
13066
prefix="$acl_final_prefix"
13067
acl_save_exec_prefix="$exec_prefix"
13068
exec_prefix="$acl_final_exec_prefix"
13070
exec_prefix="$acl_save_exec_prefix"
13071
prefix="$acl_save_prefix"
13075
dir=`echo "X$x" | sed -e 's/^X-L//'`
13076
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13078
found_so="$dir/lib$name.$shlibext"
13079
if test -f "$dir/lib$name.la"; then
13080
found_la="$dir/lib$name.la"
13083
if test -f "$dir/lib$name.$libext"; then
13085
found_a="$dir/lib$name.$libext"
13086
if test -f "$dir/lib$name.la"; then
13087
found_la="$dir/lib$name.la"
13093
if test "X$found_dir" != "X"; then
13098
if test "X$found_dir" != "X"; then
13099
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13100
if test "X$found_so" != "X"; then
13101
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13102
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13105
for x in $ltrpathdirs; do
13106
if test "X$x" = "X$found_dir"; then
13111
if test -z "$haveit"; then
13112
ltrpathdirs="$ltrpathdirs $found_dir"
13114
if test "$hardcode_direct" = yes; then
13115
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13117
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13118
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13120
for x in $rpathdirs; do
13121
if test "X$x" = "X$found_dir"; then
13126
if test -z "$haveit"; then
13127
rpathdirs="$rpathdirs $found_dir"
13131
for x in $LDFLAGS $LIBINTL; do
13133
acl_save_prefix="$prefix"
13134
prefix="$acl_final_prefix"
13135
acl_save_exec_prefix="$exec_prefix"
13136
exec_prefix="$acl_final_exec_prefix"
13138
exec_prefix="$acl_save_exec_prefix"
13139
prefix="$acl_save_prefix"
13141
if test "X$x" = "X-L$found_dir"; then
13146
if test -z "$haveit"; then
13147
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13149
if test "$hardcode_minus_L" != no; then
13150
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13152
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13158
if test "X$found_a" != "X"; then
13159
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13161
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13164
additional_includedir=
13165
case "$found_dir" in
13167
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13168
additional_includedir="$basedir/include"
13171
if test "X$additional_includedir" != "X"; then
13172
if test "X$additional_includedir" != "X/usr/include"; then
13174
if test "X$additional_includedir" = "X/usr/local/include"; then
13175
if test -n "$GCC"; then
13177
linux*) haveit=yes;;
13181
if test -z "$haveit"; then
13182
for x in $CPPFLAGS $INCINTL; do
13184
acl_save_prefix="$prefix"
13185
prefix="$acl_final_prefix"
13186
acl_save_exec_prefix="$exec_prefix"
13187
exec_prefix="$acl_final_exec_prefix"
13189
exec_prefix="$acl_save_exec_prefix"
13190
prefix="$acl_save_prefix"
13192
if test "X$x" = "X-I$additional_includedir"; then
13197
if test -z "$haveit"; then
13198
if test -d "$additional_includedir"; then
13199
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13205
if test -n "$found_la"; then
13206
save_libdir="$libdir"
13207
case "$found_la" in
13208
*/* | *\\*) . "$found_la" ;;
13209
*) . "./$found_la" ;;
13211
libdir="$save_libdir"
13212
for dep in $dependency_libs; do
13215
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13216
if test "X$additional_libdir" != "X/usr/lib"; then
13218
if test "X$additional_libdir" = "X/usr/local/lib"; then
13219
if test -n "$GCC"; then
13221
linux*) haveit=yes;;
13225
if test -z "$haveit"; then
13227
for x in $LDFLAGS $LIBINTL; do
13229
acl_save_prefix="$prefix"
13230
prefix="$acl_final_prefix"
13231
acl_save_exec_prefix="$exec_prefix"
13232
exec_prefix="$acl_final_exec_prefix"
13234
exec_prefix="$acl_save_exec_prefix"
13235
prefix="$acl_save_prefix"
13237
if test "X$x" = "X-L$additional_libdir"; then
13242
if test -z "$haveit"; then
13243
if test -d "$additional_libdir"; then
13244
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13248
for x in $LDFLAGS $LTLIBINTL; do
13250
acl_save_prefix="$prefix"
13251
prefix="$acl_final_prefix"
13252
acl_save_exec_prefix="$exec_prefix"
13253
exec_prefix="$acl_final_exec_prefix"
13255
exec_prefix="$acl_save_exec_prefix"
13256
prefix="$acl_save_prefix"
13258
if test "X$x" = "X-L$additional_libdir"; then
13263
if test -z "$haveit"; then
13264
if test -d "$additional_libdir"; then
13265
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13272
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13273
if test "$enable_rpath" != no; then
13275
for x in $rpathdirs; do
13276
if test "X$x" = "X$dir"; then
13281
if test -z "$haveit"; then
13282
rpathdirs="$rpathdirs $dir"
13285
for x in $ltrpathdirs; do
13286
if test "X$x" = "X$dir"; then
13291
if test -z "$haveit"; then
13292
ltrpathdirs="$ltrpathdirs $dir"
13297
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13300
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13303
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13304
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13310
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13311
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13317
if test "X$rpathdirs" != "X"; then
13318
if test -n "$hardcode_libdir_separator"; then
13320
for found_dir in $rpathdirs; do
13321
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13323
acl_save_libdir="$libdir"
13325
eval flag=\"$hardcode_libdir_flag_spec\"
13326
libdir="$acl_save_libdir"
13327
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13329
for found_dir in $rpathdirs; do
13330
acl_save_libdir="$libdir"
13331
libdir="$found_dir"
13332
eval flag=\"$hardcode_libdir_flag_spec\"
13333
libdir="$acl_save_libdir"
13334
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13338
if test "X$ltrpathdirs" != "X"; then
13339
for found_dir in $ltrpathdirs; do
13340
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13345
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13346
if ${gt_cv_func_gnugettext1_libintl+:} false; then :
13347
$as_echo_n "(cached) " >&6
13349
gt_save_CPPFLAGS="$CPPFLAGS"
13350
CPPFLAGS="$CPPFLAGS $INCINTL"
13351
gt_save_LIBS="$LIBS"
13352
LIBS="$LIBS $LIBINTL"
13353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354
/* end confdefs.h. */
13355
#include <libintl.h>
13356
extern int _nl_msg_cat_cntr;
13361
const char *_nl_expand_alias ();
13365
bindtextdomain ("", "");
13366
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13371
if ac_fn_c_try_link "$LINENO"; then :
13372
gt_cv_func_gnugettext1_libintl=yes
13374
gt_cv_func_gnugettext1_libintl=no
13376
rm -f core conftest.err conftest.$ac_objext \
13377
conftest$ac_exeext conftest.$ac_ext
13378
if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13379
LIBS="$LIBS $LIBICONV"
13380
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381
/* end confdefs.h. */
13382
#include <libintl.h>
13383
extern int _nl_msg_cat_cntr;
13388
const char *_nl_expand_alias ();
13392
bindtextdomain ("", "");
13393
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13398
if ac_fn_c_try_link "$LINENO"; then :
13399
LIBINTL="$LIBINTL $LIBICONV"
13400
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13401
gt_cv_func_gnugettext1_libintl=yes
13404
rm -f core conftest.err conftest.$ac_objext \
13405
conftest$ac_exeext conftest.$ac_ext
13407
CPPFLAGS="$gt_save_CPPFLAGS"
13408
LIBS="$gt_save_LIBS"
13410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
13411
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
13414
if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13415
|| { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13416
&& test "$PACKAGE" != gettext-runtime \
13417
&& test "$PACKAGE" != gettext-tools; }; then
13418
gt_use_preinstalled_gnugettext=yes
13427
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13428
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13430
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13438
$as_echo_n "checking whether to use NLS... " >&6; }
13439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13440
$as_echo "$USE_NLS" >&6; }
13441
if test "$USE_NLS" = "yes"; then
13442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13443
$as_echo_n "checking where the gettext function comes from... " >&6; }
13444
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13445
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13446
gt_source="external libintl"
13451
gt_source="included intl directory"
13453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13454
$as_echo "$gt_source" >&6; }
13457
if test "$USE_NLS" = "yes"; then
13459
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13460
if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13462
$as_echo_n "checking how to link with libintl... " >&6; }
13463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13464
$as_echo "$LIBINTL" >&6; }
13466
for element in $INCINTL; do
13468
for x in $CPPFLAGS; do
13470
acl_save_prefix="$prefix"
13471
prefix="$acl_final_prefix"
13472
acl_save_exec_prefix="$exec_prefix"
13473
exec_prefix="$acl_final_exec_prefix"
13475
exec_prefix="$acl_save_exec_prefix"
13476
prefix="$acl_save_prefix"
13478
if test "X$x" = "X$element"; then
13483
if test -z "$haveit"; then
13484
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13491
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13494
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13503
INTLLIBS="$LIBINTL"
13514
if git log -1 &>/dev/null; then
13516
GIT_CHECKOUT_FALSE='#'
13518
GIT_CHECKOUT_TRUE='#'
13519
GIT_CHECKOUT_FALSE=
13524
# Check whether --enable-silent-rules was given.
13525
if test "${enable_silent_rules+set}" = set; then :
13526
enableval=$enable_silent_rules;
13529
case $enable_silent_rules in
13530
yes) AM_DEFAULT_VERBOSITY=0;;
13531
no) AM_DEFAULT_VERBOSITY=1;;
13532
*) AM_DEFAULT_VERBOSITY=1;;
13537
if test "$ac_cv_c_compiler_gnu" = yes; then
13546
for ac_header in stdint.h dlfcn.h
13548
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13549
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13550
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13551
cat >>confdefs.h <<_ACEOF
13552
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13559
ac_config_headers="$ac_config_headers config.h"
13562
ac_fn_c_check_type "$LINENO" "errno_t" "ac_cv_type_errno_t" "#include <errno.h>
13564
if test "x$ac_cv_type_errno_t" = xyes; then :
13566
cat >>confdefs.h <<_ACEOF
13567
#define HAVE_ERRNO_T 1
13577
if test x$with_aux_info = xyes; then
13578
WANT_AUX_INFO_TRUE=
13579
WANT_AUX_INFO_FALSE='#'
13581
WANT_AUX_INFO_TRUE='#'
13582
WANT_AUX_INFO_FALSE=
13587
# Check whether --with-shared-build-dir was given.
13588
if test "${with_shared_build_dir+set}" = set; then :
13589
withval=$with_shared_build_dir;
13593
sharedbuilddir="$srcdir/sharedbuild"
13594
if test x"$with_shared_build_dir" != x; then
13595
sharedbuilddir=$with_shared_build_dir
13596
CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
13597
CPPFLAGS="$CPPFLAGS -I$with_shared_build_dir/include"
13598
LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
13603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604
/* end confdefs.h. */
13605
#include <pthread.h>
13609
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
13614
if ac_fn_c_try_compile "$LINENO"; then :
13616
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
13619
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found! Clients will not be thread safe..." >&5
13620
$as_echo "$as_me: WARNING: Pthread library not found! Clients will not be thread safe..." >&2;}
13622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624
#Check for PAM headers
13625
for ac_header in security/pam_appl.h security/pam_misc.h security/pam_modules.h
13627
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13628
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13629
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13630
cat >>confdefs.h <<_ACEOF
13631
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_item in -lpam" >&5
13634
$as_echo_n "checking for pam_get_item in -lpam... " >&6; }
13635
if ${ac_cv_lib_pam_pam_get_item+:} false; then :
13636
$as_echo_n "(cached) " >&6
13638
ac_check_lib_save_LIBS=$LIBS
13640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641
/* end confdefs.h. */
13643
/* Override any GCC internal prototype to avoid an error.
13644
Use char because int might match the return type of a GCC
13645
builtin and then its argument prototype would still apply. */
13649
char pam_get_item ();
13653
return pam_get_item ();
13658
if ac_fn_c_try_link "$LINENO"; then :
13659
ac_cv_lib_pam_pam_get_item=yes
13661
ac_cv_lib_pam_pam_get_item=no
13663
rm -f core conftest.err conftest.$ac_objext \
13664
conftest$ac_exeext conftest.$ac_ext
13665
LIBS=$ac_check_lib_save_LIBS
13667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_item" >&5
13668
$as_echo "$ac_cv_lib_pam_pam_get_item" >&6; }
13669
if test "x$ac_cv_lib_pam_pam_get_item" = xyes; then :
13672
as_fn_error $? "PAM must support pam_get_item" "$LINENO" 5
13676
as_fn_error $? "PAM development libraries not installed" "$LINENO" 5
13683
#Set the NSS library install path
13684
# Check whether --enable-nsslibdir was given.
13685
if test "${enable_nsslibdir+set}" = set; then :
13686
enableval=$enable_nsslibdir; nsslibdir=$enableval
13693
#Set the PAM module install path
13694
# Check whether --enable-pammoddir was given.
13695
if test "${enable_pammoddir+set}" = set; then :
13696
enableval=$enable_pammoddir; pammoddir=$enableval
13698
pammoddir=$libdir/security
13703
#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
13705
# Check whether --with-os was given.
13706
if test "${with_os+set}" = set; then :
13711
if test x"$with_os" != x ; then
13712
if test x"$with_os" = xfedora || \
13713
test x"$with_os" = xredhat || \
13714
test x"$with_os" = xsuse || \
13715
test x"$with_os" = xgentoo || \
13716
test x"$with_os" = xdebian ; then
13719
as_fn_error $? "Illegal value -$with_os- for option --with-os" "$LINENO" 5
13723
if test x"$osname" = x ; then
13724
if test -f /etc/fedora-release ; then
13726
elif test -f /etc/redhat-release ; then
13728
elif test -f /etc/SuSE-release ; then
13730
elif test -f /etc/debian_version ; then
13732
elif test -f /etc/gentoo-release ; then
13736
{ $as_echo "$as_me:${as_lineno-$LINENO}: Detected operating system type: $osname" >&5
13737
$as_echo "$as_me: Detected operating system type: $osname" >&6;}
13740
if test x"$osname" = xfedora; then
13742
HAVE_FEDORA_FALSE='#'
13744
HAVE_FEDORA_TRUE='#'
13748
if test x"$osname" = xredhat; then
13750
HAVE_REDHAT_FALSE='#'
13752
HAVE_REDHAT_TRUE='#'
13756
if test x"$osname" = xsuse; then
13758
HAVE_SUSE_FALSE='#'
13764
if test x"$osname" = xdebian; then
13766
HAVE_DEBIAN_FALSE='#'
13768
HAVE_DEBIAN_TRUE='#'
13772
if test x"$osname" = xgentoo; then
13774
HAVE_GENTOO_FALSE='#'
13776
HAVE_GENTOO_TRUE='#'
13781
ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#define _GNU_SOURCE
13782
#include <sys/socket.h>
13784
if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
13786
cat >>confdefs.h <<_ACEOF
13787
#define HAVE_STRUCT_UCRED_PID 1
13792
ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#define _GNU_SOURCE
13793
#include <sys/socket.h>
13795
if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
13797
cat >>confdefs.h <<_ACEOF
13798
#define HAVE_STRUCT_UCRED_UID 1
13803
ac_fn_c_check_member "$LINENO" "struct ucred" "gid" "ac_cv_member_struct_ucred_gid" "#define _GNU_SOURCE
13804
#include <sys/socket.h>
13806
if test "x$ac_cv_member_struct_ucred_gid" = xyes; then :
13808
cat >>confdefs.h <<_ACEOF
13809
#define HAVE_STRUCT_UCRED_GID 1
13816
if test x"$ac_cv_member_struct_ucred_pid" = xyes -a \
13817
x"$ac_cv_member_struct_ucred_uid" = xyes -a \
13818
x"$ac_cv_member_struct_ucred_gid" = xyes ; then
13820
$as_echo "#define HAVE_UCRED 1" >>confdefs.h
13823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: struct ucred is not available" >&5
13824
$as_echo "$as_me: WARNING: struct ucred is not available" >&2;}
13843
if test x$with_manpages = xyes; then
13844
BUILD_MANPAGES_TRUE=
13845
BUILD_MANPAGES_FALSE='#'
13847
BUILD_MANPAGES_TRUE='#'
13848
BUILD_MANPAGES_FALSE=
13869
# Check whether --with-db-path was given.
13870
if test "${with_db_path+set}" = set; then :
13871
withval=$with_db_path;
13874
config_dbpath="\"VARDIR\"/lib/sss/db"
13875
dbpath="${localstatedir}/lib/sss/db"
13876
if test x"$with_db_path" != x; then
13877
config_dbpath=$with_db_path
13878
dbpath=$with_db_path
13882
cat >>confdefs.h <<_ACEOF
13883
#define DB_PATH "$config_dbpath"
13888
# Check whether --with-plugin-path was given.
13889
if test "${with_plugin_path+set}" = set; then :
13890
withval=$with_plugin_path;
13893
pluginpath="${libdir}/sssd"
13894
config_pluginpath="\"LIBDIR\"/sssd"
13895
if test x"$with_plugin_path" != x; then
13896
pluginpath=$with_plugin_path
13897
config_pluginpath=$with_plugin_path
13901
cat >>confdefs.h <<_ACEOF
13902
#define DATA_PROVIDER_PLUGINS_PATH "$config_pluginpath"
13907
# Check whether --with-pid-path was given.
13908
if test "${with_pid_path+set}" = set; then :
13909
withval=$with_pid_path;
13912
config_pidpath="\"VARDIR\"/run"
13913
pidpath="${localstatedir}/run"
13914
if test x"$with_pid_path" != x; then
13915
config_pidpath=$with_pid_path
13916
pidpath=$with_pid_path
13920
cat >>confdefs.h <<_ACEOF
13921
#define PID_PATH "$config_pidpath"
13926
# Check whether --with-log-path was given.
13927
if test "${with_log_path+set}" = set; then :
13928
withval=$with_log_path;
13931
config_logpath="\"VARDIR\"/log/sssd"
13932
logpath="${localstatedir}/log/sssd"
13933
if test x"$with_log_path" != x; then
13934
config_logpath=$with_log_path
13935
logpath=$with_log_path
13939
cat >>confdefs.h <<_ACEOF
13940
#define LOG_PATH "$config_logpath"
13945
# Check whether --with-pubconf-path was given.
13946
if test "${with_pubconf_path+set}" = set; then :
13947
withval=$with_pubconf_path;
13950
config_pubconfpath="\"VARDIR\"/lib/sss/pubconf"
13951
pubconfpath="${localstatedir}/lib/sss/pubconf"
13952
if test x"$with_pubconf_path" != x; then
13953
config_pubconfpath=$with_pubconf_path
13954
pubconfpath=$with_pubconf_path
13958
cat >>confdefs.h <<_ACEOF
13959
#define PUBCONF_PATH "$config_pubconfpath"
13964
# Check whether --with-pipe-path was given.
13965
if test "${with_pipe_path+set}" = set; then :
13966
withval=$with_pipe_path;
13969
config_pipepath="\"VARDIR\"/lib/sss/pipes"
13970
pipepath="${localstatedir}/lib/sss/pipes"
13971
if test x"$with_pipe_path" != x; then
13972
config_pipepath=$with_pipe_path
13973
pipepath=$with_pipe_path
13977
cat >>confdefs.h <<_ACEOF
13978
#define PIPE_PATH "$config_pipepath"
13983
# Check whether --with-init-dir was given.
13984
if test "${with_init_dir+set}" = set; then :
13985
withval=$with_init_dir;
13988
initdir="${sysconfdir}/rc.d/init.d"
13989
if test x$osname == xgentoo; then
13990
initdir="${sysconfdir}/init.d"
13992
if test x"$with_init_dir" != x; then
13993
initdir=$with_init_dir
13998
# Check whether --with-test-dir was given.
13999
if test "${with_test_dir+set}" = set; then :
14000
withval=$with_test_dir;
14003
TEST_DIR=$with_test_dir
14006
cat >>confdefs.h <<_ACEOF
14007
#define TEST_DIR "$with_test_dir"
14012
# Check whether --with-manpages was given.
14013
if test "${with_manpages+set}" = set; then :
14014
withval=$with_manpages;
14020
if test x"$with_manpages" = xyes; then
14026
# Check whether --with-xml-catalog-path was given.
14027
if test "${with_xml_catalog_path+set}" = set; then :
14028
withval=$with_xml_catalog_path;
14031
SGML_CATALOG_FILES="/etc/xml/catalog"
14032
if test x"$with_xml_catalog_path" != x; then
14033
SGML_CATALOG_FILES="$with_xml_catalog_path"
14038
# Check whether --with-krb5-plugin-path was given.
14039
if test "${with_krb5_plugin_path+set}" = set; then :
14040
withval=$with_krb5_plugin_path;
14043
krb5pluginpath="${libdir}/krb5/plugins/libkrb5"
14044
if test x"$with_krb5_plugin_path" != x; then
14045
krb5pluginpath=$with_krb5_plugin_path
14050
# Check whether --with-python-bindings was given.
14051
if test "${with_python_bindings+set}" = set; then :
14052
withval=$with_python_bindings;
14054
with_python_bindings=yes
14058
if test x"$with_python_bindings" = xyes; then
14059
HAVE_PYTHON_BINDINGS=1
14062
if test x"$with_python_bindings" = xyes; then
14063
BUILD_PYTHON_BINDINGS_TRUE=
14064
BUILD_PYTHON_BINDINGS_FALSE='#'
14066
BUILD_PYTHON_BINDINGS_TRUE='#'
14067
BUILD_PYTHON_BINDINGS_FALSE=
14072
# Check whether --with-selinux was given.
14073
if test "${with_selinux+set}" = set; then :
14074
withval=$with_selinux;
14080
if test x"$with_selinux" = xyes; then
14084
cat >>confdefs.h <<_ACEOF
14085
#define HAVE_SELINUX 1
14089
if test x"$with_selinux" = xyes; then
14090
BUILD_SELINUX_TRUE=
14091
BUILD_SELINUX_FALSE='#'
14093
BUILD_SELINUX_TRUE='#'
14094
BUILD_SELINUX_FALSE=
14099
# Check whether --with-nscd was given.
14100
if test "${with_nscd+set}" = set; then :
14101
withval=$with_nscd;
14107
if test x"$with_nscd" = xyes; then
14109
cat >>confdefs.h <<_ACEOF
14110
#define HAVE_NSCD 1
14116
# Check whether --with-semanage was given.
14117
if test "${with_semanage+set}" = set; then :
14118
withval=$with_semanage;
14124
if test x"$with_semanage" = xyes; then
14128
cat >>confdefs.h <<_ACEOF
14129
#define HAVE_SEMANAGE 1
14133
if test x"$with_semanage" = xyes; then
14134
BUILD_SEMANAGE_TRUE=
14135
BUILD_SEMANAGE_FALSE='#'
14137
BUILD_SEMANAGE_TRUE='#'
14138
BUILD_SEMANAGE_FALSE=
14143
# Check whether --with-libnl was given.
14144
if test "${with_libnl+set}" = set; then :
14145
withval=$with_libnl;
14151
if test x"$with_libnl" = xyes; then
14157
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
14159
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
14161
# This program is free software; you can redistribute it and/or modify
14162
# it under the terms of the GNU General Public License as published by
14163
# the Free Software Foundation; either version 3 of the License, or
14164
# (at your option) any later version.
14166
# This program is distributed in the hope that it will be useful, but
14167
# WITHOUT ANY WARRANTY; without even the implied warranty of
14168
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14169
# General Public License for more details.
14171
# You should have received a copy of the GNU General Public License
14172
# along with this program; if not, see <http://www.gnu.org/licenses/>.
14174
# As a special exception to the GNU General Public License, if you
14175
# distribute this file as part of a program that contains a
14176
# configuration script generated by Autoconf, you may include it under
14177
# the same distribution terms that you use for the rest of that program.
14179
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
14180
# ----------------------------------
14181
# PKG_PROG_PKG_CONFIG
14183
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
14185
# Check to see whether a particular set of modules exists. Similar
14186
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
14189
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
14190
# this or PKG_CHECK_MODULES is called, or make sure to call
14191
# PKG_CHECK_EXISTS manually
14192
# --------------------------------------------------------------
14196
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
14197
# ---------------------------------------------
14200
# _PKG_SHORT_ERRORS_SUPPORTED
14201
# -----------------------------
14202
# _PKG_SHORT_ERRORS_SUPPORTED
14205
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
14206
# [ACTION-IF-NOT-FOUND])
14209
# Note that if there is a possibility the first call to
14210
# PKG_CHECK_MODULES might not happen, you should be sure to include an
14211
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
14214
# --------------------------------------------------------------
14215
# PKG_CHECK_MODULES
14222
for ac_header in popt.h
14224
ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
14225
if test "x$ac_cv_header_popt_h" = xyes; then :
14226
cat >>confdefs.h <<_ACEOF
14227
#define HAVE_POPT_H 1
14229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
14230
$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
14231
if ${ac_cv_lib_popt_poptGetContext+:} false; then :
14232
$as_echo_n "(cached) " >&6
14234
ac_check_lib_save_LIBS=$LIBS
14235
LIBS="-lpopt $LIBS"
14236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237
/* end confdefs.h. */
14239
/* Override any GCC internal prototype to avoid an error.
14240
Use char because int might match the return type of a GCC
14241
builtin and then its argument prototype would still apply. */
14245
char poptGetContext ();
14249
return poptGetContext ();
14254
if ac_fn_c_try_link "$LINENO"; then :
14255
ac_cv_lib_popt_poptGetContext=yes
14257
ac_cv_lib_popt_poptGetContext=no
14259
rm -f core conftest.err conftest.$ac_objext \
14260
conftest$ac_exeext conftest.$ac_ext
14261
LIBS=$ac_check_lib_save_LIBS
14263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
14264
$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
14265
if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
14268
as_fn_error $? "POPT must support poptGetContext" "$LINENO" 5
14272
as_fn_error $? "POPT development libraries not installed" "$LINENO" 5
14285
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14286
if test -n "$ac_tool_prefix"; then
14287
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14288
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290
$as_echo_n "checking for $ac_word... " >&6; }
14291
if ${ac_cv_path_PKG_CONFIG+:} false; then :
14292
$as_echo_n "(cached) " >&6
14294
case $PKG_CONFIG in
14296
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300
for as_dir in $PATH
14303
test -z "$as_dir" && as_dir=.
14304
for ac_exec_ext in '' $ac_executable_extensions; do
14305
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14306
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14307
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14318
if test -n "$PKG_CONFIG"; then
14319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14320
$as_echo "$PKG_CONFIG" >&6; }
14322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323
$as_echo "no" >&6; }
14328
if test -z "$ac_cv_path_PKG_CONFIG"; then
14329
ac_pt_PKG_CONFIG=$PKG_CONFIG
14330
# Extract the first word of "pkg-config", so it can be a program name with args.
14331
set dummy pkg-config; ac_word=$2
14332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333
$as_echo_n "checking for $ac_word... " >&6; }
14334
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14335
$as_echo_n "(cached) " >&6
14337
case $ac_pt_PKG_CONFIG in
14339
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343
for as_dir in $PATH
14346
test -z "$as_dir" && as_dir=.
14347
for ac_exec_ext in '' $ac_executable_extensions; do
14348
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14350
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14361
if test -n "$ac_pt_PKG_CONFIG"; then
14362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14363
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366
$as_echo "no" >&6; }
14369
if test "x$ac_pt_PKG_CONFIG" = x; then
14372
case $cross_compiling:$ac_tool_warned in
14374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14375
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14376
ac_tool_warned=yes ;;
14378
PKG_CONFIG=$ac_pt_PKG_CONFIG
14381
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14385
if test -n "$PKG_CONFIG"; then
14386
_pkg_min_version=0.9.0
14387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14388
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14389
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14391
$as_echo "yes" >&6; }
14393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394
$as_echo "no" >&6; }
14399
ac_fn_c_check_header_mongrel "$LINENO" "talloc.h" "ac_cv_header_talloc_h" "$ac_includes_default"
14400
if test "x$ac_cv_header_talloc_h" = xyes; then :
14401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc_init in -ltalloc" >&5
14402
$as_echo_n "checking for talloc_init in -ltalloc... " >&6; }
14403
if ${ac_cv_lib_talloc_talloc_init+:} false; then :
14404
$as_echo_n "(cached) " >&6
14406
ac_check_lib_save_LIBS=$LIBS
14407
LIBS="-ltalloc $LIBS"
14408
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409
/* end confdefs.h. */
14411
/* Override any GCC internal prototype to avoid an error.
14412
Use char because int might match the return type of a GCC
14413
builtin and then its argument prototype would still apply. */
14417
char talloc_init ();
14421
return talloc_init ();
14426
if ac_fn_c_try_link "$LINENO"; then :
14427
ac_cv_lib_talloc_talloc_init=yes
14429
ac_cv_lib_talloc_talloc_init=no
14431
rm -f core conftest.err conftest.$ac_objext \
14432
conftest$ac_exeext conftest.$ac_ext
14433
LIBS=$ac_check_lib_save_LIBS
14435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_talloc_talloc_init" >&5
14436
$as_echo "$ac_cv_lib_talloc_talloc_init" >&6; }
14437
if test "x$ac_cv_lib_talloc_talloc_init" = xyes; then :
14438
TALLOC_LIBS="-ltalloc"
14444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TALLOC" >&5
14445
$as_echo_n "checking for TALLOC... " >&6; }
14447
if test -n "$PKG_CONFIG"; then
14448
if test -n "$TALLOC_CFLAGS"; then
14449
pkg_cv_TALLOC_CFLAGS="$TALLOC_CFLAGS"
14451
if test -n "$PKG_CONFIG" && \
14452
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"talloc\""; } >&5
14453
($PKG_CONFIG --exists --print-errors "talloc") 2>&5
14455
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14456
test $ac_status = 0; }; then
14457
pkg_cv_TALLOC_CFLAGS=`$PKG_CONFIG --cflags "talloc" 2>/dev/null`
14465
if test -n "$PKG_CONFIG"; then
14466
if test -n "$TALLOC_LIBS"; then
14467
pkg_cv_TALLOC_LIBS="$TALLOC_LIBS"
14469
if test -n "$PKG_CONFIG" && \
14470
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"talloc\""; } >&5
14471
($PKG_CONFIG --exists --print-errors "talloc") 2>&5
14473
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14474
test $ac_status = 0; }; then
14475
pkg_cv_TALLOC_LIBS=`$PKG_CONFIG --libs "talloc" 2>/dev/null`
14486
if test $pkg_failed = yes; then
14488
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14489
_pkg_short_errors_supported=yes
14491
_pkg_short_errors_supported=no
14493
if test $_pkg_short_errors_supported = yes; then
14494
TALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "talloc"`
14496
TALLOC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "talloc"`
14498
# Put the nasty error message in config.log where it belongs
14499
echo "$TALLOC_PKG_ERRORS" >&5
14501
as_fn_error $? "Package requirements (talloc) were not met:
14505
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14506
installed software in a non-standard prefix.
14508
Alternatively, you may set the environment variables TALLOC_CFLAGS
14509
and TALLOC_LIBS to avoid the need to call pkg-config.
14510
See the pkg-config man page for more details.
14512
elif test $pkg_failed = untried; then
14513
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14515
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14516
is in your PATH or set the PKG_CONFIG environment variable to the full
14517
path to pkg-config.
14519
Alternatively, you may set the environment variables TALLOC_CFLAGS
14520
and TALLOC_LIBS to avoid the need to call pkg-config.
14521
See the pkg-config man page for more details.
14523
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14524
See \`config.log' for more details" "$LINENO" 5; }
14526
TALLOC_CFLAGS=$pkg_cv_TALLOC_CFLAGS
14527
TALLOC_LIBS=$pkg_cv_TALLOC_LIBS
14528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14529
$as_echo "yes" >&6; }
14540
for ac_header in tdb.h
14542
ac_fn_c_check_header_mongrel "$LINENO" "tdb.h" "ac_cv_header_tdb_h" "$ac_includes_default"
14543
if test "x$ac_cv_header_tdb_h" = xyes; then :
14544
cat >>confdefs.h <<_ACEOF
14545
#define HAVE_TDB_H 1
14547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdb_repack in -ltdb" >&5
14548
$as_echo_n "checking for tdb_repack in -ltdb... " >&6; }
14549
if ${ac_cv_lib_tdb_tdb_repack+:} false; then :
14550
$as_echo_n "(cached) " >&6
14552
ac_check_lib_save_LIBS=$LIBS
14554
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555
/* end confdefs.h. */
14557
/* Override any GCC internal prototype to avoid an error.
14558
Use char because int might match the return type of a GCC
14559
builtin and then its argument prototype would still apply. */
14563
char tdb_repack ();
14567
return tdb_repack ();
14572
if ac_fn_c_try_link "$LINENO"; then :
14573
ac_cv_lib_tdb_tdb_repack=yes
14575
ac_cv_lib_tdb_tdb_repack=no
14577
rm -f core conftest.err conftest.$ac_objext \
14578
conftest$ac_exeext conftest.$ac_ext
14579
LIBS=$ac_check_lib_save_LIBS
14581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tdb_tdb_repack" >&5
14582
$as_echo "$ac_cv_lib_tdb_tdb_repack" >&6; }
14583
if test "x$ac_cv_lib_tdb_tdb_repack" = xyes; then :
14586
as_fn_error $? "TDB must support tdb_repack" "$LINENO" 5
14592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDB" >&5
14593
$as_echo_n "checking for TDB... " >&6; }
14595
if test -n "$PKG_CONFIG"; then
14596
if test -n "$TDB_CFLAGS"; then
14597
pkg_cv_TDB_CFLAGS="$TDB_CFLAGS"
14599
if test -n "$PKG_CONFIG" && \
14600
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.1.3\""; } >&5
14601
($PKG_CONFIG --exists --print-errors "tdb >= 1.1.3") 2>&5
14603
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604
test $ac_status = 0; }; then
14605
pkg_cv_TDB_CFLAGS=`$PKG_CONFIG --cflags "tdb >= 1.1.3" 2>/dev/null`
14613
if test -n "$PKG_CONFIG"; then
14614
if test -n "$TDB_LIBS"; then
14615
pkg_cv_TDB_LIBS="$TDB_LIBS"
14617
if test -n "$PKG_CONFIG" && \
14618
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.1.3\""; } >&5
14619
($PKG_CONFIG --exists --print-errors "tdb >= 1.1.3") 2>&5
14621
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622
test $ac_status = 0; }; then
14623
pkg_cv_TDB_LIBS=`$PKG_CONFIG --libs "tdb >= 1.1.3" 2>/dev/null`
14634
if test $pkg_failed = yes; then
14636
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14637
_pkg_short_errors_supported=yes
14639
_pkg_short_errors_supported=no
14641
if test $_pkg_short_errors_supported = yes; then
14642
TDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tdb >= 1.1.3"`
14644
TDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tdb >= 1.1.3"`
14646
# Put the nasty error message in config.log where it belongs
14647
echo "$TDB_PKG_ERRORS" >&5
14649
as_fn_error $? "Package requirements (tdb >= 1.1.3) were not met:
14653
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14654
installed software in a non-standard prefix.
14656
Alternatively, you may set the environment variables TDB_CFLAGS
14657
and TDB_LIBS to avoid the need to call pkg-config.
14658
See the pkg-config man page for more details.
14660
elif test $pkg_failed = untried; then
14661
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14663
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14664
is in your PATH or set the PKG_CONFIG environment variable to the full
14665
path to pkg-config.
14667
Alternatively, you may set the environment variables TDB_CFLAGS
14668
and TDB_LIBS to avoid the need to call pkg-config.
14669
See the pkg-config man page for more details.
14671
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14672
See \`config.log' for more details" "$LINENO" 5; }
14674
TDB_CFLAGS=$pkg_cv_TDB_CFLAGS
14675
TDB_LIBS=$pkg_cv_TDB_LIBS
14676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14677
$as_echo "yes" >&6; }
14690
ac_fn_c_check_header_mongrel "$LINENO" "tevent.h" "ac_cv_header_tevent_h" "$ac_includes_default"
14691
if test "x$ac_cv_header_tevent_h" = xyes; then :
14692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tevent_context_init in -ltevent" >&5
14693
$as_echo_n "checking for tevent_context_init in -ltevent... " >&6; }
14694
if ${ac_cv_lib_tevent_tevent_context_init+:} false; then :
14695
$as_echo_n "(cached) " >&6
14697
ac_check_lib_save_LIBS=$LIBS
14698
LIBS="-ltevent -ltalloc $LIBS"
14699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700
/* end confdefs.h. */
14702
/* Override any GCC internal prototype to avoid an error.
14703
Use char because int might match the return type of a GCC
14704
builtin and then its argument prototype would still apply. */
14708
char tevent_context_init ();
14712
return tevent_context_init ();
14717
if ac_fn_c_try_link "$LINENO"; then :
14718
ac_cv_lib_tevent_tevent_context_init=yes
14720
ac_cv_lib_tevent_tevent_context_init=no
14722
rm -f core conftest.err conftest.$ac_objext \
14723
conftest$ac_exeext conftest.$ac_ext
14724
LIBS=$ac_check_lib_save_LIBS
14726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tevent_tevent_context_init" >&5
14727
$as_echo "$ac_cv_lib_tevent_tevent_context_init" >&6; }
14728
if test "x$ac_cv_lib_tevent_tevent_context_init" = xyes; then :
14729
TEVENT_LIBS="-ltevent -ltalloc"
14731
as_fn_error $? "libtevent missing tevent_context_init" "$LINENO" 5
14737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEVENT" >&5
14738
$as_echo_n "checking for TEVENT... " >&6; }
14740
if test -n "$PKG_CONFIG"; then
14741
if test -n "$TEVENT_CFLAGS"; then
14742
pkg_cv_TEVENT_CFLAGS="$TEVENT_CFLAGS"
14744
if test -n "$PKG_CONFIG" && \
14745
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tevent\""; } >&5
14746
($PKG_CONFIG --exists --print-errors "tevent") 2>&5
14748
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749
test $ac_status = 0; }; then
14750
pkg_cv_TEVENT_CFLAGS=`$PKG_CONFIG --cflags "tevent" 2>/dev/null`
14758
if test -n "$PKG_CONFIG"; then
14759
if test -n "$TEVENT_LIBS"; then
14760
pkg_cv_TEVENT_LIBS="$TEVENT_LIBS"
14762
if test -n "$PKG_CONFIG" && \
14763
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tevent\""; } >&5
14764
($PKG_CONFIG --exists --print-errors "tevent") 2>&5
14766
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767
test $ac_status = 0; }; then
14768
pkg_cv_TEVENT_LIBS=`$PKG_CONFIG --libs "tevent" 2>/dev/null`
14779
if test $pkg_failed = yes; then
14781
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14782
_pkg_short_errors_supported=yes
14784
_pkg_short_errors_supported=no
14786
if test $_pkg_short_errors_supported = yes; then
14787
TEVENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tevent"`
14789
TEVENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tevent"`
14791
# Put the nasty error message in config.log where it belongs
14792
echo "$TEVENT_PKG_ERRORS" >&5
14794
as_fn_error $? "Package requirements (tevent) were not met:
14798
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14799
installed software in a non-standard prefix.
14801
Alternatively, you may set the environment variables TEVENT_CFLAGS
14802
and TEVENT_LIBS to avoid the need to call pkg-config.
14803
See the pkg-config man page for more details.
14805
elif test $pkg_failed = untried; then
14806
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14807
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14808
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14809
is in your PATH or set the PKG_CONFIG environment variable to the full
14810
path to pkg-config.
14812
Alternatively, you may set the environment variables TEVENT_CFLAGS
14813
and TEVENT_LIBS to avoid the need to call pkg-config.
14814
See the pkg-config man page for more details.
14816
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14817
See \`config.log' for more details" "$LINENO" 5; }
14819
TEVENT_CFLAGS=$pkg_cv_TEVENT_CFLAGS
14820
TEVENT_LIBS=$pkg_cv_TEVENT_LIBS
14821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822
$as_echo "yes" >&6; }
14835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDB" >&5
14836
$as_echo_n "checking for LDB... " >&6; }
14838
if test -n "$PKG_CONFIG"; then
14839
if test -n "$LDB_CFLAGS"; then
14840
pkg_cv_LDB_CFLAGS="$LDB_CFLAGS"
14842
if test -n "$PKG_CONFIG" && \
14843
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ldb >= 0.9.2\""; } >&5
14844
($PKG_CONFIG --exists --print-errors "ldb >= 0.9.2") 2>&5
14846
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847
test $ac_status = 0; }; then
14848
pkg_cv_LDB_CFLAGS=`$PKG_CONFIG --cflags "ldb >= 0.9.2" 2>/dev/null`
14856
if test -n "$PKG_CONFIG"; then
14857
if test -n "$LDB_LIBS"; then
14858
pkg_cv_LDB_LIBS="$LDB_LIBS"
14860
if test -n "$PKG_CONFIG" && \
14861
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ldb >= 0.9.2\""; } >&5
14862
($PKG_CONFIG --exists --print-errors "ldb >= 0.9.2") 2>&5
14864
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14865
test $ac_status = 0; }; then
14866
pkg_cv_LDB_LIBS=`$PKG_CONFIG --libs "ldb >= 0.9.2" 2>/dev/null`
14877
if test $pkg_failed = yes; then
14879
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14880
_pkg_short_errors_supported=yes
14882
_pkg_short_errors_supported=no
14884
if test $_pkg_short_errors_supported = yes; then
14885
LDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ldb >= 0.9.2"`
14887
LDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ldb >= 0.9.2"`
14889
# Put the nasty error message in config.log where it belongs
14890
echo "$LDB_PKG_ERRORS" >&5
14892
as_fn_error $? "Package requirements (ldb >= 0.9.2) were not met:
14896
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14897
installed software in a non-standard prefix.
14899
Alternatively, you may set the environment variables LDB_CFLAGS
14900
and LDB_LIBS to avoid the need to call pkg-config.
14901
See the pkg-config man page for more details.
14903
elif test $pkg_failed = untried; then
14904
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14905
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14906
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14907
is in your PATH or set the PKG_CONFIG environment variable to the full
14908
path to pkg-config.
14910
Alternatively, you may set the environment variables LDB_CFLAGS
14911
and LDB_LIBS to avoid the need to call pkg-config.
14912
See the pkg-config man page for more details.
14914
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14915
See \`config.log' for more details" "$LINENO" 5; }
14917
LDB_CFLAGS=$pkg_cv_LDB_CFLAGS
14918
LDB_LIBS=$pkg_cv_LDB_LIBS
14919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920
$as_echo "yes" >&6; }
14924
for ac_header in ldb.h ldb_module.h
14926
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14927
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14928
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14929
cat >>confdefs.h <<_ACEOF
14930
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldb_init in -lldb" >&5
14933
$as_echo_n "checking for ldb_init in -lldb... " >&6; }
14934
if ${ac_cv_lib_ldb_ldb_init+:} false; then :
14935
$as_echo_n "(cached) " >&6
14937
ac_check_lib_save_LIBS=$LIBS
14938
LIBS="-lldb -ltevent -ltdb -ldl -lldap $LIBS"
14939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940
/* end confdefs.h. */
14942
/* Override any GCC internal prototype to avoid an error.
14943
Use char because int might match the return type of a GCC
14944
builtin and then its argument prototype would still apply. */
14952
return ldb_init ();
14957
if ac_fn_c_try_link "$LINENO"; then :
14958
ac_cv_lib_ldb_ldb_init=yes
14960
ac_cv_lib_ldb_ldb_init=no
14962
rm -f core conftest.err conftest.$ac_objext \
14963
conftest$ac_exeext conftest.$ac_ext
14964
LIBS=$ac_check_lib_save_LIBS
14966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldb_ldb_init" >&5
14967
$as_echo "$ac_cv_lib_ldb_ldb_init" >&6; }
14968
if test "x$ac_cv_lib_ldb_ldb_init" = xyes; then :
14973
as_fn_error $? "LDB header files are not installed" "$LINENO" 5
14981
# Check whether --with-ldb-lib-dir was given.
14982
if test "${with_ldb_lib_dir+set}" = set; then :
14983
withval=$with_ldb_lib_dir;
14987
if test x"$with_ldb_lib_dir" != x; then
14988
ldblibdir=$with_ldb_lib_dir
14990
ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`"
14991
if ! test -d $ldblibdir; then
14992
ldblibdir="${libdir}/ldb"
14995
{ $as_echo "$as_me:${as_lineno-$LINENO}: ldb lib directory: $ldblibdir" >&5
14996
$as_echo "$as_me: ldb lib directory: $ldblibdir" >&6;}
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DHASH" >&5
15006
$as_echo_n "checking for DHASH... " >&6; }
15008
if test -n "$PKG_CONFIG"; then
15009
if test -n "$DHASH_CFLAGS"; then
15010
pkg_cv_DHASH_CFLAGS="$DHASH_CFLAGS"
15012
if test -n "$PKG_CONFIG" && \
15013
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dhash >= 0.4.2\""; } >&5
15014
($PKG_CONFIG --exists --print-errors "dhash >= 0.4.2") 2>&5
15016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017
test $ac_status = 0; }; then
15018
pkg_cv_DHASH_CFLAGS=`$PKG_CONFIG --cflags "dhash >= 0.4.2" 2>/dev/null`
15026
if test -n "$PKG_CONFIG"; then
15027
if test -n "$DHASH_LIBS"; then
15028
pkg_cv_DHASH_LIBS="$DHASH_LIBS"
15030
if test -n "$PKG_CONFIG" && \
15031
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dhash >= 0.4.2\""; } >&5
15032
($PKG_CONFIG --exists --print-errors "dhash >= 0.4.2") 2>&5
15034
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035
test $ac_status = 0; }; then
15036
pkg_cv_DHASH_LIBS=`$PKG_CONFIG --libs "dhash >= 0.4.2" 2>/dev/null`
15047
if test $pkg_failed = yes; then
15049
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15050
_pkg_short_errors_supported=yes
15052
_pkg_short_errors_supported=no
15054
if test $_pkg_short_errors_supported = yes; then
15055
DHASH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dhash >= 0.4.2"`
15057
DHASH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dhash >= 0.4.2"`
15059
# Put the nasty error message in config.log where it belongs
15060
echo "$DHASH_PKG_ERRORS" >&5
15062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063
$as_echo "no" >&6; }
15064
as_fn_error $? "\"Please install libdhash-devel\"" "$LINENO" 5
15066
elif test $pkg_failed = untried; then
15067
as_fn_error $? "\"Please install libdhash-devel\"" "$LINENO" 5
15070
DHASH_CFLAGS=$pkg_cv_DHASH_CFLAGS
15071
DHASH_LIBS=$pkg_cv_DHASH_LIBS
15072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15073
$as_echo "yes" >&6; }
15084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COLLECTION" >&5
15085
$as_echo_n "checking for COLLECTION... " >&6; }
15087
if test -n "$PKG_CONFIG"; then
15088
if test -n "$COLLECTION_CFLAGS"; then
15089
pkg_cv_COLLECTION_CFLAGS="$COLLECTION_CFLAGS"
15091
if test -n "$PKG_CONFIG" && \
15092
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"collection >= 0.5.1\""; } >&5
15093
($PKG_CONFIG --exists --print-errors "collection >= 0.5.1") 2>&5
15095
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15096
test $ac_status = 0; }; then
15097
pkg_cv_COLLECTION_CFLAGS=`$PKG_CONFIG --cflags "collection >= 0.5.1" 2>/dev/null`
15105
if test -n "$PKG_CONFIG"; then
15106
if test -n "$COLLECTION_LIBS"; then
15107
pkg_cv_COLLECTION_LIBS="$COLLECTION_LIBS"
15109
if test -n "$PKG_CONFIG" && \
15110
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"collection >= 0.5.1\""; } >&5
15111
($PKG_CONFIG --exists --print-errors "collection >= 0.5.1") 2>&5
15113
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114
test $ac_status = 0; }; then
15115
pkg_cv_COLLECTION_LIBS=`$PKG_CONFIG --libs "collection >= 0.5.1" 2>/dev/null`
15126
if test $pkg_failed = yes; then
15128
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15129
_pkg_short_errors_supported=yes
15131
_pkg_short_errors_supported=no
15133
if test $_pkg_short_errors_supported = yes; then
15134
COLLECTION_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "collection >= 0.5.1"`
15136
COLLECTION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "collection >= 0.5.1"`
15138
# Put the nasty error message in config.log where it belongs
15139
echo "$COLLECTION_PKG_ERRORS" >&5
15141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142
$as_echo "no" >&6; }
15143
as_fn_error $? "\"Please install libcollection-devel\"" "$LINENO" 5
15145
elif test $pkg_failed = untried; then
15146
as_fn_error $? "\"Please install libcollection-devel\"" "$LINENO" 5
15149
COLLECTION_CFLAGS=$pkg_cv_COLLECTION_CFLAGS
15150
COLLECTION_LIBS=$pkg_cv_COLLECTION_LIBS
15151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15152
$as_echo "yes" >&6; }
15163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INI_CONFIG" >&5
15164
$as_echo_n "checking for INI_CONFIG... " >&6; }
15166
if test -n "$PKG_CONFIG"; then
15167
if test -n "$INI_CONFIG_CFLAGS"; then
15168
pkg_cv_INI_CONFIG_CFLAGS="$INI_CONFIG_CFLAGS"
15170
if test -n "$PKG_CONFIG" && \
15171
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ini_config >= 0.6.1\""; } >&5
15172
($PKG_CONFIG --exists --print-errors "ini_config >= 0.6.1") 2>&5
15174
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175
test $ac_status = 0; }; then
15176
pkg_cv_INI_CONFIG_CFLAGS=`$PKG_CONFIG --cflags "ini_config >= 0.6.1" 2>/dev/null`
15184
if test -n "$PKG_CONFIG"; then
15185
if test -n "$INI_CONFIG_LIBS"; then
15186
pkg_cv_INI_CONFIG_LIBS="$INI_CONFIG_LIBS"
15188
if test -n "$PKG_CONFIG" && \
15189
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ini_config >= 0.6.1\""; } >&5
15190
($PKG_CONFIG --exists --print-errors "ini_config >= 0.6.1") 2>&5
15192
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193
test $ac_status = 0; }; then
15194
pkg_cv_INI_CONFIG_LIBS=`$PKG_CONFIG --libs "ini_config >= 0.6.1" 2>/dev/null`
15205
if test $pkg_failed = yes; then
15207
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15208
_pkg_short_errors_supported=yes
15210
_pkg_short_errors_supported=no
15212
if test $_pkg_short_errors_supported = yes; then
15213
INI_CONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ini_config >= 0.6.1"`
15215
INI_CONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ini_config >= 0.6.1"`
15217
# Put the nasty error message in config.log where it belongs
15218
echo "$INI_CONFIG_PKG_ERRORS" >&5
15220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221
$as_echo "no" >&6; }
15222
as_fn_error $? "\"Please install libini_config-devel\"" "$LINENO" 5
15224
elif test $pkg_failed = untried; then
15225
as_fn_error $? "\"Please install libini_config-devel\"" "$LINENO" 5
15228
INI_CONFIG_CFLAGS=$pkg_cv_INI_CONFIG_CFLAGS
15229
INI_CONFIG_LIBS=$pkg_cv_INI_CONFIG_LIBS
15230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15231
$as_echo "yes" >&6; }
15238
for ac_header in security/pam_appl.h security/pam_misc.h security/pam_modules.h
15240
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15241
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15242
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15243
cat >>confdefs.h <<_ACEOF
15244
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_item in -lpam" >&5
15247
$as_echo_n "checking for pam_get_item in -lpam... " >&6; }
15248
if ${ac_cv_lib_pam_pam_get_item+:} false; then :
15249
$as_echo_n "(cached) " >&6
15251
ac_check_lib_save_LIBS=$LIBS
15253
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254
/* end confdefs.h. */
15256
/* Override any GCC internal prototype to avoid an error.
15257
Use char because int might match the return type of a GCC
15258
builtin and then its argument prototype would still apply. */
15262
char pam_get_item ();
15266
return pam_get_item ();
15271
if ac_fn_c_try_link "$LINENO"; then :
15272
ac_cv_lib_pam_pam_get_item=yes
15274
ac_cv_lib_pam_pam_get_item=no
15276
rm -f core conftest.err conftest.$ac_objext \
15277
conftest$ac_exeext conftest.$ac_ext
15278
LIBS=$ac_check_lib_save_LIBS
15280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_item" >&5
15281
$as_echo "$ac_cv_lib_pam_pam_get_item" >&6; }
15282
if test "x$ac_cv_lib_pam_pam_get_item" = xyes; then :
15285
as_fn_error $? "PAM must support pam_get_item" "$LINENO" 5
15289
as_fn_error $? "PAM development libraries not installed" "$LINENO" 5
15297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lldap" >&5
15298
$as_echo_n "checking for ldap_search in -lldap... " >&6; }
15299
if ${ac_cv_lib_ldap_ldap_search+:} false; then :
15300
$as_echo_n "(cached) " >&6
15302
ac_check_lib_save_LIBS=$LIBS
15303
LIBS="-lldap $LIBS"
15304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305
/* end confdefs.h. */
15307
/* Override any GCC internal prototype to avoid an error.
15308
Use char because int might match the return type of a GCC
15309
builtin and then its argument prototype would still apply. */
15313
char ldap_search ();
15317
return ldap_search ();
15322
if ac_fn_c_try_link "$LINENO"; then :
15323
ac_cv_lib_ldap_ldap_search=yes
15325
ac_cv_lib_ldap_ldap_search=no
15327
rm -f core conftest.err conftest.$ac_objext \
15328
conftest$ac_exeext conftest.$ac_ext
15329
LIBS=$ac_check_lib_save_LIBS
15331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_search" >&5
15332
$as_echo "$ac_cv_lib_ldap_ldap_search" >&6; }
15333
if test "x$ac_cv_lib_ldap_ldap_search" = xyes; then :
15337
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
15338
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
15339
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
15340
$as_echo_n "(cached) " >&6
15342
ac_check_lib_save_LIBS=$LIBS
15343
LIBS="-lldap -llber $LIBS"
15344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345
/* end confdefs.h. */
15347
/* Override any GCC internal prototype to avoid an error.
15348
Use char because int might match the return type of a GCC
15349
builtin and then its argument prototype would still apply. */
15357
return ldap_open ();
15362
if ac_fn_c_try_link "$LINENO"; then :
15363
ac_cv_lib_ldap_ldap_open=yes
15365
ac_cv_lib_ldap_ldap_open=no
15367
rm -f core conftest.err conftest.$ac_objext \
15368
conftest$ac_exeext conftest.$ac_ext
15369
LIBS=$ac_check_lib_save_LIBS
15371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
15372
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
15373
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
15374
with_ldap=yes with_ldap_lber=yes
15377
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
15378
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
15379
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
15380
$as_echo_n "(cached) " >&6
15382
ac_check_lib_save_LIBS=$LIBS
15383
LIBS="-lldap -llber -lkrb $LIBS"
15384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385
/* end confdefs.h. */
15387
/* Override any GCC internal prototype to avoid an error.
15388
Use char because int might match the return type of a GCC
15389
builtin and then its argument prototype would still apply. */
15397
return ldap_open ();
15402
if ac_fn_c_try_link "$LINENO"; then :
15403
ac_cv_lib_ldap_ldap_open=yes
15405
ac_cv_lib_ldap_ldap_open=no
15407
rm -f core conftest.err conftest.$ac_objext \
15408
conftest$ac_exeext conftest.$ac_ext
15409
LIBS=$ac_check_lib_save_LIBS
15411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
15412
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
15413
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
15414
with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes
15417
test "$with_ldap" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
15418
$as_echo_n "checking for ldap_open in -lldap... " >&6; }
15419
if ${ac_cv_lib_ldap_ldap_open+:} false; then :
15420
$as_echo_n "(cached) " >&6
15422
ac_check_lib_save_LIBS=$LIBS
15423
LIBS="-lldap -llber -lkrb -ldes $LIBS"
15424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425
/* end confdefs.h. */
15427
/* Override any GCC internal prototype to avoid an error.
15428
Use char because int might match the return type of a GCC
15429
builtin and then its argument prototype would still apply. */
15437
return ldap_open ();
15442
if ac_fn_c_try_link "$LINENO"; then :
15443
ac_cv_lib_ldap_ldap_open=yes
15445
ac_cv_lib_ldap_ldap_open=no
15447
rm -f core conftest.err conftest.$ac_objext \
15448
conftest$ac_exeext conftest.$ac_ext
15449
LIBS=$ac_check_lib_save_LIBS
15451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
15452
$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
15453
if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
15454
with_ldap=yes with_ldap_lber=yes with_ldap_krb=yes with_ldap_des=yes
15457
test "$with_ldap_lber" != "yes" && { { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_pvt_opt_on in -llber" >&5
15458
$as_echo_n "checking for ber_pvt_opt_on in -llber... " >&6; }
15459
if ${ac_cv_lib_lber_ber_pvt_opt_on+:} false; then :
15460
$as_echo_n "(cached) " >&6
15462
ac_check_lib_save_LIBS=$LIBS
15463
LIBS="-llber $LIBS"
15464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465
/* end confdefs.h. */
15467
/* Override any GCC internal prototype to avoid an error.
15468
Use char because int might match the return type of a GCC
15469
builtin and then its argument prototype would still apply. */
15473
char ber_pvt_opt_on ();
15477
return ber_pvt_opt_on ();
15482
if ac_fn_c_try_link "$LINENO"; then :
15483
ac_cv_lib_lber_ber_pvt_opt_on=yes
15485
ac_cv_lib_lber_ber_pvt_opt_on=no
15487
rm -f core conftest.err conftest.$ac_objext \
15488
conftest$ac_exeext conftest.$ac_ext
15489
LIBS=$ac_check_lib_save_LIBS
15491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_pvt_opt_on" >&5
15492
$as_echo "$ac_cv_lib_lber_ber_pvt_opt_on" >&6; }
15493
if test "x$ac_cv_lib_lber_ber_pvt_opt_on" = xyes; then :
15498
if test "$with_ldap" = "yes"; then
15499
if test "$with_ldap_des" = "yes" ; then
15500
OPENLDAP_LIBS="${OPENLDAP_LIBS} -ldes"
15502
if test "$with_ldap_krb" = "yes" ; then
15503
OPENLDAP_LIBS="${OPENLDAP_LIBS} -lkrb"
15505
if test "$with_ldap_lber" = "yes" ; then
15506
OPENLDAP_LIBS="${OPENLDAP_LIBS} -llber"
15508
OPENLDAP_LIBS="${OPENLDAP_LIBS} -lldap"
15510
as_fn_error $? "OpenLDAP not found" "$LINENO" 5
15515
SAVE_CFLAGS=$CFLAGS
15517
CFLAGS="$CFLAGS $OPENLDAP_CFLAGS"
15518
LIBS="$LIBS $OPENLDAP_LIBS"
15519
for ac_func in ldap_control_create
15521
ac_fn_c_check_func "$LINENO" "ldap_control_create" "ac_cv_func_ldap_control_create"
15522
if test "x$ac_cv_func_ldap_control_create" = xyes; then :
15523
cat >>confdefs.h <<_ACEOF
15524
#define HAVE_LDAP_CONTROL_CREATE 1
15530
ac_fn_c_check_member "$LINENO" "struct ldap_conncb" "lc_arg" "ac_cv_member_struct_ldap_conncb_lc_arg" "#include <ldap.h>
15532
if test "x$ac_cv_member_struct_ldap_conncb_lc_arg" = xyes; then :
15534
cat >>confdefs.h <<_ACEOF
15535
#define HAVE_STRUCT_LDAP_CONNCB_LC_ARG 1
15538
if test "$cross_compiling" = yes; then :
15539
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541
as_fn_error $? "cannot run test program while cross compiling
15542
See \`config.log' for more details" "$LINENO" 5; }
15544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545
/* end confdefs.h. */
15551
struct ldap_conncb cb;
15552
return ldap_set_option(NULL, LDAP_OPT_CONNECT_CB, &cb);
15558
if ac_fn_c_try_run "$LINENO"; then :
15560
$as_echo "#define HAVE_LDAP_CONNCB 1" >>confdefs.h
15563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found broken callback implementation" >&5
15564
$as_echo "$as_me: WARNING: Found broken callback implementation" >&2;}
15566
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15567
conftest.$ac_objext conftest.beam conftest.$ac_ext
15573
CFLAGS=$SAVE_CFLAGS
15584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
15585
$as_echo_n "checking for PCRE... " >&6; }
15587
if test -n "$PKG_CONFIG"; then
15588
if test -n "$PCRE_CFLAGS"; then
15589
pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
15591
if test -n "$PKG_CONFIG" && \
15592
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15593
($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15595
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15596
test $ac_status = 0; }; then
15597
pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
15605
if test -n "$PKG_CONFIG"; then
15606
if test -n "$PCRE_LIBS"; then
15607
pkg_cv_PCRE_LIBS="$PCRE_LIBS"
15609
if test -n "$PKG_CONFIG" && \
15610
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15611
($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15613
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15614
test $ac_status = 0; }; then
15615
pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
15626
if test $pkg_failed = yes; then
15628
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15629
_pkg_short_errors_supported=yes
15631
_pkg_short_errors_supported=no
15633
if test $_pkg_short_errors_supported = yes; then
15634
PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
15636
PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
15638
# Put the nasty error message in config.log where it belongs
15639
echo "$PCRE_PKG_ERRORS" >&5
15641
as_fn_error $? "Package requirements (libpcre) were not met:
15645
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15646
installed software in a non-standard prefix.
15648
Alternatively, you may set the environment variables PCRE_CFLAGS
15649
and PCRE_LIBS to avoid the need to call pkg-config.
15650
See the pkg-config man page for more details.
15652
elif test $pkg_failed = untried; then
15653
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15654
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15655
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15656
is in your PATH or set the PKG_CONFIG environment variable to the full
15657
path to pkg-config.
15659
Alternatively, you may set the environment variables PCRE_CFLAGS
15660
and PCRE_LIBS to avoid the need to call pkg-config.
15661
See the pkg-config man page for more details.
15663
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15664
See \`config.log' for more details" "$LINENO" 5; }
15666
PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
15667
PCRE_LIBS=$pkg_cv_PCRE_LIBS
15668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15669
$as_echo "yes" >&6; }
15672
if test -n "$PKG_CONFIG" && \
15673
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= 7\""; } >&5
15674
($PKG_CONFIG --exists --print-errors "libpcre >= 7") 2>&5
15676
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15677
test $ac_status = 0; }; then
15678
{ $as_echo "$as_me:${as_lineno-$LINENO}: PCRE version is 7 or higher" >&5
15679
$as_echo "$as_me: PCRE version is 7 or higher" >&6;}
15681
{ $as_echo "$as_me:${as_lineno-$LINENO}: PCRE version is below 7" >&5
15682
$as_echo "$as_me: PCRE version is below 7" >&6;}
15684
$as_echo "#define HAVE_LIBPCRE_LESSER_THAN_7 1" >>confdefs.h
15688
for ac_header in pcre.h
15690
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
15691
if test "x$ac_cv_header_pcre_h" = xyes; then :
15692
cat >>confdefs.h <<_ACEOF
15693
#define HAVE_PCRE_H 1
15700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
15701
$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
15702
if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
15703
$as_echo_n "(cached) " >&6
15705
ac_check_lib_save_LIBS=$LIBS
15706
LIBS="-lpcre $LIBS"
15707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708
/* end confdefs.h. */
15710
/* Override any GCC internal prototype to avoid an error.
15711
Use char because int might match the return type of a GCC
15712
builtin and then its argument prototype would still apply. */
15716
char pcre_compile ();
15720
return pcre_compile ();
15725
if ac_fn_c_try_link "$LINENO"; then :
15726
ac_cv_lib_pcre_pcre_compile=yes
15728
ac_cv_lib_pcre_pcre_compile=no
15730
rm -f core conftest.err conftest.$ac_objext \
15731
conftest$ac_exeext conftest.$ac_ext
15732
LIBS=$ac_check_lib_save_LIBS
15734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
15735
$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
15736
if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
15739
as_fn_error $? "PCRE is required" "$LINENO" 5
15746
if test x$KRB5_LIBS != x; then
15747
KRB5_PASSED_LIBS=$KRB5_LIBS
15750
if test x$KRB5_CFLAGS != x; then
15751
KRB5_PASSED_CFLAGS=$KRB5_CFLAGS
15754
# Extract the first word of "krb5-config", so it can be a program name with args.
15755
set dummy krb5-config; ac_word=$2
15756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757
$as_echo_n "checking for $ac_word... " >&6; }
15758
if ${ac_cv_path_KRB5_CONFIG+:} false; then :
15759
$as_echo_n "(cached) " >&6
15761
case $KRB5_CONFIG in
15763
ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
15766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767
for as_dir in $PATH
15770
test -z "$as_dir" && as_dir=.
15771
for ac_exec_ext in '' $ac_executable_extensions; do
15772
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15773
ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15774
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15784
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
15785
if test -n "$KRB5_CONFIG"; then
15786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
15787
$as_echo "$KRB5_CONFIG" >&6; }
15789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15790
$as_echo "no" >&6; }
15794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working krb5-config" >&5
15795
$as_echo_n "checking for working krb5-config... " >&6; }
15796
if test -x "$KRB5_CONFIG"; then
15797
KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
15798
KRB5_LIBS="`$KRB5_CONFIG --libs`"
15799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800
$as_echo "yes" >&6; }
15802
if test x$KRB5_PASSED_LIBS = x; then
15803
as_fn_error $? "no. Please install MIT kerberos devel package" "$LINENO" 5
15807
if test x$KRB5_PASSED_LIBS != x; then
15808
KRB5_LIBS=$KRB5_PASSED_LIBS
15811
if test x$KRB5_PASSED_CFLAGS != x; then
15812
KRB5_CFLAGS=$KRB5_PASSED_CFLAGS
15816
SAVE_CFLAGS=$CFLAGS
15818
CFLAGS="$CFLAGS $KRB5_CFLAGS"
15819
LIBS="$LIBS $KRB5_LIBS"
15820
for ac_header in krb5.h krb5/krb5.h
15822
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15824
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15825
cat >>confdefs.h <<_ACEOF
15826
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833
for ac_func in krb5_get_init_creds_opt_alloc krb5_get_error_message \
15834
krb5_free_unparsed_name \
15835
krb5_get_init_creds_opt_set_expire_callback \
15836
krb5_get_init_creds_opt_set_fast_ccache_name \
15837
krb5_get_init_creds_opt_set_fast_flags
15839
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15840
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15841
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15842
cat >>confdefs.h <<_ACEOF
15843
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15849
CFLAGS=$SAVE_CFLAGS
15852
if test x$ac_cv_header_krb5_h != xyes -a x$ac_cv_header_krb5_krb5_h != xyes
15854
as_fn_error $? "you must have Kerberos 5 header files to build sssd" "$LINENO" 5
15857
# Check whether --enable-krb5-locator-plugin was given.
15858
if test "${enable_krb5_locator_plugin+set}" = set; then :
15859
enableval=$enable_krb5_locator_plugin; build_locator=$enableval
15865
ac_fn_c_check_header_mongrel "$LINENO" "krb5/locate_plugin.h" "ac_cv_header_krb5_locate_plugin_h" "$ac_includes_default"
15866
if test "x$ac_cv_header_krb5_locate_plugin_h" = xyes; then :
15867
have_locate_plugin=yes
15869
have_locate_plugin=no
15870
{ $as_echo "$as_me:${as_lineno-$LINENO}: Kerberos locator plugin cannot be build" >&5
15871
$as_echo "$as_me: Kerberos locator plugin cannot be build" >&6;}
15875
if test x$have_locate_plugin = xyes -a x$build_locator = xyes; then
15876
BUILD_KRB5_LOCATOR_PLUGIN_TRUE=
15877
BUILD_KRB5_LOCATOR_PLUGIN_FALSE='#'
15879
BUILD_KRB5_LOCATOR_PLUGIN_TRUE='#'
15880
BUILD_KRB5_LOCATOR_PLUGIN_FALSE=
15889
for ac_header in ares.h
15891
ac_fn_c_check_header_mongrel "$LINENO" "ares.h" "ac_cv_header_ares_h" "$ac_includes_default"
15892
if test "x$ac_cv_header_ares_h" = xyes; then :
15893
cat >>confdefs.h <<_ACEOF
15894
#define HAVE_ARES_H 1
15896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
15897
$as_echo_n "checking for ares_init in -lcares... " >&6; }
15898
if ${ac_cv_lib_cares_ares_init+:} false; then :
15899
$as_echo_n "(cached) " >&6
15901
ac_check_lib_save_LIBS=$LIBS
15902
LIBS="-lcares $LIBS"
15903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904
/* end confdefs.h. */
15906
/* Override any GCC internal prototype to avoid an error.
15907
Use char because int might match the return type of a GCC
15908
builtin and then its argument prototype would still apply. */
15916
return ares_init ();
15921
if ac_fn_c_try_link "$LINENO"; then :
15922
ac_cv_lib_cares_ares_init=yes
15924
ac_cv_lib_cares_ares_init=no
15926
rm -f core conftest.err conftest.$ac_objext \
15927
conftest$ac_exeext conftest.$ac_ext
15928
LIBS=$ac_check_lib_save_LIBS
15930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
15931
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
15932
if test "x$ac_cv_lib_cares_ares_init" = xyes; then :
15933
CARES_LIBS="-lcares"
15935
as_fn_error $? "No usable c-ares library found" "$LINENO" 5
15939
as_fn_error $? "c-ares header files are not installed" "$LINENO" 5
15946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_free_data in -lcares" >&5
15947
$as_echo_n "checking for ares_free_data in -lcares... " >&6; }
15948
if ${ac_cv_lib_cares_ares_free_data+:} false; then :
15949
$as_echo_n "(cached) " >&6
15951
ac_check_lib_save_LIBS=$LIBS
15952
LIBS="-lcares $LIBS"
15953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954
/* end confdefs.h. */
15956
/* Override any GCC internal prototype to avoid an error.
15957
Use char because int might match the return type of a GCC
15958
builtin and then its argument prototype would still apply. */
15962
char ares_free_data ();
15966
return ares_free_data ();
15971
if ac_fn_c_try_link "$LINENO"; then :
15972
ac_cv_lib_cares_ares_free_data=yes
15974
ac_cv_lib_cares_ares_free_data=no
15976
rm -f core conftest.err conftest.$ac_objext \
15977
conftest$ac_exeext conftest.$ac_ext
15978
LIBS=$ac_check_lib_save_LIBS
15980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_free_data" >&5
15981
$as_echo "$ac_cv_lib_cares_ares_free_data" >&6; }
15982
if test "x$ac_cv_lib_cares_ares_free_data" = xyes; then :
15984
$as_echo "#define HAVE_ARES_DATA 1" >>confdefs.h
15995
if test x$ares_data = x1; then
15996
BUILD_ARES_DATA_TRUE=
15997
BUILD_ARES_DATA_FALSE='#'
15999
BUILD_ARES_DATA_TRUE='#'
16000
BUILD_ARES_DATA_FALSE=
16009
# Solaris needs HAVE_LONG_LONG defined
16010
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
16011
if test "x$ac_cv_type_long_long" = xyes; then :
16013
cat >>confdefs.h <<_ACEOF
16014
#define HAVE_LONG_LONG 1
16021
# The cast to long int works around a bug in the HP C Compiler
16022
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16023
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16024
# This bug is HP SR number 8606223364.
16025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16026
$as_echo_n "checking size of int... " >&6; }
16027
if ${ac_cv_sizeof_int+:} false; then :
16028
$as_echo_n "(cached) " >&6
16030
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16033
if test "$ac_cv_type_int" = yes; then
16034
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16035
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16036
as_fn_error 77 "cannot compute sizeof (int)
16037
See \`config.log' for more details" "$LINENO" 5; }
16044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16045
$as_echo "$ac_cv_sizeof_int" >&6; }
16049
cat >>confdefs.h <<_ACEOF
16050
#define SIZEOF_INT $ac_cv_sizeof_int
16054
# The cast to long int works around a bug in the HP C Compiler
16055
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16056
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16057
# This bug is HP SR number 8606223364.
16058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16059
$as_echo_n "checking size of char... " >&6; }
16060
if ${ac_cv_sizeof_char+:} false; then :
16061
$as_echo_n "(cached) " >&6
16063
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16066
if test "$ac_cv_type_char" = yes; then
16067
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16068
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16069
as_fn_error 77 "cannot compute sizeof (char)
16070
See \`config.log' for more details" "$LINENO" 5; }
16072
ac_cv_sizeof_char=0
16077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16078
$as_echo "$ac_cv_sizeof_char" >&6; }
16082
cat >>confdefs.h <<_ACEOF
16083
#define SIZEOF_CHAR $ac_cv_sizeof_char
16087
# The cast to long int works around a bug in the HP C Compiler
16088
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16089
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16090
# This bug is HP SR number 8606223364.
16091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16092
$as_echo_n "checking size of short... " >&6; }
16093
if ${ac_cv_sizeof_short+:} false; then :
16094
$as_echo_n "(cached) " >&6
16096
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16099
if test "$ac_cv_type_short" = yes; then
16100
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16101
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16102
as_fn_error 77 "cannot compute sizeof (short)
16103
See \`config.log' for more details" "$LINENO" 5; }
16105
ac_cv_sizeof_short=0
16110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16111
$as_echo "$ac_cv_sizeof_short" >&6; }
16115
cat >>confdefs.h <<_ACEOF
16116
#define SIZEOF_SHORT $ac_cv_sizeof_short
16120
# The cast to long int works around a bug in the HP C Compiler
16121
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16122
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16123
# This bug is HP SR number 8606223364.
16124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16125
$as_echo_n "checking size of long... " >&6; }
16126
if ${ac_cv_sizeof_long+:} false; then :
16127
$as_echo_n "(cached) " >&6
16129
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16132
if test "$ac_cv_type_long" = yes; then
16133
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16134
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16135
as_fn_error 77 "cannot compute sizeof (long)
16136
See \`config.log' for more details" "$LINENO" 5; }
16138
ac_cv_sizeof_long=0
16143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16144
$as_echo "$ac_cv_sizeof_long" >&6; }
16148
cat >>confdefs.h <<_ACEOF
16149
#define SIZEOF_LONG $ac_cv_sizeof_long
16153
# The cast to long int works around a bug in the HP C Compiler
16154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16156
# This bug is HP SR number 8606223364.
16157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16158
$as_echo_n "checking size of long long... " >&6; }
16159
if ${ac_cv_sizeof_long_long+:} false; then :
16160
$as_echo_n "(cached) " >&6
16162
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
16165
if test "$ac_cv_type_long_long" = yes; then
16166
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16167
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16168
as_fn_error 77 "cannot compute sizeof (long long)
16169
See \`config.log' for more details" "$LINENO" 5; }
16171
ac_cv_sizeof_long_long=0
16176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16177
$as_echo "$ac_cv_sizeof_long_long" >&6; }
16181
cat >>confdefs.h <<_ACEOF
16182
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16187
if test $ac_cv_sizeof_long_long -lt 8 ; then
16188
as_fn_error $? "SSSD requires long long of 64-bits" "$LINENO" 5
16191
ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
16192
if test "x$ac_cv_type_uint_t" = xyes; then :
16196
cat >>confdefs.h <<_ACEOF
16197
#define uint_t unsigned int
16202
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
16203
if test "x$ac_cv_type_int8_t" = xyes; then :
16207
cat >>confdefs.h <<_ACEOF
16208
#define int8_t char
16213
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
16214
if test "x$ac_cv_type_uint8_t" = xyes; then :
16218
cat >>confdefs.h <<_ACEOF
16219
#define uint8_t unsigned char
16224
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
16225
if test "x$ac_cv_type_int16_t" = xyes; then :
16229
cat >>confdefs.h <<_ACEOF
16230
#define int16_t short
16235
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
16236
if test "x$ac_cv_type_uint16_t" = xyes; then :
16240
cat >>confdefs.h <<_ACEOF
16241
#define uint16_t unsigned short
16247
if test $ac_cv_sizeof_int -eq 4 ; then
16248
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
16249
if test "x$ac_cv_type_int32_t" = xyes; then :
16253
cat >>confdefs.h <<_ACEOF
16254
#define int32_t int
16259
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16260
if test "x$ac_cv_type_uint32_t" = xyes; then :
16264
cat >>confdefs.h <<_ACEOF
16265
#define uint32_t unsigned int
16270
elif test $ac_cv_size_long -eq 4 ; then
16271
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
16272
if test "x$ac_cv_type_int32_t" = xyes; then :
16276
cat >>confdefs.h <<_ACEOF
16277
#define int32_t long
16282
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16283
if test "x$ac_cv_type_uint32_t" = xyes; then :
16287
cat >>confdefs.h <<_ACEOF
16288
#define uint32_t unsigned long
16294
as_fn_error $? "LIBREPLACE no 32-bit type found" "$LINENO" 5
16297
ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
16298
if test "x$ac_cv_type_int64_t" = xyes; then :
16302
cat >>confdefs.h <<_ACEOF
16303
#define int64_t long long
16308
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
16309
if test "x$ac_cv_type_uint64_t" = xyes; then :
16313
cat >>confdefs.h <<_ACEOF
16314
#define uint64_t unsigned long long
16320
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16321
if test "x$ac_cv_type_size_t" = xyes; then :
16325
cat >>confdefs.h <<_ACEOF
16326
#define size_t unsigned int
16331
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16332
if test "x$ac_cv_type_ssize_t" = xyes; then :
16336
cat >>confdefs.h <<_ACEOF
16337
#define ssize_t int
16343
# The cast to long int works around a bug in the HP C Compiler
16344
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16345
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16346
# This bug is HP SR number 8606223364.
16347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16348
$as_echo_n "checking size of off_t... " >&6; }
16349
if ${ac_cv_sizeof_off_t+:} false; then :
16350
$as_echo_n "(cached) " >&6
16352
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16355
if test "$ac_cv_type_off_t" = yes; then
16356
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16357
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16358
as_fn_error 77 "cannot compute sizeof (off_t)
16359
See \`config.log' for more details" "$LINENO" 5; }
16361
ac_cv_sizeof_off_t=0
16366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16367
$as_echo "$ac_cv_sizeof_off_t" >&6; }
16371
cat >>confdefs.h <<_ACEOF
16372
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16376
# The cast to long int works around a bug in the HP C Compiler
16377
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16378
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16379
# This bug is HP SR number 8606223364.
16380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16381
$as_echo_n "checking size of size_t... " >&6; }
16382
if ${ac_cv_sizeof_size_t+:} false; then :
16383
$as_echo_n "(cached) " >&6
16385
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16388
if test "$ac_cv_type_size_t" = yes; then
16389
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16390
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16391
as_fn_error 77 "cannot compute sizeof (size_t)
16392
See \`config.log' for more details" "$LINENO" 5; }
16394
ac_cv_sizeof_size_t=0
16399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16400
$as_echo "$ac_cv_sizeof_size_t" >&6; }
16404
cat >>confdefs.h <<_ACEOF
16405
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16409
# The cast to long int works around a bug in the HP C Compiler
16410
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16411
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16412
# This bug is HP SR number 8606223364.
16413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
16414
$as_echo_n "checking size of ssize_t... " >&6; }
16415
if ${ac_cv_sizeof_ssize_t+:} false; then :
16416
$as_echo_n "(cached) " >&6
16418
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
16421
if test "$ac_cv_type_ssize_t" = yes; then
16422
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16424
as_fn_error 77 "cannot compute sizeof (ssize_t)
16425
See \`config.log' for more details" "$LINENO" 5; }
16427
ac_cv_sizeof_ssize_t=0
16432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
16433
$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
16437
cat >>confdefs.h <<_ACEOF
16438
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
16443
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16444
if test "x$ac_cv_type_intptr_t" = xyes; then :
16448
cat >>confdefs.h <<_ACEOF
16449
#define intptr_t long long
16454
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16455
if test "x$ac_cv_type_uintptr_t" = xyes; then :
16459
cat >>confdefs.h <<_ACEOF
16460
#define uintptr_t unsigned long long
16465
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16466
if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16470
cat >>confdefs.h <<_ACEOF
16471
#define ptrdiff_t unsigned long long
16490
# Check whether --enable-crypto was given.
16491
if test "${enable_crypto+set}" = set; then :
16492
enableval=$enable_crypto; CRYPTO="$enableval"
16499
if test x$CRYPTO != xyes; then
16502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
16503
$as_echo_n "checking for NSS... " >&6; }
16505
if test -n "$PKG_CONFIG"; then
16506
if test -n "$NSS_CFLAGS"; then
16507
pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
16509
if test -n "$PKG_CONFIG" && \
16510
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16511
($PKG_CONFIG --exists --print-errors "nss") 2>&5
16513
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514
test $ac_status = 0; }; then
16515
pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
16523
if test -n "$PKG_CONFIG"; then
16524
if test -n "$NSS_LIBS"; then
16525
pkg_cv_NSS_LIBS="$NSS_LIBS"
16527
if test -n "$PKG_CONFIG" && \
16528
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16529
($PKG_CONFIG --exists --print-errors "nss") 2>&5
16531
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16532
test $ac_status = 0; }; then
16533
pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
16544
if test $pkg_failed = yes; then
16546
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16547
_pkg_short_errors_supported=yes
16549
_pkg_short_errors_supported=no
16551
if test $_pkg_short_errors_supported = yes; then
16552
NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
16554
NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
16556
# Put the nasty error message in config.log where it belongs
16557
echo "$NSS_PKG_ERRORS" >&5
16559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560
$as_echo "no" >&6; }
16562
elif test $pkg_failed = untried; then
16565
NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
16566
NSS_LIBS=$pkg_cv_NSS_LIBS
16567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16568
$as_echo "yes" >&6; }
16574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
16575
$as_echo_n "checking for CRYPTO... " >&6; }
16577
if test -n "$PKG_CONFIG"; then
16578
if test -n "$CRYPTO_CFLAGS"; then
16579
pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
16581
if test -n "$PKG_CONFIG" && \
16582
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
16583
($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
16585
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16586
test $ac_status = 0; }; then
16587
pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
16595
if test -n "$PKG_CONFIG"; then
16596
if test -n "$CRYPTO_LIBS"; then
16597
pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
16599
if test -n "$PKG_CONFIG" && \
16600
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
16601
($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
16603
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16604
test $ac_status = 0; }; then
16605
pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
16616
if test $pkg_failed = yes; then
16618
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16619
_pkg_short_errors_supported=yes
16621
_pkg_short_errors_supported=no
16623
if test $_pkg_short_errors_supported = yes; then
16624
CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcrypto"`
16626
CRYPTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcrypto"`
16628
# Put the nasty error message in config.log where it belongs
16629
echo "$CRYPTO_PKG_ERRORS" >&5
16631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632
$as_echo "no" >&6; }
16634
elif test $pkg_failed = untried; then
16637
CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
16638
CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
16639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16640
$as_echo "yes" >&6; }
16644
if test x$have_nss != x; then
16652
if test x$have_crypto != x; then
16654
HAVE_CRYPTO_FALSE='#'
16656
HAVE_CRYPTO_TRUE='#'
16661
# Extract the first word of "nscd", so it can be a program name with args.
16662
set dummy nscd; ac_word=$2
16663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664
$as_echo_n "checking for $ac_word... " >&6; }
16665
if ${ac_cv_path_NSCD+:} false; then :
16666
$as_echo_n "(cached) " >&6
16670
ac_cv_path_NSCD="$NSCD" # Let the user override the test with a path.
16673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674
for as_dir in $PATH
16677
test -z "$as_dir" && as_dir=.
16678
for ac_exec_ext in '' $ac_executable_extensions; do
16679
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16680
ac_cv_path_NSCD="$as_dir/$ac_word$ac_exec_ext"
16681
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16691
NSCD=$ac_cv_path_NSCD
16692
if test -n "$NSCD"; then
16693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSCD" >&5
16694
$as_echo "$NSCD" >&6; }
16696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697
$as_echo "no" >&6; }
16701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nscd" >&5
16702
$as_echo_n "checking for nscd... " >&6; }
16703
if test -x "$NSCD"; then
16705
cat >>confdefs.h <<_ACEOF
16706
#define NSCD_PATH "$NSCD"
16709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710
$as_echo "yes" >&6; }
16712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Manipulating nscd cache will not be available." >&5
16713
$as_echo "no. Manipulating nscd cache will not be available." >&6; }
16717
# Extract the first word of "nsupdate", so it can be a program name with args.
16718
set dummy nsupdate; ac_word=$2
16719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16720
$as_echo_n "checking for $ac_word... " >&6; }
16721
if ${ac_cv_path_NSUPDATE+:} false; then :
16722
$as_echo_n "(cached) " >&6
16726
ac_cv_path_NSUPDATE="$NSUPDATE" # Let the user override the test with a path.
16729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16730
for as_dir in $PATH
16733
test -z "$as_dir" && as_dir=.
16734
for ac_exec_ext in '' $ac_executable_extensions; do
16735
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16736
ac_cv_path_NSUPDATE="$as_dir/$ac_word$ac_exec_ext"
16737
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16747
NSUPDATE=$ac_cv_path_NSUPDATE
16748
if test -n "$NSUPDATE"; then
16749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSUPDATE" >&5
16750
$as_echo "$NSUPDATE" >&6; }
16752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753
$as_echo "no" >&6; }
16757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nsupdate" >&5
16758
$as_echo_n "checking for nsupdate... " >&6; }
16759
if test -x "$NSUPDATE"; then
16761
cat >>confdefs.h <<_ACEOF
16762
#define NSUPDATE_PATH "$NSUPDATE"
16765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16766
$as_echo "yes" >&6; }
16768
as_fn_error $? "no. nsupdate is not available" "$LINENO" 5
16773
for ac_header in keyutils.h
16775
ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
16776
if test "x$ac_cv_header_keyutils_h" = xyes; then :
16777
cat >>confdefs.h <<_ACEOF
16778
#define HAVE_KEYUTILS_H 1
16780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5
16781
$as_echo_n "checking for add_key in -lkeyutils... " >&6; }
16782
if ${ac_cv_lib_keyutils_add_key+:} false; then :
16783
$as_echo_n "(cached) " >&6
16785
ac_check_lib_save_LIBS=$LIBS
16786
LIBS="-lkeyutils $LIBS"
16787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788
/* end confdefs.h. */
16790
/* Override any GCC internal prototype to avoid an error.
16791
Use char because int might match the return type of a GCC
16792
builtin and then its argument prototype would still apply. */
16805
if ac_fn_c_try_link "$LINENO"; then :
16806
ac_cv_lib_keyutils_add_key=yes
16808
ac_cv_lib_keyutils_add_key=no
16810
rm -f core conftest.err conftest.$ac_objext \
16811
conftest$ac_exeext conftest.$ac_ext
16812
LIBS=$ac_check_lib_save_LIBS
16814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5
16815
$as_echo "$ac_cv_lib_keyutils_add_key" >&6; }
16816
if test "x$ac_cv_lib_keyutils_add_key" = xyes; then :
16818
$as_echo "#define USE_KEYRING 1" >>confdefs.h
16820
KEYUTILS_LIBS="-lkeyutils"
16823
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No usable keyutils library found" >&5
16824
$as_echo "$as_me: WARNING: No usable keyutils library found" >&2;}
16829
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: keyutils header files are not available" >&5
16830
$as_echo "$as_me: WARNING: keyutils header files are not available" >&2;}
16840
for ac_func in sigprocmask sigblock sigaction getpgrp prctl
16842
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16843
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16844
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16845
cat >>confdefs.h <<_ACEOF
16846
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
16857
$as_echo_n "checking for DBUS... " >&6; }
16859
if test -n "$PKG_CONFIG"; then
16860
if test -n "$DBUS_CFLAGS"; then
16861
pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16863
if test -n "$PKG_CONFIG" && \
16864
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
16865
($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
16867
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868
test $ac_status = 0; }; then
16869
pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
16877
if test -n "$PKG_CONFIG"; then
16878
if test -n "$DBUS_LIBS"; then
16879
pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16881
if test -n "$PKG_CONFIG" && \
16882
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
16883
($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
16885
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16886
test $ac_status = 0; }; then
16887
pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
16898
if test $pkg_failed = yes; then
16900
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16901
_pkg_short_errors_supported=yes
16903
_pkg_short_errors_supported=no
16905
if test $_pkg_short_errors_supported = yes; then
16906
DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
16908
DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
16910
# Put the nasty error message in config.log where it belongs
16911
echo "$DBUS_PKG_ERRORS" >&5
16913
as_fn_error $? "Package requirements (dbus-1) were not met:
16917
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16918
installed software in a non-standard prefix.
16920
Alternatively, you may set the environment variables DBUS_CFLAGS
16921
and DBUS_LIBS to avoid the need to call pkg-config.
16922
See the pkg-config man page for more details.
16924
elif test $pkg_failed = untried; then
16925
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16926
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16927
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16928
is in your PATH or set the PKG_CONFIG environment variable to the full
16929
path to pkg-config.
16931
Alternatively, you may set the environment variables DBUS_CFLAGS
16932
and DBUS_LIBS to avoid the need to call pkg-config.
16933
See the pkg-config man page for more details.
16935
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
16936
See \`config.log' for more details" "$LINENO" 5; }
16938
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16939
DBUS_LIBS=$pkg_cv_DBUS_LIBS
16940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16941
$as_echo "yes" >&6; }
16944
if ! $PKG_CONFIG --atleast-version 1.0.0 dbus-1; then
16945
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
16946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: setting -DDBUS_API_SUBJECT_TO_CHANGE" >&5
16947
$as_echo "setting -DDBUS_API_SUBJECT_TO_CHANGE" >&6; }
16950
if test x$has_dbus != xno; then
16953
ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
16954
if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
16956
$as_echo "#define HAVE_DBUS_WATCH_GET_UNIX_FD 1" >>confdefs.h
16963
if test x$HAVE_MANPAGES != x; then
16965
# Extract the first word of "xsltproc", so it can be a program name with args.
16966
set dummy xsltproc; ac_word=$2
16967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16968
$as_echo_n "checking for $ac_word... " >&6; }
16969
if ${ac_cv_path_XSLTPROC+:} false; then :
16970
$as_echo_n "(cached) " >&6
16974
ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16978
for as_dir in $PATH
16981
test -z "$as_dir" && as_dir=.
16982
for ac_exec_ext in '' $ac_executable_extensions; do
16983
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16984
ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16985
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16995
XSLTPROC=$ac_cv_path_XSLTPROC
16996
if test -n "$XSLTPROC"; then
16997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16998
$as_echo "$XSLTPROC" >&6; }
17000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001
$as_echo "no" >&6; }
17005
if test ! -x "$XSLTPROC"; then
17006
as_fn_error $? "Could not find xsltproc" "$LINENO" 5
17009
# Extract the first word of "xmllint", so it can be a program name with args.
17010
set dummy xmllint; ac_word=$2
17011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17012
$as_echo_n "checking for $ac_word... " >&6; }
17013
if ${ac_cv_path_XMLLINT+:} false; then :
17014
$as_echo_n "(cached) " >&6
17018
ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
17021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022
for as_dir in $PATH
17025
test -z "$as_dir" && as_dir=.
17026
for ac_exec_ext in '' $ac_executable_extensions; do
17027
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17028
ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
17029
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17039
XMLLINT=$ac_cv_path_XMLLINT
17040
if test -n "$XMLLINT"; then
17041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
17042
$as_echo "$XMLLINT" >&6; }
17044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045
$as_echo "no" >&6; }
17049
if test ! -x "$XMLLINT"; then
17050
as_fn_error $? "Could not find xmllint" "$LINENO" 5
17053
# Extract the first word of "xmlcatalog", so it can be a program name with args.
17054
set dummy xmlcatalog; ac_word=$2
17055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17056
$as_echo_n "checking for $ac_word... " >&6; }
17057
if ${ac_cv_path_XMLCATALOG+:} false; then :
17058
$as_echo_n "(cached) " >&6
17060
case $XMLCATALOG in
17062
ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
17065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066
for as_dir in $PATH
17069
test -z "$as_dir" && as_dir=.
17070
for ac_exec_ext in '' $ac_executable_extensions; do
17071
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17072
ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
17073
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17083
XMLCATALOG=$ac_cv_path_XMLCATALOG
17084
if test -n "$XMLCATALOG"; then
17085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
17086
$as_echo "$XMLCATALOG" >&6; }
17088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17089
$as_echo "no" >&6; }
17093
if test ! -x "$XMLCATALOG"; then
17094
as_fn_error $? "Could not find xmlcatalog" "$LINENO" 5
17098
as_ac_File=`$as_echo "ac_cv_file_$SGML_CATALOG_FILES" | $as_tr_sh`
17099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SGML_CATALOG_FILES" >&5
17100
$as_echo_n "checking for $SGML_CATALOG_FILES... " >&6; }
17101
if eval \${$as_ac_File+:} false; then :
17102
$as_echo_n "(cached) " >&6
17104
test "$cross_compiling" = yes &&
17105
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17106
if test -r "$SGML_CATALOG_FILES"; then
17107
eval "$as_ac_File=yes"
17109
eval "$as_ac_File=no"
17112
eval ac_res=\$$as_ac_File
17113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17114
$as_echo "$ac_res" >&6; }
17115
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17118
as_fn_error $? "could not find XML catalog" "$LINENO" 5
17122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSL templates in XML catalog" >&5
17123
$as_echo_n "checking for Docbook XSL templates in XML catalog... " >&6; }
17124
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$SGML_CATALOG_FILES\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
17125
($XMLCATALOG --noout "$SGML_CATALOG_FILES" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
17127
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17128
test $ac_status = 0; }; then
17129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130
$as_echo "yes" >&6; }
17132
as_fn_error $? "could not find Docbook XSL templates in XML catalog" "$LINENO" 5
17135
# Extract the first word of "po4a", so it can be a program name with args.
17136
set dummy po4a; ac_word=$2
17137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17138
$as_echo_n "checking for $ac_word... " >&6; }
17139
if ${ac_cv_prog_PO4A+:} false; then :
17140
$as_echo_n "(cached) " >&6
17142
if test -n "$PO4A"; then
17143
ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
17145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17146
for as_dir in $PATH
17149
test -z "$as_dir" && as_dir=.
17150
for ac_exec_ext in '' $ac_executable_extensions; do
17151
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17152
ac_cv_prog_PO4A="po4a"
17153
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17160
test -z "$ac_cv_prog_PO4A" && ac_cv_prog_PO4A="no"
17163
PO4A=$ac_cv_prog_PO4A
17164
if test -n "$PO4A"; then
17165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
17166
$as_echo "$PO4A" >&6; }
17168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17169
$as_echo "no" >&6; }
17173
if test "x$PO4A" != "xno"; then
17175
HAVE_PO4A_FALSE='#'
17183
if test x$HAVE_PYTHON_BINDINGS != x; then
17188
if test -n "$PYTHON"; then
17189
# If the user set $PYTHON, use it and don't search something else.
17190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.4" >&5
17191
$as_echo_n "checking whether $PYTHON version >= 2.4... " >&6; }
17193
# split strings by '.' and convert to numeric. Append some zeros
17194
# because we need at least 4 digits for the hex conversion.
17195
# map returns an iterator in Python 3.0 and a list in 2.x
17196
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
17198
# xrange is not present in Python 3.0 and range returns an iterator
17199
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17200
sys.exit(sys.hexversion < minverhex)"
17201
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17202
($PYTHON -c "$prog") >&5 2>&5
17204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205
(exit $ac_status); }; then :
17206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17207
$as_echo "yes" >&6; }
17209
as_fn_error $? "too old" "$LINENO" 5
17211
am_display_PYTHON=$PYTHON
17213
# Otherwise, try each interpreter until we find one that satisfies
17215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.4" >&5
17216
$as_echo_n "checking for a Python interpreter with version >= 2.4... " >&6; }
17217
if ${am_cv_pathless_PYTHON+:} false; then :
17218
$as_echo_n "(cached) " >&6
17221
for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
17222
test "$am_cv_pathless_PYTHON" = none && break
17224
# split strings by '.' and convert to numeric. Append some zeros
17225
# because we need at least 4 digits for the hex conversion.
17226
# map returns an iterator in Python 3.0 and a list in 2.x
17227
minver = list(map(int, '2.4'.split('.'))) + [0, 0, 0]
17229
# xrange is not present in Python 3.0 and range returns an iterator
17230
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17231
sys.exit(sys.hexversion < minverhex)"
17232
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17233
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236
(exit $ac_status); }; then :
17241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17242
$as_echo "$am_cv_pathless_PYTHON" >&6; }
17243
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17244
if test "$am_cv_pathless_PYTHON" = none; then
17247
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17248
set dummy $am_cv_pathless_PYTHON; ac_word=$2
17249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17250
$as_echo_n "checking for $ac_word... " >&6; }
17251
if ${ac_cv_path_PYTHON+:} false; then :
17252
$as_echo_n "(cached) " >&6
17256
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260
for as_dir in $PATH
17263
test -z "$as_dir" && as_dir=.
17264
for ac_exec_ext in '' $ac_executable_extensions; do
17265
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17266
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17267
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17277
PYTHON=$ac_cv_path_PYTHON
17278
if test -n "$PYTHON"; then
17279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17280
$as_echo "$PYTHON" >&6; }
17282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17283
$as_echo "no" >&6; }
17288
am_display_PYTHON=$am_cv_pathless_PYTHON
17292
if test "$PYTHON" = :; then
17293
as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
17297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17298
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17299
if ${am_cv_python_version+:} false; then :
17300
$as_echo_n "(cached) " >&6
17302
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17305
$as_echo "$am_cv_python_version" >&6; }
17306
PYTHON_VERSION=$am_cv_python_version
17310
PYTHON_PREFIX='${prefix}'
17312
PYTHON_EXEC_PREFIX='${exec_prefix}'
17316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17317
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17318
if ${am_cv_python_platform+:} false; then :
17319
$as_echo_n "(cached) " >&6
17321
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17324
$as_echo "$am_cv_python_platform" >&6; }
17325
PYTHON_PLATFORM=$am_cv_python_platform
17330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17331
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17332
if ${am_cv_python_pythondir+:} false; then :
17333
$as_echo_n "(cached) " >&6
17335
if test "x$prefix" = xNONE
17337
am_py_prefix=$ac_default_prefix
17339
am_py_prefix=$prefix
17341
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
17342
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
17343
case $am_cv_python_pythondir in
17345
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17346
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17349
case $am_py_prefix in
17352
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17360
$as_echo "$am_cv_python_pythondir" >&6; }
17361
pythondir=$am_cv_python_pythondir
17365
pkgpythondir=\${pythondir}/$PACKAGE
17368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17369
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17370
if ${am_cv_python_pyexecdir+:} false; then :
17371
$as_echo_n "(cached) " >&6
17373
if test "x$exec_prefix" = xNONE
17375
am_py_exec_prefix=$am_py_prefix
17377
am_py_exec_prefix=$exec_prefix
17379
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
17380
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
17381
case $am_cv_python_pyexecdir in
17382
$am_py_exec_prefix*)
17383
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17384
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17387
case $am_py_exec_prefix in
17390
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17398
$as_echo "$am_cv_python_pyexecdir" >&6; }
17399
pyexecdir=$am_cv_python_pyexecdir
17403
pkgpyexecdir=\${pyexecdir}/$PACKAGE
17411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
17412
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
17414
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
17415
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
17416
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
17417
if test "$py_prefix" != "$py_exec_prefix"; then
17418
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
17423
save_CPPFLAGS="$CPPFLAGS"
17424
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
17425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426
/* end confdefs.h. */
17427
#include <Python.h>
17429
if ac_fn_c_try_cpp "$LINENO"; then :
17430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17431
$as_echo "found" >&6; }
17434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17435
$as_echo "not found" >&6; }
17436
as_fn_error $? "Could not find python headers" "$LINENO" 5
17438
rm -f conftest.err conftest.i conftest.$ac_ext
17439
CPPFLAGS="$save_CPPFLAGS"
17444
# Extract the first word of "python", so it can be a program name with args.
17445
set dummy python; ac_word=$2
17446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17447
$as_echo_n "checking for $ac_word... " >&6; }
17448
if ${ac_cv_path_PYTHON+:} false; then :
17449
$as_echo_n "(cached) " >&6
17453
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17457
for as_dir in $PATH
17460
test -z "$as_dir" && as_dir=.
17461
for ac_exec_ext in '' $ac_executable_extensions; do
17462
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17463
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17464
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17474
PYTHON=$ac_cv_path_PYTHON
17475
if test -n "$PYTHON"; then
17476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17477
$as_echo "$PYTHON" >&6; }
17479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17480
$as_echo "no" >&6; }
17484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working python" >&5
17485
$as_echo_n "checking for working python... " >&6; }
17486
if test -x "$PYTHON"; then
17487
PYTHON_CFLAGS="`$PYTHON -c \"from distutils import sysconfig; \
17488
print '-I' + sysconfig.get_python_inc() + \
17489
' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' + \
17490
sysconfig.get_config_var('BASECFLAGS')\"`"
17491
PYTHON_LIBS="`$PYTHON -c \"from distutils import sysconfig; \
17492
print \\\" \\\".join(sysconfig.get_config_var('LIBS').split() + \
17493
sysconfig.get_config_var('SYSLIBS').split()) + \
17494
' -lpython' + sysconfig.get_config_var('VERSION')\"`"
17495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496
$as_echo "yes" >&6; }
17498
as_fn_error $? "no. Please install python devel package" "$LINENO" 5
17503
if test x$HAVE_SELINUX != x; then
17505
for ac_header in selinux/selinux.h
17507
ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17508
if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
17509
cat >>confdefs.h <<_ACEOF
17510
#define HAVE_SELINUX_SELINUX_H 1
17512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17513
$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17514
if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
17515
$as_echo_n "(cached) " >&6
17517
ac_check_lib_save_LIBS=$LIBS
17518
LIBS="-lselinux $LIBS"
17519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520
/* end confdefs.h. */
17522
/* Override any GCC internal prototype to avoid an error.
17523
Use char because int might match the return type of a GCC
17524
builtin and then its argument prototype would still apply. */
17528
char is_selinux_enabled ();
17532
return is_selinux_enabled ();
17537
if ac_fn_c_try_link "$LINENO"; then :
17538
ac_cv_lib_selinux_is_selinux_enabled=yes
17540
ac_cv_lib_selinux_is_selinux_enabled=no
17542
rm -f core conftest.err conftest.$ac_objext \
17543
conftest$ac_exeext conftest.$ac_ext
17544
LIBS=$ac_check_lib_save_LIBS
17546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17547
$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17548
if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
17549
SELINUX_LIBS="-lselinux"
17551
as_fn_error $? "SELinux library is missing" "$LINENO" 5
17557
as_fn_error $? "SELinux headers are missing" "$LINENO" 5
17566
if test x$HAVE_SEMANAGE != x -a x$HAVE_SELINUX != x; then
17568
for ac_header in semanage/semanage.h
17570
ac_fn_c_check_header_mongrel "$LINENO" "semanage/semanage.h" "ac_cv_header_semanage_semanage_h" "$ac_includes_default"
17571
if test "x$ac_cv_header_semanage_semanage_h" = xyes; then :
17572
cat >>confdefs.h <<_ACEOF
17573
#define HAVE_SEMANAGE_SEMANAGE_H 1
17575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for semanage_handle_create in -lsemanage" >&5
17576
$as_echo_n "checking for semanage_handle_create in -lsemanage... " >&6; }
17577
if ${ac_cv_lib_semanage_semanage_handle_create+:} false; then :
17578
$as_echo_n "(cached) " >&6
17580
ac_check_lib_save_LIBS=$LIBS
17581
LIBS="-lsemanage $LIBS"
17582
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583
/* end confdefs.h. */
17585
/* Override any GCC internal prototype to avoid an error.
17586
Use char because int might match the return type of a GCC
17587
builtin and then its argument prototype would still apply. */
17591
char semanage_handle_create ();
17595
return semanage_handle_create ();
17600
if ac_fn_c_try_link "$LINENO"; then :
17601
ac_cv_lib_semanage_semanage_handle_create=yes
17603
ac_cv_lib_semanage_semanage_handle_create=no
17605
rm -f core conftest.err conftest.$ac_objext \
17606
conftest$ac_exeext conftest.$ac_ext
17607
LIBS=$ac_check_lib_save_LIBS
17609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_semanage_semanage_handle_create" >&5
17610
$as_echo "$ac_cv_lib_semanage_semanage_handle_create" >&6; }
17611
if test "x$ac_cv_lib_semanage_semanage_handle_create" = xyes; then :
17612
SEMANAGE_LIBS="-lsemanage"
17614
as_fn_error $? "libsemanage is missing" "$LINENO" 5
17620
as_fn_error $? "libsemanage is missing" "$LINENO" 5
17629
if test x$BUILD_LIBNL != x; then
17633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnl" >&5
17634
$as_echo_n "checking for libnl... " >&6; }
17636
if test -n "$PKG_CONFIG"; then
17637
if test -n "$libnl_CFLAGS"; then
17638
pkg_cv_libnl_CFLAGS="$libnl_CFLAGS"
17640
if test -n "$PKG_CONFIG" && \
17641
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.1\""; } >&5
17642
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.1") 2>&5
17644
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17645
test $ac_status = 0; }; then
17646
pkg_cv_libnl_CFLAGS=`$PKG_CONFIG --cflags "libnl-1 >= 1.1" 2>/dev/null`
17654
if test -n "$PKG_CONFIG"; then
17655
if test -n "$libnl_LIBS"; then
17656
pkg_cv_libnl_LIBS="$libnl_LIBS"
17658
if test -n "$PKG_CONFIG" && \
17659
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1 >= 1.1\""; } >&5
17660
($PKG_CONFIG --exists --print-errors "libnl-1 >= 1.1") 2>&5
17662
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17663
test $ac_status = 0; }; then
17664
pkg_cv_libnl_LIBS=`$PKG_CONFIG --libs "libnl-1 >= 1.1" 2>/dev/null`
17675
if test $pkg_failed = yes; then
17677
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17678
_pkg_short_errors_supported=yes
17680
_pkg_short_errors_supported=no
17682
if test $_pkg_short_errors_supported = yes; then
17683
libnl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnl-1 >= 1.1"`
17685
libnl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnl-1 >= 1.1"`
17687
# Put the nasty error message in config.log where it belongs
17688
echo "$libnl_PKG_ERRORS" >&5
17690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17691
$as_echo "no" >&6; }
17692
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Netlink support unavailable or too old" >&5
17693
$as_echo "$as_me: WARNING: Netlink support unavailable or too old" >&2;}
17694
elif test $pkg_failed = untried; then
17695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Netlink support unavailable or too old" >&5
17696
$as_echo "$as_me: WARNING: Netlink support unavailable or too old" >&2;}
17698
libnl_CFLAGS=$pkg_cv_libnl_CFLAGS
17699
libnl_LIBS=$pkg_cv_libnl_LIBS
17700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17701
$as_echo "yes" >&6; }
17706
cat >>confdefs.h <<_ACEOF
17707
#define HAVE_LIBNL 1
17711
for ac_header in netlink.h
17713
ac_fn_c_check_header_mongrel "$LINENO" "netlink.h" "ac_cv_header_netlink_h" "$ac_includes_default"
17714
if test "x$ac_cv_header_netlink_h" = xyes; then :
17715
cat >>confdefs.h <<_ACEOF
17716
#define HAVE_NETLINK_H 1
17723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_connect in -lnl" >&5
17724
$as_echo_n "checking for nl_connect in -lnl... " >&6; }
17725
if ${ac_cv_lib_nl_nl_connect+:} false; then :
17726
$as_echo_n "(cached) " >&6
17728
ac_check_lib_save_LIBS=$LIBS
17730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731
/* end confdefs.h. */
17733
/* Override any GCC internal prototype to avoid an error.
17734
Use char because int might match the return type of a GCC
17735
builtin and then its argument prototype would still apply. */
17739
char nl_connect ();
17743
return nl_connect ();
17748
if ac_fn_c_try_link "$LINENO"; then :
17749
ac_cv_lib_nl_nl_connect=yes
17751
ac_cv_lib_nl_nl_connect=no
17753
rm -f core conftest.err conftest.$ac_objext \
17754
conftest$ac_exeext conftest.$ac_ext
17755
LIBS=$ac_check_lib_save_LIBS
17757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_connect" >&5
17758
$as_echo "$ac_cv_lib_nl_nl_connect" >&6; }
17759
if test "x$ac_cv_lib_nl_nl_connect" = xyes; then :
17762
as_fn_error $? "libnl is required" "$LINENO" 5
17766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_add_membership in -lnl" >&5
17767
$as_echo_n "checking for nl_socket_add_membership in -lnl... " >&6; }
17768
if ${ac_cv_lib_nl_nl_socket_add_membership+:} false; then :
17769
$as_echo_n "(cached) " >&6
17771
ac_check_lib_save_LIBS=$LIBS
17773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774
/* end confdefs.h. */
17776
/* Override any GCC internal prototype to avoid an error.
17777
Use char because int might match the return type of a GCC
17778
builtin and then its argument prototype would still apply. */
17782
char nl_socket_add_membership ();
17786
return nl_socket_add_membership ();
17791
if ac_fn_c_try_link "$LINENO"; then :
17792
ac_cv_lib_nl_nl_socket_add_membership=yes
17794
ac_cv_lib_nl_nl_socket_add_membership=no
17796
rm -f core conftest.err conftest.$ac_objext \
17797
conftest$ac_exeext conftest.$ac_ext
17798
LIBS=$ac_check_lib_save_LIBS
17800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_add_membership" >&5
17801
$as_echo "$ac_cv_lib_nl_nl_socket_add_membership" >&6; }
17802
if test "x$ac_cv_lib_nl_nl_socket_add_membership" = xyes; then :
17804
$as_echo "#define HAVE_NL_SOCKET_ADD_MEMBERSHIP 1" >>confdefs.h
17810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_modify_cb in -lnl" >&5
17811
$as_echo_n "checking for nl_socket_modify_cb in -lnl... " >&6; }
17812
if ${ac_cv_lib_nl_nl_socket_modify_cb+:} false; then :
17813
$as_echo_n "(cached) " >&6
17815
ac_check_lib_save_LIBS=$LIBS
17817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818
/* end confdefs.h. */
17820
/* Override any GCC internal prototype to avoid an error.
17821
Use char because int might match the return type of a GCC
17822
builtin and then its argument prototype would still apply. */
17826
char nl_socket_modify_cb ();
17830
return nl_socket_modify_cb ();
17835
if ac_fn_c_try_link "$LINENO"; then :
17836
ac_cv_lib_nl_nl_socket_modify_cb=yes
17838
ac_cv_lib_nl_nl_socket_modify_cb=no
17840
rm -f core conftest.err conftest.$ac_objext \
17841
conftest$ac_exeext conftest.$ac_ext
17842
LIBS=$ac_check_lib_save_LIBS
17844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_modify_cb" >&5
17845
$as_echo "$ac_cv_lib_nl_nl_socket_modify_cb" >&6; }
17846
if test "x$ac_cv_lib_nl_nl_socket_modify_cb" = xyes; then :
17848
$as_echo "#define HAVE_NL_SOCKET_MODIFY_CB 1" >>confdefs.h
17854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_set_passcred in -lnl" >&5
17855
$as_echo_n "checking for nl_set_passcred in -lnl... " >&6; }
17856
if ${ac_cv_lib_nl_nl_set_passcred+:} false; then :
17857
$as_echo_n "(cached) " >&6
17859
ac_check_lib_save_LIBS=$LIBS
17861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862
/* end confdefs.h. */
17864
/* Override any GCC internal prototype to avoid an error.
17865
Use char because int might match the return type of a GCC
17866
builtin and then its argument prototype would still apply. */
17870
char nl_set_passcred ();
17874
return nl_set_passcred ();
17879
if ac_fn_c_try_link "$LINENO"; then :
17880
ac_cv_lib_nl_nl_set_passcred=yes
17882
ac_cv_lib_nl_nl_set_passcred=no
17884
rm -f core conftest.err conftest.$ac_objext \
17885
conftest$ac_exeext conftest.$ac_ext
17886
LIBS=$ac_check_lib_save_LIBS
17888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_set_passcred" >&5
17889
$as_echo "$ac_cv_lib_nl_nl_set_passcred" >&6; }
17890
if test "x$ac_cv_lib_nl_nl_set_passcred" = xyes; then :
17892
$as_echo "#define HAVE_NL_SET_PASSCRED 1" >>confdefs.h
17905
for ac_header in sys/inotify.h
17907
ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
17908
if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
17909
cat >>confdefs.h <<_ACEOF
17910
#define HAVE_SYS_INOTIFY_H 1
17918
for ac_header in sasl/sasl.h
17920
ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
17921
if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
17922
cat >>confdefs.h <<_ACEOF
17923
#define HAVE_SASL_SASL_H 1
17927
as_fn_error $? "Could not find SASL headers" "$LINENO" 5
17935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
17936
$as_echo_n "checking for CHECK... " >&6; }
17938
if test -n "$PKG_CONFIG"; then
17939
if test -n "$CHECK_CFLAGS"; then
17940
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
17942
if test -n "$PKG_CONFIG" && \
17943
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
17944
($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
17946
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947
test $ac_status = 0; }; then
17948
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null`
17956
if test -n "$PKG_CONFIG"; then
17957
if test -n "$CHECK_LIBS"; then
17958
pkg_cv_CHECK_LIBS="$CHECK_LIBS"
17960
if test -n "$PKG_CONFIG" && \
17961
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
17962
($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
17964
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965
test $ac_status = 0; }; then
17966
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null`
17977
if test $pkg_failed = yes; then
17979
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17980
_pkg_short_errors_supported=yes
17982
_pkg_short_errors_supported=no
17984
if test $_pkg_short_errors_supported = yes; then
17985
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.5"`
17987
CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.5"`
17989
# Put the nasty error message in config.log where it belongs
17990
echo "$CHECK_PKG_ERRORS" >&5
17992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17993
$as_echo "no" >&6; }
17995
elif test $pkg_failed = untried; then
17998
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
17999
CHECK_LIBS=$pkg_cv_CHECK_LIBS
18000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18001
$as_echo "yes" >&6; }
18004
if test x$have_check = x; then
18005
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&5
18006
$as_echo "$as_me: WARNING: Without the 'CHECK' libraries, you will be unable to run all tests in the 'make check' suite" >&2;}
18008
for ac_header in check.h
18010
ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default"
18011
if test "x$ac_cv_header_check_h" = xyes; then :
18012
cat >>confdefs.h <<_ACEOF
18013
#define HAVE_CHECK_H 1
18017
as_fn_error $? "Could not find CHECK headers" "$LINENO" 5
18024
# Extract the first word of "doxygen", so it can be a program name with args.
18025
set dummy doxygen; ac_word=$2
18026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18027
$as_echo_n "checking for $ac_word... " >&6; }
18028
if ${ac_cv_path_DOXYGEN+:} false; then :
18029
$as_echo_n "(cached) " >&6
18033
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18037
for as_dir in $PATH
18040
test -z "$as_dir" && as_dir=.
18041
for ac_exec_ext in '' $ac_executable_extensions; do
18042
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18043
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18044
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18051
test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
18055
DOXYGEN=$ac_cv_path_DOXYGEN
18056
if test -n "$DOXYGEN"; then
18057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18058
$as_echo "$DOXYGEN" >&6; }
18060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061
$as_echo "no" >&6; }
18065
if test x$DOXYGEN != xfalse ; then
18067
HAVE_DOXYGEN_FALSE='#'
18069
HAVE_DOXYGEN_TRUE='#'
18070
HAVE_DOXYGEN_FALSE=
18074
if test x$have_check != x; then
18076
HAVE_CHECK_FALSE='#'
18078
HAVE_CHECK_TRUE='#'
18083
abs_build_dir=`pwd`
18085
cat >>confdefs.h <<_ACEOF
18086
#define ABS_BUILD_DIR "$abs_build_dir"
18089
abs_builddir=$abs_build_dir
18092
ac_config_files="$ac_config_files Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config src/sysv/systemd/sssd.service po/Makefile.in src/man/Makefile"
2376
18094
cat >confcache <<\_ACEOF
2377
18095
# This file is a shell script that caches the results of configure