~ubuntu-branches/ubuntu/maverick/dieharder/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-05-07 21:25:52 UTC
  • mfrom: (4.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090507212552-6dcpo8l1gc3g1ph0
Tags: 2.28.1-3
debian/rules: Run 'autoreconf -ifv' instead of 'autogen.sh' to update 
GNU autotools and libtool meshing. Big thanks to Daniel Schepler for
the bug report and fix suggestion.                      (Closes: #527519)

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
# Check that we are running under the correct shell.
554
554
SHELL=${CONFIG_SHELL-/bin/sh}
555
555
 
556
 
case X$lt_ECHO in
 
556
case X$ECHO in
557
557
X*--fallback-echo)
558
558
  # Remove one level of quotation (which was required for Make).
559
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
560
  ;;
561
561
esac
562
562
 
563
 
ECHO=${lt_ECHO-echo}
 
563
echo=${ECHO-echo}
564
564
if test "X$1" = X--no-reexec; then
565
565
  # Discard the --no-reexec flag, and continue.
566
566
  shift
567
567
elif test "X$1" = X--fallback-echo; then
568
568
  # Avoid inline document here, it may be left over
569
569
  :
570
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571
 
  # Yippee, $ECHO works!
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
572
572
  :
573
573
else
574
574
  # Restart under the correct shell.
578
578
if test "X$1" = X--fallback-echo; then
579
579
  # used as fallback echo
580
580
  shift
581
 
  cat <<_LT_EOF
 
581
  cat <<EOF
582
582
$*
583
 
_LT_EOF
 
583
EOF
584
584
  exit 0
585
585
fi
586
586
 
588
588
# if CDPATH is set.
589
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
590
 
591
 
if test -z "$lt_ECHO"; then
592
 
  if test "X${echo_test_string+set}" != Xset; then
593
 
    # find a string as large as possible, as long as the shell can cope with it
594
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598
 
      then
599
 
        break
600
 
      fi
601
 
    done
602
 
  fi
603
 
 
604
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
607
 
    :
608
 
  else
609
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
610
 
    # backslashes.  This makes it impossible to quote backslashes using
611
 
    #   echo "$something" | sed 's/\\/\\\\/g'
612
 
    #
613
 
    # So, first we look for a working echo in the user's PATH.
614
 
 
615
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616
 
    for dir in $PATH /usr/ucb; do
617
 
      IFS="$lt_save_ifs"
618
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
622
 
        ECHO="$dir/echo"
623
 
        break
624
 
      fi
625
 
    done
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
597
       echo_test_string=`eval $cmd` &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
626
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
627
628
 
628
 
    if test "X$ECHO" = Xecho; then
629
 
      # We didn't find a better echo, so look for alternatives.
630
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
633
 
        # This shell has a builtin print -r that does the trick.
634
 
        ECHO='print -r'
635
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
637
 
        # If we have ksh, try running configure again with it.
638
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639
 
        export ORIGINAL_CONFIG_SHELL
640
 
        CONFIG_SHELL=/bin/ksh
641
 
        export CONFIG_SHELL
642
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
643
666
      else
644
 
        # Try using printf.
645
 
        ECHO='printf %s\n'
646
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
649
 
          # Cool, printf works
650
 
          :
651
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652
 
             test "X$echo_testing_string" = 'X\t' &&
653
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
655
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656
 
          export CONFIG_SHELL
657
 
          SHELL="$CONFIG_SHELL"
658
 
          export SHELL
659
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
660
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661
 
             test "X$echo_testing_string" = 'X\t' &&
662
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
664
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
665
 
        else
666
 
          # maybe with a smaller string...
667
 
          prev=:
668
 
 
669
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671
 
            then
672
 
              break
673
 
            fi
674
 
            prev="$cmd"
675
 
          done
676
 
 
677
 
          if test "$prev" != 'sed 50q "$0"'; then
678
 
            echo_test_string=`eval $prev`
679
 
            export echo_test_string
680
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681
 
          else
682
 
            # Oops.  We lost completely, so just stick with echo.
683
 
            ECHO=echo
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
684
674
          fi
685
 
        fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
686
686
      fi
687
687
    fi
688
688
  fi
689
689
fi
 
690
fi
690
691
 
691
692
# Copy echo and quote the copy suitably for passing to libtool from
692
693
# the Makefile, instead of quoting the original, which is used later.
693
 
lt_ECHO=$ECHO
694
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696
697
fi
697
698
 
698
699
 
822
823
am__tar
823
824
am__untar
824
825
RELEASE
825
 
LIBTOOL
 
826
LIBTOOL_DEPS
 
827
DIEHARDER_LT_VERSION
 
828
RELEASED
826
829
build
827
830
build_cpu
828
831
build_vendor
847
850
CCDEPMODE
848
851
am__fastdepCC_TRUE
849
852
am__fastdepCC_FALSE
 
853
RANLIB
 
854
ACTAR
850
855
SED
851
856
GREP
852
857
EGREP
853
 
FGREP
854
 
LD
855
 
DUMPBIN
856
 
ac_ct_DUMPBIN
857
 
NM
858
858
LN_S
 
859
ECHO
859
860
AR
860
 
RANLIB
861
 
lt_ECHO
862
861
DSYMUTIL
863
862
NMEDIT
864
 
LIPO
865
 
OTOOL
866
 
OTOOL64
867
863
CPP
868
 
LIBTOOL_DEPS
869
 
DIEHARDER_LT_VERSION
870
 
RELEASED
871
 
ACTAR
 
864
LIBTOOL
872
865
DIEHARDER_CFLAGS
873
866
DIEHARDER_LIBS
874
867
LIBOBJS
1462
1455
Optional Features:
1463
1456
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464
1457
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1458
  --disable-dependency-tracking  speeds up one-time build
 
1459
  --enable-dependency-tracking   do not reject slow dependency extractors
1465
1460
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1466
1461
  --enable-static[=PKGS]  build static libraries [default=yes]
1467
1462
  --enable-fast-install[=PKGS]
1468
1463
                          optimize for fast installation [default=yes]
1469
 
  --disable-dependency-tracking  speeds up one-time build
1470
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1471
1464
  --disable-libtool-lock  avoid locking (might break parallel builds)
1472
1465
 
1473
1466
Optional Packages:
1474
1467
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475
1468
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1469
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1476
1470
  --with-pic              try to use only PIC/non-PIC objects [default=use
1477
1471
                          both]
1478
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1472
  --with-tags[=TAGS]      include additional configurations [automatic]
1479
1473
 
1480
1474
Some influential environment variables:
1481
1475
  CC          C compiler command
2423
2417
#
2424
2418
# dieharder-1.0    libdieharder 0:0:0
2425
2419
#==================================================================
2426
 
case `pwd` in
2427
 
  *\ * | *\     *)
2428
 
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2429
 
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2420
LT_INIT
 
2421
 
 
2422
DIEHARDER_LT_VERSION="2:28:1"
 
2423
 
 
2424
 
 
2425
case "$VERSION" in
 
2426
    *+)
 
2427
        cat >>confdefs.h <<\_ACEOF
 
2428
#define RELEASED 0
 
2429
_ACEOF
 
2430
 
 
2431
        ;;
 
2432
    *)
 
2433
        cat >>confdefs.h <<\_ACEOF
 
2434
#define RELEASED 1
 
2435
_ACEOF
 
2436
 
 
2437
        ;;
2430
2438
esac
2431
2439
 
2432
2440
 
2433
 
 
2434
 
macro_version='2.2.4'
2435
 
macro_revision='1.2976'
2436
 
 
2437
 
 
2438
 
 
2439
 
 
2440
 
 
2441
 
 
2442
 
 
2443
 
 
2444
 
 
2445
 
 
2446
 
 
2447
 
 
2448
 
 
2449
 
ltmain="$ac_aux_dir/ltmain.sh"
2450
 
 
 
2441
#==================================================================
 
2442
# Check for which system.
 
2443
#==================================================================
2451
2444
# Make sure we can run config.sub.
2452
2445
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2453
2446
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531
2524
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2532
2525
 
2533
2526
 
2534
 
DEPDIR="${am__leading_dot}deps"
2535
 
 
2536
 
ac_config_commands="$ac_config_commands depfiles"
2537
 
 
2538
 
 
2539
 
am_make=${MAKE-make}
2540
 
cat > confinc << 'END'
2541
 
am__doit:
2542
 
        @echo done
2543
 
.PHONY: am__doit
2544
 
END
2545
 
# If we don't find an include directive, just comment out the code.
2546
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2547
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2548
 
am__include="#"
2549
 
am__quote=
2550
 
_am_result=none
2551
 
# First try GNU make style include.
2552
 
echo "include confinc" > confmf
2553
 
# We grep out `Entering directory' and `Leaving directory'
2554
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2555
 
# In particular we don't look at `^make:' because GNU make might
2556
 
# be invoked under some other name (usually "gmake"), in which
2557
 
# case it prints its new name instead of `make'.
2558
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2559
 
   am__include=include
2560
 
   am__quote=
2561
 
   _am_result=GNU
2562
 
fi
2563
 
# Now try BSD make style include.
2564
 
if test "$am__include" = "#"; then
2565
 
   echo '.include "confinc"' > confmf
2566
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2567
 
      am__include=.include
2568
 
      am__quote="\""
2569
 
      _am_result=BSD
2570
 
   fi
2571
 
fi
2572
 
 
2573
 
 
2574
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2575
 
echo "${ECHO_T}$_am_result" >&6; }
2576
 
rm -f confinc confmf
2577
 
 
2578
 
# Check whether --enable-dependency-tracking was given.
2579
 
if test "${enable_dependency_tracking+set}" = set; then
2580
 
  enableval=$enable_dependency_tracking;
2581
 
fi
2582
 
 
2583
 
if test "x$enable_dependency_tracking" != xno; then
2584
 
  am_depcomp="$ac_aux_dir/depcomp"
2585
 
  AMDEPBACKSLASH='\'
2586
 
fi
2587
 
 if test "x$enable_dependency_tracking" != xno; then
2588
 
  AMDEP_TRUE=
2589
 
  AMDEP_FALSE='#'
2590
 
else
2591
 
  AMDEP_TRUE='#'
2592
 
  AMDEP_FALSE=
2593
 
fi
2594
 
 
 
2527
 
 
2528
#==================================================================
 
2529
# Checks for programs.
 
2530
#==================================================================
 
2531
ac_ext=c
 
2532
ac_cpp='$CPP $CPPFLAGS'
 
2533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595
2536
 
2596
2537
ac_ext=c
2597
2538
ac_cpp='$CPP $CPPFLAGS'
3511
3452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512
3453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513
3454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3455
DEPDIR="${am__leading_dot}deps"
 
3456
 
 
3457
ac_config_commands="$ac_config_commands depfiles"
 
3458
 
 
3459
 
 
3460
am_make=${MAKE-make}
 
3461
cat > confinc << 'END'
 
3462
am__doit:
 
3463
        @echo done
 
3464
.PHONY: am__doit
 
3465
END
 
3466
# If we don't find an include directive, just comment out the code.
 
3467
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3468
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3469
am__include="#"
 
3470
am__quote=
 
3471
_am_result=none
 
3472
# First try GNU make style include.
 
3473
echo "include confinc" > confmf
 
3474
# We grep out `Entering directory' and `Leaving directory'
 
3475
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3476
# In particular we don't look at `^make:' because GNU make might
 
3477
# be invoked under some other name (usually "gmake"), in which
 
3478
# case it prints its new name instead of `make'.
 
3479
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3480
   am__include=include
 
3481
   am__quote=
 
3482
   _am_result=GNU
 
3483
fi
 
3484
# Now try BSD make style include.
 
3485
if test "$am__include" = "#"; then
 
3486
   echo '.include "confinc"' > confmf
 
3487
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3488
      am__include=.include
 
3489
      am__quote="\""
 
3490
      _am_result=BSD
 
3491
   fi
 
3492
fi
 
3493
 
 
3494
 
 
3495
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3496
echo "${ECHO_T}$_am_result" >&6; }
 
3497
rm -f confinc confmf
 
3498
 
 
3499
# Check whether --enable-dependency-tracking was given.
 
3500
if test "${enable_dependency_tracking+set}" = set; then
 
3501
  enableval=$enable_dependency_tracking;
 
3502
fi
 
3503
 
 
3504
if test "x$enable_dependency_tracking" != xno; then
 
3505
  am_depcomp="$ac_aux_dir/depcomp"
 
3506
  AMDEPBACKSLASH='\'
 
3507
fi
 
3508
 if test "x$enable_dependency_tracking" != xno; then
 
3509
  AMDEP_TRUE=
 
3510
  AMDEP_FALSE='#'
 
3511
else
 
3512
  AMDEP_TRUE='#'
 
3513
  AMDEP_FALSE=
 
3514
fi
 
3515
 
 
3516
 
3514
3517
 
3515
3518
depcc="$CC"   am_compiler_list=
3516
3519
 
3620
3623
fi
3621
3624
 
3622
3625
 
 
3626
# Find a good install program.  We prefer a C program (faster),
 
3627
# so one script is as good as another.  But avoid the broken or
 
3628
# incompatible versions:
 
3629
# SysV /etc/install, /usr/sbin/install
 
3630
# SunOS /usr/etc/install
 
3631
# IRIX /sbin/install
 
3632
# AIX /bin/install
 
3633
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3634
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3635
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3636
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3637
# OS/2's system install, which has a completely different semantic
 
3638
# ./install, which can be erroneously created by make from ./install.sh.
 
3639
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3640
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3641
if test -z "$INSTALL"; then
 
3642
if test "${ac_cv_path_install+set}" = set; then
 
3643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3644
else
 
3645
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3646
for as_dir in $PATH
 
3647
do
 
3648
  IFS=$as_save_IFS
 
3649
  test -z "$as_dir" && as_dir=.
 
3650
  # Account for people who put trailing slashes in PATH elements.
 
3651
case $as_dir/ in
 
3652
  ./ | .// | /cC/* | \
 
3653
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3654
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3655
  /usr/ucb/* ) ;;
 
3656
  *)
 
3657
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3658
    # Don't use installbsd from OSF since it installs stuff as root
 
3659
    # by default.
 
3660
    for ac_prog in ginstall scoinst install; do
 
3661
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3662
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3663
          if test $ac_prog = install &&
 
3664
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3665
            # AIX install.  It has an incompatible calling convention.
 
3666
            :
 
3667
          elif test $ac_prog = install &&
 
3668
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3669
            # program-specific install script used by HP pwplus--don't use.
 
3670
            :
 
3671
          else
 
3672
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3673
            break 3
 
3674
          fi
 
3675
        fi
 
3676
      done
 
3677
    done
 
3678
    ;;
 
3679
esac
 
3680
done
 
3681
IFS=$as_save_IFS
 
3682
 
 
3683
 
 
3684
fi
 
3685
  if test "${ac_cv_path_install+set}" = set; then
 
3686
    INSTALL=$ac_cv_path_install
 
3687
  else
 
3688
    # As a last resort, use the slow shell script.  Don't cache a
 
3689
    # value for INSTALL within a source directory, because that will
 
3690
    # break other packages using the cache if that directory is
 
3691
    # removed, or if the value is a relative name.
 
3692
    INSTALL=$ac_install_sh
 
3693
  fi
 
3694
fi
 
3695
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3696
echo "${ECHO_T}$INSTALL" >&6; }
 
3697
 
 
3698
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3699
# It thinks the first close brace ends the variable substitution.
 
3700
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3701
 
 
3702
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3703
 
 
3704
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3705
 
 
3706
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3707
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
3708
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3709
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3711
else
 
3712
  cat >conftest.make <<\_ACEOF
 
3713
SHELL = /bin/sh
 
3714
all:
 
3715
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3716
_ACEOF
 
3717
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3718
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3719
  *@@@%%%=?*=@@@%%%*)
 
3720
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3721
  *)
 
3722
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3723
esac
 
3724
rm -f conftest.make
 
3725
fi
 
3726
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3727
  { echo "$as_me:$LINENO: result: yes" >&5
 
3728
echo "${ECHO_T}yes" >&6; }
 
3729
  SET_MAKE=
 
3730
else
 
3731
  { echo "$as_me:$LINENO: result: no" >&5
 
3732
echo "${ECHO_T}no" >&6; }
 
3733
  SET_MAKE="MAKE=${MAKE-make}"
 
3734
fi
 
3735
 
 
3736
if test -n "$ac_tool_prefix"; then
 
3737
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3738
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3739
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3741
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3743
else
 
3744
  if test -n "$RANLIB"; then
 
3745
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3746
else
 
3747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3748
for as_dir in $PATH
 
3749
do
 
3750
  IFS=$as_save_IFS
 
3751
  test -z "$as_dir" && as_dir=.
 
3752
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3753
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3754
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3755
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3756
    break 2
 
3757
  fi
 
3758
done
 
3759
done
 
3760
IFS=$as_save_IFS
 
3761
 
 
3762
fi
 
3763
fi
 
3764
RANLIB=$ac_cv_prog_RANLIB
 
3765
if test -n "$RANLIB"; then
 
3766
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3767
echo "${ECHO_T}$RANLIB" >&6; }
 
3768
else
 
3769
  { echo "$as_me:$LINENO: result: no" >&5
 
3770
echo "${ECHO_T}no" >&6; }
 
3771
fi
 
3772
 
 
3773
 
 
3774
fi
 
3775
if test -z "$ac_cv_prog_RANLIB"; then
 
3776
  ac_ct_RANLIB=$RANLIB
 
3777
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3778
set dummy ranlib; ac_word=$2
 
3779
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3781
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3783
else
 
3784
  if test -n "$ac_ct_RANLIB"; then
 
3785
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3786
else
 
3787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3788
for as_dir in $PATH
 
3789
do
 
3790
  IFS=$as_save_IFS
 
3791
  test -z "$as_dir" && as_dir=.
 
3792
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3793
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3794
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3795
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3796
    break 2
 
3797
  fi
 
3798
done
 
3799
done
 
3800
IFS=$as_save_IFS
 
3801
 
 
3802
fi
 
3803
fi
 
3804
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3805
if test -n "$ac_ct_RANLIB"; then
 
3806
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3807
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
3808
else
 
3809
  { echo "$as_me:$LINENO: result: no" >&5
 
3810
echo "${ECHO_T}no" >&6; }
 
3811
fi
 
3812
 
 
3813
  if test "x$ac_ct_RANLIB" = x; then
 
3814
    RANLIB=":"
 
3815
  else
 
3816
    case $cross_compiling:$ac_tool_warned in
 
3817
yes:)
 
3818
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3819
whose name does not start with the host triplet.  If you think this
 
3820
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3821
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3822
whose name does not start with the host triplet.  If you think this
 
3823
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3824
ac_tool_warned=yes ;;
 
3825
esac
 
3826
    RANLIB=$ac_ct_RANLIB
 
3827
  fi
 
3828
else
 
3829
  RANLIB="$ac_cv_prog_RANLIB"
 
3830
fi
 
3831
 
 
3832
 
 
3833
#==================================================================
 
3834
# OK, these five macros prevent my personal path from appearing
 
3835
# in the default Makefile, and actually should make it work to
 
3836
# rebuilt itself even if somebody completely blows off running
 
3837
# ./autogen.sh.  And it ALMOST WORKS
 
3838
#==================================================================
 
3839
ACLOCAL="${SHELL} ./missing --run aclocal"
 
3840
ACTAR="${SHELL} ./missing --run tar"
 
3841
AUTOCONF="${SHELL} ./missing --run autoconf;echo \"Run ./configure\";exit"
 
3842
AUTOHEADER="${SHELL} ./missing --run autoheader"
 
3843
AUTOMAKE="${SHELL} ./missing --run automake --add-missing --copy --gnu"
 
3844
 
 
3845
 
 
3846
 
 
3847
 
 
3848
 
 
3849
 
 
3850
 
 
3851
#==================================================================
 
3852
# Disable unnecessary libtool tests for c++,fortran,java
 
3853
#==================================================================
 
3854
 
 
3855
 
 
3856
 
 
3857
# Check whether --enable-shared was given.
 
3858
if test "${enable_shared+set}" = set; then
 
3859
  enableval=$enable_shared; p=${PACKAGE-default}
 
3860
    case $enableval in
 
3861
    yes) enable_shared=yes ;;
 
3862
    no) enable_shared=no ;;
 
3863
    *)
 
3864
      enable_shared=no
 
3865
      # Look at the argument we got.  We use all the common list separators.
 
3866
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3867
      for pkg in $enableval; do
 
3868
        IFS="$lt_save_ifs"
 
3869
        if test "X$pkg" = "X$p"; then
 
3870
          enable_shared=yes
 
3871
        fi
 
3872
      done
 
3873
      IFS="$lt_save_ifs"
 
3874
      ;;
 
3875
    esac
 
3876
else
 
3877
  enable_shared=yes
 
3878
fi
 
3879
 
 
3880
 
 
3881
# Check whether --enable-static was given.
 
3882
if test "${enable_static+set}" = set; then
 
3883
  enableval=$enable_static; p=${PACKAGE-default}
 
3884
    case $enableval in
 
3885
    yes) enable_static=yes ;;
 
3886
    no) enable_static=no ;;
 
3887
    *)
 
3888
     enable_static=no
 
3889
      # Look at the argument we got.  We use all the common list separators.
 
3890
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3891
      for pkg in $enableval; do
 
3892
        IFS="$lt_save_ifs"
 
3893
        if test "X$pkg" = "X$p"; then
 
3894
          enable_static=yes
 
3895
        fi
 
3896
      done
 
3897
      IFS="$lt_save_ifs"
 
3898
      ;;
 
3899
    esac
 
3900
else
 
3901
  enable_static=yes
 
3902
fi
 
3903
 
 
3904
 
 
3905
# Check whether --enable-fast-install was given.
 
3906
if test "${enable_fast_install+set}" = set; then
 
3907
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3908
    case $enableval in
 
3909
    yes) enable_fast_install=yes ;;
 
3910
    no) enable_fast_install=no ;;
 
3911
    *)
 
3912
      enable_fast_install=no
 
3913
      # Look at the argument we got.  We use all the common list separators.
 
3914
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3915
      for pkg in $enableval; do
 
3916
        IFS="$lt_save_ifs"
 
3917
        if test "X$pkg" = "X$p"; then
 
3918
          enable_fast_install=yes
 
3919
        fi
 
3920
      done
 
3921
      IFS="$lt_save_ifs"
 
3922
      ;;
 
3923
    esac
 
3924
else
 
3925
  enable_fast_install=yes
 
3926
fi
 
3927
 
 
3928
 
3623
3929
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3624
3930
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3625
 
if test "${ac_cv_path_SED+set}" = set; then
3626
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3627
 
else
3628
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3629
 
     for ac_i in 1 2 3 4 5 6 7; do
3630
 
       ac_script="$ac_script$as_nl$ac_script"
3631
 
     done
3632
 
     echo "$ac_script" | sed 99q >conftest.sed
3633
 
     $as_unset ac_script || ac_script=
3634
 
     # Extract the first word of "sed gsed" to use in msg output
3635
 
if test -z "$SED"; then
3636
 
set dummy sed gsed; ac_prog_name=$2
3637
 
if test "${ac_cv_path_SED+set}" = set; then
3638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3639
 
else
3640
 
  ac_path_SED_found=false
3641
 
# Loop through the user's path and test for each of PROGNAME-LIST
 
3931
if test "${lt_cv_path_SED+set}" = set; then
 
3932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3933
else
 
3934
  # Loop through the user's path and test for sed and gsed.
 
3935
# Then use that list of sed's as ones to test for truncation.
3642
3936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643
3937
for as_dir in $PATH
3644
3938
do
3645
3939
  IFS=$as_save_IFS
3646
3940
  test -z "$as_dir" && as_dir=.
3647
 
  for ac_prog in sed gsed; do
3648
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3649
 
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3650
 
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3651
 
    # Check for GNU ac_path_SED and select it if it is found.
3652
 
  # Check for GNU $ac_path_SED
3653
 
case `"$ac_path_SED" --version 2>&1` in
3654
 
*GNU*)
3655
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3656
 
*)
3657
 
  ac_count=0
3658
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3659
 
  while :
3660
 
  do
3661
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3662
 
    mv "conftest.tmp" "conftest.in"
3663
 
    cp "conftest.in" "conftest.nl"
3664
 
    echo '' >> "conftest.nl"
3665
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3666
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3667
 
    ac_count=`expr $ac_count + 1`
3668
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3669
 
      # Best one so far, save it but keep looking for a better one
3670
 
      ac_cv_path_SED="$ac_path_SED"
3671
 
      ac_path_SED_max=$ac_count
 
3941
  for lt_ac_prog in sed gsed; do
 
3942
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3943
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3944
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3945
      fi
 
3946
    done
 
3947
  done
 
3948
done
 
3949
IFS=$as_save_IFS
 
3950
lt_ac_max=0
 
3951
lt_ac_count=0
 
3952
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3953
# along with /bin/sed that truncates output.
 
3954
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3955
  test ! -f $lt_ac_sed && continue
 
3956
  cat /dev/null > conftest.in
 
3957
  lt_ac_count=0
 
3958
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3959
  # Check for GNU sed and select it if it is found.
 
3960
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3961
    lt_cv_path_SED=$lt_ac_sed
 
3962
    break
 
3963
  fi
 
3964
  while true; do
 
3965
    cat conftest.in conftest.in >conftest.tmp
 
3966
    mv conftest.tmp conftest.in
 
3967
    cp conftest.in conftest.nl
 
3968
    echo >>conftest.nl
 
3969
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3970
    cmp -s conftest.out conftest.nl || break
 
3971
    # 10000 chars as input seems more than enough
 
3972
    test $lt_ac_count -gt 10 && break
 
3973
    lt_ac_count=`expr $lt_ac_count + 1`
 
3974
    if test $lt_ac_count -gt $lt_ac_max; then
 
3975
      lt_ac_max=$lt_ac_count
 
3976
      lt_cv_path_SED=$lt_ac_sed
3672
3977
    fi
3673
 
    # 10*(2^10) chars as input seems more than enough
3674
 
    test $ac_count -gt 10 && break
3675
 
  done
3676
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3677
 
esac
3678
 
 
3679
 
 
3680
 
    $ac_path_SED_found && break 3
3681
 
  done
3682
 
done
3683
 
 
3684
 
done
3685
 
IFS=$as_save_IFS
3686
 
 
3687
 
 
3688
 
fi
3689
 
 
3690
 
SED="$ac_cv_path_SED"
3691
 
if test -z "$SED"; then
3692
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3693
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3694
 
   { (exit 1); exit 1; }; }
3695
 
fi
3696
 
 
3697
 
else
3698
 
  ac_cv_path_SED=$SED
3699
 
fi
3700
 
 
3701
 
fi
3702
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3703
 
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3704
 
 SED="$ac_cv_path_SED"
3705
 
  rm -f conftest.sed
3706
 
 
3707
 
test -z "$SED" && SED=sed
3708
 
Xsed="$SED -e 1s/^X//"
3709
 
 
3710
 
 
3711
 
 
3712
 
 
3713
 
 
3714
 
 
3715
 
 
3716
 
 
3717
 
 
3718
 
 
 
3978
  done
 
3979
done
 
3980
 
 
3981
fi
 
3982
 
 
3983
SED=$lt_cv_path_SED
 
3984
 
 
3985
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3986
echo "${ECHO_T}$SED" >&6; }
3719
3987
 
3720
3988
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3721
3989
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879
4147
 EGREP="$ac_cv_path_EGREP"
3880
4148
 
3881
4149
 
3882
 
{ echo "$as_me:$LINENO: checking for fgrep" >&5
3883
 
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3884
 
if test "${ac_cv_path_FGREP+set}" = set; then
3885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3886
 
else
3887
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3888
 
   then ac_cv_path_FGREP="$GREP -F"
3889
 
   else
3890
 
     # Extract the first word of "fgrep" to use in msg output
3891
 
if test -z "$FGREP"; then
3892
 
set dummy fgrep; ac_prog_name=$2
3893
 
if test "${ac_cv_path_FGREP+set}" = set; then
3894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3895
 
else
3896
 
  ac_path_FGREP_found=false
3897
 
# Loop through the user's path and test for each of PROGNAME-LIST
3898
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900
 
do
3901
 
  IFS=$as_save_IFS
3902
 
  test -z "$as_dir" && as_dir=.
3903
 
  for ac_prog in fgrep; do
3904
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3905
 
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3906
 
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3907
 
    # Check for GNU ac_path_FGREP and select it if it is found.
3908
 
  # Check for GNU $ac_path_FGREP
3909
 
case `"$ac_path_FGREP" --version 2>&1` in
3910
 
*GNU*)
3911
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3912
 
*)
3913
 
  ac_count=0
3914
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3915
 
  while :
3916
 
  do
3917
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3918
 
    mv "conftest.tmp" "conftest.in"
3919
 
    cp "conftest.in" "conftest.nl"
3920
 
    echo 'FGREP' >> "conftest.nl"
3921
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3922
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3923
 
    ac_count=`expr $ac_count + 1`
3924
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3925
 
      # Best one so far, save it but keep looking for a better one
3926
 
      ac_cv_path_FGREP="$ac_path_FGREP"
3927
 
      ac_path_FGREP_max=$ac_count
3928
 
    fi
3929
 
    # 10*(2^10) chars as input seems more than enough
3930
 
    test $ac_count -gt 10 && break
3931
 
  done
3932
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3933
 
esac
3934
 
 
3935
 
 
3936
 
    $ac_path_FGREP_found && break 3
3937
 
  done
3938
 
done
3939
 
 
3940
 
done
3941
 
IFS=$as_save_IFS
3942
 
 
3943
 
 
3944
 
fi
3945
 
 
3946
 
FGREP="$ac_cv_path_FGREP"
3947
 
if test -z "$FGREP"; then
3948
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3949
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3950
 
   { (exit 1); exit 1; }; }
3951
 
fi
3952
 
 
3953
 
else
3954
 
  ac_cv_path_FGREP=$FGREP
3955
 
fi
3956
 
 
3957
 
 
3958
 
   fi
3959
 
fi
3960
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3961
 
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3962
 
 FGREP="$ac_cv_path_FGREP"
3963
 
 
3964
 
 
3965
 
test -z "$GREP" && GREP=grep
3966
 
 
3967
 
 
3968
 
 
3969
 
 
3970
 
 
3971
 
 
3972
 
 
3973
 
 
3974
 
 
3975
 
 
3976
 
 
3977
 
 
3978
 
 
3979
 
 
3980
 
 
3981
 
 
3982
 
 
3983
 
 
3984
4150
 
3985
4151
# Check whether --with-gnu-ld was given.
3986
4152
if test "${with_gnu_ld+set}" = set; then
4006
4172
    [\\/]* | ?:[\\/]*)
4007
4173
      re_direlt='/[^/][^/]*/\.\./'
4008
4174
      # Canonicalize the pathname of ld
4009
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4010
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4011
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4175
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4176
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4177
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4012
4178
      done
4013
4179
      test -z "$LD" && LD="$ac_prog"
4014
4180
      ;;
4088
4254
with_gnu_ld=$lt_cv_prog_gnu_ld
4089
4255
 
4090
4256
 
4091
 
 
4092
 
 
4093
 
 
4094
 
 
4095
 
 
4096
 
 
4097
 
 
4098
 
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4099
 
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
 
4257
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4258
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4259
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4261
else
 
4262
  lt_cv_ld_reload_flag='-r'
 
4263
fi
 
4264
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4265
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4266
reload_flag=$lt_cv_ld_reload_flag
 
4267
case $reload_flag in
 
4268
"" | " "*) ;;
 
4269
*) reload_flag=" $reload_flag" ;;
 
4270
esac
 
4271
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4272
case $host_os in
 
4273
  darwin*)
 
4274
    if test "$GCC" = yes; then
 
4275
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4276
    else
 
4277
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4278
    fi
 
4279
    ;;
 
4280
esac
 
4281
 
 
4282
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4283
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4100
4284
if test "${lt_cv_path_NM+set}" = set; then
4101
4285
  echo $ECHO_N "(cached) $ECHO_C" >&6
4102
4286
else
4141
4325
    done
4142
4326
    IFS="$lt_save_ifs"
4143
4327
  done
4144
 
  : ${lt_cv_path_NM=no}
 
4328
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4145
4329
fi
4146
4330
fi
4147
4331
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4148
4332
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4149
 
if test "$lt_cv_path_NM" != "no"; then
4150
 
  NM="$lt_cv_path_NM"
4151
 
else
4152
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4153
 
  if test -n "$ac_tool_prefix"; then
4154
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4155
 
  do
4156
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4159
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4162
 
else
4163
 
  if test -n "$DUMPBIN"; then
4164
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4165
 
else
4166
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167
 
for as_dir in $PATH
4168
 
do
4169
 
  IFS=$as_save_IFS
4170
 
  test -z "$as_dir" && as_dir=.
4171
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4172
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4174
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175
 
    break 2
4176
 
  fi
4177
 
done
4178
 
done
4179
 
IFS=$as_save_IFS
4180
 
 
4181
 
fi
4182
 
fi
4183
 
DUMPBIN=$ac_cv_prog_DUMPBIN
4184
 
if test -n "$DUMPBIN"; then
4185
 
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4186
 
echo "${ECHO_T}$DUMPBIN" >&6; }
4187
 
else
4188
 
  { echo "$as_me:$LINENO: result: no" >&5
4189
 
echo "${ECHO_T}no" >&6; }
4190
 
fi
4191
 
 
4192
 
 
4193
 
    test -n "$DUMPBIN" && break
4194
 
  done
4195
 
fi
4196
 
if test -z "$DUMPBIN"; then
4197
 
  ac_ct_DUMPBIN=$DUMPBIN
4198
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4199
 
do
4200
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4201
 
set dummy $ac_prog; ac_word=$2
4202
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4203
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4206
 
else
4207
 
  if test -n "$ac_ct_DUMPBIN"; then
4208
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4209
 
else
4210
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211
 
for as_dir in $PATH
4212
 
do
4213
 
  IFS=$as_save_IFS
4214
 
  test -z "$as_dir" && as_dir=.
4215
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4216
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4218
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219
 
    break 2
4220
 
  fi
4221
 
done
4222
 
done
4223
 
IFS=$as_save_IFS
4224
 
 
4225
 
fi
4226
 
fi
4227
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4228
 
if test -n "$ac_ct_DUMPBIN"; then
4229
 
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4230
 
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4231
 
else
4232
 
  { echo "$as_me:$LINENO: result: no" >&5
4233
 
echo "${ECHO_T}no" >&6; }
4234
 
fi
4235
 
 
4236
 
 
4237
 
  test -n "$ac_ct_DUMPBIN" && break
4238
 
done
4239
 
 
4240
 
  if test "x$ac_ct_DUMPBIN" = x; then
4241
 
    DUMPBIN=":"
4242
 
  else
4243
 
    case $cross_compiling:$ac_tool_warned in
4244
 
yes:)
4245
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4246
 
whose name does not start with the host triplet.  If you think this
4247
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4248
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4249
 
whose name does not start with the host triplet.  If you think this
4250
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4251
 
ac_tool_warned=yes ;;
4252
 
esac
4253
 
    DUMPBIN=$ac_ct_DUMPBIN
4254
 
  fi
4255
 
fi
4256
 
 
4257
 
 
4258
 
  if test "$DUMPBIN" != ":"; then
4259
 
    NM="$DUMPBIN"
4260
 
  fi
4261
 
fi
4262
 
test -z "$NM" && NM=nm
4263
 
 
4264
 
 
4265
 
 
4266
 
 
4267
 
 
4268
 
 
4269
 
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4270
 
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4271
 
if test "${lt_cv_nm_interface+set}" = set; then
4272
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4273
 
else
4274
 
  lt_cv_nm_interface="BSD nm"
4275
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4276
 
  (eval echo "\"\$as_me:4276: $ac_compile\"" >&5)
4277
 
  (eval "$ac_compile" 2>conftest.err)
4278
 
  cat conftest.err >&5
4279
 
  (eval echo "\"\$as_me:4279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4280
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4281
 
  cat conftest.err >&5
4282
 
  (eval echo "\"\$as_me:4282: output\"" >&5)
4283
 
  cat conftest.out >&5
4284
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4285
 
    lt_cv_nm_interface="MS dumpbin"
4286
 
  fi
4287
 
  rm -f conftest*
4288
 
fi
4289
 
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4290
 
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
 
4333
NM="$lt_cv_path_NM"
4291
4334
 
4292
4335
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4293
4336
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4300
4343
echo "${ECHO_T}no, using $LN_S" >&6; }
4301
4344
fi
4302
4345
 
4303
 
# find the maximum length of command line arguments
4304
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4305
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4306
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4308
 
else
4309
 
    i=0
4310
 
  teststring="ABCD"
4311
 
 
4312
 
  case $build_os in
4313
 
  msdosdjgpp*)
4314
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4315
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4316
 
    # during glob expansion).  Even if it were fixed, the result of this
4317
 
    # check would be larger than it should be.
4318
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4319
 
    ;;
4320
 
 
4321
 
  gnu*)
4322
 
    # Under GNU Hurd, this test is not required because there is
4323
 
    # no limit to the length of command line arguments.
4324
 
    # Libtool will interpret -1 as no limit whatsoever
4325
 
    lt_cv_sys_max_cmd_len=-1;
4326
 
    ;;
4327
 
 
4328
 
  cygwin* | mingw*)
4329
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4330
 
    # about 5 minutes as the teststring grows exponentially.
4331
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
4332
 
    # you end up with a "frozen" computer, even though with patience
4333
 
    # the test eventually succeeds (with a max line length of 256k).
4334
 
    # Instead, let's just punt: use the minimum linelength reported by
4335
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
4336
 
    lt_cv_sys_max_cmd_len=8192;
4337
 
    ;;
4338
 
 
4339
 
  amigaos*)
4340
 
    # On AmigaOS with pdksh, this test takes hours, literally.
4341
 
    # So we just punt and use a minimum line length of 8192.
4342
 
    lt_cv_sys_max_cmd_len=8192;
4343
 
    ;;
4344
 
 
4345
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4346
 
    # This has been around since 386BSD, at least.  Likely further.
4347
 
    if test -x /sbin/sysctl; then
4348
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4349
 
    elif test -x /usr/sbin/sysctl; then
4350
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4351
 
    else
4352
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4353
 
    fi
4354
 
    # And add a safety zone
4355
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4356
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4357
 
    ;;
4358
 
 
4359
 
  interix*)
4360
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4361
 
    lt_cv_sys_max_cmd_len=196608
4362
 
    ;;
4363
 
 
4364
 
  osf*)
4365
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4366
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4367
 
    # nice to cause kernel panics so lets avoid the loop below.
4368
 
    # First set a reasonable default.
4369
 
    lt_cv_sys_max_cmd_len=16384
4370
 
    #
4371
 
    if test -x /sbin/sysconfig; then
4372
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4373
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4374
 
      esac
4375
 
    fi
4376
 
    ;;
4377
 
  sco3.2v5*)
4378
 
    lt_cv_sys_max_cmd_len=102400
4379
 
    ;;
4380
 
  sysv5* | sco5v6* | sysv4.2uw2*)
4381
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4382
 
    if test -n "$kargmax"; then
4383
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4384
 
    else
4385
 
      lt_cv_sys_max_cmd_len=32768
4386
 
    fi
4387
 
    ;;
4388
 
  *)
4389
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4390
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
4391
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4392
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4393
 
    else
4394
 
      # Make teststring a little bigger before we do anything with it.
4395
 
      # a 1K string should be a reasonable start.
4396
 
      for i in 1 2 3 4 5 6 7 8 ; do
4397
 
        teststring=$teststring$teststring
4398
 
      done
4399
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4400
 
      # If test is not a shell built-in, we'll probably end up computing a
4401
 
      # maximum length that is only half of the actual maximum length, but
4402
 
      # we can't tell.
4403
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4404
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4405
 
              test $i != 17 # 1/2 MB should be enough
4406
 
      do
4407
 
        i=`expr $i + 1`
4408
 
        teststring=$teststring$teststring
4409
 
      done
4410
 
      # Only check the string length outside the loop.
4411
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4412
 
      teststring=
4413
 
      # Add a significant safety factor because C++ compilers can tack on
4414
 
      # massive amounts of additional arguments before passing them to the
4415
 
      # linker.  It appears as though 1/2 is a usable value.
4416
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4417
 
    fi
4418
 
    ;;
4419
 
  esac
4420
 
 
4421
 
fi
4422
 
 
4423
 
if test -n $lt_cv_sys_max_cmd_len ; then
4424
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4425
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4426
 
else
4427
 
  { echo "$as_me:$LINENO: result: none" >&5
4428
 
echo "${ECHO_T}none" >&6; }
4429
 
fi
4430
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4431
 
 
4432
 
 
4433
 
 
4434
 
 
4435
 
 
4436
 
 
4437
 
: ${CP="cp -f"}
4438
 
: ${MV="mv -f"}
4439
 
: ${RM="rm -f"}
4440
 
 
4441
 
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4442
 
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4443
 
# Try some XSI features
4444
 
xsi_shell=no
4445
 
( _lt_dummy="a/b/c"
4446
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4447
 
      = c,a/b,, \
4448
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
4449
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4450
 
  && xsi_shell=yes
4451
 
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4452
 
echo "${ECHO_T}$xsi_shell" >&6; }
4453
 
 
4454
 
 
4455
 
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4456
 
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4457
 
lt_shell_append=no
4458
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4459
 
    >/dev/null 2>&1 \
4460
 
  && lt_shell_append=yes
4461
 
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4462
 
echo "${ECHO_T}$lt_shell_append" >&6; }
4463
 
 
4464
 
 
4465
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4466
 
  lt_unset=unset
4467
 
else
4468
 
  lt_unset=false
4469
 
fi
4470
 
 
4471
 
 
4472
 
 
4473
 
 
4474
 
 
4475
 
# test EBCDIC or ASCII
4476
 
case `echo X|tr X '\101'` in
4477
 
 A) # ASCII based system
4478
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4479
 
  lt_SP2NL='tr \040 \012'
4480
 
  lt_NL2SP='tr \015\012 \040\040'
4481
 
  ;;
4482
 
 *) # EBCDIC based system
4483
 
  lt_SP2NL='tr \100 \n'
4484
 
  lt_NL2SP='tr \r\n \100\100'
4485
 
  ;;
4486
 
esac
4487
 
 
4488
 
 
4489
 
 
4490
 
 
4491
 
 
4492
 
 
4493
 
 
4494
 
 
4495
 
 
4496
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4497
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4498
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4499
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4500
 
else
4501
 
  lt_cv_ld_reload_flag='-r'
4502
 
fi
4503
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4504
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4505
 
reload_flag=$lt_cv_ld_reload_flag
4506
 
case $reload_flag in
4507
 
"" | " "*) ;;
4508
 
*) reload_flag=" $reload_flag" ;;
4509
 
esac
4510
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4511
 
case $host_os in
4512
 
  darwin*)
4513
 
    if test "$GCC" = yes; then
4514
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4515
 
    else
4516
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4517
 
    fi
4518
 
    ;;
4519
 
esac
4520
 
 
4521
 
 
4522
 
 
4523
 
 
4524
 
 
4525
 
 
4526
 
 
4527
 
 
4528
 
 
4529
 
 
4530
4346
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4531
4347
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4532
4348
if test "${lt_cv_deplibs_check_method+set}" = set; then
4585
4401
  ;;
4586
4402
 
4587
4403
freebsd* | dragonfly*)
4588
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4404
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4589
4405
    case $host_cpu in
4590
4406
    i*86 )
4591
4407
      # Not sure whether the presence of OpenBSD here was a mistake.
4643
4459
  ;;
4644
4460
 
4645
4461
netbsd* | netbsdelf*-gnu)
4646
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4462
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4647
4463
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4648
4464
  else
4649
4465
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4656
4472
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4657
4473
  ;;
4658
4474
 
4659
 
*nto* | *qnx*)
4660
 
  lt_cv_deplibs_check_method=pass_all
 
4475
nto-qnx*)
 
4476
  lt_cv_deplibs_check_method=unknown
4661
4477
  ;;
4662
4478
 
4663
4479
openbsd*)
4664
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4480
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4665
4481
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4666
4482
  else
4667
4483
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4680
4496
  lt_cv_deplibs_check_method=pass_all
4681
4497
  ;;
4682
4498
 
4683
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4684
 
  lt_cv_deplibs_check_method=pass_all
4685
 
  ;;
4686
 
 
4687
4499
sysv4 | sysv4.3*)
4688
4500
  case $host_vendor in
4689
4501
  motorola)
4711
4523
  esac
4712
4524
  ;;
4713
4525
 
4714
 
tpf*)
 
4526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4715
4527
  lt_cv_deplibs_check_method=pass_all
4716
4528
  ;;
4717
4529
esac
4726
4538
 
4727
4539
 
4728
4540
 
4729
 
 
4730
 
 
4731
 
 
4732
 
 
4733
 
 
4734
 
 
4735
 
 
4736
 
 
4737
 
if test -n "$ac_tool_prefix"; then
4738
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4739
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
4740
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4741
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742
 
if test "${ac_cv_prog_AR+set}" = set; then
4743
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4744
 
else
4745
 
  if test -n "$AR"; then
4746
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
4747
 
else
4748
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749
 
for as_dir in $PATH
4750
 
do
4751
 
  IFS=$as_save_IFS
4752
 
  test -z "$as_dir" && as_dir=.
4753
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4754
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4756
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757
 
    break 2
4758
 
  fi
4759
 
done
4760
 
done
4761
 
IFS=$as_save_IFS
4762
 
 
4763
 
fi
4764
 
fi
4765
 
AR=$ac_cv_prog_AR
4766
 
if test -n "$AR"; then
4767
 
  { echo "$as_me:$LINENO: result: $AR" >&5
4768
 
echo "${ECHO_T}$AR" >&6; }
4769
 
else
4770
 
  { echo "$as_me:$LINENO: result: no" >&5
4771
 
echo "${ECHO_T}no" >&6; }
4772
 
fi
4773
 
 
4774
 
 
4775
 
fi
4776
 
if test -z "$ac_cv_prog_AR"; then
4777
 
  ac_ct_AR=$AR
4778
 
  # Extract the first word of "ar", so it can be a program name with args.
4779
 
set dummy ar; ac_word=$2
4780
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4781
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4784
 
else
4785
 
  if test -n "$ac_ct_AR"; then
4786
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4787
 
else
4788
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789
 
for as_dir in $PATH
4790
 
do
4791
 
  IFS=$as_save_IFS
4792
 
  test -z "$as_dir" && as_dir=.
4793
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4794
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795
 
    ac_cv_prog_ac_ct_AR="ar"
4796
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797
 
    break 2
4798
 
  fi
4799
 
done
4800
 
done
4801
 
IFS=$as_save_IFS
4802
 
 
4803
 
fi
4804
 
fi
4805
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4806
 
if test -n "$ac_ct_AR"; then
4807
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4808
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
4809
 
else
4810
 
  { echo "$as_me:$LINENO: result: no" >&5
4811
 
echo "${ECHO_T}no" >&6; }
4812
 
fi
4813
 
 
4814
 
  if test "x$ac_ct_AR" = x; then
4815
 
    AR="false"
4816
 
  else
4817
 
    case $cross_compiling:$ac_tool_warned in
4818
 
yes:)
4819
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4820
 
whose name does not start with the host triplet.  If you think this
4821
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4822
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4823
 
whose name does not start with the host triplet.  If you think this
4824
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4825
 
ac_tool_warned=yes ;;
4826
 
esac
4827
 
    AR=$ac_ct_AR
4828
 
  fi
4829
 
else
4830
 
  AR="$ac_cv_prog_AR"
4831
 
fi
4832
 
 
4833
 
test -z "$AR" && AR=ar
4834
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
4835
 
 
4836
 
 
4837
 
 
4838
 
 
4839
 
 
4840
 
 
4841
 
 
4842
 
 
4843
 
 
4844
 
 
4845
 
 
4846
 
if test -n "$ac_tool_prefix"; then
4847
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4848
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
4849
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4850
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851
 
if test "${ac_cv_prog_STRIP+set}" = set; then
4852
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4853
 
else
4854
 
  if test -n "$STRIP"; then
4855
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4856
 
else
4857
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858
 
for as_dir in $PATH
4859
 
do
4860
 
  IFS=$as_save_IFS
4861
 
  test -z "$as_dir" && as_dir=.
4862
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4863
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4865
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866
 
    break 2
4867
 
  fi
4868
 
done
4869
 
done
4870
 
IFS=$as_save_IFS
4871
 
 
4872
 
fi
4873
 
fi
4874
 
STRIP=$ac_cv_prog_STRIP
4875
 
if test -n "$STRIP"; then
4876
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
4877
 
echo "${ECHO_T}$STRIP" >&6; }
4878
 
else
4879
 
  { echo "$as_me:$LINENO: result: no" >&5
4880
 
echo "${ECHO_T}no" >&6; }
4881
 
fi
4882
 
 
4883
 
 
4884
 
fi
4885
 
if test -z "$ac_cv_prog_STRIP"; then
4886
 
  ac_ct_STRIP=$STRIP
4887
 
  # Extract the first word of "strip", so it can be a program name with args.
4888
 
set dummy strip; ac_word=$2
4889
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4890
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4892
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4893
 
else
4894
 
  if test -n "$ac_ct_STRIP"; then
4895
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4896
 
else
4897
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898
 
for as_dir in $PATH
4899
 
do
4900
 
  IFS=$as_save_IFS
4901
 
  test -z "$as_dir" && as_dir=.
4902
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4903
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904
 
    ac_cv_prog_ac_ct_STRIP="strip"
4905
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906
 
    break 2
4907
 
  fi
4908
 
done
4909
 
done
4910
 
IFS=$as_save_IFS
4911
 
 
4912
 
fi
4913
 
fi
4914
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4915
 
if test -n "$ac_ct_STRIP"; then
4916
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4917
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4918
 
else
4919
 
  { echo "$as_me:$LINENO: result: no" >&5
4920
 
echo "${ECHO_T}no" >&6; }
4921
 
fi
4922
 
 
4923
 
  if test "x$ac_ct_STRIP" = x; then
4924
 
    STRIP=":"
4925
 
  else
4926
 
    case $cross_compiling:$ac_tool_warned in
4927
 
yes:)
4928
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4929
 
whose name does not start with the host triplet.  If you think this
4930
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4931
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4932
 
whose name does not start with the host triplet.  If you think this
4933
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4934
 
ac_tool_warned=yes ;;
4935
 
esac
4936
 
    STRIP=$ac_ct_STRIP
4937
 
  fi
4938
 
else
4939
 
  STRIP="$ac_cv_prog_STRIP"
4940
 
fi
4941
 
 
4942
 
test -z "$STRIP" && STRIP=:
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
 
 
4949
 
if test -n "$ac_tool_prefix"; then
4950
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4951
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4952
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4953
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
4955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4956
 
else
4957
 
  if test -n "$RANLIB"; then
4958
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4959
 
else
4960
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961
 
for as_dir in $PATH
4962
 
do
4963
 
  IFS=$as_save_IFS
4964
 
  test -z "$as_dir" && as_dir=.
4965
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4966
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4968
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969
 
    break 2
4970
 
  fi
4971
 
done
4972
 
done
4973
 
IFS=$as_save_IFS
4974
 
 
4975
 
fi
4976
 
fi
4977
 
RANLIB=$ac_cv_prog_RANLIB
4978
 
if test -n "$RANLIB"; then
4979
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4980
 
echo "${ECHO_T}$RANLIB" >&6; }
4981
 
else
4982
 
  { echo "$as_me:$LINENO: result: no" >&5
4983
 
echo "${ECHO_T}no" >&6; }
4984
 
fi
4985
 
 
4986
 
 
4987
 
fi
4988
 
if test -z "$ac_cv_prog_RANLIB"; then
4989
 
  ac_ct_RANLIB=$RANLIB
4990
 
  # Extract the first word of "ranlib", so it can be a program name with args.
4991
 
set dummy ranlib; ac_word=$2
4992
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4993
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4996
 
else
4997
 
  if test -n "$ac_ct_RANLIB"; then
4998
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4999
 
else
5000
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001
 
for as_dir in $PATH
5002
 
do
5003
 
  IFS=$as_save_IFS
5004
 
  test -z "$as_dir" && as_dir=.
5005
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5006
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5008
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009
 
    break 2
5010
 
  fi
5011
 
done
5012
 
done
5013
 
IFS=$as_save_IFS
5014
 
 
5015
 
fi
5016
 
fi
5017
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5018
 
if test -n "$ac_ct_RANLIB"; then
5019
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5020
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5021
 
else
5022
 
  { echo "$as_me:$LINENO: result: no" >&5
5023
 
echo "${ECHO_T}no" >&6; }
5024
 
fi
5025
 
 
5026
 
  if test "x$ac_ct_RANLIB" = x; then
5027
 
    RANLIB=":"
5028
 
  else
5029
 
    case $cross_compiling:$ac_tool_warned in
5030
 
yes:)
5031
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5032
 
whose name does not start with the host triplet.  If you think this
5033
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5034
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5035
 
whose name does not start with the host triplet.  If you think this
5036
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5037
 
ac_tool_warned=yes ;;
5038
 
esac
5039
 
    RANLIB=$ac_ct_RANLIB
5040
 
  fi
5041
 
else
5042
 
  RANLIB="$ac_cv_prog_RANLIB"
5043
 
fi
5044
 
 
5045
 
test -z "$RANLIB" && RANLIB=:
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
# Determine commands to create old-style static archives.
5053
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5054
 
old_postinstall_cmds='chmod 644 $oldlib'
5055
 
old_postuninstall_cmds=
5056
 
 
5057
 
if test -n "$RANLIB"; then
5058
 
  case $host_os in
5059
 
  openbsd*)
5060
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5061
 
    ;;
5062
 
  *)
5063
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5064
 
    ;;
5065
 
  esac
5066
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5067
 
fi
5068
 
 
5069
 
 
5070
 
 
5071
 
 
5072
 
 
5073
 
 
5074
 
 
5075
 
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
 
 
5102
4541
# If no C compiler was specified, use CC.
5103
4542
LTCC=${LTCC-"$CC"}
5104
4543
 
5109
4548
compiler=$CC
5110
4549
 
5111
4550
 
 
4551
# Check whether --enable-libtool-lock was given.
 
4552
if test "${enable_libtool_lock+set}" = set; then
 
4553
  enableval=$enable_libtool_lock;
 
4554
fi
 
4555
 
 
4556
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4557
 
 
4558
# Some flags need to be propagated to the compiler or linker for good
 
4559
# libtool support.
 
4560
case $host in
 
4561
ia64-*-hpux*)
 
4562
  # Find out which ABI we are using.
 
4563
  echo 'int i;' > conftest.$ac_ext
 
4564
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4565
  (eval $ac_compile) 2>&5
 
4566
  ac_status=$?
 
4567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4568
  (exit $ac_status); }; then
 
4569
    case `/usr/bin/file conftest.$ac_objext` in
 
4570
    *ELF-32*)
 
4571
      HPUX_IA64_MODE="32"
 
4572
      ;;
 
4573
    *ELF-64*)
 
4574
      HPUX_IA64_MODE="64"
 
4575
      ;;
 
4576
    esac
 
4577
  fi
 
4578
  rm -rf conftest*
 
4579
  ;;
 
4580
*-*-irix6*)
 
4581
  # Find out which ABI we are using.
 
4582
  echo '#line 4582 "configure"' > conftest.$ac_ext
 
4583
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4584
  (eval $ac_compile) 2>&5
 
4585
  ac_status=$?
 
4586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4587
  (exit $ac_status); }; then
 
4588
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4589
    case `/usr/bin/file conftest.$ac_objext` in
 
4590
    *32-bit*)
 
4591
      LD="${LD-ld} -melf32bsmip"
 
4592
      ;;
 
4593
    *N32*)
 
4594
      LD="${LD-ld} -melf32bmipn32"
 
4595
      ;;
 
4596
    *64-bit*)
 
4597
      LD="${LD-ld} -melf64bmip"
 
4598
      ;;
 
4599
    esac
 
4600
   else
 
4601
    case `/usr/bin/file conftest.$ac_objext` in
 
4602
    *32-bit*)
 
4603
      LD="${LD-ld} -32"
 
4604
      ;;
 
4605
    *N32*)
 
4606
      LD="${LD-ld} -n32"
 
4607
      ;;
 
4608
    *64-bit*)
 
4609
      LD="${LD-ld} -64"
 
4610
      ;;
 
4611
    esac
 
4612
   fi
 
4613
  fi
 
4614
  rm -rf conftest*
 
4615
  ;;
 
4616
 
 
4617
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4618
s390*-*linux*|sparc*-*linux*)
 
4619
  # Find out which ABI we are using.
 
4620
  echo 'int i;' > conftest.$ac_ext
 
4621
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4622
  (eval $ac_compile) 2>&5
 
4623
  ac_status=$?
 
4624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4625
  (exit $ac_status); }; then
 
4626
    case `/usr/bin/file conftest.o` in
 
4627
    *32-bit*)
 
4628
      case $host in
 
4629
        x86_64-*kfreebsd*-gnu)
 
4630
          LD="${LD-ld} -m elf_i386_fbsd"
 
4631
          ;;
 
4632
        x86_64-*linux*)
 
4633
          LD="${LD-ld} -m elf_i386"
 
4634
          ;;
 
4635
        ppc64-*linux*|powerpc64-*linux*)
 
4636
          LD="${LD-ld} -m elf32ppclinux"
 
4637
          ;;
 
4638
        s390x-*linux*)
 
4639
          LD="${LD-ld} -m elf_s390"
 
4640
          ;;
 
4641
        sparc64-*linux*)
 
4642
          LD="${LD-ld} -m elf32_sparc"
 
4643
          ;;
 
4644
      esac
 
4645
      ;;
 
4646
    *64-bit*)
 
4647
      case $host in
 
4648
        x86_64-*kfreebsd*-gnu)
 
4649
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4650
          ;;
 
4651
        x86_64-*linux*)
 
4652
          LD="${LD-ld} -m elf_x86_64"
 
4653
          ;;
 
4654
        ppc*-*linux*|powerpc*-*linux*)
 
4655
          LD="${LD-ld} -m elf64ppc"
 
4656
          ;;
 
4657
        s390*-*linux*)
 
4658
          LD="${LD-ld} -m elf64_s390"
 
4659
          ;;
 
4660
        sparc*-*linux*)
 
4661
          LD="${LD-ld} -m elf64_sparc"
 
4662
          ;;
 
4663
      esac
 
4664
      ;;
 
4665
    esac
 
4666
  fi
 
4667
  rm -rf conftest*
 
4668
  ;;
 
4669
 
 
4670
*-*-sco3.2v5*)
 
4671
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4672
  SAVE_CFLAGS="$CFLAGS"
 
4673
  CFLAGS="$CFLAGS -belf"
 
4674
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4675
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4676
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4678
else
 
4679
  ac_ext=c
 
4680
ac_cpp='$CPP $CPPFLAGS'
 
4681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4684
 
 
4685
     cat >conftest.$ac_ext <<_ACEOF
 
4686
/* confdefs.h.  */
 
4687
_ACEOF
 
4688
cat confdefs.h >>conftest.$ac_ext
 
4689
cat >>conftest.$ac_ext <<_ACEOF
 
4690
/* end confdefs.h.  */
 
4691
 
 
4692
int
 
4693
main ()
 
4694
{
 
4695
 
 
4696
  ;
 
4697
  return 0;
 
4698
}
 
4699
_ACEOF
 
4700
rm -f conftest.$ac_objext conftest$ac_exeext
 
4701
if { (ac_try="$ac_link"
 
4702
case "(($ac_try" in
 
4703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4704
  *) ac_try_echo=$ac_try;;
 
4705
esac
 
4706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4707
  (eval "$ac_link") 2>conftest.er1
 
4708
  ac_status=$?
 
4709
  grep -v '^ *+' conftest.er1 >conftest.err
 
4710
  rm -f conftest.er1
 
4711
  cat conftest.err >&5
 
4712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4713
  (exit $ac_status); } && {
 
4714
         test -z "$ac_c_werror_flag" ||
 
4715
         test ! -s conftest.err
 
4716
       } && test -s conftest$ac_exeext &&
 
4717
       $as_test_x conftest$ac_exeext; then
 
4718
  lt_cv_cc_needs_belf=yes
 
4719
else
 
4720
  echo "$as_me: failed program was:" >&5
 
4721
sed 's/^/| /' conftest.$ac_ext >&5
 
4722
 
 
4723
        lt_cv_cc_needs_belf=no
 
4724
fi
 
4725
 
 
4726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4727
      conftest$ac_exeext conftest.$ac_ext
 
4728
     ac_ext=c
 
4729
ac_cpp='$CPP $CPPFLAGS'
 
4730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4733
 
 
4734
fi
 
4735
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4736
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4737
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4738
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4739
    CFLAGS="$SAVE_CFLAGS"
 
4740
  fi
 
4741
  ;;
 
4742
sparc*-*solaris*)
 
4743
  # Find out which ABI we are using.
 
4744
  echo 'int i;' > conftest.$ac_ext
 
4745
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4746
  (eval $ac_compile) 2>&5
 
4747
  ac_status=$?
 
4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4749
  (exit $ac_status); }; then
 
4750
    case `/usr/bin/file conftest.o` in
 
4751
    *64-bit*)
 
4752
      case $lt_cv_prog_gnu_ld in
 
4753
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4754
      *)
 
4755
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4756
          LD="${LD-ld} -64"
 
4757
        fi
 
4758
        ;;
 
4759
      esac
 
4760
      ;;
 
4761
    esac
 
4762
  fi
 
4763
  rm -rf conftest*
 
4764
  ;;
 
4765
 
 
4766
 
 
4767
esac
 
4768
 
 
4769
need_locks="$enable_libtool_lock"
 
4770
 
 
4771
 
 
4772
ac_ext=c
 
4773
ac_cpp='$CPP $CPPFLAGS'
 
4774
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4775
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4776
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4777
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4778
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4779
# On Suns, sometimes $CPP names a directory.
 
4780
if test -n "$CPP" && test -d "$CPP"; then
 
4781
  CPP=
 
4782
fi
 
4783
if test -z "$CPP"; then
 
4784
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4786
else
 
4787
      # Double quotes because CPP needs to be expanded
 
4788
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4789
    do
 
4790
      ac_preproc_ok=false
 
4791
for ac_c_preproc_warn_flag in '' yes
 
4792
do
 
4793
  # Use a header file that comes with gcc, so configuring glibc
 
4794
  # with a fresh cross-compiler works.
 
4795
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4796
  # <limits.h> exists even on freestanding compilers.
 
4797
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4798
  # not just through cpp. "Syntax error" is here to catch this case.
 
4799
  cat >conftest.$ac_ext <<_ACEOF
 
4800
/* confdefs.h.  */
 
4801
_ACEOF
 
4802
cat confdefs.h >>conftest.$ac_ext
 
4803
cat >>conftest.$ac_ext <<_ACEOF
 
4804
/* end confdefs.h.  */
 
4805
#ifdef __STDC__
 
4806
# include <limits.h>
 
4807
#else
 
4808
# include <assert.h>
 
4809
#endif
 
4810
                     Syntax error
 
4811
_ACEOF
 
4812
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4813
case "(($ac_try" in
 
4814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4815
  *) ac_try_echo=$ac_try;;
 
4816
esac
 
4817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4818
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4819
  ac_status=$?
 
4820
  grep -v '^ *+' conftest.er1 >conftest.err
 
4821
  rm -f conftest.er1
 
4822
  cat conftest.err >&5
 
4823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4824
  (exit $ac_status); } >/dev/null && {
 
4825
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4826
         test ! -s conftest.err
 
4827
       }; then
 
4828
  :
 
4829
else
 
4830
  echo "$as_me: failed program was:" >&5
 
4831
sed 's/^/| /' conftest.$ac_ext >&5
 
4832
 
 
4833
  # Broken: fails on valid input.
 
4834
continue
 
4835
fi
 
4836
 
 
4837
rm -f conftest.err conftest.$ac_ext
 
4838
 
 
4839
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4840
  # can be detected and how.
 
4841
  cat >conftest.$ac_ext <<_ACEOF
 
4842
/* confdefs.h.  */
 
4843
_ACEOF
 
4844
cat confdefs.h >>conftest.$ac_ext
 
4845
cat >>conftest.$ac_ext <<_ACEOF
 
4846
/* end confdefs.h.  */
 
4847
#include <ac_nonexistent.h>
 
4848
_ACEOF
 
4849
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4850
case "(($ac_try" in
 
4851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4852
  *) ac_try_echo=$ac_try;;
 
4853
esac
 
4854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4855
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4856
  ac_status=$?
 
4857
  grep -v '^ *+' conftest.er1 >conftest.err
 
4858
  rm -f conftest.er1
 
4859
  cat conftest.err >&5
 
4860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4861
  (exit $ac_status); } >/dev/null && {
 
4862
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4863
         test ! -s conftest.err
 
4864
       }; then
 
4865
  # Broken: success on invalid input.
 
4866
continue
 
4867
else
 
4868
  echo "$as_me: failed program was:" >&5
 
4869
sed 's/^/| /' conftest.$ac_ext >&5
 
4870
 
 
4871
  # Passes both tests.
 
4872
ac_preproc_ok=:
 
4873
break
 
4874
fi
 
4875
 
 
4876
rm -f conftest.err conftest.$ac_ext
 
4877
 
 
4878
done
 
4879
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4880
rm -f conftest.err conftest.$ac_ext
 
4881
if $ac_preproc_ok; then
 
4882
  break
 
4883
fi
 
4884
 
 
4885
    done
 
4886
    ac_cv_prog_CPP=$CPP
 
4887
 
 
4888
fi
 
4889
  CPP=$ac_cv_prog_CPP
 
4890
else
 
4891
  ac_cv_prog_CPP=$CPP
 
4892
fi
 
4893
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4894
echo "${ECHO_T}$CPP" >&6; }
 
4895
ac_preproc_ok=false
 
4896
for ac_c_preproc_warn_flag in '' yes
 
4897
do
 
4898
  # Use a header file that comes with gcc, so configuring glibc
 
4899
  # with a fresh cross-compiler works.
 
4900
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4901
  # <limits.h> exists even on freestanding compilers.
 
4902
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4903
  # not just through cpp. "Syntax error" is here to catch this case.
 
4904
  cat >conftest.$ac_ext <<_ACEOF
 
4905
/* confdefs.h.  */
 
4906
_ACEOF
 
4907
cat confdefs.h >>conftest.$ac_ext
 
4908
cat >>conftest.$ac_ext <<_ACEOF
 
4909
/* end confdefs.h.  */
 
4910
#ifdef __STDC__
 
4911
# include <limits.h>
 
4912
#else
 
4913
# include <assert.h>
 
4914
#endif
 
4915
                     Syntax error
 
4916
_ACEOF
 
4917
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4918
case "(($ac_try" in
 
4919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4920
  *) ac_try_echo=$ac_try;;
 
4921
esac
 
4922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4923
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4924
  ac_status=$?
 
4925
  grep -v '^ *+' conftest.er1 >conftest.err
 
4926
  rm -f conftest.er1
 
4927
  cat conftest.err >&5
 
4928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4929
  (exit $ac_status); } >/dev/null && {
 
4930
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4931
         test ! -s conftest.err
 
4932
       }; then
 
4933
  :
 
4934
else
 
4935
  echo "$as_me: failed program was:" >&5
 
4936
sed 's/^/| /' conftest.$ac_ext >&5
 
4937
 
 
4938
  # Broken: fails on valid input.
 
4939
continue
 
4940
fi
 
4941
 
 
4942
rm -f conftest.err conftest.$ac_ext
 
4943
 
 
4944
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4945
  # can be detected and how.
 
4946
  cat >conftest.$ac_ext <<_ACEOF
 
4947
/* confdefs.h.  */
 
4948
_ACEOF
 
4949
cat confdefs.h >>conftest.$ac_ext
 
4950
cat >>conftest.$ac_ext <<_ACEOF
 
4951
/* end confdefs.h.  */
 
4952
#include <ac_nonexistent.h>
 
4953
_ACEOF
 
4954
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4955
case "(($ac_try" in
 
4956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4957
  *) ac_try_echo=$ac_try;;
 
4958
esac
 
4959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4960
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4961
  ac_status=$?
 
4962
  grep -v '^ *+' conftest.er1 >conftest.err
 
4963
  rm -f conftest.er1
 
4964
  cat conftest.err >&5
 
4965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4966
  (exit $ac_status); } >/dev/null && {
 
4967
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4968
         test ! -s conftest.err
 
4969
       }; then
 
4970
  # Broken: success on invalid input.
 
4971
continue
 
4972
else
 
4973
  echo "$as_me: failed program was:" >&5
 
4974
sed 's/^/| /' conftest.$ac_ext >&5
 
4975
 
 
4976
  # Passes both tests.
 
4977
ac_preproc_ok=:
 
4978
break
 
4979
fi
 
4980
 
 
4981
rm -f conftest.err conftest.$ac_ext
 
4982
 
 
4983
done
 
4984
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4985
rm -f conftest.err conftest.$ac_ext
 
4986
if $ac_preproc_ok; then
 
4987
  :
 
4988
else
 
4989
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4990
See \`config.log' for more details." >&5
 
4991
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4992
See \`config.log' for more details." >&2;}
 
4993
   { (exit 1); exit 1; }; }
 
4994
fi
 
4995
 
 
4996
ac_ext=c
 
4997
ac_cpp='$CPP $CPPFLAGS'
 
4998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5001
 
 
5002
 
 
5003
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5004
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5005
if test "${ac_cv_header_stdc+set}" = set; then
 
5006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5007
else
 
5008
  cat >conftest.$ac_ext <<_ACEOF
 
5009
/* confdefs.h.  */
 
5010
_ACEOF
 
5011
cat confdefs.h >>conftest.$ac_ext
 
5012
cat >>conftest.$ac_ext <<_ACEOF
 
5013
/* end confdefs.h.  */
 
5014
#include <stdlib.h>
 
5015
#include <stdarg.h>
 
5016
#include <string.h>
 
5017
#include <float.h>
 
5018
 
 
5019
int
 
5020
main ()
 
5021
{
 
5022
 
 
5023
  ;
 
5024
  return 0;
 
5025
}
 
5026
_ACEOF
 
5027
rm -f conftest.$ac_objext
 
5028
if { (ac_try="$ac_compile"
 
5029
case "(($ac_try" in
 
5030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5031
  *) ac_try_echo=$ac_try;;
 
5032
esac
 
5033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5034
  (eval "$ac_compile") 2>conftest.er1
 
5035
  ac_status=$?
 
5036
  grep -v '^ *+' conftest.er1 >conftest.err
 
5037
  rm -f conftest.er1
 
5038
  cat conftest.err >&5
 
5039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5040
  (exit $ac_status); } && {
 
5041
         test -z "$ac_c_werror_flag" ||
 
5042
         test ! -s conftest.err
 
5043
       } && test -s conftest.$ac_objext; then
 
5044
  ac_cv_header_stdc=yes
 
5045
else
 
5046
  echo "$as_me: failed program was:" >&5
 
5047
sed 's/^/| /' conftest.$ac_ext >&5
 
5048
 
 
5049
        ac_cv_header_stdc=no
 
5050
fi
 
5051
 
 
5052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5053
 
 
5054
if test $ac_cv_header_stdc = yes; then
 
5055
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5056
  cat >conftest.$ac_ext <<_ACEOF
 
5057
/* confdefs.h.  */
 
5058
_ACEOF
 
5059
cat confdefs.h >>conftest.$ac_ext
 
5060
cat >>conftest.$ac_ext <<_ACEOF
 
5061
/* end confdefs.h.  */
 
5062
#include <string.h>
 
5063
 
 
5064
_ACEOF
 
5065
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5066
  $EGREP "memchr" >/dev/null 2>&1; then
 
5067
  :
 
5068
else
 
5069
  ac_cv_header_stdc=no
 
5070
fi
 
5071
rm -f conftest*
 
5072
 
 
5073
fi
 
5074
 
 
5075
if test $ac_cv_header_stdc = yes; then
 
5076
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5077
  cat >conftest.$ac_ext <<_ACEOF
 
5078
/* confdefs.h.  */
 
5079
_ACEOF
 
5080
cat confdefs.h >>conftest.$ac_ext
 
5081
cat >>conftest.$ac_ext <<_ACEOF
 
5082
/* end confdefs.h.  */
 
5083
#include <stdlib.h>
 
5084
 
 
5085
_ACEOF
 
5086
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5087
  $EGREP "free" >/dev/null 2>&1; then
 
5088
  :
 
5089
else
 
5090
  ac_cv_header_stdc=no
 
5091
fi
 
5092
rm -f conftest*
 
5093
 
 
5094
fi
 
5095
 
 
5096
if test $ac_cv_header_stdc = yes; then
 
5097
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5098
  if test "$cross_compiling" = yes; then
 
5099
  :
 
5100
else
 
5101
  cat >conftest.$ac_ext <<_ACEOF
 
5102
/* confdefs.h.  */
 
5103
_ACEOF
 
5104
cat confdefs.h >>conftest.$ac_ext
 
5105
cat >>conftest.$ac_ext <<_ACEOF
 
5106
/* end confdefs.h.  */
 
5107
#include <ctype.h>
 
5108
#include <stdlib.h>
 
5109
#if ((' ' & 0x0FF) == 0x020)
 
5110
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5111
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5112
#else
 
5113
# define ISLOWER(c) \
 
5114
                   (('a' <= (c) && (c) <= 'i') \
 
5115
                     || ('j' <= (c) && (c) <= 'r') \
 
5116
                     || ('s' <= (c) && (c) <= 'z'))
 
5117
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5118
#endif
 
5119
 
 
5120
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5121
int
 
5122
main ()
 
5123
{
 
5124
  int i;
 
5125
  for (i = 0; i < 256; i++)
 
5126
    if (XOR (islower (i), ISLOWER (i))
 
5127
        || toupper (i) != TOUPPER (i))
 
5128
      return 2;
 
5129
  return 0;
 
5130
}
 
5131
_ACEOF
 
5132
rm -f conftest$ac_exeext
 
5133
if { (ac_try="$ac_link"
 
5134
case "(($ac_try" in
 
5135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5136
  *) ac_try_echo=$ac_try;;
 
5137
esac
 
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5139
  (eval "$ac_link") 2>&5
 
5140
  ac_status=$?
 
5141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5142
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5143
  { (case "(($ac_try" in
 
5144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5145
  *) ac_try_echo=$ac_try;;
 
5146
esac
 
5147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5148
  (eval "$ac_try") 2>&5
 
5149
  ac_status=$?
 
5150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5151
  (exit $ac_status); }; }; then
 
5152
  :
 
5153
else
 
5154
  echo "$as_me: program exited with status $ac_status" >&5
 
5155
echo "$as_me: failed program was:" >&5
 
5156
sed 's/^/| /' conftest.$ac_ext >&5
 
5157
 
 
5158
( exit $ac_status )
 
5159
ac_cv_header_stdc=no
 
5160
fi
 
5161
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5162
fi
 
5163
 
 
5164
 
 
5165
fi
 
5166
fi
 
5167
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5168
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5169
if test $ac_cv_header_stdc = yes; then
 
5170
 
 
5171
cat >>confdefs.h <<\_ACEOF
 
5172
#define STDC_HEADERS 1
 
5173
_ACEOF
 
5174
 
 
5175
fi
 
5176
 
 
5177
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
 
 
5187
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5188
                  inttypes.h stdint.h unistd.h
 
5189
do
 
5190
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5191
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5192
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5193
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5195
else
 
5196
  cat >conftest.$ac_ext <<_ACEOF
 
5197
/* confdefs.h.  */
 
5198
_ACEOF
 
5199
cat confdefs.h >>conftest.$ac_ext
 
5200
cat >>conftest.$ac_ext <<_ACEOF
 
5201
/* end confdefs.h.  */
 
5202
$ac_includes_default
 
5203
 
 
5204
#include <$ac_header>
 
5205
_ACEOF
 
5206
rm -f conftest.$ac_objext
 
5207
if { (ac_try="$ac_compile"
 
5208
case "(($ac_try" in
 
5209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5210
  *) ac_try_echo=$ac_try;;
 
5211
esac
 
5212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5213
  (eval "$ac_compile") 2>conftest.er1
 
5214
  ac_status=$?
 
5215
  grep -v '^ *+' conftest.er1 >conftest.err
 
5216
  rm -f conftest.er1
 
5217
  cat conftest.err >&5
 
5218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5219
  (exit $ac_status); } && {
 
5220
         test -z "$ac_c_werror_flag" ||
 
5221
         test ! -s conftest.err
 
5222
       } && test -s conftest.$ac_objext; then
 
5223
  eval "$as_ac_Header=yes"
 
5224
else
 
5225
  echo "$as_me: failed program was:" >&5
 
5226
sed 's/^/| /' conftest.$ac_ext >&5
 
5227
 
 
5228
        eval "$as_ac_Header=no"
 
5229
fi
 
5230
 
 
5231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5232
fi
 
5233
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5234
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5235
echo "${ECHO_T}$ac_res" >&6; }
 
5236
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5237
  cat >>confdefs.h <<_ACEOF
 
5238
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5239
_ACEOF
 
5240
 
 
5241
fi
 
5242
 
 
5243
done
 
5244
 
 
5245
 
 
5246
 
 
5247
for ac_header in dlfcn.h
 
5248
do
 
5249
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5250
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5251
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5255
fi
 
5256
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5257
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5258
echo "${ECHO_T}$ac_res" >&6; }
 
5259
else
 
5260
  # Is the header compilable?
 
5261
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5262
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5263
cat >conftest.$ac_ext <<_ACEOF
 
5264
/* confdefs.h.  */
 
5265
_ACEOF
 
5266
cat confdefs.h >>conftest.$ac_ext
 
5267
cat >>conftest.$ac_ext <<_ACEOF
 
5268
/* end confdefs.h.  */
 
5269
$ac_includes_default
 
5270
#include <$ac_header>
 
5271
_ACEOF
 
5272
rm -f conftest.$ac_objext
 
5273
if { (ac_try="$ac_compile"
 
5274
case "(($ac_try" in
 
5275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5276
  *) ac_try_echo=$ac_try;;
 
5277
esac
 
5278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5279
  (eval "$ac_compile") 2>conftest.er1
 
5280
  ac_status=$?
 
5281
  grep -v '^ *+' conftest.er1 >conftest.err
 
5282
  rm -f conftest.er1
 
5283
  cat conftest.err >&5
 
5284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5285
  (exit $ac_status); } && {
 
5286
         test -z "$ac_c_werror_flag" ||
 
5287
         test ! -s conftest.err
 
5288
       } && test -s conftest.$ac_objext; then
 
5289
  ac_header_compiler=yes
 
5290
else
 
5291
  echo "$as_me: failed program was:" >&5
 
5292
sed 's/^/| /' conftest.$ac_ext >&5
 
5293
 
 
5294
        ac_header_compiler=no
 
5295
fi
 
5296
 
 
5297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5298
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5299
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5300
 
 
5301
# Is the header present?
 
5302
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5304
cat >conftest.$ac_ext <<_ACEOF
 
5305
/* confdefs.h.  */
 
5306
_ACEOF
 
5307
cat confdefs.h >>conftest.$ac_ext
 
5308
cat >>conftest.$ac_ext <<_ACEOF
 
5309
/* end confdefs.h.  */
 
5310
#include <$ac_header>
 
5311
_ACEOF
 
5312
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5313
case "(($ac_try" in
 
5314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5315
  *) ac_try_echo=$ac_try;;
 
5316
esac
 
5317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5318
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5319
  ac_status=$?
 
5320
  grep -v '^ *+' conftest.er1 >conftest.err
 
5321
  rm -f conftest.er1
 
5322
  cat conftest.err >&5
 
5323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5324
  (exit $ac_status); } >/dev/null && {
 
5325
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5326
         test ! -s conftest.err
 
5327
       }; then
 
5328
  ac_header_preproc=yes
 
5329
else
 
5330
  echo "$as_me: failed program was:" >&5
 
5331
sed 's/^/| /' conftest.$ac_ext >&5
 
5332
 
 
5333
  ac_header_preproc=no
 
5334
fi
 
5335
 
 
5336
rm -f conftest.err conftest.$ac_ext
 
5337
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5338
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5339
 
 
5340
# So?  What about this header?
 
5341
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5342
  yes:no: )
 
5343
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5344
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5345
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5346
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5347
    ac_header_preproc=yes
 
5348
    ;;
 
5349
  no:yes:* )
 
5350
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5351
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5352
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5353
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5354
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5355
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5356
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5357
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5358
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5360
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5361
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5362
 
 
5363
    ;;
 
5364
esac
 
5365
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5366
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5367
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5369
else
 
5370
  eval "$as_ac_Header=\$ac_header_preproc"
 
5371
fi
 
5372
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5373
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5374
echo "${ECHO_T}$ac_res" >&6; }
 
5375
 
 
5376
fi
 
5377
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5378
  cat >>confdefs.h <<_ACEOF
 
5379
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5380
_ACEOF
 
5381
 
 
5382
fi
 
5383
 
 
5384
done
 
5385
 
 
5386
 
 
5387
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5388
# find the maximum length of command line arguments
 
5389
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5390
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
5391
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5393
else
 
5394
    i=0
 
5395
  teststring="ABCD"
 
5396
 
 
5397
  case $build_os in
 
5398
  msdosdjgpp*)
 
5399
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5400
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5401
    # during glob expansion).  Even if it were fixed, the result of this
 
5402
    # check would be larger than it should be.
 
5403
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5404
    ;;
 
5405
 
 
5406
  gnu*)
 
5407
    # Under GNU Hurd, this test is not required because there is
 
5408
    # no limit to the length of command line arguments.
 
5409
    # Libtool will interpret -1 as no limit whatsoever
 
5410
    lt_cv_sys_max_cmd_len=-1;
 
5411
    ;;
 
5412
 
 
5413
  cygwin* | mingw*)
 
5414
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5415
    # about 5 minutes as the teststring grows exponentially.
 
5416
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5417
    # you end up with a "frozen" computer, even though with patience
 
5418
    # the test eventually succeeds (with a max line length of 256k).
 
5419
    # Instead, let's just punt: use the minimum linelength reported by
 
5420
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5421
    lt_cv_sys_max_cmd_len=8192;
 
5422
    ;;
 
5423
 
 
5424
  amigaos*)
 
5425
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5426
    # So we just punt and use a minimum line length of 8192.
 
5427
    lt_cv_sys_max_cmd_len=8192;
 
5428
    ;;
 
5429
 
 
5430
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5431
    # This has been around since 386BSD, at least.  Likely further.
 
5432
    if test -x /sbin/sysctl; then
 
5433
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5434
    elif test -x /usr/sbin/sysctl; then
 
5435
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5436
    else
 
5437
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5438
    fi
 
5439
    # And add a safety zone
 
5440
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5441
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5442
    ;;
 
5443
 
 
5444
  interix*)
 
5445
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5446
    lt_cv_sys_max_cmd_len=196608
 
5447
    ;;
 
5448
 
 
5449
  osf*)
 
5450
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5451
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5452
    # nice to cause kernel panics so lets avoid the loop below.
 
5453
    # First set a reasonable default.
 
5454
    lt_cv_sys_max_cmd_len=16384
 
5455
    #
 
5456
    if test -x /sbin/sysconfig; then
 
5457
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5458
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5459
      esac
 
5460
    fi
 
5461
    ;;
 
5462
  sco3.2v5*)
 
5463
    lt_cv_sys_max_cmd_len=102400
 
5464
    ;;
 
5465
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5466
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5467
    if test -n "$kargmax"; then
 
5468
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5469
    else
 
5470
      lt_cv_sys_max_cmd_len=32768
 
5471
    fi
 
5472
    ;;
 
5473
  *)
 
5474
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5475
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5476
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5477
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5478
    else
 
5479
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5480
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5481
               = "XX$teststring") >/dev/null 2>&1 &&
 
5482
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5483
              lt_cv_sys_max_cmd_len=$new_result &&
 
5484
              test $i != 17 # 1/2 MB should be enough
 
5485
      do
 
5486
        i=`expr $i + 1`
 
5487
        teststring=$teststring$teststring
 
5488
      done
 
5489
      teststring=
 
5490
      # Add a significant safety factor because C++ compilers can tack on massive
 
5491
      # amounts of additional arguments before passing them to the linker.
 
5492
      # It appears as though 1/2 is a usable value.
 
5493
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5494
    fi
 
5495
    ;;
 
5496
  esac
 
5497
 
 
5498
fi
 
5499
 
 
5500
if test -n $lt_cv_sys_max_cmd_len ; then
 
5501
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5502
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
5503
else
 
5504
  { echo "$as_me:$LINENO: result: none" >&5
 
5505
echo "${ECHO_T}none" >&6; }
 
5506
fi
 
5507
 
 
5508
 
 
5509
 
 
5510
 
 
5511
 
5112
5512
# Check for command to grab the raw symbol name followed by C symbol from nm.
5113
5513
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5114
5514
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5125
5525
# Regexp to match symbols that can be accessed directly from C.
5126
5526
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5127
5527
 
 
5528
# Transform an extracted symbol line into a proper C declaration
 
5529
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5530
 
 
5531
# Transform an extracted symbol line into symbol name and symbol address
 
5532
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5533
 
5128
5534
# Define system-specific variables.
5129
5535
case $host_os in
5130
5536
aix*)
5133
5539
cygwin* | mingw* | pw32*)
5134
5540
  symcode='[ABCDGISTW]'
5135
5541
  ;;
5136
 
hpux*)
 
5542
hpux*) # Its linker distinguishes data from code symbols
5137
5543
  if test "$host_cpu" = ia64; then
5138
5544
    symcode='[ABCDEGRST]'
5139
5545
  fi
 
5546
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5547
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5548
  ;;
 
5549
linux* | k*bsd*-gnu)
 
5550
  if test "$host_cpu" = ia64; then
 
5551
    symcode='[ABCDGIRSTW]'
 
5552
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5553
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5554
  fi
5140
5555
  ;;
5141
5556
irix* | nonstopux*)
5142
5557
  symcode='[BCDEGRST]'
5161
5576
  ;;
5162
5577
esac
5163
5578
 
5164
 
# If we're using GNU nm, then use its standard symbol codes.
5165
 
case `$NM -V 2>&1` in
5166
 
*GNU* | *'with BFD'*)
5167
 
  symcode='[ABCDGIRSTW]' ;;
5168
 
esac
5169
 
 
5170
 
# Transform an extracted symbol line into a proper C declaration.
5171
 
# Some systems (esp. on ia64) link data and code symbols differently,
5172
 
# so use this general approach.
5173
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5174
 
 
5175
 
# Transform an extracted symbol line into symbol name and symbol address
5176
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5177
 
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'"
5178
 
 
5179
5579
# Handle CRLF in mingw tool chain
5180
5580
opt_cr=
5181
5581
case $build_os in
5182
5582
mingw*)
5183
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5583
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5184
5584
  ;;
5185
5585
esac
5186
5586
 
5187
 
# Try without a prefix underscore, then with it.
 
5587
# If we're using GNU nm, then use its standard symbol codes.
 
5588
case `$NM -V 2>&1` in
 
5589
*GNU* | *'with BFD'*)
 
5590
  symcode='[ABCDGIRSTW]' ;;
 
5591
esac
 
5592
 
 
5593
# Try without a prefix undercore, then with it.
5188
5594
for ac_symprfx in "" "_"; do
5189
5595
 
5190
5596
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5191
5597
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5192
5598
 
5193
5599
  # Write the raw and C identifiers.
5194
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5195
 
    # Fake it for dumpbin and say T for any non-static function
5196
 
    # and D for any global variable.
5197
 
    # Also find C++ and __fastcall symbols from MSVC++,
5198
 
    # which start with @ or ?.
5199
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5200
 
"     {last_section=section; section=\$ 3};"\
5201
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5202
 
"     \$ 0!~/External *\|/{next};"\
5203
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5204
 
"     {if(hide[section]) next};"\
5205
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5206
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5207
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5208
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5209
 
"     ' prfx=^$ac_symprfx"
5210
 
  else
5211
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5212
 
  fi
 
5600
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5213
5601
 
5214
5602
  # Check to see that the pipe works correctly.
5215
5603
  pipe_works=no
5216
5604
 
5217
5605
  rm -f conftest*
5218
 
  cat > conftest.$ac_ext <<_LT_EOF
 
5606
  cat > conftest.$ac_ext <<EOF
5219
5607
#ifdef __cplusplus
5220
5608
extern "C" {
5221
5609
#endif
5222
5610
char nm_test_var;
5223
 
void nm_test_func(void);
5224
 
void nm_test_func(void){}
 
5611
void nm_test_func(){}
5225
5612
#ifdef __cplusplus
5226
5613
}
5227
5614
#endif
5228
5615
int main(){nm_test_var='a';nm_test_func();return(0);}
5229
 
_LT_EOF
 
5616
EOF
5230
5617
 
5231
5618
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232
5619
  (eval $ac_compile) 2>&5
5248
5635
      fi
5249
5636
 
5250
5637
      # Make sure that we snagged all the symbols we need.
5251
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5252
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5253
 
          cat <<_LT_EOF > conftest.$ac_ext
 
5638
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5639
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5640
          cat <<EOF > conftest.$ac_ext
5254
5641
#ifdef __cplusplus
5255
5642
extern "C" {
5256
5643
#endif
5257
5644
 
5258
 
_LT_EOF
 
5645
EOF
5259
5646
          # Now generate the symbol file.
5260
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5261
 
 
5262
 
          cat <<_LT_EOF >> conftest.$ac_ext
5263
 
 
5264
 
/* The mapping between symbol names and symbols.  */
 
5647
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5648
 
 
5649
          cat <<EOF >> conftest.$ac_ext
 
5650
#if defined (__STDC__) && __STDC__
 
5651
# define lt_ptr_t void *
 
5652
#else
 
5653
# define lt_ptr_t char *
 
5654
# define const
 
5655
#endif
 
5656
 
 
5657
/* The mapping between symbol names and symbols. */
5265
5658
const struct {
5266
5659
  const char *name;
5267
 
  void       *address;
 
5660
  lt_ptr_t address;
5268
5661
}
5269
 
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5662
lt_preloaded_symbols[] =
5270
5663
{
5271
 
  { "@PROGRAM@", (void *) 0 },
5272
 
_LT_EOF
5273
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5274
 
          cat <<\_LT_EOF >> conftest.$ac_ext
5275
 
  {0, (void *) 0}
 
5664
EOF
 
5665
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5666
          cat <<\EOF >> conftest.$ac_ext
 
5667
  {0, (lt_ptr_t) 0}
5276
5668
};
5277
5669
 
5278
 
/* This works around a problem in FreeBSD linker */
5279
 
#ifdef FREEBSD_WORKAROUND
5280
 
static const void *lt_preloaded_setup() {
5281
 
  return lt__PROGRAM__LTX_preloaded_symbols;
5282
 
}
5283
 
#endif
5284
 
 
5285
5670
#ifdef __cplusplus
5286
5671
}
5287
5672
#endif
5288
 
_LT_EOF
 
5673
EOF
5289
5674
          # Now try linking the two files.
5290
5675
          mv conftest.$ac_objext conftstm.$ac_objext
5291
5676
          lt_save_LIBS="$LIBS"
5337
5722
echo "${ECHO_T}ok" >&6; }
5338
5723
fi
5339
5724
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
# Check whether --enable-libtool-lock was given.
5363
 
if test "${enable_libtool_lock+set}" = set; then
5364
 
  enableval=$enable_libtool_lock;
5365
 
fi
5366
 
 
5367
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5368
 
 
5369
 
# Some flags need to be propagated to the compiler or linker for good
5370
 
# libtool support.
5371
 
case $host in
5372
 
ia64-*-hpux*)
5373
 
  # Find out which ABI we are using.
5374
 
  echo 'int i;' > conftest.$ac_ext
5375
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5376
 
  (eval $ac_compile) 2>&5
5377
 
  ac_status=$?
5378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379
 
  (exit $ac_status); }; then
5380
 
    case `/usr/bin/file conftest.$ac_objext` in
5381
 
      *ELF-32*)
5382
 
        HPUX_IA64_MODE="32"
5383
 
        ;;
5384
 
      *ELF-64*)
5385
 
        HPUX_IA64_MODE="64"
5386
 
        ;;
5387
 
    esac
5388
 
  fi
5389
 
  rm -rf conftest*
5390
 
  ;;
5391
 
*-*-irix6*)
5392
 
  # Find out which ABI we are using.
5393
 
  echo '#line 5393 "configure"' > conftest.$ac_ext
5394
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395
 
  (eval $ac_compile) 2>&5
5396
 
  ac_status=$?
5397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
 
  (exit $ac_status); }; then
5399
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
5400
 
      case `/usr/bin/file conftest.$ac_objext` in
5401
 
        *32-bit*)
5402
 
          LD="${LD-ld} -melf32bsmip"
5403
 
          ;;
5404
 
        *N32*)
5405
 
          LD="${LD-ld} -melf32bmipn32"
5406
 
          ;;
5407
 
        *64-bit*)
5408
 
          LD="${LD-ld} -melf64bmip"
5409
 
        ;;
5410
 
      esac
5411
 
    else
5412
 
      case `/usr/bin/file conftest.$ac_objext` in
5413
 
        *32-bit*)
5414
 
          LD="${LD-ld} -32"
5415
 
          ;;
5416
 
        *N32*)
5417
 
          LD="${LD-ld} -n32"
5418
 
          ;;
5419
 
        *64-bit*)
5420
 
          LD="${LD-ld} -64"
5421
 
          ;;
5422
 
      esac
5423
 
    fi
5424
 
  fi
5425
 
  rm -rf conftest*
5426
 
  ;;
5427
 
 
5428
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5429
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5430
 
  # Find out which ABI we are using.
5431
 
  echo 'int i;' > conftest.$ac_ext
5432
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433
 
  (eval $ac_compile) 2>&5
5434
 
  ac_status=$?
5435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
 
  (exit $ac_status); }; then
5437
 
    case `/usr/bin/file conftest.o` in
5438
 
      *32-bit*)
5439
 
        case $host in
5440
 
          x86_64-*kfreebsd*-gnu)
5441
 
            LD="${LD-ld} -m elf_i386_fbsd"
5442
 
            ;;
5443
 
          x86_64-*linux*)
5444
 
            LD="${LD-ld} -m elf_i386"
5445
 
            ;;
5446
 
          ppc64-*linux*|powerpc64-*linux*)
5447
 
            LD="${LD-ld} -m elf32ppclinux"
5448
 
            ;;
5449
 
          s390x-*linux*)
5450
 
            LD="${LD-ld} -m elf_s390"
5451
 
            ;;
5452
 
          sparc64-*linux*)
5453
 
            LD="${LD-ld} -m elf32_sparc"
5454
 
            ;;
5455
 
        esac
5456
 
        ;;
5457
 
      *64-bit*)
5458
 
        case $host in
5459
 
          x86_64-*kfreebsd*-gnu)
5460
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
5461
 
            ;;
5462
 
          x86_64-*linux*)
5463
 
            LD="${LD-ld} -m elf_x86_64"
5464
 
            ;;
5465
 
          ppc*-*linux*|powerpc*-*linux*)
5466
 
            LD="${LD-ld} -m elf64ppc"
5467
 
            ;;
5468
 
          s390*-*linux*|s390*-*tpf*)
5469
 
            LD="${LD-ld} -m elf64_s390"
5470
 
            ;;
5471
 
          sparc*-*linux*)
5472
 
            LD="${LD-ld} -m elf64_sparc"
5473
 
            ;;
5474
 
        esac
5475
 
        ;;
5476
 
    esac
5477
 
  fi
5478
 
  rm -rf conftest*
5479
 
  ;;
5480
 
 
5481
 
*-*-sco3.2v5*)
5482
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5483
 
  SAVE_CFLAGS="$CFLAGS"
5484
 
  CFLAGS="$CFLAGS -belf"
5485
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5486
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5487
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5488
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5489
 
else
5490
 
  ac_ext=c
5491
 
ac_cpp='$CPP $CPPFLAGS'
5492
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495
 
 
5496
 
     cat >conftest.$ac_ext <<_ACEOF
5497
 
/* confdefs.h.  */
5498
 
_ACEOF
5499
 
cat confdefs.h >>conftest.$ac_ext
5500
 
cat >>conftest.$ac_ext <<_ACEOF
5501
 
/* end confdefs.h.  */
5502
 
 
5503
 
int
5504
 
main ()
5505
 
{
5506
 
 
5507
 
  ;
5508
 
  return 0;
5509
 
}
5510
 
_ACEOF
5511
 
rm -f conftest.$ac_objext conftest$ac_exeext
5512
 
if { (ac_try="$ac_link"
5513
 
case "(($ac_try" in
5514
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515
 
  *) ac_try_echo=$ac_try;;
5516
 
esac
5517
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518
 
  (eval "$ac_link") 2>conftest.er1
5519
 
  ac_status=$?
5520
 
  grep -v '^ *+' conftest.er1 >conftest.err
5521
 
  rm -f conftest.er1
5522
 
  cat conftest.err >&5
5523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524
 
  (exit $ac_status); } && {
5525
 
         test -z "$ac_c_werror_flag" ||
5526
 
         test ! -s conftest.err
5527
 
       } && test -s conftest$ac_exeext &&
5528
 
       $as_test_x conftest$ac_exeext; then
5529
 
  lt_cv_cc_needs_belf=yes
5530
 
else
5531
 
  echo "$as_me: failed program was:" >&5
5532
 
sed 's/^/| /' conftest.$ac_ext >&5
5533
 
 
5534
 
        lt_cv_cc_needs_belf=no
5535
 
fi
5536
 
 
5537
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5538
 
      conftest$ac_exeext conftest.$ac_ext
5539
 
     ac_ext=c
5540
 
ac_cpp='$CPP $CPPFLAGS'
5541
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
 
 
5545
 
fi
5546
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5547
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5548
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5549
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5550
 
    CFLAGS="$SAVE_CFLAGS"
5551
 
  fi
5552
 
  ;;
5553
 
sparc*-*solaris*)
5554
 
  # Find out which ABI we are using.
5555
 
  echo 'int i;' > conftest.$ac_ext
5556
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557
 
  (eval $ac_compile) 2>&5
5558
 
  ac_status=$?
5559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
 
  (exit $ac_status); }; then
5561
 
    case `/usr/bin/file conftest.o` in
5562
 
    *64-bit*)
5563
 
      case $lt_cv_prog_gnu_ld in
5564
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5565
 
      *)
5566
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5567
 
          LD="${LD-ld} -64"
5568
 
        fi
5569
 
        ;;
5570
 
      esac
5571
 
      ;;
5572
 
    esac
5573
 
  fi
5574
 
  rm -rf conftest*
5575
 
  ;;
5576
 
esac
5577
 
 
5578
 
need_locks="$enable_libtool_lock"
 
5725
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
5726
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
5727
if test "${lt_cv_objdir+set}" = set; then
 
5728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5729
else
 
5730
  rm -f .libs 2>/dev/null
 
5731
mkdir .libs 2>/dev/null
 
5732
if test -d .libs; then
 
5733
  lt_cv_objdir=.libs
 
5734
else
 
5735
  # MS-DOS does not allow filenames that begin with a dot.
 
5736
  lt_cv_objdir=_libs
 
5737
fi
 
5738
rmdir .libs 2>/dev/null
 
5739
fi
 
5740
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5741
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
5742
objdir=$lt_cv_objdir
 
5743
 
 
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
case $host_os in
 
5749
aix3*)
 
5750
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5751
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5752
  # vanish in a puff of smoke.
 
5753
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5754
    COLLECT_NAMES=
 
5755
    export COLLECT_NAMES
 
5756
  fi
 
5757
  ;;
 
5758
esac
 
5759
 
 
5760
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5761
# metacharacters that are still active within double-quoted strings.
 
5762
Xsed='sed -e 1s/^X//'
 
5763
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5764
 
 
5765
# Same as above, but do not quote variable references.
 
5766
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5767
 
 
5768
# Sed substitution to delay expansion of an escaped shell variable in a
 
5769
# double_quote_subst'ed string.
 
5770
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5771
 
 
5772
# Sed substitution to avoid accidental globbing in evaled expressions
 
5773
no_glob_subst='s/\*/\\\*/g'
 
5774
 
 
5775
# Constants:
 
5776
rm="rm -f"
 
5777
 
 
5778
# Global variables:
 
5779
default_ofile=libtool
 
5780
can_build_shared=yes
 
5781
 
 
5782
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5783
# which needs '.lib').
 
5784
libext=a
 
5785
ltmain="$ac_aux_dir/ltmain.sh"
 
5786
ofile="$default_ofile"
 
5787
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5788
 
 
5789
if test -n "$ac_tool_prefix"; then
 
5790
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5791
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5792
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5794
if test "${ac_cv_prog_AR+set}" = set; then
 
5795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5796
else
 
5797
  if test -n "$AR"; then
 
5798
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5799
else
 
5800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5801
for as_dir in $PATH
 
5802
do
 
5803
  IFS=$as_save_IFS
 
5804
  test -z "$as_dir" && as_dir=.
 
5805
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5806
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5807
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5809
    break 2
 
5810
  fi
 
5811
done
 
5812
done
 
5813
IFS=$as_save_IFS
 
5814
 
 
5815
fi
 
5816
fi
 
5817
AR=$ac_cv_prog_AR
 
5818
if test -n "$AR"; then
 
5819
  { echo "$as_me:$LINENO: result: $AR" >&5
 
5820
echo "${ECHO_T}$AR" >&6; }
 
5821
else
 
5822
  { echo "$as_me:$LINENO: result: no" >&5
 
5823
echo "${ECHO_T}no" >&6; }
 
5824
fi
 
5825
 
 
5826
 
 
5827
fi
 
5828
if test -z "$ac_cv_prog_AR"; then
 
5829
  ac_ct_AR=$AR
 
5830
  # Extract the first word of "ar", so it can be a program name with args.
 
5831
set dummy ar; ac_word=$2
 
5832
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5834
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5836
else
 
5837
  if test -n "$ac_ct_AR"; then
 
5838
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5839
else
 
5840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5841
for as_dir in $PATH
 
5842
do
 
5843
  IFS=$as_save_IFS
 
5844
  test -z "$as_dir" && as_dir=.
 
5845
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5846
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5847
    ac_cv_prog_ac_ct_AR="ar"
 
5848
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5849
    break 2
 
5850
  fi
 
5851
done
 
5852
done
 
5853
IFS=$as_save_IFS
 
5854
 
 
5855
fi
 
5856
fi
 
5857
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5858
if test -n "$ac_ct_AR"; then
 
5859
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5860
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
5861
else
 
5862
  { echo "$as_me:$LINENO: result: no" >&5
 
5863
echo "${ECHO_T}no" >&6; }
 
5864
fi
 
5865
 
 
5866
  if test "x$ac_ct_AR" = x; then
 
5867
    AR="false"
 
5868
  else
 
5869
    case $cross_compiling:$ac_tool_warned in
 
5870
yes:)
 
5871
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5872
whose name does not start with the host triplet.  If you think this
 
5873
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5874
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5875
whose name does not start with the host triplet.  If you think this
 
5876
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5877
ac_tool_warned=yes ;;
 
5878
esac
 
5879
    AR=$ac_ct_AR
 
5880
  fi
 
5881
else
 
5882
  AR="$ac_cv_prog_AR"
 
5883
fi
 
5884
 
 
5885
if test -n "$ac_tool_prefix"; then
 
5886
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5887
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5888
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5889
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5890
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5892
else
 
5893
  if test -n "$RANLIB"; then
 
5894
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5895
else
 
5896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5897
for as_dir in $PATH
 
5898
do
 
5899
  IFS=$as_save_IFS
 
5900
  test -z "$as_dir" && as_dir=.
 
5901
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5902
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5903
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5904
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5905
    break 2
 
5906
  fi
 
5907
done
 
5908
done
 
5909
IFS=$as_save_IFS
 
5910
 
 
5911
fi
 
5912
fi
 
5913
RANLIB=$ac_cv_prog_RANLIB
 
5914
if test -n "$RANLIB"; then
 
5915
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5916
echo "${ECHO_T}$RANLIB" >&6; }
 
5917
else
 
5918
  { echo "$as_me:$LINENO: result: no" >&5
 
5919
echo "${ECHO_T}no" >&6; }
 
5920
fi
 
5921
 
 
5922
 
 
5923
fi
 
5924
if test -z "$ac_cv_prog_RANLIB"; then
 
5925
  ac_ct_RANLIB=$RANLIB
 
5926
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5927
set dummy ranlib; ac_word=$2
 
5928
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5930
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5932
else
 
5933
  if test -n "$ac_ct_RANLIB"; then
 
5934
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5935
else
 
5936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5937
for as_dir in $PATH
 
5938
do
 
5939
  IFS=$as_save_IFS
 
5940
  test -z "$as_dir" && as_dir=.
 
5941
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5943
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5944
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5945
    break 2
 
5946
  fi
 
5947
done
 
5948
done
 
5949
IFS=$as_save_IFS
 
5950
 
 
5951
fi
 
5952
fi
 
5953
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5954
if test -n "$ac_ct_RANLIB"; then
 
5955
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5956
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
5957
else
 
5958
  { echo "$as_me:$LINENO: result: no" >&5
 
5959
echo "${ECHO_T}no" >&6; }
 
5960
fi
 
5961
 
 
5962
  if test "x$ac_ct_RANLIB" = x; then
 
5963
    RANLIB=":"
 
5964
  else
 
5965
    case $cross_compiling:$ac_tool_warned in
 
5966
yes:)
 
5967
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5968
whose name does not start with the host triplet.  If you think this
 
5969
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5970
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5971
whose name does not start with the host triplet.  If you think this
 
5972
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5973
ac_tool_warned=yes ;;
 
5974
esac
 
5975
    RANLIB=$ac_ct_RANLIB
 
5976
  fi
 
5977
else
 
5978
  RANLIB="$ac_cv_prog_RANLIB"
 
5979
fi
 
5980
 
 
5981
if test -n "$ac_tool_prefix"; then
 
5982
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5983
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5984
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5986
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5988
else
 
5989
  if test -n "$STRIP"; then
 
5990
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5991
else
 
5992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5993
for as_dir in $PATH
 
5994
do
 
5995
  IFS=$as_save_IFS
 
5996
  test -z "$as_dir" && as_dir=.
 
5997
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5998
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5999
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6000
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6001
    break 2
 
6002
  fi
 
6003
done
 
6004
done
 
6005
IFS=$as_save_IFS
 
6006
 
 
6007
fi
 
6008
fi
 
6009
STRIP=$ac_cv_prog_STRIP
 
6010
if test -n "$STRIP"; then
 
6011
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6012
echo "${ECHO_T}$STRIP" >&6; }
 
6013
else
 
6014
  { echo "$as_me:$LINENO: result: no" >&5
 
6015
echo "${ECHO_T}no" >&6; }
 
6016
fi
 
6017
 
 
6018
 
 
6019
fi
 
6020
if test -z "$ac_cv_prog_STRIP"; then
 
6021
  ac_ct_STRIP=$STRIP
 
6022
  # Extract the first word of "strip", so it can be a program name with args.
 
6023
set dummy strip; ac_word=$2
 
6024
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6026
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6028
else
 
6029
  if test -n "$ac_ct_STRIP"; then
 
6030
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6031
else
 
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6033
for as_dir in $PATH
 
6034
do
 
6035
  IFS=$as_save_IFS
 
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_ac_ct_STRIP="strip"
 
6040
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6041
    break 2
 
6042
  fi
 
6043
done
 
6044
done
 
6045
IFS=$as_save_IFS
 
6046
 
 
6047
fi
 
6048
fi
 
6049
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6050
if test -n "$ac_ct_STRIP"; then
 
6051
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6052
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6053
else
 
6054
  { echo "$as_me:$LINENO: result: no" >&5
 
6055
echo "${ECHO_T}no" >&6; }
 
6056
fi
 
6057
 
 
6058
  if test "x$ac_ct_STRIP" = x; then
 
6059
    STRIP=":"
 
6060
  else
 
6061
    case $cross_compiling:$ac_tool_warned in
 
6062
yes:)
 
6063
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6064
whose name does not start with the host triplet.  If you think this
 
6065
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6066
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6067
whose name does not start with the host triplet.  If you think this
 
6068
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6069
ac_tool_warned=yes ;;
 
6070
esac
 
6071
    STRIP=$ac_ct_STRIP
 
6072
  fi
 
6073
else
 
6074
  STRIP="$ac_cv_prog_STRIP"
 
6075
fi
 
6076
 
 
6077
 
 
6078
old_CC="$CC"
 
6079
old_CFLAGS="$CFLAGS"
 
6080
 
 
6081
# Set sane defaults for various variables
 
6082
test -z "$AR" && AR=ar
 
6083
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6084
test -z "$AS" && AS=as
 
6085
test -z "$CC" && CC=cc
 
6086
test -z "$LTCC" && LTCC=$CC
 
6087
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6088
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6089
test -z "$LD" && LD=ld
 
6090
test -z "$LN_S" && LN_S="ln -s"
 
6091
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6092
test -z "$NM" && NM=nm
 
6093
test -z "$SED" && SED=sed
 
6094
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6095
test -z "$RANLIB" && RANLIB=:
 
6096
test -z "$STRIP" && STRIP=:
 
6097
test -z "$ac_objext" && ac_objext=o
 
6098
 
 
6099
# Determine commands to create old-style static archives.
 
6100
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6101
old_postinstall_cmds='chmod 644 $oldlib'
 
6102
old_postuninstall_cmds=
 
6103
 
 
6104
if test -n "$RANLIB"; then
 
6105
  case $host_os in
 
6106
  openbsd*)
 
6107
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6108
    ;;
 
6109
  *)
 
6110
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6111
    ;;
 
6112
  esac
 
6113
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6114
fi
 
6115
 
 
6116
for cc_temp in $compiler""; do
 
6117
  case $cc_temp in
 
6118
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6119
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6120
    \-*) ;;
 
6121
    *) break;;
 
6122
  esac
 
6123
done
 
6124
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6125
 
 
6126
 
 
6127
# Only perform the check for file, if the check method requires it
 
6128
case $deplibs_check_method in
 
6129
file_magic*)
 
6130
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6131
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6132
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6133
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6135
else
 
6136
  case $MAGIC_CMD in
 
6137
[\\/*] |  ?:[\\/]*)
 
6138
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6139
  ;;
 
6140
*)
 
6141
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6142
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6143
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6144
  for ac_dir in $ac_dummy; do
 
6145
    IFS="$lt_save_ifs"
 
6146
    test -z "$ac_dir" && ac_dir=.
 
6147
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6148
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6149
      if test -n "$file_magic_test_file"; then
 
6150
        case $deplibs_check_method in
 
6151
        "file_magic "*)
 
6152
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6153
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6154
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6155
            $EGREP "$file_magic_regex" > /dev/null; then
 
6156
            :
 
6157
          else
 
6158
            cat <<EOF 1>&2
 
6159
 
 
6160
*** Warning: the command libtool uses to detect shared libraries,
 
6161
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6162
*** The result is that libtool may fail to recognize shared libraries
 
6163
*** as such.  This will affect the creation of libtool libraries that
 
6164
*** depend on shared libraries, but programs linked with such libtool
 
6165
*** libraries will work regardless of this problem.  Nevertheless, you
 
6166
*** may want to report the problem to your system manager and/or to
 
6167
*** bug-libtool@gnu.org
 
6168
 
 
6169
EOF
 
6170
          fi ;;
 
6171
        esac
 
6172
      fi
 
6173
      break
 
6174
    fi
 
6175
  done
 
6176
  IFS="$lt_save_ifs"
 
6177
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6178
  ;;
 
6179
esac
 
6180
fi
 
6181
 
 
6182
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6183
if test -n "$MAGIC_CMD"; then
 
6184
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6185
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6186
else
 
6187
  { echo "$as_me:$LINENO: result: no" >&5
 
6188
echo "${ECHO_T}no" >&6; }
 
6189
fi
 
6190
 
 
6191
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6192
  if test -n "$ac_tool_prefix"; then
 
6193
    { echo "$as_me:$LINENO: checking for file" >&5
 
6194
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6195
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6197
else
 
6198
  case $MAGIC_CMD in
 
6199
[\\/*] |  ?:[\\/]*)
 
6200
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6201
  ;;
 
6202
*)
 
6203
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6204
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6205
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6206
  for ac_dir in $ac_dummy; do
 
6207
    IFS="$lt_save_ifs"
 
6208
    test -z "$ac_dir" && ac_dir=.
 
6209
    if test -f $ac_dir/file; then
 
6210
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6211
      if test -n "$file_magic_test_file"; then
 
6212
        case $deplibs_check_method in
 
6213
        "file_magic "*)
 
6214
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6215
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6216
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6217
            $EGREP "$file_magic_regex" > /dev/null; then
 
6218
            :
 
6219
          else
 
6220
            cat <<EOF 1>&2
 
6221
 
 
6222
*** Warning: the command libtool uses to detect shared libraries,
 
6223
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6224
*** The result is that libtool may fail to recognize shared libraries
 
6225
*** as such.  This will affect the creation of libtool libraries that
 
6226
*** depend on shared libraries, but programs linked with such libtool
 
6227
*** libraries will work regardless of this problem.  Nevertheless, you
 
6228
*** may want to report the problem to your system manager and/or to
 
6229
*** bug-libtool@gnu.org
 
6230
 
 
6231
EOF
 
6232
          fi ;;
 
6233
        esac
 
6234
      fi
 
6235
      break
 
6236
    fi
 
6237
  done
 
6238
  IFS="$lt_save_ifs"
 
6239
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6240
  ;;
 
6241
esac
 
6242
fi
 
6243
 
 
6244
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6245
if test -n "$MAGIC_CMD"; then
 
6246
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6247
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6248
else
 
6249
  { echo "$as_me:$LINENO: result: no" >&5
 
6250
echo "${ECHO_T}no" >&6; }
 
6251
fi
 
6252
 
 
6253
  else
 
6254
    MAGIC_CMD=:
 
6255
  fi
 
6256
fi
 
6257
 
 
6258
  fi
 
6259
  ;;
 
6260
esac
5579
6261
 
5580
6262
 
5581
6263
  case $host_os in
5772
6454
  NMEDIT="$ac_cv_prog_NMEDIT"
5773
6455
fi
5774
6456
 
5775
 
    if test -n "$ac_tool_prefix"; then
5776
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5777
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5778
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5779
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5780
 
if test "${ac_cv_prog_LIPO+set}" = set; then
5781
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5782
 
else
5783
 
  if test -n "$LIPO"; then
5784
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5785
 
else
5786
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787
 
for as_dir in $PATH
5788
 
do
5789
 
  IFS=$as_save_IFS
5790
 
  test -z "$as_dir" && as_dir=.
5791
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5792
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5794
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795
 
    break 2
5796
 
  fi
5797
 
done
5798
 
done
5799
 
IFS=$as_save_IFS
5800
 
 
5801
 
fi
5802
 
fi
5803
 
LIPO=$ac_cv_prog_LIPO
5804
 
if test -n "$LIPO"; then
5805
 
  { echo "$as_me:$LINENO: result: $LIPO" >&5
5806
 
echo "${ECHO_T}$LIPO" >&6; }
5807
 
else
5808
 
  { echo "$as_me:$LINENO: result: no" >&5
5809
 
echo "${ECHO_T}no" >&6; }
5810
 
fi
5811
 
 
5812
 
 
5813
 
fi
5814
 
if test -z "$ac_cv_prog_LIPO"; then
5815
 
  ac_ct_LIPO=$LIPO
5816
 
  # Extract the first word of "lipo", so it can be a program name with args.
5817
 
set dummy lipo; ac_word=$2
5818
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5819
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5821
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5822
 
else
5823
 
  if test -n "$ac_ct_LIPO"; then
5824
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5825
 
else
5826
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827
 
for as_dir in $PATH
5828
 
do
5829
 
  IFS=$as_save_IFS
5830
 
  test -z "$as_dir" && as_dir=.
5831
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5832
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833
 
    ac_cv_prog_ac_ct_LIPO="lipo"
5834
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835
 
    break 2
5836
 
  fi
5837
 
done
5838
 
done
5839
 
IFS=$as_save_IFS
5840
 
 
5841
 
fi
5842
 
fi
5843
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5844
 
if test -n "$ac_ct_LIPO"; then
5845
 
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5846
 
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5847
 
else
5848
 
  { echo "$as_me:$LINENO: result: no" >&5
5849
 
echo "${ECHO_T}no" >&6; }
5850
 
fi
5851
 
 
5852
 
  if test "x$ac_ct_LIPO" = x; then
5853
 
    LIPO=":"
5854
 
  else
5855
 
    case $cross_compiling:$ac_tool_warned in
5856
 
yes:)
5857
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5858
 
whose name does not start with the host triplet.  If you think this
5859
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5860
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5861
 
whose name does not start with the host triplet.  If you think this
5862
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5863
 
ac_tool_warned=yes ;;
5864
 
esac
5865
 
    LIPO=$ac_ct_LIPO
5866
 
  fi
5867
 
else
5868
 
  LIPO="$ac_cv_prog_LIPO"
5869
 
fi
5870
 
 
5871
 
    if test -n "$ac_tool_prefix"; then
5872
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5873
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
5874
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5875
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876
 
if test "${ac_cv_prog_OTOOL+set}" = set; then
5877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5878
 
else
5879
 
  if test -n "$OTOOL"; then
5880
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5881
 
else
5882
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883
 
for as_dir in $PATH
5884
 
do
5885
 
  IFS=$as_save_IFS
5886
 
  test -z "$as_dir" && as_dir=.
5887
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5888
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5890
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891
 
    break 2
5892
 
  fi
5893
 
done
5894
 
done
5895
 
IFS=$as_save_IFS
5896
 
 
5897
 
fi
5898
 
fi
5899
 
OTOOL=$ac_cv_prog_OTOOL
5900
 
if test -n "$OTOOL"; then
5901
 
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
5902
 
echo "${ECHO_T}$OTOOL" >&6; }
5903
 
else
5904
 
  { echo "$as_me:$LINENO: result: no" >&5
5905
 
echo "${ECHO_T}no" >&6; }
5906
 
fi
5907
 
 
5908
 
 
5909
 
fi
5910
 
if test -z "$ac_cv_prog_OTOOL"; then
5911
 
  ac_ct_OTOOL=$OTOOL
5912
 
  # Extract the first word of "otool", so it can be a program name with args.
5913
 
set dummy otool; ac_word=$2
5914
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5915
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5918
 
else
5919
 
  if test -n "$ac_ct_OTOOL"; then
5920
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5921
 
else
5922
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923
 
for as_dir in $PATH
5924
 
do
5925
 
  IFS=$as_save_IFS
5926
 
  test -z "$as_dir" && as_dir=.
5927
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5928
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929
 
    ac_cv_prog_ac_ct_OTOOL="otool"
5930
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931
 
    break 2
5932
 
  fi
5933
 
done
5934
 
done
5935
 
IFS=$as_save_IFS
5936
 
 
5937
 
fi
5938
 
fi
5939
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5940
 
if test -n "$ac_ct_OTOOL"; then
5941
 
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5942
 
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5943
 
else
5944
 
  { echo "$as_me:$LINENO: result: no" >&5
5945
 
echo "${ECHO_T}no" >&6; }
5946
 
fi
5947
 
 
5948
 
  if test "x$ac_ct_OTOOL" = x; then
5949
 
    OTOOL=":"
5950
 
  else
5951
 
    case $cross_compiling:$ac_tool_warned in
5952
 
yes:)
5953
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5954
 
whose name does not start with the host triplet.  If you think this
5955
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5956
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5957
 
whose name does not start with the host triplet.  If you think this
5958
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5959
 
ac_tool_warned=yes ;;
5960
 
esac
5961
 
    OTOOL=$ac_ct_OTOOL
5962
 
  fi
5963
 
else
5964
 
  OTOOL="$ac_cv_prog_OTOOL"
5965
 
fi
5966
 
 
5967
 
    if test -n "$ac_tool_prefix"; then
5968
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5969
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5970
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5971
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then
5973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5974
 
else
5975
 
  if test -n "$OTOOL64"; then
5976
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5977
 
else
5978
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979
 
for as_dir in $PATH
5980
 
do
5981
 
  IFS=$as_save_IFS
5982
 
  test -z "$as_dir" && as_dir=.
5983
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5984
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5986
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987
 
    break 2
5988
 
  fi
5989
 
done
5990
 
done
5991
 
IFS=$as_save_IFS
5992
 
 
5993
 
fi
5994
 
fi
5995
 
OTOOL64=$ac_cv_prog_OTOOL64
5996
 
if test -n "$OTOOL64"; then
5997
 
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5998
 
echo "${ECHO_T}$OTOOL64" >&6; }
5999
 
else
6000
 
  { echo "$as_me:$LINENO: result: no" >&5
6001
 
echo "${ECHO_T}no" >&6; }
6002
 
fi
6003
 
 
6004
 
 
6005
 
fi
6006
 
if test -z "$ac_cv_prog_OTOOL64"; then
6007
 
  ac_ct_OTOOL64=$OTOOL64
6008
 
  # Extract the first word of "otool64", so it can be a program name with args.
6009
 
set dummy otool64; ac_word=$2
6010
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6011
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6013
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6014
 
else
6015
 
  if test -n "$ac_ct_OTOOL64"; then
6016
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6017
 
else
6018
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019
 
for as_dir in $PATH
6020
 
do
6021
 
  IFS=$as_save_IFS
6022
 
  test -z "$as_dir" && as_dir=.
6023
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6024
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6026
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027
 
    break 2
6028
 
  fi
6029
 
done
6030
 
done
6031
 
IFS=$as_save_IFS
6032
 
 
6033
 
fi
6034
 
fi
6035
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6036
 
if test -n "$ac_ct_OTOOL64"; then
6037
 
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6038
 
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6039
 
else
6040
 
  { echo "$as_me:$LINENO: result: no" >&5
6041
 
echo "${ECHO_T}no" >&6; }
6042
 
fi
6043
 
 
6044
 
  if test "x$ac_ct_OTOOL64" = x; then
6045
 
    OTOOL64=":"
6046
 
  else
6047
 
    case $cross_compiling:$ac_tool_warned in
6048
 
yes:)
6049
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6050
 
whose name does not start with the host triplet.  If you think this
6051
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6052
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6053
 
whose name does not start with the host triplet.  If you think this
6054
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6055
 
ac_tool_warned=yes ;;
6056
 
esac
6057
 
    OTOOL64=$ac_ct_OTOOL64
6058
 
  fi
6059
 
else
6060
 
  OTOOL64="$ac_cv_prog_OTOOL64"
6061
 
fi
6062
 
 
6063
 
 
6064
 
 
6065
 
 
6066
 
 
6067
 
 
6068
 
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
 
 
6077
 
 
6078
 
 
6079
 
 
6080
 
 
6081
 
 
6082
 
 
6083
 
 
6084
 
 
6085
 
 
6086
 
 
6087
 
 
6088
6457
 
6089
6458
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6090
6459
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6093
6462
else
6094
6463
  lt_cv_apple_cc_single_mod=no
6095
6464
      if test -z "${LT_MULTI_MODULE}"; then
6096
 
        # By default we will add the -single_module flag. You can override
6097
 
        # by either setting the environment variable LT_MULTI_MODULE
6098
 
        # non-empty at configure time, or by adding -multi_module to the
6099
 
        # link flags.
6100
 
        rm -rf libconftest.dylib*
6101
 
        echo "int foo(void){return 1;}" > conftest.c
6102
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6103
 
-dynamiclib -Wl,-single_module conftest.c" >&5
6104
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6105
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6106
 
        _lt_result=$?
6107
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6108
 
          lt_cv_apple_cc_single_mod=yes
6109
 
        else
6110
 
          cat conftest.err >&5
6111
 
        fi
6112
 
        rm -rf libconftest.dylib*
6113
 
        rm -f conftest.*
 
6465
   # By default we will add the -single_module flag. You can override
 
6466
   # by either setting the environment variable LT_MULTI_MODULE
 
6467
   # non-empty at configure time, or by adding -multi_module to the
 
6468
   # link flags.
 
6469
   echo "int foo(void){return 1;}" > conftest.c
 
6470
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6471
     -dynamiclib ${wl}-single_module conftest.c
 
6472
   if test -f libconftest.dylib; then
 
6473
     lt_cv_apple_cc_single_mod=yes
 
6474
     rm -rf libconftest.dylib*
 
6475
   fi
 
6476
   rm conftest.c
6114
6477
      fi
6115
6478
fi
6116
6479
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6167
6530
 
6168
6531
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6169
6532
      conftest$ac_exeext conftest.$ac_ext
6170
 
        LDFLAGS="$save_LDFLAGS"
 
6533
   LDFLAGS="$save_LDFLAGS"
6171
6534
 
6172
6535
fi
6173
6536
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6174
6537
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6175
6538
    case $host_os in
6176
 
    rhapsody* | darwin1.[012])
 
6539
    rhapsody* | darwin1.[0123])
6177
6540
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6178
6541
    darwin1.*)
6179
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6180
 
    darwin*) # darwin 5.x on
 
6542
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6543
    darwin*)
6181
6544
      # if running on 10.5 or later, the deployment target defaults
6182
6545
      # to the OS version, if on x86, and 10.4, the deployment
6183
6546
      # target defaults to 10.4. Don't you love it?
6184
6547
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6185
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6186
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6187
 
        10.[012]*)
6188
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6189
 
        10.*)
6190
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6548
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6549
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6550
   10.[012]*)
 
6551
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6552
   10.*)
 
6553
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6191
6554
      esac
6192
6555
    ;;
6193
6556
  esac
6197
6560
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6198
6561
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6199
6562
    else
6200
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6563
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6201
6564
    fi
6202
6565
    if test "$DSYMUTIL" != ":"; then
6203
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6566
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
6204
6567
    else
6205
6568
      _lt_dsymutil=
6206
6569
    fi
6207
6570
    ;;
6208
6571
  esac
6209
6572
 
6210
 
ac_ext=c
6211
 
ac_cpp='$CPP $CPPFLAGS'
6212
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6216
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6217
 
# On Suns, sometimes $CPP names a directory.
6218
 
if test -n "$CPP" && test -d "$CPP"; then
6219
 
  CPP=
6220
 
fi
6221
 
if test -z "$CPP"; then
6222
 
  if test "${ac_cv_prog_CPP+set}" = set; then
6223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6224
 
else
6225
 
      # Double quotes because CPP needs to be expanded
6226
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6227
 
    do
6228
 
      ac_preproc_ok=false
6229
 
for ac_c_preproc_warn_flag in '' yes
6230
 
do
6231
 
  # Use a header file that comes with gcc, so configuring glibc
6232
 
  # with a fresh cross-compiler works.
6233
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234
 
  # <limits.h> exists even on freestanding compilers.
6235
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6236
 
  # not just through cpp. "Syntax error" is here to catch this case.
6237
 
  cat >conftest.$ac_ext <<_ACEOF
6238
 
/* confdefs.h.  */
6239
 
_ACEOF
6240
 
cat confdefs.h >>conftest.$ac_ext
6241
 
cat >>conftest.$ac_ext <<_ACEOF
6242
 
/* end confdefs.h.  */
6243
 
#ifdef __STDC__
6244
 
# include <limits.h>
6245
 
#else
6246
 
# include <assert.h>
6247
 
#endif
6248
 
                     Syntax error
6249
 
_ACEOF
6250
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6251
 
case "(($ac_try" in
6252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253
 
  *) ac_try_echo=$ac_try;;
6254
 
esac
6255
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6257
 
  ac_status=$?
6258
 
  grep -v '^ *+' conftest.er1 >conftest.err
6259
 
  rm -f conftest.er1
6260
 
  cat conftest.err >&5
6261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262
 
  (exit $ac_status); } >/dev/null && {
6263
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6264
 
         test ! -s conftest.err
6265
 
       }; then
6266
 
  :
6267
 
else
6268
 
  echo "$as_me: failed program was:" >&5
6269
 
sed 's/^/| /' conftest.$ac_ext >&5
6270
 
 
6271
 
  # Broken: fails on valid input.
6272
 
continue
6273
 
fi
6274
 
 
6275
 
rm -f conftest.err conftest.$ac_ext
6276
 
 
6277
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6278
 
  # can be detected and how.
6279
 
  cat >conftest.$ac_ext <<_ACEOF
6280
 
/* confdefs.h.  */
6281
 
_ACEOF
6282
 
cat confdefs.h >>conftest.$ac_ext
6283
 
cat >>conftest.$ac_ext <<_ACEOF
6284
 
/* end confdefs.h.  */
6285
 
#include <ac_nonexistent.h>
6286
 
_ACEOF
6287
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6288
 
case "(($ac_try" in
6289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290
 
  *) ac_try_echo=$ac_try;;
6291
 
esac
6292
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6294
 
  ac_status=$?
6295
 
  grep -v '^ *+' conftest.er1 >conftest.err
6296
 
  rm -f conftest.er1
6297
 
  cat conftest.err >&5
6298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299
 
  (exit $ac_status); } >/dev/null && {
6300
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6301
 
         test ! -s conftest.err
6302
 
       }; then
6303
 
  # Broken: success on invalid input.
6304
 
continue
6305
 
else
6306
 
  echo "$as_me: failed program was:" >&5
6307
 
sed 's/^/| /' conftest.$ac_ext >&5
6308
 
 
6309
 
  # Passes both tests.
6310
 
ac_preproc_ok=:
6311
 
break
6312
 
fi
6313
 
 
6314
 
rm -f conftest.err conftest.$ac_ext
6315
 
 
6316
 
done
6317
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6318
 
rm -f conftest.err conftest.$ac_ext
6319
 
if $ac_preproc_ok; then
6320
 
  break
6321
 
fi
6322
 
 
6323
 
    done
6324
 
    ac_cv_prog_CPP=$CPP
6325
 
 
6326
 
fi
6327
 
  CPP=$ac_cv_prog_CPP
6328
 
else
6329
 
  ac_cv_prog_CPP=$CPP
6330
 
fi
6331
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
6332
 
echo "${ECHO_T}$CPP" >&6; }
6333
 
ac_preproc_ok=false
6334
 
for ac_c_preproc_warn_flag in '' yes
6335
 
do
6336
 
  # Use a header file that comes with gcc, so configuring glibc
6337
 
  # with a fresh cross-compiler works.
6338
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339
 
  # <limits.h> exists even on freestanding compilers.
6340
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6341
 
  # not just through cpp. "Syntax error" is here to catch this case.
6342
 
  cat >conftest.$ac_ext <<_ACEOF
6343
 
/* confdefs.h.  */
6344
 
_ACEOF
6345
 
cat confdefs.h >>conftest.$ac_ext
6346
 
cat >>conftest.$ac_ext <<_ACEOF
6347
 
/* end confdefs.h.  */
6348
 
#ifdef __STDC__
6349
 
# include <limits.h>
6350
 
#else
6351
 
# include <assert.h>
6352
 
#endif
6353
 
                     Syntax error
6354
 
_ACEOF
6355
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6356
 
case "(($ac_try" in
6357
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358
 
  *) ac_try_echo=$ac_try;;
6359
 
esac
6360
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6362
 
  ac_status=$?
6363
 
  grep -v '^ *+' conftest.er1 >conftest.err
6364
 
  rm -f conftest.er1
6365
 
  cat conftest.err >&5
6366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367
 
  (exit $ac_status); } >/dev/null && {
6368
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6369
 
         test ! -s conftest.err
6370
 
       }; then
6371
 
  :
6372
 
else
6373
 
  echo "$as_me: failed program was:" >&5
6374
 
sed 's/^/| /' conftest.$ac_ext >&5
6375
 
 
6376
 
  # Broken: fails on valid input.
6377
 
continue
6378
 
fi
6379
 
 
6380
 
rm -f conftest.err conftest.$ac_ext
6381
 
 
6382
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6383
 
  # can be detected and how.
6384
 
  cat >conftest.$ac_ext <<_ACEOF
6385
 
/* confdefs.h.  */
6386
 
_ACEOF
6387
 
cat confdefs.h >>conftest.$ac_ext
6388
 
cat >>conftest.$ac_ext <<_ACEOF
6389
 
/* end confdefs.h.  */
6390
 
#include <ac_nonexistent.h>
6391
 
_ACEOF
6392
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6393
 
case "(($ac_try" in
6394
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395
 
  *) ac_try_echo=$ac_try;;
6396
 
esac
6397
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6399
 
  ac_status=$?
6400
 
  grep -v '^ *+' conftest.er1 >conftest.err
6401
 
  rm -f conftest.er1
6402
 
  cat conftest.err >&5
6403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404
 
  (exit $ac_status); } >/dev/null && {
6405
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6406
 
         test ! -s conftest.err
6407
 
       }; then
6408
 
  # Broken: success on invalid input.
6409
 
continue
6410
 
else
6411
 
  echo "$as_me: failed program was:" >&5
6412
 
sed 's/^/| /' conftest.$ac_ext >&5
6413
 
 
6414
 
  # Passes both tests.
6415
 
ac_preproc_ok=:
6416
 
break
6417
 
fi
6418
 
 
6419
 
rm -f conftest.err conftest.$ac_ext
6420
 
 
6421
 
done
6422
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6423
 
rm -f conftest.err conftest.$ac_ext
6424
 
if $ac_preproc_ok; then
6425
 
  :
6426
 
else
6427
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6428
 
See \`config.log' for more details." >&5
6429
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6430
 
See \`config.log' for more details." >&2;}
6431
 
   { (exit 1); exit 1; }; }
6432
 
fi
6433
 
 
6434
 
ac_ext=c
6435
 
ac_cpp='$CPP $CPPFLAGS'
6436
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
 
 
6440
 
 
6441
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6442
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6443
 
if test "${ac_cv_header_stdc+set}" = set; then
6444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6445
 
else
6446
 
  cat >conftest.$ac_ext <<_ACEOF
6447
 
/* confdefs.h.  */
6448
 
_ACEOF
6449
 
cat confdefs.h >>conftest.$ac_ext
6450
 
cat >>conftest.$ac_ext <<_ACEOF
6451
 
/* end confdefs.h.  */
6452
 
#include <stdlib.h>
6453
 
#include <stdarg.h>
6454
 
#include <string.h>
6455
 
#include <float.h>
6456
 
 
6457
 
int
6458
 
main ()
6459
 
{
6460
 
 
6461
 
  ;
6462
 
  return 0;
6463
 
}
6464
 
_ACEOF
6465
 
rm -f conftest.$ac_objext
6466
 
if { (ac_try="$ac_compile"
6467
 
case "(($ac_try" in
6468
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469
 
  *) ac_try_echo=$ac_try;;
6470
 
esac
6471
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472
 
  (eval "$ac_compile") 2>conftest.er1
6473
 
  ac_status=$?
6474
 
  grep -v '^ *+' conftest.er1 >conftest.err
6475
 
  rm -f conftest.er1
6476
 
  cat conftest.err >&5
6477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478
 
  (exit $ac_status); } && {
6479
 
         test -z "$ac_c_werror_flag" ||
6480
 
         test ! -s conftest.err
6481
 
       } && test -s conftest.$ac_objext; then
6482
 
  ac_cv_header_stdc=yes
6483
 
else
6484
 
  echo "$as_me: failed program was:" >&5
6485
 
sed 's/^/| /' conftest.$ac_ext >&5
6486
 
 
6487
 
        ac_cv_header_stdc=no
6488
 
fi
6489
 
 
6490
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491
 
 
6492
 
if test $ac_cv_header_stdc = yes; then
6493
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6494
 
  cat >conftest.$ac_ext <<_ACEOF
6495
 
/* confdefs.h.  */
6496
 
_ACEOF
6497
 
cat confdefs.h >>conftest.$ac_ext
6498
 
cat >>conftest.$ac_ext <<_ACEOF
6499
 
/* end confdefs.h.  */
6500
 
#include <string.h>
6501
 
 
6502
 
_ACEOF
6503
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504
 
  $EGREP "memchr" >/dev/null 2>&1; then
6505
 
  :
6506
 
else
6507
 
  ac_cv_header_stdc=no
6508
 
fi
6509
 
rm -f conftest*
6510
 
 
6511
 
fi
6512
 
 
6513
 
if test $ac_cv_header_stdc = yes; then
6514
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6515
 
  cat >conftest.$ac_ext <<_ACEOF
6516
 
/* confdefs.h.  */
6517
 
_ACEOF
6518
 
cat confdefs.h >>conftest.$ac_ext
6519
 
cat >>conftest.$ac_ext <<_ACEOF
6520
 
/* end confdefs.h.  */
6521
 
#include <stdlib.h>
6522
 
 
6523
 
_ACEOF
6524
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525
 
  $EGREP "free" >/dev/null 2>&1; then
6526
 
  :
6527
 
else
6528
 
  ac_cv_header_stdc=no
6529
 
fi
6530
 
rm -f conftest*
6531
 
 
6532
 
fi
6533
 
 
6534
 
if test $ac_cv_header_stdc = yes; then
6535
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6536
 
  if test "$cross_compiling" = yes; then
6537
 
  :
6538
 
else
6539
 
  cat >conftest.$ac_ext <<_ACEOF
6540
 
/* confdefs.h.  */
6541
 
_ACEOF
6542
 
cat confdefs.h >>conftest.$ac_ext
6543
 
cat >>conftest.$ac_ext <<_ACEOF
6544
 
/* end confdefs.h.  */
6545
 
#include <ctype.h>
6546
 
#include <stdlib.h>
6547
 
#if ((' ' & 0x0FF) == 0x020)
6548
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6549
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6550
 
#else
6551
 
# define ISLOWER(c) \
6552
 
                   (('a' <= (c) && (c) <= 'i') \
6553
 
                     || ('j' <= (c) && (c) <= 'r') \
6554
 
                     || ('s' <= (c) && (c) <= 'z'))
6555
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6556
 
#endif
6557
 
 
6558
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6559
 
int
6560
 
main ()
6561
 
{
6562
 
  int i;
6563
 
  for (i = 0; i < 256; i++)
6564
 
    if (XOR (islower (i), ISLOWER (i))
6565
 
        || toupper (i) != TOUPPER (i))
6566
 
      return 2;
6567
 
  return 0;
6568
 
}
6569
 
_ACEOF
6570
 
rm -f conftest$ac_exeext
6571
 
if { (ac_try="$ac_link"
6572
 
case "(($ac_try" in
6573
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574
 
  *) ac_try_echo=$ac_try;;
6575
 
esac
6576
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577
 
  (eval "$ac_link") 2>&5
6578
 
  ac_status=$?
6579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581
 
  { (case "(($ac_try" in
6582
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583
 
  *) ac_try_echo=$ac_try;;
6584
 
esac
6585
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586
 
  (eval "$ac_try") 2>&5
6587
 
  ac_status=$?
6588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589
 
  (exit $ac_status); }; }; then
6590
 
  :
6591
 
else
6592
 
  echo "$as_me: program exited with status $ac_status" >&5
6593
 
echo "$as_me: failed program was:" >&5
6594
 
sed 's/^/| /' conftest.$ac_ext >&5
6595
 
 
6596
 
( exit $ac_status )
6597
 
ac_cv_header_stdc=no
6598
 
fi
6599
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6600
 
fi
6601
 
 
6602
 
 
6603
 
fi
6604
 
fi
6605
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6606
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6607
 
if test $ac_cv_header_stdc = yes; then
6608
 
 
6609
 
cat >>confdefs.h <<\_ACEOF
6610
 
#define STDC_HEADERS 1
6611
 
_ACEOF
6612
 
 
6613
 
fi
6614
 
 
6615
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6616
 
 
6617
 
 
6618
 
 
6619
 
 
6620
 
 
6621
 
 
6622
 
 
6623
 
 
6624
 
 
6625
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6626
 
                  inttypes.h stdint.h unistd.h
6627
 
do
6628
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6630
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6631
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6632
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6633
 
else
6634
 
  cat >conftest.$ac_ext <<_ACEOF
6635
 
/* confdefs.h.  */
6636
 
_ACEOF
6637
 
cat confdefs.h >>conftest.$ac_ext
6638
 
cat >>conftest.$ac_ext <<_ACEOF
6639
 
/* end confdefs.h.  */
6640
 
$ac_includes_default
6641
 
 
6642
 
#include <$ac_header>
6643
 
_ACEOF
6644
 
rm -f conftest.$ac_objext
6645
 
if { (ac_try="$ac_compile"
6646
 
case "(($ac_try" in
6647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648
 
  *) ac_try_echo=$ac_try;;
6649
 
esac
6650
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651
 
  (eval "$ac_compile") 2>conftest.er1
6652
 
  ac_status=$?
6653
 
  grep -v '^ *+' conftest.er1 >conftest.err
6654
 
  rm -f conftest.er1
6655
 
  cat conftest.err >&5
6656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657
 
  (exit $ac_status); } && {
6658
 
         test -z "$ac_c_werror_flag" ||
6659
 
         test ! -s conftest.err
6660
 
       } && test -s conftest.$ac_objext; then
6661
 
  eval "$as_ac_Header=yes"
6662
 
else
6663
 
  echo "$as_me: failed program was:" >&5
6664
 
sed 's/^/| /' conftest.$ac_ext >&5
6665
 
 
6666
 
        eval "$as_ac_Header=no"
6667
 
fi
6668
 
 
6669
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670
 
fi
6671
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6672
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6673
 
echo "${ECHO_T}$ac_res" >&6; }
6674
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675
 
  cat >>confdefs.h <<_ACEOF
6676
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677
 
_ACEOF
6678
 
 
6679
 
fi
6680
 
 
6681
 
done
6682
 
 
6683
 
 
6684
 
 
6685
 
for ac_header in dlfcn.h
6686
 
do
6687
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6688
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6689
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6690
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6692
 
else
6693
 
  cat >conftest.$ac_ext <<_ACEOF
6694
 
/* confdefs.h.  */
6695
 
_ACEOF
6696
 
cat confdefs.h >>conftest.$ac_ext
6697
 
cat >>conftest.$ac_ext <<_ACEOF
6698
 
/* end confdefs.h.  */
6699
 
$ac_includes_default
6700
 
 
6701
 
#include <$ac_header>
6702
 
_ACEOF
6703
 
rm -f conftest.$ac_objext
6704
 
if { (ac_try="$ac_compile"
6705
 
case "(($ac_try" in
6706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707
 
  *) ac_try_echo=$ac_try;;
6708
 
esac
6709
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710
 
  (eval "$ac_compile") 2>conftest.er1
6711
 
  ac_status=$?
6712
 
  grep -v '^ *+' conftest.er1 >conftest.err
6713
 
  rm -f conftest.er1
6714
 
  cat conftest.err >&5
6715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716
 
  (exit $ac_status); } && {
6717
 
         test -z "$ac_c_werror_flag" ||
6718
 
         test ! -s conftest.err
6719
 
       } && test -s conftest.$ac_objext; then
6720
 
  eval "$as_ac_Header=yes"
6721
 
else
6722
 
  echo "$as_me: failed program was:" >&5
6723
 
sed 's/^/| /' conftest.$ac_ext >&5
6724
 
 
6725
 
        eval "$as_ac_Header=no"
6726
 
fi
6727
 
 
6728
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729
 
fi
6730
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6731
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6732
 
echo "${ECHO_T}$ac_res" >&6; }
6733
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734
 
  cat >>confdefs.h <<_ACEOF
6735
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736
 
_ACEOF
6737
 
 
6738
 
fi
6739
 
 
6740
 
done
6741
 
 
6742
 
 
6743
 
 
6744
 
# Set options
6745
 
 
6746
 
 
6747
 
 
6748
 
        enable_dlopen=no
6749
 
 
6750
 
 
6751
 
  enable_win32_dll=no
6752
 
 
6753
 
 
6754
 
            # Check whether --enable-shared was given.
6755
 
if test "${enable_shared+set}" = set; then
6756
 
  enableval=$enable_shared; p=${PACKAGE-default}
6757
 
    case $enableval in
6758
 
    yes) enable_shared=yes ;;
6759
 
    no) enable_shared=no ;;
6760
 
    *)
6761
 
      enable_shared=no
6762
 
      # Look at the argument we got.  We use all the common list separators.
6763
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6764
 
      for pkg in $enableval; do
6765
 
        IFS="$lt_save_ifs"
6766
 
        if test "X$pkg" = "X$p"; then
6767
 
          enable_shared=yes
6768
 
        fi
6769
 
      done
6770
 
      IFS="$lt_save_ifs"
6771
 
      ;;
6772
 
    esac
6773
 
else
6774
 
  enable_shared=yes
6775
 
fi
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
 
 
6785
 
  # Check whether --enable-static was given.
6786
 
if test "${enable_static+set}" = set; then
6787
 
  enableval=$enable_static; p=${PACKAGE-default}
6788
 
    case $enableval in
6789
 
    yes) enable_static=yes ;;
6790
 
    no) enable_static=no ;;
6791
 
    *)
6792
 
     enable_static=no
6793
 
      # Look at the argument we got.  We use all the common list separators.
6794
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6795
 
      for pkg in $enableval; do
6796
 
        IFS="$lt_save_ifs"
6797
 
        if test "X$pkg" = "X$p"; then
6798
 
          enable_static=yes
6799
 
        fi
6800
 
      done
6801
 
      IFS="$lt_save_ifs"
6802
 
      ;;
6803
 
    esac
6804
 
else
6805
 
  enable_static=yes
6806
 
fi
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
 
6573
 
 
6574
enable_dlopen=no
 
6575
enable_win32_dll=no
 
6576
 
 
6577
# Check whether --enable-libtool-lock was given.
 
6578
if test "${enable_libtool_lock+set}" = set; then
 
6579
  enableval=$enable_libtool_lock;
 
6580
fi
 
6581
 
 
6582
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6815
6583
 
6816
6584
 
6817
6585
# Check whether --with-pic was given.
6821
6589
  pic_mode=default
6822
6590
fi
6823
6591
 
6824
 
 
6825
6592
test -z "$pic_mode" && pic_mode=default
6826
6593
 
6827
 
 
6828
 
 
6829
 
 
6830
 
 
6831
 
 
6832
 
 
6833
 
  # Check whether --enable-fast-install was given.
6834
 
if test "${enable_fast_install+set}" = set; then
6835
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
6836
 
    case $enableval in
6837
 
    yes) enable_fast_install=yes ;;
6838
 
    no) enable_fast_install=no ;;
6839
 
    *)
6840
 
      enable_fast_install=no
6841
 
      # Look at the argument we got.  We use all the common list separators.
6842
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6843
 
      for pkg in $enableval; do
6844
 
        IFS="$lt_save_ifs"
6845
 
        if test "X$pkg" = "X$p"; then
6846
 
          enable_fast_install=yes
6847
 
        fi
6848
 
      done
6849
 
      IFS="$lt_save_ifs"
6850
 
      ;;
6851
 
    esac
6852
 
else
6853
 
  enable_fast_install=yes
6854
 
fi
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
 
 
6865
 
 
6866
 
# This can be used to rebuild libtool when needed
6867
 
LIBTOOL_DEPS="$ltmain"
6868
 
 
6869
 
# Always use our own libtool.
6870
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6871
 
 
6872
 
 
6873
 
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
 
 
6895
 
 
6896
 
test -z "$LN_S" && LN_S="ln -s"
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
 
6905
 
 
6906
 
 
6907
 
 
6908
 
 
6909
 
 
6910
 
 
6911
 
if test -n "${ZSH_VERSION+set}" ; then
6912
 
   setopt NO_GLOB_SUBST
6913
 
fi
6914
 
 
6915
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
6916
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6917
 
if test "${lt_cv_objdir+set}" = set; then
6918
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6919
 
else
6920
 
  rm -f .libs 2>/dev/null
6921
 
mkdir .libs 2>/dev/null
6922
 
if test -d .libs; then
6923
 
  lt_cv_objdir=.libs
6924
 
else
6925
 
  # MS-DOS does not allow filenames that begin with a dot.
6926
 
  lt_cv_objdir=_libs
6927
 
fi
6928
 
rmdir .libs 2>/dev/null
6929
 
fi
6930
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6931
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6932
 
objdir=$lt_cv_objdir
6933
 
 
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
cat >>confdefs.h <<_ACEOF
6939
 
#define LT_OBJDIR "$lt_cv_objdir/"
6940
 
_ACEOF
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
 
6951
 
 
6952
 
 
6953
 
 
6954
 
 
6955
 
 
6956
 
 
6957
 
 
6958
 
case $host_os in
6959
 
aix3*)
6960
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6961
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6962
 
  # vanish in a puff of smoke.
6963
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6964
 
    COLLECT_NAMES=
6965
 
    export COLLECT_NAMES
6966
 
  fi
6967
 
  ;;
6968
 
esac
6969
 
 
6970
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6971
 
# metacharacters that are still active within double-quoted strings.
6972
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6973
 
 
6974
 
# Same as above, but do not quote variable references.
6975
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6976
 
 
6977
 
# Sed substitution to delay expansion of an escaped shell variable in a
6978
 
# double_quote_subst'ed string.
6979
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6980
 
 
6981
 
# Sed substitution to delay expansion of an escaped single quote.
6982
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6983
 
 
6984
 
# Sed substitution to avoid accidental globbing in evaled expressions
6985
 
no_glob_subst='s/\*/\\\*/g'
6986
 
 
6987
 
# Global variables:
6988
 
ofile=libtool
6989
 
can_build_shared=yes
6990
 
 
6991
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6992
 
# which needs '.lib').
6993
 
libext=a
6994
 
 
6995
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6996
 
 
6997
 
old_CC="$CC"
6998
 
old_CFLAGS="$CFLAGS"
6999
 
 
7000
 
# Set sane defaults for various variables
7001
 
test -z "$CC" && CC=cc
7002
 
test -z "$LTCC" && LTCC=$CC
7003
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7004
 
test -z "$LD" && LD=ld
7005
 
test -z "$ac_objext" && ac_objext=o
7006
 
 
7007
 
for cc_temp in $compiler""; do
7008
 
  case $cc_temp in
7009
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7010
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7011
 
    \-*) ;;
7012
 
    *) break;;
7013
 
  esac
7014
 
done
7015
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7016
 
 
7017
 
 
7018
 
# Only perform the check for file, if the check method requires it
7019
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7020
 
case $deplibs_check_method in
7021
 
file_magic*)
7022
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7023
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7024
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7025
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7026
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7027
 
else
7028
 
  case $MAGIC_CMD in
7029
 
[\\/*] |  ?:[\\/]*)
7030
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7031
 
  ;;
7032
 
*)
7033
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7034
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7036
 
  for ac_dir in $ac_dummy; do
7037
 
    IFS="$lt_save_ifs"
7038
 
    test -z "$ac_dir" && ac_dir=.
7039
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7040
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7041
 
      if test -n "$file_magic_test_file"; then
7042
 
        case $deplibs_check_method in
7043
 
        "file_magic "*)
7044
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7045
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7047
 
            $EGREP "$file_magic_regex" > /dev/null; then
7048
 
            :
7049
 
          else
7050
 
            cat <<_LT_EOF 1>&2
7051
 
 
7052
 
*** Warning: the command libtool uses to detect shared libraries,
7053
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7054
 
*** The result is that libtool may fail to recognize shared libraries
7055
 
*** as such.  This will affect the creation of libtool libraries that
7056
 
*** depend on shared libraries, but programs linked with such libtool
7057
 
*** libraries will work regardless of this problem.  Nevertheless, you
7058
 
*** may want to report the problem to your system manager and/or to
7059
 
*** bug-libtool@gnu.org
7060
 
 
7061
 
_LT_EOF
7062
 
          fi ;;
7063
 
        esac
7064
 
      fi
7065
 
      break
7066
 
    fi
7067
 
  done
7068
 
  IFS="$lt_save_ifs"
7069
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7070
 
  ;;
7071
 
esac
7072
 
fi
7073
 
 
7074
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7075
 
if test -n "$MAGIC_CMD"; then
7076
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7077
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7078
 
else
7079
 
  { echo "$as_me:$LINENO: result: no" >&5
7080
 
echo "${ECHO_T}no" >&6; }
7081
 
fi
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7088
 
  if test -n "$ac_tool_prefix"; then
7089
 
    { echo "$as_me:$LINENO: checking for file" >&5
7090
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7091
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7093
 
else
7094
 
  case $MAGIC_CMD in
7095
 
[\\/*] |  ?:[\\/]*)
7096
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7097
 
  ;;
7098
 
*)
7099
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7100
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7101
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7102
 
  for ac_dir in $ac_dummy; do
7103
 
    IFS="$lt_save_ifs"
7104
 
    test -z "$ac_dir" && ac_dir=.
7105
 
    if test -f $ac_dir/file; then
7106
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7107
 
      if test -n "$file_magic_test_file"; then
7108
 
        case $deplibs_check_method in
7109
 
        "file_magic "*)
7110
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7111
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7113
 
            $EGREP "$file_magic_regex" > /dev/null; then
7114
 
            :
7115
 
          else
7116
 
            cat <<_LT_EOF 1>&2
7117
 
 
7118
 
*** Warning: the command libtool uses to detect shared libraries,
7119
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7120
 
*** The result is that libtool may fail to recognize shared libraries
7121
 
*** as such.  This will affect the creation of libtool libraries that
7122
 
*** depend on shared libraries, but programs linked with such libtool
7123
 
*** libraries will work regardless of this problem.  Nevertheless, you
7124
 
*** may want to report the problem to your system manager and/or to
7125
 
*** bug-libtool@gnu.org
7126
 
 
7127
 
_LT_EOF
7128
 
          fi ;;
7129
 
        esac
7130
 
      fi
7131
 
      break
7132
 
    fi
7133
 
  done
7134
 
  IFS="$lt_save_ifs"
7135
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7136
 
  ;;
7137
 
esac
7138
 
fi
7139
 
 
7140
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7141
 
if test -n "$MAGIC_CMD"; then
7142
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7143
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7144
 
else
7145
 
  { echo "$as_me:$LINENO: result: no" >&5
7146
 
echo "${ECHO_T}no" >&6; }
7147
 
fi
7148
 
 
7149
 
 
7150
 
  else
7151
 
    MAGIC_CMD=:
7152
 
  fi
7153
 
fi
7154
 
 
7155
 
  fi
7156
 
  ;;
7157
 
esac
7158
 
 
7159
6594
# Use C for the default configuration in the libtool script
7160
 
 
 
6595
tagname=
7161
6596
lt_save_CC="$CC"
7162
6597
ac_ext=c
7163
6598
ac_cpp='$CPP $CPPFLAGS'
7180
6615
lt_simple_link_test_code='int main(){return(0);}'
7181
6616
 
7182
6617
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
6618
# If no C compiler was specified, use CC.
7189
6619
LTCC=${LTCC-"$CC"}
7190
6620
 
7194
6624
# Allow CC to be a program name with arguments.
7195
6625
compiler=$CC
7196
6626
 
7197
 
# Save the default compiler, since it gets overwritten when the other
7198
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7199
 
compiler_DEFAULT=$CC
7200
6627
 
7201
6628
# save warnings/boilerplate of simple test code
7202
6629
ac_outfile=conftest.$ac_objext
7203
6630
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7204
6631
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7205
6632
_lt_compiler_boilerplate=`cat conftest.err`
7206
 
$RM conftest*
 
6633
$rm conftest*
7207
6634
 
7208
6635
ac_outfile=conftest.$ac_objext
7209
6636
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7210
6637
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7211
6638
_lt_linker_boilerplate=`cat conftest.err`
7212
 
$RM -r conftest*
7213
 
 
7214
 
 
7215
 
## CAVEAT EMPTOR:
7216
 
## There is no encapsulation within the following macros, do not change
7217
 
## the running order or otherwise move them around unless you know exactly
7218
 
## what you are doing...
7219
 
if test -n "$compiler"; then
 
6639
$rm -r conftest*
 
6640
 
 
6641
 
7220
6642
 
7221
6643
lt_prog_compiler_no_builtin_flag=
7222
6644
 
7223
6645
if test "$GCC" = yes; then
7224
6646
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7225
6647
 
7226
 
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6648
 
 
6649
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7227
6650
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7228
6651
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7229
6652
  echo $ECHO_N "(cached) $ECHO_C" >&6
7230
6653
else
7231
6654
  lt_cv_prog_compiler_rtti_exceptions=no
7232
 
   ac_outfile=conftest.$ac_objext
 
6655
  ac_outfile=conftest.$ac_objext
7233
6656
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7234
6657
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7235
6658
   # Insert the option either (1) after the last *FLAGS variable, or
7241
6664
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7242
6665
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243
6666
   -e 's:$: $lt_compiler_flag:'`
7244
 
   (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
 
6667
   (eval echo "\"\$as_me:6667: $lt_compile\"" >&5)
7245
6668
   (eval "$lt_compile" 2>conftest.err)
7246
6669
   ac_status=$?
7247
6670
   cat conftest.err >&5
7248
 
   echo "$as_me:7248: \$? = $ac_status" >&5
 
6671
   echo "$as_me:6671: \$? = $ac_status" >&5
7249
6672
   if (exit $ac_status) && test -s "$ac_outfile"; then
7250
6673
     # The compiler can only warn and ignore the option if not recognized
7251
6674
     # So say no if there are warnings other than the usual output.
7252
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6675
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7253
6676
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7254
6677
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7255
6678
       lt_cv_prog_compiler_rtti_exceptions=yes
7256
6679
     fi
7257
6680
   fi
7258
 
   $RM conftest*
 
6681
   $rm conftest*
7259
6682
 
7260
6683
fi
7261
6684
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7269
6692
 
7270
6693
fi
7271
6694
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
  lt_prog_compiler_wl=
 
6695
lt_prog_compiler_wl=
7278
6696
lt_prog_compiler_pic=
7279
6697
lt_prog_compiler_static=
7280
6698
 
7295
6713
      ;;
7296
6714
 
7297
6715
    amigaos*)
7298
 
      case $host_cpu in
7299
 
      powerpc)
7300
 
            # see comment about AmigaOS4 .so support
7301
 
            lt_prog_compiler_pic='-fPIC'
7302
 
        ;;
7303
 
      m68k)
7304
 
            # FIXME: we need at least 68020 code to build shared libraries, but
7305
 
            # adding the `-m68020' flag to GCC prevents building anything better,
7306
 
            # like `-m68040'.
7307
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7308
 
        ;;
7309
 
      esac
 
6716
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6717
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6718
      # like `-m68040'.
 
6719
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7310
6720
      ;;
7311
6721
 
7312
6722
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7327
6737
      lt_prog_compiler_pic='-fno-common'
7328
6738
      ;;
7329
6739
 
7330
 
    hpux*)
7331
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7332
 
      # not for PA HP-UX.
7333
 
      case $host_cpu in
7334
 
      hppa*64*|ia64*)
7335
 
        # +Z the default
7336
 
        ;;
7337
 
      *)
7338
 
        lt_prog_compiler_pic='-fPIC'
7339
 
        ;;
7340
 
      esac
7341
 
      ;;
7342
 
 
7343
6740
    interix[3-9]*)
7344
6741
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7345
6742
      # Instead, we relocate shared libraries at runtime.
7352
6749
      enable_shared=no
7353
6750
      ;;
7354
6751
 
7355
 
    *nto* | *qnx*)
7356
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7357
 
      # it will coredump.
7358
 
      lt_prog_compiler_pic='-fPIC -shared'
7359
 
      ;;
7360
 
 
7361
6752
    sysv4*MP*)
7362
6753
      if test -d /usr/nec; then
7363
6754
        lt_prog_compiler_pic=-Kconform_pic
7364
6755
      fi
7365
6756
      ;;
7366
6757
 
 
6758
    hpux*)
 
6759
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6760
      # not for PA HP-UX.
 
6761
      case $host_cpu in
 
6762
      hppa*64*|ia64*)
 
6763
        # +Z the default
 
6764
        ;;
 
6765
      *)
 
6766
        lt_prog_compiler_pic='-fPIC'
 
6767
        ;;
 
6768
      esac
 
6769
      ;;
 
6770
 
7367
6771
    *)
7368
6772
      lt_prog_compiler_pic='-fPIC'
7369
6773
      ;;
7380
6784
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7381
6785
      fi
7382
6786
      ;;
 
6787
      darwin*)
 
6788
        # PIC is the default on this platform
 
6789
        # Common symbols not allowed in MH_DYLIB files
 
6790
       case $cc_basename in
 
6791
         xlc*)
 
6792
         lt_prog_compiler_pic='-qnocommon'
 
6793
         lt_prog_compiler_wl='-Wl,'
 
6794
         ;;
 
6795
       esac
 
6796
       ;;
7383
6797
 
7384
6798
    mingw* | cygwin* | pw32* | os2*)
7385
6799
      # This hack is so that the source file can tell whether it is being
7409
6823
      lt_prog_compiler_static='-non_shared'
7410
6824
      ;;
7411
6825
 
 
6826
    newsos6)
 
6827
      lt_prog_compiler_pic='-KPIC'
 
6828
      lt_prog_compiler_static='-Bstatic'
 
6829
      ;;
 
6830
 
7412
6831
    linux* | k*bsd*-gnu)
7413
6832
      case $cc_basename in
7414
 
      icc* | ecc* | ifort*)
 
6833
      icc* | ecc*)
7415
6834
        lt_prog_compiler_wl='-Wl,'
7416
6835
        lt_prog_compiler_pic='-KPIC'
7417
6836
        lt_prog_compiler_static='-static'
7428
6847
        # All Alpha code is PIC.
7429
6848
        lt_prog_compiler_static='-non_shared'
7430
6849
        ;;
7431
 
      xl*)
7432
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
7433
 
        lt_prog_compiler_wl='-Wl,'
7434
 
        lt_prog_compiler_pic='-qpic'
7435
 
        lt_prog_compiler_static='-qstaticlink'
7436
 
        ;;
7437
6850
      *)
7438
 
        case `$CC -V 2>&1 | sed 5q` in
 
6851
        case `$CC -V 2>&1 | sed 5q` in
7439
6852
        *Sun\ C*)
7440
6853
          # Sun C 5.9
7441
6854
          lt_prog_compiler_pic='-KPIC'
7453
6866
      esac
7454
6867
      ;;
7455
6868
 
7456
 
    newsos6)
7457
 
      lt_prog_compiler_pic='-KPIC'
7458
 
      lt_prog_compiler_static='-Bstatic'
7459
 
      ;;
7460
 
 
7461
 
    *nto* | *qnx*)
7462
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7463
 
      # it will coredump.
7464
 
      lt_prog_compiler_pic='-fPIC -shared'
7465
 
      ;;
7466
 
 
7467
6869
    osf3* | osf4* | osf5*)
7468
6870
      lt_prog_compiler_wl='-Wl,'
7469
6871
      # All OSF/1 code is PIC.
7526
6928
    esac
7527
6929
  fi
7528
6930
 
7529
 
case $host_os in
7530
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7531
 
  *djgpp*)
7532
 
    lt_prog_compiler_pic=
7533
 
    ;;
7534
 
  *)
7535
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7536
 
    ;;
7537
 
esac
7538
6931
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7539
6932
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7540
6933
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
7545
 
 
7546
6934
#
7547
6935
# Check to make sure the PIC flag actually works.
7548
6936
#
7549
6937
if test -n "$lt_prog_compiler_pic"; then
7550
 
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6938
 
 
6939
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7551
6940
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7552
6941
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7553
6942
  echo $ECHO_N "(cached) $ECHO_C" >&6
7554
6943
else
7555
6944
  lt_cv_prog_compiler_pic_works=no
7556
 
   ac_outfile=conftest.$ac_objext
 
6945
  ac_outfile=conftest.$ac_objext
7557
6946
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7558
6947
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7559
6948
   # Insert the option either (1) after the last *FLAGS variable, or
7565
6954
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566
6955
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567
6956
   -e 's:$: $lt_compiler_flag:'`
7568
 
   (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
 
6957
   (eval echo "\"\$as_me:6957: $lt_compile\"" >&5)
7569
6958
   (eval "$lt_compile" 2>conftest.err)
7570
6959
   ac_status=$?
7571
6960
   cat conftest.err >&5
7572
 
   echo "$as_me:7572: \$? = $ac_status" >&5
 
6961
   echo "$as_me:6961: \$? = $ac_status" >&5
7573
6962
   if (exit $ac_status) && test -s "$ac_outfile"; then
7574
6963
     # The compiler can only warn and ignore the option if not recognized
7575
6964
     # So say no if there are warnings other than the usual output.
7576
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6965
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7577
6966
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7578
6967
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7579
6968
       lt_cv_prog_compiler_pic_works=yes
7580
6969
     fi
7581
6970
   fi
7582
 
   $RM conftest*
 
6971
   $rm conftest*
7583
6972
 
7584
6973
fi
7585
6974
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7596
6985
fi
7597
6986
 
7598
6987
fi
7599
 
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
 
6988
case $host_os in
 
6989
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6990
  *djgpp*)
 
6991
    lt_prog_compiler_pic=
 
6992
    ;;
 
6993
  *)
 
6994
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6995
    ;;
 
6996
esac
7604
6997
 
7605
6998
#
7606
6999
# Check to make sure the static flag actually works.
7621
7014
     if test -s conftest.err; then
7622
7015
       # Append any errors to the config.log.
7623
7016
       cat conftest.err 1>&5
7624
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7017
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7625
7018
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7626
7019
       if diff conftest.exp conftest.er2 >/dev/null; then
7627
7020
         lt_cv_prog_compiler_static_works=yes
7630
7023
       lt_cv_prog_compiler_static_works=yes
7631
7024
     fi
7632
7025
   fi
7633
 
   $RM -r conftest*
 
7026
   $rm -r conftest*
7634
7027
   LDFLAGS="$save_LDFLAGS"
7635
7028
 
7636
7029
fi
7644
7037
fi
7645
7038
 
7646
7039
 
7647
 
 
7648
 
 
7649
 
 
7650
 
 
7651
 
 
7652
 
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7653
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7654
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7655
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7656
 
else
7657
 
  lt_cv_prog_compiler_c_o=no
7658
 
   $RM -r conftest 2>/dev/null
7659
 
   mkdir conftest
7660
 
   cd conftest
7661
 
   mkdir out
7662
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7663
 
 
7664
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7665
 
   # Insert the option either (1) after the last *FLAGS variable, or
7666
 
   # (2) before a word containing "conftest.", or (3) at the end.
7667
 
   # Note that $ac_compile itself does not contain backslashes and begins
7668
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7669
 
   lt_compile=`echo "$ac_compile" | $SED \
7670
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7671
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7672
 
   -e 's:$: $lt_compiler_flag:'`
7673
 
   (eval echo "\"\$as_me:7673: $lt_compile\"" >&5)
7674
 
   (eval "$lt_compile" 2>out/conftest.err)
7675
 
   ac_status=$?
7676
 
   cat out/conftest.err >&5
7677
 
   echo "$as_me:7677: \$? = $ac_status" >&5
7678
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7679
 
   then
7680
 
     # The compiler can only warn and ignore the option if not recognized
7681
 
     # So say no if there are warnings
7682
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7683
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7684
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7685
 
       lt_cv_prog_compiler_c_o=yes
7686
 
     fi
7687
 
   fi
7688
 
   chmod u+w . 2>&5
7689
 
   $RM conftest*
7690
 
   # SGI C++ compiler will create directory out/ii_files/ for
7691
 
   # template instantiation
7692
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7693
 
   $RM out/* && rmdir out
7694
 
   cd ..
7695
 
   $RM -r conftest
7696
 
   $RM conftest*
7697
 
 
7698
 
fi
7699
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7700
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7708
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7709
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7710
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7711
 
else
7712
 
  lt_cv_prog_compiler_c_o=no
7713
 
   $RM -r conftest 2>/dev/null
7714
 
   mkdir conftest
7715
 
   cd conftest
7716
 
   mkdir out
7717
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7718
 
 
7719
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7720
 
   # Insert the option either (1) after the last *FLAGS variable, or
7721
 
   # (2) before a word containing "conftest.", or (3) at the end.
7722
 
   # Note that $ac_compile itself does not contain backslashes and begins
7723
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7724
 
   lt_compile=`echo "$ac_compile" | $SED \
7725
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7726
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7727
 
   -e 's:$: $lt_compiler_flag:'`
7728
 
   (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
7729
 
   (eval "$lt_compile" 2>out/conftest.err)
7730
 
   ac_status=$?
7731
 
   cat out/conftest.err >&5
7732
 
   echo "$as_me:7732: \$? = $ac_status" >&5
7733
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7734
 
   then
7735
 
     # The compiler can only warn and ignore the option if not recognized
7736
 
     # So say no if there are warnings
7737
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7738
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7739
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7740
 
       lt_cv_prog_compiler_c_o=yes
7741
 
     fi
7742
 
   fi
7743
 
   chmod u+w . 2>&5
7744
 
   $RM conftest*
7745
 
   # SGI C++ compiler will create directory out/ii_files/ for
7746
 
   # template instantiation
7747
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7748
 
   $RM out/* && rmdir out
7749
 
   cd ..
7750
 
   $RM -r conftest
7751
 
   $RM conftest*
7752
 
 
7753
 
fi
7754
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7755
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7756
 
 
7757
 
 
 
7040
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7041
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7042
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7044
else
 
7045
  lt_cv_prog_compiler_c_o=no
 
7046
   $rm -r conftest 2>/dev/null
 
7047
   mkdir conftest
 
7048
   cd conftest
 
7049
   mkdir out
 
7050
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7051
 
 
7052
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7053
   # Insert the option either (1) after the last *FLAGS variable, or
 
7054
   # (2) before a word containing "conftest.", or (3) at the end.
 
7055
   # Note that $ac_compile itself does not contain backslashes and begins
 
7056
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7057
   lt_compile=`echo "$ac_compile" | $SED \
 
7058
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7059
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7060
   -e 's:$: $lt_compiler_flag:'`
 
7061
   (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
 
7062
   (eval "$lt_compile" 2>out/conftest.err)
 
7063
   ac_status=$?
 
7064
   cat out/conftest.err >&5
 
7065
   echo "$as_me:7065: \$? = $ac_status" >&5
 
7066
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7067
   then
 
7068
     # The compiler can only warn and ignore the option if not recognized
 
7069
     # So say no if there are warnings
 
7070
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7071
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7072
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7073
       lt_cv_prog_compiler_c_o=yes
 
7074
     fi
 
7075
   fi
 
7076
   chmod u+w . 2>&5
 
7077
   $rm conftest*
 
7078
   # SGI C++ compiler will create directory out/ii_files/ for
 
7079
   # template instantiation
 
7080
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7081
   $rm out/* && rmdir out
 
7082
   cd ..
 
7083
   rmdir conftest
 
7084
   $rm conftest*
 
7085
 
 
7086
fi
 
7087
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7088
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7758
7089
 
7759
7090
 
7760
7091
hard_links="nottested"
7763
7094
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7764
7095
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7765
7096
  hard_links=yes
7766
 
  $RM conftest*
 
7097
  $rm conftest*
7767
7098
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768
7099
  touch conftest.a
7769
7100
  ln conftest.a conftest.b 2>&5 || hard_links=no
7779
7110
  need_locks=no
7780
7111
fi
7781
7112
 
7782
 
 
7783
 
 
7784
 
 
7785
 
 
7786
 
 
7787
 
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7113
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7788
7114
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7789
7115
 
7790
7116
  runpath_var=
7791
7117
  allow_undefined_flag=
7792
 
  always_export_symbols=no
 
7118
  enable_shared_with_static_runtimes=no
7793
7119
  archive_cmds=
7794
7120
  archive_expsym_cmds=
7795
 
  compiler_needs_object=no
7796
 
  enable_shared_with_static_runtimes=no
 
7121
  old_archive_From_new_cmds=
 
7122
  old_archive_from_expsyms_cmds=
7797
7123
  export_dynamic_flag_spec=
7798
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7799
 
  hardcode_automatic=no
7800
 
  hardcode_direct=no
7801
 
  hardcode_direct_absolute=no
 
7124
  whole_archive_flag_spec=
 
7125
  thread_safe_flag_spec=
7802
7126
  hardcode_libdir_flag_spec=
7803
7127
  hardcode_libdir_flag_spec_ld=
7804
7128
  hardcode_libdir_separator=
 
7129
  hardcode_direct=no
7805
7130
  hardcode_minus_L=no
7806
7131
  hardcode_shlibpath_var=unsupported
7807
 
  inherit_rpath=no
7808
7132
  link_all_deplibs=unknown
 
7133
  hardcode_automatic=no
7809
7134
  module_cmds=
7810
7135
  module_expsym_cmds=
7811
 
  old_archive_from_new_cmds=
7812
 
  old_archive_from_expsyms_cmds=
7813
 
  thread_safe_flag_spec=
7814
 
  whole_archive_flag_spec=
 
7136
  always_export_symbols=no
 
7137
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7815
7138
  # include_expsyms should be a list of space-separated symbols to be *always*
7816
7139
  # included in the symbol list
7817
7140
  include_expsyms=
7827
7150
  # preloaded symbol tables.
7828
7151
  # Exclude shared library initialization/finalization symbols.
7829
7152
  extract_expsyms_cmds=
 
7153
  # Just being paranoid about ensuring that cc_basename is set.
 
7154
  for cc_temp in $compiler""; do
 
7155
  case $cc_temp in
 
7156
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7157
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7158
    \-*) ;;
 
7159
    *) break;;
 
7160
  esac
 
7161
done
 
7162
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7830
7163
 
7831
7164
  case $host_os in
7832
7165
  cygwin* | mingw* | pw32*)
7855
7188
    # are reset later if shared libraries are not supported. Putting them
7856
7189
    # here allows them to be overridden if necessary.
7857
7190
    runpath_var=LD_RUN_PATH
7858
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7191
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7859
7192
    export_dynamic_flag_spec='${wl}--export-dynamic'
7860
7193
    # ancient GNU ld didn't support --whole-archive et. al.
7861
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7862
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7863
 
    else
7864
 
      whole_archive_flag_spec=
 
7194
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7195
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7196
      else
 
7197
        whole_archive_flag_spec=
7865
7198
    fi
7866
7199
    supports_anon_versioning=no
7867
 
    case `$LD -v 2>&1` in
 
7200
    case `$LD -v 2>/dev/null` in
7868
7201
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7869
7202
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7870
7203
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7878
7211
      # On AIX/PPC, the GNU linker is very broken
7879
7212
      if test "$host_cpu" != ia64; then
7880
7213
        ld_shlibs=no
7881
 
        cat <<_LT_EOF 1>&2
 
7214
        cat <<EOF 1>&2
7882
7215
 
7883
7216
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7884
7217
*** to be unable to reliably create shared libraries on AIX.
7886
7219
*** really care for shared libraries, you may want to modify your PATH
7887
7220
*** so that a non-GNU linker is found, and then restart.
7888
7221
 
7889
 
_LT_EOF
 
7222
EOF
7890
7223
      fi
7891
7224
      ;;
7892
7225
 
7893
7226
    amigaos*)
7894
 
      case $host_cpu in
7895
 
      powerpc)
7896
 
            # see comment about AmigaOS4 .so support
7897
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7898
 
            archive_expsym_cmds=''
7899
 
        ;;
7900
 
      m68k)
7901
 
            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)'
7902
 
            hardcode_libdir_flag_spec='-L$libdir'
7903
 
            hardcode_minus_L=yes
7904
 
        ;;
7905
 
      esac
 
7227
      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)'
 
7228
      hardcode_libdir_flag_spec='-L$libdir'
 
7229
      hardcode_minus_L=yes
 
7230
 
 
7231
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7232
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7233
      # to version 4, is to share data among multiple programs linked
 
7234
      # with the same dynamic library.  Since this doesn't match the
 
7235
      # behavior of shared libraries on other platforms, we can't use
 
7236
      # them.
 
7237
      ld_shlibs=no
7906
7238
      ;;
7907
7239
 
7908
7240
    beos*)
7909
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7241
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910
7242
        allow_undefined_flag=unsupported
7911
7243
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7912
7244
        # support --undefined.  This deserves some investigation.  FIXME
7917
7249
      ;;
7918
7250
 
7919
7251
    cygwin* | mingw* | pw32*)
7920
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7252
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7921
7253
      # as there is no search path for DLLs.
7922
7254
      hardcode_libdir_flag_spec='-L$libdir'
7923
7255
      allow_undefined_flag=unsupported
7924
7256
      always_export_symbols=no
7925
7257
      enable_shared_with_static_runtimes=yes
7926
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7258
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7927
7259
 
7928
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7260
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7929
7261
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7930
7262
        # If the export-symbols file already is a .def file (1st line
7931
7263
        # is EXPORTS), use it as is; otherwise, prepend...
7956
7288
      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'
7957
7289
      ;;
7958
7290
 
7959
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
7960
 
      tmp_diet=no
7961
 
      if test "$host_os" = linux-dietlibc; then
7962
 
        case $cc_basename in
7963
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7964
 
        esac
7965
 
      fi
7966
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7967
 
         && test "$tmp_diet" = no
7968
 
      then
 
7291
    gnu* | linux* | k*bsd*-gnu)
 
7292
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7969
7293
        tmp_addflag=
7970
 
        tmp_sharedflag='-shared'
7971
7294
        case $cc_basename,$host_cpu in
7972
 
        pgcc*)                          # Portland Group C compiler
7973
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7295
        pgcc*)                          # Portland Group C compiler
 
7296
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7974
7297
          tmp_addflag=' $pic_flag'
7975
7298
          ;;
7976
7299
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7977
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7300
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7978
7301
          tmp_addflag=' $pic_flag -Mnomain' ;;
7979
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
7302
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7980
7303
          tmp_addflag=' -i_dynamic' ;;
7981
7304
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7982
7305
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7983
7306
        ifc* | ifort*)                  # Intel Fortran compiler
7984
7307
          tmp_addflag=' -nofor_main' ;;
7985
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7986
 
          tmp_sharedflag='-qmkshrobj'
7987
 
          tmp_addflag= ;;
7988
7308
        esac
7989
7309
        case `$CC -V 2>&1 | sed 5q` in
7990
7310
        *Sun\ C*)                       # Sun C 5.9
7991
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7992
 
          compiler_needs_object=yes
 
7311
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7993
7312
          tmp_sharedflag='-G' ;;
7994
7313
        *Sun\ F*)                       # Sun Fortran 8.3
7995
7314
          tmp_sharedflag='-G' ;;
 
7315
        *)
 
7316
          tmp_sharedflag='-shared' ;;
7996
7317
        esac
7997
7318
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998
7319
 
7999
 
        if test "x$supports_anon_versioning" = xyes; then
8000
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8001
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8002
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8003
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8004
 
        fi
8005
 
 
8006
 
        case $cc_basename in
8007
 
        xlf*)
8008
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8009
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8010
 
          hardcode_libdir_flag_spec=
8011
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8012
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8013
 
          if test "x$supports_anon_versioning" = xyes; then
8014
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8015
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8016
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
8017
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8018
 
          fi
8019
 
          ;;
8020
 
        esac
 
7320
        if test $supports_anon_versioning = yes; then
 
7321
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7322
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7323
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7324
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7325
        fi
 
7326
        link_all_deplibs=no
8021
7327
      else
8022
 
        ld_shlibs=no
 
7328
        ld_shlibs=no
8023
7329
      fi
8024
7330
      ;;
8025
7331
 
8026
7332
    netbsd* | netbsdelf*-gnu)
8027
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7333
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8028
7334
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8029
7335
        wlarc=
8030
7336
      else
8034
7340
      ;;
8035
7341
 
8036
7342
    solaris*)
8037
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
7343
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8038
7344
        ld_shlibs=no
8039
 
        cat <<_LT_EOF 1>&2
 
7345
        cat <<EOF 1>&2
8040
7346
 
8041
7347
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8042
7348
*** create shared libraries on Solaris systems.  Therefore, libtool
8045
7351
*** your PATH or compiler configuration so that the native linker is
8046
7352
*** used, and then restart.
8047
7353
 
8048
 
_LT_EOF
8049
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7354
EOF
 
7355
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050
7356
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051
7357
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8052
7358
      else
8070
7376
_LT_EOF
8071
7377
        ;;
8072
7378
        *)
8073
 
          # For security reasons, it is highly recommended that you always
8074
 
          # use absolute paths for naming shared libraries, and exclude the
8075
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
8076
 
          # requires that you compile everything twice, which is a pain.
8077
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8078
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8079
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7379
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7380
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7381
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7382
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8081
7383
          else
8082
7384
            ld_shlibs=no
8083
7385
          fi
8093
7395
      ;;
8094
7396
 
8095
7397
    *)
8096
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7398
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097
7399
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098
7400
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099
7401
      else
8135
7437
      else
8136
7438
        # If we're using GNU nm, then we don't want the "-C" option.
8137
7439
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8138
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8139
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
7440
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7441
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8140
7442
        else
8141
 
          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'
 
7443
          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'
8142
7444
        fi
8143
7445
        aix_use_runtimelinking=no
8144
7446
 
8147
7449
        # need to do runtime linking.
8148
7450
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8149
7451
          for ld_flag in $LDFLAGS; do
8150
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8151
 
            aix_use_runtimelinking=yes
8152
 
            break
8153
 
          fi
 
7452
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7453
            aix_use_runtimelinking=yes
 
7454
            break
 
7455
          fi
8154
7456
          done
8155
7457
          ;;
8156
7458
        esac
8167
7469
 
8168
7470
      archive_cmds=''
8169
7471
      hardcode_direct=yes
8170
 
      hardcode_direct_absolute=yes
8171
7472
      hardcode_libdir_separator=':'
8172
7473
      link_all_deplibs=yes
8173
 
      file_list_spec='${wl}-f,'
8174
7474
 
8175
7475
      if test "$GCC" = yes; then
8176
7476
        case $host_os in aix4.[012]|aix4.[012].*)
8177
7477
        # We only want to do this on AIX 4.2 and lower, the check
8178
7478
        # below for broken collect2 doesn't work under 4.3+
8179
7479
          collect2name=`${CC} -print-prog-name=collect2`
8180
 
          if test -f "$collect2name" &&
8181
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
7480
          if test -f "$collect2name" && \
 
7481
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8182
7482
          then
8183
 
          # We have reworked collect2
8184
 
          :
 
7483
          # We have reworked collect2
 
7484
          :
8185
7485
          else
8186
 
          # We have old collect2
8187
 
          hardcode_direct=unsupported
8188
 
          # It fails to find uninstalled libraries when the uninstalled
8189
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8190
 
          # to unsupported forces relinking
8191
 
          hardcode_minus_L=yes
8192
 
          hardcode_libdir_flag_spec='-L$libdir'
8193
 
          hardcode_libdir_separator=
 
7486
          # We have old collect2
 
7487
          hardcode_direct=unsupported
 
7488
          # It fails to find uninstalled libraries when the uninstalled
 
7489
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7490
          # to unsupported forces relinking
 
7491
          hardcode_minus_L=yes
 
7492
          hardcode_libdir_flag_spec='-L$libdir'
 
7493
          hardcode_libdir_separator=
8194
7494
          fi
8195
7495
          ;;
8196
7496
        esac
8198
7498
        if test "$aix_use_runtimelinking" = yes; then
8199
7499
          shared_flag="$shared_flag "'${wl}-G'
8200
7500
        fi
8201
 
        link_all_deplibs=no
8202
7501
      else
8203
7502
        # not using gcc
8204
7503
        if test "$host_cpu" = ia64; then
8205
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8206
 
        # chokes on -Wl,-G. The following line is correct:
 
7504
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7505
        # chokes on -Wl,-G. The following line is correct:
8207
7506
          shared_flag='-G'
8208
7507
        else
8209
7508
          if test "$aix_use_runtimelinking" = yes; then
8221
7520
        # Warning - without using the other runtime loading flags (-brtl),
8222
7521
        # -berok will link without error, but may produce a broken library.
8223
7522
        allow_undefined_flag='-berok'
8224
 
        # Determine the default libpath from the value encoded in an
8225
 
        # empty executable.
8226
 
        cat >conftest.$ac_ext <<_ACEOF
 
7523
       # Determine the default libpath from the value encoded in an empty executable.
 
7524
       cat >conftest.$ac_ext <<_ACEOF
8227
7525
/* confdefs.h.  */
8228
7526
_ACEOF
8229
7527
cat confdefs.h >>conftest.$ac_ext
8280
7578
      conftest$ac_exeext conftest.$ac_ext
8281
7579
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8282
7580
 
8283
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8284
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8285
 
      else
 
7581
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7582
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7583
       else
8286
7584
        if test "$host_cpu" = ia64; then
8287
7585
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8288
7586
          allow_undefined_flag="-z nodefs"
8289
7587
          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"
8290
7588
        else
8291
 
         # Determine the default libpath from the value encoded in an
8292
 
         # empty executable.
 
7589
         # Determine the default libpath from the value encoded in an empty executable.
8293
7590
         cat >conftest.$ac_ext <<_ACEOF
8294
7591
/* confdefs.h.  */
8295
7592
_ACEOF
8362
7659
      ;;
8363
7660
 
8364
7661
    amigaos*)
8365
 
      case $host_cpu in
8366
 
      powerpc)
8367
 
            # see comment about AmigaOS4 .so support
8368
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369
 
            archive_expsym_cmds=''
8370
 
        ;;
8371
 
      m68k)
8372
 
            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)'
8373
 
            hardcode_libdir_flag_spec='-L$libdir'
8374
 
            hardcode_minus_L=yes
8375
 
        ;;
8376
 
      esac
 
7662
      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)'
 
7663
      hardcode_libdir_flag_spec='-L$libdir'
 
7664
      hardcode_minus_L=yes
 
7665
      # see comment about different semantics on the GNU ld section
 
7666
      ld_shlibs=no
8377
7667
      ;;
8378
7668
 
8379
7669
    bsdi[45]*)
8392
7682
      # Tell ltmain to make .dll files, not .so files.
8393
7683
      shrext_cmds=".dll"
8394
7684
      # FIXME: Setting linknames here is a bad hack.
8395
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7685
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8396
7686
      # The linker will automatically build a .lib file if we build a DLL.
8397
 
      old_archive_from_new_cmds='true'
 
7687
      old_archive_From_new_cmds='true'
8398
7688
      # FIXME: Should let the user specify the lib program.
8399
7689
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8400
7690
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8402
7692
      ;;
8403
7693
 
8404
7694
    darwin* | rhapsody*)
8405
 
 
8406
 
 
8407
 
  archive_cmds_need_lc=no
8408
 
  hardcode_direct=no
8409
 
  hardcode_automatic=yes
8410
 
  hardcode_shlibpath_var=unsupported
8411
 
  whole_archive_flag_spec=''
8412
 
  link_all_deplibs=yes
8413
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
8414
 
  if test "$GCC" = "yes"; then
8415
 
    output_verbose_link_cmd=echo
8416
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8417
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8418
 
    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}"
8419
 
    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}"
8420
 
 
8421
 
  else
8422
 
  ld_shlibs=no
8423
 
  fi
8424
 
 
 
7695
      case $host_os in
 
7696
        rhapsody* | darwin1.[012])
 
7697
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7698
         ;;
 
7699
       *) # Darwin 1.3 on
 
7700
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7701
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7702
         else
 
7703
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7704
             10.[012])
 
7705
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7706
               ;;
 
7707
             10.*)
 
7708
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7709
               ;;
 
7710
           esac
 
7711
         fi
 
7712
         ;;
 
7713
      esac
 
7714
      archive_cmds_need_lc=no
 
7715
      hardcode_direct=no
 
7716
      hardcode_automatic=yes
 
7717
      hardcode_shlibpath_var=unsupported
 
7718
      whole_archive_flag_spec=''
 
7719
      link_all_deplibs=yes
 
7720
    if test "$GCC" = yes ; then
 
7721
        output_verbose_link_cmd='echo'
 
7722
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
7723
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
7724
        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}"
 
7725
        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}"
 
7726
    else
 
7727
      case $cc_basename in
 
7728
        xlc*)
 
7729
         output_verbose_link_cmd='echo'
 
7730
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
7731
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7732
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7733
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7734
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7735
          ;;
 
7736
       *)
 
7737
         ld_shlibs=no
 
7738
          ;;
 
7739
      esac
 
7740
    fi
8425
7741
      ;;
8426
7742
 
8427
7743
    dgux*)
8463
7779
 
8464
7780
    hpux9*)
8465
7781
      if test "$GCC" = yes; then
8466
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7782
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8467
7783
      else
8468
 
        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'
 
7784
        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'
8469
7785
      fi
8470
7786
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8471
7787
      hardcode_libdir_separator=:
8485
7801
      fi
8486
7802
      if test "$with_gnu_ld" = no; then
8487
7803
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8488
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
8489
7804
        hardcode_libdir_separator=:
 
7805
 
8490
7806
        hardcode_direct=yes
8491
 
        hardcode_direct_absolute=yes
8492
7807
        export_dynamic_flag_spec='${wl}-E'
 
7808
 
8493
7809
        # hardcode_minus_L: Not really in the search PATH,
8494
7810
        # but as the default location of the library.
8495
7811
        hardcode_minus_L=yes
8528
7844
 
8529
7845
        case $host_cpu in
8530
7846
        hppa*64*|ia64*)
 
7847
          hardcode_libdir_flag_spec_ld='+b $libdir'
8531
7848
          hardcode_direct=no
8532
7849
          hardcode_shlibpath_var=no
8533
7850
          ;;
8534
7851
        *)
8535
7852
          hardcode_direct=yes
8536
 
          hardcode_direct_absolute=yes
8537
7853
          export_dynamic_flag_spec='${wl}-E'
8538
7854
 
8539
7855
          # hardcode_minus_L: Not really in the search PATH,
8546
7862
 
8547
7863
    irix5* | irix6* | nonstopux*)
8548
7864
      if test "$GCC" = yes; then
8549
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8550
 
        # Try to use the -exported_symbol ld option, if it does not
8551
 
        # work, assume that -exports_file does not work either and
8552
 
        # implicitly export all symbols.
8553
 
        save_LDFLAGS="$LDFLAGS"
8554
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8555
 
        cat >conftest.$ac_ext <<_ACEOF
8556
 
int foo(void) {}
8557
 
_ACEOF
8558
 
rm -f conftest.$ac_objext conftest$ac_exeext
8559
 
if { (ac_try="$ac_link"
8560
 
case "(($ac_try" in
8561
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562
 
  *) ac_try_echo=$ac_try;;
8563
 
esac
8564
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565
 
  (eval "$ac_link") 2>conftest.er1
8566
 
  ac_status=$?
8567
 
  grep -v '^ *+' conftest.er1 >conftest.err
8568
 
  rm -f conftest.er1
8569
 
  cat conftest.err >&5
8570
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571
 
  (exit $ac_status); } && {
8572
 
         test -z "$ac_c_werror_flag" ||
8573
 
         test ! -s conftest.err
8574
 
       } && test -s conftest$ac_exeext &&
8575
 
       $as_test_x conftest$ac_exeext; then
8576
 
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8577
 
 
8578
 
else
8579
 
  echo "$as_me: failed program was:" >&5
8580
 
sed 's/^/| /' conftest.$ac_ext >&5
8581
 
 
8582
 
 
8583
 
fi
8584
 
 
8585
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8586
 
      conftest$ac_exeext conftest.$ac_ext
8587
 
        LDFLAGS="$save_LDFLAGS"
 
7865
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8588
7866
      else
8589
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8590
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
7867
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7868
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8591
7869
      fi
8592
 
      archive_cmds_need_lc='no'
8593
7870
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594
7871
      hardcode_libdir_separator=:
8595
 
      inherit_rpath=yes
8596
7872
      link_all_deplibs=yes
8597
7873
      ;;
8598
7874
 
8599
7875
    netbsd* | netbsdelf*-gnu)
8600
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7876
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8601
7877
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8602
7878
      else
8603
7879
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8615
7891
      hardcode_shlibpath_var=no
8616
7892
      ;;
8617
7893
 
8618
 
    *nto* | *qnx*)
8619
 
      ;;
8620
 
 
8621
7894
    openbsd*)
8622
7895
      if test -f /usr/libexec/ld.so; then
8623
7896
        hardcode_direct=yes
8624
7897
        hardcode_shlibpath_var=no
8625
 
        hardcode_direct_absolute=yes
8626
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7898
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627
7899
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8628
7900
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8629
7901
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8639
7911
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640
7912
             ;;
8641
7913
          esac
8642
 
        fi
 
7914
        fi
8643
7915
      else
8644
7916
        ld_shlibs=no
8645
7917
      fi
8649
7921
      hardcode_libdir_flag_spec='-L$libdir'
8650
7922
      hardcode_minus_L=yes
8651
7923
      allow_undefined_flag=unsupported
8652
 
      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'
8653
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7924
      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'
 
7925
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8654
7926
      ;;
8655
7927
 
8656
7928
    osf3*)
8657
7929
      if test "$GCC" = yes; then
8658
7930
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8659
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7931
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8660
7932
      else
8661
7933
        allow_undefined_flag=' -expect_unresolved \*'
8662
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7934
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8663
7935
      fi
8664
 
      archive_cmds_need_lc='no'
8665
7936
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666
7937
      hardcode_libdir_separator=:
8667
7938
      ;;
8669
7940
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8670
7941
      if test "$GCC" = yes; then
8671
7942
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8672
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7943
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8673
7944
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674
7945
      else
8675
7946
        allow_undefined_flag=' -expect_unresolved \*'
8676
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8677
 
        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~
8678
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
7947
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7948
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7949
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8679
7950
 
8680
7951
        # Both c and cxx compiler support -rpath directly
8681
7952
        hardcode_libdir_flag_spec='-rpath $libdir'
8682
7953
      fi
8683
 
      archive_cmds_need_lc='no'
8684
7954
      hardcode_libdir_separator=:
8685
7955
      ;;
8686
7956
 
8687
7957
    solaris*)
8688
 
      no_undefined_flag=' -z defs'
 
7958
      no_undefined_flag=' -z text'
8689
7959
      if test "$GCC" = yes; then
8690
7960
        wlarc='${wl}'
8691
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8693
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
7961
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7962
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7963
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8694
7964
      else
8695
 
        case `$CC -V 2>&1` in
8696
 
        *"Compilers 5.0"*)
8697
 
          wlarc=''
8698
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8700
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8701
 
          ;;
8702
 
        *)
8703
 
          wlarc='${wl}'
8704
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8705
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8706
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8707
 
          ;;
8708
 
        esac
 
7965
        wlarc=''
 
7966
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7967
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7968
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8709
7969
      fi
8710
7970
      hardcode_libdir_flag_spec='-R$libdir'
8711
7971
      hardcode_shlibpath_var=no
8715
7975
        # The compiler driver will combine and reorder linker options,
8716
7976
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8717
7977
        # but is careful enough not to reorder.
8718
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7978
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8719
7979
        if test "$GCC" = yes; then
8720
7980
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8721
7981
        else
8804
8064
      allow_undefined_flag='${wl}-z,nodefs'
8805
8065
      archive_cmds_need_lc=no
8806
8066
      hardcode_shlibpath_var=no
8807
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
8067
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8808
8068
      hardcode_libdir_separator=':'
8809
8069
      link_all_deplibs=yes
8810
8070
      export_dynamic_flag_spec='${wl}-Bexport'
8811
8071
      runpath_var='LD_RUN_PATH'
8812
8072
 
8813
8073
      if test "$GCC" = yes; then
8814
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8074
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8075
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816
8076
      else
8817
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8077
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8078
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819
8079
      fi
8820
8080
      ;;
8821
8081
 
8829
8089
      ld_shlibs=no
8830
8090
      ;;
8831
8091
    esac
8832
 
 
8833
 
    if test x$host_vendor = xsni; then
8834
 
      case $host in
8835
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8836
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8837
 
        ;;
8838
 
      esac
8839
 
    fi
8840
8092
  fi
8841
8093
 
8842
8094
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8843
8095
echo "${ECHO_T}$ld_shlibs" >&6; }
8844
8096
test "$ld_shlibs" = no && can_build_shared=no
8845
8097
 
8846
 
with_gnu_ld=$with_gnu_ld
8847
 
 
8848
 
 
8849
 
 
8850
 
 
8851
 
 
8852
 
 
8853
 
 
8854
 
 
8855
 
 
8856
 
 
8857
 
 
8858
 
 
8859
 
 
8860
 
 
8861
 
 
8862
8098
#
8863
8099
# Do we need to explicitly link libc?
8864
8100
#
8878
8114
      # to ld, don't add -lc before -lgcc.
8879
8115
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8880
8116
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8881
 
      $RM conftest*
 
8117
      $rm conftest*
8882
8118
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8119
 
8884
8120
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899
8135
        libname=conftest
8900
8136
        lt_save_allow_undefined_flag=$allow_undefined_flag
8901
8137
        allow_undefined_flag=
8902
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8903
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8138
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8139
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8904
8140
  ac_status=$?
8905
8141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
8142
  (exit $ac_status); }
8913
8149
      else
8914
8150
        cat conftest.err 1>&5
8915
8151
      fi
8916
 
      $RM conftest*
 
8152
      $rm conftest*
8917
8153
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8918
8154
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8919
8155
      ;;
8922
8158
  ;;
8923
8159
esac
8924
8160
 
8925
 
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
 
 
8935
 
 
8936
 
 
8937
 
 
8938
 
 
8939
 
 
8940
 
 
8941
 
 
8942
 
 
8943
 
 
8944
 
 
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
 
 
8951
 
 
8952
 
 
8953
 
 
8954
 
 
8955
 
 
8956
 
 
8957
 
 
8958
 
 
8959
 
 
8960
 
 
8961
 
 
8962
 
 
8963
 
 
8964
 
 
8965
 
 
8966
 
 
8967
 
 
8968
 
 
8969
 
 
8970
 
 
8971
 
 
8972
 
 
8973
 
 
8974
 
 
8975
 
 
8976
 
 
8977
 
 
8978
 
 
8979
 
 
8980
 
 
8981
 
 
8982
 
 
8983
 
 
8984
 
 
8985
 
 
8986
 
 
8987
 
 
8988
 
 
8989
 
 
8990
 
 
8991
 
 
8992
 
 
8993
 
 
8994
 
 
8995
 
 
8996
 
 
8997
 
 
8998
 
 
8999
 
 
9000
 
 
9001
 
 
9002
 
 
9003
 
 
9004
 
 
9005
 
 
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
 
 
9012
 
 
9013
 
 
9014
 
 
9015
 
 
9016
 
 
9017
 
 
9018
 
 
9019
 
 
9020
 
 
9021
 
 
9022
 
 
9023
 
 
9024
 
 
9025
 
 
9026
 
 
9027
 
 
9028
 
 
9029
 
 
9030
 
 
9031
 
 
9032
 
 
9033
 
 
9034
 
 
9035
 
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
 
 
9041
 
 
9042
 
 
9043
 
 
9044
 
 
9045
 
 
9046
 
 
9047
 
 
9048
 
 
9049
 
 
9050
 
 
9051
 
 
9052
 
 
9053
 
 
9054
 
 
9055
 
 
9056
 
 
9057
 
 
9058
 
 
9059
 
 
9060
 
 
9061
 
 
9062
 
 
9063
 
 
9064
 
 
9065
 
 
9066
 
 
9067
 
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
 
 
9074
 
 
9075
 
 
9076
 
 
9077
 
 
9078
 
 
9079
 
 
9080
 
 
9081
 
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8161
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9082
8162
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8163
library_names_spec=
 
8164
libname_spec='lib$name'
 
8165
soname_spec=
 
8166
shrext_cmds=".so"
 
8167
postinstall_cmds=
 
8168
postuninstall_cmds=
 
8169
finish_cmds=
 
8170
finish_eval=
 
8171
shlibpath_var=
 
8172
shlibpath_overrides_runpath=unknown
 
8173
version_type=none
 
8174
dynamic_linker="$host_os ld.so"
 
8175
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9083
8176
 
9084
8177
if test "$GCC" = yes; then
9085
8178
  case $host_os in
9087
8180
    *) lt_awk_arg="/^libraries:/" ;;
9088
8181
  esac
9089
8182
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9090
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
8183
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9091
8184
    # if the path contains ";" then we assume it to be the separator
9092
8185
    # otherwise default to the standard path separator (i.e. ":") - it is
9093
8186
    # assumed that no part of a normal pathname contains ";" but that should
9094
8187
    # okay in the real world where ";" in dirpaths is itself problematic.
9095
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8188
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9096
8189
  else
9097
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8190
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9098
8191
  fi
9099
8192
  # Ok, now we have the path, separated by spaces, we can step through it
9100
8193
  # and add multilib dir if necessary.
9108
8201
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9109
8202
    fi
9110
8203
  done
9111
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
8204
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9112
8205
BEGIN {RS=" "; FS="/|\n";} {
9113
8206
  lt_foo="";
9114
8207
  lt_count=0;
9128
8221
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9129
8222
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9130
8223
}'`
9131
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
8224
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9132
8225
else
9133
8226
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9134
8227
fi
9135
 
library_names_spec=
9136
 
libname_spec='lib$name'
9137
 
soname_spec=
9138
 
shrext_cmds=".so"
9139
 
postinstall_cmds=
9140
 
postuninstall_cmds=
9141
 
finish_cmds=
9142
 
finish_eval=
9143
 
shlibpath_var=
9144
 
shlibpath_overrides_runpath=unknown
9145
 
version_type=none
9146
 
dynamic_linker="$host_os ld.so"
9147
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9148
8228
need_lib_prefix=unknown
9149
8229
hardcode_into_libs=no
9150
8230
 
9181
8261
      aix4 | aix4.[01] | aix4.[01].*)
9182
8262
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9183
8263
           echo ' yes '
9184
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
8264
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9185
8265
        :
9186
8266
      else
9187
8267
        can_build_shared=no
9207
8287
  ;;
9208
8288
 
9209
8289
amigaos*)
9210
 
  case $host_cpu in
9211
 
  powerpc)
9212
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9213
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9214
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215
 
    ;;
9216
 
  m68k)
9217
 
    library_names_spec='$libname.ixlibrary $libname.a'
9218
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9219
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9220
 
    ;;
9221
 
  esac
 
8290
  library_names_spec='$libname.ixlibrary $libname.a'
 
8291
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8292
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9222
8293
  ;;
9223
8294
 
9224
8295
beos*)
9252
8323
    library_names_spec='$libname.dll.a'
9253
8324
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9254
8325
    postinstall_cmds='base_file=`basename \${file}`~
9255
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
8326
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9256
8327
      dldir=$destdir/`dirname \$dlpath`~
9257
8328
      test -d \$dldir || mkdir -p \$dldir~
9258
8329
      $install_prog $dir/$dlname \$dldir/$dlname~
9259
 
      chmod a+x \$dldir/$dlname~
9260
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9261
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9262
 
      fi'
 
8330
      chmod a+x \$dldir/$dlname'
9263
8331
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9264
8332
      dlpath=$dir/\$dldll~
9265
 
       $RM \$dlpath'
 
8333
       $rm \$dlpath'
9266
8334
    shlibpath_overrides_runpath=yes
9267
8335
 
9268
8336
    case $host_os in
9274
8342
    mingw*)
9275
8343
      # MinGW DLLs use traditional 'lib' prefix
9276
8344
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
8345
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8346
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9279
8347
        # It is most probably a Windows format PATH printed by
9280
8348
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9281
8349
        # path with ; separators, and with drive letters. We can handle the
9282
8350
        # drive letters (cygwin fileutils understands them), so leave them,
9283
8351
        # especially as we might pass files found there to a mingw objdump,
9284
8352
        # which wouldn't understand a cygwinified path. Ahh.
9285
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8353
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9286
8354
      else
9287
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8355
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9288
8356
      fi
9289
8357
      ;;
9290
8358
    pw32*)
9308
8376
  version_type=darwin
9309
8377
  need_lib_prefix=no
9310
8378
  need_version=no
9311
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8379
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9312
8380
  soname_spec='${libname}${release}${major}$shared_ext'
9313
8381
  shlibpath_overrides_runpath=yes
9314
8382
  shlibpath_var=DYLD_LIBRARY_PATH
9407
8475
    fi
9408
8476
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409
8477
    ;;
9410
 
  hppa*64*)
9411
 
    shrext_cmds='.sl'
9412
 
    hardcode_into_libs=yes
9413
 
    dynamic_linker="$host_os dld.sl"
9414
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9415
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9416
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417
 
    soname_spec='${libname}${release}${shared_ext}$major'
9418
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9419
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9420
 
    ;;
9421
 
  *)
 
8478
   hppa*64*)
 
8479
     shrext_cmds='.sl'
 
8480
     hardcode_into_libs=yes
 
8481
     dynamic_linker="$host_os dld.sl"
 
8482
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8483
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8484
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8485
     soname_spec='${libname}${release}${shared_ext}$major'
 
8486
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8487
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8488
     ;;
 
8489
   *)
9422
8490
    shrext_cmds='.sl'
9423
8491
    dynamic_linker="$host_os dld.sl"
9424
8492
    shlibpath_var=SHLIB_PATH
9495
8563
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9496
8564
  shlibpath_var=LD_LIBRARY_PATH
9497
8565
  shlibpath_overrides_runpath=no
9498
 
  # Some binutils ld are patched to set DT_RUNPATH
9499
 
  save_LDFLAGS=$LDFLAGS
9500
 
  save_libdir=$libdir
9501
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9502
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9503
 
  cat >conftest.$ac_ext <<_ACEOF
9504
 
/* confdefs.h.  */
9505
 
_ACEOF
9506
 
cat confdefs.h >>conftest.$ac_ext
9507
 
cat >>conftest.$ac_ext <<_ACEOF
9508
 
/* end confdefs.h.  */
9509
 
 
9510
 
int
9511
 
main ()
9512
 
{
9513
 
 
9514
 
  ;
9515
 
  return 0;
9516
 
}
9517
 
_ACEOF
9518
 
rm -f conftest.$ac_objext conftest$ac_exeext
9519
 
if { (ac_try="$ac_link"
9520
 
case "(($ac_try" in
9521
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522
 
  *) ac_try_echo=$ac_try;;
9523
 
esac
9524
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525
 
  (eval "$ac_link") 2>conftest.er1
9526
 
  ac_status=$?
9527
 
  grep -v '^ *+' conftest.er1 >conftest.err
9528
 
  rm -f conftest.er1
9529
 
  cat conftest.err >&5
9530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531
 
  (exit $ac_status); } && {
9532
 
         test -z "$ac_c_werror_flag" ||
9533
 
         test ! -s conftest.err
9534
 
       } && test -s conftest$ac_exeext &&
9535
 
       $as_test_x conftest$ac_exeext; then
9536
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9537
 
  shlibpath_overrides_runpath=yes
9538
 
fi
9539
 
 
9540
 
else
9541
 
  echo "$as_me: failed program was:" >&5
9542
 
sed 's/^/| /' conftest.$ac_ext >&5
9543
 
 
9544
 
 
9545
 
fi
9546
 
 
9547
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548
 
      conftest$ac_exeext conftest.$ac_ext
9549
 
  LDFLAGS=$save_LDFLAGS
9550
 
  libdir=$save_libdir
9551
 
 
9552
8566
  # This implies no fast_install, which is unacceptable.
9553
8567
  # Some rework will be needed to allow for fast_install
9554
8568
  # before this can be enabled.
9556
8570
 
9557
8571
  # Append ld.so.conf contents to the search path
9558
8572
  if test -f /etc/ld.so.conf; then
9559
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8573
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9560
8574
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9561
8575
  fi
9562
8576
 
9585
8599
  version_type=sunos
9586
8600
  need_lib_prefix=no
9587
8601
  need_version=no
9588
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8602
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589
8603
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590
8604
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9591
8605
    dynamic_linker='NetBSD (a.out) ld.so'
9606
8620
  shlibpath_overrides_runpath=yes
9607
8621
  ;;
9608
8622
 
9609
 
*nto* | *qnx*)
9610
 
  version_type=qnx
 
8623
nto-qnx*)
 
8624
  version_type=linux
9611
8625
  need_lib_prefix=no
9612
8626
  need_version=no
9613
8627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614
8628
  soname_spec='${libname}${release}${shared_ext}$major'
9615
8629
  shlibpath_var=LD_LIBRARY_PATH
9616
 
  shlibpath_overrides_runpath=no
9617
 
  hardcode_into_libs=yes
9618
 
  dynamic_linker='ldqnx.so'
 
8630
  shlibpath_overrides_runpath=yes
9619
8631
  ;;
9620
8632
 
9621
8633
openbsd*)
9624
8636
  need_lib_prefix=no
9625
8637
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9626
8638
  case $host_os in
9627
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9628
 
    *)                          need_version=no  ;;
 
8639
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8640
    *)                         need_version=no  ;;
9629
8641
  esac
9630
8642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631
8643
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632
8644
  shlibpath_var=LD_LIBRARY_PATH
9633
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8645
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634
8646
    case $host_os in
9635
8647
      openbsd2.[89] | openbsd2.[89].*)
9636
8648
        shlibpath_overrides_runpath=no
9702
8714
    sni)
9703
8715
      shlibpath_overrides_runpath=no
9704
8716
      need_lib_prefix=no
 
8717
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9705
8718
      runpath_var=LD_RUN_PATH
9706
8719
      ;;
9707
8720
    siemens)
9732
8745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733
8746
  soname_spec='${libname}${release}${shared_ext}$major'
9734
8747
  shlibpath_var=LD_LIBRARY_PATH
9735
 
  shlibpath_overrides_runpath=yes
9736
8748
  hardcode_into_libs=yes
9737
8749
  if test "$with_gnu_ld" = yes; then
9738
8750
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8751
    shlibpath_overrides_runpath=no
9739
8752
  else
9740
8753
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8754
    shlibpath_overrides_runpath=yes
9741
8755
    case $host_os in
9742
8756
      sco3.2v5*)
9743
8757
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9747
8761
  sys_lib_dlsearch_path_spec='/usr/lib'
9748
8762
  ;;
9749
8763
 
9750
 
tpf*)
9751
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9752
 
  version_type=linux
9753
 
  need_lib_prefix=no
9754
 
  need_version=no
9755
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756
 
  shlibpath_var=LD_LIBRARY_PATH
9757
 
  shlibpath_overrides_runpath=no
9758
 
  hardcode_into_libs=yes
9759
 
  ;;
9760
 
 
9761
8764
uts4*)
9762
8765
  version_type=linux
9763
8766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773
8776
echo "${ECHO_T}$dynamic_linker" >&6; }
9774
8777
test "$dynamic_linker" = no && can_build_shared=no
9775
8778
 
 
8779
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
8780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8781
else
 
8782
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
8783
fi
 
8784
 
 
8785
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
8786
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
8787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8788
else
 
8789
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
8790
fi
 
8791
 
 
8792
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
8793
 
9776
8794
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9777
8795
if test "$GCC" = yes; then
9778
8796
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9779
8797
fi
9780
8798
 
9781
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9782
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9783
 
fi
9784
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9785
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9786
 
fi
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
 
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
 
 
9801
 
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
 
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
 
 
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
 
 
9829
 
 
9830
 
 
9831
 
 
9832
 
 
9833
 
 
9834
 
 
9835
 
 
9836
 
 
9837
 
 
9838
 
 
9839
 
 
9840
 
 
9841
 
 
9842
 
 
9843
 
 
9844
 
 
9845
 
 
9846
 
 
9847
 
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8799
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9875
8800
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9876
8801
hardcode_action=
9877
 
if test -n "$hardcode_libdir_flag_spec" ||
9878
 
   test -n "$runpath_var" ||
 
8802
if test -n "$hardcode_libdir_flag_spec" || \
 
8803
   test -n "$runpath_var" || \
9879
8804
   test "X$hardcode_automatic" = "Xyes" ; then
9880
8805
 
9881
 
  # We can hardcode non-existent directories.
 
8806
  # We can hardcode non-existant directories.
9882
8807
  if test "$hardcode_direct" != no &&
9883
8808
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9884
8809
     # have to relink, otherwise we might link with an installed library
9885
8810
     # when we should be linking with a yet-to-be-installed one
9886
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8811
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9887
8812
     test "$hardcode_minus_L" != no; then
9888
8813
    # Linking always hardcodes the temporary library directory.
9889
8814
    hardcode_action=relink
9899
8824
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9900
8825
echo "${ECHO_T}$hardcode_action" >&6; }
9901
8826
 
9902
 
if test "$hardcode_action" = relink ||
9903
 
   test "$inherit_rpath" = yes; then
 
8827
if test "$hardcode_action" = relink; then
9904
8828
  # Fast installation is not supported
9905
8829
  enable_fast_install=no
9906
8830
elif test "$shlibpath_overrides_runpath" = yes ||
9909
8833
  enable_fast_install=needless
9910
8834
fi
9911
8835
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
  if test "x$enable_dlopen" != xyes; then
 
8836
striplib=
 
8837
old_striplib=
 
8838
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8839
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
8840
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8841
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8842
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8843
  { echo "$as_me:$LINENO: result: yes" >&5
 
8844
echo "${ECHO_T}yes" >&6; }
 
8845
else
 
8846
# FIXME - insert some real tests, host_os isn't really good enough
 
8847
  case $host_os in
 
8848
   darwin*)
 
8849
       if test -n "$STRIP" ; then
 
8850
         striplib="$STRIP -x"
 
8851
         old_striplib="$STRIP -S"
 
8852
         { echo "$as_me:$LINENO: result: yes" >&5
 
8853
echo "${ECHO_T}yes" >&6; }
 
8854
       else
 
8855
  { echo "$as_me:$LINENO: result: no" >&5
 
8856
echo "${ECHO_T}no" >&6; }
 
8857
fi
 
8858
       ;;
 
8859
   *)
 
8860
  { echo "$as_me:$LINENO: result: no" >&5
 
8861
echo "${ECHO_T}no" >&6; }
 
8862
    ;;
 
8863
  esac
 
8864
fi
 
8865
 
 
8866
if test "x$enable_dlopen" != xyes; then
9918
8867
  enable_dlopen=unknown
9919
8868
  enable_dlopen_self=unknown
9920
8869
  enable_dlopen_self_static=unknown
9932
8881
  mingw* | pw32*)
9933
8882
    lt_cv_dlopen="LoadLibrary"
9934
8883
    lt_cv_dlopen_libs=
9935
 
    ;;
 
8884
   ;;
9936
8885
 
9937
8886
  cygwin*)
9938
8887
    lt_cv_dlopen="dlopen"
9939
8888
    lt_cv_dlopen_libs=
9940
 
    ;;
 
8889
   ;;
9941
8890
 
9942
8891
  darwin*)
9943
8892
  # if libdl is installed we need to link against it
10012
8961
 
10013
8962
fi
10014
8963
 
10015
 
    ;;
 
8964
   ;;
10016
8965
 
10017
8966
  *)
10018
8967
    { echo "$as_me:$LINENO: checking for shl_load" >&5
10485
9434
else
10486
9435
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10487
9436
  lt_status=$lt_dlunknown
10488
 
  cat > conftest.$ac_ext <<_LT_EOF
10489
 
#line 10489 "configure"
 
9437
  cat > conftest.$ac_ext <<EOF
 
9438
#line 9438 "configure"
10490
9439
#include "confdefs.h"
10491
9440
 
10492
9441
#if HAVE_DLFCN_H
10548
9497
 
10549
9498
    exit (status);
10550
9499
}
10551
 
_LT_EOF
 
9500
EOF
10552
9501
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553
9502
  (eval $ac_link) 2>&5
10554
9503
  ac_status=$?
10585
9534
else
10586
9535
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587
9536
  lt_status=$lt_dlunknown
10588
 
  cat > conftest.$ac_ext <<_LT_EOF
10589
 
#line 10589 "configure"
 
9537
  cat > conftest.$ac_ext <<EOF
 
9538
#line 9538 "configure"
10590
9539
#include "confdefs.h"
10591
9540
 
10592
9541
#if HAVE_DLFCN_H
10648
9597
 
10649
9598
    exit (status);
10650
9599
}
10651
 
_LT_EOF
 
9600
EOF
10652
9601
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653
9602
  (eval $ac_link) 2>&5
10654
9603
  ac_status=$?
10692
9641
fi
10693
9642
 
10694
9643
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
striplib=
10711
 
old_striplib=
10712
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10713
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10714
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10715
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10716
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10717
 
  { echo "$as_me:$LINENO: result: yes" >&5
10718
 
echo "${ECHO_T}yes" >&6; }
10719
 
else
10720
 
# FIXME - insert some real tests, host_os isn't really good enough
10721
 
  case $host_os in
10722
 
  darwin*)
10723
 
    if test -n "$STRIP" ; then
10724
 
      striplib="$STRIP -x"
10725
 
      old_striplib="$STRIP -S"
10726
 
      { echo "$as_me:$LINENO: result: yes" >&5
10727
 
echo "${ECHO_T}yes" >&6; }
10728
 
    else
10729
 
      { echo "$as_me:$LINENO: result: no" >&5
10730
 
echo "${ECHO_T}no" >&6; }
10731
 
    fi
10732
 
    ;;
10733
 
  *)
10734
 
    { echo "$as_me:$LINENO: result: no" >&5
10735
 
echo "${ECHO_T}no" >&6; }
10736
 
    ;;
10737
 
  esac
10738
 
fi
10739
 
 
10740
 
 
10741
 
 
10742
 
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
 
 
10748
 
 
10749
 
 
10750
 
 
10751
 
  # Report which library types will actually be built
10752
 
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9644
# Report which library types will actually be built
 
9645
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10753
9646
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10754
 
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9647
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10755
9648
echo "${ECHO_T}$can_build_shared" >&6; }
10756
9649
 
10757
 
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9650
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10758
9651
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10759
 
  test "$can_build_shared" = "no" && enable_shared=no
10760
 
 
10761
 
  # On AIX, shared libraries and static libraries use the same namespace, and
10762
 
  # are all built from PIC.
10763
 
  case $host_os in
10764
 
  aix3*)
 
9652
test "$can_build_shared" = "no" && enable_shared=no
 
9653
 
 
9654
# On AIX, shared libraries and static libraries use the same namespace, and
 
9655
# are all built from PIC.
 
9656
case $host_os in
 
9657
aix3*)
 
9658
  test "$enable_shared" = yes && enable_static=no
 
9659
  if test -n "$RANLIB"; then
 
9660
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9661
    postinstall_cmds='$RANLIB $lib'
 
9662
  fi
 
9663
  ;;
 
9664
 
 
9665
aix[4-9]*)
 
9666
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10765
9667
    test "$enable_shared" = yes && enable_static=no
10766
 
    if test -n "$RANLIB"; then
10767
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10768
 
      postinstall_cmds='$RANLIB $lib'
10769
 
    fi
10770
 
    ;;
10771
 
 
10772
 
  aix[4-9]*)
10773
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10774
 
      test "$enable_shared" = yes && enable_static=no
10775
 
    fi
10776
 
    ;;
10777
 
  esac
10778
 
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9668
  fi
 
9669
    ;;
 
9670
esac
 
9671
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10779
9672
echo "${ECHO_T}$enable_shared" >&6; }
10780
9673
 
10781
 
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9674
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10782
9675
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10783
 
  # Make sure either enable_shared or enable_static is yes.
10784
 
  test "$enable_shared" = yes || enable_static=yes
10785
 
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
9676
# Make sure either enable_shared or enable_static is yes.
 
9677
test "$enable_shared" = yes || enable_static=yes
 
9678
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10786
9679
echo "${ECHO_T}$enable_static" >&6; }
10787
9680
 
10788
 
 
10789
 
 
10790
 
 
10791
 
fi
10792
 
ac_ext=c
10793
 
ac_cpp='$CPP $CPPFLAGS'
10794
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
 
 
10798
 
CC="$lt_save_CC"
10799
 
 
10800
 
 
10801
 
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
        ac_config_commands="$ac_config_commands libtool"
10813
 
 
10814
 
 
10815
 
 
10816
 
 
10817
 
# Only expand once:
10818
 
 
10819
 
 
10820
 
 
10821
 
DIEHARDER_LT_VERSION="2:28:1"
10822
 
 
10823
 
 
10824
 
case "$VERSION" in
10825
 
    *+)
10826
 
        cat >>confdefs.h <<\_ACEOF
10827
 
#define RELEASED 0
10828
 
_ACEOF
10829
 
 
10830
 
        ;;
10831
 
    *)
10832
 
        cat >>confdefs.h <<\_ACEOF
10833
 
#define RELEASED 1
10834
 
_ACEOF
10835
 
 
10836
 
        ;;
10837
 
esac
10838
 
 
10839
 
 
10840
 
#==================================================================
10841
 
# Check for which system.
10842
 
#==================================================================
10843
 
{ echo "$as_me:$LINENO: checking host system type" >&5
10844
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10845
 
if test "${ac_cv_host+set}" = set; then
10846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10847
 
else
10848
 
  if test "x$host_alias" = x; then
10849
 
  ac_cv_host=$ac_cv_build
10850
 
else
10851
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10852
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10853
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10854
 
   { (exit 1); exit 1; }; }
10855
 
fi
10856
 
 
10857
 
fi
10858
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10859
 
echo "${ECHO_T}$ac_cv_host" >&6; }
10860
 
case $ac_cv_host in
10861
 
*-*-*) ;;
10862
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10863
 
echo "$as_me: error: invalid value of canonical host" >&2;}
10864
 
   { (exit 1); exit 1; }; };;
10865
 
esac
10866
 
host=$ac_cv_host
10867
 
ac_save_IFS=$IFS; IFS='-'
10868
 
set x $ac_cv_host
10869
 
shift
10870
 
host_cpu=$1
10871
 
host_vendor=$2
10872
 
shift; shift
10873
 
# Remember, the first character of IFS is used to create $*,
10874
 
# except with old shells:
10875
 
host_os=$*
10876
 
IFS=$ac_save_IFS
10877
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10878
 
 
10879
 
 
10880
 
 
10881
 
#==================================================================
10882
 
# Checks for programs.
10883
 
#==================================================================
10884
 
ac_ext=c
10885
 
ac_cpp='$CPP $CPPFLAGS'
10886
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10889
 
 
10890
 
ac_ext=c
10891
 
ac_cpp='$CPP $CPPFLAGS'
10892
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10895
 
if test -n "$ac_tool_prefix"; then
10896
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10897
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10898
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10899
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10900
 
if test "${ac_cv_prog_CC+set}" = set; then
10901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10902
 
else
10903
 
  if test -n "$CC"; then
10904
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
10905
 
else
10906
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907
 
for as_dir in $PATH
10908
 
do
10909
 
  IFS=$as_save_IFS
10910
 
  test -z "$as_dir" && as_dir=.
10911
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10912
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10913
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10914
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10915
 
    break 2
10916
 
  fi
10917
 
done
10918
 
done
10919
 
IFS=$as_save_IFS
10920
 
 
10921
 
fi
10922
 
fi
10923
 
CC=$ac_cv_prog_CC
10924
 
if test -n "$CC"; then
10925
 
  { echo "$as_me:$LINENO: result: $CC" >&5
10926
 
echo "${ECHO_T}$CC" >&6; }
10927
 
else
10928
 
  { echo "$as_me:$LINENO: result: no" >&5
10929
 
echo "${ECHO_T}no" >&6; }
10930
 
fi
10931
 
 
10932
 
 
10933
 
fi
10934
 
if test -z "$ac_cv_prog_CC"; then
10935
 
  ac_ct_CC=$CC
10936
 
  # Extract the first word of "gcc", so it can be a program name with args.
10937
 
set dummy gcc; ac_word=$2
10938
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10939
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10940
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10942
 
else
10943
 
  if test -n "$ac_ct_CC"; then
10944
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10945
 
else
10946
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947
 
for as_dir in $PATH
10948
 
do
10949
 
  IFS=$as_save_IFS
10950
 
  test -z "$as_dir" && as_dir=.
10951
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10952
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953
 
    ac_cv_prog_ac_ct_CC="gcc"
10954
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955
 
    break 2
10956
 
  fi
10957
 
done
10958
 
done
10959
 
IFS=$as_save_IFS
10960
 
 
10961
 
fi
10962
 
fi
10963
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10964
 
if test -n "$ac_ct_CC"; then
10965
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10966
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
10967
 
else
10968
 
  { echo "$as_me:$LINENO: result: no" >&5
10969
 
echo "${ECHO_T}no" >&6; }
10970
 
fi
10971
 
 
10972
 
  if test "x$ac_ct_CC" = x; then
10973
 
    CC=""
10974
 
  else
10975
 
    case $cross_compiling:$ac_tool_warned in
10976
 
yes:)
10977
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10978
 
whose name does not start with the host triplet.  If you think this
10979
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
10980
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10981
 
whose name does not start with the host triplet.  If you think this
10982
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10983
 
ac_tool_warned=yes ;;
10984
 
esac
10985
 
    CC=$ac_ct_CC
10986
 
  fi
10987
 
else
10988
 
  CC="$ac_cv_prog_CC"
10989
 
fi
10990
 
 
10991
 
if test -z "$CC"; then
10992
 
          if test -n "$ac_tool_prefix"; then
10993
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10994
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
10995
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10996
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10997
 
if test "${ac_cv_prog_CC+set}" = set; then
10998
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10999
 
else
11000
 
  if test -n "$CC"; then
11001
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
11002
 
else
11003
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004
 
for as_dir in $PATH
11005
 
do
11006
 
  IFS=$as_save_IFS
11007
 
  test -z "$as_dir" && as_dir=.
11008
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11009
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11011
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012
 
    break 2
11013
 
  fi
11014
 
done
11015
 
done
11016
 
IFS=$as_save_IFS
11017
 
 
11018
 
fi
11019
 
fi
11020
 
CC=$ac_cv_prog_CC
11021
 
if test -n "$CC"; then
11022
 
  { echo "$as_me:$LINENO: result: $CC" >&5
11023
 
echo "${ECHO_T}$CC" >&6; }
11024
 
else
11025
 
  { echo "$as_me:$LINENO: result: no" >&5
11026
 
echo "${ECHO_T}no" >&6; }
11027
 
fi
11028
 
 
11029
 
 
11030
 
  fi
11031
 
fi
11032
 
if test -z "$CC"; then
11033
 
  # Extract the first word of "cc", so it can be a program name with args.
11034
 
set dummy cc; ac_word=$2
11035
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11036
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11037
 
if test "${ac_cv_prog_CC+set}" = set; then
11038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11039
 
else
11040
 
  if test -n "$CC"; then
11041
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
11042
 
else
11043
 
  ac_prog_rejected=no
11044
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045
 
for as_dir in $PATH
11046
 
do
11047
 
  IFS=$as_save_IFS
11048
 
  test -z "$as_dir" && as_dir=.
11049
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11050
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11052
 
       ac_prog_rejected=yes
11053
 
       continue
11054
 
     fi
11055
 
    ac_cv_prog_CC="cc"
11056
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11057
 
    break 2
11058
 
  fi
11059
 
done
11060
 
done
11061
 
IFS=$as_save_IFS
11062
 
 
11063
 
if test $ac_prog_rejected = yes; then
11064
 
  # We found a bogon in the path, so make sure we never use it.
11065
 
  set dummy $ac_cv_prog_CC
11066
 
  shift
11067
 
  if test $# != 0; then
11068
 
    # We chose a different compiler from the bogus one.
11069
 
    # However, it has the same basename, so the bogon will be chosen
11070
 
    # first if we set CC to just the basename; use the full file name.
11071
 
    shift
11072
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11073
 
  fi
11074
 
fi
11075
 
fi
11076
 
fi
11077
 
CC=$ac_cv_prog_CC
11078
 
if test -n "$CC"; then
11079
 
  { echo "$as_me:$LINENO: result: $CC" >&5
11080
 
echo "${ECHO_T}$CC" >&6; }
11081
 
else
11082
 
  { echo "$as_me:$LINENO: result: no" >&5
11083
 
echo "${ECHO_T}no" >&6; }
11084
 
fi
11085
 
 
11086
 
 
11087
 
fi
11088
 
if test -z "$CC"; then
11089
 
  if test -n "$ac_tool_prefix"; then
11090
 
  for ac_prog in cl.exe
11091
 
  do
11092
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11093
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11094
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11095
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11096
 
if test "${ac_cv_prog_CC+set}" = set; then
11097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11098
 
else
11099
 
  if test -n "$CC"; then
11100
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
11101
 
else
11102
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103
 
for as_dir in $PATH
11104
 
do
11105
 
  IFS=$as_save_IFS
11106
 
  test -z "$as_dir" && as_dir=.
11107
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11108
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11110
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11111
 
    break 2
11112
 
  fi
11113
 
done
11114
 
done
11115
 
IFS=$as_save_IFS
11116
 
 
11117
 
fi
11118
 
fi
11119
 
CC=$ac_cv_prog_CC
11120
 
if test -n "$CC"; then
11121
 
  { echo "$as_me:$LINENO: result: $CC" >&5
11122
 
echo "${ECHO_T}$CC" >&6; }
11123
 
else
11124
 
  { echo "$as_me:$LINENO: result: no" >&5
11125
 
echo "${ECHO_T}no" >&6; }
11126
 
fi
11127
 
 
11128
 
 
11129
 
    test -n "$CC" && break
11130
 
  done
11131
 
fi
11132
 
if test -z "$CC"; then
11133
 
  ac_ct_CC=$CC
11134
 
  for ac_prog in cl.exe
11135
 
do
11136
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11137
 
set dummy $ac_prog; ac_word=$2
11138
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11139
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11140
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11141
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11142
 
else
11143
 
  if test -n "$ac_ct_CC"; then
11144
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11145
 
else
11146
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147
 
for as_dir in $PATH
11148
 
do
11149
 
  IFS=$as_save_IFS
11150
 
  test -z "$as_dir" && as_dir=.
11151
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11152
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
11154
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155
 
    break 2
11156
 
  fi
11157
 
done
11158
 
done
11159
 
IFS=$as_save_IFS
11160
 
 
11161
 
fi
11162
 
fi
11163
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11164
 
if test -n "$ac_ct_CC"; then
11165
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11166
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
11167
 
else
11168
 
  { echo "$as_me:$LINENO: result: no" >&5
11169
 
echo "${ECHO_T}no" >&6; }
11170
 
fi
11171
 
 
11172
 
 
11173
 
  test -n "$ac_ct_CC" && break
11174
 
done
11175
 
 
11176
 
  if test "x$ac_ct_CC" = x; then
11177
 
    CC=""
11178
 
  else
11179
 
    case $cross_compiling:$ac_tool_warned in
11180
 
yes:)
11181
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11182
 
whose name does not start with the host triplet.  If you think this
11183
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
11184
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11185
 
whose name does not start with the host triplet.  If you think this
11186
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11187
 
ac_tool_warned=yes ;;
11188
 
esac
11189
 
    CC=$ac_ct_CC
11190
 
  fi
11191
 
fi
11192
 
 
11193
 
fi
11194
 
 
11195
 
 
11196
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11197
 
See \`config.log' for more details." >&5
11198
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
11199
 
See \`config.log' for more details." >&2;}
11200
 
   { (exit 1); exit 1; }; }
11201
 
 
11202
 
# Provide some information about the compiler.
11203
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
11204
 
ac_compiler=`set X $ac_compile; echo $2`
11205
 
{ (ac_try="$ac_compiler --version >&5"
11206
 
case "(($ac_try" in
11207
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208
 
  *) ac_try_echo=$ac_try;;
11209
 
esac
11210
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211
 
  (eval "$ac_compiler --version >&5") 2>&5
11212
 
  ac_status=$?
11213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214
 
  (exit $ac_status); }
11215
 
{ (ac_try="$ac_compiler -v >&5"
11216
 
case "(($ac_try" in
11217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218
 
  *) ac_try_echo=$ac_try;;
11219
 
esac
11220
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221
 
  (eval "$ac_compiler -v >&5") 2>&5
11222
 
  ac_status=$?
11223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224
 
  (exit $ac_status); }
11225
 
{ (ac_try="$ac_compiler -V >&5"
11226
 
case "(($ac_try" in
11227
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228
 
  *) ac_try_echo=$ac_try;;
11229
 
esac
11230
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231
 
  (eval "$ac_compiler -V >&5") 2>&5
11232
 
  ac_status=$?
11233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234
 
  (exit $ac_status); }
11235
 
 
11236
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11237
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11238
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11240
 
else
11241
 
  cat >conftest.$ac_ext <<_ACEOF
11242
 
/* confdefs.h.  */
11243
 
_ACEOF
11244
 
cat confdefs.h >>conftest.$ac_ext
11245
 
cat >>conftest.$ac_ext <<_ACEOF
11246
 
/* end confdefs.h.  */
11247
 
 
11248
 
int
11249
 
main ()
11250
 
{
11251
 
#ifndef __GNUC__
11252
 
       choke me
11253
 
#endif
11254
 
 
11255
 
  ;
11256
 
  return 0;
11257
 
}
11258
 
_ACEOF
11259
 
rm -f conftest.$ac_objext
11260
 
if { (ac_try="$ac_compile"
11261
 
case "(($ac_try" in
11262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263
 
  *) ac_try_echo=$ac_try;;
11264
 
esac
11265
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266
 
  (eval "$ac_compile") 2>conftest.er1
11267
 
  ac_status=$?
11268
 
  grep -v '^ *+' conftest.er1 >conftest.err
11269
 
  rm -f conftest.er1
11270
 
  cat conftest.err >&5
11271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272
 
  (exit $ac_status); } && {
11273
 
         test -z "$ac_c_werror_flag" ||
11274
 
         test ! -s conftest.err
11275
 
       } && test -s conftest.$ac_objext; then
11276
 
  ac_compiler_gnu=yes
11277
 
else
11278
 
  echo "$as_me: failed program was:" >&5
11279
 
sed 's/^/| /' conftest.$ac_ext >&5
11280
 
 
11281
 
        ac_compiler_gnu=no
11282
 
fi
11283
 
 
11284
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11286
 
 
11287
 
fi
11288
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11289
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11290
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
11291
 
ac_test_CFLAGS=${CFLAGS+set}
11292
 
ac_save_CFLAGS=$CFLAGS
11293
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11294
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11295
 
if test "${ac_cv_prog_cc_g+set}" = set; then
11296
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11297
 
else
11298
 
  ac_save_c_werror_flag=$ac_c_werror_flag
11299
 
   ac_c_werror_flag=yes
11300
 
   ac_cv_prog_cc_g=no
11301
 
   CFLAGS="-g"
11302
 
   cat >conftest.$ac_ext <<_ACEOF
11303
 
/* confdefs.h.  */
11304
 
_ACEOF
11305
 
cat confdefs.h >>conftest.$ac_ext
11306
 
cat >>conftest.$ac_ext <<_ACEOF
11307
 
/* end confdefs.h.  */
11308
 
 
11309
 
int
11310
 
main ()
11311
 
{
11312
 
 
11313
 
  ;
11314
 
  return 0;
11315
 
}
11316
 
_ACEOF
11317
 
rm -f conftest.$ac_objext
11318
 
if { (ac_try="$ac_compile"
11319
 
case "(($ac_try" in
11320
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321
 
  *) ac_try_echo=$ac_try;;
11322
 
esac
11323
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324
 
  (eval "$ac_compile") 2>conftest.er1
11325
 
  ac_status=$?
11326
 
  grep -v '^ *+' conftest.er1 >conftest.err
11327
 
  rm -f conftest.er1
11328
 
  cat conftest.err >&5
11329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330
 
  (exit $ac_status); } && {
11331
 
         test -z "$ac_c_werror_flag" ||
11332
 
         test ! -s conftest.err
11333
 
       } && test -s conftest.$ac_objext; then
11334
 
  ac_cv_prog_cc_g=yes
11335
 
else
11336
 
  echo "$as_me: failed program was:" >&5
11337
 
sed 's/^/| /' conftest.$ac_ext >&5
11338
 
 
11339
 
        CFLAGS=""
11340
 
      cat >conftest.$ac_ext <<_ACEOF
11341
 
/* confdefs.h.  */
11342
 
_ACEOF
11343
 
cat confdefs.h >>conftest.$ac_ext
11344
 
cat >>conftest.$ac_ext <<_ACEOF
11345
 
/* end confdefs.h.  */
11346
 
 
11347
 
int
11348
 
main ()
11349
 
{
11350
 
 
11351
 
  ;
11352
 
  return 0;
11353
 
}
11354
 
_ACEOF
11355
 
rm -f conftest.$ac_objext
11356
 
if { (ac_try="$ac_compile"
11357
 
case "(($ac_try" in
11358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359
 
  *) ac_try_echo=$ac_try;;
11360
 
esac
11361
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362
 
  (eval "$ac_compile") 2>conftest.er1
11363
 
  ac_status=$?
11364
 
  grep -v '^ *+' conftest.er1 >conftest.err
11365
 
  rm -f conftest.er1
11366
 
  cat conftest.err >&5
11367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368
 
  (exit $ac_status); } && {
11369
 
         test -z "$ac_c_werror_flag" ||
11370
 
         test ! -s conftest.err
11371
 
       } && test -s conftest.$ac_objext; then
11372
 
  :
11373
 
else
11374
 
  echo "$as_me: failed program was:" >&5
11375
 
sed 's/^/| /' conftest.$ac_ext >&5
11376
 
 
11377
 
        ac_c_werror_flag=$ac_save_c_werror_flag
11378
 
         CFLAGS="-g"
11379
 
         cat >conftest.$ac_ext <<_ACEOF
11380
 
/* confdefs.h.  */
11381
 
_ACEOF
11382
 
cat confdefs.h >>conftest.$ac_ext
11383
 
cat >>conftest.$ac_ext <<_ACEOF
11384
 
/* end confdefs.h.  */
11385
 
 
11386
 
int
11387
 
main ()
11388
 
{
11389
 
 
11390
 
  ;
11391
 
  return 0;
11392
 
}
11393
 
_ACEOF
11394
 
rm -f conftest.$ac_objext
11395
 
if { (ac_try="$ac_compile"
11396
 
case "(($ac_try" in
11397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398
 
  *) ac_try_echo=$ac_try;;
11399
 
esac
11400
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401
 
  (eval "$ac_compile") 2>conftest.er1
11402
 
  ac_status=$?
11403
 
  grep -v '^ *+' conftest.er1 >conftest.err
11404
 
  rm -f conftest.er1
11405
 
  cat conftest.err >&5
11406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407
 
  (exit $ac_status); } && {
11408
 
         test -z "$ac_c_werror_flag" ||
11409
 
         test ! -s conftest.err
11410
 
       } && test -s conftest.$ac_objext; then
11411
 
  ac_cv_prog_cc_g=yes
11412
 
else
11413
 
  echo "$as_me: failed program was:" >&5
11414
 
sed 's/^/| /' conftest.$ac_ext >&5
11415
 
 
11416
 
 
11417
 
fi
11418
 
 
11419
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420
 
fi
11421
 
 
11422
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423
 
fi
11424
 
 
11425
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426
 
   ac_c_werror_flag=$ac_save_c_werror_flag
11427
 
fi
11428
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11429
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11430
 
if test "$ac_test_CFLAGS" = set; then
11431
 
  CFLAGS=$ac_save_CFLAGS
11432
 
elif test $ac_cv_prog_cc_g = yes; then
11433
 
  if test "$GCC" = yes; then
11434
 
    CFLAGS="-g -O2"
11435
 
  else
11436
 
    CFLAGS="-g"
11437
 
  fi
11438
 
else
11439
 
  if test "$GCC" = yes; then
11440
 
    CFLAGS="-O2"
11441
 
  else
11442
 
    CFLAGS=
11443
 
  fi
11444
 
fi
11445
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11446
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11447
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
11448
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11449
 
else
11450
 
  ac_cv_prog_cc_c89=no
11451
 
ac_save_CC=$CC
11452
 
cat >conftest.$ac_ext <<_ACEOF
11453
 
/* confdefs.h.  */
11454
 
_ACEOF
11455
 
cat confdefs.h >>conftest.$ac_ext
11456
 
cat >>conftest.$ac_ext <<_ACEOF
11457
 
/* end confdefs.h.  */
11458
 
#include <stdarg.h>
11459
 
#include <stdio.h>
11460
 
#include <sys/types.h>
11461
 
#include <sys/stat.h>
11462
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11463
 
struct buf { int x; };
11464
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11465
 
static char *e (p, i)
11466
 
     char **p;
11467
 
     int i;
11468
 
{
11469
 
  return p[i];
11470
 
}
11471
 
static char *f (char * (*g) (char **, int), char **p, ...)
11472
 
{
11473
 
  char *s;
11474
 
  va_list v;
11475
 
  va_start (v,p);
11476
 
  s = g (p, va_arg (v,int));
11477
 
  va_end (v);
11478
 
  return s;
11479
 
}
11480
 
 
11481
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11482
 
   function prototypes and stuff, but not '\xHH' hex character constants.
11483
 
   These don't provoke an error unfortunately, instead are silently treated
11484
 
   as 'x'.  The following induces an error, until -std is added to get
11485
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11486
 
   array size at least.  It's necessary to write '\x00'==0 to get something
11487
 
   that's true only with -std.  */
11488
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11489
 
 
11490
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11491
 
   inside strings and character constants.  */
11492
 
#define FOO(x) 'x'
11493
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11494
 
 
11495
 
int test (int i, double x);
11496
 
struct s1 {int (*f) (int a);};
11497
 
struct s2 {int (*f) (double a);};
11498
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11499
 
int argc;
11500
 
char **argv;
11501
 
int
11502
 
main ()
11503
 
{
11504
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11505
 
  ;
11506
 
  return 0;
11507
 
}
11508
 
_ACEOF
11509
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11510
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11511
 
do
11512
 
  CC="$ac_save_CC $ac_arg"
11513
 
  rm -f conftest.$ac_objext
11514
 
if { (ac_try="$ac_compile"
11515
 
case "(($ac_try" in
11516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517
 
  *) ac_try_echo=$ac_try;;
11518
 
esac
11519
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520
 
  (eval "$ac_compile") 2>conftest.er1
11521
 
  ac_status=$?
11522
 
  grep -v '^ *+' conftest.er1 >conftest.err
11523
 
  rm -f conftest.er1
11524
 
  cat conftest.err >&5
11525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
 
  (exit $ac_status); } && {
11527
 
         test -z "$ac_c_werror_flag" ||
11528
 
         test ! -s conftest.err
11529
 
       } && test -s conftest.$ac_objext; then
11530
 
  ac_cv_prog_cc_c89=$ac_arg
11531
 
else
11532
 
  echo "$as_me: failed program was:" >&5
11533
 
sed 's/^/| /' conftest.$ac_ext >&5
11534
 
 
11535
 
 
11536
 
fi
11537
 
 
11538
 
rm -f core conftest.err conftest.$ac_objext
11539
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11540
 
done
11541
 
rm -f conftest.$ac_ext
11542
 
CC=$ac_save_CC
11543
 
 
11544
 
fi
11545
 
# AC_CACHE_VAL
11546
 
case "x$ac_cv_prog_cc_c89" in
11547
 
  x)
11548
 
    { echo "$as_me:$LINENO: result: none needed" >&5
11549
 
echo "${ECHO_T}none needed" >&6; } ;;
11550
 
  xno)
11551
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
11552
 
echo "${ECHO_T}unsupported" >&6; } ;;
11553
 
  *)
11554
 
    CC="$CC $ac_cv_prog_cc_c89"
11555
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11556
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11557
 
esac
11558
 
 
11559
 
 
11560
 
ac_ext=c
11561
 
ac_cpp='$CPP $CPPFLAGS'
11562
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11565
 
 
11566
 
depcc="$CC"   am_compiler_list=
11567
 
 
11568
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11569
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11570
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11571
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11572
 
else
11573
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11574
 
  # We make a subdir and do the tests there.  Otherwise we can end up
11575
 
  # making bogus files that we don't know about and never remove.  For
11576
 
  # instance it was reported that on HP-UX the gcc test will end up
11577
 
  # making a dummy file named `D' -- because `-MD' means `put the output
11578
 
  # in D'.
11579
 
  mkdir conftest.dir
11580
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
11581
 
  # using a relative directory.
11582
 
  cp "$am_depcomp" conftest.dir
11583
 
  cd conftest.dir
11584
 
  # We will build objects and dependencies in a subdirectory because
11585
 
  # it helps to detect inapplicable dependency modes.  For instance
11586
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
11587
 
  # side effect of compilation, but ICC will put the dependencies in
11588
 
  # the current directory while Tru64 will put them in the object
11589
 
  # directory.
11590
 
  mkdir sub
11591
 
 
11592
 
  am_cv_CC_dependencies_compiler_type=none
11593
 
  if test "$am_compiler_list" = ""; then
11594
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11595
 
  fi
11596
 
  for depmode in $am_compiler_list; do
11597
 
    # Setup a source with many dependencies, because some compilers
11598
 
    # like to wrap large dependency lists on column 80 (with \), and
11599
 
    # we should not choose a depcomp mode which is confused by this.
11600
 
    #
11601
 
    # We need to recreate these files for each test, as the compiler may
11602
 
    # overwrite some of them when testing with obscure command lines.
11603
 
    # This happens at least with the AIX C compiler.
11604
 
    : > sub/conftest.c
11605
 
    for i in 1 2 3 4 5 6; do
11606
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11607
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11608
 
      # Solaris 8's {/usr,}/bin/sh.
11609
 
      touch sub/conftst$i.h
11610
 
    done
11611
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11612
 
 
11613
 
    case $depmode in
11614
 
    nosideeffect)
11615
 
      # after this tag, mechanisms are not by side-effect, so they'll
11616
 
      # only be used when explicitly requested
11617
 
      if test "x$enable_dependency_tracking" = xyes; then
11618
 
        continue
11619
 
      else
11620
 
        break
11621
 
      fi
11622
 
      ;;
11623
 
    none) break ;;
11624
 
    esac
11625
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11626
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
11627
 
    # handle `-M -o', and we need to detect this.
11628
 
    if depmode=$depmode \
11629
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11630
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11631
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11632
 
         >/dev/null 2>conftest.err &&
11633
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11634
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11635
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11636
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11637
 
      # icc doesn't choke on unknown options, it will just issue warnings
11638
 
      # or remarks (even with -Werror).  So we grep stderr for any message
11639
 
      # that says an option was ignored or not supported.
11640
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11641
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
11642
 
      # The diagnosis changed in icc 8.0:
11643
 
      #   icc: Command line remark: option '-MP' not supported
11644
 
      if (grep 'ignoring option' conftest.err ||
11645
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11646
 
        am_cv_CC_dependencies_compiler_type=$depmode
11647
 
        break
11648
 
      fi
11649
 
    fi
11650
 
  done
11651
 
 
11652
 
  cd ..
11653
 
  rm -rf conftest.dir
11654
 
else
11655
 
  am_cv_CC_dependencies_compiler_type=none
11656
 
fi
11657
 
 
11658
 
fi
11659
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11660
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11661
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11662
 
 
11663
 
 if
11664
 
  test "x$enable_dependency_tracking" != xno \
11665
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11666
 
  am__fastdepCC_TRUE=
11667
 
  am__fastdepCC_FALSE='#'
11668
 
else
11669
 
  am__fastdepCC_TRUE='#'
11670
 
  am__fastdepCC_FALSE=
11671
 
fi
11672
 
 
11673
 
 
11674
 
# Find a good install program.  We prefer a C program (faster),
11675
 
# so one script is as good as another.  But avoid the broken or
11676
 
# incompatible versions:
11677
 
# SysV /etc/install, /usr/sbin/install
11678
 
# SunOS /usr/etc/install
11679
 
# IRIX /sbin/install
11680
 
# AIX /bin/install
11681
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
11682
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11683
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11684
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11685
 
# OS/2's system install, which has a completely different semantic
11686
 
# ./install, which can be erroneously created by make from ./install.sh.
11687
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11688
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11689
 
if test -z "$INSTALL"; then
11690
 
if test "${ac_cv_path_install+set}" = set; then
11691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11692
 
else
11693
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694
 
for as_dir in $PATH
11695
 
do
11696
 
  IFS=$as_save_IFS
11697
 
  test -z "$as_dir" && as_dir=.
11698
 
  # Account for people who put trailing slashes in PATH elements.
11699
 
case $as_dir/ in
11700
 
  ./ | .// | /cC/* | \
11701
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11702
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11703
 
  /usr/ucb/* ) ;;
11704
 
  *)
11705
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
11706
 
    # Don't use installbsd from OSF since it installs stuff as root
11707
 
    # by default.
11708
 
    for ac_prog in ginstall scoinst install; do
11709
 
      for ac_exec_ext in '' $ac_executable_extensions; do
11710
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11711
 
          if test $ac_prog = install &&
11712
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11713
 
            # AIX install.  It has an incompatible calling convention.
11714
 
            :
11715
 
          elif test $ac_prog = install &&
11716
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11717
 
            # program-specific install script used by HP pwplus--don't use.
11718
 
            :
11719
 
          else
11720
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11721
 
            break 3
11722
 
          fi
11723
 
        fi
11724
 
      done
11725
 
    done
11726
 
    ;;
11727
 
esac
11728
 
done
11729
 
IFS=$as_save_IFS
11730
 
 
11731
 
 
11732
 
fi
11733
 
  if test "${ac_cv_path_install+set}" = set; then
11734
 
    INSTALL=$ac_cv_path_install
11735
 
  else
11736
 
    # As a last resort, use the slow shell script.  Don't cache a
11737
 
    # value for INSTALL within a source directory, because that will
11738
 
    # break other packages using the cache if that directory is
11739
 
    # removed, or if the value is a relative name.
11740
 
    INSTALL=$ac_install_sh
11741
 
  fi
11742
 
fi
11743
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11744
 
echo "${ECHO_T}$INSTALL" >&6; }
11745
 
 
11746
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11747
 
# It thinks the first close brace ends the variable substitution.
11748
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11749
 
 
11750
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11751
 
 
11752
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11753
 
 
11754
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11755
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11756
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11757
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11759
 
else
11760
 
  cat >conftest.make <<\_ACEOF
11761
 
SHELL = /bin/sh
11762
 
all:
11763
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11764
 
_ACEOF
11765
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11766
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11767
 
  *@@@%%%=?*=@@@%%%*)
11768
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11769
 
  *)
11770
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
11771
 
esac
11772
 
rm -f conftest.make
11773
 
fi
11774
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11775
 
  { echo "$as_me:$LINENO: result: yes" >&5
11776
 
echo "${ECHO_T}yes" >&6; }
11777
 
  SET_MAKE=
11778
 
else
11779
 
  { echo "$as_me:$LINENO: result: no" >&5
11780
 
echo "${ECHO_T}no" >&6; }
11781
 
  SET_MAKE="MAKE=${MAKE-make}"
11782
 
fi
11783
 
 
11784
 
if test -n "$ac_tool_prefix"; then
11785
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11786
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11787
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11788
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11789
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
11790
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11791
 
else
11792
 
  if test -n "$RANLIB"; then
11793
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11794
 
else
11795
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796
 
for as_dir in $PATH
11797
 
do
11798
 
  IFS=$as_save_IFS
11799
 
  test -z "$as_dir" && as_dir=.
11800
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11801
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11803
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804
 
    break 2
11805
 
  fi
11806
 
done
11807
 
done
11808
 
IFS=$as_save_IFS
11809
 
 
11810
 
fi
11811
 
fi
11812
 
RANLIB=$ac_cv_prog_RANLIB
11813
 
if test -n "$RANLIB"; then
11814
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
11815
 
echo "${ECHO_T}$RANLIB" >&6; }
11816
 
else
11817
 
  { echo "$as_me:$LINENO: result: no" >&5
11818
 
echo "${ECHO_T}no" >&6; }
11819
 
fi
11820
 
 
11821
 
 
11822
 
fi
11823
 
if test -z "$ac_cv_prog_RANLIB"; then
11824
 
  ac_ct_RANLIB=$RANLIB
11825
 
  # Extract the first word of "ranlib", so it can be a program name with args.
11826
 
set dummy ranlib; ac_word=$2
11827
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11828
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11829
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11830
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11831
 
else
11832
 
  if test -n "$ac_ct_RANLIB"; then
11833
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11834
 
else
11835
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836
 
for as_dir in $PATH
11837
 
do
11838
 
  IFS=$as_save_IFS
11839
 
  test -z "$as_dir" && as_dir=.
11840
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11841
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
11843
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11844
 
    break 2
11845
 
  fi
11846
 
done
11847
 
done
11848
 
IFS=$as_save_IFS
11849
 
 
11850
 
fi
11851
 
fi
11852
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11853
 
if test -n "$ac_ct_RANLIB"; then
11854
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11855
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11856
 
else
11857
 
  { echo "$as_me:$LINENO: result: no" >&5
11858
 
echo "${ECHO_T}no" >&6; }
11859
 
fi
11860
 
 
11861
 
  if test "x$ac_ct_RANLIB" = x; then
11862
 
    RANLIB=":"
11863
 
  else
11864
 
    case $cross_compiling:$ac_tool_warned in
11865
 
yes:)
11866
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11867
 
whose name does not start with the host triplet.  If you think this
11868
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
11869
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11870
 
whose name does not start with the host triplet.  If you think this
11871
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11872
 
ac_tool_warned=yes ;;
11873
 
esac
11874
 
    RANLIB=$ac_ct_RANLIB
11875
 
  fi
11876
 
else
11877
 
  RANLIB="$ac_cv_prog_RANLIB"
11878
 
fi
11879
 
 
11880
 
 
11881
 
#==================================================================
11882
 
# OK, these five macros prevent my personal path from appearing
11883
 
# in the default Makefile, and actually should make it work to
11884
 
# rebuilt itself even if somebody completely blows off running
11885
 
# ./autogen.sh.  And it ALMOST WORKS
11886
 
#==================================================================
11887
 
ACLOCAL="${SHELL} ./missing --run aclocal"
11888
 
ACTAR="${SHELL} ./missing --run tar"
11889
 
AUTOCONF="${SHELL} ./missing --run autoconf;echo \"Run ./configure\";exit"
11890
 
AUTOHEADER="${SHELL} ./missing --run autoheader"
11891
 
AUTOMAKE="${SHELL} ./missing --run automake --add-missing --copy --gnu"
11892
 
 
11893
 
 
11894
 
 
11895
 
 
11896
 
 
11897
 
 
11898
 
 
11899
 
#==================================================================
11900
 
# Disable unnecessary libtool tests for c++,fortran,java
11901
 
#==================================================================
 
9681
# The else clause should only fire when bootstrapping the
 
9682
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9683
# with your package, and you will get complaints that there are
 
9684
# no rules to generate ltmain.sh.
 
9685
if test -f "$ltmain"; then
 
9686
  # See if we are running on zsh, and set the options which allow our commands through
 
9687
  # without removal of \ escapes.
 
9688
  if test -n "${ZSH_VERSION+set}" ; then
 
9689
    setopt NO_GLOB_SUBST
 
9690
  fi
 
9691
  # Now quote all the things that may contain metacharacters while being
 
9692
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9693
  # variables and quote the copies for generation of the libtool script.
 
9694
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9695
    SED SHELL STRIP \
 
9696
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9697
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9698
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9699
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9700
    lt_cv_sys_global_symbol_to_c_name_address \
 
9701
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9702
    old_postinstall_cmds old_postuninstall_cmds \
 
9703
    compiler \
 
9704
    CC \
 
9705
    LD \
 
9706
    lt_prog_compiler_wl \
 
9707
    lt_prog_compiler_pic \
 
9708
    lt_prog_compiler_static \
 
9709
    lt_prog_compiler_no_builtin_flag \
 
9710
    export_dynamic_flag_spec \
 
9711
    thread_safe_flag_spec \
 
9712
    whole_archive_flag_spec \
 
9713
    enable_shared_with_static_runtimes \
 
9714
    old_archive_cmds \
 
9715
    old_archive_from_new_cmds \
 
9716
    predep_objects \
 
9717
    postdep_objects \
 
9718
    predeps \
 
9719
    postdeps \
 
9720
    compiler_lib_search_path \
 
9721
    compiler_lib_search_dirs \
 
9722
    archive_cmds \
 
9723
    archive_expsym_cmds \
 
9724
    postinstall_cmds \
 
9725
    postuninstall_cmds \
 
9726
    old_archive_from_expsyms_cmds \
 
9727
    allow_undefined_flag \
 
9728
    no_undefined_flag \
 
9729
    export_symbols_cmds \
 
9730
    hardcode_libdir_flag_spec \
 
9731
    hardcode_libdir_flag_spec_ld \
 
9732
    hardcode_libdir_separator \
 
9733
    hardcode_automatic \
 
9734
    module_cmds \
 
9735
    module_expsym_cmds \
 
9736
    lt_cv_prog_compiler_c_o \
 
9737
    fix_srcfile_path \
 
9738
    exclude_expsyms \
 
9739
    include_expsyms; do
 
9740
 
 
9741
    case $var in
 
9742
    old_archive_cmds | \
 
9743
    old_archive_from_new_cmds | \
 
9744
    archive_cmds | \
 
9745
    archive_expsym_cmds | \
 
9746
    module_cmds | \
 
9747
    module_expsym_cmds | \
 
9748
    old_archive_from_expsyms_cmds | \
 
9749
    export_symbols_cmds | \
 
9750
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9751
    postinstall_cmds | postuninstall_cmds | \
 
9752
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9753
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9754
      # Double-quote double-evaled strings.
 
9755
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9756
      ;;
 
9757
    *)
 
9758
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9759
      ;;
 
9760
    esac
 
9761
  done
 
9762
 
 
9763
  case $lt_echo in
 
9764
  *'\$0 --fallback-echo"')
 
9765
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9766
    ;;
 
9767
  esac
 
9768
 
 
9769
cfgfile="${ofile}T"
 
9770
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9771
  $rm -f "$cfgfile"
 
9772
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9773
echo "$as_me: creating $ofile" >&6;}
 
9774
 
 
9775
  cat <<__EOF__ >> "$cfgfile"
 
9776
#! $SHELL
 
9777
 
 
9778
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9779
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9780
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9781
#
 
9782
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
9783
# Free Software Foundation, Inc.
 
9784
#
 
9785
# This file is part of GNU Libtool:
 
9786
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9787
#
 
9788
# This program is free software; you can redistribute it and/or modify
 
9789
# it under the terms of the GNU General Public License as published by
 
9790
# the Free Software Foundation; either version 2 of the License, or
 
9791
# (at your option) any later version.
 
9792
#
 
9793
# This program is distributed in the hope that it will be useful, but
 
9794
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9795
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9796
# General Public License for more details.
 
9797
#
 
9798
# You should have received a copy of the GNU General Public License
 
9799
# along with this program; if not, write to the Free Software
 
9800
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9801
#
 
9802
# As a special exception to the GNU General Public License, if you
 
9803
# distribute this file as part of a program that contains a
 
9804
# configuration script generated by Autoconf, you may include it under
 
9805
# the same distribution terms that you use for the rest of that program.
 
9806
 
 
9807
# A sed program that does not truncate output.
 
9808
SED=$lt_SED
 
9809
 
 
9810
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9811
Xsed="$SED -e 1s/^X//"
 
9812
 
 
9813
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9814
# if CDPATH is set.
 
9815
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9816
 
 
9817
# The names of the tagged configurations supported by this script.
 
9818
available_tags=
 
9819
 
 
9820
# ### BEGIN LIBTOOL CONFIG
 
9821
 
 
9822
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9823
 
 
9824
# Shell to use when invoking shell scripts.
 
9825
SHELL=$lt_SHELL
 
9826
 
 
9827
# Whether or not to build shared libraries.
 
9828
build_libtool_libs=$enable_shared
 
9829
 
 
9830
# Whether or not to build static libraries.
 
9831
build_old_libs=$enable_static
 
9832
 
 
9833
# Whether or not to add -lc for building shared libraries.
 
9834
build_libtool_need_lc=$archive_cmds_need_lc
 
9835
 
 
9836
# Whether or not to disallow shared libs when runtime libs are static
 
9837
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9838
 
 
9839
# Whether or not to optimize for fast installation.
 
9840
fast_install=$enable_fast_install
 
9841
 
 
9842
# The host system.
 
9843
host_alias=$host_alias
 
9844
host=$host
 
9845
host_os=$host_os
 
9846
 
 
9847
# The build system.
 
9848
build_alias=$build_alias
 
9849
build=$build
 
9850
build_os=$build_os
 
9851
 
 
9852
# An echo program that does not interpret backslashes.
 
9853
echo=$lt_echo
 
9854
 
 
9855
# The archiver.
 
9856
AR=$lt_AR
 
9857
AR_FLAGS=$lt_AR_FLAGS
 
9858
 
 
9859
# A C compiler.
 
9860
LTCC=$lt_LTCC
 
9861
 
 
9862
# LTCC compiler flags.
 
9863
LTCFLAGS=$lt_LTCFLAGS
 
9864
 
 
9865
# A language-specific compiler.
 
9866
CC=$lt_compiler
 
9867
 
 
9868
# Is the compiler the GNU C compiler?
 
9869
with_gcc=$GCC
 
9870
 
 
9871
# An ERE matcher.
 
9872
EGREP=$lt_EGREP
 
9873
 
 
9874
# The linker used to build libraries.
 
9875
LD=$lt_LD
 
9876
 
 
9877
# Whether we need hard or soft links.
 
9878
LN_S=$lt_LN_S
 
9879
 
 
9880
# A BSD-compatible nm program.
 
9881
NM=$lt_NM
 
9882
 
 
9883
# A symbol stripping program
 
9884
STRIP=$lt_STRIP
 
9885
 
 
9886
# Used to examine libraries when file_magic_cmd begins "file"
 
9887
MAGIC_CMD=$MAGIC_CMD
 
9888
 
 
9889
# Used on cygwin: DLL creation program.
 
9890
DLLTOOL="$DLLTOOL"
 
9891
 
 
9892
# Used on cygwin: object dumper.
 
9893
OBJDUMP="$OBJDUMP"
 
9894
 
 
9895
# Used on cygwin: assembler.
 
9896
AS="$AS"
 
9897
 
 
9898
# The name of the directory that contains temporary libtool files.
 
9899
objdir=$objdir
 
9900
 
 
9901
# How to create reloadable object files.
 
9902
reload_flag=$lt_reload_flag
 
9903
reload_cmds=$lt_reload_cmds
 
9904
 
 
9905
# How to pass a linker flag through the compiler.
 
9906
wl=$lt_lt_prog_compiler_wl
 
9907
 
 
9908
# Object file suffix (normally "o").
 
9909
objext="$ac_objext"
 
9910
 
 
9911
# Old archive suffix (normally "a").
 
9912
libext="$libext"
 
9913
 
 
9914
# Shared library suffix (normally ".so").
 
9915
shrext_cmds='$shrext_cmds'
 
9916
 
 
9917
# Executable file suffix (normally "").
 
9918
exeext="$exeext"
 
9919
 
 
9920
# Additional compiler flags for building library objects.
 
9921
pic_flag=$lt_lt_prog_compiler_pic
 
9922
pic_mode=$pic_mode
 
9923
 
 
9924
# What is the maximum length of a command?
 
9925
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9926
 
 
9927
# Does compiler simultaneously support -c and -o options?
 
9928
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9929
 
 
9930
# Must we lock files when doing compilation?
 
9931
need_locks=$lt_need_locks
 
9932
 
 
9933
# Do we need the lib prefix for modules?
 
9934
need_lib_prefix=$need_lib_prefix
 
9935
 
 
9936
# Do we need a version for libraries?
 
9937
need_version=$need_version
 
9938
 
 
9939
# Whether dlopen is supported.
 
9940
dlopen_support=$enable_dlopen
 
9941
 
 
9942
# Whether dlopen of programs is supported.
 
9943
dlopen_self=$enable_dlopen_self
 
9944
 
 
9945
# Whether dlopen of statically linked programs is supported.
 
9946
dlopen_self_static=$enable_dlopen_self_static
 
9947
 
 
9948
# Compiler flag to prevent dynamic linking.
 
9949
link_static_flag=$lt_lt_prog_compiler_static
 
9950
 
 
9951
# Compiler flag to turn off builtin functions.
 
9952
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9953
 
 
9954
# Compiler flag to allow reflexive dlopens.
 
9955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9956
 
 
9957
# Compiler flag to generate shared objects directly from archives.
 
9958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9959
 
 
9960
# Compiler flag to generate thread-safe objects.
 
9961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9962
 
 
9963
# Library versioning type.
 
9964
version_type=$version_type
 
9965
 
 
9966
# Format of library name prefix.
 
9967
libname_spec=$lt_libname_spec
 
9968
 
 
9969
# List of archive names.  First name is the real one, the rest are links.
 
9970
# The last name is the one that the linker finds with -lNAME.
 
9971
library_names_spec=$lt_library_names_spec
 
9972
 
 
9973
# The coded name of the library, if different from the real name.
 
9974
soname_spec=$lt_soname_spec
 
9975
 
 
9976
# Commands used to build and install an old-style archive.
 
9977
RANLIB=$lt_RANLIB
 
9978
old_archive_cmds=$lt_old_archive_cmds
 
9979
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9981
 
 
9982
# Create an old-style archive from a shared archive.
 
9983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9984
 
 
9985
# Create a temporary old-style archive to link instead of a shared archive.
 
9986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9987
 
 
9988
# Commands used to build and install a shared archive.
 
9989
archive_cmds=$lt_archive_cmds
 
9990
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9991
postinstall_cmds=$lt_postinstall_cmds
 
9992
postuninstall_cmds=$lt_postuninstall_cmds
 
9993
 
 
9994
# Commands used to build a loadable module (assumed same as above if empty)
 
9995
module_cmds=$lt_module_cmds
 
9996
module_expsym_cmds=$lt_module_expsym_cmds
 
9997
 
 
9998
# Commands to strip libraries.
 
9999
old_striplib=$lt_old_striplib
 
10000
striplib=$lt_striplib
 
10001
 
 
10002
# Dependencies to place before the objects being linked to create a
 
10003
# shared library.
 
10004
predep_objects=$lt_predep_objects
 
10005
 
 
10006
# Dependencies to place after the objects being linked to create a
 
10007
# shared library.
 
10008
postdep_objects=$lt_postdep_objects
 
10009
 
 
10010
# Dependencies to place before the objects being linked to create a
 
10011
# shared library.
 
10012
predeps=$lt_predeps
 
10013
 
 
10014
# Dependencies to place after the objects being linked to create a
 
10015
# shared library.
 
10016
postdeps=$lt_postdeps
 
10017
 
 
10018
# The directories searched by this compiler when creating a shared
 
10019
# library
 
10020
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10021
 
 
10022
# The library search path used internally by the compiler when linking
 
10023
# a shared library.
 
10024
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10025
 
 
10026
# Method to check whether dependent libraries are shared objects.
 
10027
deplibs_check_method=$lt_deplibs_check_method
 
10028
 
 
10029
# Command to use when deplibs_check_method == file_magic.
 
10030
file_magic_cmd=$lt_file_magic_cmd
 
10031
 
 
10032
# Flag that allows shared libraries with undefined symbols to be built.
 
10033
allow_undefined_flag=$lt_allow_undefined_flag
 
10034
 
 
10035
# Flag that forces no undefined symbols.
 
10036
no_undefined_flag=$lt_no_undefined_flag
 
10037
 
 
10038
# Commands used to finish a libtool library installation in a directory.
 
10039
finish_cmds=$lt_finish_cmds
 
10040
 
 
10041
# Same as above, but a single script fragment to be evaled but not shown.
 
10042
finish_eval=$lt_finish_eval
 
10043
 
 
10044
# Take the output of nm and produce a listing of raw symbols and C names.
 
10045
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10046
 
 
10047
# Transform the output of nm in a proper C declaration
 
10048
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10049
 
 
10050
# Transform the output of nm in a C name address pair
 
10051
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10052
 
 
10053
# This is the shared library runtime path variable.
 
10054
runpath_var=$runpath_var
 
10055
 
 
10056
# This is the shared library path variable.
 
10057
shlibpath_var=$shlibpath_var
 
10058
 
 
10059
# Is shlibpath searched before the hard-coded library search path?
 
10060
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10061
 
 
10062
# How to hardcode a shared library path into an executable.
 
10063
hardcode_action=$hardcode_action
 
10064
 
 
10065
# Whether we should hardcode library paths into libraries.
 
10066
hardcode_into_libs=$hardcode_into_libs
 
10067
 
 
10068
# Flag to hardcode \$libdir into a binary during linking.
 
10069
# This must work even if \$libdir does not exist.
 
10070
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10071
 
 
10072
# If ld is used when linking, flag to hardcode \$libdir into
 
10073
# a binary during linking. This must work even if \$libdir does
 
10074
# not exist.
 
10075
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10076
 
 
10077
# Whether we need a single -rpath flag with a separated argument.
 
10078
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10079
 
 
10080
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10081
# resulting binary.
 
10082
hardcode_direct=$hardcode_direct
 
10083
 
 
10084
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10085
# resulting binary.
 
10086
hardcode_minus_L=$hardcode_minus_L
 
10087
 
 
10088
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10089
# the resulting binary.
 
10090
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10091
 
 
10092
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10093
# and all subsequent libraries and executables linked against it.
 
10094
hardcode_automatic=$hardcode_automatic
 
10095
 
 
10096
# Variables whose values should be saved in libtool wrapper scripts and
 
10097
# restored at relink time.
 
10098
variables_saved_for_relink="$variables_saved_for_relink"
 
10099
 
 
10100
# Whether libtool must link a program against all its dependency libraries.
 
10101
link_all_deplibs=$link_all_deplibs
 
10102
 
 
10103
# Compile-time system search path for libraries
 
10104
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10105
 
 
10106
# Run-time system search path for libraries
 
10107
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10108
 
 
10109
# Fix the shell variable \$srcfile for the compiler.
 
10110
fix_srcfile_path=$lt_fix_srcfile_path
 
10111
 
 
10112
# Set to yes if exported symbols are required.
 
10113
always_export_symbols=$always_export_symbols
 
10114
 
 
10115
# The commands to list exported symbols.
 
10116
export_symbols_cmds=$lt_export_symbols_cmds
 
10117
 
 
10118
# The commands to extract the exported symbol list from a shared archive.
 
10119
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10120
 
 
10121
# Symbols that should not be listed in the preloaded symbols.
 
10122
exclude_expsyms=$lt_exclude_expsyms
 
10123
 
 
10124
# Symbols that must always be exported.
 
10125
include_expsyms=$lt_include_expsyms
 
10126
 
 
10127
# ### END LIBTOOL CONFIG
 
10128
 
 
10129
__EOF__
 
10130
 
 
10131
 
 
10132
  case $host_os in
 
10133
  aix3*)
 
10134
    cat <<\EOF >> "$cfgfile"
 
10135
 
 
10136
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10137
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10138
# vanish in a puff of smoke.
 
10139
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10140
  COLLECT_NAMES=
 
10141
  export COLLECT_NAMES
 
10142
fi
 
10143
EOF
 
10144
    ;;
 
10145
  esac
 
10146
 
 
10147
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10148
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10149
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10150
  # is reportedly fixed, but why not run on old versions too?
 
10151
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10152
 
 
10153
  mv -f "$cfgfile" "$ofile" || \
 
10154
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10155
  chmod +x "$ofile"
 
10156
 
 
10157
else
 
10158
  # If there is no Makefile yet, we rely on a make rule to execute
 
10159
  # `config.status --recheck' to rerun these tests and create the
 
10160
  # libtool script then.
 
10161
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10162
  if test -f "$ltmain_in"; then
 
10163
    test -f Makefile && make "$ltmain"
 
10164
  fi
 
10165
fi
 
10166
 
 
10167
 
 
10168
ac_ext=c
 
10169
ac_cpp='$CPP $CPPFLAGS'
 
10170
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10171
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10172
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10173
 
 
10174
CC="$lt_save_CC"
 
10175
 
 
10176
 
 
10177
# Check whether --with-tags was given.
 
10178
if test "${with_tags+set}" = set; then
 
10179
  withval=$with_tags; tagnames="$withval"
 
10180
fi
 
10181
 
 
10182
 
 
10183
if test -f "$ltmain" && test -n "$tagnames"; then
 
10184
  if test ! -f "${ofile}"; then
 
10185
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10186
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10187
  fi
 
10188
 
 
10189
  if test -z "$LTCC"; then
 
10190
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10191
    if test -z "$LTCC"; then
 
10192
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10193
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10194
    else
 
10195
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10196
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10197
    fi
 
10198
  fi
 
10199
  if test -z "$LTCFLAGS"; then
 
10200
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10201
  fi
 
10202
 
 
10203
  # Extract list of available tagged configurations in $ofile.
 
10204
  # Note that this assumes the entire list is on one line.
 
10205
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10206
 
 
10207
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10208
  for tagname in $tagnames; do
 
10209
    IFS="$lt_save_ifs"
 
10210
    # Check whether tagname contains only valid characters
 
10211
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10212
    "") ;;
 
10213
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10214
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10215
   { (exit 1); exit 1; }; }
 
10216
        ;;
 
10217
    esac
 
10218
 
 
10219
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10220
    then
 
10221
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10222
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10223
   { (exit 1); exit 1; }; }
 
10224
    fi
 
10225
 
 
10226
    # Update the list of available tags.
 
10227
    if test -n "$tagname"; then
 
10228
      echo appending configuration tag \"$tagname\" to $ofile
 
10229
 
 
10230
      case $tagname in
 
10231
      CXX)
 
10232
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10233
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10234
            (test "X$CXX" != "Xg++"))) ; then
 
10235
          :
 
10236
        else
 
10237
          tagname=""
 
10238
        fi
 
10239
        ;;
 
10240
 
 
10241
      F77)
 
10242
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
10243
          :
 
10244
        else
 
10245
          tagname=""
 
10246
        fi
 
10247
        ;;
 
10248
 
 
10249
      GCJ)
 
10250
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
10251
          :
 
10252
        else
 
10253
          tagname=""
 
10254
        fi
 
10255
        ;;
 
10256
 
 
10257
      RC)
 
10258
 
 
10259
 
 
10260
# Source file extension for RC test sources.
 
10261
ac_ext=rc
 
10262
 
 
10263
# Object file extension for compiled RC test sources.
 
10264
objext=o
 
10265
objext_RC=$objext
 
10266
 
 
10267
# Code to be used in simple compile tests
 
10268
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
10269
 
 
10270
# Code to be used in simple link tests
 
10271
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
10272
 
 
10273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10274
 
 
10275
# If no C compiler was specified, use CC.
 
10276
LTCC=${LTCC-"$CC"}
 
10277
 
 
10278
# If no C compiler flags were specified, use CFLAGS.
 
10279
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10280
 
 
10281
# Allow CC to be a program name with arguments.
 
10282
compiler=$CC
 
10283
 
 
10284
 
 
10285
# save warnings/boilerplate of simple test code
 
10286
ac_outfile=conftest.$ac_objext
 
10287
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10288
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10289
_lt_compiler_boilerplate=`cat conftest.err`
 
10290
$rm conftest*
 
10291
 
 
10292
ac_outfile=conftest.$ac_objext
 
10293
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10294
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10295
_lt_linker_boilerplate=`cat conftest.err`
 
10296
$rm -r conftest*
 
10297
 
 
10298
 
 
10299
# Allow CC to be a program name with arguments.
 
10300
lt_save_CC="$CC"
 
10301
CC=${RC-"windres"}
 
10302
compiler=$CC
 
10303
compiler_RC=$CC
 
10304
for cc_temp in $compiler""; do
 
10305
  case $cc_temp in
 
10306
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10307
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10308
    \-*) ;;
 
10309
    *) break;;
 
10310
  esac
 
10311
done
 
10312
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10313
 
 
10314
lt_cv_prog_compiler_c_o_RC=yes
 
10315
 
 
10316
# The else clause should only fire when bootstrapping the
 
10317
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10318
# with your package, and you will get complaints that there are
 
10319
# no rules to generate ltmain.sh.
 
10320
if test -f "$ltmain"; then
 
10321
  # See if we are running on zsh, and set the options which allow our commands through
 
10322
  # without removal of \ escapes.
 
10323
  if test -n "${ZSH_VERSION+set}" ; then
 
10324
    setopt NO_GLOB_SUBST
 
10325
  fi
 
10326
  # Now quote all the things that may contain metacharacters while being
 
10327
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10328
  # variables and quote the copies for generation of the libtool script.
 
10329
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10330
    SED SHELL STRIP \
 
10331
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10332
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10333
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10334
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10335
    lt_cv_sys_global_symbol_to_c_name_address \
 
10336
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10337
    old_postinstall_cmds old_postuninstall_cmds \
 
10338
    compiler_RC \
 
10339
    CC_RC \
 
10340
    LD_RC \
 
10341
    lt_prog_compiler_wl_RC \
 
10342
    lt_prog_compiler_pic_RC \
 
10343
    lt_prog_compiler_static_RC \
 
10344
    lt_prog_compiler_no_builtin_flag_RC \
 
10345
    export_dynamic_flag_spec_RC \
 
10346
    thread_safe_flag_spec_RC \
 
10347
    whole_archive_flag_spec_RC \
 
10348
    enable_shared_with_static_runtimes_RC \
 
10349
    old_archive_cmds_RC \
 
10350
    old_archive_from_new_cmds_RC \
 
10351
    predep_objects_RC \
 
10352
    postdep_objects_RC \
 
10353
    predeps_RC \
 
10354
    postdeps_RC \
 
10355
    compiler_lib_search_path_RC \
 
10356
    compiler_lib_search_dirs_RC \
 
10357
    archive_cmds_RC \
 
10358
    archive_expsym_cmds_RC \
 
10359
    postinstall_cmds_RC \
 
10360
    postuninstall_cmds_RC \
 
10361
    old_archive_from_expsyms_cmds_RC \
 
10362
    allow_undefined_flag_RC \
 
10363
    no_undefined_flag_RC \
 
10364
    export_symbols_cmds_RC \
 
10365
    hardcode_libdir_flag_spec_RC \
 
10366
    hardcode_libdir_flag_spec_ld_RC \
 
10367
    hardcode_libdir_separator_RC \
 
10368
    hardcode_automatic_RC \
 
10369
    module_cmds_RC \
 
10370
    module_expsym_cmds_RC \
 
10371
    lt_cv_prog_compiler_c_o_RC \
 
10372
    fix_srcfile_path_RC \
 
10373
    exclude_expsyms_RC \
 
10374
    include_expsyms_RC; do
 
10375
 
 
10376
    case $var in
 
10377
    old_archive_cmds_RC | \
 
10378
    old_archive_from_new_cmds_RC | \
 
10379
    archive_cmds_RC | \
 
10380
    archive_expsym_cmds_RC | \
 
10381
    module_cmds_RC | \
 
10382
    module_expsym_cmds_RC | \
 
10383
    old_archive_from_expsyms_cmds_RC | \
 
10384
    export_symbols_cmds_RC | \
 
10385
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10386
    postinstall_cmds | postuninstall_cmds | \
 
10387
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10388
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10389
      # Double-quote double-evaled strings.
 
10390
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10391
      ;;
 
10392
    *)
 
10393
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10394
      ;;
 
10395
    esac
 
10396
  done
 
10397
 
 
10398
  case $lt_echo in
 
10399
  *'\$0 --fallback-echo"')
 
10400
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10401
    ;;
 
10402
  esac
 
10403
 
 
10404
cfgfile="$ofile"
 
10405
 
 
10406
  cat <<__EOF__ >> "$cfgfile"
 
10407
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
10408
 
 
10409
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10410
 
 
10411
# Shell to use when invoking shell scripts.
 
10412
SHELL=$lt_SHELL
 
10413
 
 
10414
# Whether or not to build shared libraries.
 
10415
build_libtool_libs=$enable_shared
 
10416
 
 
10417
# Whether or not to build static libraries.
 
10418
build_old_libs=$enable_static
 
10419
 
 
10420
# Whether or not to add -lc for building shared libraries.
 
10421
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
10422
 
 
10423
# Whether or not to disallow shared libs when runtime libs are static
 
10424
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
10425
 
 
10426
# Whether or not to optimize for fast installation.
 
10427
fast_install=$enable_fast_install
 
10428
 
 
10429
# The host system.
 
10430
host_alias=$host_alias
 
10431
host=$host
 
10432
host_os=$host_os
 
10433
 
 
10434
# The build system.
 
10435
build_alias=$build_alias
 
10436
build=$build
 
10437
build_os=$build_os
 
10438
 
 
10439
# An echo program that does not interpret backslashes.
 
10440
echo=$lt_echo
 
10441
 
 
10442
# The archiver.
 
10443
AR=$lt_AR
 
10444
AR_FLAGS=$lt_AR_FLAGS
 
10445
 
 
10446
# A C compiler.
 
10447
LTCC=$lt_LTCC
 
10448
 
 
10449
# LTCC compiler flags.
 
10450
LTCFLAGS=$lt_LTCFLAGS
 
10451
 
 
10452
# A language-specific compiler.
 
10453
CC=$lt_compiler_RC
 
10454
 
 
10455
# Is the compiler the GNU C compiler?
 
10456
with_gcc=$GCC_RC
 
10457
 
 
10458
# An ERE matcher.
 
10459
EGREP=$lt_EGREP
 
10460
 
 
10461
# The linker used to build libraries.
 
10462
LD=$lt_LD_RC
 
10463
 
 
10464
# Whether we need hard or soft links.
 
10465
LN_S=$lt_LN_S
 
10466
 
 
10467
# A BSD-compatible nm program.
 
10468
NM=$lt_NM
 
10469
 
 
10470
# A symbol stripping program
 
10471
STRIP=$lt_STRIP
 
10472
 
 
10473
# Used to examine libraries when file_magic_cmd begins "file"
 
10474
MAGIC_CMD=$MAGIC_CMD
 
10475
 
 
10476
# Used on cygwin: DLL creation program.
 
10477
DLLTOOL="$DLLTOOL"
 
10478
 
 
10479
# Used on cygwin: object dumper.
 
10480
OBJDUMP="$OBJDUMP"
 
10481
 
 
10482
# Used on cygwin: assembler.
 
10483
AS="$AS"
 
10484
 
 
10485
# The name of the directory that contains temporary libtool files.
 
10486
objdir=$objdir
 
10487
 
 
10488
# How to create reloadable object files.
 
10489
reload_flag=$lt_reload_flag
 
10490
reload_cmds=$lt_reload_cmds
 
10491
 
 
10492
# How to pass a linker flag through the compiler.
 
10493
wl=$lt_lt_prog_compiler_wl_RC
 
10494
 
 
10495
# Object file suffix (normally "o").
 
10496
objext="$ac_objext"
 
10497
 
 
10498
# Old archive suffix (normally "a").
 
10499
libext="$libext"
 
10500
 
 
10501
# Shared library suffix (normally ".so").
 
10502
shrext_cmds='$shrext_cmds'
 
10503
 
 
10504
# Executable file suffix (normally "").
 
10505
exeext="$exeext"
 
10506
 
 
10507
# Additional compiler flags for building library objects.
 
10508
pic_flag=$lt_lt_prog_compiler_pic_RC
 
10509
pic_mode=$pic_mode
 
10510
 
 
10511
# What is the maximum length of a command?
 
10512
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10513
 
 
10514
# Does compiler simultaneously support -c and -o options?
 
10515
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
10516
 
 
10517
# Must we lock files when doing compilation?
 
10518
need_locks=$lt_need_locks
 
10519
 
 
10520
# Do we need the lib prefix for modules?
 
10521
need_lib_prefix=$need_lib_prefix
 
10522
 
 
10523
# Do we need a version for libraries?
 
10524
need_version=$need_version
 
10525
 
 
10526
# Whether dlopen is supported.
 
10527
dlopen_support=$enable_dlopen
 
10528
 
 
10529
# Whether dlopen of programs is supported.
 
10530
dlopen_self=$enable_dlopen_self
 
10531
 
 
10532
# Whether dlopen of statically linked programs is supported.
 
10533
dlopen_self_static=$enable_dlopen_self_static
 
10534
 
 
10535
# Compiler flag to prevent dynamic linking.
 
10536
link_static_flag=$lt_lt_prog_compiler_static_RC
 
10537
 
 
10538
# Compiler flag to turn off builtin functions.
 
10539
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
10540
 
 
10541
# Compiler flag to allow reflexive dlopens.
 
10542
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
10543
 
 
10544
# Compiler flag to generate shared objects directly from archives.
 
10545
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
10546
 
 
10547
# Compiler flag to generate thread-safe objects.
 
10548
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
10549
 
 
10550
# Library versioning type.
 
10551
version_type=$version_type
 
10552
 
 
10553
# Format of library name prefix.
 
10554
libname_spec=$lt_libname_spec
 
10555
 
 
10556
# List of archive names.  First name is the real one, the rest are links.
 
10557
# The last name is the one that the linker finds with -lNAME.
 
10558
library_names_spec=$lt_library_names_spec
 
10559
 
 
10560
# The coded name of the library, if different from the real name.
 
10561
soname_spec=$lt_soname_spec
 
10562
 
 
10563
# Commands used to build and install an old-style archive.
 
10564
RANLIB=$lt_RANLIB
 
10565
old_archive_cmds=$lt_old_archive_cmds_RC
 
10566
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10567
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10568
 
 
10569
# Create an old-style archive from a shared archive.
 
10570
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
10571
 
 
10572
# Create a temporary old-style archive to link instead of a shared archive.
 
10573
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
10574
 
 
10575
# Commands used to build and install a shared archive.
 
10576
archive_cmds=$lt_archive_cmds_RC
 
10577
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
10578
postinstall_cmds=$lt_postinstall_cmds
 
10579
postuninstall_cmds=$lt_postuninstall_cmds
 
10580
 
 
10581
# Commands used to build a loadable module (assumed same as above if empty)
 
10582
module_cmds=$lt_module_cmds_RC
 
10583
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
10584
 
 
10585
# Commands to strip libraries.
 
10586
old_striplib=$lt_old_striplib
 
10587
striplib=$lt_striplib
 
10588
 
 
10589
# Dependencies to place before the objects being linked to create a
 
10590
# shared library.
 
10591
predep_objects=$lt_predep_objects_RC
 
10592
 
 
10593
# Dependencies to place after the objects being linked to create a
 
10594
# shared library.
 
10595
postdep_objects=$lt_postdep_objects_RC
 
10596
 
 
10597
# Dependencies to place before the objects being linked to create a
 
10598
# shared library.
 
10599
predeps=$lt_predeps_RC
 
10600
 
 
10601
# Dependencies to place after the objects being linked to create a
 
10602
# shared library.
 
10603
postdeps=$lt_postdeps_RC
 
10604
 
 
10605
# The directories searched by this compiler when creating a shared
 
10606
# library
 
10607
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
10608
 
 
10609
# The library search path used internally by the compiler when linking
 
10610
# a shared library.
 
10611
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
10612
 
 
10613
# Method to check whether dependent libraries are shared objects.
 
10614
deplibs_check_method=$lt_deplibs_check_method
 
10615
 
 
10616
# Command to use when deplibs_check_method == file_magic.
 
10617
file_magic_cmd=$lt_file_magic_cmd
 
10618
 
 
10619
# Flag that allows shared libraries with undefined symbols to be built.
 
10620
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
10621
 
 
10622
# Flag that forces no undefined symbols.
 
10623
no_undefined_flag=$lt_no_undefined_flag_RC
 
10624
 
 
10625
# Commands used to finish a libtool library installation in a directory.
 
10626
finish_cmds=$lt_finish_cmds
 
10627
 
 
10628
# Same as above, but a single script fragment to be evaled but not shown.
 
10629
finish_eval=$lt_finish_eval
 
10630
 
 
10631
# Take the output of nm and produce a listing of raw symbols and C names.
 
10632
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10633
 
 
10634
# Transform the output of nm in a proper C declaration
 
10635
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10636
 
 
10637
# Transform the output of nm in a C name address pair
 
10638
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10639
 
 
10640
# This is the shared library runtime path variable.
 
10641
runpath_var=$runpath_var
 
10642
 
 
10643
# This is the shared library path variable.
 
10644
shlibpath_var=$shlibpath_var
 
10645
 
 
10646
# Is shlibpath searched before the hard-coded library search path?
 
10647
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10648
 
 
10649
# How to hardcode a shared library path into an executable.
 
10650
hardcode_action=$hardcode_action_RC
 
10651
 
 
10652
# Whether we should hardcode library paths into libraries.
 
10653
hardcode_into_libs=$hardcode_into_libs
 
10654
 
 
10655
# Flag to hardcode \$libdir into a binary during linking.
 
10656
# This must work even if \$libdir does not exist.
 
10657
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
10658
 
 
10659
# If ld is used when linking, flag to hardcode \$libdir into
 
10660
# a binary during linking. This must work even if \$libdir does
 
10661
# not exist.
 
10662
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
10663
 
 
10664
# Whether we need a single -rpath flag with a separated argument.
 
10665
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
10666
 
 
10667
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10668
# resulting binary.
 
10669
hardcode_direct=$hardcode_direct_RC
 
10670
 
 
10671
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10672
# resulting binary.
 
10673
hardcode_minus_L=$hardcode_minus_L_RC
 
10674
 
 
10675
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10676
# the resulting binary.
 
10677
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
10678
 
 
10679
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10680
# and all subsequent libraries and executables linked against it.
 
10681
hardcode_automatic=$hardcode_automatic_RC
 
10682
 
 
10683
# Variables whose values should be saved in libtool wrapper scripts and
 
10684
# restored at relink time.
 
10685
variables_saved_for_relink="$variables_saved_for_relink"
 
10686
 
 
10687
# Whether libtool must link a program against all its dependency libraries.
 
10688
link_all_deplibs=$link_all_deplibs_RC
 
10689
 
 
10690
# Compile-time system search path for libraries
 
10691
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10692
 
 
10693
# Run-time system search path for libraries
 
10694
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10695
 
 
10696
# Fix the shell variable \$srcfile for the compiler.
 
10697
fix_srcfile_path=$lt_fix_srcfile_path
 
10698
 
 
10699
# Set to yes if exported symbols are required.
 
10700
always_export_symbols=$always_export_symbols_RC
 
10701
 
 
10702
# The commands to list exported symbols.
 
10703
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
10704
 
 
10705
# The commands to extract the exported symbol list from a shared archive.
 
10706
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10707
 
 
10708
# Symbols that should not be listed in the preloaded symbols.
 
10709
exclude_expsyms=$lt_exclude_expsyms_RC
 
10710
 
 
10711
# Symbols that must always be exported.
 
10712
include_expsyms=$lt_include_expsyms_RC
 
10713
 
 
10714
# ### END LIBTOOL TAG CONFIG: $tagname
 
10715
 
 
10716
__EOF__
 
10717
 
 
10718
 
 
10719
else
 
10720
  # If there is no Makefile yet, we rely on a make rule to execute
 
10721
  # `config.status --recheck' to rerun these tests and create the
 
10722
  # libtool script then.
 
10723
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10724
  if test -f "$ltmain_in"; then
 
10725
    test -f Makefile && make "$ltmain"
 
10726
  fi
 
10727
fi
 
10728
 
 
10729
 
 
10730
ac_ext=c
 
10731
ac_cpp='$CPP $CPPFLAGS'
 
10732
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10733
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10734
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10735
 
 
10736
CC="$lt_save_CC"
 
10737
 
 
10738
        ;;
 
10739
 
 
10740
      *)
 
10741
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
10742
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
10743
   { (exit 1); exit 1; }; }
 
10744
        ;;
 
10745
      esac
 
10746
 
 
10747
      # Append the new tag name to the list of available tags.
 
10748
      if test -n "$tagname" ; then
 
10749
      available_tags="$available_tags $tagname"
 
10750
    fi
 
10751
    fi
 
10752
  done
 
10753
  IFS="$lt_save_ifs"
 
10754
 
 
10755
  # Now substitute the updated list of available tags.
 
10756
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
10757
    mv "${ofile}T" "$ofile"
 
10758
    chmod +x "$ofile"
 
10759
  else
 
10760
    rm -f "${ofile}T"
 
10761
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
10762
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
10763
   { (exit 1); exit 1; }; }
 
10764
  fi
 
10765
fi
 
10766
 
 
10767
 
 
10768
 
 
10769
# This can be used to rebuild libtool when needed
 
10770
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
10771
 
 
10772
# Always use our own libtool.
 
10773
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
10774
 
 
10775
# Prevent multiple expansion
 
10776
 
 
10777
 
 
10778
 
 
10779
 
 
10780
 
11902
10781
 
11903
10782
 
11904
10783
 
12594
11473
Usually this means the macro was only invoked conditionally." >&2;}
12595
11474
   { (exit 1); exit 1; }; }
12596
11475
fi
12597
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12598
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12599
 
Usually this means the macro was only invoked conditionally." >&5
12600
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12601
 
Usually this means the macro was only invoked conditionally." >&2;}
12602
 
   { (exit 1); exit 1; }; }
12603
 
fi
12604
11476
 
12605
11477
: ${CONFIG_STATUS=./config.status}
12606
11478
ac_clean_files_save=$ac_clean_files
13060
11932
#
13061
11933
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13062
11934
 
13063
 
 
13064
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
13065
 
# if CDPATH is set.
13066
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13067
 
 
13068
 
sed_quote_subst='$sed_quote_subst'
13069
 
double_quote_subst='$double_quote_subst'
13070
 
delay_variable_subst='$delay_variable_subst'
13071
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13072
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13073
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13074
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13075
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13076
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13077
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13078
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13079
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13080
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13081
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13082
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13083
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13084
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13085
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13086
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13087
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13088
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13089
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13090
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13091
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13092
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13093
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13094
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13095
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13096
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13097
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13098
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13099
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13100
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13101
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13102
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13103
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13104
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13105
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13106
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13107
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13108
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13109
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13110
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13111
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13112
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13113
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13114
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13115
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13116
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13117
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13118
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13119
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13120
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13121
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13122
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13123
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13124
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13125
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13126
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13127
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13128
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13129
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13130
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13131
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13132
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13133
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13134
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13135
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13136
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13137
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13138
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13139
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13140
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13141
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13142
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13143
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13144
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13145
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13146
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13147
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13148
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13149
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13150
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13151
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13152
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13153
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13154
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13155
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13156
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13157
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13158
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13159
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13160
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13161
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13162
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13163
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13164
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13165
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13166
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13167
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13168
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13169
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13170
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13171
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13172
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13173
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13174
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13175
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13176
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13177
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13178
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13179
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13180
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13181
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13182
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13183
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13184
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13185
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13186
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13187
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13188
 
 
13189
 
LTCC='$LTCC'
13190
 
LTCFLAGS='$LTCFLAGS'
13191
 
compiler='$compiler_DEFAULT'
13192
 
 
13193
 
# Quote evaled strings.
13194
 
for var in SED \
13195
 
GREP \
13196
 
EGREP \
13197
 
FGREP \
13198
 
LD \
13199
 
NM \
13200
 
LN_S \
13201
 
lt_SP2NL \
13202
 
lt_NL2SP \
13203
 
reload_flag \
13204
 
deplibs_check_method \
13205
 
file_magic_cmd \
13206
 
AR \
13207
 
AR_FLAGS \
13208
 
STRIP \
13209
 
RANLIB \
13210
 
CC \
13211
 
CFLAGS \
13212
 
compiler \
13213
 
lt_cv_sys_global_symbol_pipe \
13214
 
lt_cv_sys_global_symbol_to_cdecl \
13215
 
lt_cv_sys_global_symbol_to_c_name_address \
13216
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13217
 
SHELL \
13218
 
ECHO \
13219
 
lt_prog_compiler_no_builtin_flag \
13220
 
lt_prog_compiler_wl \
13221
 
lt_prog_compiler_pic \
13222
 
lt_prog_compiler_static \
13223
 
lt_cv_prog_compiler_c_o \
13224
 
need_locks \
13225
 
DSYMUTIL \
13226
 
NMEDIT \
13227
 
LIPO \
13228
 
OTOOL \
13229
 
OTOOL64 \
13230
 
shrext_cmds \
13231
 
export_dynamic_flag_spec \
13232
 
whole_archive_flag_spec \
13233
 
compiler_needs_object \
13234
 
with_gnu_ld \
13235
 
allow_undefined_flag \
13236
 
no_undefined_flag \
13237
 
hardcode_libdir_flag_spec \
13238
 
hardcode_libdir_flag_spec_ld \
13239
 
hardcode_libdir_separator \
13240
 
fix_srcfile_path \
13241
 
exclude_expsyms \
13242
 
include_expsyms \
13243
 
file_list_spec \
13244
 
variables_saved_for_relink \
13245
 
libname_spec \
13246
 
library_names_spec \
13247
 
soname_spec \
13248
 
finish_eval \
13249
 
old_striplib \
13250
 
striplib; do
13251
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13252
 
    *[\\\\\\\`\\"\\\$]*)
13253
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13254
 
      ;;
13255
 
    *)
13256
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13257
 
      ;;
13258
 
    esac
13259
 
done
13260
 
 
13261
 
# Double-quote double-evaled strings.
13262
 
for var in reload_cmds \
13263
 
old_postinstall_cmds \
13264
 
old_postuninstall_cmds \
13265
 
old_archive_cmds \
13266
 
extract_expsyms_cmds \
13267
 
old_archive_from_new_cmds \
13268
 
old_archive_from_expsyms_cmds \
13269
 
archive_cmds \
13270
 
archive_expsym_cmds \
13271
 
module_cmds \
13272
 
module_expsym_cmds \
13273
 
export_symbols_cmds \
13274
 
prelink_cmds \
13275
 
postinstall_cmds \
13276
 
postuninstall_cmds \
13277
 
finish_cmds \
13278
 
sys_lib_search_path_spec \
13279
 
sys_lib_dlsearch_path_spec; do
13280
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13281
 
    *[\\\\\\\`\\"\\\$]*)
13282
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13283
 
      ;;
13284
 
    *)
13285
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13286
 
      ;;
13287
 
    esac
13288
 
done
13289
 
 
13290
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
13291
 
case \$lt_ECHO in
13292
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13293
 
  ;;
13294
 
esac
13295
 
 
13296
 
ac_aux_dir='$ac_aux_dir'
13297
 
xsi_shell='$xsi_shell'
13298
 
lt_shell_append='$lt_shell_append'
13299
 
 
13300
 
# See if we are running on zsh, and set the options which allow our
13301
 
# commands through without removal of \ escapes INIT.
13302
 
if test -n "\${ZSH_VERSION+set}" ; then
13303
 
   setopt NO_GLOB_SUBST
13304
 
fi
13305
 
 
13306
 
 
13307
 
    PACKAGE='$PACKAGE'
13308
 
    VERSION='$VERSION'
13309
 
    TIMESTAMP='$TIMESTAMP'
13310
 
    RM='$RM'
13311
 
    ofile='$ofile'
13312
 
 
13313
 
 
13314
 
 
13315
 
 
13316
11935
_ACEOF
13317
11936
 
13318
11937
cat >>$CONFIG_STATUS <<\_ACEOF
13323
11942
  case $ac_config_target in
13324
11943
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13325
11944
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13326
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13327
11945
    "dieharder_version.h") CONFIG_FILES="$CONFIG_FILES dieharder_version.h" ;;
13328
11946
    "dieharder.spec") CONFIG_FILES="$CONFIG_FILES dieharder.spec" ;;
13329
11947
    "dieharder.html") CONFIG_FILES="$CONFIG_FILES dieharder.html" ;;
13453
12071
am__tar!$am__tar$ac_delim
13454
12072
am__untar!$am__untar$ac_delim
13455
12073
RELEASE!$RELEASE$ac_delim
13456
 
LIBTOOL!$LIBTOOL$ac_delim
 
12074
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
 
12075
DIEHARDER_LT_VERSION!$DIEHARDER_LT_VERSION$ac_delim
 
12076
RELEASED!$RELEASED$ac_delim
13457
12077
build!$build$ac_delim
13458
12078
build_cpu!$build_cpu$ac_delim
13459
12079
build_vendor!$build_vendor$ac_delim
13478
12098
CCDEPMODE!$CCDEPMODE$ac_delim
13479
12099
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13480
12100
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
12101
RANLIB!$RANLIB$ac_delim
 
12102
ACTAR!$ACTAR$ac_delim
13481
12103
SED!$SED$ac_delim
13482
12104
GREP!$GREP$ac_delim
13483
12105
EGREP!$EGREP$ac_delim
13484
 
FGREP!$FGREP$ac_delim
13485
 
LD!$LD$ac_delim
13486
 
DUMPBIN!$DUMPBIN$ac_delim
13487
 
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13488
 
NM!$NM$ac_delim
13489
12106
LN_S!$LN_S$ac_delim
 
12107
ECHO!$ECHO$ac_delim
13490
12108
AR!$AR$ac_delim
13491
 
RANLIB!$RANLIB$ac_delim
13492
 
lt_ECHO!$lt_ECHO$ac_delim
 
12109
DSYMUTIL!$DSYMUTIL$ac_delim
 
12110
NMEDIT!$NMEDIT$ac_delim
13493
12111
_ACEOF
13494
12112
 
13495
12113
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13531
12149
ac_delim='%!_!# '
13532
12150
for ac_last_try in false false false false false :; do
13533
12151
  cat >conf$$subs.sed <<_ACEOF
13534
 
DSYMUTIL!$DSYMUTIL$ac_delim
13535
 
NMEDIT!$NMEDIT$ac_delim
13536
 
LIPO!$LIPO$ac_delim
13537
 
OTOOL!$OTOOL$ac_delim
13538
 
OTOOL64!$OTOOL64$ac_delim
13539
12152
CPP!$CPP$ac_delim
13540
 
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
13541
 
DIEHARDER_LT_VERSION!$DIEHARDER_LT_VERSION$ac_delim
13542
 
RELEASED!$RELEASED$ac_delim
13543
 
ACTAR!$ACTAR$ac_delim
 
12153
LIBTOOL!$LIBTOOL$ac_delim
13544
12154
DIEHARDER_CFLAGS!$DIEHARDER_CFLAGS$ac_delim
13545
12155
DIEHARDER_LIBS!$DIEHARDER_LIBS$ac_delim
13546
12156
LIBOBJS!$LIBOBJS$ac_delim
13547
12157
LTLIBOBJS!$LTLIBOBJS$ac_delim
13548
12158
_ACEOF
13549
12159
 
13550
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
 
12160
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
13551
12161
    break
13552
12162
  elif $ac_last_try; then
13553
12163
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14114
12724
  done
14115
12725
done
14116
12726
 ;;
14117
 
    "libtool":C)
14118
 
 
14119
 
    # See if we are running on zsh, and set the options which allow our
14120
 
    # commands through without removal of \ escapes.
14121
 
    if test -n "${ZSH_VERSION+set}" ; then
14122
 
      setopt NO_GLOB_SUBST
14123
 
    fi
14124
 
 
14125
 
    cfgfile="${ofile}T"
14126
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14127
 
    $RM "$cfgfile"
14128
 
 
14129
 
    cat <<_LT_EOF >> "$cfgfile"
14130
 
#! $SHELL
14131
 
 
14132
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14133
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14134
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14136
 
#
14137
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14138
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14139
 
#   Written by Gordon Matzigkeit, 1996
14140
 
#
14141
 
#   This file is part of GNU Libtool.
14142
 
#
14143
 
# GNU Libtool is free software; you can redistribute it and/or
14144
 
# modify it under the terms of the GNU General Public License as
14145
 
# published by the Free Software Foundation; either version 2 of
14146
 
# the License, or (at your option) any later version.
14147
 
#
14148
 
# As a special exception to the GNU General Public License,
14149
 
# if you distribute this file as part of a program or library that
14150
 
# is built using GNU Libtool, you may include this file under the
14151
 
# same distribution terms that you use for the rest of that program.
14152
 
#
14153
 
# GNU Libtool is distributed in the hope that it will be useful,
14154
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14155
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14156
 
# GNU General Public License for more details.
14157
 
#
14158
 
# You should have received a copy of the GNU General Public License
14159
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
14160
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14161
 
# obtained by writing to the Free Software Foundation, Inc.,
14162
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14163
 
 
14164
 
 
14165
 
# The names of the tagged configurations supported by this script.
14166
 
available_tags=""
14167
 
 
14168
 
# ### BEGIN LIBTOOL CONFIG
14169
 
 
14170
 
# Which release of libtool.m4 was used?
14171
 
macro_version=$macro_version
14172
 
macro_revision=$macro_revision
14173
 
 
14174
 
# Whether or not to build shared libraries.
14175
 
build_libtool_libs=$enable_shared
14176
 
 
14177
 
# Whether or not to build static libraries.
14178
 
build_old_libs=$enable_static
14179
 
 
14180
 
# What type of objects to build.
14181
 
pic_mode=$pic_mode
14182
 
 
14183
 
# Whether or not to optimize for fast installation.
14184
 
fast_install=$enable_fast_install
14185
 
 
14186
 
# The host system.
14187
 
host_alias=$host_alias
14188
 
host=$host
14189
 
host_os=$host_os
14190
 
 
14191
 
# The build system.
14192
 
build_alias=$build_alias
14193
 
build=$build
14194
 
build_os=$build_os
14195
 
 
14196
 
# A sed program that does not truncate output.
14197
 
SED=$lt_SED
14198
 
 
14199
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14200
 
Xsed="\$SED -e 1s/^X//"
14201
 
 
14202
 
# A grep program that handles long lines.
14203
 
GREP=$lt_GREP
14204
 
 
14205
 
# An ERE matcher.
14206
 
EGREP=$lt_EGREP
14207
 
 
14208
 
# A literal string matcher.
14209
 
FGREP=$lt_FGREP
14210
 
 
14211
 
# A BSD- or MS-compatible name lister.
14212
 
NM=$lt_NM
14213
 
 
14214
 
# Whether we need soft or hard links.
14215
 
LN_S=$lt_LN_S
14216
 
 
14217
 
# What is the maximum length of a command?
14218
 
max_cmd_len=$max_cmd_len
14219
 
 
14220
 
# Object file suffix (normally "o").
14221
 
objext=$ac_objext
14222
 
 
14223
 
# Executable file suffix (normally "").
14224
 
exeext=$exeext
14225
 
 
14226
 
# whether the shell understands "unset".
14227
 
lt_unset=$lt_unset
14228
 
 
14229
 
# turn spaces into newlines.
14230
 
SP2NL=$lt_lt_SP2NL
14231
 
 
14232
 
# turn newlines into spaces.
14233
 
NL2SP=$lt_lt_NL2SP
14234
 
 
14235
 
# How to create reloadable object files.
14236
 
reload_flag=$lt_reload_flag
14237
 
reload_cmds=$lt_reload_cmds
14238
 
 
14239
 
# Method to check whether dependent libraries are shared objects.
14240
 
deplibs_check_method=$lt_deplibs_check_method
14241
 
 
14242
 
# Command to use when deplibs_check_method == "file_magic".
14243
 
file_magic_cmd=$lt_file_magic_cmd
14244
 
 
14245
 
# The archiver.
14246
 
AR=$lt_AR
14247
 
AR_FLAGS=$lt_AR_FLAGS
14248
 
 
14249
 
# A symbol stripping program.
14250
 
STRIP=$lt_STRIP
14251
 
 
14252
 
# Commands used to install an old-style archive.
14253
 
RANLIB=$lt_RANLIB
14254
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14255
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14256
 
 
14257
 
# A C compiler.
14258
 
LTCC=$lt_CC
14259
 
 
14260
 
# LTCC compiler flags.
14261
 
LTCFLAGS=$lt_CFLAGS
14262
 
 
14263
 
# Take the output of nm and produce a listing of raw symbols and C names.
14264
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14265
 
 
14266
 
# Transform the output of nm in a proper C declaration.
14267
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14268
 
 
14269
 
# Transform the output of nm in a C name address pair.
14270
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14271
 
 
14272
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
14273
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14274
 
 
14275
 
# The name of the directory that contains temporary libtool files.
14276
 
objdir=$objdir
14277
 
 
14278
 
# Shell to use when invoking shell scripts.
14279
 
SHELL=$lt_SHELL
14280
 
 
14281
 
# An echo program that does not interpret backslashes.
14282
 
ECHO=$lt_ECHO
14283
 
 
14284
 
# Used to examine libraries when file_magic_cmd begins with "file".
14285
 
MAGIC_CMD=$MAGIC_CMD
14286
 
 
14287
 
# Must we lock files when doing compilation?
14288
 
need_locks=$lt_need_locks
14289
 
 
14290
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14291
 
DSYMUTIL=$lt_DSYMUTIL
14292
 
 
14293
 
# Tool to change global to local symbols on Mac OS X.
14294
 
NMEDIT=$lt_NMEDIT
14295
 
 
14296
 
# Tool to manipulate fat objects and archives on Mac OS X.
14297
 
LIPO=$lt_LIPO
14298
 
 
14299
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14300
 
OTOOL=$lt_OTOOL
14301
 
 
14302
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14303
 
OTOOL64=$lt_OTOOL64
14304
 
 
14305
 
# Old archive suffix (normally "a").
14306
 
libext=$libext
14307
 
 
14308
 
# Shared library suffix (normally ".so").
14309
 
shrext_cmds=$lt_shrext_cmds
14310
 
 
14311
 
# The commands to extract the exported symbol list from a shared archive.
14312
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14313
 
 
14314
 
# Variables whose values should be saved in libtool wrapper scripts and
14315
 
# restored at link time.
14316
 
variables_saved_for_relink=$lt_variables_saved_for_relink
14317
 
 
14318
 
# Do we need the "lib" prefix for modules?
14319
 
need_lib_prefix=$need_lib_prefix
14320
 
 
14321
 
# Do we need a version for libraries?
14322
 
need_version=$need_version
14323
 
 
14324
 
# Library versioning type.
14325
 
version_type=$version_type
14326
 
 
14327
 
# Shared library runtime path variable.
14328
 
runpath_var=$runpath_var
14329
 
 
14330
 
# Shared library path variable.
14331
 
shlibpath_var=$shlibpath_var
14332
 
 
14333
 
# Is shlibpath searched before the hard-coded library search path?
14334
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14335
 
 
14336
 
# Format of library name prefix.
14337
 
libname_spec=$lt_libname_spec
14338
 
 
14339
 
# List of archive names.  First name is the real one, the rest are links.
14340
 
# The last name is the one that the linker finds with -lNAME
14341
 
library_names_spec=$lt_library_names_spec
14342
 
 
14343
 
# The coded name of the library, if different from the real name.
14344
 
soname_spec=$lt_soname_spec
14345
 
 
14346
 
# Command to use after installation of a shared archive.
14347
 
postinstall_cmds=$lt_postinstall_cmds
14348
 
 
14349
 
# Command to use after uninstallation of a shared archive.
14350
 
postuninstall_cmds=$lt_postuninstall_cmds
14351
 
 
14352
 
# Commands used to finish a libtool library installation in a directory.
14353
 
finish_cmds=$lt_finish_cmds
14354
 
 
14355
 
# As "finish_cmds", except a single script fragment to be evaled but
14356
 
# not shown.
14357
 
finish_eval=$lt_finish_eval
14358
 
 
14359
 
# Whether we should hardcode library paths into libraries.
14360
 
hardcode_into_libs=$hardcode_into_libs
14361
 
 
14362
 
# Compile-time system search path for libraries.
14363
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14364
 
 
14365
 
# Run-time system search path for libraries.
14366
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14367
 
 
14368
 
# Whether dlopen is supported.
14369
 
dlopen_support=$enable_dlopen
14370
 
 
14371
 
# Whether dlopen of programs is supported.
14372
 
dlopen_self=$enable_dlopen_self
14373
 
 
14374
 
# Whether dlopen of statically linked programs is supported.
14375
 
dlopen_self_static=$enable_dlopen_self_static
14376
 
 
14377
 
# Commands to strip libraries.
14378
 
old_striplib=$lt_old_striplib
14379
 
striplib=$lt_striplib
14380
 
 
14381
 
 
14382
 
# The linker used to build libraries.
14383
 
LD=$lt_LD
14384
 
 
14385
 
# Commands used to build an old-style archive.
14386
 
old_archive_cmds=$lt_old_archive_cmds
14387
 
 
14388
 
# A language specific compiler.
14389
 
CC=$lt_compiler
14390
 
 
14391
 
# Is the compiler the GNU compiler?
14392
 
with_gcc=$GCC
14393
 
 
14394
 
# Compiler flag to turn off builtin functions.
14395
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14396
 
 
14397
 
# How to pass a linker flag through the compiler.
14398
 
wl=$lt_lt_prog_compiler_wl
14399
 
 
14400
 
# Additional compiler flags for building library objects.
14401
 
pic_flag=$lt_lt_prog_compiler_pic
14402
 
 
14403
 
# Compiler flag to prevent dynamic linking.
14404
 
link_static_flag=$lt_lt_prog_compiler_static
14405
 
 
14406
 
# Does compiler simultaneously support -c and -o options?
14407
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14408
 
 
14409
 
# Whether or not to add -lc for building shared libraries.
14410
 
build_libtool_need_lc=$archive_cmds_need_lc
14411
 
 
14412
 
# Whether or not to disallow shared libs when runtime libs are static.
14413
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14414
 
 
14415
 
# Compiler flag to allow reflexive dlopens.
14416
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14417
 
 
14418
 
# Compiler flag to generate shared objects directly from archives.
14419
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14420
 
 
14421
 
# Whether the compiler copes with passing no objects directly.
14422
 
compiler_needs_object=$lt_compiler_needs_object
14423
 
 
14424
 
# Create an old-style archive from a shared archive.
14425
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14426
 
 
14427
 
# Create a temporary old-style archive to link instead of a shared archive.
14428
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14429
 
 
14430
 
# Commands used to build a shared archive.
14431
 
archive_cmds=$lt_archive_cmds
14432
 
archive_expsym_cmds=$lt_archive_expsym_cmds
14433
 
 
14434
 
# Commands used to build a loadable module if different from building
14435
 
# a shared archive.
14436
 
module_cmds=$lt_module_cmds
14437
 
module_expsym_cmds=$lt_module_expsym_cmds
14438
 
 
14439
 
# Whether we are building with GNU ld or not.
14440
 
with_gnu_ld=$lt_with_gnu_ld
14441
 
 
14442
 
# Flag that allows shared libraries with undefined symbols to be built.
14443
 
allow_undefined_flag=$lt_allow_undefined_flag
14444
 
 
14445
 
# Flag that enforces no undefined symbols.
14446
 
no_undefined_flag=$lt_no_undefined_flag
14447
 
 
14448
 
# Flag to hardcode \$libdir into a binary during linking.
14449
 
# This must work even if \$libdir does not exist
14450
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14451
 
 
14452
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
14453
 
# during linking.  This must work even if \$libdir does not exist.
14454
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14455
 
 
14456
 
# Whether we need a single "-rpath" flag with a separated argument.
14457
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14458
 
 
14459
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14460
 
# DIR into the resulting binary.
14461
 
hardcode_direct=$hardcode_direct
14462
 
 
14463
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14464
 
# DIR into the resulting binary and the resulting library dependency is
14465
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14466
 
# library is relocated.
14467
 
hardcode_direct_absolute=$hardcode_direct_absolute
14468
 
 
14469
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14470
 
# into the resulting binary.
14471
 
hardcode_minus_L=$hardcode_minus_L
14472
 
 
14473
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14474
 
# into the resulting binary.
14475
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
14476
 
 
14477
 
# Set to "yes" if building a shared library automatically hardcodes DIR
14478
 
# into the library and all subsequent libraries and executables linked
14479
 
# against it.
14480
 
hardcode_automatic=$hardcode_automatic
14481
 
 
14482
 
# Set to yes if linker adds runtime paths of dependent libraries
14483
 
# to runtime path list.
14484
 
inherit_rpath=$inherit_rpath
14485
 
 
14486
 
# Whether libtool must link a program against all its dependency libraries.
14487
 
link_all_deplibs=$link_all_deplibs
14488
 
 
14489
 
# Fix the shell variable \$srcfile for the compiler.
14490
 
fix_srcfile_path=$lt_fix_srcfile_path
14491
 
 
14492
 
# Set to "yes" if exported symbols are required.
14493
 
always_export_symbols=$always_export_symbols
14494
 
 
14495
 
# The commands to list exported symbols.
14496
 
export_symbols_cmds=$lt_export_symbols_cmds
14497
 
 
14498
 
# Symbols that should not be listed in the preloaded symbols.
14499
 
exclude_expsyms=$lt_exclude_expsyms
14500
 
 
14501
 
# Symbols that must always be exported.
14502
 
include_expsyms=$lt_include_expsyms
14503
 
 
14504
 
# Commands necessary for linking programs (against libraries) with templates.
14505
 
prelink_cmds=$lt_prelink_cmds
14506
 
 
14507
 
# Specify filename containing input files.
14508
 
file_list_spec=$lt_file_list_spec
14509
 
 
14510
 
# How to hardcode a shared library path into an executable.
14511
 
hardcode_action=$hardcode_action
14512
 
 
14513
 
# ### END LIBTOOL CONFIG
14514
 
 
14515
 
_LT_EOF
14516
 
 
14517
 
  case $host_os in
14518
 
  aix3*)
14519
 
    cat <<\_LT_EOF >> "$cfgfile"
14520
 
# AIX sometimes has problems with the GCC collect2 program.  For some
14521
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
14522
 
# vanish in a puff of smoke.
14523
 
if test "X${COLLECT_NAMES+set}" != Xset; then
14524
 
  COLLECT_NAMES=
14525
 
  export COLLECT_NAMES
14526
 
fi
14527
 
_LT_EOF
14528
 
    ;;
14529
 
  esac
14530
 
 
14531
 
 
14532
 
ltmain="$ac_aux_dir/ltmain.sh"
14533
 
 
14534
 
 
14535
 
  # We use sed instead of cat because bash on DJGPP gets confused if
14536
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14537
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
14538
 
  # is reportedly fixed, but why not run on old versions too?
14539
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14540
 
    || (rm -f "$cfgfile"; exit 1)
14541
 
 
14542
 
  case $xsi_shell in
14543
 
  yes)
14544
 
    cat << \_LT_EOF >> "$cfgfile"
14545
 
 
14546
 
# func_dirname file append nondir_replacement
14547
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14548
 
# otherwise set result to NONDIR_REPLACEMENT.
14549
 
func_dirname ()
14550
 
{
14551
 
  case ${1} in
14552
 
    */*) func_dirname_result="${1%/*}${2}" ;;
14553
 
    *  ) func_dirname_result="${3}" ;;
14554
 
  esac
14555
 
}
14556
 
 
14557
 
# func_basename file
14558
 
func_basename ()
14559
 
{
14560
 
  func_basename_result="${1##*/}"
14561
 
}
14562
 
 
14563
 
# func_dirname_and_basename file append nondir_replacement
14564
 
# perform func_basename and func_dirname in a single function
14565
 
# call:
14566
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
14567
 
#             add APPEND to the result, otherwise set result
14568
 
#             to NONDIR_REPLACEMENT.
14569
 
#             value returned in "$func_dirname_result"
14570
 
#   basename: Compute filename of FILE.
14571
 
#             value retuned in "$func_basename_result"
14572
 
# Implementation must be kept synchronized with func_dirname
14573
 
# and func_basename. For efficiency, we do not delegate to
14574
 
# those functions but instead duplicate the functionality here.
14575
 
func_dirname_and_basename ()
14576
 
{
14577
 
  case ${1} in
14578
 
    */*) func_dirname_result="${1%/*}${2}" ;;
14579
 
    *  ) func_dirname_result="${3}" ;;
14580
 
  esac
14581
 
  func_basename_result="${1##*/}"
14582
 
}
14583
 
 
14584
 
# func_stripname prefix suffix name
14585
 
# strip PREFIX and SUFFIX off of NAME.
14586
 
# PREFIX and SUFFIX must not contain globbing or regex special
14587
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
14588
 
# dot (in which case that matches only a dot).
14589
 
func_stripname ()
14590
 
{
14591
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14592
 
  # positional parameters, so assign one to ordinary parameter first.
14593
 
  func_stripname_result=${3}
14594
 
  func_stripname_result=${func_stripname_result#"${1}"}
14595
 
  func_stripname_result=${func_stripname_result%"${2}"}
14596
 
}
14597
 
 
14598
 
# func_opt_split
14599
 
func_opt_split ()
14600
 
{
14601
 
  func_opt_split_opt=${1%%=*}
14602
 
  func_opt_split_arg=${1#*=}
14603
 
}
14604
 
 
14605
 
# func_lo2o object
14606
 
func_lo2o ()
14607
 
{
14608
 
  case ${1} in
14609
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14610
 
    *)    func_lo2o_result=${1} ;;
14611
 
  esac
14612
 
}
14613
 
 
14614
 
# func_xform libobj-or-source
14615
 
func_xform ()
14616
 
{
14617
 
  func_xform_result=${1%.*}.lo
14618
 
}
14619
 
 
14620
 
# func_arith arithmetic-term...
14621
 
func_arith ()
14622
 
{
14623
 
  func_arith_result=$(( $* ))
14624
 
}
14625
 
 
14626
 
# func_len string
14627
 
# STRING may not start with a hyphen.
14628
 
func_len ()
14629
 
{
14630
 
  func_len_result=${#1}
14631
 
}
14632
 
 
14633
 
_LT_EOF
14634
 
    ;;
14635
 
  *) # Bourne compatible functions.
14636
 
    cat << \_LT_EOF >> "$cfgfile"
14637
 
 
14638
 
# func_dirname file append nondir_replacement
14639
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14640
 
# otherwise set result to NONDIR_REPLACEMENT.
14641
 
func_dirname ()
14642
 
{
14643
 
  # Extract subdirectory from the argument.
14644
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14645
 
  if test "X$func_dirname_result" = "X${1}"; then
14646
 
    func_dirname_result="${3}"
14647
 
  else
14648
 
    func_dirname_result="$func_dirname_result${2}"
14649
 
  fi
14650
 
}
14651
 
 
14652
 
# func_basename file
14653
 
func_basename ()
14654
 
{
14655
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14656
 
}
14657
 
 
14658
 
 
14659
 
# func_stripname prefix suffix name
14660
 
# strip PREFIX and SUFFIX off of NAME.
14661
 
# PREFIX and SUFFIX must not contain globbing or regex special
14662
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
14663
 
# dot (in which case that matches only a dot).
14664
 
# func_strip_suffix prefix name
14665
 
func_stripname ()
14666
 
{
14667
 
  case ${2} in
14668
 
    .*) func_stripname_result=`$ECHO "X${3}" \
14669
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14670
 
    *)  func_stripname_result=`$ECHO "X${3}" \
14671
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14672
 
  esac
14673
 
}
14674
 
 
14675
 
# sed scripts:
14676
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14677
 
my_sed_long_arg='1s/^-[^=]*=//'
14678
 
 
14679
 
# func_opt_split
14680
 
func_opt_split ()
14681
 
{
14682
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14683
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14684
 
}
14685
 
 
14686
 
# func_lo2o object
14687
 
func_lo2o ()
14688
 
{
14689
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14690
 
}
14691
 
 
14692
 
# func_xform libobj-or-source
14693
 
func_xform ()
14694
 
{
14695
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14696
 
}
14697
 
 
14698
 
# func_arith arithmetic-term...
14699
 
func_arith ()
14700
 
{
14701
 
  func_arith_result=`expr "$@"`
14702
 
}
14703
 
 
14704
 
# func_len string
14705
 
# STRING may not start with a hyphen.
14706
 
func_len ()
14707
 
{
14708
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14709
 
}
14710
 
 
14711
 
_LT_EOF
14712
 
esac
14713
 
 
14714
 
case $lt_shell_append in
14715
 
  yes)
14716
 
    cat << \_LT_EOF >> "$cfgfile"
14717
 
 
14718
 
# func_append var value
14719
 
# Append VALUE to the end of shell variable VAR.
14720
 
func_append ()
14721
 
{
14722
 
  eval "$1+=\$2"
14723
 
}
14724
 
_LT_EOF
14725
 
    ;;
14726
 
  *)
14727
 
    cat << \_LT_EOF >> "$cfgfile"
14728
 
 
14729
 
# func_append var value
14730
 
# Append VALUE to the end of shell variable VAR.
14731
 
func_append ()
14732
 
{
14733
 
  eval "$1=\$$1\$2"
14734
 
}
14735
 
 
14736
 
_LT_EOF
14737
 
    ;;
14738
 
  esac
14739
 
 
14740
 
 
14741
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14742
 
    || (rm -f "$cfgfile"; exit 1)
14743
 
 
14744
 
  mv -f "$cfgfile" "$ofile" ||
14745
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14746
 
  chmod +x "$ofile"
14747
 
 
14748
 
 ;;
14749
12727
 
14750
12728
  esac
14751
12729
done # for ac_tag