~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
as_cr_digits='0123456789'
44
44
as_cr_alnum=$as_cr_Letters$as_cr_digits
45
45
 
46
 
# The user is always right.
47
 
if test "${PATH_SEPARATOR+set}" != set; then
48
 
  echo "#! /bin/sh" >conf$$.sh
49
 
  echo  "exit 0"   >>conf$$.sh
50
 
  chmod +x conf$$.sh
51
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52
 
    PATH_SEPARATOR=';'
53
 
  else
54
 
    PATH_SEPARATOR=:
 
46
 
 
47
  if test -z "$curl_cv_PATH_SEPARATOR"; then
 
48
    if test -z "$PATH"; then
 
49
      { echo "$as_me: error: PATH not set. Cannot continue without PATH being set." >&2
 
50
   { (exit 1); exit 1; }; }
 
51
    fi
 
52
        tst_dirs_col=0
 
53
    tst_save_IFS=$IFS; IFS=':'
 
54
    for tst_dir in $PATH; do
 
55
      IFS=$tst_save_IFS
 
56
      test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
 
57
    done
 
58
    IFS=$tst_save_IFS
 
59
        tst_dirs_sem=0
 
60
    tst_save_IFS=$IFS; IFS=';'
 
61
    for tst_dir in $PATH; do
 
62
      IFS=$tst_save_IFS
 
63
      test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
 
64
    done
 
65
    IFS=$tst_save_IFS
 
66
    if test $tst_dirs_sem -eq $tst_dirs_col; then
 
67
                  if test -z "$PATH_SEPARATOR"; then
 
68
                { echo "$as_me: error: PATH_SEPARATOR not set. Cannot continue without it." >&2
 
69
   { (exit 1); exit 1; }; }
 
70
      fi
 
71
    else
 
72
            if test $tst_dirs_sem -gt $tst_dirs_col; then
 
73
        tst_auto_separator=';'
 
74
      else
 
75
        tst_auto_separator=':'
 
76
      fi
 
77
      if test -z "$PATH_SEPARATOR"; then
 
78
                PATH_SEPARATOR="$tst_auto_separator"
 
79
      fi
 
80
    fi
 
81
    curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
55
82
  fi
56
 
  rm -f conf$$.sh
57
 
fi
 
83
 
 
84
 
 
85
 
58
86
 
59
87
# Support unset when possible.
60
88
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
369
397
 
370
398
 
371
399
 
 
400
 
372
401
(eval "as_func_return () {
373
402
  (exit \$1)
374
403
}
556
585
 
557
586
 
558
587
 
 
588
 
 
589
 
 
590
 
 
591
 
 
592
 
 
593
 
 
594
 
 
595
 
 
596
 
 
597
 
 
598
 
 
599
 
 
600
 
 
601
 
 
602
 
 
603
 
 
604
 
 
605
 
 
606
 
 
607
 
 
608
 
 
609
 
 
610
 
 
611
 
 
612
 
 
613
 
 
614
 
 
615
 
 
616
 
 
617
 
 
618
 
 
619
 
 
620
 
 
621
 
 
622
 
 
623
 
559
624
# Check that we are running under the correct shell.
560
625
SHELL=${CONFIG_SHELL-/bin/sh}
561
626
 
562
 
case X$ECHO in
 
627
case X$lt_ECHO in
563
628
X*--fallback-echo)
564
629
  # Remove one level of quotation (which was required for Make).
565
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
630
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
631
  ;;
567
632
esac
568
633
 
569
 
echo=${ECHO-echo}
 
634
ECHO=${lt_ECHO-echo}
570
635
if test "X$1" = X--no-reexec; then
571
636
  # Discard the --no-reexec flag, and continue.
572
637
  shift
573
638
elif test "X$1" = X--fallback-echo; then
574
639
  # Avoid inline document here, it may be left over
575
640
  :
576
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577
 
  # Yippee, $echo works!
 
641
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
642
  # Yippee, $ECHO works!
578
643
  :
579
644
else
580
645
  # Restart under the correct shell.
584
649
if test "X$1" = X--fallback-echo; then
585
650
  # used as fallback echo
586
651
  shift
587
 
  cat <<EOF
 
652
  cat <<_LT_EOF
588
653
$*
589
 
EOF
 
654
_LT_EOF
590
655
  exit 0
591
656
fi
592
657
 
594
659
# if CDPATH is set.
595
660
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596
661
 
597
 
if test -z "$ECHO"; then
598
 
if test "X${echo_test_string+set}" != Xset; then
599
 
# find a string as large as possible, as long as the shell can cope with it
600
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
603
 
       echo_test_string=`eval $cmd` &&
604
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
 
    then
606
 
      break
607
 
    fi
608
 
  done
609
 
fi
610
 
 
611
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
614
 
  :
615
 
else
616
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
617
 
  # backslashes.  This makes it impossible to quote backslashes using
618
 
  #   echo "$something" | sed 's/\\/\\\\/g'
619
 
  #
620
 
  # So, first we look for a working echo in the user's PATH.
621
 
 
622
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623
 
  for dir in $PATH /usr/ucb; do
 
662
if test -z "$lt_ECHO"; then
 
663
  if test "X${echo_test_string+set}" != Xset; then
 
664
    # find a string as large as possible, as long as the shell can cope with it
 
665
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
666
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
667
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
668
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
669
      then
 
670
        break
 
671
      fi
 
672
    done
 
673
  fi
 
674
 
 
675
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
676
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
677
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
678
    :
 
679
  else
 
680
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
681
    # backslashes.  This makes it impossible to quote backslashes using
 
682
    #   echo "$something" | sed 's/\\/\\\\/g'
 
683
    #
 
684
    # So, first we look for a working echo in the user's PATH.
 
685
 
 
686
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
687
    for dir in $PATH /usr/ucb; do
 
688
      IFS="$lt_save_ifs"
 
689
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
690
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
691
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
692
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
693
        ECHO="$dir/echo"
 
694
        break
 
695
      fi
 
696
    done
624
697
    IFS="$lt_save_ifs"
625
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
629
 
      echo="$dir/echo"
630
 
      break
631
 
    fi
632
 
  done
633
 
  IFS="$lt_save_ifs"
634
698
 
635
 
  if test "X$echo" = Xecho; then
636
 
    # We didn't find a better echo, so look for alternatives.
637
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
640
 
      # This shell has a builtin print -r that does the trick.
641
 
      echo='print -r'
642
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
644
 
      # If we have ksh, try running configure again with it.
645
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646
 
      export ORIGINAL_CONFIG_SHELL
647
 
      CONFIG_SHELL=/bin/ksh
648
 
      export CONFIG_SHELL
649
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650
 
    else
651
 
      # Try using printf.
652
 
      echo='printf %s\n'
653
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
656
 
        # Cool, printf works
657
 
        :
658
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659
 
           test "X$echo_testing_string" = 'X\t' &&
660
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
662
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663
 
        export CONFIG_SHELL
664
 
        SHELL="$CONFIG_SHELL"
665
 
        export SHELL
666
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
667
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668
 
           test "X$echo_testing_string" = 'X\t' &&
669
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
699
    if test "X$ECHO" = Xecho; then
 
700
      # We didn't find a better echo, so look for alternatives.
 
701
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
702
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
703
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
704
        # This shell has a builtin print -r that does the trick.
 
705
        ECHO='print -r'
 
706
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
707
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
708
        # If we have ksh, try running configure again with it.
 
709
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
710
        export ORIGINAL_CONFIG_SHELL
 
711
        CONFIG_SHELL=/bin/ksh
 
712
        export CONFIG_SHELL
 
713
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
672
714
      else
673
 
        # maybe with a smaller string...
674
 
        prev=:
675
 
 
676
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
 
          then
679
 
            break
 
715
        # Try using printf.
 
716
        ECHO='printf %s\n'
 
717
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
718
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
719
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
720
          # Cool, printf works
 
721
          :
 
722
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
723
             test "X$echo_testing_string" = 'X\t' &&
 
724
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
725
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
726
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
727
          export CONFIG_SHELL
 
728
          SHELL="$CONFIG_SHELL"
 
729
          export SHELL
 
730
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
731
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
732
             test "X$echo_testing_string" = 'X\t' &&
 
733
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
734
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
735
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
736
        else
 
737
          # maybe with a smaller string...
 
738
          prev=:
 
739
 
 
740
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
741
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
742
            then
 
743
              break
 
744
            fi
 
745
            prev="$cmd"
 
746
          done
 
747
 
 
748
          if test "$prev" != 'sed 50q "$0"'; then
 
749
            echo_test_string=`eval $prev`
 
750
            export echo_test_string
 
751
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
752
          else
 
753
            # Oops.  We lost completely, so just stick with echo.
 
754
            ECHO=echo
680
755
          fi
681
 
          prev="$cmd"
682
 
        done
683
 
 
684
 
        if test "$prev" != 'sed 50q "$0"'; then
685
 
          echo_test_string=`eval $prev`
686
 
          export echo_test_string
687
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688
 
        else
689
 
          # Oops.  We lost completely, so just stick with echo.
690
 
          echo=echo
691
 
        fi
 
756
        fi
692
757
      fi
693
758
    fi
694
759
  fi
695
760
fi
696
 
fi
697
761
 
698
762
# Copy echo and quote the copy suitably for passing to libtool from
699
763
# the Makefile, instead of quoting the original, which is used later.
700
 
ECHO=$echo
701
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
764
lt_ECHO=$ECHO
 
765
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
766
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703
767
fi
704
768
 
705
769
 
706
770
 
707
771
 
 
772
 
 
773
 
 
774
 
 
775
 
 
776
 
 
777
 
 
778
 
 
779
 
 
780
 
 
781
 
 
782
 
 
783
 
 
784
 
 
785
 
 
786
 
 
787
 
 
788
 
708
789
exec 7<&0 </dev/null 6>&1
709
790
 
710
791
# Name of the host.
769
850
# include <unistd.h>
770
851
#endif"
771
852
 
772
 
ac_subst_vars='SHELL
773
 
PATH_SEPARATOR
 
853
ac_subst_vars='PATH_SEPARATOR
 
854
PATH
 
855
SHELL
774
856
PACKAGE_NAME
775
857
PACKAGE_TARNAME
776
858
PACKAGE_VERSION
810
892
MAINTAINER_MODE_FALSE
811
893
MAINT
812
894
SED
 
895
GREP
 
896
EGREP
813
897
AR
814
898
libext
815
899
INSTALL_PROGRAM
862
946
am__fastdepCC_TRUE
863
947
am__fastdepCC_FALSE
864
948
CPP
865
 
GREP
866
 
EGREP
 
949
AS
 
950
DLLTOOL
 
951
OBJDUMP
 
952
LIBTOOL
 
953
FGREP
 
954
LD
 
955
DUMPBIN
 
956
ac_ct_DUMPBIN
 
957
NM
867
958
LN_S
868
 
ECHO
869
959
RANLIB
 
960
lt_ECHO
870
961
DSYMUTIL
871
962
NMEDIT
872
 
DLLTOOL
873
 
AS
874
 
OBJDUMP
875
 
LIBTOOL
 
963
LIPO
 
964
OTOOL
 
965
OTOOL64
876
966
NO_UNDEFINED_TRUE
877
967
NO_UNDEFINED_FALSE
878
968
MIMPURE_TRUE
885
975
CURL_DISABLE_FILE
886
976
CURL_DISABLE_LDAP
887
977
CURL_DISABLE_LDAPS
 
978
CURL_DISABLE_PROXY
888
979
CURL_DISABLE_DICT
889
980
CURL_DISABLE_TELNET
890
981
CURL_DISABLE_TFTP
900
991
HAVE_PK11_CREATEGENERICOBJECT
901
992
USE_NSS
902
993
SSL_ENABLED
 
994
CURL_CA_BUNDLE
903
995
IDN_ENABLED
904
996
IPV6_ENABLED
905
997
PERL
910
1002
HAVE_ARES
911
1003
subdirs
912
1004
USE_WINDOWS_SSPI
 
1005
SONAME_BUMP_TRUE
 
1006
SONAME_BUMP_FALSE
913
1007
LIBCURL_LIBS
914
1008
CURL_LIBS
915
1009
TEST_SERVER_LIBS
916
1010
CROSSCOMPILING_TRUE
917
1011
CROSSCOMPILING_FALSE
 
1012
SUPPORT_FEATURES
 
1013
SUPPORT_PROTOCOLS
918
1014
LIBOBJS
919
1015
LTLIBOBJS'
920
1016
ac_subst_files=''
1508
1604
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1509
1605
  --enable-maintainer-mode  enable make rules and dependencies not useful
1510
1606
                          (and sometimes confusing) to the casual installer
 
1607
  --enable-debug          Enable debug build options
 
1608
  --disable-debug         Disable debug build options
 
1609
  --enable-optimize       Enable compiler optimizations
 
1610
  --disable-optimize      Disable compiler optimizations
 
1611
  --enable-warnings       Enable strict compiler warnings
 
1612
  --disable-warnings      Disable strict compiler warnings
1511
1613
  --disable-dependency-tracking  speeds up one-time build
1512
1614
  --enable-dependency-tracking   do not reject slow dependency extractors
1513
1615
  --disable-largefile     omit support for large files
1526
1628
  --disable-ldap          Disable LDAP support
1527
1629
  --enable-ldaps          Enable LDAPS support
1528
1630
  --disable-ldaps         Disable LDAPS support
 
1631
  --enable-proxy          Enable proxy support
 
1632
  --disable-proxy         Disable proxy support
1529
1633
  --enable-dict           Enable DICT support
1530
1634
  --disable-dict          Disable DICT support
1531
1635
  --enable-telnet         Enable TELNET support
1537
1641
  --enable-libgcc         use libgcc when linking
1538
1642
  --enable-ipv6           Enable ipv6 (with ipv4) support
1539
1643
  --disable-ipv6          Disable ipv6 support
1540
 
  --enable-nonblocking    Enable detecting how to do it
1541
 
  --disable-nonblocking   Disable non-blocking socket detection
1542
1644
  --disable-thread        don't look for thread-safe functions
1543
1645
  --enable-thread         look for thread-safe functions
 
1646
  --enable-nonblocking    Enable non-blocking communications
 
1647
  --disable-nonblocking   Disable non-blocking communications
1544
1648
  --enable-ares=PATH      Enable c-ares for name lookups
1545
1649
  --disable-ares          Disable c-ares for name lookups
1546
1650
  --enable-verbose        Enable verbose strings
1547
1651
  --disable-verbose       Disable verbose strings
1548
1652
  --enable-sspi           Enable SSPI
1549
1653
  --disable-sspi          Disable SSPI
1550
 
  --enable-debug          Enable pedantic debug options
1551
 
  --disable-debug         Disable debug options
1552
1654
  --enable-crypto-auth    Enable cryptographic authentication
1553
1655
  --disable-crypto-auth   Disable cryptographic authentication
1554
1656
  --enable-cookies        Enable cookies support
1556
1658
  --enable-hidden-symbols Hide internal symbols in library
1557
1659
  --disable-hidden-symbols
1558
1660
                          Leave all symbols with default visibility in library
 
1661
  --enable-soname-bump    Enable enforced SONAME bump
 
1662
  --disable-soname-bump   Disable enforced SONAME bump
1559
1663
 
1560
1664
Optional Packages:
1561
1665
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562
1666
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564
1667
  --with-pic              try to use only PIC/non-PIC objects [default=use
1565
1668
                          both]
1566
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1669
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1567
1670
  --with-ldap-lib=libname Specify name of ldap lib file
1568
1671
  --with-lber-lib=libname Specify name of lber lib file
1569
1672
  --with-krb4-includes=DIR
2051
2154
 
2052
2155
 
2053
2156
 
2054
 
 
2055
 
ac_config_headers="$ac_config_headers lib/config.h src/config.h"
 
2157
# using curl-override.m4
 
2158
 
 
2159
 
 
2160
 
 
2161
 
 
2162
 
 
2163
ac_config_headers="$ac_config_headers lib/config.h src/config.h include/curl/curlbuild.h"
2056
2164
 
2057
2165
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2058
2166
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2079
2187
 
2080
2188
 
2081
2189
 
 
2190
 
 
2191
      { echo "$as_me:$LINENO: checking whether to enable debug build options" >&5
 
2192
echo $ECHO_N "checking whether to enable debug build options... $ECHO_C" >&6; }
 
2193
  OPT_DEBUG_BUILD="default"
 
2194
  # Check whether --enable-debug was given.
 
2195
if test "${enable_debug+set}" = set; then
 
2196
  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
 
2197
fi
 
2198
 
 
2199
  case "$OPT_DEBUG_BUILD" in
 
2200
    no)
 
2201
            want_debug="no"
 
2202
      ;;
 
2203
    default)
 
2204
            want_debug="no"
 
2205
      ;;
 
2206
    *)
 
2207
            want_debug="yes"
 
2208
      ;;
 
2209
  esac
 
2210
  { echo "$as_me:$LINENO: result: $want_debug" >&5
 
2211
echo "${ECHO_T}$want_debug" >&6; }
 
2212
 
 
2213
 
 
2214
      { echo "$as_me:$LINENO: checking whether to enable compiler optimizer" >&5
 
2215
echo $ECHO_N "checking whether to enable compiler optimizer... $ECHO_C" >&6; }
 
2216
  OPT_COMPILER_OPTIMIZE="default"
 
2217
  # Check whether --enable-optimize was given.
 
2218
if test "${enable_optimize+set}" = set; then
 
2219
  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
 
2220
fi
 
2221
 
 
2222
  case "$OPT_COMPILER_OPTIMIZE" in
 
2223
    no)
 
2224
                              want_optimize="no"
 
2225
      { echo "$as_me:$LINENO: result: no" >&5
 
2226
echo "${ECHO_T}no" >&6; }
 
2227
      ;;
 
2228
    default)
 
2229
                                                                        if test "$want_debug" = "yes"; then
 
2230
        want_optimize="assume_no"
 
2231
        { echo "$as_me:$LINENO: result: not specified (assuming no)" >&5
 
2232
echo "${ECHO_T}not specified (assuming no)" >&6; }
 
2233
      else
 
2234
        want_optimize="assume_yes"
 
2235
        { echo "$as_me:$LINENO: result: not specified (assuming yes)" >&5
 
2236
echo "${ECHO_T}not specified (assuming yes)" >&6; }
 
2237
      fi
 
2238
      ;;
 
2239
    *)
 
2240
                              want_optimize="yes"
 
2241
      { echo "$as_me:$LINENO: result: yes" >&5
 
2242
echo "${ECHO_T}yes" >&6; }
 
2243
      ;;
 
2244
  esac
 
2245
 
 
2246
 
 
2247
      { echo "$as_me:$LINENO: checking whether to enable strict compiler warnings" >&5
 
2248
echo $ECHO_N "checking whether to enable strict compiler warnings... $ECHO_C" >&6; }
 
2249
  OPT_COMPILER_WARNINGS="default"
 
2250
  # Check whether --enable-warnings was given.
 
2251
if test "${enable_warnings+set}" = set; then
 
2252
  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
 
2253
fi
 
2254
 
 
2255
  case "$OPT_COMPILER_WARNINGS" in
 
2256
    no)
 
2257
            want_warnings="no"
 
2258
      ;;
 
2259
    default)
 
2260
                  want_warnings="$want_debug"
 
2261
      ;;
 
2262
    *)
 
2263
            want_warnings="yes"
 
2264
      ;;
 
2265
  esac
 
2266
  { echo "$as_me:$LINENO: result: $want_warnings" >&5
 
2267
echo "${ECHO_T}$want_warnings" >&6; }
 
2268
 
 
2269
 
 
2270
 
 
2271
  if test -z "$curl_cv_PATH_SEPARATOR"; then
 
2272
    if test -z "$PATH"; then
 
2273
      { { echo "$as_me:$LINENO: error: PATH not set. Cannot continue without PATH being set." >&5
 
2274
echo "$as_me: error: PATH not set. Cannot continue without PATH being set." >&2;}
 
2275
   { (exit 1); exit 1; }; }
 
2276
    fi
 
2277
        tst_dirs_col=0
 
2278
    tst_save_IFS=$IFS; IFS=':'
 
2279
    for tst_dir in $PATH; do
 
2280
      IFS=$tst_save_IFS
 
2281
      test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
 
2282
    done
 
2283
    IFS=$tst_save_IFS
 
2284
        tst_dirs_sem=0
 
2285
    tst_save_IFS=$IFS; IFS=';'
 
2286
    for tst_dir in $PATH; do
 
2287
      IFS=$tst_save_IFS
 
2288
      test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
 
2289
    done
 
2290
    IFS=$tst_save_IFS
 
2291
    if test $tst_dirs_sem -eq $tst_dirs_col; then
 
2292
                  if test -z "$PATH_SEPARATOR"; then
 
2293
                { { echo "$as_me:$LINENO: error: PATH_SEPARATOR not set. Cannot continue without it." >&5
 
2294
echo "$as_me: error: PATH_SEPARATOR not set. Cannot continue without it." >&2;}
 
2295
   { (exit 1); exit 1; }; }
 
2296
      fi
 
2297
    else
 
2298
            if test $tst_dirs_sem -gt $tst_dirs_col; then
 
2299
        tst_auto_separator=';'
 
2300
      else
 
2301
        tst_auto_separator=':'
 
2302
      fi
 
2303
      if test -z "$PATH_SEPARATOR"; then
 
2304
                PATH_SEPARATOR="$tst_auto_separator"
 
2305
      fi
 
2306
    fi
 
2307
    curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
 
2308
  fi
 
2309
 
 
2310
 
 
2311
 
 
2312
 
2082
2313
# Extract the first word of "sed", so it can be a program name with args.
2083
2314
set dummy sed; ac_word=$2
2084
2315
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2107
2338
done
2108
2339
IFS=$as_save_IFS
2109
2340
 
2110
 
  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed-was-not-found-by-configure"
 
2341
  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
2111
2342
  ;;
2112
2343
esac
2113
2344
fi
2121
2352
fi
2122
2353
 
2123
2354
 
2124
 
 
2125
 
 
2126
 
if test "x$SED" = "xsed-was-not-found-by-configure"; then
2127
 
  { echo "$as_me:$LINENO: WARNING: sed was not found, this may ruin your chances to build fine" >&5
2128
 
echo "$as_me: WARNING: sed was not found, this may ruin your chances to build fine" >&2;}
2129
 
fi
 
2355
if test -z "$SED" || test "$SED" = "not_found"; then
 
2356
  { { echo "$as_me:$LINENO: error: sed not found in PATH. Cannot continue without sed." >&5
 
2357
echo "$as_me: error: sed not found in PATH. Cannot continue without sed." >&2;}
 
2358
   { (exit 1); exit 1; }; }
 
2359
fi
 
2360
 
 
2361
 
 
2362
# Extract the first word of "grep", so it can be a program name with args.
 
2363
set dummy grep; ac_word=$2
 
2364
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2366
if test "${ac_cv_path_GREP+set}" = set; then
 
2367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2368
else
 
2369
  case $GREP in
 
2370
  [\\/]* | ?:[\\/]*)
 
2371
  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
 
2372
  ;;
 
2373
  *)
 
2374
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2375
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
2376
for as_dir in $as_dummy
 
2377
do
 
2378
  IFS=$as_save_IFS
 
2379
  test -z "$as_dir" && as_dir=.
 
2380
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2381
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2382
    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
 
2383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2384
    break 2
 
2385
  fi
 
2386
done
 
2387
done
 
2388
IFS=$as_save_IFS
 
2389
 
 
2390
  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
 
2391
  ;;
 
2392
esac
 
2393
fi
 
2394
GREP=$ac_cv_path_GREP
 
2395
if test -n "$GREP"; then
 
2396
  { echo "$as_me:$LINENO: result: $GREP" >&5
 
2397
echo "${ECHO_T}$GREP" >&6; }
 
2398
else
 
2399
  { echo "$as_me:$LINENO: result: no" >&5
 
2400
echo "${ECHO_T}no" >&6; }
 
2401
fi
 
2402
 
 
2403
 
 
2404
if test -z "$GREP" || test "$GREP" = "not_found"; then
 
2405
  { { echo "$as_me:$LINENO: error: grep not found in PATH. Cannot continue without grep." >&5
 
2406
echo "$as_me: error: grep not found in PATH. Cannot continue without grep." >&2;}
 
2407
   { (exit 1); exit 1; }; }
 
2408
fi
 
2409
 
 
2410
 
 
2411
if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
 
2412
  { echo "$as_me:$LINENO: checking for egrep" >&5
 
2413
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
2414
  EGREP="$GREP -E"
 
2415
  { echo "$as_me:$LINENO: result: $EGREP" >&5
 
2416
echo "${ECHO_T}$EGREP" >&6; }
 
2417
else
 
2418
  # Extract the first word of "egrep", so it can be a program name with args.
 
2419
set dummy egrep; ac_word=$2
 
2420
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2422
if test "${ac_cv_path_EGREP+set}" = set; then
 
2423
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2424
else
 
2425
  case $EGREP in
 
2426
  [\\/]* | ?:[\\/]*)
 
2427
  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
 
2428
  ;;
 
2429
  *)
 
2430
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2431
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
2432
for as_dir in $as_dummy
 
2433
do
 
2434
  IFS=$as_save_IFS
 
2435
  test -z "$as_dir" && as_dir=.
 
2436
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2437
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2438
    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
 
2439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2440
    break 2
 
2441
  fi
 
2442
done
 
2443
done
 
2444
IFS=$as_save_IFS
 
2445
 
 
2446
  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
 
2447
  ;;
 
2448
esac
 
2449
fi
 
2450
EGREP=$ac_cv_path_EGREP
 
2451
if test -n "$EGREP"; then
 
2452
  { echo "$as_me:$LINENO: result: $EGREP" >&5
 
2453
echo "${ECHO_T}$EGREP" >&6; }
 
2454
else
 
2455
  { echo "$as_me:$LINENO: result: no" >&5
 
2456
echo "${ECHO_T}no" >&6; }
 
2457
fi
 
2458
 
 
2459
 
 
2460
fi
 
2461
if test -z "$EGREP" || test "$EGREP" = "not_found"; then
 
2462
  { { echo "$as_me:$LINENO: error: egrep not found in PATH. Cannot continue without egrep." >&5
 
2463
echo "$as_me: error: egrep not found in PATH. Cannot continue without egrep." >&2;}
 
2464
   { (exit 1); exit 1; }; }
 
2465
fi
 
2466
 
2130
2467
 
2131
2468
if test -n "$ac_tool_prefix"; then
2132
2469
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2133
2470
set dummy ${ac_tool_prefix}ar; ac_word=$2
2134
2471
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135
2472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136
 
if test "${ac_cv_prog_AR+set}" = set; then
 
2473
if test "${ac_cv_path_AR+set}" = set; then
2137
2474
  echo $ECHO_N "(cached) $ECHO_C" >&6
2138
2475
else
2139
 
  if test -n "$AR"; then
2140
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
2141
 
else
2142
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143
 
as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
 
2476
  case $AR in
 
2477
  [\\/]* | ?:[\\/]*)
 
2478
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
 
2479
  ;;
 
2480
  *)
 
2481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2482
as_dummy="$PATH:/usr/bin:/usr/local/bin"
2144
2483
for as_dir in $as_dummy
2145
2484
do
2146
2485
  IFS=$as_save_IFS
2147
2486
  test -z "$as_dir" && as_dir=.
2148
2487
  for ac_exec_ext in '' $ac_executable_extensions; do
2149
2488
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
2489
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2151
2490
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152
2491
    break 2
2153
2492
  fi
2155
2494
done
2156
2495
IFS=$as_save_IFS
2157
2496
 
2158
 
fi
2159
 
fi
2160
 
AR=$ac_cv_prog_AR
 
2497
  ;;
 
2498
esac
 
2499
fi
 
2500
AR=$ac_cv_path_AR
2161
2501
if test -n "$AR"; then
2162
2502
  { echo "$as_me:$LINENO: result: $AR" >&5
2163
2503
echo "${ECHO_T}$AR" >&6; }
2168
2508
 
2169
2509
 
2170
2510
fi
2171
 
if test -z "$ac_cv_prog_AR"; then
2172
 
  ac_ct_AR=$AR
 
2511
if test -z "$ac_cv_path_AR"; then
 
2512
  ac_pt_AR=$AR
2173
2513
  # Extract the first word of "ar", so it can be a program name with args.
2174
2514
set dummy ar; ac_word=$2
2175
2515
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176
2516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
2517
if test "${ac_cv_path_ac_pt_AR+set}" = set; then
2178
2518
  echo $ECHO_N "(cached) $ECHO_C" >&6
2179
2519
else
2180
 
  if test -n "$ac_ct_AR"; then
2181
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2182
 
else
2183
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184
 
as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
 
2520
  case $ac_pt_AR in
 
2521
  [\\/]* | ?:[\\/]*)
 
2522
  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
 
2523
  ;;
 
2524
  *)
 
2525
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2526
as_dummy="$PATH:/usr/bin:/usr/local/bin"
2185
2527
for as_dir in $as_dummy
2186
2528
do
2187
2529
  IFS=$as_save_IFS
2188
2530
  test -z "$as_dir" && as_dir=.
2189
2531
  for ac_exec_ext in '' $ac_executable_extensions; do
2190
2532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191
 
    ac_cv_prog_ac_ct_AR="ar"
 
2533
    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
2192
2534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193
2535
    break 2
2194
2536
  fi
2196
2538
done
2197
2539
IFS=$as_save_IFS
2198
2540
 
2199
 
fi
2200
 
fi
2201
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2202
 
if test -n "$ac_ct_AR"; then
2203
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2204
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
2541
  ;;
 
2542
esac
 
2543
fi
 
2544
ac_pt_AR=$ac_cv_path_ac_pt_AR
 
2545
if test -n "$ac_pt_AR"; then
 
2546
  { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
 
2547
echo "${ECHO_T}$ac_pt_AR" >&6; }
2205
2548
else
2206
2549
  { echo "$as_me:$LINENO: result: no" >&5
2207
2550
echo "${ECHO_T}no" >&6; }
2208
2551
fi
2209
2552
 
2210
 
  if test "x$ac_ct_AR" = x; then
2211
 
    AR="ar-was-not-found-by-configure"
 
2553
  if test "x$ac_pt_AR" = x; then
 
2554
    AR="not_found"
2212
2555
  else
2213
2556
    case $cross_compiling:$ac_tool_warned in
2214
2557
yes:)
2220
2563
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2221
2564
ac_tool_warned=yes ;;
2222
2565
esac
2223
 
    AR=$ac_ct_AR
 
2566
    AR=$ac_pt_AR
2224
2567
  fi
2225
2568
else
2226
 
  AR="$ac_cv_prog_AR"
2227
 
fi
2228
 
 
2229
 
 
2230
 
if test "x$AR" = "xar-was-not-found-by-configure"; then
2231
 
  { echo "$as_me:$LINENO: WARNING: ar was not found, this may ruin your chances to build fine" >&5
2232
 
echo "$as_me: WARNING: ar was not found, this may ruin your chances to build fine" >&2;}
2233
 
fi
 
2569
  AR="$ac_cv_path_AR"
 
2570
fi
 
2571
 
 
2572
if test -z "$AR" || test "$AR" = "not_found"; then
 
2573
  { { echo "$as_me:$LINENO: error: ar not found in PATH. Cannot continue without ar." >&5
 
2574
echo "$as_me: error: ar not found in PATH. Cannot continue without ar." >&2;}
 
2575
   { (exit 1); exit 1; }; }
 
2576
fi
 
2577
 
 
2578
 
2234
2579
 
2235
2580
 
2236
2581
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
2884
3229
 
2885
3230
 
2886
3231
 
2887
 
ac_ext=c
 
3232
 
 
3233
  ac_save_CFLAGS="$CFLAGS"
 
3234
  ac_save_CPPFLAGS="$CPPFLAGS"
 
3235
  ac_ext=c
2888
3236
ac_cpp='$CPP $CPPFLAGS'
2889
3237
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890
3238
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237
3585
cat >>conftest.$ac_ext <<_ACEOF
3238
3586
/* end confdefs.h.  */
3239
3587
 
3240
 
int
3241
 
main ()
 
3588
int main (void)
3242
3589
{
3243
3590
 
3244
 
  ;
3245
 
  return 0;
 
3591
 ;
 
3592
 return 0;
3246
3593
}
3247
3594
_ACEOF
3248
3595
ac_clean_files_save=$ac_clean_files
3429
3776
cat >>conftest.$ac_ext <<_ACEOF
3430
3777
/* end confdefs.h.  */
3431
3778
 
3432
 
int
3433
 
main ()
 
3779
int main (void)
3434
3780
{
3435
3781
 
3436
 
  ;
3437
 
  return 0;
 
3782
 ;
 
3783
 return 0;
3438
3784
}
3439
3785
_ACEOF
3440
3786
rm -f conftest.o conftest.obj
3485
3831
cat >>conftest.$ac_ext <<_ACEOF
3486
3832
/* end confdefs.h.  */
3487
3833
 
3488
 
int
3489
 
main ()
 
3834
int main (void)
3490
3835
{
3491
3836
#ifndef __GNUC__
3492
3837
       choke me
3493
3838
#endif
3494
3839
 
3495
 
  ;
3496
 
  return 0;
 
3840
 ;
 
3841
 return 0;
3497
3842
}
3498
3843
_ACEOF
3499
3844
rm -f conftest.$ac_objext
3546
3891
cat >>conftest.$ac_ext <<_ACEOF
3547
3892
/* end confdefs.h.  */
3548
3893
 
3549
 
int
3550
 
main ()
 
3894
int main (void)
3551
3895
{
3552
3896
 
3553
 
  ;
3554
 
  return 0;
 
3897
 ;
 
3898
 return 0;
3555
3899
}
3556
3900
_ACEOF
3557
3901
rm -f conftest.$ac_objext
3584
3928
cat >>conftest.$ac_ext <<_ACEOF
3585
3929
/* end confdefs.h.  */
3586
3930
 
3587
 
int
3588
 
main ()
 
3931
int main (void)
3589
3932
{
3590
3933
 
3591
 
  ;
3592
 
  return 0;
 
3934
 ;
 
3935
 return 0;
3593
3936
}
3594
3937
_ACEOF
3595
3938
rm -f conftest.$ac_objext
3623
3966
cat >>conftest.$ac_ext <<_ACEOF
3624
3967
/* end confdefs.h.  */
3625
3968
 
3626
 
int
3627
 
main ()
 
3969
int main (void)
3628
3970
{
3629
3971
 
3630
 
  ;
3631
 
  return 0;
 
3972
 ;
 
3973
 return 0;
3632
3974
}
3633
3975
_ACEOF
3634
3976
rm -f conftest.$ac_objext
3738
4080
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3739
4081
int argc;
3740
4082
char **argv;
3741
 
int
3742
 
main ()
 
4083
int main (void)
3743
4084
{
3744
4085
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3745
 
  ;
3746
 
  return 0;
 
4086
 ;
 
4087
 return 0;
3747
4088
}
3748
4089
_ACEOF
3749
4090
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3912
4253
fi
3913
4254
 
3914
4255
 
 
4256
  CFLAGS="$ac_save_CFLAGS"
 
4257
  CPPFLAGS="$ac_save_CPPFLAGS"
 
4258
 
 
4259
 
 
4260
 
 
4261
 
 
4262
curl_includes_inttypes="\
 
4263
/* includes start */
 
4264
#ifdef HAVE_SYS_TYPES_H
 
4265
# include <sys/types.h>
 
4266
#endif
 
4267
#ifdef HAVE_STDINT_H
 
4268
# include <stdint.h>
 
4269
#endif
 
4270
#ifdef HAVE_INTTYPES_H
 
4271
# include <inttypes.h>
 
4272
#endif
 
4273
/* includes end */"
 
4274
 
 
4275
 
 
4276
 
 
4277
for ac_header in sys/types.h stdint.h inttypes.h
 
4278
do
 
4279
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4280
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4282
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4284
else
 
4285
  cat >conftest.$ac_ext <<_ACEOF
 
4286
/* confdefs.h.  */
 
4287
_ACEOF
 
4288
cat confdefs.h >>conftest.$ac_ext
 
4289
cat >>conftest.$ac_ext <<_ACEOF
 
4290
/* end confdefs.h.  */
 
4291
$curl_includes_inttypes
 
4292
 
 
4293
#include <$ac_header>
 
4294
_ACEOF
 
4295
rm -f conftest.$ac_objext
 
4296
if { (ac_try="$ac_compile"
 
4297
case "(($ac_try" in
 
4298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4299
  *) ac_try_echo=$ac_try;;
 
4300
esac
 
4301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4302
  (eval "$ac_compile") 2>conftest.er1
 
4303
  ac_status=$?
 
4304
  grep -v '^ *+' conftest.er1 >conftest.err
 
4305
  rm -f conftest.er1
 
4306
  cat conftest.err >&5
 
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4308
  (exit $ac_status); } && {
 
4309
         test -z "$ac_c_werror_flag" ||
 
4310
         test ! -s conftest.err
 
4311
       } && test -s conftest.$ac_objext; then
 
4312
  eval "$as_ac_Header=yes"
 
4313
else
 
4314
  echo "$as_me: failed program was:" >&5
 
4315
sed 's/^/| /' conftest.$ac_ext >&5
 
4316
 
 
4317
        eval "$as_ac_Header=no"
 
4318
fi
 
4319
 
 
4320
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4321
fi
 
4322
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4323
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4324
echo "${ECHO_T}$ac_res" >&6; }
 
4325
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4326
  cat >>confdefs.h <<_ACEOF
 
4327
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4328
_ACEOF
 
4329
 
 
4330
fi
 
4331
 
 
4332
done
 
4333
 
3915
4334
 
3916
4335
ac_ext=c
3917
4336
ac_cpp='$CPP $CPPFLAGS'
4306
4725
 EGREP="$ac_cv_path_EGREP"
4307
4726
 
4308
4727
 
4309
 
 
4310
 
{ echo "$as_me:$LINENO: checking for AIX" >&5
4311
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4312
 
cat >conftest.$ac_ext <<_ACEOF
4313
 
/* confdefs.h.  */
4314
 
_ACEOF
4315
 
cat confdefs.h >>conftest.$ac_ext
4316
 
cat >>conftest.$ac_ext <<_ACEOF
4317
 
/* end confdefs.h.  */
 
4728
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4729
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4730
if test "${ac_cv_header_stdc+set}" = set; then
 
4731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4732
else
 
4733
  cat >conftest.$ac_ext <<_ACEOF
 
4734
/* confdefs.h.  */
 
4735
_ACEOF
 
4736
cat confdefs.h >>conftest.$ac_ext
 
4737
cat >>conftest.$ac_ext <<_ACEOF
 
4738
/* end confdefs.h.  */
 
4739
#include <stdlib.h>
 
4740
#include <stdarg.h>
 
4741
#include <string.h>
 
4742
#include <float.h>
 
4743
 
 
4744
int main (void)
 
4745
{
 
4746
 
 
4747
 ;
 
4748
 return 0;
 
4749
}
 
4750
_ACEOF
 
4751
rm -f conftest.$ac_objext
 
4752
if { (ac_try="$ac_compile"
 
4753
case "(($ac_try" in
 
4754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4755
  *) ac_try_echo=$ac_try;;
 
4756
esac
 
4757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4758
  (eval "$ac_compile") 2>conftest.er1
 
4759
  ac_status=$?
 
4760
  grep -v '^ *+' conftest.er1 >conftest.err
 
4761
  rm -f conftest.er1
 
4762
  cat conftest.err >&5
 
4763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4764
  (exit $ac_status); } && {
 
4765
         test -z "$ac_c_werror_flag" ||
 
4766
         test ! -s conftest.err
 
4767
       } && test -s conftest.$ac_objext; then
 
4768
  ac_cv_header_stdc=yes
 
4769
else
 
4770
  echo "$as_me: failed program was:" >&5
 
4771
sed 's/^/| /' conftest.$ac_ext >&5
 
4772
 
 
4773
        ac_cv_header_stdc=no
 
4774
fi
 
4775
 
 
4776
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4777
 
 
4778
if test $ac_cv_header_stdc = yes; then
 
4779
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4780
  cat >conftest.$ac_ext <<_ACEOF
 
4781
/* confdefs.h.  */
 
4782
_ACEOF
 
4783
cat confdefs.h >>conftest.$ac_ext
 
4784
cat >>conftest.$ac_ext <<_ACEOF
 
4785
/* end confdefs.h.  */
 
4786
#include <string.h>
 
4787
 
 
4788
_ACEOF
 
4789
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4790
  $EGREP "memchr" >/dev/null 2>&1; then
 
4791
  :
 
4792
else
 
4793
  ac_cv_header_stdc=no
 
4794
fi
 
4795
rm -f conftest*
 
4796
 
 
4797
fi
 
4798
 
 
4799
if test $ac_cv_header_stdc = yes; then
 
4800
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4801
  cat >conftest.$ac_ext <<_ACEOF
 
4802
/* confdefs.h.  */
 
4803
_ACEOF
 
4804
cat confdefs.h >>conftest.$ac_ext
 
4805
cat >>conftest.$ac_ext <<_ACEOF
 
4806
/* end confdefs.h.  */
 
4807
#include <stdlib.h>
 
4808
 
 
4809
_ACEOF
 
4810
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4811
  $EGREP "free" >/dev/null 2>&1; then
 
4812
  :
 
4813
else
 
4814
  ac_cv_header_stdc=no
 
4815
fi
 
4816
rm -f conftest*
 
4817
 
 
4818
fi
 
4819
 
 
4820
if test $ac_cv_header_stdc = yes; then
 
4821
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4822
  if test "$cross_compiling" = yes; then
 
4823
  :
 
4824
else
 
4825
  cat >conftest.$ac_ext <<_ACEOF
 
4826
/* confdefs.h.  */
 
4827
_ACEOF
 
4828
cat confdefs.h >>conftest.$ac_ext
 
4829
cat >>conftest.$ac_ext <<_ACEOF
 
4830
/* end confdefs.h.  */
 
4831
#include <ctype.h>
 
4832
#include <stdlib.h>
 
4833
#if ((' ' & 0x0FF) == 0x020)
 
4834
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4835
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4836
#else
 
4837
# define ISLOWER(c) \
 
4838
                   (('a' <= (c) && (c) <= 'i') \
 
4839
                     || ('j' <= (c) && (c) <= 'r') \
 
4840
                     || ('s' <= (c) && (c) <= 'z'))
 
4841
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4842
#endif
 
4843
 
 
4844
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4845
int
 
4846
main ()
 
4847
{
 
4848
  int i;
 
4849
  for (i = 0; i < 256; i++)
 
4850
    if (XOR (islower (i), ISLOWER (i))
 
4851
        || toupper (i) != TOUPPER (i))
 
4852
      return 2;
 
4853
  return 0;
 
4854
}
 
4855
_ACEOF
 
4856
rm -f conftest$ac_exeext
 
4857
if { (ac_try="$ac_link"
 
4858
case "(($ac_try" in
 
4859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4860
  *) ac_try_echo=$ac_try;;
 
4861
esac
 
4862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4863
  (eval "$ac_link") 2>&5
 
4864
  ac_status=$?
 
4865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4866
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4867
  { (case "(($ac_try" in
 
4868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4869
  *) ac_try_echo=$ac_try;;
 
4870
esac
 
4871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4872
  (eval "$ac_try") 2>&5
 
4873
  ac_status=$?
 
4874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4875
  (exit $ac_status); }; }; then
 
4876
  :
 
4877
else
 
4878
  echo "$as_me: program exited with status $ac_status" >&5
 
4879
echo "$as_me: failed program was:" >&5
 
4880
sed 's/^/| /' conftest.$ac_ext >&5
 
4881
 
 
4882
( exit $ac_status )
 
4883
ac_cv_header_stdc=no
 
4884
fi
 
4885
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4886
fi
 
4887
 
 
4888
 
 
4889
fi
 
4890
fi
 
4891
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4892
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4893
if test $ac_cv_header_stdc = yes; then
 
4894
 
 
4895
cat >>confdefs.h <<\_ACEOF
 
4896
#define STDC_HEADERS 1
 
4897
_ACEOF
 
4898
 
 
4899
fi
 
4900
 
 
4901
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4902
 
 
4903
 
 
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4912
                  inttypes.h stdint.h unistd.h
 
4913
do
 
4914
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4915
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4916
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4917
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4919
else
 
4920
  cat >conftest.$ac_ext <<_ACEOF
 
4921
/* confdefs.h.  */
 
4922
_ACEOF
 
4923
cat confdefs.h >>conftest.$ac_ext
 
4924
cat >>conftest.$ac_ext <<_ACEOF
 
4925
/* end confdefs.h.  */
 
4926
$ac_includes_default
 
4927
 
 
4928
#include <$ac_header>
 
4929
_ACEOF
 
4930
rm -f conftest.$ac_objext
 
4931
if { (ac_try="$ac_compile"
 
4932
case "(($ac_try" in
 
4933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4934
  *) ac_try_echo=$ac_try;;
 
4935
esac
 
4936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4937
  (eval "$ac_compile") 2>conftest.er1
 
4938
  ac_status=$?
 
4939
  grep -v '^ *+' conftest.er1 >conftest.err
 
4940
  rm -f conftest.er1
 
4941
  cat conftest.err >&5
 
4942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4943
  (exit $ac_status); } && {
 
4944
         test -z "$ac_c_werror_flag" ||
 
4945
         test ! -s conftest.err
 
4946
       } && test -s conftest.$ac_objext; then
 
4947
  eval "$as_ac_Header=yes"
 
4948
else
 
4949
  echo "$as_me: failed program was:" >&5
 
4950
sed 's/^/| /' conftest.$ac_ext >&5
 
4951
 
 
4952
        eval "$as_ac_Header=no"
 
4953
fi
 
4954
 
 
4955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4956
fi
 
4957
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4958
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4959
echo "${ECHO_T}$ac_res" >&6; }
 
4960
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4961
  cat >>confdefs.h <<_ACEOF
 
4962
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4963
_ACEOF
 
4964
 
 
4965
fi
 
4966
 
 
4967
done
 
4968
 
 
4969
 
 
4970
 
 
4971
    #
 
4972
        #
 
4973
  if test -z "$SED"; then
 
4974
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
4975
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
4976
   { (exit 1); exit 1; }; }
 
4977
  fi
 
4978
  #
 
4979
  { echo "$as_me:$LINENO: checking for long" >&5
 
4980
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
4981
if test "${ac_cv_type_long+set}" = set; then
 
4982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4983
else
 
4984
  cat >conftest.$ac_ext <<_ACEOF
 
4985
/* confdefs.h.  */
 
4986
_ACEOF
 
4987
cat confdefs.h >>conftest.$ac_ext
 
4988
cat >>conftest.$ac_ext <<_ACEOF
 
4989
/* end confdefs.h.  */
 
4990
$ac_includes_default
 
4991
typedef long ac__type_new_;
 
4992
int main (void)
 
4993
{
 
4994
if ((ac__type_new_ *) 0)
 
4995
  return 0;
 
4996
if (sizeof (ac__type_new_))
 
4997
  return 0;
 
4998
 ;
 
4999
 return 0;
 
5000
}
 
5001
_ACEOF
 
5002
rm -f conftest.$ac_objext
 
5003
if { (ac_try="$ac_compile"
 
5004
case "(($ac_try" in
 
5005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5006
  *) ac_try_echo=$ac_try;;
 
5007
esac
 
5008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5009
  (eval "$ac_compile") 2>conftest.er1
 
5010
  ac_status=$?
 
5011
  grep -v '^ *+' conftest.er1 >conftest.err
 
5012
  rm -f conftest.er1
 
5013
  cat conftest.err >&5
 
5014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5015
  (exit $ac_status); } && {
 
5016
         test -z "$ac_c_werror_flag" ||
 
5017
         test ! -s conftest.err
 
5018
       } && test -s conftest.$ac_objext; then
 
5019
  ac_cv_type_long=yes
 
5020
else
 
5021
  echo "$as_me: failed program was:" >&5
 
5022
sed 's/^/| /' conftest.$ac_ext >&5
 
5023
 
 
5024
        ac_cv_type_long=no
 
5025
fi
 
5026
 
 
5027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5028
fi
 
5029
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
5030
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
5031
 
 
5032
# The cast to long int works around a bug in the HP C Compiler
 
5033
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5034
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5035
# This bug is HP SR number 8606223364.
 
5036
{ echo "$as_me:$LINENO: checking size of long" >&5
 
5037
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
5038
if test "${ac_cv_sizeof_long+set}" = set; then
 
5039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5040
else
 
5041
  if test "$cross_compiling" = yes; then
 
5042
  # Depending upon the size, compute the lo and hi bounds.
 
5043
cat >conftest.$ac_ext <<_ACEOF
 
5044
/* confdefs.h.  */
 
5045
_ACEOF
 
5046
cat confdefs.h >>conftest.$ac_ext
 
5047
cat >>conftest.$ac_ext <<_ACEOF
 
5048
/* end confdefs.h.  */
 
5049
$ac_includes_default
 
5050
   typedef long ac__type_sizeof_;
 
5051
int main (void)
 
5052
{
 
5053
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
5054
test_array [0] = 0
 
5055
 
 
5056
 ;
 
5057
 return 0;
 
5058
}
 
5059
_ACEOF
 
5060
rm -f conftest.$ac_objext
 
5061
if { (ac_try="$ac_compile"
 
5062
case "(($ac_try" in
 
5063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5064
  *) ac_try_echo=$ac_try;;
 
5065
esac
 
5066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5067
  (eval "$ac_compile") 2>conftest.er1
 
5068
  ac_status=$?
 
5069
  grep -v '^ *+' conftest.er1 >conftest.err
 
5070
  rm -f conftest.er1
 
5071
  cat conftest.err >&5
 
5072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5073
  (exit $ac_status); } && {
 
5074
         test -z "$ac_c_werror_flag" ||
 
5075
         test ! -s conftest.err
 
5076
       } && test -s conftest.$ac_objext; then
 
5077
  ac_lo=0 ac_mid=0
 
5078
  while :; do
 
5079
    cat >conftest.$ac_ext <<_ACEOF
 
5080
/* confdefs.h.  */
 
5081
_ACEOF
 
5082
cat confdefs.h >>conftest.$ac_ext
 
5083
cat >>conftest.$ac_ext <<_ACEOF
 
5084
/* end confdefs.h.  */
 
5085
$ac_includes_default
 
5086
   typedef long ac__type_sizeof_;
 
5087
int main (void)
 
5088
{
 
5089
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5090
test_array [0] = 0
 
5091
 
 
5092
 ;
 
5093
 return 0;
 
5094
}
 
5095
_ACEOF
 
5096
rm -f conftest.$ac_objext
 
5097
if { (ac_try="$ac_compile"
 
5098
case "(($ac_try" in
 
5099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5100
  *) ac_try_echo=$ac_try;;
 
5101
esac
 
5102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5103
  (eval "$ac_compile") 2>conftest.er1
 
5104
  ac_status=$?
 
5105
  grep -v '^ *+' conftest.er1 >conftest.err
 
5106
  rm -f conftest.er1
 
5107
  cat conftest.err >&5
 
5108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5109
  (exit $ac_status); } && {
 
5110
         test -z "$ac_c_werror_flag" ||
 
5111
         test ! -s conftest.err
 
5112
       } && test -s conftest.$ac_objext; then
 
5113
  ac_hi=$ac_mid; break
 
5114
else
 
5115
  echo "$as_me: failed program was:" >&5
 
5116
sed 's/^/| /' conftest.$ac_ext >&5
 
5117
 
 
5118
        ac_lo=`expr $ac_mid + 1`
 
5119
                        if test $ac_lo -le $ac_mid; then
 
5120
                          ac_lo= ac_hi=
 
5121
                          break
 
5122
                        fi
 
5123
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
5124
fi
 
5125
 
 
5126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5127
  done
 
5128
else
 
5129
  echo "$as_me: failed program was:" >&5
 
5130
sed 's/^/| /' conftest.$ac_ext >&5
 
5131
 
 
5132
        cat >conftest.$ac_ext <<_ACEOF
 
5133
/* confdefs.h.  */
 
5134
_ACEOF
 
5135
cat confdefs.h >>conftest.$ac_ext
 
5136
cat >>conftest.$ac_ext <<_ACEOF
 
5137
/* end confdefs.h.  */
 
5138
$ac_includes_default
 
5139
   typedef long ac__type_sizeof_;
 
5140
int main (void)
 
5141
{
 
5142
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
5143
test_array [0] = 0
 
5144
 
 
5145
 ;
 
5146
 return 0;
 
5147
}
 
5148
_ACEOF
 
5149
rm -f conftest.$ac_objext
 
5150
if { (ac_try="$ac_compile"
 
5151
case "(($ac_try" in
 
5152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5153
  *) ac_try_echo=$ac_try;;
 
5154
esac
 
5155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5156
  (eval "$ac_compile") 2>conftest.er1
 
5157
  ac_status=$?
 
5158
  grep -v '^ *+' conftest.er1 >conftest.err
 
5159
  rm -f conftest.er1
 
5160
  cat conftest.err >&5
 
5161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5162
  (exit $ac_status); } && {
 
5163
         test -z "$ac_c_werror_flag" ||
 
5164
         test ! -s conftest.err
 
5165
       } && test -s conftest.$ac_objext; then
 
5166
  ac_hi=-1 ac_mid=-1
 
5167
  while :; do
 
5168
    cat >conftest.$ac_ext <<_ACEOF
 
5169
/* confdefs.h.  */
 
5170
_ACEOF
 
5171
cat confdefs.h >>conftest.$ac_ext
 
5172
cat >>conftest.$ac_ext <<_ACEOF
 
5173
/* end confdefs.h.  */
 
5174
$ac_includes_default
 
5175
   typedef long ac__type_sizeof_;
 
5176
int main (void)
 
5177
{
 
5178
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
5179
test_array [0] = 0
 
5180
 
 
5181
 ;
 
5182
 return 0;
 
5183
}
 
5184
_ACEOF
 
5185
rm -f conftest.$ac_objext
 
5186
if { (ac_try="$ac_compile"
 
5187
case "(($ac_try" in
 
5188
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5189
  *) ac_try_echo=$ac_try;;
 
5190
esac
 
5191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5192
  (eval "$ac_compile") 2>conftest.er1
 
5193
  ac_status=$?
 
5194
  grep -v '^ *+' conftest.er1 >conftest.err
 
5195
  rm -f conftest.er1
 
5196
  cat conftest.err >&5
 
5197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5198
  (exit $ac_status); } && {
 
5199
         test -z "$ac_c_werror_flag" ||
 
5200
         test ! -s conftest.err
 
5201
       } && test -s conftest.$ac_objext; then
 
5202
  ac_lo=$ac_mid; break
 
5203
else
 
5204
  echo "$as_me: failed program was:" >&5
 
5205
sed 's/^/| /' conftest.$ac_ext >&5
 
5206
 
 
5207
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5208
                        if test $ac_mid -le $ac_hi; then
 
5209
                          ac_lo= ac_hi=
 
5210
                          break
 
5211
                        fi
 
5212
                        ac_mid=`expr 2 '*' $ac_mid`
 
5213
fi
 
5214
 
 
5215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5216
  done
 
5217
else
 
5218
  echo "$as_me: failed program was:" >&5
 
5219
sed 's/^/| /' conftest.$ac_ext >&5
 
5220
 
 
5221
        ac_lo= ac_hi=
 
5222
fi
 
5223
 
 
5224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5225
fi
 
5226
 
 
5227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5228
# Binary search between lo and hi bounds.
 
5229
while test "x$ac_lo" != "x$ac_hi"; do
 
5230
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5231
  cat >conftest.$ac_ext <<_ACEOF
 
5232
/* confdefs.h.  */
 
5233
_ACEOF
 
5234
cat confdefs.h >>conftest.$ac_ext
 
5235
cat >>conftest.$ac_ext <<_ACEOF
 
5236
/* end confdefs.h.  */
 
5237
$ac_includes_default
 
5238
   typedef long ac__type_sizeof_;
 
5239
int main (void)
 
5240
{
 
5241
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5242
test_array [0] = 0
 
5243
 
 
5244
 ;
 
5245
 return 0;
 
5246
}
 
5247
_ACEOF
 
5248
rm -f conftest.$ac_objext
 
5249
if { (ac_try="$ac_compile"
 
5250
case "(($ac_try" in
 
5251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5252
  *) ac_try_echo=$ac_try;;
 
5253
esac
 
5254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5255
  (eval "$ac_compile") 2>conftest.er1
 
5256
  ac_status=$?
 
5257
  grep -v '^ *+' conftest.er1 >conftest.err
 
5258
  rm -f conftest.er1
 
5259
  cat conftest.err >&5
 
5260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5261
  (exit $ac_status); } && {
 
5262
         test -z "$ac_c_werror_flag" ||
 
5263
         test ! -s conftest.err
 
5264
       } && test -s conftest.$ac_objext; then
 
5265
  ac_hi=$ac_mid
 
5266
else
 
5267
  echo "$as_me: failed program was:" >&5
 
5268
sed 's/^/| /' conftest.$ac_ext >&5
 
5269
 
 
5270
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
5271
fi
 
5272
 
 
5273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5274
done
 
5275
case $ac_lo in
 
5276
?*) ac_cv_sizeof_long=$ac_lo;;
 
5277
'') if test "$ac_cv_type_long" = yes; then
 
5278
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
5279
See \`config.log' for more details." >&5
 
5280
echo "$as_me: error: cannot compute sizeof (long)
 
5281
See \`config.log' for more details." >&2;}
 
5282
   { (exit 77); exit 77; }; }
 
5283
   else
 
5284
     ac_cv_sizeof_long=0
 
5285
   fi ;;
 
5286
esac
 
5287
else
 
5288
  cat >conftest.$ac_ext <<_ACEOF
 
5289
/* confdefs.h.  */
 
5290
_ACEOF
 
5291
cat confdefs.h >>conftest.$ac_ext
 
5292
cat >>conftest.$ac_ext <<_ACEOF
 
5293
/* end confdefs.h.  */
 
5294
$ac_includes_default
 
5295
   typedef long ac__type_sizeof_;
 
5296
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5297
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5298
#include <stdio.h>
 
5299
#include <stdlib.h>
 
5300
int main (void)
 
5301
{
 
5302
 
 
5303
  FILE *f = fopen ("conftest.val", "w");
 
5304
  if (! f)
 
5305
    return 1;
 
5306
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
5307
    {
 
5308
      long int i = longval ();
 
5309
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5310
        return 1;
 
5311
      fprintf (f, "%ld\n", i);
 
5312
    }
 
5313
  else
 
5314
    {
 
5315
      unsigned long int i = ulongval ();
 
5316
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5317
        return 1;
 
5318
      fprintf (f, "%lu\n", i);
 
5319
    }
 
5320
  return ferror (f) || fclose (f) != 0;
 
5321
 
 
5322
 ;
 
5323
 return 0;
 
5324
}
 
5325
_ACEOF
 
5326
rm -f conftest$ac_exeext
 
5327
if { (ac_try="$ac_link"
 
5328
case "(($ac_try" in
 
5329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5330
  *) ac_try_echo=$ac_try;;
 
5331
esac
 
5332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5333
  (eval "$ac_link") 2>&5
 
5334
  ac_status=$?
 
5335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5336
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5337
  { (case "(($ac_try" in
 
5338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5339
  *) ac_try_echo=$ac_try;;
 
5340
esac
 
5341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5342
  (eval "$ac_try") 2>&5
 
5343
  ac_status=$?
 
5344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5345
  (exit $ac_status); }; }; then
 
5346
  ac_cv_sizeof_long=`cat conftest.val`
 
5347
else
 
5348
  echo "$as_me: program exited with status $ac_status" >&5
 
5349
echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
( exit $ac_status )
 
5353
if test "$ac_cv_type_long" = yes; then
 
5354
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
5355
See \`config.log' for more details." >&5
 
5356
echo "$as_me: error: cannot compute sizeof (long)
 
5357
See \`config.log' for more details." >&2;}
 
5358
   { (exit 77); exit 77; }; }
 
5359
   else
 
5360
     ac_cv_sizeof_long=0
 
5361
   fi
 
5362
fi
 
5363
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5364
fi
 
5365
rm -f conftest.val
 
5366
fi
 
5367
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
5368
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
5369
 
 
5370
 
 
5371
 
 
5372
cat >>confdefs.h <<_ACEOF
 
5373
#define SIZEOF_LONG $ac_cv_sizeof_long
 
5374
_ACEOF
 
5375
 
 
5376
 
 
5377
  { echo "$as_me:$LINENO: checking for void*" >&5
 
5378
echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
 
5379
if test "${ac_cv_type_voidp+set}" = set; then
 
5380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5381
else
 
5382
  cat >conftest.$ac_ext <<_ACEOF
 
5383
/* confdefs.h.  */
 
5384
_ACEOF
 
5385
cat confdefs.h >>conftest.$ac_ext
 
5386
cat >>conftest.$ac_ext <<_ACEOF
 
5387
/* end confdefs.h.  */
 
5388
$ac_includes_default
 
5389
typedef void* ac__type_new_;
 
5390
int main (void)
 
5391
{
 
5392
if ((ac__type_new_ *) 0)
 
5393
  return 0;
 
5394
if (sizeof (ac__type_new_))
 
5395
  return 0;
 
5396
 ;
 
5397
 return 0;
 
5398
}
 
5399
_ACEOF
 
5400
rm -f conftest.$ac_objext
 
5401
if { (ac_try="$ac_compile"
 
5402
case "(($ac_try" in
 
5403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5404
  *) ac_try_echo=$ac_try;;
 
5405
esac
 
5406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5407
  (eval "$ac_compile") 2>conftest.er1
 
5408
  ac_status=$?
 
5409
  grep -v '^ *+' conftest.er1 >conftest.err
 
5410
  rm -f conftest.er1
 
5411
  cat conftest.err >&5
 
5412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5413
  (exit $ac_status); } && {
 
5414
         test -z "$ac_c_werror_flag" ||
 
5415
         test ! -s conftest.err
 
5416
       } && test -s conftest.$ac_objext; then
 
5417
  ac_cv_type_voidp=yes
 
5418
else
 
5419
  echo "$as_me: failed program was:" >&5
 
5420
sed 's/^/| /' conftest.$ac_ext >&5
 
5421
 
 
5422
        ac_cv_type_voidp=no
 
5423
fi
 
5424
 
 
5425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5426
fi
 
5427
{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
 
5428
echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
 
5429
 
 
5430
# The cast to long int works around a bug in the HP C Compiler
 
5431
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5432
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5433
# This bug is HP SR number 8606223364.
 
5434
{ echo "$as_me:$LINENO: checking size of void*" >&5
 
5435
echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
 
5436
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
5437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5438
else
 
5439
  if test "$cross_compiling" = yes; then
 
5440
  # Depending upon the size, compute the lo and hi bounds.
 
5441
cat >conftest.$ac_ext <<_ACEOF
 
5442
/* confdefs.h.  */
 
5443
_ACEOF
 
5444
cat confdefs.h >>conftest.$ac_ext
 
5445
cat >>conftest.$ac_ext <<_ACEOF
 
5446
/* end confdefs.h.  */
 
5447
$ac_includes_default
 
5448
   typedef void* ac__type_sizeof_;
 
5449
int main (void)
 
5450
{
 
5451
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
5452
test_array [0] = 0
 
5453
 
 
5454
 ;
 
5455
 return 0;
 
5456
}
 
5457
_ACEOF
 
5458
rm -f conftest.$ac_objext
 
5459
if { (ac_try="$ac_compile"
 
5460
case "(($ac_try" in
 
5461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5462
  *) ac_try_echo=$ac_try;;
 
5463
esac
 
5464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5465
  (eval "$ac_compile") 2>conftest.er1
 
5466
  ac_status=$?
 
5467
  grep -v '^ *+' conftest.er1 >conftest.err
 
5468
  rm -f conftest.er1
 
5469
  cat conftest.err >&5
 
5470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5471
  (exit $ac_status); } && {
 
5472
         test -z "$ac_c_werror_flag" ||
 
5473
         test ! -s conftest.err
 
5474
       } && test -s conftest.$ac_objext; then
 
5475
  ac_lo=0 ac_mid=0
 
5476
  while :; do
 
5477
    cat >conftest.$ac_ext <<_ACEOF
 
5478
/* confdefs.h.  */
 
5479
_ACEOF
 
5480
cat confdefs.h >>conftest.$ac_ext
 
5481
cat >>conftest.$ac_ext <<_ACEOF
 
5482
/* end confdefs.h.  */
 
5483
$ac_includes_default
 
5484
   typedef void* ac__type_sizeof_;
 
5485
int main (void)
 
5486
{
 
5487
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5488
test_array [0] = 0
 
5489
 
 
5490
 ;
 
5491
 return 0;
 
5492
}
 
5493
_ACEOF
 
5494
rm -f conftest.$ac_objext
 
5495
if { (ac_try="$ac_compile"
 
5496
case "(($ac_try" in
 
5497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5498
  *) ac_try_echo=$ac_try;;
 
5499
esac
 
5500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5501
  (eval "$ac_compile") 2>conftest.er1
 
5502
  ac_status=$?
 
5503
  grep -v '^ *+' conftest.er1 >conftest.err
 
5504
  rm -f conftest.er1
 
5505
  cat conftest.err >&5
 
5506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5507
  (exit $ac_status); } && {
 
5508
         test -z "$ac_c_werror_flag" ||
 
5509
         test ! -s conftest.err
 
5510
       } && test -s conftest.$ac_objext; then
 
5511
  ac_hi=$ac_mid; break
 
5512
else
 
5513
  echo "$as_me: failed program was:" >&5
 
5514
sed 's/^/| /' conftest.$ac_ext >&5
 
5515
 
 
5516
        ac_lo=`expr $ac_mid + 1`
 
5517
                        if test $ac_lo -le $ac_mid; then
 
5518
                          ac_lo= ac_hi=
 
5519
                          break
 
5520
                        fi
 
5521
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
5522
fi
 
5523
 
 
5524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5525
  done
 
5526
else
 
5527
  echo "$as_me: failed program was:" >&5
 
5528
sed 's/^/| /' conftest.$ac_ext >&5
 
5529
 
 
5530
        cat >conftest.$ac_ext <<_ACEOF
 
5531
/* confdefs.h.  */
 
5532
_ACEOF
 
5533
cat confdefs.h >>conftest.$ac_ext
 
5534
cat >>conftest.$ac_ext <<_ACEOF
 
5535
/* end confdefs.h.  */
 
5536
$ac_includes_default
 
5537
   typedef void* ac__type_sizeof_;
 
5538
int main (void)
 
5539
{
 
5540
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
5541
test_array [0] = 0
 
5542
 
 
5543
 ;
 
5544
 return 0;
 
5545
}
 
5546
_ACEOF
 
5547
rm -f conftest.$ac_objext
 
5548
if { (ac_try="$ac_compile"
 
5549
case "(($ac_try" in
 
5550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5551
  *) ac_try_echo=$ac_try;;
 
5552
esac
 
5553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5554
  (eval "$ac_compile") 2>conftest.er1
 
5555
  ac_status=$?
 
5556
  grep -v '^ *+' conftest.er1 >conftest.err
 
5557
  rm -f conftest.er1
 
5558
  cat conftest.err >&5
 
5559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5560
  (exit $ac_status); } && {
 
5561
         test -z "$ac_c_werror_flag" ||
 
5562
         test ! -s conftest.err
 
5563
       } && test -s conftest.$ac_objext; then
 
5564
  ac_hi=-1 ac_mid=-1
 
5565
  while :; do
 
5566
    cat >conftest.$ac_ext <<_ACEOF
 
5567
/* confdefs.h.  */
 
5568
_ACEOF
 
5569
cat confdefs.h >>conftest.$ac_ext
 
5570
cat >>conftest.$ac_ext <<_ACEOF
 
5571
/* end confdefs.h.  */
 
5572
$ac_includes_default
 
5573
   typedef void* ac__type_sizeof_;
 
5574
int main (void)
 
5575
{
 
5576
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
5577
test_array [0] = 0
 
5578
 
 
5579
 ;
 
5580
 return 0;
 
5581
}
 
5582
_ACEOF
 
5583
rm -f conftest.$ac_objext
 
5584
if { (ac_try="$ac_compile"
 
5585
case "(($ac_try" in
 
5586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5587
  *) ac_try_echo=$ac_try;;
 
5588
esac
 
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5590
  (eval "$ac_compile") 2>conftest.er1
 
5591
  ac_status=$?
 
5592
  grep -v '^ *+' conftest.er1 >conftest.err
 
5593
  rm -f conftest.er1
 
5594
  cat conftest.err >&5
 
5595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5596
  (exit $ac_status); } && {
 
5597
         test -z "$ac_c_werror_flag" ||
 
5598
         test ! -s conftest.err
 
5599
       } && test -s conftest.$ac_objext; then
 
5600
  ac_lo=$ac_mid; break
 
5601
else
 
5602
  echo "$as_me: failed program was:" >&5
 
5603
sed 's/^/| /' conftest.$ac_ext >&5
 
5604
 
 
5605
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
5606
                        if test $ac_mid -le $ac_hi; then
 
5607
                          ac_lo= ac_hi=
 
5608
                          break
 
5609
                        fi
 
5610
                        ac_mid=`expr 2 '*' $ac_mid`
 
5611
fi
 
5612
 
 
5613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5614
  done
 
5615
else
 
5616
  echo "$as_me: failed program was:" >&5
 
5617
sed 's/^/| /' conftest.$ac_ext >&5
 
5618
 
 
5619
        ac_lo= ac_hi=
 
5620
fi
 
5621
 
 
5622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5623
fi
 
5624
 
 
5625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5626
# Binary search between lo and hi bounds.
 
5627
while test "x$ac_lo" != "x$ac_hi"; do
 
5628
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5629
  cat >conftest.$ac_ext <<_ACEOF
 
5630
/* confdefs.h.  */
 
5631
_ACEOF
 
5632
cat confdefs.h >>conftest.$ac_ext
 
5633
cat >>conftest.$ac_ext <<_ACEOF
 
5634
/* end confdefs.h.  */
 
5635
$ac_includes_default
 
5636
   typedef void* ac__type_sizeof_;
 
5637
int main (void)
 
5638
{
 
5639
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
5640
test_array [0] = 0
 
5641
 
 
5642
 ;
 
5643
 return 0;
 
5644
}
 
5645
_ACEOF
 
5646
rm -f conftest.$ac_objext
 
5647
if { (ac_try="$ac_compile"
 
5648
case "(($ac_try" in
 
5649
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5650
  *) ac_try_echo=$ac_try;;
 
5651
esac
 
5652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5653
  (eval "$ac_compile") 2>conftest.er1
 
5654
  ac_status=$?
 
5655
  grep -v '^ *+' conftest.er1 >conftest.err
 
5656
  rm -f conftest.er1
 
5657
  cat conftest.err >&5
 
5658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5659
  (exit $ac_status); } && {
 
5660
         test -z "$ac_c_werror_flag" ||
 
5661
         test ! -s conftest.err
 
5662
       } && test -s conftest.$ac_objext; then
 
5663
  ac_hi=$ac_mid
 
5664
else
 
5665
  echo "$as_me: failed program was:" >&5
 
5666
sed 's/^/| /' conftest.$ac_ext >&5
 
5667
 
 
5668
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
5669
fi
 
5670
 
 
5671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5672
done
 
5673
case $ac_lo in
 
5674
?*) ac_cv_sizeof_voidp=$ac_lo;;
 
5675
'') if test "$ac_cv_type_voidp" = yes; then
 
5676
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
 
5677
See \`config.log' for more details." >&5
 
5678
echo "$as_me: error: cannot compute sizeof (void*)
 
5679
See \`config.log' for more details." >&2;}
 
5680
   { (exit 77); exit 77; }; }
 
5681
   else
 
5682
     ac_cv_sizeof_voidp=0
 
5683
   fi ;;
 
5684
esac
 
5685
else
 
5686
  cat >conftest.$ac_ext <<_ACEOF
 
5687
/* confdefs.h.  */
 
5688
_ACEOF
 
5689
cat confdefs.h >>conftest.$ac_ext
 
5690
cat >>conftest.$ac_ext <<_ACEOF
 
5691
/* end confdefs.h.  */
 
5692
$ac_includes_default
 
5693
   typedef void* ac__type_sizeof_;
 
5694
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5695
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
5696
#include <stdio.h>
 
5697
#include <stdlib.h>
 
5698
int main (void)
 
5699
{
 
5700
 
 
5701
  FILE *f = fopen ("conftest.val", "w");
 
5702
  if (! f)
 
5703
    return 1;
 
5704
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
5705
    {
 
5706
      long int i = longval ();
 
5707
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5708
        return 1;
 
5709
      fprintf (f, "%ld\n", i);
 
5710
    }
 
5711
  else
 
5712
    {
 
5713
      unsigned long int i = ulongval ();
 
5714
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
5715
        return 1;
 
5716
      fprintf (f, "%lu\n", i);
 
5717
    }
 
5718
  return ferror (f) || fclose (f) != 0;
 
5719
 
 
5720
 ;
 
5721
 return 0;
 
5722
}
 
5723
_ACEOF
 
5724
rm -f conftest$ac_exeext
 
5725
if { (ac_try="$ac_link"
 
5726
case "(($ac_try" in
 
5727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5728
  *) ac_try_echo=$ac_try;;
 
5729
esac
 
5730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5731
  (eval "$ac_link") 2>&5
 
5732
  ac_status=$?
 
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5735
  { (case "(($ac_try" in
 
5736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5737
  *) ac_try_echo=$ac_try;;
 
5738
esac
 
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5740
  (eval "$ac_try") 2>&5
 
5741
  ac_status=$?
 
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5743
  (exit $ac_status); }; }; then
 
5744
  ac_cv_sizeof_voidp=`cat conftest.val`
 
5745
else
 
5746
  echo "$as_me: program exited with status $ac_status" >&5
 
5747
echo "$as_me: failed program was:" >&5
 
5748
sed 's/^/| /' conftest.$ac_ext >&5
 
5749
 
 
5750
( exit $ac_status )
 
5751
if test "$ac_cv_type_voidp" = yes; then
 
5752
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
 
5753
See \`config.log' for more details." >&5
 
5754
echo "$as_me: error: cannot compute sizeof (void*)
 
5755
See \`config.log' for more details." >&2;}
 
5756
   { (exit 77); exit 77; }; }
 
5757
   else
 
5758
     ac_cv_sizeof_voidp=0
 
5759
   fi
 
5760
fi
 
5761
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5762
fi
 
5763
rm -f conftest.val
 
5764
fi
 
5765
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
5766
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
 
5767
 
 
5768
 
 
5769
 
 
5770
cat >>confdefs.h <<_ACEOF
 
5771
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
 
5772
_ACEOF
 
5773
 
 
5774
 
 
5775
  #
 
5776
  if test -z "$ac_cv_sizeof_long" ||
 
5777
    test "$ac_cv_sizeof_long" -eq "0"; then
 
5778
    { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
 
5779
echo "$as_me: error: cannot find out size of long." >&2;}
 
5780
   { (exit 1); exit 1; }; }
 
5781
  fi
 
5782
  if test -z "$ac_cv_sizeof_voidp" ||
 
5783
     test "$ac_cv_sizeof_voidp" -eq "0"; then
 
5784
    { { echo "$as_me:$LINENO: error: cannot find out size of void*." >&5
 
5785
echo "$as_me: error: cannot find out size of void*." >&2;}
 
5786
   { (exit 1); exit 1; }; }
 
5787
  fi
 
5788
  #
 
5789
  x_LP64_long=""
 
5790
  x_LP32_long=""
 
5791
  x_LP16_long=""
 
5792
  #
 
5793
  if test "$ac_cv_sizeof_long" -eq "8" &&
 
5794
     test "$ac_cv_sizeof_voidp" -ge "8"; then
 
5795
    x_LP64_long="long"
 
5796
  elif test "$ac_cv_sizeof_long" -eq "4" &&
 
5797
       test "$ac_cv_sizeof_voidp" -ge "4"; then
 
5798
    x_LP32_long="long"
 
5799
  elif test "$ac_cv_sizeof_long" -eq "2" &&
 
5800
       test "$ac_cv_sizeof_voidp" -ge "2"; then
 
5801
    x_LP16_long="long"
 
5802
  fi
 
5803
  #
 
5804
    #
 
5805
  curl_typeof_curl_off_t="unknown"
 
5806
  curl_sizeof_curl_off_t="unknown"
 
5807
  curl_format_curl_off_t="unknown"
 
5808
  curl_format_curl_off_tu="unknown"
 
5809
  #
 
5810
  if test "$curl_typeof_curl_off_t" = "unknown"; then
 
5811
    { echo "$as_me:$LINENO: checking for 64-bit curl_off_t data type" >&5
 
5812
echo $ECHO_N "checking for 64-bit curl_off_t data type... $ECHO_C" >&6; }
 
5813
    for t8 in          \
 
5814
      "$x_LP64_long"   \
 
5815
      'int64_t'        \
 
5816
      '__int64'        \
 
5817
      'long long'      \
 
5818
      '__longlong'     \
 
5819
      '__longlong_t'   ; do
 
5820
 
 
5821
    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
 
5822
    tmp_includes=""
 
5823
    tmp_source=""
 
5824
    tmp_fmt=""
 
5825
    case `echo "$t8" | $as_tr_sh` in
 
5826
      int64_t)
 
5827
        tmp_includes="$curl_includes_inttypes"
 
5828
        tmp_source="char f[] = PRId64;"
 
5829
        tmp_fmt="PRId64"
 
5830
        ;;
 
5831
      int32_t)
 
5832
        tmp_includes="$curl_includes_inttypes"
 
5833
        tmp_source="char f[] = PRId32;"
 
5834
        tmp_fmt="PRId32"
 
5835
        ;;
 
5836
      int16_t)
 
5837
        tmp_includes="$curl_includes_inttypes"
 
5838
        tmp_source="char f[] = PRId16;"
 
5839
        tmp_fmt="PRId16"
 
5840
        ;;
 
5841
    esac
 
5842
    cat >conftest.$ac_ext <<_ACEOF
 
5843
 
 
5844
      /* confdefs.h.  */
 
5845
_ACEOF
 
5846
cat confdefs.h >>conftest.$ac_ext
 
5847
cat >>conftest.$ac_ext <<_ACEOF
 
5848
/* end confdefs.h.  */
 
5849
 
 
5850
        $tmp_includes
 
5851
        typedef $t8 curl_off_t;
 
5852
        typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
 
5853
 
 
5854
int main (void)
 
5855
{
 
5856
 
 
5857
        $tmp_source
 
5858
        curl_off_t dummy;
 
5859
 
 
5860
 ;
 
5861
 return 0;
 
5862
}
 
5863
 
 
5864
_ACEOF
 
5865
rm -f conftest.$ac_objext
 
5866
if { (ac_try="$ac_compile"
 
5867
case "(($ac_try" in
 
5868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5869
  *) ac_try_echo=$ac_try;;
 
5870
esac
 
5871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5872
  (eval "$ac_compile") 2>conftest.er1
 
5873
  ac_status=$?
 
5874
  grep -v '^ *+' conftest.er1 >conftest.err
 
5875
  rm -f conftest.er1
 
5876
  cat conftest.err >&5
 
5877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5878
  (exit $ac_status); } && {
 
5879
         test -z "$ac_c_werror_flag" ||
 
5880
         test ! -s conftest.err
 
5881
       } && test -s conftest.$ac_objext; then
 
5882
 
 
5883
      if test -z "$tmp_fmt"; then
 
5884
        curl_typeof_curl_off_t="$t8"
 
5885
        curl_sizeof_curl_off_t="8"
 
5886
      else
 
5887
 
 
5888
  as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
5889
  as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
5890
  if test -z "$SED"; then
 
5891
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
5892
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
5893
   { (exit 1); exit 1; }; }
 
5894
  fi
 
5895
  if test -z "$GREP"; then
 
5896
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
5897
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
5898
   { (exit 1); exit 1; }; }
 
5899
  fi
 
5900
 
 
5901
  tmp_exp=""
 
5902
  cat >conftest.$ac_ext <<_ACEOF
 
5903
 
 
5904
    /* confdefs.h.  */
 
5905
_ACEOF
 
5906
cat confdefs.h >>conftest.$ac_ext
 
5907
cat >>conftest.$ac_ext <<_ACEOF
 
5908
/* end confdefs.h.  */
 
5909
$curl_includes_inttypes
 
5910
#ifdef $tmp_fmt
 
5911
CURL_DEF_TOKEN $tmp_fmt
 
5912
#endif
 
5913
 
 
5914
 
 
5915
_ACEOF
 
5916
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5917
case "(($ac_try" in
 
5918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5919
  *) ac_try_echo=$ac_try;;
 
5920
esac
 
5921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5922
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5923
  ac_status=$?
 
5924
  grep -v '^ *+' conftest.er1 >conftest.err
 
5925
  rm -f conftest.er1
 
5926
  cat conftest.err >&5
 
5927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5928
  (exit $ac_status); } >/dev/null && {
 
5929
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5930
         test ! -s conftest.err
 
5931
       }; then
 
5932
 
 
5933
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
5934
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
5935
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
5936
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
5937
    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
 
5938
      tmp_exp=""
 
5939
    fi
 
5940
 
 
5941
else
 
5942
  echo "$as_me: failed program was:" >&5
 
5943
sed 's/^/| /' conftest.$ac_ext >&5
 
5944
 
 
5945
 
 
5946
fi
 
5947
 
 
5948
rm -f conftest.err conftest.$ac_ext
 
5949
  if test -z "$tmp_exp"; then
 
5950
    eval "$as_ac_HaveDef=no"
 
5951
 
 
5952
  else
 
5953
    eval "$as_ac_HaveDef=yes"
 
5954
    eval "$as_ac_Def=\$tmp_exp"
 
5955
 
 
5956
  fi
 
5957
 
 
5958
        as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
5959
        as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
5960
        if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
 
5961
          curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
 
5962
          curl_typeof_curl_off_t="$t8"
 
5963
          curl_sizeof_curl_off_t="8"
 
5964
        fi
 
5965
                      fi
 
5966
 
 
5967
else
 
5968
  echo "$as_me: failed program was:" >&5
 
5969
sed 's/^/| /' conftest.$ac_ext >&5
 
5970
 
 
5971
 
 
5972
fi
 
5973
 
 
5974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5975
  fi
 
5976
 
 
5977
    done
 
5978
    { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
 
5979
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
 
5980
  fi
 
5981
  if test "$curl_typeof_curl_off_t" = "unknown"; then
 
5982
    { echo "$as_me:$LINENO: checking for 32-bit curl_off_t data type" >&5
 
5983
echo $ECHO_N "checking for 32-bit curl_off_t data type... $ECHO_C" >&6; }
 
5984
    for t4 in          \
 
5985
      "$x_LP32_long"   \
 
5986
      'int32_t'        \
 
5987
      '__int32'        \
 
5988
      'int'            ; do
 
5989
 
 
5990
    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
 
5991
    tmp_includes=""
 
5992
    tmp_source=""
 
5993
    tmp_fmt=""
 
5994
    case `echo "$t4" | $as_tr_sh` in
 
5995
      int64_t)
 
5996
        tmp_includes="$curl_includes_inttypes"
 
5997
        tmp_source="char f[] = PRId64;"
 
5998
        tmp_fmt="PRId64"
 
5999
        ;;
 
6000
      int32_t)
 
6001
        tmp_includes="$curl_includes_inttypes"
 
6002
        tmp_source="char f[] = PRId32;"
 
6003
        tmp_fmt="PRId32"
 
6004
        ;;
 
6005
      int16_t)
 
6006
        tmp_includes="$curl_includes_inttypes"
 
6007
        tmp_source="char f[] = PRId16;"
 
6008
        tmp_fmt="PRId16"
 
6009
        ;;
 
6010
    esac
 
6011
    cat >conftest.$ac_ext <<_ACEOF
 
6012
 
 
6013
      /* confdefs.h.  */
 
6014
_ACEOF
 
6015
cat confdefs.h >>conftest.$ac_ext
 
6016
cat >>conftest.$ac_ext <<_ACEOF
 
6017
/* end confdefs.h.  */
 
6018
 
 
6019
        $tmp_includes
 
6020
        typedef $t4 curl_off_t;
 
6021
        typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
 
6022
 
 
6023
int main (void)
 
6024
{
 
6025
 
 
6026
        $tmp_source
 
6027
        curl_off_t dummy;
 
6028
 
 
6029
 ;
 
6030
 return 0;
 
6031
}
 
6032
 
 
6033
_ACEOF
 
6034
rm -f conftest.$ac_objext
 
6035
if { (ac_try="$ac_compile"
 
6036
case "(($ac_try" in
 
6037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6038
  *) ac_try_echo=$ac_try;;
 
6039
esac
 
6040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6041
  (eval "$ac_compile") 2>conftest.er1
 
6042
  ac_status=$?
 
6043
  grep -v '^ *+' conftest.er1 >conftest.err
 
6044
  rm -f conftest.er1
 
6045
  cat conftest.err >&5
 
6046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6047
  (exit $ac_status); } && {
 
6048
         test -z "$ac_c_werror_flag" ||
 
6049
         test ! -s conftest.err
 
6050
       } && test -s conftest.$ac_objext; then
 
6051
 
 
6052
      if test -z "$tmp_fmt"; then
 
6053
        curl_typeof_curl_off_t="$t4"
 
6054
        curl_sizeof_curl_off_t="4"
 
6055
      else
 
6056
 
 
6057
  as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
6058
  as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
6059
  if test -z "$SED"; then
 
6060
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
6061
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
6062
   { (exit 1); exit 1; }; }
 
6063
  fi
 
6064
  if test -z "$GREP"; then
 
6065
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
6066
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
6067
   { (exit 1); exit 1; }; }
 
6068
  fi
 
6069
 
 
6070
  tmp_exp=""
 
6071
  cat >conftest.$ac_ext <<_ACEOF
 
6072
 
 
6073
    /* confdefs.h.  */
 
6074
_ACEOF
 
6075
cat confdefs.h >>conftest.$ac_ext
 
6076
cat >>conftest.$ac_ext <<_ACEOF
 
6077
/* end confdefs.h.  */
 
6078
$curl_includes_inttypes
 
6079
#ifdef $tmp_fmt
 
6080
CURL_DEF_TOKEN $tmp_fmt
 
6081
#endif
 
6082
 
 
6083
 
 
6084
_ACEOF
 
6085
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6086
case "(($ac_try" in
 
6087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6088
  *) ac_try_echo=$ac_try;;
 
6089
esac
 
6090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6091
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6092
  ac_status=$?
 
6093
  grep -v '^ *+' conftest.er1 >conftest.err
 
6094
  rm -f conftest.er1
 
6095
  cat conftest.err >&5
 
6096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6097
  (exit $ac_status); } >/dev/null && {
 
6098
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6099
         test ! -s conftest.err
 
6100
       }; then
 
6101
 
 
6102
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
6103
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
6104
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
6105
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
6106
    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
 
6107
      tmp_exp=""
 
6108
    fi
 
6109
 
 
6110
else
 
6111
  echo "$as_me: failed program was:" >&5
 
6112
sed 's/^/| /' conftest.$ac_ext >&5
 
6113
 
 
6114
 
 
6115
fi
 
6116
 
 
6117
rm -f conftest.err conftest.$ac_ext
 
6118
  if test -z "$tmp_exp"; then
 
6119
    eval "$as_ac_HaveDef=no"
 
6120
 
 
6121
  else
 
6122
    eval "$as_ac_HaveDef=yes"
 
6123
    eval "$as_ac_Def=\$tmp_exp"
 
6124
 
 
6125
  fi
 
6126
 
 
6127
        as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
6128
        as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
6129
        if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
 
6130
          curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
 
6131
          curl_typeof_curl_off_t="$t4"
 
6132
          curl_sizeof_curl_off_t="4"
 
6133
        fi
 
6134
                      fi
 
6135
 
 
6136
else
 
6137
  echo "$as_me: failed program was:" >&5
 
6138
sed 's/^/| /' conftest.$ac_ext >&5
 
6139
 
 
6140
 
 
6141
fi
 
6142
 
 
6143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6144
  fi
 
6145
 
 
6146
    done
 
6147
    { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
 
6148
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
 
6149
  fi
 
6150
  if test "$curl_typeof_curl_off_t" = "unknown"; then
 
6151
    { echo "$as_me:$LINENO: checking for 16-bit curl_off_t data type" >&5
 
6152
echo $ECHO_N "checking for 16-bit curl_off_t data type... $ECHO_C" >&6; }
 
6153
    for t2 in          \
 
6154
      "$x_LP16_long"   \
 
6155
      'int16_t'        \
 
6156
      '__int16'        \
 
6157
      'int'            ; do
 
6158
 
 
6159
    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
 
6160
    tmp_includes=""
 
6161
    tmp_source=""
 
6162
    tmp_fmt=""
 
6163
    case `echo "$t2" | $as_tr_sh` in
 
6164
      int64_t)
 
6165
        tmp_includes="$curl_includes_inttypes"
 
6166
        tmp_source="char f[] = PRId64;"
 
6167
        tmp_fmt="PRId64"
 
6168
        ;;
 
6169
      int32_t)
 
6170
        tmp_includes="$curl_includes_inttypes"
 
6171
        tmp_source="char f[] = PRId32;"
 
6172
        tmp_fmt="PRId32"
 
6173
        ;;
 
6174
      int16_t)
 
6175
        tmp_includes="$curl_includes_inttypes"
 
6176
        tmp_source="char f[] = PRId16;"
 
6177
        tmp_fmt="PRId16"
 
6178
        ;;
 
6179
    esac
 
6180
    cat >conftest.$ac_ext <<_ACEOF
 
6181
 
 
6182
      /* confdefs.h.  */
 
6183
_ACEOF
 
6184
cat confdefs.h >>conftest.$ac_ext
 
6185
cat >>conftest.$ac_ext <<_ACEOF
 
6186
/* end confdefs.h.  */
 
6187
 
 
6188
        $tmp_includes
 
6189
        typedef $t2 curl_off_t;
 
6190
        typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
 
6191
 
 
6192
int main (void)
 
6193
{
 
6194
 
 
6195
        $tmp_source
 
6196
        curl_off_t dummy;
 
6197
 
 
6198
 ;
 
6199
 return 0;
 
6200
}
 
6201
 
 
6202
_ACEOF
 
6203
rm -f conftest.$ac_objext
 
6204
if { (ac_try="$ac_compile"
 
6205
case "(($ac_try" in
 
6206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6207
  *) ac_try_echo=$ac_try;;
 
6208
esac
 
6209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6210
  (eval "$ac_compile") 2>conftest.er1
 
6211
  ac_status=$?
 
6212
  grep -v '^ *+' conftest.er1 >conftest.err
 
6213
  rm -f conftest.er1
 
6214
  cat conftest.err >&5
 
6215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6216
  (exit $ac_status); } && {
 
6217
         test -z "$ac_c_werror_flag" ||
 
6218
         test ! -s conftest.err
 
6219
       } && test -s conftest.$ac_objext; then
 
6220
 
 
6221
      if test -z "$tmp_fmt"; then
 
6222
        curl_typeof_curl_off_t="$t2"
 
6223
        curl_sizeof_curl_off_t="2"
 
6224
      else
 
6225
 
 
6226
  as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
6227
  as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
6228
  if test -z "$SED"; then
 
6229
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
6230
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
6231
   { (exit 1); exit 1; }; }
 
6232
  fi
 
6233
  if test -z "$GREP"; then
 
6234
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
6235
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
6236
   { (exit 1); exit 1; }; }
 
6237
  fi
 
6238
 
 
6239
  tmp_exp=""
 
6240
  cat >conftest.$ac_ext <<_ACEOF
 
6241
 
 
6242
    /* confdefs.h.  */
 
6243
_ACEOF
 
6244
cat confdefs.h >>conftest.$ac_ext
 
6245
cat >>conftest.$ac_ext <<_ACEOF
 
6246
/* end confdefs.h.  */
 
6247
$curl_includes_inttypes
 
6248
#ifdef $tmp_fmt
 
6249
CURL_DEF_TOKEN $tmp_fmt
 
6250
#endif
 
6251
 
 
6252
 
 
6253
_ACEOF
 
6254
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6255
case "(($ac_try" in
 
6256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6257
  *) ac_try_echo=$ac_try;;
 
6258
esac
 
6259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6260
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6261
  ac_status=$?
 
6262
  grep -v '^ *+' conftest.er1 >conftest.err
 
6263
  rm -f conftest.er1
 
6264
  cat conftest.err >&5
 
6265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6266
  (exit $ac_status); } >/dev/null && {
 
6267
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6268
         test ! -s conftest.err
 
6269
       }; then
 
6270
 
 
6271
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
6272
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
6273
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
6274
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
6275
    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
 
6276
      tmp_exp=""
 
6277
    fi
 
6278
 
 
6279
else
 
6280
  echo "$as_me: failed program was:" >&5
 
6281
sed 's/^/| /' conftest.$ac_ext >&5
 
6282
 
 
6283
 
 
6284
fi
 
6285
 
 
6286
rm -f conftest.err conftest.$ac_ext
 
6287
  if test -z "$tmp_exp"; then
 
6288
    eval "$as_ac_HaveDef=no"
 
6289
 
 
6290
  else
 
6291
    eval "$as_ac_HaveDef=yes"
 
6292
    eval "$as_ac_Def=\$tmp_exp"
 
6293
 
 
6294
  fi
 
6295
 
 
6296
        as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
 
6297
        as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
 
6298
        if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
 
6299
          curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
 
6300
          curl_typeof_curl_off_t="$t2"
 
6301
          curl_sizeof_curl_off_t="2"
 
6302
        fi
 
6303
                      fi
 
6304
 
 
6305
else
 
6306
  echo "$as_me: failed program was:" >&5
 
6307
sed 's/^/| /' conftest.$ac_ext >&5
 
6308
 
 
6309
 
 
6310
fi
 
6311
 
 
6312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6313
  fi
 
6314
 
 
6315
    done
 
6316
    { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
 
6317
echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
 
6318
  fi
 
6319
  if test "$curl_typeof_curl_off_t" = "unknown"; then
 
6320
    { { echo "$as_me:$LINENO: error: cannot find data type for curl_off_t." >&5
 
6321
echo "$as_me: error: cannot find data type for curl_off_t." >&2;}
 
6322
   { (exit 1); exit 1; }; }
 
6323
  fi
 
6324
  #
 
6325
  { echo "$as_me:$LINENO: checking size of curl_off_t" >&5
 
6326
echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
 
6327
  { echo "$as_me:$LINENO: result: $curl_sizeof_curl_off_t" >&5
 
6328
echo "${ECHO_T}$curl_sizeof_curl_off_t" >&6; }
 
6329
  #
 
6330
  { echo "$as_me:$LINENO: checking formatting string directive for curl_off_t" >&5
 
6331
echo $ECHO_N "checking formatting string directive for curl_off_t... $ECHO_C" >&6; }
 
6332
  if test "$curl_format_curl_off_t" != "unknown"; then
 
6333
    x_pull_headers="yes"
 
6334
    curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
 
6335
    curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
 
6336
    curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
 
6337
    curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
 
6338
  else
 
6339
    x_pull_headers="no"
 
6340
    case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
 
6341
      long_long | __longlong | __longlong_t)
 
6342
        curl_format_curl_off_t="lld"
 
6343
        curl_format_curl_off_tu="llu"
 
6344
        ;;
 
6345
      long)
 
6346
        curl_format_curl_off_t="ld"
 
6347
        curl_format_curl_off_tu="lu"
 
6348
        ;;
 
6349
      int)
 
6350
        curl_format_curl_off_t="d"
 
6351
        curl_format_curl_off_tu="u"
 
6352
        ;;
 
6353
      __int64)
 
6354
        curl_format_curl_off_t="I64d"
 
6355
        curl_format_curl_off_tu="I64u"
 
6356
        ;;
 
6357
      __int32)
 
6358
        curl_format_curl_off_t="I32d"
 
6359
        curl_format_curl_off_tu="I32u"
 
6360
        ;;
 
6361
      __int16)
 
6362
        curl_format_curl_off_t="I16d"
 
6363
        curl_format_curl_off_tu="I16u"
 
6364
        ;;
 
6365
      *)
 
6366
        { { echo "$as_me:$LINENO: error: cannot find print format string for curl_off_t." >&5
 
6367
echo "$as_me: error: cannot find print format string for curl_off_t." >&2;}
 
6368
   { (exit 1); exit 1; }; }
 
6369
        ;;
 
6370
    esac
 
6371
  fi
 
6372
  { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_t\"" >&5
 
6373
echo "${ECHO_T}\"$curl_format_curl_off_t\"" >&6; }
 
6374
  #
 
6375
  { echo "$as_me:$LINENO: checking formatting string directive for unsigned curl_off_t" >&5
 
6376
echo $ECHO_N "checking formatting string directive for unsigned curl_off_t... $ECHO_C" >&6; }
 
6377
  { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_tu\"" >&5
 
6378
echo "${ECHO_T}\"$curl_format_curl_off_tu\"" >&6; }
 
6379
  #
 
6380
 
 
6381
    { echo "$as_me:$LINENO: checking constant suffix string for curl_off_t" >&5
 
6382
echo $ECHO_N "checking constant suffix string for curl_off_t... $ECHO_C" >&6; }
 
6383
  #
 
6384
  curl_suffix_curl_off_t="unknown"
 
6385
  curl_suffix_curl_off_tu="unknown"
 
6386
  #
 
6387
  case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
 
6388
    long_long | __longlong | __longlong_t)
 
6389
      tst_suffixes="LL::"
 
6390
      ;;
 
6391
    long)
 
6392
      tst_suffixes="L::"
 
6393
      ;;
 
6394
    int)
 
6395
      tst_suffixes="::"
 
6396
      ;;
 
6397
    __int64 | int64_t)
 
6398
      tst_suffixes="LL:i64::"
 
6399
      ;;
 
6400
    __int32 | int32_t)
 
6401
      tst_suffixes="L:i32::"
 
6402
      ;;
 
6403
    __int16 | int16_t)
 
6404
      tst_suffixes="L:i16::"
 
6405
      ;;
 
6406
    *)
 
6407
      { { echo "$as_me:$LINENO: error: unexpected data type $curl_typeof_curl_off_t" >&5
 
6408
echo "$as_me: error: unexpected data type $curl_typeof_curl_off_t" >&2;}
 
6409
   { (exit 1); exit 1; }; }
 
6410
      ;;
 
6411
  esac
 
6412
  #
 
6413
  old_IFS=$IFS; IFS=':'
 
6414
  for tmp_ssuf in $tst_suffixes ; do
 
6415
    IFS=$old_IFS
 
6416
    if test "x$curl_suffix_curl_off_t" = "xunknown"; then
 
6417
      case $tmp_ssuf in
 
6418
        i64 | i32 | i16)
 
6419
          tmp_usuf="u$tmp_ssuf"
 
6420
          ;;
 
6421
        LL | L)
 
6422
          tmp_usuf="U$tmp_ssuf"
 
6423
          ;;
 
6424
        *)
 
6425
          tmp_usuf=""
 
6426
          ;;
 
6427
      esac
 
6428
      cat >conftest.$ac_ext <<_ACEOF
 
6429
 
 
6430
        /* confdefs.h.  */
 
6431
_ACEOF
 
6432
cat confdefs.h >>conftest.$ac_ext
 
6433
cat >>conftest.$ac_ext <<_ACEOF
 
6434
/* end confdefs.h.  */
 
6435
 
 
6436
          $curl_includes_inttypes
 
6437
          typedef $curl_typeof_curl_off_t new_t;
 
6438
 
 
6439
int main (void)
 
6440
{
 
6441
 
 
6442
          new_t s1;
 
6443
          new_t s2;
 
6444
          s1 = -10$tmp_ssuf ;
 
6445
          s2 =  20$tmp_ssuf ;
 
6446
          if(s1 > s2)
 
6447
            return 1;
 
6448
 
 
6449
 ;
 
6450
 return 0;
 
6451
}
 
6452
 
 
6453
_ACEOF
 
6454
rm -f conftest.$ac_objext
 
6455
if { (ac_try="$ac_compile"
 
6456
case "(($ac_try" in
 
6457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6458
  *) ac_try_echo=$ac_try;;
 
6459
esac
 
6460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6461
  (eval "$ac_compile") 2>conftest.er1
 
6462
  ac_status=$?
 
6463
  grep -v '^ *+' conftest.er1 >conftest.err
 
6464
  rm -f conftest.er1
 
6465
  cat conftest.err >&5
 
6466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6467
  (exit $ac_status); } && {
 
6468
         test -z "$ac_c_werror_flag" ||
 
6469
         test ! -s conftest.err
 
6470
       } && test -s conftest.$ac_objext; then
 
6471
 
 
6472
        curl_suffix_curl_off_t="$tmp_ssuf"
 
6473
        curl_suffix_curl_off_tu="$tmp_usuf"
 
6474
 
 
6475
else
 
6476
  echo "$as_me: failed program was:" >&5
 
6477
sed 's/^/| /' conftest.$ac_ext >&5
 
6478
 
 
6479
 
 
6480
fi
 
6481
 
 
6482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6483
    fi
 
6484
  done
 
6485
  IFS=$old_IFS
 
6486
  #
 
6487
  if test "x$curl_suffix_curl_off_t" = "xunknown"; then
 
6488
    { { echo "$as_me:$LINENO: error: cannot find constant suffix string for curl_off_t." >&5
 
6489
echo "$as_me: error: cannot find constant suffix string for curl_off_t." >&2;}
 
6490
   { (exit 1); exit 1; }; }
 
6491
  else
 
6492
    { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_t" >&5
 
6493
echo "${ECHO_T}$curl_suffix_curl_off_t" >&6; }
 
6494
    { echo "$as_me:$LINENO: checking constant suffix string for unsigned curl_off_t" >&5
 
6495
echo $ECHO_N "checking constant suffix string for unsigned curl_off_t... $ECHO_C" >&6; }
 
6496
    { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_tu" >&5
 
6497
echo "${ECHO_T}$curl_suffix_curl_off_tu" >&6; }
 
6498
  fi
 
6499
  #
 
6500
 
 
6501
  #
 
6502
  if test "$x_pull_headers" = "yes"; then
 
6503
    if test "x$ac_cv_header_sys_types_h" = "xyes"; then
 
6504
 
 
6505
cat >>confdefs.h <<_EOF
 
6506
#define CURL_PULL_SYS_TYPES_H 1
 
6507
_EOF
 
6508
 
 
6509
    fi
 
6510
    if test "x$ac_cv_header_stdint_h" = "xyes"; then
 
6511
 
 
6512
cat >>confdefs.h <<_EOF
 
6513
#define CURL_PULL_STDINT_H 1
 
6514
_EOF
 
6515
 
 
6516
    fi
 
6517
    if test "x$ac_cv_header_inttypes_h" = "xyes"; then
 
6518
 
 
6519
cat >>confdefs.h <<_EOF
 
6520
#define CURL_PULL_INTTYPES_H 1
 
6521
_EOF
 
6522
 
 
6523
    fi
 
6524
  fi
 
6525
  #
 
6526
 
 
6527
cat >>confdefs.h <<_EOF
 
6528
#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
 
6529
_EOF
 
6530
 
 
6531
 
 
6532
cat >>confdefs.h <<_EOF
 
6533
#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
 
6534
_EOF
 
6535
 
 
6536
 
 
6537
cat >>confdefs.h <<_EOF
 
6538
#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
 
6539
_EOF
 
6540
 
 
6541
 
 
6542
cat >>confdefs.h <<_EOF
 
6543
#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
 
6544
_EOF
 
6545
 
 
6546
 
 
6547
cat >>confdefs.h <<_EOF
 
6548
#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
 
6549
_EOF
 
6550
 
 
6551
 
 
6552
cat >>confdefs.h <<_EOF
 
6553
#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
 
6554
_EOF
 
6555
 
 
6556
 
 
6557
cat >>confdefs.h <<_EOF
 
6558
#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
 
6559
_EOF
 
6560
 
 
6561
  #
 
6562
 
 
6563
 
 
6564
 
 
6565
 
 
6566
 
 
6567
      { echo "$as_me:$LINENO: checking if OS is AIX (to define _ALL_SOURCE)" >&5
 
6568
echo $ECHO_N "checking if OS is AIX (to define _ALL_SOURCE)... $ECHO_C" >&6; }
 
6569
  cat >conftest.$ac_ext <<_ACEOF
 
6570
/* confdefs.h.  */
 
6571
_ACEOF
 
6572
cat confdefs.h >>conftest.$ac_ext
 
6573
cat >>conftest.$ac_ext <<_ACEOF
 
6574
/* end confdefs.h.  */
 
6575
 
4318
6576
#ifdef _AIX
4319
 
  yes
 
6577
   yes_this_is_aix
4320
6578
#endif
4321
6579
 
4322
6580
_ACEOF
4323
6581
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324
 
  $EGREP "yes" >/dev/null 2>&1; then
4325
 
  { echo "$as_me:$LINENO: result: yes" >&5
 
6582
  $EGREP "yes_this_is_aix" >/dev/null 2>&1; then
 
6583
 
 
6584
    { echo "$as_me:$LINENO: result: yes" >&5
4326
6585
echo "${ECHO_T}yes" >&6; }
4327
 
cat >>confdefs.h <<\_ACEOF
 
6586
    cat >>confdefs.h <<\_ACEOF
4328
6587
#define _ALL_SOURCE 1
4329
6588
_ACEOF
4330
6589
 
 
6590
 
4331
6591
else
4332
 
  { echo "$as_me:$LINENO: result: no" >&5
 
6592
 
 
6593
    { echo "$as_me:$LINENO: result: no" >&5
4333
6594
echo "${ECHO_T}no" >&6; }
 
6595
 
4334
6596
fi
4335
6597
rm -f conftest*
4336
6598
 
4337
6599
 
4338
6600
 
4339
 
ac_ext=c
4340
 
ac_cpp='$CPP $CPPFLAGS'
4341
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
 
if test -n "$ac_tool_prefix"; then
4345
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4346
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4347
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4348
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349
 
if test "${ac_cv_prog_CC+set}" = set; then
4350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4351
 
else
4352
 
  if test -n "$CC"; then
4353
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4354
 
else
4355
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356
 
for as_dir in $PATH
4357
 
do
4358
 
  IFS=$as_save_IFS
4359
 
  test -z "$as_dir" && as_dir=.
4360
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4361
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4363
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364
 
    break 2
4365
 
  fi
4366
 
done
4367
 
done
4368
 
IFS=$as_save_IFS
4369
 
 
4370
 
fi
4371
 
fi
4372
 
CC=$ac_cv_prog_CC
4373
 
if test -n "$CC"; then
4374
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4375
 
echo "${ECHO_T}$CC" >&6; }
4376
 
else
4377
 
  { echo "$as_me:$LINENO: result: no" >&5
4378
 
echo "${ECHO_T}no" >&6; }
4379
 
fi
4380
 
 
4381
 
 
4382
 
fi
4383
 
if test -z "$ac_cv_prog_CC"; then
4384
 
  ac_ct_CC=$CC
4385
 
  # Extract the first word of "gcc", so it can be a program name with args.
4386
 
set dummy gcc; ac_word=$2
4387
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4391
 
else
4392
 
  if test -n "$ac_ct_CC"; then
4393
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394
 
else
4395
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396
 
for as_dir in $PATH
4397
 
do
4398
 
  IFS=$as_save_IFS
4399
 
  test -z "$as_dir" && as_dir=.
4400
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4401
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402
 
    ac_cv_prog_ac_ct_CC="gcc"
4403
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404
 
    break 2
4405
 
  fi
4406
 
done
4407
 
done
4408
 
IFS=$as_save_IFS
4409
 
 
4410
 
fi
4411
 
fi
4412
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413
 
if test -n "$ac_ct_CC"; then
4414
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4415
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
4416
 
else
4417
 
  { echo "$as_me:$LINENO: result: no" >&5
4418
 
echo "${ECHO_T}no" >&6; }
4419
 
fi
4420
 
 
4421
 
  if test "x$ac_ct_CC" = x; then
4422
 
    CC=""
4423
 
  else
4424
 
    case $cross_compiling:$ac_tool_warned in
4425
 
yes:)
4426
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4427
 
whose name does not start with the host triplet.  If you think this
4428
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4429
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4430
 
whose name does not start with the host triplet.  If you think this
4431
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4432
 
ac_tool_warned=yes ;;
4433
 
esac
4434
 
    CC=$ac_ct_CC
4435
 
  fi
4436
 
else
4437
 
  CC="$ac_cv_prog_CC"
4438
 
fi
4439
 
 
4440
 
if test -z "$CC"; then
4441
 
          if test -n "$ac_tool_prefix"; then
4442
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4443
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
4444
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4445
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446
 
if test "${ac_cv_prog_CC+set}" = set; then
4447
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4448
 
else
4449
 
  if test -n "$CC"; then
4450
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4451
 
else
4452
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453
 
for as_dir in $PATH
4454
 
do
4455
 
  IFS=$as_save_IFS
4456
 
  test -z "$as_dir" && as_dir=.
4457
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4458
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4460
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461
 
    break 2
4462
 
  fi
4463
 
done
4464
 
done
4465
 
IFS=$as_save_IFS
4466
 
 
4467
 
fi
4468
 
fi
4469
 
CC=$ac_cv_prog_CC
4470
 
if test -n "$CC"; then
4471
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4472
 
echo "${ECHO_T}$CC" >&6; }
4473
 
else
4474
 
  { echo "$as_me:$LINENO: result: no" >&5
4475
 
echo "${ECHO_T}no" >&6; }
4476
 
fi
4477
 
 
4478
 
 
4479
 
  fi
4480
 
fi
4481
 
if test -z "$CC"; then
4482
 
  # Extract the first word of "cc", so it can be a program name with args.
4483
 
set dummy cc; ac_word=$2
4484
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4485
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486
 
if test "${ac_cv_prog_CC+set}" = set; then
4487
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4488
 
else
4489
 
  if test -n "$CC"; then
4490
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4491
 
else
4492
 
  ac_prog_rejected=no
4493
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494
 
for as_dir in $PATH
4495
 
do
4496
 
  IFS=$as_save_IFS
4497
 
  test -z "$as_dir" && as_dir=.
4498
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4499
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4501
 
       ac_prog_rejected=yes
4502
 
       continue
4503
 
     fi
4504
 
    ac_cv_prog_CC="cc"
4505
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506
 
    break 2
4507
 
  fi
4508
 
done
4509
 
done
4510
 
IFS=$as_save_IFS
4511
 
 
4512
 
if test $ac_prog_rejected = yes; then
4513
 
  # We found a bogon in the path, so make sure we never use it.
4514
 
  set dummy $ac_cv_prog_CC
4515
 
  shift
4516
 
  if test $# != 0; then
4517
 
    # We chose a different compiler from the bogus one.
4518
 
    # However, it has the same basename, so the bogon will be chosen
4519
 
    # first if we set CC to just the basename; use the full file name.
4520
 
    shift
4521
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4522
 
  fi
4523
 
fi
4524
 
fi
4525
 
fi
4526
 
CC=$ac_cv_prog_CC
4527
 
if test -n "$CC"; then
4528
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4529
 
echo "${ECHO_T}$CC" >&6; }
4530
 
else
4531
 
  { echo "$as_me:$LINENO: result: no" >&5
4532
 
echo "${ECHO_T}no" >&6; }
4533
 
fi
4534
 
 
4535
 
 
4536
 
fi
4537
 
if test -z "$CC"; then
4538
 
  if test -n "$ac_tool_prefix"; then
4539
 
  for ac_prog in cl.exe
4540
 
  do
4541
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4544
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545
 
if test "${ac_cv_prog_CC+set}" = set; then
4546
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4547
 
else
4548
 
  if test -n "$CC"; then
4549
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4550
 
else
4551
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552
 
for as_dir in $PATH
4553
 
do
4554
 
  IFS=$as_save_IFS
4555
 
  test -z "$as_dir" && as_dir=.
4556
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4557
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4559
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560
 
    break 2
4561
 
  fi
4562
 
done
4563
 
done
4564
 
IFS=$as_save_IFS
4565
 
 
4566
 
fi
4567
 
fi
4568
 
CC=$ac_cv_prog_CC
4569
 
if test -n "$CC"; then
4570
 
  { echo "$as_me:$LINENO: result: $CC" >&5
4571
 
echo "${ECHO_T}$CC" >&6; }
4572
 
else
4573
 
  { echo "$as_me:$LINENO: result: no" >&5
4574
 
echo "${ECHO_T}no" >&6; }
4575
 
fi
4576
 
 
4577
 
 
4578
 
    test -n "$CC" && break
4579
 
  done
4580
 
fi
4581
 
if test -z "$CC"; then
4582
 
  ac_ct_CC=$CC
4583
 
  for ac_prog in cl.exe
4584
 
do
4585
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4586
 
set dummy $ac_prog; ac_word=$2
4587
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4588
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4591
 
else
4592
 
  if test -n "$ac_ct_CC"; then
4593
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594
 
else
4595
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596
 
for as_dir in $PATH
4597
 
do
4598
 
  IFS=$as_save_IFS
4599
 
  test -z "$as_dir" && as_dir=.
4600
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4601
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4603
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604
 
    break 2
4605
 
  fi
4606
 
done
4607
 
done
4608
 
IFS=$as_save_IFS
4609
 
 
4610
 
fi
4611
 
fi
4612
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613
 
if test -n "$ac_ct_CC"; then
4614
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4615
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
4616
 
else
4617
 
  { echo "$as_me:$LINENO: result: no" >&5
4618
 
echo "${ECHO_T}no" >&6; }
4619
 
fi
4620
 
 
4621
 
 
4622
 
  test -n "$ac_ct_CC" && break
4623
 
done
4624
 
 
4625
 
  if test "x$ac_ct_CC" = x; then
4626
 
    CC=""
4627
 
  else
4628
 
    case $cross_compiling:$ac_tool_warned in
4629
 
yes:)
4630
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4631
 
whose name does not start with the host triplet.  If you think this
4632
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4633
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4634
 
whose name does not start with the host triplet.  If you think this
4635
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4636
 
ac_tool_warned=yes ;;
4637
 
esac
4638
 
    CC=$ac_ct_CC
4639
 
  fi
4640
 
fi
4641
 
 
4642
 
fi
4643
 
 
4644
 
 
4645
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4646
 
See \`config.log' for more details." >&5
4647
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
4648
 
See \`config.log' for more details." >&2;}
4649
 
   { (exit 1); exit 1; }; }
4650
 
 
4651
 
# Provide some information about the compiler.
4652
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
4653
 
ac_compiler=`set X $ac_compile; echo $2`
4654
 
{ (ac_try="$ac_compiler --version >&5"
4655
 
case "(($ac_try" in
4656
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
 
  *) ac_try_echo=$ac_try;;
4658
 
esac
4659
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660
 
  (eval "$ac_compiler --version >&5") 2>&5
4661
 
  ac_status=$?
4662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663
 
  (exit $ac_status); }
4664
 
{ (ac_try="$ac_compiler -v >&5"
4665
 
case "(($ac_try" in
4666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667
 
  *) ac_try_echo=$ac_try;;
4668
 
esac
4669
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670
 
  (eval "$ac_compiler -v >&5") 2>&5
4671
 
  ac_status=$?
4672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673
 
  (exit $ac_status); }
4674
 
{ (ac_try="$ac_compiler -V >&5"
4675
 
case "(($ac_try" in
4676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677
 
  *) ac_try_echo=$ac_try;;
4678
 
esac
4679
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680
 
  (eval "$ac_compiler -V >&5") 2>&5
4681
 
  ac_status=$?
4682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683
 
  (exit $ac_status); }
4684
 
 
4685
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4686
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4687
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4688
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4689
 
else
4690
 
  cat >conftest.$ac_ext <<_ACEOF
4691
 
/* confdefs.h.  */
4692
 
_ACEOF
4693
 
cat confdefs.h >>conftest.$ac_ext
4694
 
cat >>conftest.$ac_ext <<_ACEOF
4695
 
/* end confdefs.h.  */
4696
 
 
4697
 
int
4698
 
main ()
4699
 
{
4700
 
#ifndef __GNUC__
4701
 
       choke me
4702
 
#endif
4703
 
 
4704
 
  ;
4705
 
  return 0;
4706
 
}
4707
 
_ACEOF
4708
 
rm -f conftest.$ac_objext
4709
 
if { (ac_try="$ac_compile"
4710
 
case "(($ac_try" in
4711
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712
 
  *) ac_try_echo=$ac_try;;
4713
 
esac
4714
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715
 
  (eval "$ac_compile") 2>conftest.er1
4716
 
  ac_status=$?
4717
 
  grep -v '^ *+' conftest.er1 >conftest.err
4718
 
  rm -f conftest.er1
4719
 
  cat conftest.err >&5
4720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
 
  (exit $ac_status); } && {
4722
 
         test -z "$ac_c_werror_flag" ||
4723
 
         test ! -s conftest.err
4724
 
       } && test -s conftest.$ac_objext; then
4725
 
  ac_compiler_gnu=yes
4726
 
else
4727
 
  echo "$as_me: failed program was:" >&5
4728
 
sed 's/^/| /' conftest.$ac_ext >&5
4729
 
 
4730
 
        ac_compiler_gnu=no
4731
 
fi
4732
 
 
4733
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4735
 
 
4736
 
fi
4737
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4738
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4739
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
4740
 
ac_test_CFLAGS=${CFLAGS+set}
4741
 
ac_save_CFLAGS=$CFLAGS
4742
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4743
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4744
 
if test "${ac_cv_prog_cc_g+set}" = set; then
4745
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4746
 
else
4747
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4748
 
   ac_c_werror_flag=yes
4749
 
   ac_cv_prog_cc_g=no
4750
 
   CFLAGS="-g"
4751
 
   cat >conftest.$ac_ext <<_ACEOF
4752
 
/* confdefs.h.  */
4753
 
_ACEOF
4754
 
cat confdefs.h >>conftest.$ac_ext
4755
 
cat >>conftest.$ac_ext <<_ACEOF
4756
 
/* end confdefs.h.  */
4757
 
 
4758
 
int
4759
 
main ()
4760
 
{
4761
 
 
4762
 
  ;
4763
 
  return 0;
4764
 
}
4765
 
_ACEOF
4766
 
rm -f conftest.$ac_objext
4767
 
if { (ac_try="$ac_compile"
4768
 
case "(($ac_try" in
4769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770
 
  *) ac_try_echo=$ac_try;;
4771
 
esac
4772
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773
 
  (eval "$ac_compile") 2>conftest.er1
4774
 
  ac_status=$?
4775
 
  grep -v '^ *+' conftest.er1 >conftest.err
4776
 
  rm -f conftest.er1
4777
 
  cat conftest.err >&5
4778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
 
  (exit $ac_status); } && {
4780
 
         test -z "$ac_c_werror_flag" ||
4781
 
         test ! -s conftest.err
4782
 
       } && test -s conftest.$ac_objext; then
4783
 
  ac_cv_prog_cc_g=yes
4784
 
else
4785
 
  echo "$as_me: failed program was:" >&5
4786
 
sed 's/^/| /' conftest.$ac_ext >&5
4787
 
 
4788
 
        CFLAGS=""
4789
 
      cat >conftest.$ac_ext <<_ACEOF
4790
 
/* confdefs.h.  */
4791
 
_ACEOF
4792
 
cat confdefs.h >>conftest.$ac_ext
4793
 
cat >>conftest.$ac_ext <<_ACEOF
4794
 
/* end confdefs.h.  */
4795
 
 
4796
 
int
4797
 
main ()
4798
 
{
4799
 
 
4800
 
  ;
4801
 
  return 0;
4802
 
}
4803
 
_ACEOF
4804
 
rm -f conftest.$ac_objext
4805
 
if { (ac_try="$ac_compile"
4806
 
case "(($ac_try" in
4807
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808
 
  *) ac_try_echo=$ac_try;;
4809
 
esac
4810
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811
 
  (eval "$ac_compile") 2>conftest.er1
4812
 
  ac_status=$?
4813
 
  grep -v '^ *+' conftest.er1 >conftest.err
4814
 
  rm -f conftest.er1
4815
 
  cat conftest.err >&5
4816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
 
  (exit $ac_status); } && {
4818
 
         test -z "$ac_c_werror_flag" ||
4819
 
         test ! -s conftest.err
4820
 
       } && test -s conftest.$ac_objext; then
4821
 
  :
4822
 
else
4823
 
  echo "$as_me: failed program was:" >&5
4824
 
sed 's/^/| /' conftest.$ac_ext >&5
4825
 
 
4826
 
        ac_c_werror_flag=$ac_save_c_werror_flag
4827
 
         CFLAGS="-g"
4828
 
         cat >conftest.$ac_ext <<_ACEOF
4829
 
/* confdefs.h.  */
4830
 
_ACEOF
4831
 
cat confdefs.h >>conftest.$ac_ext
4832
 
cat >>conftest.$ac_ext <<_ACEOF
4833
 
/* end confdefs.h.  */
4834
 
 
4835
 
int
4836
 
main ()
4837
 
{
4838
 
 
4839
 
  ;
4840
 
  return 0;
4841
 
}
4842
 
_ACEOF
4843
 
rm -f conftest.$ac_objext
4844
 
if { (ac_try="$ac_compile"
4845
 
case "(($ac_try" in
4846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847
 
  *) ac_try_echo=$ac_try;;
4848
 
esac
4849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850
 
  (eval "$ac_compile") 2>conftest.er1
4851
 
  ac_status=$?
4852
 
  grep -v '^ *+' conftest.er1 >conftest.err
4853
 
  rm -f conftest.er1
4854
 
  cat conftest.err >&5
4855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856
 
  (exit $ac_status); } && {
4857
 
         test -z "$ac_c_werror_flag" ||
4858
 
         test ! -s conftest.err
4859
 
       } && test -s conftest.$ac_objext; then
4860
 
  ac_cv_prog_cc_g=yes
4861
 
else
4862
 
  echo "$as_me: failed program was:" >&5
4863
 
sed 's/^/| /' conftest.$ac_ext >&5
4864
 
 
4865
 
 
4866
 
fi
4867
 
 
4868
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869
 
fi
4870
 
 
4871
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
 
fi
4873
 
 
4874
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4876
 
fi
4877
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4879
 
if test "$ac_test_CFLAGS" = set; then
4880
 
  CFLAGS=$ac_save_CFLAGS
4881
 
elif test $ac_cv_prog_cc_g = yes; then
4882
 
  if test "$GCC" = yes; then
4883
 
    CFLAGS="-g -O2"
4884
 
  else
4885
 
    CFLAGS="-g"
4886
 
  fi
4887
 
else
4888
 
  if test "$GCC" = yes; then
4889
 
    CFLAGS="-O2"
4890
 
  else
4891
 
    CFLAGS=
4892
 
  fi
4893
 
fi
4894
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4895
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4896
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
4897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4898
 
else
4899
 
  ac_cv_prog_cc_c89=no
4900
 
ac_save_CC=$CC
4901
 
cat >conftest.$ac_ext <<_ACEOF
4902
 
/* confdefs.h.  */
4903
 
_ACEOF
4904
 
cat confdefs.h >>conftest.$ac_ext
4905
 
cat >>conftest.$ac_ext <<_ACEOF
4906
 
/* end confdefs.h.  */
4907
 
#include <stdarg.h>
4908
 
#include <stdio.h>
4909
 
#include <sys/types.h>
4910
 
#include <sys/stat.h>
4911
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4912
 
struct buf { int x; };
4913
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914
 
static char *e (p, i)
4915
 
     char **p;
4916
 
     int i;
4917
 
{
4918
 
  return p[i];
4919
 
}
4920
 
static char *f (char * (*g) (char **, int), char **p, ...)
4921
 
{
4922
 
  char *s;
4923
 
  va_list v;
4924
 
  va_start (v,p);
4925
 
  s = g (p, va_arg (v,int));
4926
 
  va_end (v);
4927
 
  return s;
4928
 
}
4929
 
 
4930
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4931
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4932
 
   These don't provoke an error unfortunately, instead are silently treated
4933
 
   as 'x'.  The following induces an error, until -std is added to get
4934
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4935
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4936
 
   that's true only with -std.  */
4937
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938
 
 
4939
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940
 
   inside strings and character constants.  */
4941
 
#define FOO(x) 'x'
4942
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4943
 
 
4944
 
int test (int i, double x);
4945
 
struct s1 {int (*f) (int a);};
4946
 
struct s2 {int (*f) (double a);};
4947
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4948
 
int argc;
4949
 
char **argv;
4950
 
int
4951
 
main ()
4952
 
{
4953
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4954
 
  ;
4955
 
  return 0;
4956
 
}
4957
 
_ACEOF
4958
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4960
 
do
4961
 
  CC="$ac_save_CC $ac_arg"
4962
 
  rm -f conftest.$ac_objext
4963
 
if { (ac_try="$ac_compile"
4964
 
case "(($ac_try" in
4965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966
 
  *) ac_try_echo=$ac_try;;
4967
 
esac
4968
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969
 
  (eval "$ac_compile") 2>conftest.er1
4970
 
  ac_status=$?
4971
 
  grep -v '^ *+' conftest.er1 >conftest.err
4972
 
  rm -f conftest.er1
4973
 
  cat conftest.err >&5
4974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
 
  (exit $ac_status); } && {
4976
 
         test -z "$ac_c_werror_flag" ||
4977
 
         test ! -s conftest.err
4978
 
       } && test -s conftest.$ac_objext; then
4979
 
  ac_cv_prog_cc_c89=$ac_arg
4980
 
else
4981
 
  echo "$as_me: failed program was:" >&5
4982
 
sed 's/^/| /' conftest.$ac_ext >&5
4983
 
 
4984
 
 
4985
 
fi
4986
 
 
4987
 
rm -f core conftest.err conftest.$ac_objext
4988
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4989
 
done
4990
 
rm -f conftest.$ac_ext
4991
 
CC=$ac_save_CC
4992
 
 
4993
 
fi
4994
 
# AC_CACHE_VAL
4995
 
case "x$ac_cv_prog_cc_c89" in
4996
 
  x)
4997
 
    { echo "$as_me:$LINENO: result: none needed" >&5
4998
 
echo "${ECHO_T}none needed" >&6; } ;;
4999
 
  xno)
5000
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
5001
 
echo "${ECHO_T}unsupported" >&6; } ;;
5002
 
  *)
5003
 
    CC="$CC $ac_cv_prog_cc_c89"
5004
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5005
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5006
 
esac
5007
 
 
5008
 
 
5009
 
ac_ext=c
5010
 
ac_cpp='$CPP $CPPFLAGS'
5011
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
 
 
5015
 
depcc="$CC"   am_compiler_list=
5016
 
 
5017
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5018
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5019
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5020
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5021
 
else
5022
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5023
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5024
 
  # making bogus files that we don't know about and never remove.  For
5025
 
  # instance it was reported that on HP-UX the gcc test will end up
5026
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5027
 
  # in D'.
5028
 
  mkdir conftest.dir
5029
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5030
 
  # using a relative directory.
5031
 
  cp "$am_depcomp" conftest.dir
5032
 
  cd conftest.dir
5033
 
  # We will build objects and dependencies in a subdirectory because
5034
 
  # it helps to detect inapplicable dependency modes.  For instance
5035
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5036
 
  # side effect of compilation, but ICC will put the dependencies in
5037
 
  # the current directory while Tru64 will put them in the object
5038
 
  # directory.
5039
 
  mkdir sub
5040
 
 
5041
 
  am_cv_CC_dependencies_compiler_type=none
5042
 
  if test "$am_compiler_list" = ""; then
5043
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5044
 
  fi
5045
 
  for depmode in $am_compiler_list; do
5046
 
    # Setup a source with many dependencies, because some compilers
5047
 
    # like to wrap large dependency lists on column 80 (with \), and
5048
 
    # we should not choose a depcomp mode which is confused by this.
 
6601
 
5049
6602
    #
5050
 
    # We need to recreate these files for each test, as the compiler may
5051
 
    # overwrite some of them when testing with obscure command lines.
5052
 
    # This happens at least with the AIX C compiler.
5053
 
    : > sub/conftest.c
5054
 
    for i in 1 2 3 4 5 6; do
5055
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5056
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5057
 
      # Solaris 8's {/usr,}/bin/sh.
5058
 
      touch sub/conftst$i.h
5059
 
    done
5060
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5061
 
 
5062
 
    case $depmode in
5063
 
    nosideeffect)
5064
 
      # after this tag, mechanisms are not by side-effect, so they'll
5065
 
      # only be used when explicitly requested
5066
 
      if test "x$enable_dependency_tracking" = xyes; then
5067
 
        continue
5068
 
      else
5069
 
        break
5070
 
      fi
5071
 
      ;;
5072
 
    none) break ;;
5073
 
    esac
5074
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5075
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5076
 
    # handle `-M -o', and we need to detect this.
5077
 
    if depmode=$depmode \
5078
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5079
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5080
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5081
 
         >/dev/null 2>conftest.err &&
5082
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5083
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5084
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5085
 
      # icc doesn't choke on unknown options, it will just issue warnings
5086
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5087
 
      # that says an option was ignored or not supported.
5088
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5089
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5090
 
      # The diagnosis changed in icc 8.0:
5091
 
      #   icc: Command line remark: option '-MP' not supported
5092
 
      if (grep 'ignoring option' conftest.err ||
5093
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5094
 
        am_cv_CC_dependencies_compiler_type=$depmode
5095
 
        break
5096
 
      fi
5097
 
    fi
5098
 
  done
5099
 
 
5100
 
  cd ..
5101
 
  rm -rf conftest.dir
5102
 
else
5103
 
  am_cv_CC_dependencies_compiler_type=none
5104
 
fi
5105
 
 
5106
 
fi
5107
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5108
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5109
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5110
 
 
5111
 
 
5112
 
 
5113
 
if
5114
 
  test "x$enable_dependency_tracking" != xno \
5115
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5116
 
  am__fastdepCC_TRUE=
5117
 
  am__fastdepCC_FALSE='#'
5118
 
else
5119
 
  am__fastdepCC_TRUE='#'
5120
 
  am__fastdepCC_FALSE=
5121
 
fi
5122
 
 
 
6603
  { echo "$as_me:$LINENO: checking if _REENTRANT is already defined" >&5
 
6604
echo $ECHO_N "checking if _REENTRANT is already defined... $ECHO_C" >&6; }
 
6605
  cat >conftest.$ac_ext <<_ACEOF
 
6606
 
 
6607
    /* confdefs.h.  */
 
6608
_ACEOF
 
6609
cat confdefs.h >>conftest.$ac_ext
 
6610
cat >>conftest.$ac_ext <<_ACEOF
 
6611
/* end confdefs.h.  */
 
6612
 
 
6613
 
 
6614
int main (void)
 
6615
{
 
6616
 
 
6617
#ifdef _REENTRANT
 
6618
      int dummy=1;
 
6619
#else
 
6620
      force compilation error
 
6621
#endif
 
6622
 
 
6623
 ;
 
6624
 return 0;
 
6625
}
 
6626
 
 
6627
_ACEOF
 
6628
rm -f conftest.$ac_objext
 
6629
if { (ac_try="$ac_compile"
 
6630
case "(($ac_try" in
 
6631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6632
  *) ac_try_echo=$ac_try;;
 
6633
esac
 
6634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6635
  (eval "$ac_compile") 2>conftest.er1
 
6636
  ac_status=$?
 
6637
  grep -v '^ *+' conftest.er1 >conftest.err
 
6638
  rm -f conftest.er1
 
6639
  cat conftest.err >&5
 
6640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6641
  (exit $ac_status); } && {
 
6642
         test -z "$ac_c_werror_flag" ||
 
6643
         test ! -s conftest.err
 
6644
       } && test -s conftest.$ac_objext; then
 
6645
 
 
6646
    { echo "$as_me:$LINENO: result: yes" >&5
 
6647
echo "${ECHO_T}yes" >&6; }
 
6648
    tmp_reentrant_initially_defined="yes"
 
6649
 
 
6650
else
 
6651
  echo "$as_me: failed program was:" >&5
 
6652
sed 's/^/| /' conftest.$ac_ext >&5
 
6653
 
 
6654
 
 
6655
    { echo "$as_me:$LINENO: result: no" >&5
 
6656
echo "${ECHO_T}no" >&6; }
 
6657
    tmp_reentrant_initially_defined="no"
 
6658
 
 
6659
fi
 
6660
 
 
6661
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6662
  #
 
6663
  if test "$tmp_reentrant_initially_defined" = "no"; then
 
6664
    { echo "$as_me:$LINENO: checking if _REENTRANT is actually needed" >&5
 
6665
echo $ECHO_N "checking if _REENTRANT is actually needed... $ECHO_C" >&6; }
 
6666
 
 
6667
  case $host in
 
6668
    *-*-solaris*)
 
6669
      tmp_need_reentrant="yes"
 
6670
      ;;
 
6671
    *)
 
6672
      tmp_need_reentrant="no"
 
6673
      ;;
 
6674
  esac
 
6675
 
 
6676
    if test "$tmp_need_reentrant" = "no"; then
 
6677
 
 
6678
  if test "$tmp_need_reentrant" = "no"; then
 
6679
 
 
6680
  cat >conftest.$ac_ext <<_ACEOF
 
6681
 
 
6682
    /* confdefs.h.  */
 
6683
_ACEOF
 
6684
cat confdefs.h >>conftest.$ac_ext
 
6685
cat >>conftest.$ac_ext <<_ACEOF
 
6686
/* end confdefs.h.  */
 
6687
 
 
6688
#define gmtime_r innocuous_gmtime_r
 
6689
#ifdef __STDC__
 
6690
# include <limits.h>
 
6691
#else
 
6692
# include <assert.h>
 
6693
#endif
 
6694
#undef gmtime_r
 
6695
#ifdef __cplusplus
 
6696
extern "C"
 
6697
#endif
 
6698
char gmtime_r ();
 
6699
#if defined __stub_gmtime_r || defined __stub___gmtime_r
 
6700
choke me
 
6701
#endif
 
6702
 
 
6703
int main (void)
 
6704
{
 
6705
return gmtime_r ();
 
6706
 ;
 
6707
 return 0;
 
6708
}
 
6709
 
 
6710
_ACEOF
 
6711
rm -f conftest.$ac_objext conftest$ac_exeext
 
6712
if { (ac_try="$ac_link"
 
6713
case "(($ac_try" in
 
6714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6715
  *) ac_try_echo=$ac_try;;
 
6716
esac
 
6717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6718
  (eval "$ac_link") 2>conftest.er1
 
6719
  ac_status=$?
 
6720
  grep -v '^ *+' conftest.er1 >conftest.err
 
6721
  rm -f conftest.er1
 
6722
  cat conftest.err >&5
 
6723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6724
  (exit $ac_status); } && {
 
6725
         test -z "$ac_c_werror_flag" ||
 
6726
         test ! -s conftest.err
 
6727
       } && test -s conftest$ac_exeext &&
 
6728
       $as_test_x conftest$ac_exeext; then
 
6729
 
 
6730
    tmp_gmtime_r="yes"
 
6731
 
 
6732
else
 
6733
  echo "$as_me: failed program was:" >&5
 
6734
sed 's/^/| /' conftest.$ac_ext >&5
 
6735
 
 
6736
 
 
6737
    tmp_gmtime_r="no"
 
6738
 
 
6739
fi
 
6740
 
 
6741
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6742
      conftest$ac_exeext conftest.$ac_ext
 
6743
  if test "$tmp_gmtime_r" = "yes"; then
 
6744
    cat >conftest.$ac_ext <<_ACEOF
 
6745
/* confdefs.h.  */
 
6746
_ACEOF
 
6747
cat confdefs.h >>conftest.$ac_ext
 
6748
cat >>conftest.$ac_ext <<_ACEOF
 
6749
/* end confdefs.h.  */
 
6750
 
 
6751
#include <sys/types.h>
 
6752
#include <time.h>
 
6753
 
 
6754
_ACEOF
 
6755
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6756
  $EGREP "gmtime_r" >/dev/null 2>&1; then
 
6757
 
 
6758
      tmp_gmtime_r="proto_declared"
 
6759
 
 
6760
else
 
6761
 
 
6762
      cat >conftest.$ac_ext <<_ACEOF
 
6763
/* confdefs.h.  */
 
6764
_ACEOF
 
6765
cat confdefs.h >>conftest.$ac_ext
 
6766
cat >>conftest.$ac_ext <<_ACEOF
 
6767
/* end confdefs.h.  */
 
6768
 
 
6769
#define _REENTRANT
 
6770
#include <sys/types.h>
 
6771
#include <time.h>
 
6772
 
 
6773
_ACEOF
 
6774
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6775
  $EGREP "gmtime_r" >/dev/null 2>&1; then
 
6776
 
 
6777
        tmp_gmtime_r="proto_needs_reentrant"
 
6778
        tmp_need_reentrant="yes"
 
6779
 
 
6780
fi
 
6781
rm -f conftest*
 
6782
 
 
6783
 
 
6784
fi
 
6785
rm -f conftest*
 
6786
 
 
6787
  fi
 
6788
 
 
6789
  fi
 
6790
  if test "$tmp_need_reentrant" = "no"; then
 
6791
 
 
6792
  cat >conftest.$ac_ext <<_ACEOF
 
6793
 
 
6794
    /* confdefs.h.  */
 
6795
_ACEOF
 
6796
cat confdefs.h >>conftest.$ac_ext
 
6797
cat >>conftest.$ac_ext <<_ACEOF
 
6798
/* end confdefs.h.  */
 
6799
 
 
6800
#define localtime_r innocuous_localtime_r
 
6801
#ifdef __STDC__
 
6802
# include <limits.h>
 
6803
#else
 
6804
# include <assert.h>
 
6805
#endif
 
6806
#undef localtime_r
 
6807
#ifdef __cplusplus
 
6808
extern "C"
 
6809
#endif
 
6810
char localtime_r ();
 
6811
#if defined __stub_localtime_r || defined __stub___localtime_r
 
6812
choke me
 
6813
#endif
 
6814
 
 
6815
int main (void)
 
6816
{
 
6817
return localtime_r ();
 
6818
 ;
 
6819
 return 0;
 
6820
}
 
6821
 
 
6822
_ACEOF
 
6823
rm -f conftest.$ac_objext conftest$ac_exeext
 
6824
if { (ac_try="$ac_link"
 
6825
case "(($ac_try" in
 
6826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6827
  *) ac_try_echo=$ac_try;;
 
6828
esac
 
6829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6830
  (eval "$ac_link") 2>conftest.er1
 
6831
  ac_status=$?
 
6832
  grep -v '^ *+' conftest.er1 >conftest.err
 
6833
  rm -f conftest.er1
 
6834
  cat conftest.err >&5
 
6835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6836
  (exit $ac_status); } && {
 
6837
         test -z "$ac_c_werror_flag" ||
 
6838
         test ! -s conftest.err
 
6839
       } && test -s conftest$ac_exeext &&
 
6840
       $as_test_x conftest$ac_exeext; then
 
6841
 
 
6842
    tmp_localtime_r="yes"
 
6843
 
 
6844
else
 
6845
  echo "$as_me: failed program was:" >&5
 
6846
sed 's/^/| /' conftest.$ac_ext >&5
 
6847
 
 
6848
 
 
6849
    tmp_localtime_r="no"
 
6850
 
 
6851
fi
 
6852
 
 
6853
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6854
      conftest$ac_exeext conftest.$ac_ext
 
6855
  if test "$tmp_localtime_r" = "yes"; then
 
6856
    cat >conftest.$ac_ext <<_ACEOF
 
6857
/* confdefs.h.  */
 
6858
_ACEOF
 
6859
cat confdefs.h >>conftest.$ac_ext
 
6860
cat >>conftest.$ac_ext <<_ACEOF
 
6861
/* end confdefs.h.  */
 
6862
 
 
6863
#include <sys/types.h>
 
6864
#include <time.h>
 
6865
 
 
6866
_ACEOF
 
6867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6868
  $EGREP "localtime_r" >/dev/null 2>&1; then
 
6869
 
 
6870
      tmp_localtime_r="proto_declared"
 
6871
 
 
6872
else
 
6873
 
 
6874
      cat >conftest.$ac_ext <<_ACEOF
 
6875
/* confdefs.h.  */
 
6876
_ACEOF
 
6877
cat confdefs.h >>conftest.$ac_ext
 
6878
cat >>conftest.$ac_ext <<_ACEOF
 
6879
/* end confdefs.h.  */
 
6880
 
 
6881
#define _REENTRANT
 
6882
#include <sys/types.h>
 
6883
#include <time.h>
 
6884
 
 
6885
_ACEOF
 
6886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6887
  $EGREP "localtime_r" >/dev/null 2>&1; then
 
6888
 
 
6889
        tmp_localtime_r="proto_needs_reentrant"
 
6890
        tmp_need_reentrant="yes"
 
6891
 
 
6892
fi
 
6893
rm -f conftest*
 
6894
 
 
6895
 
 
6896
fi
 
6897
rm -f conftest*
 
6898
 
 
6899
  fi
 
6900
 
 
6901
  fi
 
6902
  if test "$tmp_need_reentrant" = "no"; then
 
6903
 
 
6904
  cat >conftest.$ac_ext <<_ACEOF
 
6905
 
 
6906
    /* confdefs.h.  */
 
6907
_ACEOF
 
6908
cat confdefs.h >>conftest.$ac_ext
 
6909
cat >>conftest.$ac_ext <<_ACEOF
 
6910
/* end confdefs.h.  */
 
6911
 
 
6912
#define strerror_r innocuous_strerror_r
 
6913
#ifdef __STDC__
 
6914
# include <limits.h>
 
6915
#else
 
6916
# include <assert.h>
 
6917
#endif
 
6918
#undef strerror_r
 
6919
#ifdef __cplusplus
 
6920
extern "C"
 
6921
#endif
 
6922
char strerror_r ();
 
6923
#if defined __stub_strerror_r || defined __stub___strerror_r
 
6924
choke me
 
6925
#endif
 
6926
 
 
6927
int main (void)
 
6928
{
 
6929
return strerror_r ();
 
6930
 ;
 
6931
 return 0;
 
6932
}
 
6933
 
 
6934
_ACEOF
 
6935
rm -f conftest.$ac_objext conftest$ac_exeext
 
6936
if { (ac_try="$ac_link"
 
6937
case "(($ac_try" in
 
6938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6939
  *) ac_try_echo=$ac_try;;
 
6940
esac
 
6941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6942
  (eval "$ac_link") 2>conftest.er1
 
6943
  ac_status=$?
 
6944
  grep -v '^ *+' conftest.er1 >conftest.err
 
6945
  rm -f conftest.er1
 
6946
  cat conftest.err >&5
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); } && {
 
6949
         test -z "$ac_c_werror_flag" ||
 
6950
         test ! -s conftest.err
 
6951
       } && test -s conftest$ac_exeext &&
 
6952
       $as_test_x conftest$ac_exeext; then
 
6953
 
 
6954
    tmp_strerror_r="yes"
 
6955
 
 
6956
else
 
6957
  echo "$as_me: failed program was:" >&5
 
6958
sed 's/^/| /' conftest.$ac_ext >&5
 
6959
 
 
6960
 
 
6961
    tmp_strerror_r="no"
 
6962
 
 
6963
fi
 
6964
 
 
6965
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6966
      conftest$ac_exeext conftest.$ac_ext
 
6967
  if test "$tmp_strerror_r" = "yes"; then
 
6968
    cat >conftest.$ac_ext <<_ACEOF
 
6969
/* confdefs.h.  */
 
6970
_ACEOF
 
6971
cat confdefs.h >>conftest.$ac_ext
 
6972
cat >>conftest.$ac_ext <<_ACEOF
 
6973
/* end confdefs.h.  */
 
6974
 
 
6975
#include <sys/types.h>
 
6976
#include <string.h>
 
6977
 
 
6978
_ACEOF
 
6979
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6980
  $EGREP "strerror_r" >/dev/null 2>&1; then
 
6981
 
 
6982
      tmp_strerror_r="proto_declared"
 
6983
 
 
6984
else
 
6985
 
 
6986
      cat >conftest.$ac_ext <<_ACEOF
 
6987
/* confdefs.h.  */
 
6988
_ACEOF
 
6989
cat confdefs.h >>conftest.$ac_ext
 
6990
cat >>conftest.$ac_ext <<_ACEOF
 
6991
/* end confdefs.h.  */
 
6992
 
 
6993
#define _REENTRANT
 
6994
#include <sys/types.h>
 
6995
#include <string.h>
 
6996
 
 
6997
_ACEOF
 
6998
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6999
  $EGREP "strerror_r" >/dev/null 2>&1; then
 
7000
 
 
7001
        tmp_strerror_r="proto_needs_reentrant"
 
7002
        tmp_need_reentrant="yes"
 
7003
 
 
7004
fi
 
7005
rm -f conftest*
 
7006
 
 
7007
 
 
7008
fi
 
7009
rm -f conftest*
 
7010
 
 
7011
  fi
 
7012
 
 
7013
  fi
 
7014
  if test "$tmp_need_reentrant" = "no"; then
 
7015
 
 
7016
  cat >conftest.$ac_ext <<_ACEOF
 
7017
 
 
7018
    /* confdefs.h.  */
 
7019
_ACEOF
 
7020
cat confdefs.h >>conftest.$ac_ext
 
7021
cat >>conftest.$ac_ext <<_ACEOF
 
7022
/* end confdefs.h.  */
 
7023
 
 
7024
#define strtok_r innocuous_strtok_r
 
7025
#ifdef __STDC__
 
7026
# include <limits.h>
 
7027
#else
 
7028
# include <assert.h>
 
7029
#endif
 
7030
#undef strtok_r
 
7031
#ifdef __cplusplus
 
7032
extern "C"
 
7033
#endif
 
7034
char strtok_r ();
 
7035
#if defined __stub_strtok_r || defined __stub___strtok_r
 
7036
choke me
 
7037
#endif
 
7038
 
 
7039
int main (void)
 
7040
{
 
7041
return strtok_r ();
 
7042
 ;
 
7043
 return 0;
 
7044
}
 
7045
 
 
7046
_ACEOF
 
7047
rm -f conftest.$ac_objext conftest$ac_exeext
 
7048
if { (ac_try="$ac_link"
 
7049
case "(($ac_try" in
 
7050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7051
  *) ac_try_echo=$ac_try;;
 
7052
esac
 
7053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7054
  (eval "$ac_link") 2>conftest.er1
 
7055
  ac_status=$?
 
7056
  grep -v '^ *+' conftest.er1 >conftest.err
 
7057
  rm -f conftest.er1
 
7058
  cat conftest.err >&5
 
7059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7060
  (exit $ac_status); } && {
 
7061
         test -z "$ac_c_werror_flag" ||
 
7062
         test ! -s conftest.err
 
7063
       } && test -s conftest$ac_exeext &&
 
7064
       $as_test_x conftest$ac_exeext; then
 
7065
 
 
7066
    tmp_strtok_r="yes"
 
7067
 
 
7068
else
 
7069
  echo "$as_me: failed program was:" >&5
 
7070
sed 's/^/| /' conftest.$ac_ext >&5
 
7071
 
 
7072
 
 
7073
    tmp_strtok_r="no"
 
7074
 
 
7075
fi
 
7076
 
 
7077
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7078
      conftest$ac_exeext conftest.$ac_ext
 
7079
  if test "$tmp_strtok_r" = "yes"; then
 
7080
    cat >conftest.$ac_ext <<_ACEOF
 
7081
/* confdefs.h.  */
 
7082
_ACEOF
 
7083
cat confdefs.h >>conftest.$ac_ext
 
7084
cat >>conftest.$ac_ext <<_ACEOF
 
7085
/* end confdefs.h.  */
 
7086
 
 
7087
#include <sys/types.h>
 
7088
#include <string.h>
 
7089
 
 
7090
_ACEOF
 
7091
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7092
  $EGREP "strtok_r" >/dev/null 2>&1; then
 
7093
 
 
7094
      tmp_strtok_r="proto_declared"
 
7095
 
 
7096
else
 
7097
 
 
7098
      cat >conftest.$ac_ext <<_ACEOF
 
7099
/* confdefs.h.  */
 
7100
_ACEOF
 
7101
cat confdefs.h >>conftest.$ac_ext
 
7102
cat >>conftest.$ac_ext <<_ACEOF
 
7103
/* end confdefs.h.  */
 
7104
 
 
7105
#define _REENTRANT
 
7106
#include <sys/types.h>
 
7107
#include <string.h>
 
7108
 
 
7109
_ACEOF
 
7110
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7111
  $EGREP "strtok_r" >/dev/null 2>&1; then
 
7112
 
 
7113
        tmp_strtok_r="proto_needs_reentrant"
 
7114
        tmp_need_reentrant="yes"
 
7115
 
 
7116
fi
 
7117
rm -f conftest*
 
7118
 
 
7119
 
 
7120
fi
 
7121
rm -f conftest*
 
7122
 
 
7123
  fi
 
7124
 
 
7125
  fi
 
7126
  if test "$tmp_need_reentrant" = "no"; then
 
7127
 
 
7128
  cat >conftest.$ac_ext <<_ACEOF
 
7129
 
 
7130
    /* confdefs.h.  */
 
7131
_ACEOF
 
7132
cat confdefs.h >>conftest.$ac_ext
 
7133
cat >>conftest.$ac_ext <<_ACEOF
 
7134
/* end confdefs.h.  */
 
7135
 
 
7136
#define inet_ntoa_r innocuous_inet_ntoa_r
 
7137
#ifdef __STDC__
 
7138
# include <limits.h>
 
7139
#else
 
7140
# include <assert.h>
 
7141
#endif
 
7142
#undef inet_ntoa_r
 
7143
#ifdef __cplusplus
 
7144
extern "C"
 
7145
#endif
 
7146
char inet_ntoa_r ();
 
7147
#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
 
7148
choke me
 
7149
#endif
 
7150
 
 
7151
int main (void)
 
7152
{
 
7153
return inet_ntoa_r ();
 
7154
 ;
 
7155
 return 0;
 
7156
}
 
7157
 
 
7158
_ACEOF
 
7159
rm -f conftest.$ac_objext conftest$ac_exeext
 
7160
if { (ac_try="$ac_link"
 
7161
case "(($ac_try" in
 
7162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7163
  *) ac_try_echo=$ac_try;;
 
7164
esac
 
7165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7166
  (eval "$ac_link") 2>conftest.er1
 
7167
  ac_status=$?
 
7168
  grep -v '^ *+' conftest.er1 >conftest.err
 
7169
  rm -f conftest.er1
 
7170
  cat conftest.err >&5
 
7171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7172
  (exit $ac_status); } && {
 
7173
         test -z "$ac_c_werror_flag" ||
 
7174
         test ! -s conftest.err
 
7175
       } && test -s conftest$ac_exeext &&
 
7176
       $as_test_x conftest$ac_exeext; then
 
7177
 
 
7178
    tmp_inet_ntoa_r="yes"
 
7179
 
 
7180
else
 
7181
  echo "$as_me: failed program was:" >&5
 
7182
sed 's/^/| /' conftest.$ac_ext >&5
 
7183
 
 
7184
 
 
7185
    tmp_inet_ntoa_r="no"
 
7186
 
 
7187
fi
 
7188
 
 
7189
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7190
      conftest$ac_exeext conftest.$ac_ext
 
7191
  if test "$tmp_inet_ntoa_r" = "yes"; then
 
7192
    cat >conftest.$ac_ext <<_ACEOF
 
7193
/* confdefs.h.  */
 
7194
_ACEOF
 
7195
cat confdefs.h >>conftest.$ac_ext
 
7196
cat >>conftest.$ac_ext <<_ACEOF
 
7197
/* end confdefs.h.  */
 
7198
 
 
7199
#include <sys/types.h>
 
7200
#include <sys/socket.h>
 
7201
#include <netinet/in.h>
 
7202
#include <arpa/inet.h>
 
7203
 
 
7204
_ACEOF
 
7205
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7206
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
 
7207
 
 
7208
      tmp_inet_ntoa_r="proto_declared"
 
7209
 
 
7210
else
 
7211
 
 
7212
      cat >conftest.$ac_ext <<_ACEOF
 
7213
/* confdefs.h.  */
 
7214
_ACEOF
 
7215
cat confdefs.h >>conftest.$ac_ext
 
7216
cat >>conftest.$ac_ext <<_ACEOF
 
7217
/* end confdefs.h.  */
 
7218
 
 
7219
#define _REENTRANT
 
7220
#include <sys/types.h>
 
7221
#include <sys/socket.h>
 
7222
#include <netinet/in.h>
 
7223
#include <arpa/inet.h>
 
7224
 
 
7225
_ACEOF
 
7226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7227
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
 
7228
 
 
7229
        tmp_inet_ntoa_r="proto_needs_reentrant"
 
7230
        tmp_need_reentrant="yes"
 
7231
 
 
7232
fi
 
7233
rm -f conftest*
 
7234
 
 
7235
 
 
7236
fi
 
7237
rm -f conftest*
 
7238
 
 
7239
  fi
 
7240
 
 
7241
  fi
 
7242
  if test "$tmp_need_reentrant" = "no"; then
 
7243
 
 
7244
  cat >conftest.$ac_ext <<_ACEOF
 
7245
 
 
7246
    /* confdefs.h.  */
 
7247
_ACEOF
 
7248
cat confdefs.h >>conftest.$ac_ext
 
7249
cat >>conftest.$ac_ext <<_ACEOF
 
7250
/* end confdefs.h.  */
 
7251
 
 
7252
#define gethostbyaddr_r innocuous_gethostbyaddr_r
 
7253
#ifdef __STDC__
 
7254
# include <limits.h>
 
7255
#else
 
7256
# include <assert.h>
 
7257
#endif
 
7258
#undef gethostbyaddr_r
 
7259
#ifdef __cplusplus
 
7260
extern "C"
 
7261
#endif
 
7262
char gethostbyaddr_r ();
 
7263
#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
 
7264
choke me
 
7265
#endif
 
7266
 
 
7267
int main (void)
 
7268
{
 
7269
return gethostbyaddr_r ();
 
7270
 ;
 
7271
 return 0;
 
7272
}
 
7273
 
 
7274
_ACEOF
 
7275
rm -f conftest.$ac_objext conftest$ac_exeext
 
7276
if { (ac_try="$ac_link"
 
7277
case "(($ac_try" in
 
7278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7279
  *) ac_try_echo=$ac_try;;
 
7280
esac
 
7281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7282
  (eval "$ac_link") 2>conftest.er1
 
7283
  ac_status=$?
 
7284
  grep -v '^ *+' conftest.er1 >conftest.err
 
7285
  rm -f conftest.er1
 
7286
  cat conftest.err >&5
 
7287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7288
  (exit $ac_status); } && {
 
7289
         test -z "$ac_c_werror_flag" ||
 
7290
         test ! -s conftest.err
 
7291
       } && test -s conftest$ac_exeext &&
 
7292
       $as_test_x conftest$ac_exeext; then
 
7293
 
 
7294
    tmp_gethostbyaddr_r="yes"
 
7295
 
 
7296
else
 
7297
  echo "$as_me: failed program was:" >&5
 
7298
sed 's/^/| /' conftest.$ac_ext >&5
 
7299
 
 
7300
 
 
7301
    tmp_gethostbyaddr_r="no"
 
7302
 
 
7303
fi
 
7304
 
 
7305
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7306
      conftest$ac_exeext conftest.$ac_ext
 
7307
  if test "$tmp_gethostbyaddr_r" = "yes"; then
 
7308
    cat >conftest.$ac_ext <<_ACEOF
 
7309
/* confdefs.h.  */
 
7310
_ACEOF
 
7311
cat confdefs.h >>conftest.$ac_ext
 
7312
cat >>conftest.$ac_ext <<_ACEOF
 
7313
/* end confdefs.h.  */
 
7314
 
 
7315
#include <sys/types.h>
 
7316
#include <netdb.h>
 
7317
 
 
7318
_ACEOF
 
7319
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7320
  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
 
7321
 
 
7322
      tmp_gethostbyaddr_r="proto_declared"
 
7323
 
 
7324
else
 
7325
 
 
7326
      cat >conftest.$ac_ext <<_ACEOF
 
7327
/* confdefs.h.  */
 
7328
_ACEOF
 
7329
cat confdefs.h >>conftest.$ac_ext
 
7330
cat >>conftest.$ac_ext <<_ACEOF
 
7331
/* end confdefs.h.  */
 
7332
 
 
7333
#define _REENTRANT
 
7334
#include <sys/types.h>
 
7335
#include <netdb.h>
 
7336
 
 
7337
_ACEOF
 
7338
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7339
  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
 
7340
 
 
7341
        tmp_gethostbyaddr_r="proto_needs_reentrant"
 
7342
        tmp_need_reentrant="yes"
 
7343
 
 
7344
fi
 
7345
rm -f conftest*
 
7346
 
 
7347
 
 
7348
fi
 
7349
rm -f conftest*
 
7350
 
 
7351
  fi
 
7352
 
 
7353
  fi
 
7354
  if test "$tmp_need_reentrant" = "no"; then
 
7355
 
 
7356
  cat >conftest.$ac_ext <<_ACEOF
 
7357
 
 
7358
    /* confdefs.h.  */
 
7359
_ACEOF
 
7360
cat confdefs.h >>conftest.$ac_ext
 
7361
cat >>conftest.$ac_ext <<_ACEOF
 
7362
/* end confdefs.h.  */
 
7363
 
 
7364
#define gethostbyname_r innocuous_gethostbyname_r
 
7365
#ifdef __STDC__
 
7366
# include <limits.h>
 
7367
#else
 
7368
# include <assert.h>
 
7369
#endif
 
7370
#undef gethostbyname_r
 
7371
#ifdef __cplusplus
 
7372
extern "C"
 
7373
#endif
 
7374
char gethostbyname_r ();
 
7375
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
 
7376
choke me
 
7377
#endif
 
7378
 
 
7379
int main (void)
 
7380
{
 
7381
return gethostbyname_r ();
 
7382
 ;
 
7383
 return 0;
 
7384
}
 
7385
 
 
7386
_ACEOF
 
7387
rm -f conftest.$ac_objext conftest$ac_exeext
 
7388
if { (ac_try="$ac_link"
 
7389
case "(($ac_try" in
 
7390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7391
  *) ac_try_echo=$ac_try;;
 
7392
esac
 
7393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7394
  (eval "$ac_link") 2>conftest.er1
 
7395
  ac_status=$?
 
7396
  grep -v '^ *+' conftest.er1 >conftest.err
 
7397
  rm -f conftest.er1
 
7398
  cat conftest.err >&5
 
7399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7400
  (exit $ac_status); } && {
 
7401
         test -z "$ac_c_werror_flag" ||
 
7402
         test ! -s conftest.err
 
7403
       } && test -s conftest$ac_exeext &&
 
7404
       $as_test_x conftest$ac_exeext; then
 
7405
 
 
7406
    tmp_gethostbyname_r="yes"
 
7407
 
 
7408
else
 
7409
  echo "$as_me: failed program was:" >&5
 
7410
sed 's/^/| /' conftest.$ac_ext >&5
 
7411
 
 
7412
 
 
7413
    tmp_gethostbyname_r="no"
 
7414
 
 
7415
fi
 
7416
 
 
7417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7418
      conftest$ac_exeext conftest.$ac_ext
 
7419
  if test "$tmp_gethostbyname_r" = "yes"; then
 
7420
    cat >conftest.$ac_ext <<_ACEOF
 
7421
/* confdefs.h.  */
 
7422
_ACEOF
 
7423
cat confdefs.h >>conftest.$ac_ext
 
7424
cat >>conftest.$ac_ext <<_ACEOF
 
7425
/* end confdefs.h.  */
 
7426
 
 
7427
#include <sys/types.h>
 
7428
#include <netdb.h>
 
7429
 
 
7430
_ACEOF
 
7431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7432
  $EGREP "gethostbyname_r" >/dev/null 2>&1; then
 
7433
 
 
7434
      tmp_gethostbyname_r="proto_declared"
 
7435
 
 
7436
else
 
7437
 
 
7438
      cat >conftest.$ac_ext <<_ACEOF
 
7439
/* confdefs.h.  */
 
7440
_ACEOF
 
7441
cat confdefs.h >>conftest.$ac_ext
 
7442
cat >>conftest.$ac_ext <<_ACEOF
 
7443
/* end confdefs.h.  */
 
7444
 
 
7445
#define _REENTRANT
 
7446
#include <sys/types.h>
 
7447
#include <netdb.h>
 
7448
 
 
7449
_ACEOF
 
7450
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7451
  $EGREP "gethostbyname_r" >/dev/null 2>&1; then
 
7452
 
 
7453
        tmp_gethostbyname_r="proto_needs_reentrant"
 
7454
        tmp_need_reentrant="yes"
 
7455
 
 
7456
fi
 
7457
rm -f conftest*
 
7458
 
 
7459
 
 
7460
fi
 
7461
rm -f conftest*
 
7462
 
 
7463
  fi
 
7464
 
 
7465
  fi
 
7466
  if test "$tmp_need_reentrant" = "no"; then
 
7467
 
 
7468
  cat >conftest.$ac_ext <<_ACEOF
 
7469
 
 
7470
    /* confdefs.h.  */
 
7471
_ACEOF
 
7472
cat confdefs.h >>conftest.$ac_ext
 
7473
cat >>conftest.$ac_ext <<_ACEOF
 
7474
/* end confdefs.h.  */
 
7475
 
 
7476
#define getprotobyname_r innocuous_getprotobyname_r
 
7477
#ifdef __STDC__
 
7478
# include <limits.h>
 
7479
#else
 
7480
# include <assert.h>
 
7481
#endif
 
7482
#undef getprotobyname_r
 
7483
#ifdef __cplusplus
 
7484
extern "C"
 
7485
#endif
 
7486
char getprotobyname_r ();
 
7487
#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
 
7488
choke me
 
7489
#endif
 
7490
 
 
7491
int main (void)
 
7492
{
 
7493
return getprotobyname_r ();
 
7494
 ;
 
7495
 return 0;
 
7496
}
 
7497
 
 
7498
_ACEOF
 
7499
rm -f conftest.$ac_objext conftest$ac_exeext
 
7500
if { (ac_try="$ac_link"
 
7501
case "(($ac_try" in
 
7502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7503
  *) ac_try_echo=$ac_try;;
 
7504
esac
 
7505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7506
  (eval "$ac_link") 2>conftest.er1
 
7507
  ac_status=$?
 
7508
  grep -v '^ *+' conftest.er1 >conftest.err
 
7509
  rm -f conftest.er1
 
7510
  cat conftest.err >&5
 
7511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7512
  (exit $ac_status); } && {
 
7513
         test -z "$ac_c_werror_flag" ||
 
7514
         test ! -s conftest.err
 
7515
       } && test -s conftest$ac_exeext &&
 
7516
       $as_test_x conftest$ac_exeext; then
 
7517
 
 
7518
    tmp_getprotobyname_r="yes"
 
7519
 
 
7520
else
 
7521
  echo "$as_me: failed program was:" >&5
 
7522
sed 's/^/| /' conftest.$ac_ext >&5
 
7523
 
 
7524
 
 
7525
    tmp_getprotobyname_r="no"
 
7526
 
 
7527
fi
 
7528
 
 
7529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7530
      conftest$ac_exeext conftest.$ac_ext
 
7531
  if test "$tmp_getprotobyname_r" = "yes"; then
 
7532
    cat >conftest.$ac_ext <<_ACEOF
 
7533
/* confdefs.h.  */
 
7534
_ACEOF
 
7535
cat confdefs.h >>conftest.$ac_ext
 
7536
cat >>conftest.$ac_ext <<_ACEOF
 
7537
/* end confdefs.h.  */
 
7538
 
 
7539
#include <sys/types.h>
 
7540
#include <netdb.h>
 
7541
 
 
7542
_ACEOF
 
7543
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7544
  $EGREP "getprotobyname_r" >/dev/null 2>&1; then
 
7545
 
 
7546
      tmp_getprotobyname_r="proto_declared"
 
7547
 
 
7548
else
 
7549
 
 
7550
      cat >conftest.$ac_ext <<_ACEOF
 
7551
/* confdefs.h.  */
 
7552
_ACEOF
 
7553
cat confdefs.h >>conftest.$ac_ext
 
7554
cat >>conftest.$ac_ext <<_ACEOF
 
7555
/* end confdefs.h.  */
 
7556
 
 
7557
#define _REENTRANT
 
7558
#include <sys/types.h>
 
7559
#include <netdb.h>
 
7560
 
 
7561
_ACEOF
 
7562
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7563
  $EGREP "getprotobyname_r" >/dev/null 2>&1; then
 
7564
 
 
7565
        tmp_getprotobyname_r="proto_needs_reentrant"
 
7566
        tmp_need_reentrant="yes"
 
7567
 
 
7568
fi
 
7569
rm -f conftest*
 
7570
 
 
7571
 
 
7572
fi
 
7573
rm -f conftest*
 
7574
 
 
7575
  fi
 
7576
 
 
7577
  fi
 
7578
  if test "$tmp_need_reentrant" = "no"; then
 
7579
 
 
7580
  cat >conftest.$ac_ext <<_ACEOF
 
7581
 
 
7582
    /* confdefs.h.  */
 
7583
_ACEOF
 
7584
cat confdefs.h >>conftest.$ac_ext
 
7585
cat >>conftest.$ac_ext <<_ACEOF
 
7586
/* end confdefs.h.  */
 
7587
 
 
7588
#define getservbyport_r innocuous_getservbyport_r
 
7589
#ifdef __STDC__
 
7590
# include <limits.h>
 
7591
#else
 
7592
# include <assert.h>
 
7593
#endif
 
7594
#undef getservbyport_r
 
7595
#ifdef __cplusplus
 
7596
extern "C"
 
7597
#endif
 
7598
char getservbyport_r ();
 
7599
#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
 
7600
choke me
 
7601
#endif
 
7602
 
 
7603
int main (void)
 
7604
{
 
7605
return getservbyport_r ();
 
7606
 ;
 
7607
 return 0;
 
7608
}
 
7609
 
 
7610
_ACEOF
 
7611
rm -f conftest.$ac_objext conftest$ac_exeext
 
7612
if { (ac_try="$ac_link"
 
7613
case "(($ac_try" in
 
7614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7615
  *) ac_try_echo=$ac_try;;
 
7616
esac
 
7617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7618
  (eval "$ac_link") 2>conftest.er1
 
7619
  ac_status=$?
 
7620
  grep -v '^ *+' conftest.er1 >conftest.err
 
7621
  rm -f conftest.er1
 
7622
  cat conftest.err >&5
 
7623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7624
  (exit $ac_status); } && {
 
7625
         test -z "$ac_c_werror_flag" ||
 
7626
         test ! -s conftest.err
 
7627
       } && test -s conftest$ac_exeext &&
 
7628
       $as_test_x conftest$ac_exeext; then
 
7629
 
 
7630
    tmp_getservbyport_r="yes"
 
7631
 
 
7632
else
 
7633
  echo "$as_me: failed program was:" >&5
 
7634
sed 's/^/| /' conftest.$ac_ext >&5
 
7635
 
 
7636
 
 
7637
    tmp_getservbyport_r="no"
 
7638
 
 
7639
fi
 
7640
 
 
7641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7642
      conftest$ac_exeext conftest.$ac_ext
 
7643
  if test "$tmp_getservbyport_r" = "yes"; then
 
7644
    cat >conftest.$ac_ext <<_ACEOF
 
7645
/* confdefs.h.  */
 
7646
_ACEOF
 
7647
cat confdefs.h >>conftest.$ac_ext
 
7648
cat >>conftest.$ac_ext <<_ACEOF
 
7649
/* end confdefs.h.  */
 
7650
 
 
7651
#include <sys/types.h>
 
7652
#include <netdb.h>
 
7653
 
 
7654
_ACEOF
 
7655
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7656
  $EGREP "getservbyport_r" >/dev/null 2>&1; then
 
7657
 
 
7658
      tmp_getservbyport_r="proto_declared"
 
7659
 
 
7660
else
 
7661
 
 
7662
      cat >conftest.$ac_ext <<_ACEOF
 
7663
/* confdefs.h.  */
 
7664
_ACEOF
 
7665
cat confdefs.h >>conftest.$ac_ext
 
7666
cat >>conftest.$ac_ext <<_ACEOF
 
7667
/* end confdefs.h.  */
 
7668
 
 
7669
#define _REENTRANT
 
7670
#include <sys/types.h>
 
7671
#include <netdb.h>
 
7672
 
 
7673
_ACEOF
 
7674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7675
  $EGREP "getservbyport_r" >/dev/null 2>&1; then
 
7676
 
 
7677
        tmp_getservbyport_r="proto_needs_reentrant"
 
7678
        tmp_need_reentrant="yes"
 
7679
 
 
7680
fi
 
7681
rm -f conftest*
 
7682
 
 
7683
 
 
7684
fi
 
7685
rm -f conftest*
 
7686
 
 
7687
  fi
 
7688
 
 
7689
  fi
 
7690
 
 
7691
    fi
 
7692
    if test "$tmp_need_reentrant" = "yes"; then
 
7693
      { echo "$as_me:$LINENO: result: yes" >&5
 
7694
echo "${ECHO_T}yes" >&6; }
 
7695
    else
 
7696
      { echo "$as_me:$LINENO: result: no" >&5
 
7697
echo "${ECHO_T}no" >&6; }
 
7698
    fi
 
7699
  fi
 
7700
  #
 
7701
  { echo "$as_me:$LINENO: checking if _REENTRANT is onwards defined" >&5
 
7702
echo $ECHO_N "checking if _REENTRANT is onwards defined... $ECHO_C" >&6; }
 
7703
  if test "$tmp_reentrant_initially_defined" = "yes" ||
 
7704
    test "$tmp_need_reentrant" = "yes"; then
 
7705
 
 
7706
 
 
7707
cat >>confdefs.h <<\_ACEOF
 
7708
#define NEED_REENTRANT 1
 
7709
_ACEOF
 
7710
 
 
7711
cat >>confdefs.h <<_EOF
 
7712
#ifndef _REENTRANT
 
7713
#  define _REENTRANT
 
7714
#endif
 
7715
_EOF
 
7716
 
 
7717
    { echo "$as_me:$LINENO: result: yes" >&5
 
7718
echo "${ECHO_T}yes" >&6; }
 
7719
  else
 
7720
    { echo "$as_me:$LINENO: result: no" >&5
 
7721
echo "${ECHO_T}no" >&6; }
 
7722
  fi
 
7723
  #
5123
7724
 
5124
7725
 
5125
7726
# Check whether --enable-largefile was given.
5155
7756
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5156
7757
                       && LARGE_OFF_T % 2147483647 == 1)
5157
7758
                      ? 1 : -1];
5158
 
int
5159
 
main ()
 
7759
int main (void)
5160
7760
{
5161
7761
 
5162
 
  ;
5163
 
  return 0;
 
7762
 ;
 
7763
 return 0;
5164
7764
}
5165
7765
_ACEOF
5166
7766
         rm -f conftest.$ac_objext
5249
7849
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250
7850
                       && LARGE_OFF_T % 2147483647 == 1)
5251
7851
                      ? 1 : -1];
5252
 
int
5253
 
main ()
 
7852
int main (void)
5254
7853
{
5255
7854
 
5256
 
  ;
5257
 
  return 0;
 
7855
 ;
 
7856
 return 0;
5258
7857
}
5259
7858
_ACEOF
5260
7859
rm -f conftest.$ac_objext
5299
7898
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300
7899
                       && LARGE_OFF_T % 2147483647 == 1)
5301
7900
                      ? 1 : -1];
5302
 
int
5303
 
main ()
 
7901
int main (void)
5304
7902
{
5305
7903
 
5306
 
  ;
5307
 
  return 0;
 
7904
 ;
 
7905
 return 0;
5308
7906
}
5309
7907
_ACEOF
5310
7908
rm -f conftest.$ac_objext
5370
7968
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5371
7969
                       && LARGE_OFF_T % 2147483647 == 1)
5372
7970
                      ? 1 : -1];
5373
 
int
5374
 
main ()
 
7971
int main (void)
5375
7972
{
5376
7973
 
5377
 
  ;
5378
 
  return 0;
 
7974
 ;
 
7975
 return 0;
5379
7976
}
5380
7977
_ACEOF
5381
7978
rm -f conftest.$ac_objext
5420
8017
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5421
8018
                       && LARGE_OFF_T % 2147483647 == 1)
5422
8019
                      ? 1 : -1];
5423
 
int
5424
 
main ()
 
8020
int main (void)
5425
8021
{
5426
8022
 
5427
 
  ;
5428
 
  return 0;
 
8023
 ;
 
8024
 return 0;
5429
8025
}
5430
8026
_ACEOF
5431
8027
rm -f conftest.$ac_objext
5473
8069
fi
5474
8070
 
5475
8071
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
 
 
5485
 
 
5486
 
 
5487
 
 
5488
 
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
 
{ echo "$as_me:$LINENO: checking if arch-OS host is AMD64-linux (to build static libraries with PIC)" >&5
5494
 
echo $ECHO_N "checking if arch-OS host is AMD64-linux (to build static libraries with PIC)... $ECHO_C" >&6; }
5495
 
case $host in
5496
 
  x86_64*linux*)
 
8072
enable_win32_dll=yes
 
8073
 
 
8074
case $host in
 
8075
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8076
  if test -n "$ac_tool_prefix"; then
 
8077
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
8078
set dummy ${ac_tool_prefix}as; ac_word=$2
 
8079
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8080
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8081
if test "${ac_cv_prog_AS+set}" = set; then
 
8082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8083
else
 
8084
  if test -n "$AS"; then
 
8085
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
8086
else
 
8087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8088
for as_dir in $PATH
 
8089
do
 
8090
  IFS=$as_save_IFS
 
8091
  test -z "$as_dir" && as_dir=.
 
8092
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8093
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8094
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
8095
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8096
    break 2
 
8097
  fi
 
8098
done
 
8099
done
 
8100
IFS=$as_save_IFS
 
8101
 
 
8102
fi
 
8103
fi
 
8104
AS=$ac_cv_prog_AS
 
8105
if test -n "$AS"; then
 
8106
  { echo "$as_me:$LINENO: result: $AS" >&5
 
8107
echo "${ECHO_T}$AS" >&6; }
 
8108
else
 
8109
  { echo "$as_me:$LINENO: result: no" >&5
 
8110
echo "${ECHO_T}no" >&6; }
 
8111
fi
 
8112
 
 
8113
 
 
8114
fi
 
8115
if test -z "$ac_cv_prog_AS"; then
 
8116
  ac_ct_AS=$AS
 
8117
  # Extract the first word of "as", so it can be a program name with args.
 
8118
set dummy as; ac_word=$2
 
8119
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8120
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8121
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
8122
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8123
else
 
8124
  if test -n "$ac_ct_AS"; then
 
8125
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
8126
else
 
8127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8128
for as_dir in $PATH
 
8129
do
 
8130
  IFS=$as_save_IFS
 
8131
  test -z "$as_dir" && as_dir=.
 
8132
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8133
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8134
    ac_cv_prog_ac_ct_AS="as"
 
8135
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8136
    break 2
 
8137
  fi
 
8138
done
 
8139
done
 
8140
IFS=$as_save_IFS
 
8141
 
 
8142
fi
 
8143
fi
 
8144
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
8145
if test -n "$ac_ct_AS"; then
 
8146
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
8147
echo "${ECHO_T}$ac_ct_AS" >&6; }
 
8148
else
 
8149
  { echo "$as_me:$LINENO: result: no" >&5
 
8150
echo "${ECHO_T}no" >&6; }
 
8151
fi
 
8152
 
 
8153
  if test "x$ac_ct_AS" = x; then
 
8154
    AS="false"
 
8155
  else
 
8156
    case $cross_compiling:$ac_tool_warned in
 
8157
yes:)
 
8158
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8159
whose name does not start with the host triplet.  If you think this
 
8160
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8161
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8162
whose name does not start with the host triplet.  If you think this
 
8163
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8164
ac_tool_warned=yes ;;
 
8165
esac
 
8166
    AS=$ac_ct_AS
 
8167
  fi
 
8168
else
 
8169
  AS="$ac_cv_prog_AS"
 
8170
fi
 
8171
 
 
8172
  if test -n "$ac_tool_prefix"; then
 
8173
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
8174
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
8175
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8176
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8177
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
8178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8179
else
 
8180
  if test -n "$DLLTOOL"; then
 
8181
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
8182
else
 
8183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8184
for as_dir in $PATH
 
8185
do
 
8186
  IFS=$as_save_IFS
 
8187
  test -z "$as_dir" && as_dir=.
 
8188
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8189
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8190
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
8191
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8192
    break 2
 
8193
  fi
 
8194
done
 
8195
done
 
8196
IFS=$as_save_IFS
 
8197
 
 
8198
fi
 
8199
fi
 
8200
DLLTOOL=$ac_cv_prog_DLLTOOL
 
8201
if test -n "$DLLTOOL"; then
 
8202
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
8203
echo "${ECHO_T}$DLLTOOL" >&6; }
 
8204
else
 
8205
  { echo "$as_me:$LINENO: result: no" >&5
 
8206
echo "${ECHO_T}no" >&6; }
 
8207
fi
 
8208
 
 
8209
 
 
8210
fi
 
8211
if test -z "$ac_cv_prog_DLLTOOL"; then
 
8212
  ac_ct_DLLTOOL=$DLLTOOL
 
8213
  # Extract the first word of "dlltool", so it can be a program name with args.
 
8214
set dummy dlltool; ac_word=$2
 
8215
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8217
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
8218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8219
else
 
8220
  if test -n "$ac_ct_DLLTOOL"; then
 
8221
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
8222
else
 
8223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8224
for as_dir in $PATH
 
8225
do
 
8226
  IFS=$as_save_IFS
 
8227
  test -z "$as_dir" && as_dir=.
 
8228
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8229
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8230
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
8231
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8232
    break 2
 
8233
  fi
 
8234
done
 
8235
done
 
8236
IFS=$as_save_IFS
 
8237
 
 
8238
fi
 
8239
fi
 
8240
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
8241
if test -n "$ac_ct_DLLTOOL"; then
 
8242
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
8243
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
 
8244
else
 
8245
  { echo "$as_me:$LINENO: result: no" >&5
 
8246
echo "${ECHO_T}no" >&6; }
 
8247
fi
 
8248
 
 
8249
  if test "x$ac_ct_DLLTOOL" = x; then
 
8250
    DLLTOOL="false"
 
8251
  else
 
8252
    case $cross_compiling:$ac_tool_warned in
 
8253
yes:)
 
8254
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8255
whose name does not start with the host triplet.  If you think this
 
8256
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8257
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8258
whose name does not start with the host triplet.  If you think this
 
8259
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8260
ac_tool_warned=yes ;;
 
8261
esac
 
8262
    DLLTOOL=$ac_ct_DLLTOOL
 
8263
  fi
 
8264
else
 
8265
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
8266
fi
 
8267
 
 
8268
  if test -n "$ac_tool_prefix"; then
 
8269
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
8270
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
8271
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8272
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8273
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
8274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8275
else
 
8276
  if test -n "$OBJDUMP"; then
 
8277
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
8278
else
 
8279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8280
for as_dir in $PATH
 
8281
do
 
8282
  IFS=$as_save_IFS
 
8283
  test -z "$as_dir" && as_dir=.
 
8284
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8285
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8286
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
8287
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8288
    break 2
 
8289
  fi
 
8290
done
 
8291
done
 
8292
IFS=$as_save_IFS
 
8293
 
 
8294
fi
 
8295
fi
 
8296
OBJDUMP=$ac_cv_prog_OBJDUMP
 
8297
if test -n "$OBJDUMP"; then
 
8298
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
8299
echo "${ECHO_T}$OBJDUMP" >&6; }
 
8300
else
 
8301
  { echo "$as_me:$LINENO: result: no" >&5
 
8302
echo "${ECHO_T}no" >&6; }
 
8303
fi
 
8304
 
 
8305
 
 
8306
fi
 
8307
if test -z "$ac_cv_prog_OBJDUMP"; then
 
8308
  ac_ct_OBJDUMP=$OBJDUMP
 
8309
  # Extract the first word of "objdump", so it can be a program name with args.
 
8310
set dummy objdump; ac_word=$2
 
8311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8313
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
8314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8315
else
 
8316
  if test -n "$ac_ct_OBJDUMP"; then
 
8317
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
8318
else
 
8319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8320
for as_dir in $PATH
 
8321
do
 
8322
  IFS=$as_save_IFS
 
8323
  test -z "$as_dir" && as_dir=.
 
8324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8326
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
8327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8328
    break 2
 
8329
  fi
 
8330
done
 
8331
done
 
8332
IFS=$as_save_IFS
 
8333
 
 
8334
fi
 
8335
fi
 
8336
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
8337
if test -n "$ac_ct_OBJDUMP"; then
 
8338
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
8339
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
8340
else
 
8341
  { echo "$as_me:$LINENO: result: no" >&5
 
8342
echo "${ECHO_T}no" >&6; }
 
8343
fi
 
8344
 
 
8345
  if test "x$ac_ct_OBJDUMP" = x; then
 
8346
    OBJDUMP="false"
 
8347
  else
 
8348
    case $cross_compiling:$ac_tool_warned in
 
8349
yes:)
 
8350
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8351
whose name does not start with the host triplet.  If you think this
 
8352
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8353
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8354
whose name does not start with the host triplet.  If you think this
 
8355
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8356
ac_tool_warned=yes ;;
 
8357
esac
 
8358
    OBJDUMP=$ac_ct_OBJDUMP
 
8359
  fi
 
8360
else
 
8361
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
8362
fi
 
8363
 
 
8364
  ;;
 
8365
esac
 
8366
 
 
8367
test -z "$AS" && AS=as
 
8368
 
 
8369
 
 
8370
 
 
8371
 
 
8372
 
 
8373
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8374
 
 
8375
 
 
8376
 
 
8377
 
 
8378
 
 
8379
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8380
 
 
8381
 
 
8382
 
 
8383
 
 
8384
 
 
8385
 
 
8386
 
 
8387
 
 
8388
 
 
8389
squeeze() {
 
8390
  _sqz_result=""
 
8391
  eval _sqz_input=\$$1
 
8392
  for _sqz_token in $_sqz_input; do
 
8393
    if test -z "$_sqz_result"; then
 
8394
      _sqz_result="$_sqz_token"
 
8395
    else
 
8396
      _sqz_result="$_sqz_result $_sqz_token"
 
8397
    fi
 
8398
  done
 
8399
  eval $1=\$_sqz_result
 
8400
  return 0
 
8401
}
 
8402
 
 
8403
 
 
8404
        #
 
8405
  if test "$want_debug" = "yes"; then
 
8406
    CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
 
8407
    squeeze CPPFLAGS
 
8408
  fi
 
8409
  #
 
8410
 
 
8411
 
 
8412
{ echo "$as_me:$LINENO: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5
 
8413
echo $ECHO_N "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... $ECHO_C" >&6; }
 
8414
case $host in
 
8415
  x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
5497
8416
    { echo "$as_me:$LINENO: result: yes" >&5
5498
8417
echo "${ECHO_T}yes" >&6; }
5499
8418
    with_pic=yes
5504
8423
    ;;
5505
8424
esac
5506
8425
 
5507
 
# Check whether --enable-shared was given.
5508
 
if test "${enable_shared+set}" = set; then
5509
 
  enableval=$enable_shared; p=${PACKAGE-default}
5510
 
    case $enableval in
5511
 
    yes) enable_shared=yes ;;
5512
 
    no) enable_shared=no ;;
5513
 
    *)
5514
 
      enable_shared=no
5515
 
      # Look at the argument we got.  We use all the common list separators.
5516
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5517
 
      for pkg in $enableval; do
5518
 
        IFS="$lt_save_ifs"
5519
 
        if test "X$pkg" = "X$p"; then
5520
 
          enable_shared=yes
5521
 
        fi
5522
 
      done
5523
 
      IFS="$lt_save_ifs"
5524
 
      ;;
5525
 
    esac
5526
 
else
5527
 
  enable_shared=yes
5528
 
fi
5529
 
 
5530
 
 
5531
 
# Check whether --enable-static was given.
5532
 
if test "${enable_static+set}" = set; then
5533
 
  enableval=$enable_static; p=${PACKAGE-default}
5534
 
    case $enableval in
5535
 
    yes) enable_static=yes ;;
5536
 
    no) enable_static=no ;;
5537
 
    *)
5538
 
     enable_static=no
5539
 
      # Look at the argument we got.  We use all the common list separators.
5540
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5541
 
      for pkg in $enableval; do
5542
 
        IFS="$lt_save_ifs"
5543
 
        if test "X$pkg" = "X$p"; then
5544
 
          enable_static=yes
5545
 
        fi
5546
 
      done
5547
 
      IFS="$lt_save_ifs"
5548
 
      ;;
5549
 
    esac
5550
 
else
5551
 
  enable_static=yes
5552
 
fi
5553
 
 
5554
 
 
5555
 
# Check whether --enable-fast-install was given.
5556
 
if test "${enable_fast_install+set}" = set; then
5557
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
5558
 
    case $enableval in
5559
 
    yes) enable_fast_install=yes ;;
5560
 
    no) enable_fast_install=no ;;
5561
 
    *)
5562
 
      enable_fast_install=no
5563
 
      # Look at the argument we got.  We use all the common list separators.
5564
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5565
 
      for pkg in $enableval; do
5566
 
        IFS="$lt_save_ifs"
5567
 
        if test "X$pkg" = "X$p"; then
5568
 
          enable_fast_install=yes
5569
 
        fi
5570
 
      done
5571
 
      IFS="$lt_save_ifs"
5572
 
      ;;
5573
 
    esac
5574
 
else
5575
 
  enable_fast_install=yes
5576
 
fi
5577
 
 
 
8426
case `pwd` in
 
8427
  *\ * | *\     *)
 
8428
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
8429
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
8430
esac
 
8431
 
 
8432
 
 
8433
 
 
8434
macro_version='2.2.6'
 
8435
macro_revision='1.3012'
 
8436
 
 
8437
 
 
8438
 
 
8439
 
 
8440
 
 
8441
 
 
8442
 
 
8443
 
 
8444
 
 
8445
 
 
8446
 
 
8447
 
 
8448
 
 
8449
ltmain="$ac_aux_dir/ltmain.sh"
5578
8450
 
5579
8451
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5580
8452
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5581
 
if test "${lt_cv_path_SED+set}" = set; then
5582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5583
 
else
5584
 
  # Loop through the user's path and test for sed and gsed.
5585
 
# Then use that list of sed's as ones to test for truncation.
 
8453
if test "${ac_cv_path_SED+set}" = set; then
 
8454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8455
else
 
8456
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
8457
     for ac_i in 1 2 3 4 5 6 7; do
 
8458
       ac_script="$ac_script$as_nl$ac_script"
 
8459
     done
 
8460
     echo "$ac_script" | sed 99q >conftest.sed
 
8461
     $as_unset ac_script || ac_script=
 
8462
     # Extract the first word of "sed gsed" to use in msg output
 
8463
if test -z "$SED"; then
 
8464
set dummy sed gsed; ac_prog_name=$2
 
8465
if test "${ac_cv_path_SED+set}" = set; then
 
8466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8467
else
 
8468
  ac_path_SED_found=false
 
8469
# Loop through the user's path and test for each of PROGNAME-LIST
5586
8470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587
8471
for as_dir in $PATH
5588
8472
do
5589
8473
  IFS=$as_save_IFS
5590
8474
  test -z "$as_dir" && as_dir=.
5591
 
  for lt_ac_prog in sed gsed; do
5592
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5593
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5594
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5595
 
      fi
5596
 
    done
5597
 
  done
5598
 
done
5599
 
IFS=$as_save_IFS
5600
 
lt_ac_max=0
5601
 
lt_ac_count=0
5602
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5603
 
# along with /bin/sed that truncates output.
5604
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5605
 
  test ! -f $lt_ac_sed && continue
5606
 
  cat /dev/null > conftest.in
5607
 
  lt_ac_count=0
5608
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5609
 
  # Check for GNU sed and select it if it is found.
5610
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5611
 
    lt_cv_path_SED=$lt_ac_sed
5612
 
    break
5613
 
  fi
5614
 
  while true; do
5615
 
    cat conftest.in conftest.in >conftest.tmp
5616
 
    mv conftest.tmp conftest.in
5617
 
    cp conftest.in conftest.nl
5618
 
    echo >>conftest.nl
5619
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5620
 
    cmp -s conftest.out conftest.nl || break
5621
 
    # 10000 chars as input seems more than enough
5622
 
    test $lt_ac_count -gt 10 && break
5623
 
    lt_ac_count=`expr $lt_ac_count + 1`
5624
 
    if test $lt_ac_count -gt $lt_ac_max; then
5625
 
      lt_ac_max=$lt_ac_count
5626
 
      lt_cv_path_SED=$lt_ac_sed
5627
 
    fi
5628
 
  done
5629
 
done
5630
 
 
5631
 
fi
5632
 
 
5633
 
SED=$lt_cv_path_SED
5634
 
 
5635
 
{ echo "$as_me:$LINENO: result: $SED" >&5
5636
 
echo "${ECHO_T}$SED" >&6; }
 
8475
  for ac_prog in sed gsed; do
 
8476
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8477
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
8478
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
8479
    # Check for GNU ac_path_SED and select it if it is found.
 
8480
  # Check for GNU $ac_path_SED
 
8481
case `"$ac_path_SED" --version 2>&1` in
 
8482
*GNU*)
 
8483
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
8484
*)
 
8485
  ac_count=0
 
8486
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
8487
  while :
 
8488
  do
 
8489
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
8490
    mv "conftest.tmp" "conftest.in"
 
8491
    cp "conftest.in" "conftest.nl"
 
8492
    echo '' >> "conftest.nl"
 
8493
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
8494
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
8495
    ac_count=`expr $ac_count + 1`
 
8496
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
8497
      # Best one so far, save it but keep looking for a better one
 
8498
      ac_cv_path_SED="$ac_path_SED"
 
8499
      ac_path_SED_max=$ac_count
 
8500
    fi
 
8501
    # 10*(2^10) chars as input seems more than enough
 
8502
    test $ac_count -gt 10 && break
 
8503
  done
 
8504
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
8505
esac
 
8506
 
 
8507
 
 
8508
    $ac_path_SED_found && break 3
 
8509
  done
 
8510
done
 
8511
 
 
8512
done
 
8513
IFS=$as_save_IFS
 
8514
 
 
8515
 
 
8516
fi
 
8517
 
 
8518
SED="$ac_cv_path_SED"
 
8519
if test -z "$SED"; then
 
8520
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
8521
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
8522
   { (exit 1); exit 1; }; }
 
8523
fi
 
8524
 
 
8525
else
 
8526
  ac_cv_path_SED=$SED
 
8527
fi
 
8528
 
 
8529
fi
 
8530
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
8531
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
8532
 SED="$ac_cv_path_SED"
 
8533
  rm -f conftest.sed
 
8534
 
 
8535
test -z "$SED" && SED=sed
 
8536
Xsed="$SED -e 1s/^X//"
 
8537
 
 
8538
 
 
8539
 
 
8540
 
 
8541
 
 
8542
 
 
8543
 
 
8544
 
 
8545
 
 
8546
 
 
8547
 
 
8548
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
8549
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
8550
if test "${ac_cv_path_FGREP+set}" = set; then
 
8551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8552
else
 
8553
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
8554
   then ac_cv_path_FGREP="$GREP -F"
 
8555
   else
 
8556
     # Extract the first word of "fgrep" to use in msg output
 
8557
if test -z "$FGREP"; then
 
8558
set dummy fgrep; ac_prog_name=$2
 
8559
if test "${ac_cv_path_FGREP+set}" = set; then
 
8560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8561
else
 
8562
  ac_path_FGREP_found=false
 
8563
# Loop through the user's path and test for each of PROGNAME-LIST
 
8564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8565
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
8566
do
 
8567
  IFS=$as_save_IFS
 
8568
  test -z "$as_dir" && as_dir=.
 
8569
  for ac_prog in fgrep; do
 
8570
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8571
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
8572
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
8573
    # Check for GNU ac_path_FGREP and select it if it is found.
 
8574
  # Check for GNU $ac_path_FGREP
 
8575
case `"$ac_path_FGREP" --version 2>&1` in
 
8576
*GNU*)
 
8577
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
8578
*)
 
8579
  ac_count=0
 
8580
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
8581
  while :
 
8582
  do
 
8583
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
8584
    mv "conftest.tmp" "conftest.in"
 
8585
    cp "conftest.in" "conftest.nl"
 
8586
    echo 'FGREP' >> "conftest.nl"
 
8587
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
8588
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
8589
    ac_count=`expr $ac_count + 1`
 
8590
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
8591
      # Best one so far, save it but keep looking for a better one
 
8592
      ac_cv_path_FGREP="$ac_path_FGREP"
 
8593
      ac_path_FGREP_max=$ac_count
 
8594
    fi
 
8595
    # 10*(2^10) chars as input seems more than enough
 
8596
    test $ac_count -gt 10 && break
 
8597
  done
 
8598
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
8599
esac
 
8600
 
 
8601
 
 
8602
    $ac_path_FGREP_found && break 3
 
8603
  done
 
8604
done
 
8605
 
 
8606
done
 
8607
IFS=$as_save_IFS
 
8608
 
 
8609
 
 
8610
fi
 
8611
 
 
8612
FGREP="$ac_cv_path_FGREP"
 
8613
if test -z "$FGREP"; then
 
8614
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
8615
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
8616
   { (exit 1); exit 1; }; }
 
8617
fi
 
8618
 
 
8619
else
 
8620
  ac_cv_path_FGREP=$FGREP
 
8621
fi
 
8622
 
 
8623
 
 
8624
   fi
 
8625
fi
 
8626
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
8627
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
8628
 FGREP="$ac_cv_path_FGREP"
 
8629
 
 
8630
 
 
8631
test -z "$GREP" && GREP=grep
 
8632
 
 
8633
 
 
8634
 
 
8635
 
 
8636
 
 
8637
 
 
8638
 
 
8639
 
 
8640
 
 
8641
 
 
8642
 
 
8643
 
 
8644
 
 
8645
 
 
8646
 
 
8647
 
 
8648
 
5637
8649
 
5638
8650
 
5639
8651
# Check whether --with-gnu-ld was given.
5660
8672
    [\\/]* | ?:[\\/]*)
5661
8673
      re_direlt='/[^/][^/]*/\.\./'
5662
8674
      # Canonicalize the pathname of ld
5663
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5664
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5665
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
8675
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
8676
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
8677
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5666
8678
      done
5667
8679
      test -z "$LD" && LD="$ac_prog"
5668
8680
      ;;
5742
8754
with_gnu_ld=$lt_cv_prog_gnu_ld
5743
8755
 
5744
8756
 
5745
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5746
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5747
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5748
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5749
 
else
5750
 
  lt_cv_ld_reload_flag='-r'
5751
 
fi
5752
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5753
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5754
 
reload_flag=$lt_cv_ld_reload_flag
5755
 
case $reload_flag in
5756
 
"" | " "*) ;;
5757
 
*) reload_flag=" $reload_flag" ;;
5758
 
esac
5759
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5760
 
case $host_os in
5761
 
  darwin*)
5762
 
    if test "$GCC" = yes; then
5763
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5764
 
    else
5765
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5766
 
    fi
5767
 
    ;;
5768
 
esac
5769
 
 
5770
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5771
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
8757
 
 
8758
 
 
8759
 
 
8760
 
 
8761
 
 
8762
 
 
8763
 
 
8764
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
8765
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5772
8766
if test "${lt_cv_path_NM+set}" = set; then
5773
8767
  echo $ECHO_N "(cached) $ECHO_C" >&6
5774
8768
else
5813
8807
    done
5814
8808
    IFS="$lt_save_ifs"
5815
8809
  done
5816
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
8810
  : ${lt_cv_path_NM=no}
5817
8811
fi
5818
8812
fi
5819
8813
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5820
8814
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5821
 
NM="$lt_cv_path_NM"
 
8815
if test "$lt_cv_path_NM" != "no"; then
 
8816
  NM="$lt_cv_path_NM"
 
8817
else
 
8818
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
8819
  if test -n "$ac_tool_prefix"; then
 
8820
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
8821
  do
 
8822
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
8823
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
8824
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8825
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8826
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
8827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8828
else
 
8829
  if test -n "$DUMPBIN"; then
 
8830
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
8831
else
 
8832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8833
for as_dir in $PATH
 
8834
do
 
8835
  IFS=$as_save_IFS
 
8836
  test -z "$as_dir" && as_dir=.
 
8837
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8839
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
8840
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8841
    break 2
 
8842
  fi
 
8843
done
 
8844
done
 
8845
IFS=$as_save_IFS
 
8846
 
 
8847
fi
 
8848
fi
 
8849
DUMPBIN=$ac_cv_prog_DUMPBIN
 
8850
if test -n "$DUMPBIN"; then
 
8851
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
8852
echo "${ECHO_T}$DUMPBIN" >&6; }
 
8853
else
 
8854
  { echo "$as_me:$LINENO: result: no" >&5
 
8855
echo "${ECHO_T}no" >&6; }
 
8856
fi
 
8857
 
 
8858
 
 
8859
    test -n "$DUMPBIN" && break
 
8860
  done
 
8861
fi
 
8862
if test -z "$DUMPBIN"; then
 
8863
  ac_ct_DUMPBIN=$DUMPBIN
 
8864
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
8865
do
 
8866
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8867
set dummy $ac_prog; ac_word=$2
 
8868
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8870
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
8871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8872
else
 
8873
  if test -n "$ac_ct_DUMPBIN"; then
 
8874
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
8875
else
 
8876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8877
for as_dir in $PATH
 
8878
do
 
8879
  IFS=$as_save_IFS
 
8880
  test -z "$as_dir" && as_dir=.
 
8881
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8882
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8883
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
8884
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8885
    break 2
 
8886
  fi
 
8887
done
 
8888
done
 
8889
IFS=$as_save_IFS
 
8890
 
 
8891
fi
 
8892
fi
 
8893
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
8894
if test -n "$ac_ct_DUMPBIN"; then
 
8895
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
8896
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
8897
else
 
8898
  { echo "$as_me:$LINENO: result: no" >&5
 
8899
echo "${ECHO_T}no" >&6; }
 
8900
fi
 
8901
 
 
8902
 
 
8903
  test -n "$ac_ct_DUMPBIN" && break
 
8904
done
 
8905
 
 
8906
  if test "x$ac_ct_DUMPBIN" = x; then
 
8907
    DUMPBIN=":"
 
8908
  else
 
8909
    case $cross_compiling:$ac_tool_warned in
 
8910
yes:)
 
8911
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8912
whose name does not start with the host triplet.  If you think this
 
8913
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8914
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8915
whose name does not start with the host triplet.  If you think this
 
8916
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8917
ac_tool_warned=yes ;;
 
8918
esac
 
8919
    DUMPBIN=$ac_ct_DUMPBIN
 
8920
  fi
 
8921
fi
 
8922
 
 
8923
 
 
8924
  if test "$DUMPBIN" != ":"; then
 
8925
    NM="$DUMPBIN"
 
8926
  fi
 
8927
fi
 
8928
test -z "$NM" && NM=nm
 
8929
 
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
 
 
8935
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
8936
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
8937
if test "${lt_cv_nm_interface+set}" = set; then
 
8938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8939
else
 
8940
  lt_cv_nm_interface="BSD nm"
 
8941
  echo "int some_variable = 0;" > conftest.$ac_ext
 
8942
  (eval echo "\"\$as_me:8942: $ac_compile\"" >&5)
 
8943
  (eval "$ac_compile" 2>conftest.err)
 
8944
  cat conftest.err >&5
 
8945
  (eval echo "\"\$as_me:8945: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
8946
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
8947
  cat conftest.err >&5
 
8948
  (eval echo "\"\$as_me:8948: output\"" >&5)
 
8949
  cat conftest.out >&5
 
8950
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
8951
    lt_cv_nm_interface="MS dumpbin"
 
8952
  fi
 
8953
  rm -f conftest*
 
8954
fi
 
8955
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
8956
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5822
8957
 
5823
8958
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5824
8959
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5831
8966
echo "${ECHO_T}no, using $LN_S" >&6; }
5832
8967
fi
5833
8968
 
 
8969
# find the maximum length of command line arguments
 
8970
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
8971
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
8972
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
8973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8974
else
 
8975
    i=0
 
8976
  teststring="ABCD"
 
8977
 
 
8978
  case $build_os in
 
8979
  msdosdjgpp*)
 
8980
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
8981
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
8982
    # during glob expansion).  Even if it were fixed, the result of this
 
8983
    # check would be larger than it should be.
 
8984
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
8985
    ;;
 
8986
 
 
8987
  gnu*)
 
8988
    # Under GNU Hurd, this test is not required because there is
 
8989
    # no limit to the length of command line arguments.
 
8990
    # Libtool will interpret -1 as no limit whatsoever
 
8991
    lt_cv_sys_max_cmd_len=-1;
 
8992
    ;;
 
8993
 
 
8994
  cygwin* | mingw* | cegcc*)
 
8995
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
8996
    # about 5 minutes as the teststring grows exponentially.
 
8997
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
8998
    # you end up with a "frozen" computer, even though with patience
 
8999
    # the test eventually succeeds (with a max line length of 256k).
 
9000
    # Instead, let's just punt: use the minimum linelength reported by
 
9001
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
9002
    lt_cv_sys_max_cmd_len=8192;
 
9003
    ;;
 
9004
 
 
9005
  amigaos*)
 
9006
    # On AmigaOS with pdksh, this test takes hours, literally.
 
9007
    # So we just punt and use a minimum line length of 8192.
 
9008
    lt_cv_sys_max_cmd_len=8192;
 
9009
    ;;
 
9010
 
 
9011
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
9012
    # This has been around since 386BSD, at least.  Likely further.
 
9013
    if test -x /sbin/sysctl; then
 
9014
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
9015
    elif test -x /usr/sbin/sysctl; then
 
9016
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
9017
    else
 
9018
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
9019
    fi
 
9020
    # And add a safety zone
 
9021
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
9022
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
9023
    ;;
 
9024
 
 
9025
  interix*)
 
9026
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
9027
    lt_cv_sys_max_cmd_len=196608
 
9028
    ;;
 
9029
 
 
9030
  osf*)
 
9031
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
9032
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
9033
    # nice to cause kernel panics so lets avoid the loop below.
 
9034
    # First set a reasonable default.
 
9035
    lt_cv_sys_max_cmd_len=16384
 
9036
    #
 
9037
    if test -x /sbin/sysconfig; then
 
9038
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
9039
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
9040
      esac
 
9041
    fi
 
9042
    ;;
 
9043
  sco3.2v5*)
 
9044
    lt_cv_sys_max_cmd_len=102400
 
9045
    ;;
 
9046
  sysv5* | sco5v6* | sysv4.2uw2*)
 
9047
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
9048
    if test -n "$kargmax"; then
 
9049
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
9050
    else
 
9051
      lt_cv_sys_max_cmd_len=32768
 
9052
    fi
 
9053
    ;;
 
9054
  *)
 
9055
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
9056
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
9057
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
9058
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
9059
    else
 
9060
      # Make teststring a little bigger before we do anything with it.
 
9061
      # a 1K string should be a reasonable start.
 
9062
      for i in 1 2 3 4 5 6 7 8 ; do
 
9063
        teststring=$teststring$teststring
 
9064
      done
 
9065
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
9066
      # If test is not a shell built-in, we'll probably end up computing a
 
9067
      # maximum length that is only half of the actual maximum length, but
 
9068
      # we can't tell.
 
9069
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
9070
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
9071
              test $i != 17 # 1/2 MB should be enough
 
9072
      do
 
9073
        i=`expr $i + 1`
 
9074
        teststring=$teststring$teststring
 
9075
      done
 
9076
      # Only check the string length outside the loop.
 
9077
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
9078
      teststring=
 
9079
      # Add a significant safety factor because C++ compilers can tack on
 
9080
      # massive amounts of additional arguments before passing them to the
 
9081
      # linker.  It appears as though 1/2 is a usable value.
 
9082
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
9083
    fi
 
9084
    ;;
 
9085
  esac
 
9086
 
 
9087
fi
 
9088
 
 
9089
if test -n $lt_cv_sys_max_cmd_len ; then
 
9090
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
9091
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
9092
else
 
9093
  { echo "$as_me:$LINENO: result: none" >&5
 
9094
echo "${ECHO_T}none" >&6; }
 
9095
fi
 
9096
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9097
 
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
 
 
9103
: ${CP="cp -f"}
 
9104
: ${MV="mv -f"}
 
9105
: ${RM="rm -f"}
 
9106
 
 
9107
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
9108
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
9109
# Try some XSI features
 
9110
xsi_shell=no
 
9111
( _lt_dummy="a/b/c"
 
9112
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
9113
      = c,a/b,, \
 
9114
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
9115
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
9116
  && xsi_shell=yes
 
9117
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
9118
echo "${ECHO_T}$xsi_shell" >&6; }
 
9119
 
 
9120
 
 
9121
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
9122
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
9123
lt_shell_append=no
 
9124
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
9125
    >/dev/null 2>&1 \
 
9126
  && lt_shell_append=yes
 
9127
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
9128
echo "${ECHO_T}$lt_shell_append" >&6; }
 
9129
 
 
9130
 
 
9131
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
9132
  lt_unset=unset
 
9133
else
 
9134
  lt_unset=false
 
9135
fi
 
9136
 
 
9137
 
 
9138
 
 
9139
 
 
9140
 
 
9141
# test EBCDIC or ASCII
 
9142
case `echo X|tr X '\101'` in
 
9143
 A) # ASCII based system
 
9144
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
9145
  lt_SP2NL='tr \040 \012'
 
9146
  lt_NL2SP='tr \015\012 \040\040'
 
9147
  ;;
 
9148
 *) # EBCDIC based system
 
9149
  lt_SP2NL='tr \100 \n'
 
9150
  lt_NL2SP='tr \r\n \100\100'
 
9151
  ;;
 
9152
esac
 
9153
 
 
9154
 
 
9155
 
 
9156
 
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
9163
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
9164
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
9165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9166
else
 
9167
  lt_cv_ld_reload_flag='-r'
 
9168
fi
 
9169
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
9170
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
9171
reload_flag=$lt_cv_ld_reload_flag
 
9172
case $reload_flag in
 
9173
"" | " "*) ;;
 
9174
*) reload_flag=" $reload_flag" ;;
 
9175
esac
 
9176
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
9177
case $host_os in
 
9178
  darwin*)
 
9179
    if test "$GCC" = yes; then
 
9180
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
9181
    else
 
9182
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
9183
    fi
 
9184
    ;;
 
9185
esac
 
9186
 
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
 
 
9194
 
 
9195
if test -n "$ac_tool_prefix"; then
 
9196
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
9197
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
9198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9200
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
9201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9202
else
 
9203
  if test -n "$OBJDUMP"; then
 
9204
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
9205
else
 
9206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9207
for as_dir in $PATH
 
9208
do
 
9209
  IFS=$as_save_IFS
 
9210
  test -z "$as_dir" && as_dir=.
 
9211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9213
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
9214
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9215
    break 2
 
9216
  fi
 
9217
done
 
9218
done
 
9219
IFS=$as_save_IFS
 
9220
 
 
9221
fi
 
9222
fi
 
9223
OBJDUMP=$ac_cv_prog_OBJDUMP
 
9224
if test -n "$OBJDUMP"; then
 
9225
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
9226
echo "${ECHO_T}$OBJDUMP" >&6; }
 
9227
else
 
9228
  { echo "$as_me:$LINENO: result: no" >&5
 
9229
echo "${ECHO_T}no" >&6; }
 
9230
fi
 
9231
 
 
9232
 
 
9233
fi
 
9234
if test -z "$ac_cv_prog_OBJDUMP"; then
 
9235
  ac_ct_OBJDUMP=$OBJDUMP
 
9236
  # Extract the first word of "objdump", so it can be a program name with args.
 
9237
set dummy objdump; ac_word=$2
 
9238
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9240
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
9241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9242
else
 
9243
  if test -n "$ac_ct_OBJDUMP"; then
 
9244
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
9245
else
 
9246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9247
for as_dir in $PATH
 
9248
do
 
9249
  IFS=$as_save_IFS
 
9250
  test -z "$as_dir" && as_dir=.
 
9251
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9252
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9253
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
9254
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9255
    break 2
 
9256
  fi
 
9257
done
 
9258
done
 
9259
IFS=$as_save_IFS
 
9260
 
 
9261
fi
 
9262
fi
 
9263
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
9264
if test -n "$ac_ct_OBJDUMP"; then
 
9265
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
9266
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
9267
else
 
9268
  { echo "$as_me:$LINENO: result: no" >&5
 
9269
echo "${ECHO_T}no" >&6; }
 
9270
fi
 
9271
 
 
9272
  if test "x$ac_ct_OBJDUMP" = x; then
 
9273
    OBJDUMP="false"
 
9274
  else
 
9275
    case $cross_compiling:$ac_tool_warned in
 
9276
yes:)
 
9277
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9278
whose name does not start with the host triplet.  If you think this
 
9279
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9280
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9281
whose name does not start with the host triplet.  If you think this
 
9282
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9283
ac_tool_warned=yes ;;
 
9284
esac
 
9285
    OBJDUMP=$ac_ct_OBJDUMP
 
9286
  fi
 
9287
else
 
9288
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
9289
fi
 
9290
 
 
9291
test -z "$OBJDUMP" && OBJDUMP=objdump
 
9292
 
 
9293
 
 
9294
 
 
9295
 
 
9296
 
 
9297
 
5834
9298
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5835
9299
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5836
9300
if test "${lt_cv_deplibs_check_method+set}" = set; then
5884
9348
  fi
5885
9349
  ;;
5886
9350
 
 
9351
cegcc)
 
9352
  # use the weaker test based on 'objdump'. See mingw*.
 
9353
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
9354
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
9355
  ;;
 
9356
 
5887
9357
darwin* | rhapsody*)
5888
9358
  lt_cv_deplibs_check_method=pass_all
5889
9359
  ;;
5890
9360
 
5891
9361
freebsd* | dragonfly*)
5892
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
9362
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893
9363
    case $host_cpu in
5894
9364
    i*86 )
5895
9365
      # Not sure whether the presence of OpenBSD here was a mistake.
5946
9416
  lt_cv_deplibs_check_method=pass_all
5947
9417
  ;;
5948
9418
 
5949
 
netbsd* | netbsdelf*-gnu)
5950
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
9419
netbsd*)
 
9420
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5951
9421
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5952
9422
  else
5953
9423
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5960
9430
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5961
9431
  ;;
5962
9432
 
5963
 
nto-qnx*)
5964
 
  lt_cv_deplibs_check_method=unknown
 
9433
*nto* | *qnx*)
 
9434
  lt_cv_deplibs_check_method=pass_all
5965
9435
  ;;
5966
9436
 
5967
9437
openbsd*)
5968
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9438
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969
9439
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5970
9440
  else
5971
9441
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5984
9454
  lt_cv_deplibs_check_method=pass_all
5985
9455
  ;;
5986
9456
 
 
9457
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9458
  lt_cv_deplibs_check_method=pass_all
 
9459
  ;;
 
9460
 
5987
9461
sysv4 | sysv4.3*)
5988
9462
  case $host_vendor in
5989
9463
  motorola)
6011
9485
  esac
6012
9486
  ;;
6013
9487
 
6014
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9488
tpf*)
6015
9489
  lt_cv_deplibs_check_method=pass_all
6016
9490
  ;;
6017
9491
esac
6026
9500
 
6027
9501
 
6028
9502
 
 
9503
 
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
 
 
9510
 
 
9511
if test -n "$ac_tool_prefix"; then
 
9512
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
9513
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
9514
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9516
if test "${ac_cv_prog_AR+set}" = set; then
 
9517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9518
else
 
9519
  if test -n "$AR"; then
 
9520
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
9521
else
 
9522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9523
for as_dir in $PATH
 
9524
do
 
9525
  IFS=$as_save_IFS
 
9526
  test -z "$as_dir" && as_dir=.
 
9527
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9528
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9529
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
9530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9531
    break 2
 
9532
  fi
 
9533
done
 
9534
done
 
9535
IFS=$as_save_IFS
 
9536
 
 
9537
fi
 
9538
fi
 
9539
AR=$ac_cv_prog_AR
 
9540
if test -n "$AR"; then
 
9541
  { echo "$as_me:$LINENO: result: $AR" >&5
 
9542
echo "${ECHO_T}$AR" >&6; }
 
9543
else
 
9544
  { echo "$as_me:$LINENO: result: no" >&5
 
9545
echo "${ECHO_T}no" >&6; }
 
9546
fi
 
9547
 
 
9548
 
 
9549
fi
 
9550
if test -z "$ac_cv_prog_AR"; then
 
9551
  ac_ct_AR=$AR
 
9552
  # Extract the first word of "ar", so it can be a program name with args.
 
9553
set dummy ar; ac_word=$2
 
9554
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9556
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
9557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9558
else
 
9559
  if test -n "$ac_ct_AR"; then
 
9560
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
9561
else
 
9562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9563
for as_dir in $PATH
 
9564
do
 
9565
  IFS=$as_save_IFS
 
9566
  test -z "$as_dir" && as_dir=.
 
9567
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9569
    ac_cv_prog_ac_ct_AR="ar"
 
9570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9571
    break 2
 
9572
  fi
 
9573
done
 
9574
done
 
9575
IFS=$as_save_IFS
 
9576
 
 
9577
fi
 
9578
fi
 
9579
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
9580
if test -n "$ac_ct_AR"; then
 
9581
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
9582
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
9583
else
 
9584
  { echo "$as_me:$LINENO: result: no" >&5
 
9585
echo "${ECHO_T}no" >&6; }
 
9586
fi
 
9587
 
 
9588
  if test "x$ac_ct_AR" = x; then
 
9589
    AR="false"
 
9590
  else
 
9591
    case $cross_compiling:$ac_tool_warned in
 
9592
yes:)
 
9593
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9594
whose name does not start with the host triplet.  If you think this
 
9595
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9596
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9597
whose name does not start with the host triplet.  If you think this
 
9598
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9599
ac_tool_warned=yes ;;
 
9600
esac
 
9601
    AR=$ac_ct_AR
 
9602
  fi
 
9603
else
 
9604
  AR="$ac_cv_prog_AR"
 
9605
fi
 
9606
 
 
9607
test -z "$AR" && AR=ar
 
9608
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
9609
 
 
9610
 
 
9611
 
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
if test -n "$ac_tool_prefix"; then
 
9621
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
9622
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
9623
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9625
if test "${ac_cv_prog_STRIP+set}" = set; then
 
9626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9627
else
 
9628
  if test -n "$STRIP"; then
 
9629
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
9630
else
 
9631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9632
for as_dir in $PATH
 
9633
do
 
9634
  IFS=$as_save_IFS
 
9635
  test -z "$as_dir" && as_dir=.
 
9636
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9637
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9638
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
9639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9640
    break 2
 
9641
  fi
 
9642
done
 
9643
done
 
9644
IFS=$as_save_IFS
 
9645
 
 
9646
fi
 
9647
fi
 
9648
STRIP=$ac_cv_prog_STRIP
 
9649
if test -n "$STRIP"; then
 
9650
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
9651
echo "${ECHO_T}$STRIP" >&6; }
 
9652
else
 
9653
  { echo "$as_me:$LINENO: result: no" >&5
 
9654
echo "${ECHO_T}no" >&6; }
 
9655
fi
 
9656
 
 
9657
 
 
9658
fi
 
9659
if test -z "$ac_cv_prog_STRIP"; then
 
9660
  ac_ct_STRIP=$STRIP
 
9661
  # Extract the first word of "strip", so it can be a program name with args.
 
9662
set dummy strip; ac_word=$2
 
9663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9665
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
9666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9667
else
 
9668
  if test -n "$ac_ct_STRIP"; then
 
9669
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
9670
else
 
9671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9672
for as_dir in $PATH
 
9673
do
 
9674
  IFS=$as_save_IFS
 
9675
  test -z "$as_dir" && as_dir=.
 
9676
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9678
    ac_cv_prog_ac_ct_STRIP="strip"
 
9679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9680
    break 2
 
9681
  fi
 
9682
done
 
9683
done
 
9684
IFS=$as_save_IFS
 
9685
 
 
9686
fi
 
9687
fi
 
9688
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
9689
if test -n "$ac_ct_STRIP"; then
 
9690
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
9691
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
9692
else
 
9693
  { echo "$as_me:$LINENO: result: no" >&5
 
9694
echo "${ECHO_T}no" >&6; }
 
9695
fi
 
9696
 
 
9697
  if test "x$ac_ct_STRIP" = x; then
 
9698
    STRIP=":"
 
9699
  else
 
9700
    case $cross_compiling:$ac_tool_warned in
 
9701
yes:)
 
9702
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9703
whose name does not start with the host triplet.  If you think this
 
9704
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9705
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9706
whose name does not start with the host triplet.  If you think this
 
9707
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9708
ac_tool_warned=yes ;;
 
9709
esac
 
9710
    STRIP=$ac_ct_STRIP
 
9711
  fi
 
9712
else
 
9713
  STRIP="$ac_cv_prog_STRIP"
 
9714
fi
 
9715
 
 
9716
test -z "$STRIP" && STRIP=:
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
 
 
9723
if test -n "$ac_tool_prefix"; then
 
9724
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
9725
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
9726
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9728
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
9729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9730
else
 
9731
  if test -n "$RANLIB"; then
 
9732
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
9733
else
 
9734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9735
for as_dir in $PATH
 
9736
do
 
9737
  IFS=$as_save_IFS
 
9738
  test -z "$as_dir" && as_dir=.
 
9739
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9740
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9741
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
9742
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9743
    break 2
 
9744
  fi
 
9745
done
 
9746
done
 
9747
IFS=$as_save_IFS
 
9748
 
 
9749
fi
 
9750
fi
 
9751
RANLIB=$ac_cv_prog_RANLIB
 
9752
if test -n "$RANLIB"; then
 
9753
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
9754
echo "${ECHO_T}$RANLIB" >&6; }
 
9755
else
 
9756
  { echo "$as_me:$LINENO: result: no" >&5
 
9757
echo "${ECHO_T}no" >&6; }
 
9758
fi
 
9759
 
 
9760
 
 
9761
fi
 
9762
if test -z "$ac_cv_prog_RANLIB"; then
 
9763
  ac_ct_RANLIB=$RANLIB
 
9764
  # Extract the first word of "ranlib", so it can be a program name with args.
 
9765
set dummy ranlib; ac_word=$2
 
9766
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
9768
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
9769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9770
else
 
9771
  if test -n "$ac_ct_RANLIB"; then
 
9772
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
9773
else
 
9774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9775
for as_dir in $PATH
 
9776
do
 
9777
  IFS=$as_save_IFS
 
9778
  test -z "$as_dir" && as_dir=.
 
9779
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9780
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
9781
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
9782
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9783
    break 2
 
9784
  fi
 
9785
done
 
9786
done
 
9787
IFS=$as_save_IFS
 
9788
 
 
9789
fi
 
9790
fi
 
9791
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
9792
if test -n "$ac_ct_RANLIB"; then
 
9793
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
9794
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
9795
else
 
9796
  { echo "$as_me:$LINENO: result: no" >&5
 
9797
echo "${ECHO_T}no" >&6; }
 
9798
fi
 
9799
 
 
9800
  if test "x$ac_ct_RANLIB" = x; then
 
9801
    RANLIB=":"
 
9802
  else
 
9803
    case $cross_compiling:$ac_tool_warned in
 
9804
yes:)
 
9805
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
9806
whose name does not start with the host triplet.  If you think this
 
9807
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
9808
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
9809
whose name does not start with the host triplet.  If you think this
 
9810
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
9811
ac_tool_warned=yes ;;
 
9812
esac
 
9813
    RANLIB=$ac_ct_RANLIB
 
9814
  fi
 
9815
else
 
9816
  RANLIB="$ac_cv_prog_RANLIB"
 
9817
fi
 
9818
 
 
9819
test -z "$RANLIB" && RANLIB=:
 
9820
 
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
# Determine commands to create old-style static archives.
 
9827
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
9828
old_postinstall_cmds='chmod 644 $oldlib'
 
9829
old_postuninstall_cmds=
 
9830
 
 
9831
if test -n "$RANLIB"; then
 
9832
  case $host_os in
 
9833
  openbsd*)
 
9834
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
9835
    ;;
 
9836
  *)
 
9837
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
9838
    ;;
 
9839
  esac
 
9840
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
9841
fi
 
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
 
 
9875
 
6029
9876
# If no C compiler was specified, use CC.
6030
9877
LTCC=${LTCC-"$CC"}
6031
9878
 
6035
9882
# Allow CC to be a program name with arguments.
6036
9883
compiler=$CC
6037
9884
 
6038
 
# Check whether --enable-libtool-lock was given.
6039
 
if test "${enable_libtool_lock+set}" = set; then
6040
 
  enableval=$enable_libtool_lock;
6041
 
fi
6042
 
 
6043
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6044
 
 
6045
 
# Some flags need to be propagated to the compiler or linker for good
6046
 
# libtool support.
6047
 
case $host in
6048
 
ia64-*-hpux*)
6049
 
  # Find out which ABI we are using.
6050
 
  echo 'int i;' > conftest.$ac_ext
6051
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052
 
  (eval $ac_compile) 2>&5
6053
 
  ac_status=$?
6054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055
 
  (exit $ac_status); }; then
6056
 
    case `/usr/bin/file conftest.$ac_objext` in
6057
 
    *ELF-32*)
6058
 
      HPUX_IA64_MODE="32"
6059
 
      ;;
6060
 
    *ELF-64*)
6061
 
      HPUX_IA64_MODE="64"
6062
 
      ;;
6063
 
    esac
6064
 
  fi
6065
 
  rm -rf conftest*
6066
 
  ;;
6067
 
*-*-irix6*)
6068
 
  # Find out which ABI we are using.
6069
 
  echo '#line 6069 "configure"' > conftest.$ac_ext
6070
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071
 
  (eval $ac_compile) 2>&5
6072
 
  ac_status=$?
6073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
 
  (exit $ac_status); }; then
6075
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
6076
 
    case `/usr/bin/file conftest.$ac_objext` in
6077
 
    *32-bit*)
6078
 
      LD="${LD-ld} -melf32bsmip"
6079
 
      ;;
6080
 
    *N32*)
6081
 
      LD="${LD-ld} -melf32bmipn32"
6082
 
      ;;
6083
 
    *64-bit*)
6084
 
      LD="${LD-ld} -melf64bmip"
6085
 
      ;;
6086
 
    esac
6087
 
   else
6088
 
    case `/usr/bin/file conftest.$ac_objext` in
6089
 
    *32-bit*)
6090
 
      LD="${LD-ld} -32"
6091
 
      ;;
6092
 
    *N32*)
6093
 
      LD="${LD-ld} -n32"
6094
 
      ;;
6095
 
    *64-bit*)
6096
 
      LD="${LD-ld} -64"
6097
 
      ;;
6098
 
    esac
6099
 
   fi
6100
 
  fi
6101
 
  rm -rf conftest*
6102
 
  ;;
6103
 
 
6104
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6105
 
s390*-*linux*|sparc*-*linux*)
6106
 
  # Find out which ABI we are using.
6107
 
  echo 'int i;' > conftest.$ac_ext
6108
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109
 
  (eval $ac_compile) 2>&5
6110
 
  ac_status=$?
6111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
 
  (exit $ac_status); }; then
6113
 
    case `/usr/bin/file conftest.o` in
6114
 
    *32-bit*)
6115
 
      case $host in
6116
 
        x86_64-*kfreebsd*-gnu)
6117
 
          LD="${LD-ld} -m elf_i386_fbsd"
6118
 
          ;;
6119
 
        x86_64-*linux*)
6120
 
          LD="${LD-ld} -m elf_i386"
6121
 
          ;;
6122
 
        ppc64-*linux*|powerpc64-*linux*)
6123
 
          LD="${LD-ld} -m elf32ppclinux"
6124
 
          ;;
6125
 
        s390x-*linux*)
6126
 
          LD="${LD-ld} -m elf_s390"
6127
 
          ;;
6128
 
        sparc64-*linux*)
6129
 
          LD="${LD-ld} -m elf32_sparc"
6130
 
          ;;
6131
 
      esac
6132
 
      ;;
6133
 
    *64-bit*)
6134
 
      case $host in
6135
 
        x86_64-*kfreebsd*-gnu)
6136
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
6137
 
          ;;
6138
 
        x86_64-*linux*)
6139
 
          LD="${LD-ld} -m elf_x86_64"
6140
 
          ;;
6141
 
        ppc*-*linux*|powerpc*-*linux*)
6142
 
          LD="${LD-ld} -m elf64ppc"
6143
 
          ;;
6144
 
        s390*-*linux*)
6145
 
          LD="${LD-ld} -m elf64_s390"
6146
 
          ;;
6147
 
        sparc*-*linux*)
6148
 
          LD="${LD-ld} -m elf64_sparc"
6149
 
          ;;
6150
 
      esac
6151
 
      ;;
6152
 
    esac
6153
 
  fi
6154
 
  rm -rf conftest*
6155
 
  ;;
6156
 
 
6157
 
*-*-sco3.2v5*)
6158
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6159
 
  SAVE_CFLAGS="$CFLAGS"
6160
 
  CFLAGS="$CFLAGS -belf"
6161
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6162
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6163
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
6164
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6165
 
else
6166
 
  ac_ext=c
6167
 
ac_cpp='$CPP $CPPFLAGS'
6168
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
 
 
6172
 
     cat >conftest.$ac_ext <<_ACEOF
6173
 
/* confdefs.h.  */
6174
 
_ACEOF
6175
 
cat confdefs.h >>conftest.$ac_ext
6176
 
cat >>conftest.$ac_ext <<_ACEOF
6177
 
/* end confdefs.h.  */
6178
 
 
6179
 
int
6180
 
main ()
6181
 
{
6182
 
 
6183
 
  ;
6184
 
  return 0;
6185
 
}
6186
 
_ACEOF
6187
 
rm -f conftest.$ac_objext conftest$ac_exeext
6188
 
if { (ac_try="$ac_link"
6189
 
case "(($ac_try" in
6190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191
 
  *) ac_try_echo=$ac_try;;
6192
 
esac
6193
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194
 
  (eval "$ac_link") 2>conftest.er1
6195
 
  ac_status=$?
6196
 
  grep -v '^ *+' conftest.er1 >conftest.err
6197
 
  rm -f conftest.er1
6198
 
  cat conftest.err >&5
6199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
 
  (exit $ac_status); } && {
6201
 
         test -z "$ac_c_werror_flag" ||
6202
 
         test ! -s conftest.err
6203
 
       } && test -s conftest$ac_exeext &&
6204
 
       $as_test_x conftest$ac_exeext; then
6205
 
  lt_cv_cc_needs_belf=yes
6206
 
else
6207
 
  echo "$as_me: failed program was:" >&5
6208
 
sed 's/^/| /' conftest.$ac_ext >&5
6209
 
 
6210
 
        lt_cv_cc_needs_belf=no
6211
 
fi
6212
 
 
6213
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214
 
      conftest$ac_exeext conftest.$ac_ext
6215
 
     ac_ext=c
6216
 
ac_cpp='$CPP $CPPFLAGS'
6217
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
 
 
6221
 
fi
6222
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6223
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6224
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6225
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6226
 
    CFLAGS="$SAVE_CFLAGS"
6227
 
  fi
6228
 
  ;;
6229
 
sparc*-*solaris*)
6230
 
  # Find out which ABI we are using.
6231
 
  echo 'int i;' > conftest.$ac_ext
6232
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233
 
  (eval $ac_compile) 2>&5
6234
 
  ac_status=$?
6235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236
 
  (exit $ac_status); }; then
6237
 
    case `/usr/bin/file conftest.o` in
6238
 
    *64-bit*)
6239
 
      case $lt_cv_prog_gnu_ld in
6240
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6241
 
      *)
6242
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243
 
          LD="${LD-ld} -64"
6244
 
        fi
6245
 
        ;;
6246
 
      esac
6247
 
      ;;
6248
 
    esac
6249
 
  fi
6250
 
  rm -rf conftest*
6251
 
  ;;
6252
 
 
6253
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6254
 
  if test -n "$ac_tool_prefix"; then
6255
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6261
 
else
6262
 
  if test -n "$DLLTOOL"; then
6263
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6264
 
else
6265
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266
 
for as_dir in $PATH
6267
 
do
6268
 
  IFS=$as_save_IFS
6269
 
  test -z "$as_dir" && as_dir=.
6270
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6271
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274
 
    break 2
6275
 
  fi
6276
 
done
6277
 
done
6278
 
IFS=$as_save_IFS
6279
 
 
6280
 
fi
6281
 
fi
6282
 
DLLTOOL=$ac_cv_prog_DLLTOOL
6283
 
if test -n "$DLLTOOL"; then
6284
 
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285
 
echo "${ECHO_T}$DLLTOOL" >&6; }
6286
 
else
6287
 
  { echo "$as_me:$LINENO: result: no" >&5
6288
 
echo "${ECHO_T}no" >&6; }
6289
 
fi
6290
 
 
6291
 
 
6292
 
fi
6293
 
if test -z "$ac_cv_prog_DLLTOOL"; then
6294
 
  ac_ct_DLLTOOL=$DLLTOOL
6295
 
  # Extract the first word of "dlltool", so it can be a program name with args.
6296
 
set dummy dlltool; ac_word=$2
6297
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6298
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6301
 
else
6302
 
  if test -n "$ac_ct_DLLTOOL"; then
6303
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6304
 
else
6305
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306
 
for as_dir in $PATH
6307
 
do
6308
 
  IFS=$as_save_IFS
6309
 
  test -z "$as_dir" && as_dir=.
6310
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6311
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314
 
    break 2
6315
 
  fi
6316
 
done
6317
 
done
6318
 
IFS=$as_save_IFS
6319
 
 
6320
 
fi
6321
 
fi
6322
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323
 
if test -n "$ac_ct_DLLTOOL"; then
6324
 
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325
 
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6326
 
else
6327
 
  { echo "$as_me:$LINENO: result: no" >&5
6328
 
echo "${ECHO_T}no" >&6; }
6329
 
fi
6330
 
 
6331
 
  if test "x$ac_ct_DLLTOOL" = x; then
6332
 
    DLLTOOL="false"
6333
 
  else
6334
 
    case $cross_compiling:$ac_tool_warned in
6335
 
yes:)
6336
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6337
 
whose name does not start with the host triplet.  If you think this
6338
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6339
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6340
 
whose name does not start with the host triplet.  If you think this
6341
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6342
 
ac_tool_warned=yes ;;
6343
 
esac
6344
 
    DLLTOOL=$ac_ct_DLLTOOL
6345
 
  fi
6346
 
else
6347
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
6348
 
fi
6349
 
 
6350
 
  if test -n "$ac_tool_prefix"; then
6351
 
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6352
 
set dummy ${ac_tool_prefix}as; ac_word=$2
6353
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6354
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355
 
if test "${ac_cv_prog_AS+set}" = set; then
6356
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6357
 
else
6358
 
  if test -n "$AS"; then
6359
 
  ac_cv_prog_AS="$AS" # Let the user override the test.
6360
 
else
6361
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362
 
for as_dir in $PATH
6363
 
do
6364
 
  IFS=$as_save_IFS
6365
 
  test -z "$as_dir" && as_dir=.
6366
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6367
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368
 
    ac_cv_prog_AS="${ac_tool_prefix}as"
6369
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370
 
    break 2
6371
 
  fi
6372
 
done
6373
 
done
6374
 
IFS=$as_save_IFS
6375
 
 
6376
 
fi
6377
 
fi
6378
 
AS=$ac_cv_prog_AS
6379
 
if test -n "$AS"; then
6380
 
  { echo "$as_me:$LINENO: result: $AS" >&5
6381
 
echo "${ECHO_T}$AS" >&6; }
6382
 
else
6383
 
  { echo "$as_me:$LINENO: result: no" >&5
6384
 
echo "${ECHO_T}no" >&6; }
6385
 
fi
6386
 
 
6387
 
 
6388
 
fi
6389
 
if test -z "$ac_cv_prog_AS"; then
6390
 
  ac_ct_AS=$AS
6391
 
  # Extract the first word of "as", so it can be a program name with args.
6392
 
set dummy as; ac_word=$2
6393
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6394
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395
 
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6396
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6397
 
else
6398
 
  if test -n "$ac_ct_AS"; then
6399
 
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6400
 
else
6401
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402
 
for as_dir in $PATH
6403
 
do
6404
 
  IFS=$as_save_IFS
6405
 
  test -z "$as_dir" && as_dir=.
6406
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6407
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408
 
    ac_cv_prog_ac_ct_AS="as"
6409
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410
 
    break 2
6411
 
  fi
6412
 
done
6413
 
done
6414
 
IFS=$as_save_IFS
6415
 
 
6416
 
fi
6417
 
fi
6418
 
ac_ct_AS=$ac_cv_prog_ac_ct_AS
6419
 
if test -n "$ac_ct_AS"; then
6420
 
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6421
 
echo "${ECHO_T}$ac_ct_AS" >&6; }
6422
 
else
6423
 
  { echo "$as_me:$LINENO: result: no" >&5
6424
 
echo "${ECHO_T}no" >&6; }
6425
 
fi
6426
 
 
6427
 
  if test "x$ac_ct_AS" = x; then
6428
 
    AS="false"
6429
 
  else
6430
 
    case $cross_compiling:$ac_tool_warned in
6431
 
yes:)
6432
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433
 
whose name does not start with the host triplet.  If you think this
6434
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6435
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436
 
whose name does not start with the host triplet.  If you think this
6437
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438
 
ac_tool_warned=yes ;;
6439
 
esac
6440
 
    AS=$ac_ct_AS
6441
 
  fi
6442
 
else
6443
 
  AS="$ac_cv_prog_AS"
6444
 
fi
6445
 
 
6446
 
  if test -n "$ac_tool_prefix"; then
6447
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6448
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6449
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6450
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6453
 
else
6454
 
  if test -n "$OBJDUMP"; then
6455
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6456
 
else
6457
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458
 
for as_dir in $PATH
6459
 
do
6460
 
  IFS=$as_save_IFS
6461
 
  test -z "$as_dir" && as_dir=.
6462
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6463
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6465
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466
 
    break 2
6467
 
  fi
6468
 
done
6469
 
done
6470
 
IFS=$as_save_IFS
6471
 
 
6472
 
fi
6473
 
fi
6474
 
OBJDUMP=$ac_cv_prog_OBJDUMP
6475
 
if test -n "$OBJDUMP"; then
6476
 
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6477
 
echo "${ECHO_T}$OBJDUMP" >&6; }
6478
 
else
6479
 
  { echo "$as_me:$LINENO: result: no" >&5
6480
 
echo "${ECHO_T}no" >&6; }
6481
 
fi
6482
 
 
6483
 
 
6484
 
fi
6485
 
if test -z "$ac_cv_prog_OBJDUMP"; then
6486
 
  ac_ct_OBJDUMP=$OBJDUMP
6487
 
  # Extract the first word of "objdump", so it can be a program name with args.
6488
 
set dummy objdump; ac_word=$2
6489
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6492
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6493
 
else
6494
 
  if test -n "$ac_ct_OBJDUMP"; then
6495
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6496
 
else
6497
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498
 
for as_dir in $PATH
6499
 
do
6500
 
  IFS=$as_save_IFS
6501
 
  test -z "$as_dir" && as_dir=.
6502
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6503
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6505
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506
 
    break 2
6507
 
  fi
6508
 
done
6509
 
done
6510
 
IFS=$as_save_IFS
6511
 
 
6512
 
fi
6513
 
fi
6514
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6515
 
if test -n "$ac_ct_OBJDUMP"; then
6516
 
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6517
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6518
 
else
6519
 
  { echo "$as_me:$LINENO: result: no" >&5
6520
 
echo "${ECHO_T}no" >&6; }
6521
 
fi
6522
 
 
6523
 
  if test "x$ac_ct_OBJDUMP" = x; then
6524
 
    OBJDUMP="false"
6525
 
  else
6526
 
    case $cross_compiling:$ac_tool_warned in
6527
 
yes:)
6528
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529
 
whose name does not start with the host triplet.  If you think this
6530
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6531
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532
 
whose name does not start with the host triplet.  If you think this
6533
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534
 
ac_tool_warned=yes ;;
6535
 
esac
6536
 
    OBJDUMP=$ac_ct_OBJDUMP
6537
 
  fi
6538
 
else
6539
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6540
 
fi
6541
 
 
6542
 
  ;;
6543
 
 
6544
 
esac
6545
 
 
6546
 
need_locks="$enable_libtool_lock"
6547
 
 
6548
 
 
6549
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6550
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6551
 
if test "${ac_cv_header_stdc+set}" = set; then
6552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6553
 
else
6554
 
  cat >conftest.$ac_ext <<_ACEOF
6555
 
/* confdefs.h.  */
6556
 
_ACEOF
6557
 
cat confdefs.h >>conftest.$ac_ext
6558
 
cat >>conftest.$ac_ext <<_ACEOF
6559
 
/* end confdefs.h.  */
6560
 
#include <stdlib.h>
6561
 
#include <stdarg.h>
6562
 
#include <string.h>
6563
 
#include <float.h>
6564
 
 
6565
 
int
6566
 
main ()
6567
 
{
6568
 
 
6569
 
  ;
6570
 
  return 0;
6571
 
}
6572
 
_ACEOF
6573
 
rm -f conftest.$ac_objext
6574
 
if { (ac_try="$ac_compile"
6575
 
case "(($ac_try" in
6576
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577
 
  *) ac_try_echo=$ac_try;;
6578
 
esac
6579
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580
 
  (eval "$ac_compile") 2>conftest.er1
6581
 
  ac_status=$?
6582
 
  grep -v '^ *+' conftest.er1 >conftest.err
6583
 
  rm -f conftest.er1
6584
 
  cat conftest.err >&5
6585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
 
  (exit $ac_status); } && {
6587
 
         test -z "$ac_c_werror_flag" ||
6588
 
         test ! -s conftest.err
6589
 
       } && test -s conftest.$ac_objext; then
6590
 
  ac_cv_header_stdc=yes
6591
 
else
6592
 
  echo "$as_me: failed program was:" >&5
6593
 
sed 's/^/| /' conftest.$ac_ext >&5
6594
 
 
6595
 
        ac_cv_header_stdc=no
6596
 
fi
6597
 
 
6598
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599
 
 
6600
 
if test $ac_cv_header_stdc = yes; then
6601
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6602
 
  cat >conftest.$ac_ext <<_ACEOF
6603
 
/* confdefs.h.  */
6604
 
_ACEOF
6605
 
cat confdefs.h >>conftest.$ac_ext
6606
 
cat >>conftest.$ac_ext <<_ACEOF
6607
 
/* end confdefs.h.  */
6608
 
#include <string.h>
6609
 
 
6610
 
_ACEOF
6611
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612
 
  $EGREP "memchr" >/dev/null 2>&1; then
6613
 
  :
6614
 
else
6615
 
  ac_cv_header_stdc=no
6616
 
fi
6617
 
rm -f conftest*
6618
 
 
6619
 
fi
6620
 
 
6621
 
if test $ac_cv_header_stdc = yes; then
6622
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6623
 
  cat >conftest.$ac_ext <<_ACEOF
6624
 
/* confdefs.h.  */
6625
 
_ACEOF
6626
 
cat confdefs.h >>conftest.$ac_ext
6627
 
cat >>conftest.$ac_ext <<_ACEOF
6628
 
/* end confdefs.h.  */
6629
 
#include <stdlib.h>
6630
 
 
6631
 
_ACEOF
6632
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633
 
  $EGREP "free" >/dev/null 2>&1; then
6634
 
  :
6635
 
else
6636
 
  ac_cv_header_stdc=no
6637
 
fi
6638
 
rm -f conftest*
6639
 
 
6640
 
fi
6641
 
 
6642
 
if test $ac_cv_header_stdc = yes; then
6643
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6644
 
  if test "$cross_compiling" = yes; then
6645
 
  :
6646
 
else
6647
 
  cat >conftest.$ac_ext <<_ACEOF
6648
 
/* confdefs.h.  */
6649
 
_ACEOF
6650
 
cat confdefs.h >>conftest.$ac_ext
6651
 
cat >>conftest.$ac_ext <<_ACEOF
6652
 
/* end confdefs.h.  */
6653
 
#include <ctype.h>
6654
 
#include <stdlib.h>
6655
 
#if ((' ' & 0x0FF) == 0x020)
6656
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6657
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6658
 
#else
6659
 
# define ISLOWER(c) \
6660
 
                   (('a' <= (c) && (c) <= 'i') \
6661
 
                     || ('j' <= (c) && (c) <= 'r') \
6662
 
                     || ('s' <= (c) && (c) <= 'z'))
6663
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6664
 
#endif
6665
 
 
6666
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6667
 
int
6668
 
main ()
6669
 
{
6670
 
  int i;
6671
 
  for (i = 0; i < 256; i++)
6672
 
    if (XOR (islower (i), ISLOWER (i))
6673
 
        || toupper (i) != TOUPPER (i))
6674
 
      return 2;
6675
 
  return 0;
6676
 
}
6677
 
_ACEOF
6678
 
rm -f conftest$ac_exeext
6679
 
if { (ac_try="$ac_link"
6680
 
case "(($ac_try" in
6681
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682
 
  *) ac_try_echo=$ac_try;;
6683
 
esac
6684
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685
 
  (eval "$ac_link") 2>&5
6686
 
  ac_status=$?
6687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6689
 
  { (case "(($ac_try" in
6690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691
 
  *) ac_try_echo=$ac_try;;
6692
 
esac
6693
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694
 
  (eval "$ac_try") 2>&5
6695
 
  ac_status=$?
6696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697
 
  (exit $ac_status); }; }; then
6698
 
  :
6699
 
else
6700
 
  echo "$as_me: program exited with status $ac_status" >&5
6701
 
echo "$as_me: failed program was:" >&5
6702
 
sed 's/^/| /' conftest.$ac_ext >&5
6703
 
 
6704
 
( exit $ac_status )
6705
 
ac_cv_header_stdc=no
6706
 
fi
6707
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6708
 
fi
6709
 
 
6710
 
 
6711
 
fi
6712
 
fi
6713
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6714
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6715
 
if test $ac_cv_header_stdc = yes; then
6716
 
 
6717
 
cat >>confdefs.h <<\_ACEOF
6718
 
#define STDC_HEADERS 1
6719
 
_ACEOF
6720
 
 
6721
 
fi
6722
 
 
6723
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6724
 
 
6725
 
 
6726
 
 
6727
 
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6734
 
                  inttypes.h stdint.h unistd.h
6735
 
do
6736
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6737
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6738
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6739
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6741
 
else
6742
 
  cat >conftest.$ac_ext <<_ACEOF
6743
 
/* confdefs.h.  */
6744
 
_ACEOF
6745
 
cat confdefs.h >>conftest.$ac_ext
6746
 
cat >>conftest.$ac_ext <<_ACEOF
6747
 
/* end confdefs.h.  */
6748
 
$ac_includes_default
6749
 
 
6750
 
#include <$ac_header>
6751
 
_ACEOF
6752
 
rm -f conftest.$ac_objext
6753
 
if { (ac_try="$ac_compile"
6754
 
case "(($ac_try" in
6755
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756
 
  *) ac_try_echo=$ac_try;;
6757
 
esac
6758
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759
 
  (eval "$ac_compile") 2>conftest.er1
6760
 
  ac_status=$?
6761
 
  grep -v '^ *+' conftest.er1 >conftest.err
6762
 
  rm -f conftest.er1
6763
 
  cat conftest.err >&5
6764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
 
  (exit $ac_status); } && {
6766
 
         test -z "$ac_c_werror_flag" ||
6767
 
         test ! -s conftest.err
6768
 
       } && test -s conftest.$ac_objext; then
6769
 
  eval "$as_ac_Header=yes"
6770
 
else
6771
 
  echo "$as_me: failed program was:" >&5
6772
 
sed 's/^/| /' conftest.$ac_ext >&5
6773
 
 
6774
 
        eval "$as_ac_Header=no"
6775
 
fi
6776
 
 
6777
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778
 
fi
6779
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6780
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6781
 
echo "${ECHO_T}$ac_res" >&6; }
6782
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6783
 
  cat >>confdefs.h <<_ACEOF
6784
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6785
 
_ACEOF
6786
 
 
6787
 
fi
6788
 
 
6789
 
done
6790
 
 
6791
 
 
6792
 
 
6793
 
for ac_header in dlfcn.h
6794
 
do
6795
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6796
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6797
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6798
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6799
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6801
 
fi
6802
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6803
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6804
 
echo "${ECHO_T}$ac_res" >&6; }
6805
 
else
6806
 
  # Is the header compilable?
6807
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6808
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6809
 
cat >conftest.$ac_ext <<_ACEOF
6810
 
/* confdefs.h.  */
6811
 
_ACEOF
6812
 
cat confdefs.h >>conftest.$ac_ext
6813
 
cat >>conftest.$ac_ext <<_ACEOF
6814
 
/* end confdefs.h.  */
6815
 
$ac_includes_default
6816
 
#include <$ac_header>
6817
 
_ACEOF
6818
 
rm -f conftest.$ac_objext
6819
 
if { (ac_try="$ac_compile"
6820
 
case "(($ac_try" in
6821
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822
 
  *) ac_try_echo=$ac_try;;
6823
 
esac
6824
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825
 
  (eval "$ac_compile") 2>conftest.er1
6826
 
  ac_status=$?
6827
 
  grep -v '^ *+' conftest.er1 >conftest.err
6828
 
  rm -f conftest.er1
6829
 
  cat conftest.err >&5
6830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
 
  (exit $ac_status); } && {
6832
 
         test -z "$ac_c_werror_flag" ||
6833
 
         test ! -s conftest.err
6834
 
       } && test -s conftest.$ac_objext; then
6835
 
  ac_header_compiler=yes
6836
 
else
6837
 
  echo "$as_me: failed program was:" >&5
6838
 
sed 's/^/| /' conftest.$ac_ext >&5
6839
 
 
6840
 
        ac_header_compiler=no
6841
 
fi
6842
 
 
6843
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6845
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6846
 
 
6847
 
# Is the header present?
6848
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6849
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6850
 
cat >conftest.$ac_ext <<_ACEOF
6851
 
/* confdefs.h.  */
6852
 
_ACEOF
6853
 
cat confdefs.h >>conftest.$ac_ext
6854
 
cat >>conftest.$ac_ext <<_ACEOF
6855
 
/* end confdefs.h.  */
6856
 
#include <$ac_header>
6857
 
_ACEOF
6858
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6859
 
case "(($ac_try" in
6860
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861
 
  *) ac_try_echo=$ac_try;;
6862
 
esac
6863
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6865
 
  ac_status=$?
6866
 
  grep -v '^ *+' conftest.er1 >conftest.err
6867
 
  rm -f conftest.er1
6868
 
  cat conftest.err >&5
6869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870
 
  (exit $ac_status); } >/dev/null && {
6871
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6872
 
         test ! -s conftest.err
6873
 
       }; then
6874
 
  ac_header_preproc=yes
6875
 
else
6876
 
  echo "$as_me: failed program was:" >&5
6877
 
sed 's/^/| /' conftest.$ac_ext >&5
6878
 
 
6879
 
  ac_header_preproc=no
6880
 
fi
6881
 
 
6882
 
rm -f conftest.err conftest.$ac_ext
6883
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6884
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6885
 
 
6886
 
# So?  What about this header?
6887
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6888
 
  yes:no: )
6889
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6890
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6891
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6892
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6893
 
    ac_header_preproc=yes
6894
 
    ;;
6895
 
  no:yes:* )
6896
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6897
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6898
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6899
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6900
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6901
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6902
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6903
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6904
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6905
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6906
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6907
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6908
 
    ( cat <<\_ASBOX
6909
 
## ------------------------------------------------------------------------ ##
6910
 
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
6911
 
## ------------------------------------------------------------------------ ##
6912
 
_ASBOX
6913
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6914
 
    ;;
6915
 
esac
6916
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6917
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6918
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6920
 
else
6921
 
  eval "$as_ac_Header=\$ac_header_preproc"
6922
 
fi
6923
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6924
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6925
 
echo "${ECHO_T}$ac_res" >&6; }
6926
 
 
6927
 
fi
6928
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6929
 
  cat >>confdefs.h <<_ACEOF
6930
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931
 
_ACEOF
6932
 
 
6933
 
fi
6934
 
 
6935
 
done
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6941
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6942
 
    (test "X$CXX" != "Xg++"))) ; then
6943
 
  true
6944
 
fi
6945
 
 
6946
 
 
6947
 
 
6948
 
 
6949
 
 
6950
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6951
 
# find the maximum length of command line arguments
6952
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6953
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6954
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6956
 
else
6957
 
    i=0
6958
 
  teststring="ABCD"
6959
 
 
6960
 
  case $build_os in
6961
 
  msdosdjgpp*)
6962
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6963
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6964
 
    # during glob expansion).  Even if it were fixed, the result of this
6965
 
    # check would be larger than it should be.
6966
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6967
 
    ;;
6968
 
 
6969
 
  gnu*)
6970
 
    # Under GNU Hurd, this test is not required because there is
6971
 
    # no limit to the length of command line arguments.
6972
 
    # Libtool will interpret -1 as no limit whatsoever
6973
 
    lt_cv_sys_max_cmd_len=-1;
6974
 
    ;;
6975
 
 
6976
 
  cygwin* | mingw*)
6977
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6978
 
    # about 5 minutes as the teststring grows exponentially.
6979
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6980
 
    # you end up with a "frozen" computer, even though with patience
6981
 
    # the test eventually succeeds (with a max line length of 256k).
6982
 
    # Instead, let's just punt: use the minimum linelength reported by
6983
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6984
 
    lt_cv_sys_max_cmd_len=8192;
6985
 
    ;;
6986
 
 
6987
 
  amigaos*)
6988
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6989
 
    # So we just punt and use a minimum line length of 8192.
6990
 
    lt_cv_sys_max_cmd_len=8192;
6991
 
    ;;
6992
 
 
6993
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6994
 
    # This has been around since 386BSD, at least.  Likely further.
6995
 
    if test -x /sbin/sysctl; then
6996
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6997
 
    elif test -x /usr/sbin/sysctl; then
6998
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6999
 
    else
7000
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7001
 
    fi
7002
 
    # And add a safety zone
7003
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7004
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7005
 
    ;;
7006
 
 
7007
 
  interix*)
7008
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7009
 
    lt_cv_sys_max_cmd_len=196608
7010
 
    ;;
7011
 
 
7012
 
  osf*)
7013
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7014
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7015
 
    # nice to cause kernel panics so lets avoid the loop below.
7016
 
    # First set a reasonable default.
7017
 
    lt_cv_sys_max_cmd_len=16384
7018
 
    #
7019
 
    if test -x /sbin/sysconfig; then
7020
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7021
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7022
 
      esac
7023
 
    fi
7024
 
    ;;
7025
 
  sco3.2v5*)
7026
 
    lt_cv_sys_max_cmd_len=102400
7027
 
    ;;
7028
 
  sysv5* | sco5v6* | sysv4.2uw2*)
7029
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7030
 
    if test -n "$kargmax"; then
7031
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7032
 
    else
7033
 
      lt_cv_sys_max_cmd_len=32768
7034
 
    fi
7035
 
    ;;
7036
 
  *)
7037
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7038
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
7039
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7040
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7041
 
    else
7042
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7043
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7044
 
               = "XX$teststring") >/dev/null 2>&1 &&
7045
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
7046
 
              lt_cv_sys_max_cmd_len=$new_result &&
7047
 
              test $i != 17 # 1/2 MB should be enough
7048
 
      do
7049
 
        i=`expr $i + 1`
7050
 
        teststring=$teststring$teststring
7051
 
      done
7052
 
      teststring=
7053
 
      # Add a significant safety factor because C++ compilers can tack on massive
7054
 
      # amounts of additional arguments before passing them to the linker.
7055
 
      # It appears as though 1/2 is a usable value.
7056
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7057
 
    fi
7058
 
    ;;
7059
 
  esac
7060
 
 
7061
 
fi
7062
 
 
7063
 
if test -n $lt_cv_sys_max_cmd_len ; then
7064
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7065
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7066
 
else
7067
 
  { echo "$as_me:$LINENO: result: none" >&5
7068
 
echo "${ECHO_T}none" >&6; }
7069
 
fi
7070
 
 
7071
 
 
7072
 
 
7073
 
 
7074
9885
 
7075
9886
# Check for command to grab the raw symbol name followed by C symbol from nm.
7076
9887
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7088
9899
# Regexp to match symbols that can be accessed directly from C.
7089
9900
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7090
9901
 
7091
 
# Transform an extracted symbol line into a proper C declaration
7092
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7093
 
 
7094
 
# Transform an extracted symbol line into symbol name and symbol address
7095
 
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'"
7096
 
 
7097
9902
# Define system-specific variables.
7098
9903
case $host_os in
7099
9904
aix*)
7100
9905
  symcode='[BCDT]'
7101
9906
  ;;
7102
 
cygwin* | mingw* | pw32*)
 
9907
cygwin* | mingw* | pw32* | cegcc*)
7103
9908
  symcode='[ABCDGISTW]'
7104
9909
  ;;
7105
 
hpux*) # Its linker distinguishes data from code symbols
 
9910
hpux*)
7106
9911
  if test "$host_cpu" = ia64; then
7107
9912
    symcode='[ABCDEGRST]'
7108
9913
  fi
7109
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7110
 
  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'"
7111
 
  ;;
7112
 
linux* | k*bsd*-gnu)
7113
 
  if test "$host_cpu" = ia64; then
7114
 
    symcode='[ABCDGIRSTW]'
7115
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7116
 
    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'"
7117
 
  fi
7118
9914
  ;;
7119
9915
irix* | nonstopux*)
7120
9916
  symcode='[BCDEGRST]'
7139
9935
  ;;
7140
9936
esac
7141
9937
 
 
9938
# If we're using GNU nm, then use its standard symbol codes.
 
9939
case `$NM -V 2>&1` in
 
9940
*GNU* | *'with BFD'*)
 
9941
  symcode='[ABCDGIRSTW]' ;;
 
9942
esac
 
9943
 
 
9944
# Transform an extracted symbol line into a proper C declaration.
 
9945
# Some systems (esp. on ia64) link data and code symbols differently,
 
9946
# so use this general approach.
 
9947
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
9948
 
 
9949
# Transform an extracted symbol line into symbol name and symbol address
 
9950
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
9951
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'"
 
9952
 
7142
9953
# Handle CRLF in mingw tool chain
7143
9954
opt_cr=
7144
9955
case $build_os in
7145
9956
mingw*)
7146
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
9957
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7147
9958
  ;;
7148
9959
esac
7149
9960
 
7150
 
# If we're using GNU nm, then use its standard symbol codes.
7151
 
case `$NM -V 2>&1` in
7152
 
*GNU* | *'with BFD'*)
7153
 
  symcode='[ABCDGIRSTW]' ;;
7154
 
esac
7155
 
 
7156
 
# Try without a prefix undercore, then with it.
 
9961
# Try without a prefix underscore, then with it.
7157
9962
for ac_symprfx in "" "_"; do
7158
9963
 
7159
9964
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7160
9965
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7161
9966
 
7162
9967
  # Write the raw and C identifiers.
7163
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
9968
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
9969
    # Fake it for dumpbin and say T for any non-static function
 
9970
    # and D for any global variable.
 
9971
    # Also find C++ and __fastcall symbols from MSVC++,
 
9972
    # which start with @ or ?.
 
9973
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
9974
"     {last_section=section; section=\$ 3};"\
 
9975
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
9976
"     \$ 0!~/External *\|/{next};"\
 
9977
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
9978
"     {if(hide[section]) next};"\
 
9979
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
9980
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
9981
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
9982
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
9983
"     ' prfx=^$ac_symprfx"
 
9984
  else
 
9985
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
9986
  fi
7164
9987
 
7165
9988
  # Check to see that the pipe works correctly.
7166
9989
  pipe_works=no
7167
9990
 
7168
9991
  rm -f conftest*
7169
 
  cat > conftest.$ac_ext <<EOF
 
9992
  cat > conftest.$ac_ext <<_LT_EOF
7170
9993
#ifdef __cplusplus
7171
9994
extern "C" {
7172
9995
#endif
7173
9996
char nm_test_var;
7174
 
void nm_test_func(){}
 
9997
void nm_test_func(void);
 
9998
void nm_test_func(void){}
7175
9999
#ifdef __cplusplus
7176
10000
}
7177
10001
#endif
7178
10002
int main(){nm_test_var='a';nm_test_func();return(0);}
7179
 
EOF
 
10003
_LT_EOF
7180
10004
 
7181
10005
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182
10006
  (eval $ac_compile) 2>&5
7198
10022
      fi
7199
10023
 
7200
10024
      # Make sure that we snagged all the symbols we need.
7201
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7202
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7203
 
          cat <<EOF > conftest.$ac_ext
 
10025
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
10026
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
10027
          cat <<_LT_EOF > conftest.$ac_ext
7204
10028
#ifdef __cplusplus
7205
10029
extern "C" {
7206
10030
#endif
7207
10031
 
7208
 
EOF
 
10032
_LT_EOF
7209
10033
          # Now generate the symbol file.
7210
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7211
 
 
7212
 
          cat <<EOF >> conftest.$ac_ext
7213
 
#if defined (__STDC__) && __STDC__
7214
 
# define lt_ptr_t void *
7215
 
#else
7216
 
# define lt_ptr_t char *
7217
 
# define const
7218
 
#endif
7219
 
 
7220
 
/* The mapping between symbol names and symbols. */
 
10034
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
10035
 
 
10036
          cat <<_LT_EOF >> conftest.$ac_ext
 
10037
 
 
10038
/* The mapping between symbol names and symbols.  */
7221
10039
const struct {
7222
10040
  const char *name;
7223
 
  lt_ptr_t address;
 
10041
  void       *address;
7224
10042
}
7225
 
lt_preloaded_symbols[] =
 
10043
lt__PROGRAM__LTX_preloaded_symbols[] =
7226
10044
{
7227
 
EOF
7228
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7229
 
          cat <<\EOF >> conftest.$ac_ext
7230
 
  {0, (lt_ptr_t) 0}
 
10045
  { "@PROGRAM@", (void *) 0 },
 
10046
_LT_EOF
 
10047
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
10048
          cat <<\_LT_EOF >> conftest.$ac_ext
 
10049
  {0, (void *) 0}
7231
10050
};
7232
10051
 
 
10052
/* This works around a problem in FreeBSD linker */
 
10053
#ifdef FREEBSD_WORKAROUND
 
10054
static const void *lt_preloaded_setup() {
 
10055
  return lt__PROGRAM__LTX_preloaded_symbols;
 
10056
}
 
10057
#endif
 
10058
 
7233
10059
#ifdef __cplusplus
7234
10060
}
7235
10061
#endif
7236
 
EOF
 
10062
_LT_EOF
7237
10063
          # Now try linking the two files.
7238
10064
          mv conftest.$ac_objext conftstm.$ac_objext
7239
10065
          lt_save_LIBS="$LIBS"
7285
10111
echo "${ECHO_T}ok" >&6; }
7286
10112
fi
7287
10113
 
7288
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
7289
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7290
 
if test "${lt_cv_objdir+set}" = set; then
7291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7292
 
else
7293
 
  rm -f .libs 2>/dev/null
7294
 
mkdir .libs 2>/dev/null
7295
 
if test -d .libs; then
7296
 
  lt_cv_objdir=.libs
7297
 
else
7298
 
  # MS-DOS does not allow filenames that begin with a dot.
7299
 
  lt_cv_objdir=_libs
7300
 
fi
7301
 
rmdir .libs 2>/dev/null
7302
 
fi
7303
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7304
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7305
 
objdir=$lt_cv_objdir
7306
 
 
7307
 
 
7308
 
 
7309
 
 
7310
 
 
7311
 
case $host_os in
7312
 
aix3*)
7313
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7314
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7315
 
  # vanish in a puff of smoke.
7316
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7317
 
    COLLECT_NAMES=
7318
 
    export COLLECT_NAMES
7319
 
  fi
7320
 
  ;;
7321
 
esac
7322
 
 
7323
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7324
 
# metacharacters that are still active within double-quoted strings.
7325
 
Xsed='sed -e 1s/^X//'
7326
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7327
 
 
7328
 
# Same as above, but do not quote variable references.
7329
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7330
 
 
7331
 
# Sed substitution to delay expansion of an escaped shell variable in a
7332
 
# double_quote_subst'ed string.
7333
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7334
 
 
7335
 
# Sed substitution to avoid accidental globbing in evaled expressions
7336
 
no_glob_subst='s/\*/\\\*/g'
7337
 
 
7338
 
# Constants:
7339
 
rm="rm -f"
7340
 
 
7341
 
# Global variables:
7342
 
default_ofile=libtool
7343
 
can_build_shared=yes
7344
 
 
7345
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7346
 
# which needs '.lib').
7347
 
libext=a
7348
 
ltmain="$ac_aux_dir/ltmain.sh"
7349
 
ofile="$default_ofile"
7350
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7351
 
 
7352
 
if test -n "$ac_tool_prefix"; then
7353
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7354
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7355
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7356
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357
 
if test "${ac_cv_prog_AR+set}" = set; then
7358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7359
 
else
7360
 
  if test -n "$AR"; then
7361
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7362
 
else
7363
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364
 
for as_dir in $PATH
7365
 
do
7366
 
  IFS=$as_save_IFS
7367
 
  test -z "$as_dir" && as_dir=.
7368
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7369
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7371
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372
 
    break 2
7373
 
  fi
7374
 
done
7375
 
done
7376
 
IFS=$as_save_IFS
7377
 
 
7378
 
fi
7379
 
fi
7380
 
AR=$ac_cv_prog_AR
7381
 
if test -n "$AR"; then
7382
 
  { echo "$as_me:$LINENO: result: $AR" >&5
7383
 
echo "${ECHO_T}$AR" >&6; }
7384
 
else
7385
 
  { echo "$as_me:$LINENO: result: no" >&5
7386
 
echo "${ECHO_T}no" >&6; }
7387
 
fi
7388
 
 
7389
 
 
7390
 
fi
7391
 
if test -z "$ac_cv_prog_AR"; then
7392
 
  ac_ct_AR=$AR
7393
 
  # Extract the first word of "ar", so it can be a program name with args.
7394
 
set dummy ar; ac_word=$2
7395
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7398
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7399
 
else
7400
 
  if test -n "$ac_ct_AR"; then
7401
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7402
 
else
7403
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404
 
for as_dir in $PATH
7405
 
do
7406
 
  IFS=$as_save_IFS
7407
 
  test -z "$as_dir" && as_dir=.
7408
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7409
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410
 
    ac_cv_prog_ac_ct_AR="ar"
7411
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412
 
    break 2
7413
 
  fi
7414
 
done
7415
 
done
7416
 
IFS=$as_save_IFS
7417
 
 
7418
 
fi
7419
 
fi
7420
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7421
 
if test -n "$ac_ct_AR"; then
7422
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7423
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
7424
 
else
7425
 
  { echo "$as_me:$LINENO: result: no" >&5
7426
 
echo "${ECHO_T}no" >&6; }
7427
 
fi
7428
 
 
7429
 
  if test "x$ac_ct_AR" = x; then
7430
 
    AR="false"
7431
 
  else
7432
 
    case $cross_compiling:$ac_tool_warned in
7433
 
yes:)
7434
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7435
 
whose name does not start with the host triplet.  If you think this
7436
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7437
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7438
 
whose name does not start with the host triplet.  If you think this
7439
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7440
 
ac_tool_warned=yes ;;
7441
 
esac
7442
 
    AR=$ac_ct_AR
7443
 
  fi
7444
 
else
7445
 
  AR="$ac_cv_prog_AR"
7446
 
fi
7447
 
 
7448
 
if test -n "$ac_tool_prefix"; then
7449
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7450
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7451
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7452
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7455
 
else
7456
 
  if test -n "$RANLIB"; then
7457
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7458
 
else
7459
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460
 
for as_dir in $PATH
7461
 
do
7462
 
  IFS=$as_save_IFS
7463
 
  test -z "$as_dir" && as_dir=.
7464
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7465
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7467
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468
 
    break 2
7469
 
  fi
7470
 
done
7471
 
done
7472
 
IFS=$as_save_IFS
7473
 
 
7474
 
fi
7475
 
fi
7476
 
RANLIB=$ac_cv_prog_RANLIB
7477
 
if test -n "$RANLIB"; then
7478
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7479
 
echo "${ECHO_T}$RANLIB" >&6; }
7480
 
else
7481
 
  { echo "$as_me:$LINENO: result: no" >&5
7482
 
echo "${ECHO_T}no" >&6; }
7483
 
fi
7484
 
 
7485
 
 
7486
 
fi
7487
 
if test -z "$ac_cv_prog_RANLIB"; then
7488
 
  ac_ct_RANLIB=$RANLIB
7489
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7490
 
set dummy ranlib; ac_word=$2
7491
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7492
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7494
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7495
 
else
7496
 
  if test -n "$ac_ct_RANLIB"; then
7497
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7498
 
else
7499
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500
 
for as_dir in $PATH
7501
 
do
7502
 
  IFS=$as_save_IFS
7503
 
  test -z "$as_dir" && as_dir=.
7504
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7505
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7507
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508
 
    break 2
7509
 
  fi
7510
 
done
7511
 
done
7512
 
IFS=$as_save_IFS
7513
 
 
7514
 
fi
7515
 
fi
7516
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7517
 
if test -n "$ac_ct_RANLIB"; then
7518
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7519
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7520
 
else
7521
 
  { echo "$as_me:$LINENO: result: no" >&5
7522
 
echo "${ECHO_T}no" >&6; }
7523
 
fi
7524
 
 
7525
 
  if test "x$ac_ct_RANLIB" = x; then
7526
 
    RANLIB=":"
7527
 
  else
7528
 
    case $cross_compiling:$ac_tool_warned in
7529
 
yes:)
7530
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7531
 
whose name does not start with the host triplet.  If you think this
7532
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7533
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7534
 
whose name does not start with the host triplet.  If you think this
7535
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7536
 
ac_tool_warned=yes ;;
7537
 
esac
7538
 
    RANLIB=$ac_ct_RANLIB
7539
 
  fi
7540
 
else
7541
 
  RANLIB="$ac_cv_prog_RANLIB"
7542
 
fi
7543
 
 
7544
 
if test -n "$ac_tool_prefix"; then
7545
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7546
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7547
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7551
 
else
7552
 
  if test -n "$STRIP"; then
7553
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7554
 
else
7555
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556
 
for as_dir in $PATH
7557
 
do
7558
 
  IFS=$as_save_IFS
7559
 
  test -z "$as_dir" && as_dir=.
7560
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7561
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7563
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564
 
    break 2
7565
 
  fi
7566
 
done
7567
 
done
7568
 
IFS=$as_save_IFS
7569
 
 
7570
 
fi
7571
 
fi
7572
 
STRIP=$ac_cv_prog_STRIP
7573
 
if test -n "$STRIP"; then
7574
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7575
 
echo "${ECHO_T}$STRIP" >&6; }
7576
 
else
7577
 
  { echo "$as_me:$LINENO: result: no" >&5
7578
 
echo "${ECHO_T}no" >&6; }
7579
 
fi
7580
 
 
7581
 
 
7582
 
fi
7583
 
if test -z "$ac_cv_prog_STRIP"; then
7584
 
  ac_ct_STRIP=$STRIP
7585
 
  # Extract the first word of "strip", so it can be a program name with args.
7586
 
set dummy strip; ac_word=$2
7587
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7591
 
else
7592
 
  if test -n "$ac_ct_STRIP"; then
7593
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7594
 
else
7595
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596
 
for as_dir in $PATH
7597
 
do
7598
 
  IFS=$as_save_IFS
7599
 
  test -z "$as_dir" && as_dir=.
7600
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7601
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602
 
    ac_cv_prog_ac_ct_STRIP="strip"
7603
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604
 
    break 2
7605
 
  fi
7606
 
done
7607
 
done
7608
 
IFS=$as_save_IFS
7609
 
 
7610
 
fi
7611
 
fi
7612
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7613
 
if test -n "$ac_ct_STRIP"; then
7614
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7615
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7616
 
else
7617
 
  { echo "$as_me:$LINENO: result: no" >&5
7618
 
echo "${ECHO_T}no" >&6; }
7619
 
fi
7620
 
 
7621
 
  if test "x$ac_ct_STRIP" = x; then
7622
 
    STRIP=":"
7623
 
  else
7624
 
    case $cross_compiling:$ac_tool_warned in
7625
 
yes:)
7626
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7627
 
whose name does not start with the host triplet.  If you think this
7628
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7629
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7630
 
whose name does not start with the host triplet.  If you think this
7631
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7632
 
ac_tool_warned=yes ;;
7633
 
esac
7634
 
    STRIP=$ac_ct_STRIP
7635
 
  fi
7636
 
else
7637
 
  STRIP="$ac_cv_prog_STRIP"
7638
 
fi
7639
 
 
7640
 
 
7641
 
old_CC="$CC"
7642
 
old_CFLAGS="$CFLAGS"
7643
 
 
7644
 
# Set sane defaults for various variables
7645
 
test -z "$AR" && AR=ar
7646
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7647
 
test -z "$AS" && AS=as
7648
 
test -z "$CC" && CC=cc
7649
 
test -z "$LTCC" && LTCC=$CC
7650
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7651
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7652
 
test -z "$LD" && LD=ld
7653
 
test -z "$LN_S" && LN_S="ln -s"
7654
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7655
 
test -z "$NM" && NM=nm
7656
 
test -z "$SED" && SED=sed
7657
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7658
 
test -z "$RANLIB" && RANLIB=:
7659
 
test -z "$STRIP" && STRIP=:
7660
 
test -z "$ac_objext" && ac_objext=o
7661
 
 
7662
 
# Determine commands to create old-style static archives.
7663
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7664
 
old_postinstall_cmds='chmod 644 $oldlib'
7665
 
old_postuninstall_cmds=
7666
 
 
7667
 
if test -n "$RANLIB"; then
7668
 
  case $host_os in
7669
 
  openbsd*)
7670
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7671
 
    ;;
7672
 
  *)
7673
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7674
 
    ;;
7675
 
  esac
7676
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7677
 
fi
7678
 
 
7679
 
for cc_temp in $compiler""; do
7680
 
  case $cc_temp in
7681
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7682
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7683
 
    \-*) ;;
7684
 
    *) break;;
7685
 
  esac
7686
 
done
7687
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7688
 
 
7689
 
 
7690
 
# Only perform the check for file, if the check method requires it
7691
 
case $deplibs_check_method in
7692
 
file_magic*)
7693
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7694
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7695
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7696
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7697
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7698
 
else
7699
 
  case $MAGIC_CMD in
7700
 
[\\/*] |  ?:[\\/]*)
7701
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702
 
  ;;
7703
 
*)
7704
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7705
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707
 
  for ac_dir in $ac_dummy; do
7708
 
    IFS="$lt_save_ifs"
7709
 
    test -z "$ac_dir" && ac_dir=.
7710
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7711
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7712
 
      if test -n "$file_magic_test_file"; then
7713
 
        case $deplibs_check_method in
7714
 
        "file_magic "*)
7715
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718
 
            $EGREP "$file_magic_regex" > /dev/null; then
7719
 
            :
7720
 
          else
7721
 
            cat <<EOF 1>&2
7722
 
 
7723
 
*** Warning: the command libtool uses to detect shared libraries,
7724
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7725
 
*** The result is that libtool may fail to recognize shared libraries
7726
 
*** as such.  This will affect the creation of libtool libraries that
7727
 
*** depend on shared libraries, but programs linked with such libtool
7728
 
*** libraries will work regardless of this problem.  Nevertheless, you
7729
 
*** may want to report the problem to your system manager and/or to
7730
 
*** bug-libtool@gnu.org
7731
 
 
7732
 
EOF
7733
 
          fi ;;
7734
 
        esac
7735
 
      fi
7736
 
      break
7737
 
    fi
7738
 
  done
7739
 
  IFS="$lt_save_ifs"
7740
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7741
 
  ;;
7742
 
esac
7743
 
fi
7744
 
 
7745
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746
 
if test -n "$MAGIC_CMD"; then
7747
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7748
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7749
 
else
7750
 
  { echo "$as_me:$LINENO: result: no" >&5
7751
 
echo "${ECHO_T}no" >&6; }
7752
 
fi
7753
 
 
7754
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7755
 
  if test -n "$ac_tool_prefix"; then
7756
 
    { echo "$as_me:$LINENO: checking for file" >&5
7757
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7758
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7760
 
else
7761
 
  case $MAGIC_CMD in
7762
 
[\\/*] |  ?:[\\/]*)
7763
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7764
 
  ;;
7765
 
*)
7766
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7767
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7768
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7769
 
  for ac_dir in $ac_dummy; do
7770
 
    IFS="$lt_save_ifs"
7771
 
    test -z "$ac_dir" && ac_dir=.
7772
 
    if test -f $ac_dir/file; then
7773
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7774
 
      if test -n "$file_magic_test_file"; then
7775
 
        case $deplibs_check_method in
7776
 
        "file_magic "*)
7777
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7778
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7779
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7780
 
            $EGREP "$file_magic_regex" > /dev/null; then
7781
 
            :
7782
 
          else
7783
 
            cat <<EOF 1>&2
7784
 
 
7785
 
*** Warning: the command libtool uses to detect shared libraries,
7786
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7787
 
*** The result is that libtool may fail to recognize shared libraries
7788
 
*** as such.  This will affect the creation of libtool libraries that
7789
 
*** depend on shared libraries, but programs linked with such libtool
7790
 
*** libraries will work regardless of this problem.  Nevertheless, you
7791
 
*** may want to report the problem to your system manager and/or to
7792
 
*** bug-libtool@gnu.org
7793
 
 
7794
 
EOF
7795
 
          fi ;;
7796
 
        esac
7797
 
      fi
7798
 
      break
7799
 
    fi
7800
 
  done
7801
 
  IFS="$lt_save_ifs"
7802
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7803
 
  ;;
7804
 
esac
7805
 
fi
7806
 
 
7807
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7808
 
if test -n "$MAGIC_CMD"; then
7809
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7810
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7811
 
else
7812
 
  { echo "$as_me:$LINENO: result: no" >&5
7813
 
echo "${ECHO_T}no" >&6; }
7814
 
fi
7815
 
 
7816
 
  else
7817
 
    MAGIC_CMD=:
7818
 
  fi
7819
 
fi
7820
 
 
7821
 
  fi
7822
 
  ;;
7823
 
esac
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
# Check whether --enable-libtool-lock was given.
 
10136
if test "${enable_libtool_lock+set}" = set; then
 
10137
  enableval=$enable_libtool_lock;
 
10138
fi
 
10139
 
 
10140
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
10141
 
 
10142
# Some flags need to be propagated to the compiler or linker for good
 
10143
# libtool support.
 
10144
case $host in
 
10145
ia64-*-hpux*)
 
10146
  # Find out which ABI we are using.
 
10147
  echo 'int i;' > conftest.$ac_ext
 
10148
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10149
  (eval $ac_compile) 2>&5
 
10150
  ac_status=$?
 
10151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10152
  (exit $ac_status); }; then
 
10153
    case `/usr/bin/file conftest.$ac_objext` in
 
10154
      *ELF-32*)
 
10155
        HPUX_IA64_MODE="32"
 
10156
        ;;
 
10157
      *ELF-64*)
 
10158
        HPUX_IA64_MODE="64"
 
10159
        ;;
 
10160
    esac
 
10161
  fi
 
10162
  rm -rf conftest*
 
10163
  ;;
 
10164
*-*-irix6*)
 
10165
  # Find out which ABI we are using.
 
10166
  echo '#line 10166 "configure"' > conftest.$ac_ext
 
10167
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10168
  (eval $ac_compile) 2>&5
 
10169
  ac_status=$?
 
10170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10171
  (exit $ac_status); }; then
 
10172
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
10173
      case `/usr/bin/file conftest.$ac_objext` in
 
10174
        *32-bit*)
 
10175
          LD="${LD-ld} -melf32bsmip"
 
10176
          ;;
 
10177
        *N32*)
 
10178
          LD="${LD-ld} -melf32bmipn32"
 
10179
          ;;
 
10180
        *64-bit*)
 
10181
          LD="${LD-ld} -melf64bmip"
 
10182
        ;;
 
10183
      esac
 
10184
    else
 
10185
      case `/usr/bin/file conftest.$ac_objext` in
 
10186
        *32-bit*)
 
10187
          LD="${LD-ld} -32"
 
10188
          ;;
 
10189
        *N32*)
 
10190
          LD="${LD-ld} -n32"
 
10191
          ;;
 
10192
        *64-bit*)
 
10193
          LD="${LD-ld} -64"
 
10194
          ;;
 
10195
      esac
 
10196
    fi
 
10197
  fi
 
10198
  rm -rf conftest*
 
10199
  ;;
 
10200
 
 
10201
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
10202
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
10203
  # Find out which ABI we are using.
 
10204
  echo 'int i;' > conftest.$ac_ext
 
10205
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10206
  (eval $ac_compile) 2>&5
 
10207
  ac_status=$?
 
10208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10209
  (exit $ac_status); }; then
 
10210
    case `/usr/bin/file conftest.o` in
 
10211
      *32-bit*)
 
10212
        case $host in
 
10213
          x86_64-*kfreebsd*-gnu)
 
10214
            LD="${LD-ld} -m elf_i386_fbsd"
 
10215
            ;;
 
10216
          x86_64-*linux*)
 
10217
            LD="${LD-ld} -m elf_i386"
 
10218
            ;;
 
10219
          ppc64-*linux*|powerpc64-*linux*)
 
10220
            LD="${LD-ld} -m elf32ppclinux"
 
10221
            ;;
 
10222
          s390x-*linux*)
 
10223
            LD="${LD-ld} -m elf_s390"
 
10224
            ;;
 
10225
          sparc64-*linux*)
 
10226
            LD="${LD-ld} -m elf32_sparc"
 
10227
            ;;
 
10228
        esac
 
10229
        ;;
 
10230
      *64-bit*)
 
10231
        case $host in
 
10232
          x86_64-*kfreebsd*-gnu)
 
10233
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
10234
            ;;
 
10235
          x86_64-*linux*)
 
10236
            LD="${LD-ld} -m elf_x86_64"
 
10237
            ;;
 
10238
          ppc*-*linux*|powerpc*-*linux*)
 
10239
            LD="${LD-ld} -m elf64ppc"
 
10240
            ;;
 
10241
          s390*-*linux*|s390*-*tpf*)
 
10242
            LD="${LD-ld} -m elf64_s390"
 
10243
            ;;
 
10244
          sparc*-*linux*)
 
10245
            LD="${LD-ld} -m elf64_sparc"
 
10246
            ;;
 
10247
        esac
 
10248
        ;;
 
10249
    esac
 
10250
  fi
 
10251
  rm -rf conftest*
 
10252
  ;;
 
10253
 
 
10254
*-*-sco3.2v5*)
 
10255
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
10256
  SAVE_CFLAGS="$CFLAGS"
 
10257
  CFLAGS="$CFLAGS -belf"
 
10258
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
10259
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
10260
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
10261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10262
else
 
10263
  ac_ext=c
 
10264
ac_cpp='$CPP $CPPFLAGS'
 
10265
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10266
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10267
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10268
 
 
10269
     cat >conftest.$ac_ext <<_ACEOF
 
10270
/* confdefs.h.  */
 
10271
_ACEOF
 
10272
cat confdefs.h >>conftest.$ac_ext
 
10273
cat >>conftest.$ac_ext <<_ACEOF
 
10274
/* end confdefs.h.  */
 
10275
 
 
10276
int main (void)
 
10277
{
 
10278
 
 
10279
 ;
 
10280
 return 0;
 
10281
}
 
10282
_ACEOF
 
10283
rm -f conftest.$ac_objext conftest$ac_exeext
 
10284
if { (ac_try="$ac_link"
 
10285
case "(($ac_try" in
 
10286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10287
  *) ac_try_echo=$ac_try;;
 
10288
esac
 
10289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10290
  (eval "$ac_link") 2>conftest.er1
 
10291
  ac_status=$?
 
10292
  grep -v '^ *+' conftest.er1 >conftest.err
 
10293
  rm -f conftest.er1
 
10294
  cat conftest.err >&5
 
10295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10296
  (exit $ac_status); } && {
 
10297
         test -z "$ac_c_werror_flag" ||
 
10298
         test ! -s conftest.err
 
10299
       } && test -s conftest$ac_exeext &&
 
10300
       $as_test_x conftest$ac_exeext; then
 
10301
  lt_cv_cc_needs_belf=yes
 
10302
else
 
10303
  echo "$as_me: failed program was:" >&5
 
10304
sed 's/^/| /' conftest.$ac_ext >&5
 
10305
 
 
10306
        lt_cv_cc_needs_belf=no
 
10307
fi
 
10308
 
 
10309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10310
      conftest$ac_exeext conftest.$ac_ext
 
10311
     ac_ext=c
 
10312
ac_cpp='$CPP $CPPFLAGS'
 
10313
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10314
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10315
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10316
 
 
10317
fi
 
10318
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
10319
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
10320
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
10321
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
10322
    CFLAGS="$SAVE_CFLAGS"
 
10323
  fi
 
10324
  ;;
 
10325
sparc*-*solaris*)
 
10326
  # Find out which ABI we are using.
 
10327
  echo 'int i;' > conftest.$ac_ext
 
10328
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10329
  (eval $ac_compile) 2>&5
 
10330
  ac_status=$?
 
10331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10332
  (exit $ac_status); }; then
 
10333
    case `/usr/bin/file conftest.o` in
 
10334
    *64-bit*)
 
10335
      case $lt_cv_prog_gnu_ld in
 
10336
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
10337
      *)
 
10338
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
10339
          LD="${LD-ld} -64"
 
10340
        fi
 
10341
        ;;
 
10342
      esac
 
10343
      ;;
 
10344
    esac
 
10345
  fi
 
10346
  rm -rf conftest*
 
10347
  ;;
 
10348
esac
 
10349
 
 
10350
need_locks="$enable_libtool_lock"
7824
10351
 
7825
10352
 
7826
10353
  case $host_os in
8017
10544
  NMEDIT="$ac_cv_prog_NMEDIT"
8018
10545
fi
8019
10546
 
 
10547
    if test -n "$ac_tool_prefix"; then
 
10548
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
10549
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
10550
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10552
if test "${ac_cv_prog_LIPO+set}" = set; then
 
10553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10554
else
 
10555
  if test -n "$LIPO"; then
 
10556
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
10557
else
 
10558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10559
for as_dir in $PATH
 
10560
do
 
10561
  IFS=$as_save_IFS
 
10562
  test -z "$as_dir" && as_dir=.
 
10563
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10564
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10565
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
10566
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10567
    break 2
 
10568
  fi
 
10569
done
 
10570
done
 
10571
IFS=$as_save_IFS
 
10572
 
 
10573
fi
 
10574
fi
 
10575
LIPO=$ac_cv_prog_LIPO
 
10576
if test -n "$LIPO"; then
 
10577
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
10578
echo "${ECHO_T}$LIPO" >&6; }
 
10579
else
 
10580
  { echo "$as_me:$LINENO: result: no" >&5
 
10581
echo "${ECHO_T}no" >&6; }
 
10582
fi
 
10583
 
 
10584
 
 
10585
fi
 
10586
if test -z "$ac_cv_prog_LIPO"; then
 
10587
  ac_ct_LIPO=$LIPO
 
10588
  # Extract the first word of "lipo", so it can be a program name with args.
 
10589
set dummy lipo; ac_word=$2
 
10590
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10592
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
10593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10594
else
 
10595
  if test -n "$ac_ct_LIPO"; then
 
10596
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
10597
else
 
10598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10599
for as_dir in $PATH
 
10600
do
 
10601
  IFS=$as_save_IFS
 
10602
  test -z "$as_dir" && as_dir=.
 
10603
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10605
    ac_cv_prog_ac_ct_LIPO="lipo"
 
10606
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10607
    break 2
 
10608
  fi
 
10609
done
 
10610
done
 
10611
IFS=$as_save_IFS
 
10612
 
 
10613
fi
 
10614
fi
 
10615
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
10616
if test -n "$ac_ct_LIPO"; then
 
10617
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
10618
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
10619
else
 
10620
  { echo "$as_me:$LINENO: result: no" >&5
 
10621
echo "${ECHO_T}no" >&6; }
 
10622
fi
 
10623
 
 
10624
  if test "x$ac_ct_LIPO" = x; then
 
10625
    LIPO=":"
 
10626
  else
 
10627
    case $cross_compiling:$ac_tool_warned in
 
10628
yes:)
 
10629
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
10630
whose name does not start with the host triplet.  If you think this
 
10631
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
10632
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
10633
whose name does not start with the host triplet.  If you think this
 
10634
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
10635
ac_tool_warned=yes ;;
 
10636
esac
 
10637
    LIPO=$ac_ct_LIPO
 
10638
  fi
 
10639
else
 
10640
  LIPO="$ac_cv_prog_LIPO"
 
10641
fi
 
10642
 
 
10643
    if test -n "$ac_tool_prefix"; then
 
10644
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
10645
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
10646
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10648
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
10649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10650
else
 
10651
  if test -n "$OTOOL"; then
 
10652
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
10653
else
 
10654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10655
for as_dir in $PATH
 
10656
do
 
10657
  IFS=$as_save_IFS
 
10658
  test -z "$as_dir" && as_dir=.
 
10659
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10660
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10661
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
10662
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10663
    break 2
 
10664
  fi
 
10665
done
 
10666
done
 
10667
IFS=$as_save_IFS
 
10668
 
 
10669
fi
 
10670
fi
 
10671
OTOOL=$ac_cv_prog_OTOOL
 
10672
if test -n "$OTOOL"; then
 
10673
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
10674
echo "${ECHO_T}$OTOOL" >&6; }
 
10675
else
 
10676
  { echo "$as_me:$LINENO: result: no" >&5
 
10677
echo "${ECHO_T}no" >&6; }
 
10678
fi
 
10679
 
 
10680
 
 
10681
fi
 
10682
if test -z "$ac_cv_prog_OTOOL"; then
 
10683
  ac_ct_OTOOL=$OTOOL
 
10684
  # Extract the first word of "otool", so it can be a program name with args.
 
10685
set dummy otool; ac_word=$2
 
10686
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10688
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
10689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10690
else
 
10691
  if test -n "$ac_ct_OTOOL"; then
 
10692
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
10693
else
 
10694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10695
for as_dir in $PATH
 
10696
do
 
10697
  IFS=$as_save_IFS
 
10698
  test -z "$as_dir" && as_dir=.
 
10699
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10701
    ac_cv_prog_ac_ct_OTOOL="otool"
 
10702
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10703
    break 2
 
10704
  fi
 
10705
done
 
10706
done
 
10707
IFS=$as_save_IFS
 
10708
 
 
10709
fi
 
10710
fi
 
10711
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
10712
if test -n "$ac_ct_OTOOL"; then
 
10713
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
10714
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
10715
else
 
10716
  { echo "$as_me:$LINENO: result: no" >&5
 
10717
echo "${ECHO_T}no" >&6; }
 
10718
fi
 
10719
 
 
10720
  if test "x$ac_ct_OTOOL" = x; then
 
10721
    OTOOL=":"
 
10722
  else
 
10723
    case $cross_compiling:$ac_tool_warned in
 
10724
yes:)
 
10725
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
10726
whose name does not start with the host triplet.  If you think this
 
10727
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
10728
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
10729
whose name does not start with the host triplet.  If you think this
 
10730
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
10731
ac_tool_warned=yes ;;
 
10732
esac
 
10733
    OTOOL=$ac_ct_OTOOL
 
10734
  fi
 
10735
else
 
10736
  OTOOL="$ac_cv_prog_OTOOL"
 
10737
fi
 
10738
 
 
10739
    if test -n "$ac_tool_prefix"; then
 
10740
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
10741
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
10742
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10743
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10744
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
10745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10746
else
 
10747
  if test -n "$OTOOL64"; then
 
10748
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
10749
else
 
10750
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10751
for as_dir in $PATH
 
10752
do
 
10753
  IFS=$as_save_IFS
 
10754
  test -z "$as_dir" && as_dir=.
 
10755
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10756
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10757
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
10758
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10759
    break 2
 
10760
  fi
 
10761
done
 
10762
done
 
10763
IFS=$as_save_IFS
 
10764
 
 
10765
fi
 
10766
fi
 
10767
OTOOL64=$ac_cv_prog_OTOOL64
 
10768
if test -n "$OTOOL64"; then
 
10769
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
10770
echo "${ECHO_T}$OTOOL64" >&6; }
 
10771
else
 
10772
  { echo "$as_me:$LINENO: result: no" >&5
 
10773
echo "${ECHO_T}no" >&6; }
 
10774
fi
 
10775
 
 
10776
 
 
10777
fi
 
10778
if test -z "$ac_cv_prog_OTOOL64"; then
 
10779
  ac_ct_OTOOL64=$OTOOL64
 
10780
  # Extract the first word of "otool64", so it can be a program name with args.
 
10781
set dummy otool64; ac_word=$2
 
10782
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10784
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
10785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10786
else
 
10787
  if test -n "$ac_ct_OTOOL64"; then
 
10788
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
10789
else
 
10790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10791
for as_dir in $PATH
 
10792
do
 
10793
  IFS=$as_save_IFS
 
10794
  test -z "$as_dir" && as_dir=.
 
10795
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10796
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10797
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
10798
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10799
    break 2
 
10800
  fi
 
10801
done
 
10802
done
 
10803
IFS=$as_save_IFS
 
10804
 
 
10805
fi
 
10806
fi
 
10807
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
10808
if test -n "$ac_ct_OTOOL64"; then
 
10809
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
10810
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
10811
else
 
10812
  { echo "$as_me:$LINENO: result: no" >&5
 
10813
echo "${ECHO_T}no" >&6; }
 
10814
fi
 
10815
 
 
10816
  if test "x$ac_ct_OTOOL64" = x; then
 
10817
    OTOOL64=":"
 
10818
  else
 
10819
    case $cross_compiling:$ac_tool_warned in
 
10820
yes:)
 
10821
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
10822
whose name does not start with the host triplet.  If you think this
 
10823
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
10824
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
10825
whose name does not start with the host triplet.  If you think this
 
10826
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
10827
ac_tool_warned=yes ;;
 
10828
esac
 
10829
    OTOOL64=$ac_ct_OTOOL64
 
10830
  fi
 
10831
else
 
10832
  OTOOL64="$ac_cv_prog_OTOOL64"
 
10833
fi
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
8020
10860
 
8021
10861
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8022
10862
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8025
10865
else
8026
10866
  lt_cv_apple_cc_single_mod=no
8027
10867
      if test -z "${LT_MULTI_MODULE}"; then
8028
 
   # By default we will add the -single_module flag. You can override
8029
 
   # by either setting the environment variable LT_MULTI_MODULE
8030
 
   # non-empty at configure time, or by adding -multi_module to the
8031
 
   # link flags.
8032
 
   echo "int foo(void){return 1;}" > conftest.c
8033
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8034
 
     -dynamiclib ${wl}-single_module conftest.c
8035
 
   if test -f libconftest.dylib; then
8036
 
     lt_cv_apple_cc_single_mod=yes
8037
 
     rm -rf libconftest.dylib*
8038
 
   fi
8039
 
   rm conftest.c
 
10868
        # By default we will add the -single_module flag. You can override
 
10869
        # by either setting the environment variable LT_MULTI_MODULE
 
10870
        # non-empty at configure time, or by adding -multi_module to the
 
10871
        # link flags.
 
10872
        rm -rf libconftest.dylib*
 
10873
        echo "int foo(void){return 1;}" > conftest.c
 
10874
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
10875
-dynamiclib -Wl,-single_module conftest.c" >&5
 
10876
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
10877
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
10878
        _lt_result=$?
 
10879
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
10880
          lt_cv_apple_cc_single_mod=yes
 
10881
        else
 
10882
          cat conftest.err >&5
 
10883
        fi
 
10884
        rm -rf libconftest.dylib*
 
10885
        rm -f conftest.*
8040
10886
      fi
8041
10887
fi
8042
10888
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8057
10903
cat >>conftest.$ac_ext <<_ACEOF
8058
10904
/* end confdefs.h.  */
8059
10905
 
8060
 
int
8061
 
main ()
 
10906
int main (void)
8062
10907
{
8063
10908
 
8064
 
  ;
8065
 
  return 0;
 
10909
 ;
 
10910
 return 0;
8066
10911
}
8067
10912
_ACEOF
8068
10913
rm -f conftest.$ac_objext conftest$ac_exeext
8093
10938
 
8094
10939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095
10940
      conftest$ac_exeext conftest.$ac_ext
8096
 
   LDFLAGS="$save_LDFLAGS"
 
10941
        LDFLAGS="$save_LDFLAGS"
8097
10942
 
8098
10943
fi
8099
10944
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8100
10945
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8101
10946
    case $host_os in
8102
 
    rhapsody* | darwin1.[0123])
 
10947
    rhapsody* | darwin1.[012])
8103
10948
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8104
10949
    darwin1.*)
8105
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8106
 
    darwin*)
 
10950
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
10951
    darwin*) # darwin 5.x on
8107
10952
      # if running on 10.5 or later, the deployment target defaults
8108
10953
      # to the OS version, if on x86, and 10.4, the deployment
8109
10954
      # target defaults to 10.4. Don't you love it?
8110
10955
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8111
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8112
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113
 
   10.[012]*)
8114
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8115
 
   10.*)
8116
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
10956
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
10957
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
10958
        10.[012]*)
 
10959
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
10960
        10.*)
 
10961
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8117
10962
      esac
8118
10963
    ;;
8119
10964
  esac
8123
10968
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8124
10969
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8125
10970
    else
8126
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
10971
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127
10972
    fi
8128
10973
    if test "$DSYMUTIL" != ":"; then
8129
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
10974
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8130
10975
    else
8131
10976
      _lt_dsymutil=
8132
10977
    fi
8134
10979
  esac
8135
10980
 
8136
10981
 
8137
 
enable_dlopen=no
8138
 
enable_win32_dll=yes
8139
 
 
8140
 
# Check whether --enable-libtool-lock was given.
8141
 
if test "${enable_libtool_lock+set}" = set; then
8142
 
  enableval=$enable_libtool_lock;
8143
 
fi
8144
 
 
8145
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
10982
for ac_header in dlfcn.h
 
10983
do
 
10984
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
10985
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
10986
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
10987
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
10988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10989
else
 
10990
  cat >conftest.$ac_ext <<_ACEOF
 
10991
/* confdefs.h.  */
 
10992
_ACEOF
 
10993
cat confdefs.h >>conftest.$ac_ext
 
10994
cat >>conftest.$ac_ext <<_ACEOF
 
10995
/* end confdefs.h.  */
 
10996
$ac_includes_default
 
10997
 
 
10998
#include <$ac_header>
 
10999
_ACEOF
 
11000
rm -f conftest.$ac_objext
 
11001
if { (ac_try="$ac_compile"
 
11002
case "(($ac_try" in
 
11003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11004
  *) ac_try_echo=$ac_try;;
 
11005
esac
 
11006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11007
  (eval "$ac_compile") 2>conftest.er1
 
11008
  ac_status=$?
 
11009
  grep -v '^ *+' conftest.er1 >conftest.err
 
11010
  rm -f conftest.er1
 
11011
  cat conftest.err >&5
 
11012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11013
  (exit $ac_status); } && {
 
11014
         test -z "$ac_c_werror_flag" ||
 
11015
         test ! -s conftest.err
 
11016
       } && test -s conftest.$ac_objext; then
 
11017
  eval "$as_ac_Header=yes"
 
11018
else
 
11019
  echo "$as_me: failed program was:" >&5
 
11020
sed 's/^/| /' conftest.$ac_ext >&5
 
11021
 
 
11022
        eval "$as_ac_Header=no"
 
11023
fi
 
11024
 
 
11025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11026
fi
 
11027
ac_res=`eval echo '${'$as_ac_Header'}'`
 
11028
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11029
echo "${ECHO_T}$ac_res" >&6; }
 
11030
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11031
  cat >>confdefs.h <<_ACEOF
 
11032
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11033
_ACEOF
 
11034
 
 
11035
fi
 
11036
 
 
11037
done
 
11038
 
 
11039
 
 
11040
 
 
11041
# Set options
 
11042
 
 
11043
 
 
11044
 
 
11045
        enable_dlopen=no
 
11046
 
 
11047
 
 
11048
 
 
11049
            # Check whether --enable-shared was given.
 
11050
if test "${enable_shared+set}" = set; then
 
11051
  enableval=$enable_shared; p=${PACKAGE-default}
 
11052
    case $enableval in
 
11053
    yes) enable_shared=yes ;;
 
11054
    no) enable_shared=no ;;
 
11055
    *)
 
11056
      enable_shared=no
 
11057
      # Look at the argument we got.  We use all the common list separators.
 
11058
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11059
      for pkg in $enableval; do
 
11060
        IFS="$lt_save_ifs"
 
11061
        if test "X$pkg" = "X$p"; then
 
11062
          enable_shared=yes
 
11063
        fi
 
11064
      done
 
11065
      IFS="$lt_save_ifs"
 
11066
      ;;
 
11067
    esac
 
11068
else
 
11069
  enable_shared=yes
 
11070
fi
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
  # Check whether --enable-static was given.
 
11081
if test "${enable_static+set}" = set; then
 
11082
  enableval=$enable_static; p=${PACKAGE-default}
 
11083
    case $enableval in
 
11084
    yes) enable_static=yes ;;
 
11085
    no) enable_static=no ;;
 
11086
    *)
 
11087
     enable_static=no
 
11088
      # Look at the argument we got.  We use all the common list separators.
 
11089
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11090
      for pkg in $enableval; do
 
11091
        IFS="$lt_save_ifs"
 
11092
        if test "X$pkg" = "X$p"; then
 
11093
          enable_static=yes
 
11094
        fi
 
11095
      done
 
11096
      IFS="$lt_save_ifs"
 
11097
      ;;
 
11098
    esac
 
11099
else
 
11100
  enable_static=yes
 
11101
fi
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
8146
11110
 
8147
11111
 
8148
11112
# Check whether --with-pic was given.
8152
11116
  pic_mode=default
8153
11117
fi
8154
11118
 
 
11119
 
8155
11120
test -z "$pic_mode" && pic_mode=default
8156
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
  # Check whether --enable-fast-install was given.
 
11129
if test "${enable_fast_install+set}" = set; then
 
11130
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
11131
    case $enableval in
 
11132
    yes) enable_fast_install=yes ;;
 
11133
    no) enable_fast_install=no ;;
 
11134
    *)
 
11135
      enable_fast_install=no
 
11136
      # Look at the argument we got.  We use all the common list separators.
 
11137
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11138
      for pkg in $enableval; do
 
11139
        IFS="$lt_save_ifs"
 
11140
        if test "X$pkg" = "X$p"; then
 
11141
          enable_fast_install=yes
 
11142
        fi
 
11143
      done
 
11144
      IFS="$lt_save_ifs"
 
11145
      ;;
 
11146
    esac
 
11147
else
 
11148
  enable_fast_install=yes
 
11149
fi
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
# This can be used to rebuild libtool when needed
 
11162
LIBTOOL_DEPS="$ltmain"
 
11163
 
 
11164
# Always use our own libtool.
 
11165
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
test -z "$LN_S" && LN_S="ln -s"
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
if test -n "${ZSH_VERSION+set}" ; then
 
11207
   setopt NO_GLOB_SUBST
 
11208
fi
 
11209
 
 
11210
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
11211
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
11212
if test "${lt_cv_objdir+set}" = set; then
 
11213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11214
else
 
11215
  rm -f .libs 2>/dev/null
 
11216
mkdir .libs 2>/dev/null
 
11217
if test -d .libs; then
 
11218
  lt_cv_objdir=.libs
 
11219
else
 
11220
  # MS-DOS does not allow filenames that begin with a dot.
 
11221
  lt_cv_objdir=_libs
 
11222
fi
 
11223
rmdir .libs 2>/dev/null
 
11224
fi
 
11225
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
11226
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
11227
objdir=$lt_cv_objdir
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
cat >>confdefs.h <<_ACEOF
 
11234
#define LT_OBJDIR "$lt_cv_objdir/"
 
11235
_ACEOF
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
case $host_os in
 
11254
aix3*)
 
11255
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
11256
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
11257
  # vanish in a puff of smoke.
 
11258
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
11259
    COLLECT_NAMES=
 
11260
    export COLLECT_NAMES
 
11261
  fi
 
11262
  ;;
 
11263
esac
 
11264
 
 
11265
# Sed substitution that helps us do robust quoting.  It backslashifies
 
11266
# metacharacters that are still active within double-quoted strings.
 
11267
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
11268
 
 
11269
# Same as above, but do not quote variable references.
 
11270
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
11271
 
 
11272
# Sed substitution to delay expansion of an escaped shell variable in a
 
11273
# double_quote_subst'ed string.
 
11274
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
11275
 
 
11276
# Sed substitution to delay expansion of an escaped single quote.
 
11277
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
11278
 
 
11279
# Sed substitution to avoid accidental globbing in evaled expressions
 
11280
no_glob_subst='s/\*/\\\*/g'
 
11281
 
 
11282
# Global variables:
 
11283
ofile=libtool
 
11284
can_build_shared=yes
 
11285
 
 
11286
# All known linkers require a `.a' archive for static linking (except MSVC,
 
11287
# which needs '.lib').
 
11288
libext=a
 
11289
 
 
11290
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
11291
 
 
11292
old_CC="$CC"
 
11293
old_CFLAGS="$CFLAGS"
 
11294
 
 
11295
# Set sane defaults for various variables
 
11296
test -z "$CC" && CC=cc
 
11297
test -z "$LTCC" && LTCC=$CC
 
11298
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
11299
test -z "$LD" && LD=ld
 
11300
test -z "$ac_objext" && ac_objext=o
 
11301
 
 
11302
for cc_temp in $compiler""; do
 
11303
  case $cc_temp in
 
11304
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11305
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11306
    \-*) ;;
 
11307
    *) break;;
 
11308
  esac
 
11309
done
 
11310
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11311
 
 
11312
 
 
11313
# Only perform the check for file, if the check method requires it
 
11314
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
11315
case $deplibs_check_method in
 
11316
file_magic*)
 
11317
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
11318
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
11319
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
11320
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
11321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11322
else
 
11323
  case $MAGIC_CMD in
 
11324
[\\/*] |  ?:[\\/]*)
 
11325
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
11326
  ;;
 
11327
*)
 
11328
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
11329
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11330
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
11331
  for ac_dir in $ac_dummy; do
 
11332
    IFS="$lt_save_ifs"
 
11333
    test -z "$ac_dir" && ac_dir=.
 
11334
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
11335
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
11336
      if test -n "$file_magic_test_file"; then
 
11337
        case $deplibs_check_method in
 
11338
        "file_magic "*)
 
11339
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
11340
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
11341
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
11342
            $EGREP "$file_magic_regex" > /dev/null; then
 
11343
            :
 
11344
          else
 
11345
            cat <<_LT_EOF 1>&2
 
11346
 
 
11347
*** Warning: the command libtool uses to detect shared libraries,
 
11348
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
11349
*** The result is that libtool may fail to recognize shared libraries
 
11350
*** as such.  This will affect the creation of libtool libraries that
 
11351
*** depend on shared libraries, but programs linked with such libtool
 
11352
*** libraries will work regardless of this problem.  Nevertheless, you
 
11353
*** may want to report the problem to your system manager and/or to
 
11354
*** bug-libtool@gnu.org
 
11355
 
 
11356
_LT_EOF
 
11357
          fi ;;
 
11358
        esac
 
11359
      fi
 
11360
      break
 
11361
    fi
 
11362
  done
 
11363
  IFS="$lt_save_ifs"
 
11364
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
11365
  ;;
 
11366
esac
 
11367
fi
 
11368
 
 
11369
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
11370
if test -n "$MAGIC_CMD"; then
 
11371
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
11372
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
11373
else
 
11374
  { echo "$as_me:$LINENO: result: no" >&5
 
11375
echo "${ECHO_T}no" >&6; }
 
11376
fi
 
11377
 
 
11378
 
 
11379
 
 
11380
 
 
11381
 
 
11382
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
11383
  if test -n "$ac_tool_prefix"; then
 
11384
    { echo "$as_me:$LINENO: checking for file" >&5
 
11385
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
11386
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
11387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11388
else
 
11389
  case $MAGIC_CMD in
 
11390
[\\/*] |  ?:[\\/]*)
 
11391
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
11392
  ;;
 
11393
*)
 
11394
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
11395
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11396
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
11397
  for ac_dir in $ac_dummy; do
 
11398
    IFS="$lt_save_ifs"
 
11399
    test -z "$ac_dir" && ac_dir=.
 
11400
    if test -f $ac_dir/file; then
 
11401
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
11402
      if test -n "$file_magic_test_file"; then
 
11403
        case $deplibs_check_method in
 
11404
        "file_magic "*)
 
11405
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
11406
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
11407
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
11408
            $EGREP "$file_magic_regex" > /dev/null; then
 
11409
            :
 
11410
          else
 
11411
            cat <<_LT_EOF 1>&2
 
11412
 
 
11413
*** Warning: the command libtool uses to detect shared libraries,
 
11414
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
11415
*** The result is that libtool may fail to recognize shared libraries
 
11416
*** as such.  This will affect the creation of libtool libraries that
 
11417
*** depend on shared libraries, but programs linked with such libtool
 
11418
*** libraries will work regardless of this problem.  Nevertheless, you
 
11419
*** may want to report the problem to your system manager and/or to
 
11420
*** bug-libtool@gnu.org
 
11421
 
 
11422
_LT_EOF
 
11423
          fi ;;
 
11424
        esac
 
11425
      fi
 
11426
      break
 
11427
    fi
 
11428
  done
 
11429
  IFS="$lt_save_ifs"
 
11430
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
11431
  ;;
 
11432
esac
 
11433
fi
 
11434
 
 
11435
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
11436
if test -n "$MAGIC_CMD"; then
 
11437
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
11438
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
11439
else
 
11440
  { echo "$as_me:$LINENO: result: no" >&5
 
11441
echo "${ECHO_T}no" >&6; }
 
11442
fi
 
11443
 
 
11444
 
 
11445
  else
 
11446
    MAGIC_CMD=:
 
11447
  fi
 
11448
fi
 
11449
 
 
11450
  fi
 
11451
  ;;
 
11452
esac
 
11453
 
8157
11454
# Use C for the default configuration in the libtool script
8158
 
tagname=
 
11455
 
8159
11456
lt_save_CC="$CC"
8160
11457
ac_ext=c
8161
11458
ac_cpp='$CPP $CPPFLAGS'
8178
11475
lt_simple_link_test_code='int main(){return(0);}'
8179
11476
 
8180
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
8181
11483
# If no C compiler was specified, use CC.
8182
11484
LTCC=${LTCC-"$CC"}
8183
11485
 
8187
11489
# Allow CC to be a program name with arguments.
8188
11490
compiler=$CC
8189
11491
 
 
11492
# Save the default compiler, since it gets overwritten when the other
 
11493
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
11494
compiler_DEFAULT=$CC
8190
11495
 
8191
11496
# save warnings/boilerplate of simple test code
8192
11497
ac_outfile=conftest.$ac_objext
8193
11498
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8194
11499
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8195
11500
_lt_compiler_boilerplate=`cat conftest.err`
8196
 
$rm conftest*
 
11501
$RM conftest*
8197
11502
 
8198
11503
ac_outfile=conftest.$ac_objext
8199
11504
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8200
11505
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201
11506
_lt_linker_boilerplate=`cat conftest.err`
8202
 
$rm -r conftest*
8203
 
 
8204
 
 
 
11507
$RM -r conftest*
 
11508
 
 
11509
 
 
11510
## CAVEAT EMPTOR:
 
11511
## There is no encapsulation within the following macros, do not change
 
11512
## the running order or otherwise move them around unless you know exactly
 
11513
## what you are doing...
 
11514
if test -n "$compiler"; then
8205
11515
 
8206
11516
lt_prog_compiler_no_builtin_flag=
8207
11517
 
8208
11518
if test "$GCC" = yes; then
8209
11519
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8210
11520
 
8211
 
 
8212
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
11521
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213
11522
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8214
11523
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8215
11524
  echo $ECHO_N "(cached) $ECHO_C" >&6
8216
11525
else
8217
11526
  lt_cv_prog_compiler_rtti_exceptions=no
8218
 
  ac_outfile=conftest.$ac_objext
 
11527
   ac_outfile=conftest.$ac_objext
8219
11528
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220
11529
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8221
11530
   # Insert the option either (1) after the last *FLAGS variable, or
8227
11536
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228
11537
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229
11538
   -e 's:$: $lt_compiler_flag:'`
8230
 
   (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
 
11539
   (eval echo "\"\$as_me:11539: $lt_compile\"" >&5)
8231
11540
   (eval "$lt_compile" 2>conftest.err)
8232
11541
   ac_status=$?
8233
11542
   cat conftest.err >&5
8234
 
   echo "$as_me:8234: \$? = $ac_status" >&5
 
11543
   echo "$as_me:11543: \$? = $ac_status" >&5
8235
11544
   if (exit $ac_status) && test -s "$ac_outfile"; then
8236
11545
     # The compiler can only warn and ignore the option if not recognized
8237
11546
     # So say no if there are warnings other than the usual output.
8238
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11547
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8239
11548
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8240
11549
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8241
11550
       lt_cv_prog_compiler_rtti_exceptions=yes
8242
11551
     fi
8243
11552
   fi
8244
 
   $rm conftest*
 
11553
   $RM conftest*
8245
11554
 
8246
11555
fi
8247
11556
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8255
11564
 
8256
11565
fi
8257
11566
 
8258
 
lt_prog_compiler_wl=
 
11567
 
 
11568
 
 
11569
 
 
11570
 
 
11571
 
 
11572
  lt_prog_compiler_wl=
8259
11573
lt_prog_compiler_pic=
8260
11574
lt_prog_compiler_static=
8261
11575
 
8276
11590
      ;;
8277
11591
 
8278
11592
    amigaos*)
8279
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8280
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8281
 
      # like `-m68040'.
8282
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
11593
      case $host_cpu in
 
11594
      powerpc)
 
11595
            # see comment about AmigaOS4 .so support
 
11596
            lt_prog_compiler_pic='-fPIC'
 
11597
        ;;
 
11598
      m68k)
 
11599
            # FIXME: we need at least 68020 code to build shared libraries, but
 
11600
            # adding the `-m68020' flag to GCC prevents building anything better,
 
11601
            # like `-m68040'.
 
11602
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
11603
        ;;
 
11604
      esac
8283
11605
      ;;
8284
11606
 
8285
11607
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8286
11608
      # PIC is the default for these OSes.
8287
11609
      ;;
8288
11610
 
8289
 
    mingw* | cygwin* | pw32* | os2*)
 
11611
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8290
11612
      # This hack is so that the source file can tell whether it is being
8291
11613
      # built for inclusion in a dll (and should export symbols for example).
8292
11614
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8300
11622
      lt_prog_compiler_pic='-fno-common'
8301
11623
      ;;
8302
11624
 
 
11625
    hpux*)
 
11626
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
11627
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
11628
      # sets the default TLS model and affects inlining.
 
11629
      case $host_cpu in
 
11630
      hppa*64*)
 
11631
        # +Z the default
 
11632
        ;;
 
11633
      *)
 
11634
        lt_prog_compiler_pic='-fPIC'
 
11635
        ;;
 
11636
      esac
 
11637
      ;;
 
11638
 
8303
11639
    interix[3-9]*)
8304
11640
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8305
11641
      # Instead, we relocate shared libraries at runtime.
8312
11648
      enable_shared=no
8313
11649
      ;;
8314
11650
 
 
11651
    *nto* | *qnx*)
 
11652
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
11653
      # it will coredump.
 
11654
      lt_prog_compiler_pic='-fPIC -shared'
 
11655
      ;;
 
11656
 
8315
11657
    sysv4*MP*)
8316
11658
      if test -d /usr/nec; then
8317
11659
        lt_prog_compiler_pic=-Kconform_pic
8318
11660
      fi
8319
11661
      ;;
8320
11662
 
8321
 
    hpux*)
8322
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8323
 
      # not for PA HP-UX.
8324
 
      case $host_cpu in
8325
 
      hppa*64*|ia64*)
8326
 
        # +Z the default
8327
 
        ;;
8328
 
      *)
8329
 
        lt_prog_compiler_pic='-fPIC'
8330
 
        ;;
8331
 
      esac
8332
 
      ;;
8333
 
 
8334
11663
    *)
8335
11664
      lt_prog_compiler_pic='-fPIC'
8336
11665
      ;;
8347
11676
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8348
11677
      fi
8349
11678
      ;;
8350
 
      darwin*)
8351
 
        # PIC is the default on this platform
8352
 
        # Common symbols not allowed in MH_DYLIB files
8353
 
       case $cc_basename in
8354
 
         xlc*)
8355
 
         lt_prog_compiler_pic='-qnocommon'
8356
 
         lt_prog_compiler_wl='-Wl,'
8357
 
         ;;
8358
 
       esac
8359
 
       ;;
8360
11679
 
8361
 
    mingw* | cygwin* | pw32* | os2*)
 
11680
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8362
11681
      # This hack is so that the source file can tell whether it is being
8363
11682
      # built for inclusion in a dll (and should export symbols for example).
8364
11683
      lt_prog_compiler_pic='-DDLL_EXPORT'
8386
11705
      lt_prog_compiler_static='-non_shared'
8387
11706
      ;;
8388
11707
 
8389
 
    newsos6)
8390
 
      lt_prog_compiler_pic='-KPIC'
8391
 
      lt_prog_compiler_static='-Bstatic'
8392
 
      ;;
8393
 
 
8394
11708
    linux* | k*bsd*-gnu)
8395
11709
      case $cc_basename in
8396
 
      icc* | ecc*)
 
11710
      # old Intel for x86_64 which still supported -KPIC.
 
11711
      ecc*)
8397
11712
        lt_prog_compiler_wl='-Wl,'
8398
11713
        lt_prog_compiler_pic='-KPIC'
8399
11714
        lt_prog_compiler_static='-static'
8400
11715
        ;;
 
11716
      # icc used to be incompatible with GCC.
 
11717
      # ICC 10 doesn't accept -KPIC any more.
 
11718
      icc* | ifort*)
 
11719
        lt_prog_compiler_wl='-Wl,'
 
11720
        lt_prog_compiler_pic='-fPIC'
 
11721
        lt_prog_compiler_static='-static'
 
11722
        ;;
 
11723
      # Lahey Fortran 8.1.
 
11724
      lf95*)
 
11725
        lt_prog_compiler_wl='-Wl,'
 
11726
        lt_prog_compiler_pic='--shared'
 
11727
        lt_prog_compiler_static='--static'
 
11728
        ;;
8401
11729
      pgcc* | pgf77* | pgf90* | pgf95*)
8402
11730
        # Portland Group compilers (*not* the Pentium gcc compiler,
8403
11731
        # which looks to be a dead project)
8410
11738
        # All Alpha code is PIC.
8411
11739
        lt_prog_compiler_static='-non_shared'
8412
11740
        ;;
 
11741
      xl*)
 
11742
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
11743
        lt_prog_compiler_wl='-Wl,'
 
11744
        lt_prog_compiler_pic='-qpic'
 
11745
        lt_prog_compiler_static='-qstaticlink'
 
11746
        ;;
8413
11747
      *)
8414
 
        case `$CC -V 2>&1 | sed 5q` in
 
11748
        case `$CC -V 2>&1 | sed 5q` in
8415
11749
        *Sun\ C*)
8416
11750
          # Sun C 5.9
8417
11751
          lt_prog_compiler_pic='-KPIC'
8429
11763
      esac
8430
11764
      ;;
8431
11765
 
 
11766
    newsos6)
 
11767
      lt_prog_compiler_pic='-KPIC'
 
11768
      lt_prog_compiler_static='-Bstatic'
 
11769
      ;;
 
11770
 
 
11771
    *nto* | *qnx*)
 
11772
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
11773
      # it will coredump.
 
11774
      lt_prog_compiler_pic='-fPIC -shared'
 
11775
      ;;
 
11776
 
8432
11777
    osf3* | osf4* | osf5*)
8433
11778
      lt_prog_compiler_wl='-Wl,'
8434
11779
      # All OSF/1 code is PIC.
8491
11836
    esac
8492
11837
  fi
8493
11838
 
 
11839
case $host_os in
 
11840
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11841
  *djgpp*)
 
11842
    lt_prog_compiler_pic=
 
11843
    ;;
 
11844
  *)
 
11845
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
11846
    ;;
 
11847
esac
8494
11848
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8495
11849
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8496
11850
 
 
11851
 
 
11852
 
 
11853
 
 
11854
 
 
11855
 
8497
11856
#
8498
11857
# Check to make sure the PIC flag actually works.
8499
11858
#
8500
11859
if test -n "$lt_prog_compiler_pic"; then
8501
 
 
8502
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
11860
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8503
11861
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8504
11862
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8505
11863
  echo $ECHO_N "(cached) $ECHO_C" >&6
8506
11864
else
8507
11865
  lt_cv_prog_compiler_pic_works=no
8508
 
  ac_outfile=conftest.$ac_objext
 
11866
   ac_outfile=conftest.$ac_objext
8509
11867
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510
11868
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8511
11869
   # Insert the option either (1) after the last *FLAGS variable, or
8517
11875
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518
11876
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519
11877
   -e 's:$: $lt_compiler_flag:'`
8520
 
   (eval echo "\"\$as_me:8520: $lt_compile\"" >&5)
 
11878
   (eval echo "\"\$as_me:11878: $lt_compile\"" >&5)
8521
11879
   (eval "$lt_compile" 2>conftest.err)
8522
11880
   ac_status=$?
8523
11881
   cat conftest.err >&5
8524
 
   echo "$as_me:8524: \$? = $ac_status" >&5
 
11882
   echo "$as_me:11882: \$? = $ac_status" >&5
8525
11883
   if (exit $ac_status) && test -s "$ac_outfile"; then
8526
11884
     # The compiler can only warn and ignore the option if not recognized
8527
11885
     # So say no if there are warnings other than the usual output.
8528
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11886
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8529
11887
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530
11888
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8531
11889
       lt_cv_prog_compiler_pic_works=yes
8532
11890
     fi
8533
11891
   fi
8534
 
   $rm conftest*
 
11892
   $RM conftest*
8535
11893
 
8536
11894
fi
8537
11895
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8548
11906
fi
8549
11907
 
8550
11908
fi
8551
 
case $host_os in
8552
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8553
 
  *djgpp*)
8554
 
    lt_prog_compiler_pic=
8555
 
    ;;
8556
 
  *)
8557
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8558
 
    ;;
8559
 
esac
 
11909
 
 
11910
 
 
11911
 
 
11912
 
 
11913
 
8560
11914
 
8561
11915
#
8562
11916
# Check to make sure the static flag actually works.
8577
11931
     if test -s conftest.err; then
8578
11932
       # Append any errors to the config.log.
8579
11933
       cat conftest.err 1>&5
8580
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11934
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8581
11935
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8582
11936
       if diff conftest.exp conftest.er2 >/dev/null; then
8583
11937
         lt_cv_prog_compiler_static_works=yes
8586
11940
       lt_cv_prog_compiler_static_works=yes
8587
11941
     fi
8588
11942
   fi
8589
 
   $rm -r conftest*
 
11943
   $RM -r conftest*
8590
11944
   LDFLAGS="$save_LDFLAGS"
8591
11945
 
8592
11946
fi
8600
11954
fi
8601
11955
 
8602
11956
 
8603
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8604
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8605
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8606
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8607
 
else
8608
 
  lt_cv_prog_compiler_c_o=no
8609
 
   $rm -r conftest 2>/dev/null
8610
 
   mkdir conftest
8611
 
   cd conftest
8612
 
   mkdir out
8613
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614
 
 
8615
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8616
 
   # Insert the option either (1) after the last *FLAGS variable, or
8617
 
   # (2) before a word containing "conftest.", or (3) at the end.
8618
 
   # Note that $ac_compile itself does not contain backslashes and begins
8619
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8620
 
   lt_compile=`echo "$ac_compile" | $SED \
8621
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623
 
   -e 's:$: $lt_compiler_flag:'`
8624
 
   (eval echo "\"\$as_me:8624: $lt_compile\"" >&5)
8625
 
   (eval "$lt_compile" 2>out/conftest.err)
8626
 
   ac_status=$?
8627
 
   cat out/conftest.err >&5
8628
 
   echo "$as_me:8628: \$? = $ac_status" >&5
8629
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8630
 
   then
8631
 
     # The compiler can only warn and ignore the option if not recognized
8632
 
     # So say no if there are warnings
8633
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8634
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636
 
       lt_cv_prog_compiler_c_o=yes
8637
 
     fi
8638
 
   fi
8639
 
   chmod u+w . 2>&5
8640
 
   $rm conftest*
8641
 
   # SGI C++ compiler will create directory out/ii_files/ for
8642
 
   # template instantiation
8643
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8644
 
   $rm out/* && rmdir out
8645
 
   cd ..
8646
 
   rmdir conftest
8647
 
   $rm conftest*
8648
 
 
8649
 
fi
8650
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8651
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
11957
 
 
11958
 
 
11959
 
 
11960
 
 
11961
 
 
11962
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11963
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
11964
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
11965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11966
else
 
11967
  lt_cv_prog_compiler_c_o=no
 
11968
   $RM -r conftest 2>/dev/null
 
11969
   mkdir conftest
 
11970
   cd conftest
 
11971
   mkdir out
 
11972
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11973
 
 
11974
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11975
   # Insert the option either (1) after the last *FLAGS variable, or
 
11976
   # (2) before a word containing "conftest.", or (3) at the end.
 
11977
   # Note that $ac_compile itself does not contain backslashes and begins
 
11978
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11979
   lt_compile=`echo "$ac_compile" | $SED \
 
11980
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11981
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11982
   -e 's:$: $lt_compiler_flag:'`
 
11983
   (eval echo "\"\$as_me:11983: $lt_compile\"" >&5)
 
11984
   (eval "$lt_compile" 2>out/conftest.err)
 
11985
   ac_status=$?
 
11986
   cat out/conftest.err >&5
 
11987
   echo "$as_me:11987: \$? = $ac_status" >&5
 
11988
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11989
   then
 
11990
     # The compiler can only warn and ignore the option if not recognized
 
11991
     # So say no if there are warnings
 
11992
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11993
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11994
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11995
       lt_cv_prog_compiler_c_o=yes
 
11996
     fi
 
11997
   fi
 
11998
   chmod u+w . 2>&5
 
11999
   $RM conftest*
 
12000
   # SGI C++ compiler will create directory out/ii_files/ for
 
12001
   # template instantiation
 
12002
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
12003
   $RM out/* && rmdir out
 
12004
   cd ..
 
12005
   $RM -r conftest
 
12006
   $RM conftest*
 
12007
 
 
12008
fi
 
12009
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
12010
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12018
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12019
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
12020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12021
else
 
12022
  lt_cv_prog_compiler_c_o=no
 
12023
   $RM -r conftest 2>/dev/null
 
12024
   mkdir conftest
 
12025
   cd conftest
 
12026
   mkdir out
 
12027
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12028
 
 
12029
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12030
   # Insert the option either (1) after the last *FLAGS variable, or
 
12031
   # (2) before a word containing "conftest.", or (3) at the end.
 
12032
   # Note that $ac_compile itself does not contain backslashes and begins
 
12033
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12034
   lt_compile=`echo "$ac_compile" | $SED \
 
12035
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12036
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12037
   -e 's:$: $lt_compiler_flag:'`
 
12038
   (eval echo "\"\$as_me:12038: $lt_compile\"" >&5)
 
12039
   (eval "$lt_compile" 2>out/conftest.err)
 
12040
   ac_status=$?
 
12041
   cat out/conftest.err >&5
 
12042
   echo "$as_me:12042: \$? = $ac_status" >&5
 
12043
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12044
   then
 
12045
     # The compiler can only warn and ignore the option if not recognized
 
12046
     # So say no if there are warnings
 
12047
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12048
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12049
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12050
       lt_cv_prog_compiler_c_o=yes
 
12051
     fi
 
12052
   fi
 
12053
   chmod u+w . 2>&5
 
12054
   $RM conftest*
 
12055
   # SGI C++ compiler will create directory out/ii_files/ for
 
12056
   # template instantiation
 
12057
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
12058
   $RM out/* && rmdir out
 
12059
   cd ..
 
12060
   $RM -r conftest
 
12061
   $RM conftest*
 
12062
 
 
12063
fi
 
12064
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
12065
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
12066
 
 
12067
 
8652
12068
 
8653
12069
 
8654
12070
hard_links="nottested"
8657
12073
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8658
12074
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8659
12075
  hard_links=yes
8660
 
  $rm conftest*
 
12076
  $RM conftest*
8661
12077
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662
12078
  touch conftest.a
8663
12079
  ln conftest.a conftest.b 2>&5 || hard_links=no
8673
12089
  need_locks=no
8674
12090
fi
8675
12091
 
8676
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12092
 
 
12093
 
 
12094
 
 
12095
 
 
12096
 
 
12097
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8677
12098
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8678
12099
 
8679
12100
  runpath_var=
8680
12101
  allow_undefined_flag=
8681
 
  enable_shared_with_static_runtimes=no
 
12102
  always_export_symbols=no
8682
12103
  archive_cmds=
8683
12104
  archive_expsym_cmds=
8684
 
  old_archive_From_new_cmds=
8685
 
  old_archive_from_expsyms_cmds=
 
12105
  compiler_needs_object=no
 
12106
  enable_shared_with_static_runtimes=no
8686
12107
  export_dynamic_flag_spec=
8687
 
  whole_archive_flag_spec=
8688
 
  thread_safe_flag_spec=
 
12108
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12109
  hardcode_automatic=no
 
12110
  hardcode_direct=no
 
12111
  hardcode_direct_absolute=no
8689
12112
  hardcode_libdir_flag_spec=
8690
12113
  hardcode_libdir_flag_spec_ld=
8691
12114
  hardcode_libdir_separator=
8692
 
  hardcode_direct=no
8693
12115
  hardcode_minus_L=no
8694
12116
  hardcode_shlibpath_var=unsupported
 
12117
  inherit_rpath=no
8695
12118
  link_all_deplibs=unknown
8696
 
  hardcode_automatic=no
8697
12119
  module_cmds=
8698
12120
  module_expsym_cmds=
8699
 
  always_export_symbols=no
8700
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12121
  old_archive_from_new_cmds=
 
12122
  old_archive_from_expsyms_cmds=
 
12123
  thread_safe_flag_spec=
 
12124
  whole_archive_flag_spec=
8701
12125
  # include_expsyms should be a list of space-separated symbols to be *always*
8702
12126
  # included in the symbol list
8703
12127
  include_expsyms=
8713
12137
  # preloaded symbol tables.
8714
12138
  # Exclude shared library initialization/finalization symbols.
8715
12139
  extract_expsyms_cmds=
8716
 
  # Just being paranoid about ensuring that cc_basename is set.
8717
 
  for cc_temp in $compiler""; do
8718
 
  case $cc_temp in
8719
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8720
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8721
 
    \-*) ;;
8722
 
    *) break;;
8723
 
  esac
8724
 
done
8725
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8726
12140
 
8727
12141
  case $host_os in
8728
 
  cygwin* | mingw* | pw32*)
 
12142
  cygwin* | mingw* | pw32* | cegcc*)
8729
12143
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8730
12144
    # When not using gcc, we currently assume that we are using
8731
12145
    # Microsoft Visual C++.
8751
12165
    # are reset later if shared libraries are not supported. Putting them
8752
12166
    # here allows them to be overridden if necessary.
8753
12167
    runpath_var=LD_RUN_PATH
8754
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
12168
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755
12169
    export_dynamic_flag_spec='${wl}--export-dynamic'
8756
12170
    # ancient GNU ld didn't support --whole-archive et. al.
8757
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8758
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8759
 
      else
8760
 
        whole_archive_flag_spec=
 
12171
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
12172
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12173
    else
 
12174
      whole_archive_flag_spec=
8761
12175
    fi
8762
12176
    supports_anon_versioning=no
8763
 
    case `$LD -v 2>/dev/null` in
 
12177
    case `$LD -v 2>&1` in
8764
12178
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8765
12179
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8766
12180
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8774
12188
      # On AIX/PPC, the GNU linker is very broken
8775
12189
      if test "$host_cpu" != ia64; then
8776
12190
        ld_shlibs=no
8777
 
        cat <<EOF 1>&2
 
12191
        cat <<_LT_EOF 1>&2
8778
12192
 
8779
12193
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8780
12194
*** to be unable to reliably create shared libraries on AIX.
8782
12196
*** really care for shared libraries, you may want to modify your PATH
8783
12197
*** so that a non-GNU linker is found, and then restart.
8784
12198
 
8785
 
EOF
 
12199
_LT_EOF
8786
12200
      fi
8787
12201
      ;;
8788
12202
 
8789
12203
    amigaos*)
8790
 
      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)'
8791
 
      hardcode_libdir_flag_spec='-L$libdir'
8792
 
      hardcode_minus_L=yes
8793
 
 
8794
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8795
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8796
 
      # to version 4, is to share data among multiple programs linked
8797
 
      # with the same dynamic library.  Since this doesn't match the
8798
 
      # behavior of shared libraries on other platforms, we can't use
8799
 
      # them.
8800
 
      ld_shlibs=no
 
12204
      case $host_cpu in
 
12205
      powerpc)
 
12206
            # see comment about AmigaOS4 .so support
 
12207
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12208
            archive_expsym_cmds=''
 
12209
        ;;
 
12210
      m68k)
 
12211
            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)'
 
12212
            hardcode_libdir_flag_spec='-L$libdir'
 
12213
            hardcode_minus_L=yes
 
12214
        ;;
 
12215
      esac
8801
12216
      ;;
8802
12217
 
8803
12218
    beos*)
8804
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12219
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805
12220
        allow_undefined_flag=unsupported
8806
12221
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8807
12222
        # support --undefined.  This deserves some investigation.  FIXME
8811
12226
      fi
8812
12227
      ;;
8813
12228
 
8814
 
    cygwin* | mingw* | pw32*)
8815
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
12229
    cygwin* | mingw* | pw32* | cegcc*)
 
12230
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8816
12231
      # as there is no search path for DLLs.
8817
12232
      hardcode_libdir_flag_spec='-L$libdir'
8818
12233
      allow_undefined_flag=unsupported
8819
12234
      always_export_symbols=no
8820
12235
      enable_shared_with_static_runtimes=yes
8821
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
12236
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8822
12237
 
8823
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12238
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8824
12239
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8825
12240
        # If the export-symbols file already is a .def file (1st line
8826
12241
        # is EXPORTS), use it as is; otherwise, prepend...
8851
12266
      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'
8852
12267
      ;;
8853
12268
 
8854
 
    gnu* | linux* | k*bsd*-gnu)
8855
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12269
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
12270
      tmp_diet=no
 
12271
      if test "$host_os" = linux-dietlibc; then
 
12272
        case $cc_basename in
 
12273
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
12274
        esac
 
12275
      fi
 
12276
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
12277
         && test "$tmp_diet" = no
 
12278
      then
8856
12279
        tmp_addflag=
 
12280
        tmp_sharedflag='-shared'
8857
12281
        case $cc_basename,$host_cpu in
8858
 
        pgcc*)                          # Portland Group C compiler
8859
 
          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'
 
12282
        pgcc*)                          # Portland Group C compiler
 
12283
          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'
8860
12284
          tmp_addflag=' $pic_flag'
8861
12285
          ;;
8862
12286
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8863
 
          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'
 
12287
          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'
8864
12288
          tmp_addflag=' $pic_flag -Mnomain' ;;
8865
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
12289
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8866
12290
          tmp_addflag=' -i_dynamic' ;;
8867
12291
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8868
12292
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8869
12293
        ifc* | ifort*)                  # Intel Fortran compiler
8870
12294
          tmp_addflag=' -nofor_main' ;;
 
12295
        lf95*)                          # Lahey Fortran 8.1
 
12296
          whole_archive_flag_spec=
 
12297
          tmp_sharedflag='--shared' ;;
 
12298
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
12299
          tmp_sharedflag='-qmkshrobj'
 
12300
          tmp_addflag= ;;
8871
12301
        esac
8872
12302
        case `$CC -V 2>&1 | sed 5q` in
8873
12303
        *Sun\ C*)                       # Sun C 5.9
8874
 
          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'
 
12304
          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'
 
12305
          compiler_needs_object=yes
8875
12306
          tmp_sharedflag='-G' ;;
8876
12307
        *Sun\ F*)                       # Sun Fortran 8.3
8877
12308
          tmp_sharedflag='-G' ;;
8878
 
        *)
8879
 
          tmp_sharedflag='-shared' ;;
8880
12309
        esac
8881
12310
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882
12311
 
8883
 
        if test $supports_anon_versioning = yes; then
8884
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8885
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8886
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8887
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8888
 
        fi
8889
 
        link_all_deplibs=no
 
12312
        if test "x$supports_anon_versioning" = xyes; then
 
12313
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
12314
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12315
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
12316
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12317
        fi
 
12318
 
 
12319
        case $cc_basename in
 
12320
        xlf*)
 
12321
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
12322
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
12323
          hardcode_libdir_flag_spec=
 
12324
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
12325
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
12326
          if test "x$supports_anon_versioning" = xyes; then
 
12327
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
12328
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12329
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
12330
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
12331
          fi
 
12332
          ;;
 
12333
        esac
8890
12334
      else
8891
 
        ld_shlibs=no
 
12335
        ld_shlibs=no
8892
12336
      fi
8893
12337
      ;;
8894
12338
 
8895
 
    netbsd* | netbsdelf*-gnu)
8896
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12339
    netbsd*)
 
12340
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8897
12341
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8898
12342
        wlarc=
8899
12343
      else
8903
12347
      ;;
8904
12348
 
8905
12349
    solaris*)
8906
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
12350
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8907
12351
        ld_shlibs=no
8908
 
        cat <<EOF 1>&2
 
12352
        cat <<_LT_EOF 1>&2
8909
12353
 
8910
12354
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8911
12355
*** create shared libraries on Solaris systems.  Therefore, libtool
8914
12358
*** your PATH or compiler configuration so that the native linker is
8915
12359
*** used, and then restart.
8916
12360
 
8917
 
EOF
8918
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12361
_LT_EOF
 
12362
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919
12363
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920
12364
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8921
12365
      else
8939
12383
_LT_EOF
8940
12384
        ;;
8941
12385
        *)
8942
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8943
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8944
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8945
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
12386
          # For security reasons, it is highly recommended that you always
 
12387
          # use absolute paths for naming shared libraries, and exclude the
 
12388
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
12389
          # requires that you compile everything twice, which is a pain.
 
12390
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12391
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
12392
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12393
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946
12394
          else
8947
12395
            ld_shlibs=no
8948
12396
          fi
8958
12406
      ;;
8959
12407
 
8960
12408
    *)
8961
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12409
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962
12410
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963
12411
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964
12412
      else
9000
12448
      else
9001
12449
        # If we're using GNU nm, then we don't want the "-C" option.
9002
12450
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9003
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9004
 
          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'
 
12451
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
12452
          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'
9005
12453
        else
9006
 
          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'
 
12454
          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'
9007
12455
        fi
9008
12456
        aix_use_runtimelinking=no
9009
12457
 
9012
12460
        # need to do runtime linking.
9013
12461
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9014
12462
          for ld_flag in $LDFLAGS; do
9015
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9016
 
            aix_use_runtimelinking=yes
9017
 
            break
9018
 
          fi
 
12463
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
12464
            aix_use_runtimelinking=yes
 
12465
            break
 
12466
          fi
9019
12467
          done
9020
12468
          ;;
9021
12469
        esac
9032
12480
 
9033
12481
      archive_cmds=''
9034
12482
      hardcode_direct=yes
 
12483
      hardcode_direct_absolute=yes
9035
12484
      hardcode_libdir_separator=':'
9036
12485
      link_all_deplibs=yes
 
12486
      file_list_spec='${wl}-f,'
9037
12487
 
9038
12488
      if test "$GCC" = yes; then
9039
12489
        case $host_os in aix4.[012]|aix4.[012].*)
9040
12490
        # We only want to do this on AIX 4.2 and lower, the check
9041
12491
        # below for broken collect2 doesn't work under 4.3+
9042
12492
          collect2name=`${CC} -print-prog-name=collect2`
9043
 
          if test -f "$collect2name" && \
9044
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12493
          if test -f "$collect2name" &&
 
12494
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9045
12495
          then
9046
 
          # We have reworked collect2
9047
 
          :
 
12496
          # We have reworked collect2
 
12497
          :
9048
12498
          else
9049
 
          # We have old collect2
9050
 
          hardcode_direct=unsupported
9051
 
          # It fails to find uninstalled libraries when the uninstalled
9052
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9053
 
          # to unsupported forces relinking
9054
 
          hardcode_minus_L=yes
9055
 
          hardcode_libdir_flag_spec='-L$libdir'
9056
 
          hardcode_libdir_separator=
 
12499
          # We have old collect2
 
12500
          hardcode_direct=unsupported
 
12501
          # It fails to find uninstalled libraries when the uninstalled
 
12502
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12503
          # to unsupported forces relinking
 
12504
          hardcode_minus_L=yes
 
12505
          hardcode_libdir_flag_spec='-L$libdir'
 
12506
          hardcode_libdir_separator=
9057
12507
          fi
9058
12508
          ;;
9059
12509
        esac
9064
12514
      else
9065
12515
        # not using gcc
9066
12516
        if test "$host_cpu" = ia64; then
9067
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9068
 
        # chokes on -Wl,-G. The following line is correct:
 
12517
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12518
        # chokes on -Wl,-G. The following line is correct:
9069
12519
          shared_flag='-G'
9070
12520
        else
9071
12521
          if test "$aix_use_runtimelinking" = yes; then
9076
12526
        fi
9077
12527
      fi
9078
12528
 
 
12529
      export_dynamic_flag_spec='${wl}-bexpall'
9079
12530
      # It seems that -bexpall does not export symbols beginning with
9080
12531
      # underscore (_), so it is better to generate a list of symbols to export.
9081
12532
      always_export_symbols=yes
9083
12534
        # Warning - without using the other runtime loading flags (-brtl),
9084
12535
        # -berok will link without error, but may produce a broken library.
9085
12536
        allow_undefined_flag='-berok'
9086
 
       # Determine the default libpath from the value encoded in an empty executable.
9087
 
       cat >conftest.$ac_ext <<_ACEOF
 
12537
        # Determine the default libpath from the value encoded in an
 
12538
        # empty executable.
 
12539
        cat >conftest.$ac_ext <<_ACEOF
9088
12540
/* confdefs.h.  */
9089
12541
_ACEOF
9090
12542
cat confdefs.h >>conftest.$ac_ext
9091
12543
cat >>conftest.$ac_ext <<_ACEOF
9092
12544
/* end confdefs.h.  */
9093
12545
 
9094
 
int
9095
 
main ()
 
12546
int main (void)
9096
12547
{
9097
12548
 
9098
 
  ;
9099
 
  return 0;
 
12549
 ;
 
12550
 return 0;
9100
12551
}
9101
12552
_ACEOF
9102
12553
rm -f conftest.$ac_objext conftest$ac_exeext
9141
12592
      conftest$ac_exeext conftest.$ac_ext
9142
12593
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9143
12594
 
9144
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9145
 
        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"
9146
 
       else
 
12595
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12596
        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"
 
12597
      else
9147
12598
        if test "$host_cpu" = ia64; then
9148
12599
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9149
12600
          allow_undefined_flag="-z nodefs"
9150
12601
          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"
9151
12602
        else
9152
 
         # Determine the default libpath from the value encoded in an empty executable.
 
12603
         # Determine the default libpath from the value encoded in an
 
12604
         # empty executable.
9153
12605
         cat >conftest.$ac_ext <<_ACEOF
9154
12606
/* confdefs.h.  */
9155
12607
_ACEOF
9157
12609
cat >>conftest.$ac_ext <<_ACEOF
9158
12610
/* end confdefs.h.  */
9159
12611
 
9160
 
int
9161
 
main ()
 
12612
int main (void)
9162
12613
{
9163
12614
 
9164
 
  ;
9165
 
  return 0;
 
12615
 ;
 
12616
 return 0;
9166
12617
}
9167
12618
_ACEOF
9168
12619
rm -f conftest.$ac_objext conftest$ac_exeext
9222
12673
      ;;
9223
12674
 
9224
12675
    amigaos*)
9225
 
      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)'
9226
 
      hardcode_libdir_flag_spec='-L$libdir'
9227
 
      hardcode_minus_L=yes
9228
 
      # see comment about different semantics on the GNU ld section
9229
 
      ld_shlibs=no
 
12676
      case $host_cpu in
 
12677
      powerpc)
 
12678
            # see comment about AmigaOS4 .so support
 
12679
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12680
            archive_expsym_cmds=''
 
12681
        ;;
 
12682
      m68k)
 
12683
            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)'
 
12684
            hardcode_libdir_flag_spec='-L$libdir'
 
12685
            hardcode_minus_L=yes
 
12686
        ;;
 
12687
      esac
9230
12688
      ;;
9231
12689
 
9232
12690
    bsdi[45]*)
9233
12691
      export_dynamic_flag_spec=-rdynamic
9234
12692
      ;;
9235
12693
 
9236
 
    cygwin* | mingw* | pw32*)
 
12694
    cygwin* | mingw* | pw32* | cegcc*)
9237
12695
      # When not using gcc, we currently assume that we are using
9238
12696
      # Microsoft Visual C++.
9239
12697
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9245
12703
      # Tell ltmain to make .dll files, not .so files.
9246
12704
      shrext_cmds=".dll"
9247
12705
      # FIXME: Setting linknames here is a bad hack.
9248
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
12706
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9249
12707
      # The linker will automatically build a .lib file if we build a DLL.
9250
 
      old_archive_From_new_cmds='true'
 
12708
      old_archive_from_new_cmds='true'
9251
12709
      # FIXME: Should let the user specify the lib program.
9252
12710
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9253
12711
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9255
12713
      ;;
9256
12714
 
9257
12715
    darwin* | rhapsody*)
9258
 
      case $host_os in
9259
 
        rhapsody* | darwin1.[012])
9260
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9261
 
         ;;
9262
 
       *) # Darwin 1.3 on
9263
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9264
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9265
 
         else
9266
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
9267
 
             10.[012])
9268
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9269
 
               ;;
9270
 
             10.*)
9271
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9272
 
               ;;
9273
 
           esac
9274
 
         fi
9275
 
         ;;
9276
 
      esac
9277
 
      archive_cmds_need_lc=no
9278
 
      hardcode_direct=no
9279
 
      hardcode_automatic=yes
9280
 
      hardcode_shlibpath_var=unsupported
9281
 
      whole_archive_flag_spec=''
9282
 
      link_all_deplibs=yes
9283
 
    if test "$GCC" = yes ; then
9284
 
        output_verbose_link_cmd='echo'
9285
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9286
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9287
 
        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}"
9288
 
        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}"
9289
 
    else
9290
 
      case $cc_basename in
9291
 
        xlc*)
9292
 
         output_verbose_link_cmd='echo'
9293
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9294
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9295
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9296
 
         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}'
9297
 
          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}'
9298
 
          ;;
9299
 
       *)
9300
 
         ld_shlibs=no
9301
 
          ;;
9302
 
      esac
9303
 
    fi
 
12716
 
 
12717
 
 
12718
  archive_cmds_need_lc=no
 
12719
  hardcode_direct=no
 
12720
  hardcode_automatic=yes
 
12721
  hardcode_shlibpath_var=unsupported
 
12722
  whole_archive_flag_spec=''
 
12723
  link_all_deplibs=yes
 
12724
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
12725
  case $cc_basename in
 
12726
     ifort*) _lt_dar_can_shared=yes ;;
 
12727
     *) _lt_dar_can_shared=$GCC ;;
 
12728
  esac
 
12729
  if test "$_lt_dar_can_shared" = "yes"; then
 
12730
    output_verbose_link_cmd=echo
 
12731
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12732
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12733
    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}"
 
12734
    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}"
 
12735
 
 
12736
  else
 
12737
  ld_shlibs=no
 
12738
  fi
 
12739
 
9304
12740
      ;;
9305
12741
 
9306
12742
    dgux*)
9342
12778
 
9343
12779
    hpux9*)
9344
12780
      if test "$GCC" = yes; then
9345
 
        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'
 
12781
        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'
9346
12782
      else
9347
 
        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'
 
12783
        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'
9348
12784
      fi
9349
12785
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9350
12786
      hardcode_libdir_separator=:
9364
12800
      fi
9365
12801
      if test "$with_gnu_ld" = no; then
9366
12802
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
12803
        hardcode_libdir_flag_spec_ld='+b $libdir'
9367
12804
        hardcode_libdir_separator=:
9368
 
 
9369
12805
        hardcode_direct=yes
 
12806
        hardcode_direct_absolute=yes
9370
12807
        export_dynamic_flag_spec='${wl}-E'
9371
 
 
9372
12808
        # hardcode_minus_L: Not really in the search PATH,
9373
12809
        # but as the default location of the library.
9374
12810
        hardcode_minus_L=yes
9382
12818
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9383
12819
          ;;
9384
12820
        ia64*)
9385
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
12821
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9386
12822
          ;;
9387
12823
        *)
9388
12824
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407
12843
 
9408
12844
        case $host_cpu in
9409
12845
        hppa*64*|ia64*)
9410
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
9411
12846
          hardcode_direct=no
9412
12847
          hardcode_shlibpath_var=no
9413
12848
          ;;
9414
12849
        *)
9415
12850
          hardcode_direct=yes
 
12851
          hardcode_direct_absolute=yes
9416
12852
          export_dynamic_flag_spec='${wl}-E'
9417
12853
 
9418
12854
          # hardcode_minus_L: Not really in the search PATH,
9425
12861
 
9426
12862
    irix5* | irix6* | nonstopux*)
9427
12863
      if test "$GCC" = yes; then
9428
 
        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'
 
12864
        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'
 
12865
        # Try to use the -exported_symbol ld option, if it does not
 
12866
        # work, assume that -exports_file does not work either and
 
12867
        # implicitly export all symbols.
 
12868
        save_LDFLAGS="$LDFLAGS"
 
12869
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
12870
        cat >conftest.$ac_ext <<_ACEOF
 
12871
int foo(void) {}
 
12872
_ACEOF
 
12873
rm -f conftest.$ac_objext conftest$ac_exeext
 
12874
if { (ac_try="$ac_link"
 
12875
case "(($ac_try" in
 
12876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12877
  *) ac_try_echo=$ac_try;;
 
12878
esac
 
12879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12880
  (eval "$ac_link") 2>conftest.er1
 
12881
  ac_status=$?
 
12882
  grep -v '^ *+' conftest.er1 >conftest.err
 
12883
  rm -f conftest.er1
 
12884
  cat conftest.err >&5
 
12885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12886
  (exit $ac_status); } && {
 
12887
         test -z "$ac_c_werror_flag" ||
 
12888
         test ! -s conftest.err
 
12889
       } && test -s conftest$ac_exeext &&
 
12890
       $as_test_x conftest$ac_exeext; then
 
12891
  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'
 
12892
 
 
12893
else
 
12894
  echo "$as_me: failed program was:" >&5
 
12895
sed 's/^/| /' conftest.$ac_ext >&5
 
12896
 
 
12897
 
 
12898
fi
 
12899
 
 
12900
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12901
      conftest$ac_exeext conftest.$ac_ext
 
12902
        LDFLAGS="$save_LDFLAGS"
9429
12903
      else
9430
 
        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'
9431
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
12904
        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'
 
12905
        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'
9432
12906
      fi
 
12907
      archive_cmds_need_lc='no'
9433
12908
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434
12909
      hardcode_libdir_separator=:
 
12910
      inherit_rpath=yes
9435
12911
      link_all_deplibs=yes
9436
12912
      ;;
9437
12913
 
9438
 
    netbsd* | netbsdelf*-gnu)
9439
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12914
    netbsd*)
 
12915
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9440
12916
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9441
12917
      else
9442
12918
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9454
12930
      hardcode_shlibpath_var=no
9455
12931
      ;;
9456
12932
 
 
12933
    *nto* | *qnx*)
 
12934
      ;;
 
12935
 
9457
12936
    openbsd*)
9458
12937
      if test -f /usr/libexec/ld.so; then
9459
12938
        hardcode_direct=yes
9460
12939
        hardcode_shlibpath_var=no
9461
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12940
        hardcode_direct_absolute=yes
 
12941
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9462
12942
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9463
12943
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9464
12944
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9474
12954
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9475
12955
             ;;
9476
12956
          esac
9477
 
        fi
 
12957
        fi
9478
12958
      else
9479
12959
        ld_shlibs=no
9480
12960
      fi
9484
12964
      hardcode_libdir_flag_spec='-L$libdir'
9485
12965
      hardcode_minus_L=yes
9486
12966
      allow_undefined_flag=unsupported
9487
 
      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'
9488
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
12967
      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'
 
12968
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9489
12969
      ;;
9490
12970
 
9491
12971
    osf3*)
9492
12972
      if test "$GCC" = yes; then
9493
12973
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9494
 
        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'
 
12974
        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'
9495
12975
      else
9496
12976
        allow_undefined_flag=' -expect_unresolved \*'
9497
 
        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'
 
12977
        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'
9498
12978
      fi
 
12979
      archive_cmds_need_lc='no'
9499
12980
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500
12981
      hardcode_libdir_separator=:
9501
12982
      ;;
9503
12984
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9504
12985
      if test "$GCC" = yes; then
9505
12986
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9506
 
        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'
 
12987
        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'
9507
12988
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508
12989
      else
9509
12990
        allow_undefined_flag=' -expect_unresolved \*'
9510
 
        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'
9511
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9512
 
        $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'
 
12991
        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'
 
12992
        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~
 
12993
        $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'
9513
12994
 
9514
12995
        # Both c and cxx compiler support -rpath directly
9515
12996
        hardcode_libdir_flag_spec='-rpath $libdir'
9516
12997
      fi
 
12998
      archive_cmds_need_lc='no'
9517
12999
      hardcode_libdir_separator=:
9518
13000
      ;;
9519
13001
 
9520
13002
    solaris*)
9521
 
      no_undefined_flag=' -z text'
 
13003
      no_undefined_flag=' -z defs'
9522
13004
      if test "$GCC" = yes; then
9523
13005
        wlarc='${wl}'
9524
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9525
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9526
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13006
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13007
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13008
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9527
13009
      else
9528
 
        wlarc=''
9529
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9531
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13010
        case `$CC -V 2>&1` in
 
13011
        *"Compilers 5.0"*)
 
13012
          wlarc=''
 
13013
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13014
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13015
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
13016
          ;;
 
13017
        *)
 
13018
          wlarc='${wl}'
 
13019
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13020
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13021
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
13022
          ;;
 
13023
        esac
9532
13024
      fi
9533
13025
      hardcode_libdir_flag_spec='-R$libdir'
9534
13026
      hardcode_shlibpath_var=no
9538
13030
        # The compiler driver will combine and reorder linker options,
9539
13031
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9540
13032
        # but is careful enough not to reorder.
9541
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13033
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9542
13034
        if test "$GCC" = yes; then
9543
13035
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9544
13036
        else
9627
13119
      allow_undefined_flag='${wl}-z,nodefs'
9628
13120
      archive_cmds_need_lc=no
9629
13121
      hardcode_shlibpath_var=no
9630
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
13122
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9631
13123
      hardcode_libdir_separator=':'
9632
13124
      link_all_deplibs=yes
9633
13125
      export_dynamic_flag_spec='${wl}-Bexport'
9634
13126
      runpath_var='LD_RUN_PATH'
9635
13127
 
9636
13128
      if test "$GCC" = yes; then
9637
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13129
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13130
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639
13131
      else
9640
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13132
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13133
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642
13134
      fi
9643
13135
      ;;
9644
13136
 
9652
13144
      ld_shlibs=no
9653
13145
      ;;
9654
13146
    esac
 
13147
 
 
13148
    if test x$host_vendor = xsni; then
 
13149
      case $host in
 
13150
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13151
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13152
        ;;
 
13153
      esac
 
13154
    fi
9655
13155
  fi
9656
13156
 
9657
13157
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9658
13158
echo "${ECHO_T}$ld_shlibs" >&6; }
9659
13159
test "$ld_shlibs" = no && can_build_shared=no
9660
13160
 
 
13161
with_gnu_ld=$with_gnu_ld
 
13162
 
 
13163
 
 
13164
 
 
13165
 
 
13166
 
 
13167
 
 
13168
 
 
13169
 
 
13170
 
 
13171
 
 
13172
 
 
13173
 
 
13174
 
 
13175
 
 
13176
 
9661
13177
#
9662
13178
# Do we need to explicitly link libc?
9663
13179
#
9677
13193
      # to ld, don't add -lc before -lgcc.
9678
13194
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9679
13195
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9680
 
      $rm conftest*
 
13196
      $RM conftest*
9681
13197
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9682
13198
 
9683
13199
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698
13214
        libname=conftest
9699
13215
        lt_save_allow_undefined_flag=$allow_undefined_flag
9700
13216
        allow_undefined_flag=
9701
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9702
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13217
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13218
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9703
13219
  ac_status=$?
9704
13220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705
13221
  (exit $ac_status); }
9712
13228
      else
9713
13229
        cat conftest.err 1>&5
9714
13230
      fi
9715
 
      $rm conftest*
 
13231
      $RM conftest*
9716
13232
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9717
13233
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9718
13234
      ;;
9721
13237
  ;;
9722
13238
esac
9723
13239
 
9724
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13240
 
 
13241
 
 
13242
 
 
13243
 
 
13244
 
 
13245
 
 
13246
 
 
13247
 
 
13248
 
 
13249
 
 
13250
 
 
13251
 
 
13252
 
 
13253
 
 
13254
 
 
13255
 
 
13256
 
 
13257
 
 
13258
 
 
13259
 
 
13260
 
 
13261
 
 
13262
 
 
13263
 
 
13264
 
 
13265
 
 
13266
 
 
13267
 
 
13268
 
 
13269
 
 
13270
 
 
13271
 
 
13272
 
 
13273
 
 
13274
 
 
13275
 
 
13276
 
 
13277
 
 
13278
 
 
13279
 
 
13280
 
 
13281
 
 
13282
 
 
13283
 
 
13284
 
 
13285
 
 
13286
 
 
13287
 
 
13288
 
 
13289
 
 
13290
 
 
13291
 
 
13292
 
 
13293
 
 
13294
 
 
13295
 
 
13296
 
 
13297
 
 
13298
 
 
13299
 
 
13300
 
 
13301
 
 
13302
 
 
13303
 
 
13304
 
 
13305
 
 
13306
 
 
13307
 
 
13308
 
 
13309
 
 
13310
 
 
13311
 
 
13312
 
 
13313
 
 
13314
 
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
13320
 
 
13321
 
 
13322
 
 
13323
 
 
13324
 
 
13325
 
 
13326
 
 
13327
 
 
13328
 
 
13329
 
 
13330
 
 
13331
 
 
13332
 
 
13333
 
 
13334
 
 
13335
 
 
13336
 
 
13337
 
 
13338
 
 
13339
 
 
13340
 
 
13341
 
 
13342
 
 
13343
 
 
13344
 
 
13345
 
 
13346
 
 
13347
 
 
13348
 
 
13349
 
 
13350
 
 
13351
 
 
13352
 
 
13353
 
 
13354
 
 
13355
 
 
13356
 
 
13357
 
 
13358
 
 
13359
 
 
13360
 
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
 
 
13366
 
 
13367
 
 
13368
 
 
13369
 
 
13370
 
 
13371
 
 
13372
 
 
13373
 
 
13374
 
 
13375
 
 
13376
 
 
13377
 
 
13378
 
 
13379
 
 
13380
 
 
13381
 
 
13382
 
 
13383
 
 
13384
 
 
13385
 
 
13386
 
 
13387
 
 
13388
 
 
13389
 
 
13390
 
 
13391
 
 
13392
 
 
13393
 
 
13394
 
 
13395
 
 
13396
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725
13397
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9726
 
library_names_spec=
9727
 
libname_spec='lib$name'
9728
 
soname_spec=
9729
 
shrext_cmds=".so"
9730
 
postinstall_cmds=
9731
 
postuninstall_cmds=
9732
 
finish_cmds=
9733
 
finish_eval=
9734
 
shlibpath_var=
9735
 
shlibpath_overrides_runpath=unknown
9736
 
version_type=none
9737
 
dynamic_linker="$host_os ld.so"
9738
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739
13398
 
9740
13399
if test "$GCC" = yes; then
9741
13400
  case $host_os in
9743
13402
    *) lt_awk_arg="/^libraries:/" ;;
9744
13403
  esac
9745
13404
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9746
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
13405
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9747
13406
    # if the path contains ";" then we assume it to be the separator
9748
13407
    # otherwise default to the standard path separator (i.e. ":") - it is
9749
13408
    # assumed that no part of a normal pathname contains ";" but that should
9750
13409
    # okay in the real world where ";" in dirpaths is itself problematic.
9751
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
13410
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9752
13411
  else
9753
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13412
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9754
13413
  fi
9755
13414
  # Ok, now we have the path, separated by spaces, we can step through it
9756
13415
  # and add multilib dir if necessary.
9764
13423
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9765
13424
    fi
9766
13425
  done
9767
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
13426
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9768
13427
BEGIN {RS=" "; FS="/|\n";} {
9769
13428
  lt_foo="";
9770
13429
  lt_count=0;
9784
13443
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9785
13444
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9786
13445
}'`
9787
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
13446
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9788
13447
else
9789
13448
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9790
13449
fi
 
13450
library_names_spec=
 
13451
libname_spec='lib$name'
 
13452
soname_spec=
 
13453
shrext_cmds=".so"
 
13454
postinstall_cmds=
 
13455
postuninstall_cmds=
 
13456
finish_cmds=
 
13457
finish_eval=
 
13458
shlibpath_var=
 
13459
shlibpath_overrides_runpath=unknown
 
13460
version_type=none
 
13461
dynamic_linker="$host_os ld.so"
 
13462
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9791
13463
need_lib_prefix=unknown
9792
13464
hardcode_into_libs=no
9793
13465
 
9824
13496
      aix4 | aix4.[01] | aix4.[01].*)
9825
13497
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9826
13498
           echo ' yes '
9827
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13499
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9828
13500
        :
9829
13501
      else
9830
13502
        can_build_shared=no
9850
13522
  ;;
9851
13523
 
9852
13524
amigaos*)
9853
 
  library_names_spec='$libname.ixlibrary $libname.a'
9854
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9855
 
  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'
 
13525
  case $host_cpu in
 
13526
  powerpc)
 
13527
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
13528
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
13529
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13530
    ;;
 
13531
  m68k)
 
13532
    library_names_spec='$libname.ixlibrary $libname.a'
 
13533
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13534
    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'
 
13535
    ;;
 
13536
  esac
9856
13537
  ;;
9857
13538
 
9858
13539
beos*)
9875
13556
  # libtool to hard-code these into programs
9876
13557
  ;;
9877
13558
 
9878
 
cygwin* | mingw* | pw32*)
 
13559
cygwin* | mingw* | pw32* | cegcc*)
9879
13560
  version_type=windows
9880
13561
  shrext_cmds=".dll"
9881
13562
  need_version=no
9882
13563
  need_lib_prefix=no
9883
13564
 
9884
13565
  case $GCC,$host_os in
9885
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13566
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9886
13567
    library_names_spec='$libname.dll.a'
9887
13568
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9888
13569
    postinstall_cmds='base_file=`basename \${file}`~
9889
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13570
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9890
13571
      dldir=$destdir/`dirname \$dlpath`~
9891
13572
      test -d \$dldir || mkdir -p \$dldir~
9892
13573
      $install_prog $dir/$dlname \$dldir/$dlname~
9893
 
      chmod a+x \$dldir/$dlname'
 
13574
      chmod a+x \$dldir/$dlname~
 
13575
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
13576
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
13577
      fi'
9894
13578
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9895
13579
      dlpath=$dir/\$dldll~
9896
 
       $rm \$dlpath'
 
13580
       $RM \$dlpath'
9897
13581
    shlibpath_overrides_runpath=yes
9898
13582
 
9899
13583
    case $host_os in
9902
13586
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9903
13587
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9904
13588
      ;;
9905
 
    mingw*)
 
13589
    mingw* | cegcc*)
9906
13590
      # MinGW DLLs use traditional 'lib' prefix
9907
13591
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9909
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13592
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13593
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9910
13594
        # It is most probably a Windows format PATH printed by
9911
13595
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9912
13596
        # path with ; separators, and with drive letters. We can handle the
9913
13597
        # drive letters (cygwin fileutils understands them), so leave them,
9914
13598
        # especially as we might pass files found there to a mingw objdump,
9915
13599
        # which wouldn't understand a cygwinified path. Ahh.
9916
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13600
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9917
13601
      else
9918
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13602
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9919
13603
      fi
9920
13604
      ;;
9921
13605
    pw32*)
9939
13623
  version_type=darwin
9940
13624
  need_lib_prefix=no
9941
13625
  need_version=no
9942
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13626
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9943
13627
  soname_spec='${libname}${release}${major}$shared_ext'
9944
13628
  shlibpath_overrides_runpath=yes
9945
13629
  shlibpath_var=DYLD_LIBRARY_PATH
10038
13722
    fi
10039
13723
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040
13724
    ;;
10041
 
   hppa*64*)
10042
 
     shrext_cmds='.sl'
10043
 
     hardcode_into_libs=yes
10044
 
     dynamic_linker="$host_os dld.sl"
10045
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10046
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048
 
     soname_spec='${libname}${release}${shared_ext}$major'
10049
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10050
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051
 
     ;;
10052
 
   *)
 
13725
  hppa*64*)
 
13726
    shrext_cmds='.sl'
 
13727
    hardcode_into_libs=yes
 
13728
    dynamic_linker="$host_os dld.sl"
 
13729
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13730
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13731
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13732
    soname_spec='${libname}${release}${shared_ext}$major'
 
13733
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13734
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13735
    ;;
 
13736
  *)
10053
13737
    shrext_cmds='.sl'
10054
13738
    dynamic_linker="$host_os dld.sl"
10055
13739
    shlibpath_var=SHLIB_PATH
10126
13810
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127
13811
  shlibpath_var=LD_LIBRARY_PATH
10128
13812
  shlibpath_overrides_runpath=no
 
13813
  # Some binutils ld are patched to set DT_RUNPATH
 
13814
  save_LDFLAGS=$LDFLAGS
 
13815
  save_libdir=$libdir
 
13816
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
13817
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
13818
  cat >conftest.$ac_ext <<_ACEOF
 
13819
/* confdefs.h.  */
 
13820
_ACEOF
 
13821
cat confdefs.h >>conftest.$ac_ext
 
13822
cat >>conftest.$ac_ext <<_ACEOF
 
13823
/* end confdefs.h.  */
 
13824
 
 
13825
int main (void)
 
13826
{
 
13827
 
 
13828
 ;
 
13829
 return 0;
 
13830
}
 
13831
_ACEOF
 
13832
rm -f conftest.$ac_objext conftest$ac_exeext
 
13833
if { (ac_try="$ac_link"
 
13834
case "(($ac_try" in
 
13835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13836
  *) ac_try_echo=$ac_try;;
 
13837
esac
 
13838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13839
  (eval "$ac_link") 2>conftest.er1
 
13840
  ac_status=$?
 
13841
  grep -v '^ *+' conftest.er1 >conftest.err
 
13842
  rm -f conftest.er1
 
13843
  cat conftest.err >&5
 
13844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13845
  (exit $ac_status); } && {
 
13846
         test -z "$ac_c_werror_flag" ||
 
13847
         test ! -s conftest.err
 
13848
       } && test -s conftest$ac_exeext &&
 
13849
       $as_test_x conftest$ac_exeext; then
 
13850
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
13851
  shlibpath_overrides_runpath=yes
 
13852
fi
 
13853
 
 
13854
else
 
13855
  echo "$as_me: failed program was:" >&5
 
13856
sed 's/^/| /' conftest.$ac_ext >&5
 
13857
 
 
13858
 
 
13859
fi
 
13860
 
 
13861
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13862
      conftest$ac_exeext conftest.$ac_ext
 
13863
  LDFLAGS=$save_LDFLAGS
 
13864
  libdir=$save_libdir
 
13865
 
10129
13866
  # This implies no fast_install, which is unacceptable.
10130
13867
  # Some rework will be needed to allow for fast_install
10131
13868
  # before this can be enabled.
10133
13870
 
10134
13871
  # Append ld.so.conf contents to the search path
10135
13872
  if test -f /etc/ld.so.conf; then
10136
 
    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' ' '`
 
13873
    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' ' '`
10137
13874
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10138
13875
  fi
10139
13876
 
10146
13883
  dynamic_linker='GNU/Linux ld.so'
10147
13884
  ;;
10148
13885
 
10149
 
netbsdelf*-gnu)
10150
 
  version_type=linux
10151
 
  need_lib_prefix=no
10152
 
  need_version=no
10153
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154
 
  soname_spec='${libname}${release}${shared_ext}$major'
10155
 
  shlibpath_var=LD_LIBRARY_PATH
10156
 
  shlibpath_overrides_runpath=no
10157
 
  hardcode_into_libs=yes
10158
 
  dynamic_linker='NetBSD ld.elf_so'
10159
 
  ;;
10160
 
 
10161
13886
netbsd*)
10162
13887
  version_type=sunos
10163
13888
  need_lib_prefix=no
10164
13889
  need_version=no
10165
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13890
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10166
13891
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167
13892
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168
13893
    dynamic_linker='NetBSD (a.out) ld.so'
10183
13908
  shlibpath_overrides_runpath=yes
10184
13909
  ;;
10185
13910
 
10186
 
nto-qnx*)
10187
 
  version_type=linux
 
13911
*nto* | *qnx*)
 
13912
  version_type=qnx
10188
13913
  need_lib_prefix=no
10189
13914
  need_version=no
10190
13915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191
13916
  soname_spec='${libname}${release}${shared_ext}$major'
10192
13917
  shlibpath_var=LD_LIBRARY_PATH
10193
 
  shlibpath_overrides_runpath=yes
 
13918
  shlibpath_overrides_runpath=no
 
13919
  hardcode_into_libs=yes
 
13920
  dynamic_linker='ldqnx.so'
10194
13921
  ;;
10195
13922
 
10196
13923
openbsd*)
10199
13926
  need_lib_prefix=no
10200
13927
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10201
13928
  case $host_os in
10202
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10203
 
    *)                         need_version=no  ;;
 
13929
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
13930
    *)                          need_version=no  ;;
10204
13931
  esac
10205
13932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206
13933
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207
13934
  shlibpath_var=LD_LIBRARY_PATH
10208
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13935
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209
13936
    case $host_os in
10210
13937
      openbsd2.[89] | openbsd2.[89].*)
10211
13938
        shlibpath_overrides_runpath=no
10277
14004
    sni)
10278
14005
      shlibpath_overrides_runpath=no
10279
14006
      need_lib_prefix=no
10280
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10281
14007
      runpath_var=LD_RUN_PATH
10282
14008
      ;;
10283
14009
    siemens)
10308
14034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10309
14035
  soname_spec='${libname}${release}${shared_ext}$major'
10310
14036
  shlibpath_var=LD_LIBRARY_PATH
 
14037
  shlibpath_overrides_runpath=yes
10311
14038
  hardcode_into_libs=yes
10312
14039
  if test "$with_gnu_ld" = yes; then
10313
14040
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10314
 
    shlibpath_overrides_runpath=no
10315
14041
  else
10316
14042
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10317
 
    shlibpath_overrides_runpath=yes
10318
14043
    case $host_os in
10319
14044
      sco3.2v5*)
10320
14045
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10324
14049
  sys_lib_dlsearch_path_spec='/usr/lib'
10325
14050
  ;;
10326
14051
 
 
14052
tpf*)
 
14053
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
14054
  version_type=linux
 
14055
  need_lib_prefix=no
 
14056
  need_version=no
 
14057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14058
  shlibpath_var=LD_LIBRARY_PATH
 
14059
  shlibpath_overrides_runpath=no
 
14060
  hardcode_into_libs=yes
 
14061
  ;;
 
14062
 
10327
14063
uts4*)
10328
14064
  version_type=linux
10329
14065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339
14075
echo "${ECHO_T}$dynamic_linker" >&6; }
10340
14076
test "$dynamic_linker" = no && can_build_shared=no
10341
14077
 
10342
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10343
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10344
 
else
10345
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10346
 
fi
10347
 
 
10348
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10349
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10351
 
else
10352
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10353
 
fi
10354
 
 
10355
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10356
 
 
10357
14078
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358
14079
if test "$GCC" = yes; then
10359
14080
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10360
14081
fi
10361
14082
 
10362
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14083
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14084
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14085
fi
 
14086
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14087
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14088
fi
 
14089
 
 
14090
 
 
14091
 
 
14092
 
 
14093
 
 
14094
 
 
14095
 
 
14096
 
 
14097
 
 
14098
 
 
14099
 
 
14100
 
 
14101
 
 
14102
 
 
14103
 
 
14104
 
 
14105
 
 
14106
 
 
14107
 
 
14108
 
 
14109
 
 
14110
 
 
14111
 
 
14112
 
 
14113
 
 
14114
 
 
14115
 
 
14116
 
 
14117
 
 
14118
 
 
14119
 
 
14120
 
 
14121
 
 
14122
 
 
14123
 
 
14124
 
 
14125
 
 
14126
 
 
14127
 
 
14128
 
 
14129
 
 
14130
 
 
14131
 
 
14132
 
 
14133
 
 
14134
 
 
14135
 
 
14136
 
 
14137
 
 
14138
 
 
14139
 
 
14140
 
 
14141
 
 
14142
 
 
14143
 
 
14144
 
 
14145
 
 
14146
 
 
14147
 
 
14148
 
 
14149
 
 
14150
 
 
14151
 
 
14152
 
 
14153
 
 
14154
 
 
14155
 
 
14156
 
 
14157
 
 
14158
 
 
14159
 
 
14160
 
 
14161
 
 
14162
 
 
14163
 
 
14164
 
 
14165
 
 
14166
 
 
14167
 
 
14168
 
 
14169
 
 
14170
 
 
14171
 
 
14172
 
 
14173
 
 
14174
 
 
14175
 
 
14176
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10363
14177
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10364
14178
hardcode_action=
10365
 
if test -n "$hardcode_libdir_flag_spec" || \
10366
 
   test -n "$runpath_var" || \
 
14179
if test -n "$hardcode_libdir_flag_spec" ||
 
14180
   test -n "$runpath_var" ||
10367
14181
   test "X$hardcode_automatic" = "Xyes" ; then
10368
14182
 
10369
 
  # We can hardcode non-existant directories.
 
14183
  # We can hardcode non-existent directories.
10370
14184
  if test "$hardcode_direct" != no &&
10371
14185
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10372
14186
     # have to relink, otherwise we might link with an installed library
10373
14187
     # when we should be linking with a yet-to-be-installed one
10374
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
14188
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10375
14189
     test "$hardcode_minus_L" != no; then
10376
14190
    # Linking always hardcodes the temporary library directory.
10377
14191
    hardcode_action=relink
10387
14201
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10388
14202
echo "${ECHO_T}$hardcode_action" >&6; }
10389
14203
 
10390
 
if test "$hardcode_action" = relink; then
 
14204
if test "$hardcode_action" = relink ||
 
14205
   test "$inherit_rpath" = yes; then
10391
14206
  # Fast installation is not supported
10392
14207
  enable_fast_install=no
10393
14208
elif test "$shlibpath_overrides_runpath" = yes ||
10396
14211
  enable_fast_install=needless
10397
14212
fi
10398
14213
 
10399
 
striplib=
10400
 
old_striplib=
10401
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10402
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10403
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10404
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10405
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10406
 
  { echo "$as_me:$LINENO: result: yes" >&5
10407
 
echo "${ECHO_T}yes" >&6; }
10408
 
else
10409
 
# FIXME - insert some real tests, host_os isn't really good enough
10410
 
  case $host_os in
10411
 
   darwin*)
10412
 
       if test -n "$STRIP" ; then
10413
 
         striplib="$STRIP -x"
10414
 
         old_striplib="$STRIP -S"
10415
 
         { echo "$as_me:$LINENO: result: yes" >&5
10416
 
echo "${ECHO_T}yes" >&6; }
10417
 
       else
10418
 
  { echo "$as_me:$LINENO: result: no" >&5
10419
 
echo "${ECHO_T}no" >&6; }
10420
 
fi
10421
 
       ;;
10422
 
   *)
10423
 
  { echo "$as_me:$LINENO: result: no" >&5
10424
 
echo "${ECHO_T}no" >&6; }
10425
 
    ;;
10426
 
  esac
10427
 
fi
10428
 
 
10429
 
if test "x$enable_dlopen" != xyes; then
 
14214
 
 
14215
 
 
14216
 
 
14217
 
 
14218
 
 
14219
  if test "x$enable_dlopen" != xyes; then
10430
14220
  enable_dlopen=unknown
10431
14221
  enable_dlopen_self=unknown
10432
14222
  enable_dlopen_self_static=unknown
10441
14231
    lt_cv_dlopen_self=yes
10442
14232
    ;;
10443
14233
 
10444
 
  mingw* | pw32*)
 
14234
  mingw* | pw32* | cegcc*)
10445
14235
    lt_cv_dlopen="LoadLibrary"
10446
14236
    lt_cv_dlopen_libs=
10447
 
   ;;
 
14237
    ;;
10448
14238
 
10449
14239
  cygwin*)
10450
14240
    lt_cv_dlopen="dlopen"
10451
14241
    lt_cv_dlopen_libs=
10452
 
   ;;
 
14242
    ;;
10453
14243
 
10454
14244
  darwin*)
10455
14245
  # if libdl is installed we need to link against it
10467
14257
cat >>conftest.$ac_ext <<_ACEOF
10468
14258
/* end confdefs.h.  */
10469
14259
 
10470
 
/* Override any GCC internal prototype to avoid an error.
10471
 
   Use char because int might match the return type of a GCC
10472
 
   builtin and then its argument prototype would still apply.  */
 
14260
 
10473
14261
#ifdef __cplusplus
10474
14262
extern "C"
10475
14263
#endif
10476
14264
char dlopen ();
10477
 
int
10478
 
main ()
 
14265
int main (void)
10479
14266
{
10480
14267
return dlopen ();
10481
 
  ;
10482
 
  return 0;
 
14268
 ;
 
14269
 return 0;
10483
14270
}
10484
14271
_ACEOF
10485
14272
rm -f conftest.$ac_objext conftest$ac_exeext
10524
14311
 
10525
14312
fi
10526
14313
 
10527
 
   ;;
 
14314
    ;;
10528
14315
 
10529
14316
  *)
10530
14317
    { echo "$as_me:$LINENO: checking for shl_load" >&5
10538
14325
cat confdefs.h >>conftest.$ac_ext
10539
14326
cat >>conftest.$ac_ext <<_ACEOF
10540
14327
/* end confdefs.h.  */
10541
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10542
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14328
 
10543
14329
#define shl_load innocuous_shl_load
10544
 
 
10545
 
/* System header to define __stub macros and hopefully few prototypes,
10546
 
    which can conflict with char shl_load (); below.
10547
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548
 
    <limits.h> exists even on freestanding compilers.  */
10549
 
 
10550
14330
#ifdef __STDC__
10551
14331
# include <limits.h>
10552
14332
#else
10553
14333
# include <assert.h>
10554
14334
#endif
10555
 
 
10556
14335
#undef shl_load
10557
 
 
10558
 
/* Override any GCC internal prototype to avoid an error.
10559
 
   Use char because int might match the return type of a GCC
10560
 
   builtin and then its argument prototype would still apply.  */
10561
14336
#ifdef __cplusplus
10562
14337
extern "C"
10563
14338
#endif
10564
14339
char shl_load ();
10565
 
/* The GNU C library defines this for functions which it implements
10566
 
    to always fail with ENOSYS.  Some functions are actually named
10567
 
    something starting with __ and the normal name is an alias.  */
10568
14340
#if defined __stub_shl_load || defined __stub___shl_load
10569
14341
choke me
10570
14342
#endif
10571
14343
 
10572
 
int
10573
 
main ()
 
14344
int main (void)
10574
14345
{
10575
14346
return shl_load ();
10576
 
  ;
10577
 
  return 0;
 
14347
 ;
 
14348
 return 0;
10578
14349
}
10579
14350
_ACEOF
10580
14351
rm -f conftest.$ac_objext conftest$ac_exeext
10625
14396
cat >>conftest.$ac_ext <<_ACEOF
10626
14397
/* end confdefs.h.  */
10627
14398
 
10628
 
/* Override any GCC internal prototype to avoid an error.
10629
 
   Use char because int might match the return type of a GCC
10630
 
   builtin and then its argument prototype would still apply.  */
 
14399
 
10631
14400
#ifdef __cplusplus
10632
14401
extern "C"
10633
14402
#endif
10634
14403
char shl_load ();
10635
 
int
10636
 
main ()
 
14404
int main (void)
10637
14405
{
10638
14406
return shl_load ();
10639
 
  ;
10640
 
  return 0;
 
14407
 ;
 
14408
 return 0;
10641
14409
}
10642
14410
_ACEOF
10643
14411
rm -f conftest.$ac_objext conftest$ac_exeext
10686
14454
cat confdefs.h >>conftest.$ac_ext
10687
14455
cat >>conftest.$ac_ext <<_ACEOF
10688
14456
/* end confdefs.h.  */
10689
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10690
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14457
 
10691
14458
#define dlopen innocuous_dlopen
10692
 
 
10693
 
/* System header to define __stub macros and hopefully few prototypes,
10694
 
    which can conflict with char dlopen (); below.
10695
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696
 
    <limits.h> exists even on freestanding compilers.  */
10697
 
 
10698
14459
#ifdef __STDC__
10699
14460
# include <limits.h>
10700
14461
#else
10701
14462
# include <assert.h>
10702
14463
#endif
10703
 
 
10704
14464
#undef dlopen
10705
 
 
10706
 
/* Override any GCC internal prototype to avoid an error.
10707
 
   Use char because int might match the return type of a GCC
10708
 
   builtin and then its argument prototype would still apply.  */
10709
14465
#ifdef __cplusplus
10710
14466
extern "C"
10711
14467
#endif
10712
14468
char dlopen ();
10713
 
/* The GNU C library defines this for functions which it implements
10714
 
    to always fail with ENOSYS.  Some functions are actually named
10715
 
    something starting with __ and the normal name is an alias.  */
10716
14469
#if defined __stub_dlopen || defined __stub___dlopen
10717
14470
choke me
10718
14471
#endif
10719
14472
 
10720
 
int
10721
 
main ()
 
14473
int main (void)
10722
14474
{
10723
14475
return dlopen ();
10724
 
  ;
10725
 
  return 0;
 
14476
 ;
 
14477
 return 0;
10726
14478
}
10727
14479
_ACEOF
10728
14480
rm -f conftest.$ac_objext conftest$ac_exeext
10773
14525
cat >>conftest.$ac_ext <<_ACEOF
10774
14526
/* end confdefs.h.  */
10775
14527
 
10776
 
/* Override any GCC internal prototype to avoid an error.
10777
 
   Use char because int might match the return type of a GCC
10778
 
   builtin and then its argument prototype would still apply.  */
 
14528
 
10779
14529
#ifdef __cplusplus
10780
14530
extern "C"
10781
14531
#endif
10782
14532
char dlopen ();
10783
 
int
10784
 
main ()
 
14533
int main (void)
10785
14534
{
10786
14535
return dlopen ();
10787
 
  ;
10788
 
  return 0;
 
14536
 ;
 
14537
 return 0;
10789
14538
}
10790
14539
_ACEOF
10791
14540
rm -f conftest.$ac_objext conftest$ac_exeext
10837
14586
cat >>conftest.$ac_ext <<_ACEOF
10838
14587
/* end confdefs.h.  */
10839
14588
 
10840
 
/* Override any GCC internal prototype to avoid an error.
10841
 
   Use char because int might match the return type of a GCC
10842
 
   builtin and then its argument prototype would still apply.  */
 
14589
 
10843
14590
#ifdef __cplusplus
10844
14591
extern "C"
10845
14592
#endif
10846
14593
char dlopen ();
10847
 
int
10848
 
main ()
 
14594
int main (void)
10849
14595
{
10850
14596
return dlopen ();
10851
 
  ;
10852
 
  return 0;
 
14597
 ;
 
14598
 return 0;
10853
14599
}
10854
14600
_ACEOF
10855
14601
rm -f conftest.$ac_objext conftest$ac_exeext
10901
14647
cat >>conftest.$ac_ext <<_ACEOF
10902
14648
/* end confdefs.h.  */
10903
14649
 
10904
 
/* Override any GCC internal prototype to avoid an error.
10905
 
   Use char because int might match the return type of a GCC
10906
 
   builtin and then its argument prototype would still apply.  */
 
14650
 
10907
14651
#ifdef __cplusplus
10908
14652
extern "C"
10909
14653
#endif
10910
14654
char dld_link ();
10911
 
int
10912
 
main ()
 
14655
int main (void)
10913
14656
{
10914
14657
return dld_link ();
10915
 
  ;
10916
 
  return 0;
 
14658
 ;
 
14659
 return 0;
10917
14660
}
10918
14661
_ACEOF
10919
14662
rm -f conftest.$ac_objext conftest$ac_exeext
10997
14740
else
10998
14741
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10999
14742
  lt_status=$lt_dlunknown
11000
 
  cat > conftest.$ac_ext <<EOF
11001
 
#line 11001 "configure"
 
14743
  cat > conftest.$ac_ext <<_LT_EOF
 
14744
#line 14744 "configure"
11002
14745
#include "confdefs.h"
11003
14746
 
11004
14747
#if HAVE_DLFCN_H
11039
14782
#  endif
11040
14783
#endif
11041
14784
 
11042
 
#ifdef __cplusplus
11043
 
extern "C" void exit (int);
11044
 
#endif
11045
 
 
11046
14785
void fnord() { int i=42;}
11047
14786
int main ()
11048
14787
{
11058
14797
  else
11059
14798
    puts (dlerror ());
11060
14799
 
11061
 
    exit (status);
 
14800
  return status;
11062
14801
}
11063
 
EOF
 
14802
_LT_EOF
11064
14803
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065
14804
  (eval $ac_link) 2>&5
11066
14805
  ac_status=$?
11097
14836
else
11098
14837
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11099
14838
  lt_status=$lt_dlunknown
11100
 
  cat > conftest.$ac_ext <<EOF
11101
 
#line 11101 "configure"
 
14839
  cat > conftest.$ac_ext <<_LT_EOF
 
14840
#line 14840 "configure"
11102
14841
#include "confdefs.h"
11103
14842
 
11104
14843
#if HAVE_DLFCN_H
11139
14878
#  endif
11140
14879
#endif
11141
14880
 
11142
 
#ifdef __cplusplus
11143
 
extern "C" void exit (int);
11144
 
#endif
11145
 
 
11146
14881
void fnord() { int i=42;}
11147
14882
int main ()
11148
14883
{
11158
14893
  else
11159
14894
    puts (dlerror ());
11160
14895
 
11161
 
    exit (status);
 
14896
  return status;
11162
14897
}
11163
 
EOF
 
14898
_LT_EOF
11164
14899
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165
14900
  (eval $ac_link) 2>&5
11166
14901
  ac_status=$?
11204
14939
fi
11205
14940
 
11206
14941
 
11207
 
# Report which library types will actually be built
11208
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11209
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11210
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11211
 
echo "${ECHO_T}$can_build_shared" >&6; }
11212
 
 
11213
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11214
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11215
 
test "$can_build_shared" = "no" && enable_shared=no
11216
 
 
11217
 
# On AIX, shared libraries and static libraries use the same namespace, and
11218
 
# are all built from PIC.
11219
 
case $host_os in
11220
 
aix3*)
11221
 
  test "$enable_shared" = yes && enable_static=no
11222
 
  if test -n "$RANLIB"; then
11223
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11224
 
    postinstall_cmds='$RANLIB $lib'
11225
 
  fi
11226
 
  ;;
11227
 
 
11228
 
aix[4-9]*)
11229
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11230
 
    test "$enable_shared" = yes && enable_static=no
11231
 
  fi
11232
 
    ;;
11233
 
esac
11234
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11235
 
echo "${ECHO_T}$enable_shared" >&6; }
11236
 
 
11237
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11238
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11239
 
# Make sure either enable_shared or enable_static is yes.
11240
 
test "$enable_shared" = yes || enable_static=yes
11241
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11242
 
echo "${ECHO_T}$enable_static" >&6; }
11243
 
 
11244
 
# The else clause should only fire when bootstrapping the
11245
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
11246
 
# with your package, and you will get complaints that there are
11247
 
# no rules to generate ltmain.sh.
11248
 
if test -f "$ltmain"; then
11249
 
  # See if we are running on zsh, and set the options which allow our commands through
11250
 
  # without removal of \ escapes.
11251
 
  if test -n "${ZSH_VERSION+set}" ; then
11252
 
    setopt NO_GLOB_SUBST
11253
 
  fi
11254
 
  # Now quote all the things that may contain metacharacters while being
11255
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11256
 
  # variables and quote the copies for generation of the libtool script.
11257
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11258
 
    SED SHELL STRIP \
11259
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11260
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11261
 
    deplibs_check_method reload_flag reload_cmds need_locks \
11262
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11263
 
    lt_cv_sys_global_symbol_to_c_name_address \
11264
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11265
 
    old_postinstall_cmds old_postuninstall_cmds \
11266
 
    compiler \
11267
 
    CC \
11268
 
    LD \
11269
 
    lt_prog_compiler_wl \
11270
 
    lt_prog_compiler_pic \
11271
 
    lt_prog_compiler_static \
11272
 
    lt_prog_compiler_no_builtin_flag \
11273
 
    export_dynamic_flag_spec \
11274
 
    thread_safe_flag_spec \
11275
 
    whole_archive_flag_spec \
11276
 
    enable_shared_with_static_runtimes \
11277
 
    old_archive_cmds \
11278
 
    old_archive_from_new_cmds \
11279
 
    predep_objects \
11280
 
    postdep_objects \
11281
 
    predeps \
11282
 
    postdeps \
11283
 
    compiler_lib_search_path \
11284
 
    compiler_lib_search_dirs \
11285
 
    archive_cmds \
11286
 
    archive_expsym_cmds \
11287
 
    postinstall_cmds \
11288
 
    postuninstall_cmds \
11289
 
    old_archive_from_expsyms_cmds \
11290
 
    allow_undefined_flag \
11291
 
    no_undefined_flag \
11292
 
    export_symbols_cmds \
11293
 
    hardcode_libdir_flag_spec \
11294
 
    hardcode_libdir_flag_spec_ld \
11295
 
    hardcode_libdir_separator \
11296
 
    hardcode_automatic \
11297
 
    module_cmds \
11298
 
    module_expsym_cmds \
11299
 
    lt_cv_prog_compiler_c_o \
11300
 
    fix_srcfile_path \
11301
 
    exclude_expsyms \
11302
 
    include_expsyms; do
11303
 
 
11304
 
    case $var in
11305
 
    old_archive_cmds | \
11306
 
    old_archive_from_new_cmds | \
11307
 
    archive_cmds | \
11308
 
    archive_expsym_cmds | \
11309
 
    module_cmds | \
11310
 
    module_expsym_cmds | \
11311
 
    old_archive_from_expsyms_cmds | \
11312
 
    export_symbols_cmds | \
11313
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11314
 
    postinstall_cmds | postuninstall_cmds | \
11315
 
    old_postinstall_cmds | old_postuninstall_cmds | \
11316
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11317
 
      # Double-quote double-evaled strings.
11318
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11319
 
      ;;
11320
 
    *)
11321
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11322
 
      ;;
11323
 
    esac
11324
 
  done
11325
 
 
11326
 
  case $lt_echo in
11327
 
  *'\$0 --fallback-echo"')
11328
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11329
 
    ;;
11330
 
  esac
11331
 
 
11332
 
cfgfile="${ofile}T"
11333
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11334
 
  $rm -f "$cfgfile"
11335
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
11336
 
echo "$as_me: creating $ofile" >&6;}
11337
 
 
11338
 
  cat <<__EOF__ >> "$cfgfile"
11339
 
#! $SHELL
11340
 
 
11341
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11342
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11343
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11344
 
#
11345
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11346
 
# Free Software Foundation, Inc.
11347
 
#
11348
 
# This file is part of GNU Libtool:
11349
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11350
 
#
11351
 
# This program is free software; you can redistribute it and/or modify
11352
 
# it under the terms of the GNU General Public License as published by
11353
 
# the Free Software Foundation; either version 2 of the License, or
11354
 
# (at your option) any later version.
11355
 
#
11356
 
# This program is distributed in the hope that it will be useful, but
11357
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11358
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11359
 
# General Public License for more details.
11360
 
#
11361
 
# You should have received a copy of the GNU General Public License
11362
 
# along with this program; if not, write to the Free Software
11363
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11364
 
#
11365
 
# As a special exception to the GNU General Public License, if you
11366
 
# distribute this file as part of a program that contains a
11367
 
# configuration script generated by Autoconf, you may include it under
11368
 
# the same distribution terms that you use for the rest of that program.
11369
 
 
11370
 
# A sed program that does not truncate output.
11371
 
SED=$lt_SED
11372
 
 
11373
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11374
 
Xsed="$SED -e 1s/^X//"
11375
 
 
11376
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
11377
 
# if CDPATH is set.
11378
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11379
 
 
11380
 
# The names of the tagged configurations supported by this script.
11381
 
available_tags=
11382
 
 
11383
 
# ### BEGIN LIBTOOL CONFIG
11384
 
 
11385
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11386
 
 
11387
 
# Shell to use when invoking shell scripts.
11388
 
SHELL=$lt_SHELL
11389
 
 
11390
 
# Whether or not to build shared libraries.
11391
 
build_libtool_libs=$enable_shared
11392
 
 
11393
 
# Whether or not to build static libraries.
11394
 
build_old_libs=$enable_static
11395
 
 
11396
 
# Whether or not to add -lc for building shared libraries.
11397
 
build_libtool_need_lc=$archive_cmds_need_lc
11398
 
 
11399
 
# Whether or not to disallow shared libs when runtime libs are static
11400
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11401
 
 
11402
 
# Whether or not to optimize for fast installation.
11403
 
fast_install=$enable_fast_install
11404
 
 
11405
 
# The host system.
11406
 
host_alias=$host_alias
11407
 
host=$host
11408
 
host_os=$host_os
11409
 
 
11410
 
# The build system.
11411
 
build_alias=$build_alias
11412
 
build=$build
11413
 
build_os=$build_os
11414
 
 
11415
 
# An echo program that does not interpret backslashes.
11416
 
echo=$lt_echo
11417
 
 
11418
 
# The archiver.
11419
 
AR=$lt_AR
11420
 
AR_FLAGS=$lt_AR_FLAGS
11421
 
 
11422
 
# A C compiler.
11423
 
LTCC=$lt_LTCC
11424
 
 
11425
 
# LTCC compiler flags.
11426
 
LTCFLAGS=$lt_LTCFLAGS
11427
 
 
11428
 
# A language-specific compiler.
11429
 
CC=$lt_compiler
11430
 
 
11431
 
# Is the compiler the GNU C compiler?
11432
 
with_gcc=$GCC
11433
 
 
11434
 
# An ERE matcher.
11435
 
EGREP=$lt_EGREP
11436
 
 
11437
 
# The linker used to build libraries.
11438
 
LD=$lt_LD
11439
 
 
11440
 
# Whether we need hard or soft links.
11441
 
LN_S=$lt_LN_S
11442
 
 
11443
 
# A BSD-compatible nm program.
11444
 
NM=$lt_NM
11445
 
 
11446
 
# A symbol stripping program
11447
 
STRIP=$lt_STRIP
11448
 
 
11449
 
# Used to examine libraries when file_magic_cmd begins "file"
11450
 
MAGIC_CMD=$MAGIC_CMD
11451
 
 
11452
 
# Used on cygwin: DLL creation program.
11453
 
DLLTOOL="$DLLTOOL"
11454
 
 
11455
 
# Used on cygwin: object dumper.
11456
 
OBJDUMP="$OBJDUMP"
11457
 
 
11458
 
# Used on cygwin: assembler.
11459
 
AS="$AS"
11460
 
 
11461
 
# The name of the directory that contains temporary libtool files.
11462
 
objdir=$objdir
11463
 
 
11464
 
# How to create reloadable object files.
11465
 
reload_flag=$lt_reload_flag
11466
 
reload_cmds=$lt_reload_cmds
11467
 
 
11468
 
# How to pass a linker flag through the compiler.
11469
 
wl=$lt_lt_prog_compiler_wl
11470
 
 
11471
 
# Object file suffix (normally "o").
11472
 
objext="$ac_objext"
11473
 
 
11474
 
# Old archive suffix (normally "a").
11475
 
libext="$libext"
11476
 
 
11477
 
# Shared library suffix (normally ".so").
11478
 
shrext_cmds='$shrext_cmds'
11479
 
 
11480
 
# Executable file suffix (normally "").
11481
 
exeext="$exeext"
11482
 
 
11483
 
# Additional compiler flags for building library objects.
11484
 
pic_flag=$lt_lt_prog_compiler_pic
11485
 
pic_mode=$pic_mode
11486
 
 
11487
 
# What is the maximum length of a command?
11488
 
max_cmd_len=$lt_cv_sys_max_cmd_len
11489
 
 
11490
 
# Does compiler simultaneously support -c and -o options?
11491
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11492
 
 
11493
 
# Must we lock files when doing compilation?
11494
 
need_locks=$lt_need_locks
11495
 
 
11496
 
# Do we need the lib prefix for modules?
11497
 
need_lib_prefix=$need_lib_prefix
11498
 
 
11499
 
# Do we need a version for libraries?
11500
 
need_version=$need_version
11501
 
 
11502
 
# Whether dlopen is supported.
11503
 
dlopen_support=$enable_dlopen
11504
 
 
11505
 
# Whether dlopen of programs is supported.
11506
 
dlopen_self=$enable_dlopen_self
11507
 
 
11508
 
# Whether dlopen of statically linked programs is supported.
11509
 
dlopen_self_static=$enable_dlopen_self_static
11510
 
 
11511
 
# Compiler flag to prevent dynamic linking.
11512
 
link_static_flag=$lt_lt_prog_compiler_static
11513
 
 
11514
 
# Compiler flag to turn off builtin functions.
11515
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11516
 
 
11517
 
# Compiler flag to allow reflexive dlopens.
11518
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11519
 
 
11520
 
# Compiler flag to generate shared objects directly from archives.
11521
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11522
 
 
11523
 
# Compiler flag to generate thread-safe objects.
11524
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11525
 
 
11526
 
# Library versioning type.
11527
 
version_type=$version_type
11528
 
 
11529
 
# Format of library name prefix.
11530
 
libname_spec=$lt_libname_spec
11531
 
 
11532
 
# List of archive names.  First name is the real one, the rest are links.
11533
 
# The last name is the one that the linker finds with -lNAME.
11534
 
library_names_spec=$lt_library_names_spec
11535
 
 
11536
 
# The coded name of the library, if different from the real name.
11537
 
soname_spec=$lt_soname_spec
11538
 
 
11539
 
# Commands used to build and install an old-style archive.
11540
 
RANLIB=$lt_RANLIB
11541
 
old_archive_cmds=$lt_old_archive_cmds
11542
 
old_postinstall_cmds=$lt_old_postinstall_cmds
11543
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11544
 
 
11545
 
# Create an old-style archive from a shared archive.
11546
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11547
 
 
11548
 
# Create a temporary old-style archive to link instead of a shared archive.
11549
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11550
 
 
11551
 
# Commands used to build and install a shared archive.
11552
 
archive_cmds=$lt_archive_cmds
11553
 
archive_expsym_cmds=$lt_archive_expsym_cmds
11554
 
postinstall_cmds=$lt_postinstall_cmds
11555
 
postuninstall_cmds=$lt_postuninstall_cmds
11556
 
 
11557
 
# Commands used to build a loadable module (assumed same as above if empty)
11558
 
module_cmds=$lt_module_cmds
11559
 
module_expsym_cmds=$lt_module_expsym_cmds
11560
 
 
11561
 
# Commands to strip libraries.
11562
 
old_striplib=$lt_old_striplib
11563
 
striplib=$lt_striplib
11564
 
 
11565
 
# Dependencies to place before the objects being linked to create a
11566
 
# shared library.
11567
 
predep_objects=$lt_predep_objects
11568
 
 
11569
 
# Dependencies to place after the objects being linked to create a
11570
 
# shared library.
11571
 
postdep_objects=$lt_postdep_objects
11572
 
 
11573
 
# Dependencies to place before the objects being linked to create a
11574
 
# shared library.
11575
 
predeps=$lt_predeps
11576
 
 
11577
 
# Dependencies to place after the objects being linked to create a
11578
 
# shared library.
11579
 
postdeps=$lt_postdeps
11580
 
 
11581
 
# The directories searched by this compiler when creating a shared
11582
 
# library
11583
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11584
 
 
11585
 
# The library search path used internally by the compiler when linking
11586
 
# a shared library.
11587
 
compiler_lib_search_path=$lt_compiler_lib_search_path
11588
 
 
11589
 
# Method to check whether dependent libraries are shared objects.
11590
 
deplibs_check_method=$lt_deplibs_check_method
11591
 
 
11592
 
# Command to use when deplibs_check_method == file_magic.
11593
 
file_magic_cmd=$lt_file_magic_cmd
11594
 
 
11595
 
# Flag that allows shared libraries with undefined symbols to be built.
11596
 
allow_undefined_flag=$lt_allow_undefined_flag
11597
 
 
11598
 
# Flag that forces no undefined symbols.
11599
 
no_undefined_flag=$lt_no_undefined_flag
11600
 
 
11601
 
# Commands used to finish a libtool library installation in a directory.
11602
 
finish_cmds=$lt_finish_cmds
11603
 
 
11604
 
# Same as above, but a single script fragment to be evaled but not shown.
11605
 
finish_eval=$lt_finish_eval
11606
 
 
11607
 
# Take the output of nm and produce a listing of raw symbols and C names.
11608
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11609
 
 
11610
 
# Transform the output of nm in a proper C declaration
11611
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11612
 
 
11613
 
# Transform the output of nm in a C name address pair
11614
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11615
 
 
11616
 
# This is the shared library runtime path variable.
11617
 
runpath_var=$runpath_var
11618
 
 
11619
 
# This is the shared library path variable.
11620
 
shlibpath_var=$shlibpath_var
11621
 
 
11622
 
# Is shlibpath searched before the hard-coded library search path?
11623
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11624
 
 
11625
 
# How to hardcode a shared library path into an executable.
11626
 
hardcode_action=$hardcode_action
11627
 
 
11628
 
# Whether we should hardcode library paths into libraries.
11629
 
hardcode_into_libs=$hardcode_into_libs
11630
 
 
11631
 
# Flag to hardcode \$libdir into a binary during linking.
11632
 
# This must work even if \$libdir does not exist.
11633
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11634
 
 
11635
 
# If ld is used when linking, flag to hardcode \$libdir into
11636
 
# a binary during linking. This must work even if \$libdir does
11637
 
# not exist.
11638
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11639
 
 
11640
 
# Whether we need a single -rpath flag with a separated argument.
11641
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11642
 
 
11643
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11644
 
# resulting binary.
11645
 
hardcode_direct=$hardcode_direct
11646
 
 
11647
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11648
 
# resulting binary.
11649
 
hardcode_minus_L=$hardcode_minus_L
11650
 
 
11651
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11652
 
# the resulting binary.
11653
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11654
 
 
11655
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11656
 
# and all subsequent libraries and executables linked against it.
11657
 
hardcode_automatic=$hardcode_automatic
11658
 
 
11659
 
# Variables whose values should be saved in libtool wrapper scripts and
11660
 
# restored at relink time.
11661
 
variables_saved_for_relink="$variables_saved_for_relink"
11662
 
 
11663
 
# Whether libtool must link a program against all its dependency libraries.
11664
 
link_all_deplibs=$link_all_deplibs
11665
 
 
11666
 
# Compile-time system search path for libraries
11667
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11668
 
 
11669
 
# Run-time system search path for libraries
11670
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11671
 
 
11672
 
# Fix the shell variable \$srcfile for the compiler.
11673
 
fix_srcfile_path=$lt_fix_srcfile_path
11674
 
 
11675
 
# Set to yes if exported symbols are required.
11676
 
always_export_symbols=$always_export_symbols
11677
 
 
11678
 
# The commands to list exported symbols.
11679
 
export_symbols_cmds=$lt_export_symbols_cmds
11680
 
 
11681
 
# The commands to extract the exported symbol list from a shared archive.
11682
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11683
 
 
11684
 
# Symbols that should not be listed in the preloaded symbols.
11685
 
exclude_expsyms=$lt_exclude_expsyms
11686
 
 
11687
 
# Symbols that must always be exported.
11688
 
include_expsyms=$lt_include_expsyms
11689
 
 
11690
 
# ### END LIBTOOL CONFIG
11691
 
 
11692
 
__EOF__
11693
 
 
11694
 
 
11695
 
  case $host_os in
11696
 
  aix3*)
11697
 
    cat <<\EOF >> "$cfgfile"
11698
 
 
11699
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11700
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11701
 
# vanish in a puff of smoke.
11702
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11703
 
  COLLECT_NAMES=
11704
 
  export COLLECT_NAMES
11705
 
fi
11706
 
EOF
11707
 
    ;;
11708
 
  esac
11709
 
 
11710
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11711
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11712
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11713
 
  # is reportedly fixed, but why not run on old versions too?
11714
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11715
 
 
11716
 
  mv -f "$cfgfile" "$ofile" || \
11717
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11718
 
  chmod +x "$ofile"
11719
 
 
11720
 
else
11721
 
  # If there is no Makefile yet, we rely on a make rule to execute
11722
 
  # `config.status --recheck' to rerun these tests and create the
11723
 
  # libtool script then.
11724
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11725
 
  if test -f "$ltmain_in"; then
11726
 
    test -f Makefile && make "$ltmain"
11727
 
  fi
11728
 
fi
11729
 
 
11730
 
 
11731
 
ac_ext=c
11732
 
ac_cpp='$CPP $CPPFLAGS'
11733
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736
 
 
11737
 
CC="$lt_save_CC"
11738
 
 
11739
 
 
11740
 
# Check whether --with-tags was given.
11741
 
if test "${with_tags+set}" = set; then
11742
 
  withval=$with_tags; tagnames="$withval"
11743
 
fi
11744
 
 
11745
 
 
11746
 
if test -f "$ltmain" && test -n "$tagnames"; then
11747
 
  if test ! -f "${ofile}"; then
11748
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11749
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11750
 
  fi
11751
 
 
11752
 
  if test -z "$LTCC"; then
11753
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11754
 
    if test -z "$LTCC"; then
11755
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11756
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11757
 
    else
11758
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11759
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11760
 
    fi
11761
 
  fi
11762
 
  if test -z "$LTCFLAGS"; then
11763
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11764
 
  fi
11765
 
 
11766
 
  # Extract list of available tagged configurations in $ofile.
11767
 
  # Note that this assumes the entire list is on one line.
11768
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11769
 
 
11770
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11771
 
  for tagname in $tagnames; do
11772
 
    IFS="$lt_save_ifs"
11773
 
    # Check whether tagname contains only valid characters
11774
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11775
 
    "") ;;
11776
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11777
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11778
 
   { (exit 1); exit 1; }; }
11779
 
        ;;
11780
 
    esac
11781
 
 
11782
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11783
 
    then
11784
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11785
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11786
 
   { (exit 1); exit 1; }; }
11787
 
    fi
11788
 
 
11789
 
    # Update the list of available tags.
11790
 
    if test -n "$tagname"; then
11791
 
      echo appending configuration tag \"$tagname\" to $ofile
11792
 
 
11793
 
      case $tagname in
11794
 
      CXX)
11795
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11796
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11797
 
            (test "X$CXX" != "Xg++"))) ; then
11798
 
          ac_ext=cpp
11799
 
ac_cpp='$CXXCPP $CPPFLAGS'
11800
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11803
 
 
11804
 
 
11805
 
 
11806
 
 
11807
 
archive_cmds_need_lc_CXX=no
11808
 
allow_undefined_flag_CXX=
11809
 
always_export_symbols_CXX=no
11810
 
archive_expsym_cmds_CXX=
11811
 
export_dynamic_flag_spec_CXX=
11812
 
hardcode_direct_CXX=no
11813
 
hardcode_libdir_flag_spec_CXX=
11814
 
hardcode_libdir_flag_spec_ld_CXX=
11815
 
hardcode_libdir_separator_CXX=
11816
 
hardcode_minus_L_CXX=no
11817
 
hardcode_shlibpath_var_CXX=unsupported
11818
 
hardcode_automatic_CXX=no
11819
 
module_cmds_CXX=
11820
 
module_expsym_cmds_CXX=
11821
 
link_all_deplibs_CXX=unknown
11822
 
old_archive_cmds_CXX=$old_archive_cmds
11823
 
no_undefined_flag_CXX=
11824
 
whole_archive_flag_spec_CXX=
11825
 
enable_shared_with_static_runtimes_CXX=no
11826
 
 
11827
 
# Dependencies to place before and after the object being linked:
11828
 
predep_objects_CXX=
11829
 
postdep_objects_CXX=
11830
 
predeps_CXX=
11831
 
postdeps_CXX=
11832
 
compiler_lib_search_path_CXX=
11833
 
compiler_lib_search_dirs_CXX=
11834
 
 
11835
 
# Source file extension for C++ test sources.
11836
 
ac_ext=cpp
11837
 
 
11838
 
# Object file extension for compiled C++ test sources.
11839
 
objext=o
11840
 
objext_CXX=$objext
11841
 
 
11842
 
# Code to be used in simple compile tests
11843
 
lt_simple_compile_test_code="int some_variable = 0;"
11844
 
 
11845
 
# Code to be used in simple link tests
11846
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11847
 
 
11848
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11849
 
 
11850
 
# If no C compiler was specified, use CC.
11851
 
LTCC=${LTCC-"$CC"}
11852
 
 
11853
 
# If no C compiler flags were specified, use CFLAGS.
11854
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11855
 
 
11856
 
# Allow CC to be a program name with arguments.
11857
 
compiler=$CC
11858
 
 
11859
 
 
11860
 
# save warnings/boilerplate of simple test code
11861
 
ac_outfile=conftest.$ac_objext
11862
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11863
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864
 
_lt_compiler_boilerplate=`cat conftest.err`
11865
 
$rm conftest*
11866
 
 
11867
 
ac_outfile=conftest.$ac_objext
11868
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11869
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11870
 
_lt_linker_boilerplate=`cat conftest.err`
11871
 
$rm -r conftest*
11872
 
 
11873
 
 
11874
 
# Allow CC to be a program name with arguments.
11875
 
lt_save_CC=$CC
11876
 
lt_save_LD=$LD
11877
 
lt_save_GCC=$GCC
11878
 
GCC=$GXX
11879
 
lt_save_with_gnu_ld=$with_gnu_ld
11880
 
lt_save_path_LD=$lt_cv_path_LD
11881
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11882
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11883
 
else
11884
 
  $as_unset lt_cv_prog_gnu_ld
11885
 
fi
11886
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11887
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11888
 
else
11889
 
  $as_unset lt_cv_path_LD
11890
 
fi
11891
 
test -z "${LDCXX+set}" || LD=$LDCXX
11892
 
CC=${CXX-"c++"}
11893
 
compiler=$CC
11894
 
compiler_CXX=$CC
11895
 
for cc_temp in $compiler""; do
11896
 
  case $cc_temp in
11897
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11898
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11899
 
    \-*) ;;
11900
 
    *) break;;
11901
 
  esac
11902
 
done
11903
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11904
 
 
11905
 
 
11906
 
# We don't want -fno-exception wen compiling C++ code, so set the
11907
 
# no_builtin_flag separately
11908
 
if test "$GXX" = yes; then
11909
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11910
 
else
11911
 
  lt_prog_compiler_no_builtin_flag_CXX=
11912
 
fi
11913
 
 
11914
 
if test "$GXX" = yes; then
11915
 
  # Set up default GNU C++ configuration
11916
 
 
11917
 
 
11918
 
# Check whether --with-gnu-ld was given.
11919
 
if test "${with_gnu_ld+set}" = set; then
11920
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11921
 
else
11922
 
  with_gnu_ld=no
11923
 
fi
11924
 
 
11925
 
ac_prog=ld
11926
 
if test "$GCC" = yes; then
11927
 
  # Check if gcc -print-prog-name=ld gives a path.
11928
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11929
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11930
 
  case $host in
11931
 
  *-*-mingw*)
11932
 
    # gcc leaves a trailing carriage return which upsets mingw
11933
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11934
 
  *)
11935
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11936
 
  esac
11937
 
  case $ac_prog in
11938
 
    # Accept absolute paths.
11939
 
    [\\/]* | ?:[\\/]*)
11940
 
      re_direlt='/[^/][^/]*/\.\./'
11941
 
      # Canonicalize the pathname of ld
11942
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11943
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11944
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11945
 
      done
11946
 
      test -z "$LD" && LD="$ac_prog"
11947
 
      ;;
11948
 
  "")
11949
 
    # If it fails, then pretend we aren't using GCC.
11950
 
    ac_prog=ld
11951
 
    ;;
11952
 
  *)
11953
 
    # If it is relative, then search for the first ld in PATH.
11954
 
    with_gnu_ld=unknown
11955
 
    ;;
11956
 
  esac
11957
 
elif test "$with_gnu_ld" = yes; then
11958
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11959
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11960
 
else
11961
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11962
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11963
 
fi
11964
 
if test "${lt_cv_path_LD+set}" = set; then
11965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11966
 
else
11967
 
  if test -z "$LD"; then
11968
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11969
 
  for ac_dir in $PATH; do
11970
 
    IFS="$lt_save_ifs"
11971
 
    test -z "$ac_dir" && ac_dir=.
11972
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11973
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11974
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11975
 
      # but apparently some variants of GNU ld only accept -v.
11976
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11977
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11978
 
      *GNU* | *'with BFD'*)
11979
 
        test "$with_gnu_ld" != no && break
11980
 
        ;;
11981
 
      *)
11982
 
        test "$with_gnu_ld" != yes && break
11983
 
        ;;
11984
 
      esac
11985
 
    fi
11986
 
  done
11987
 
  IFS="$lt_save_ifs"
11988
 
else
11989
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11990
 
fi
11991
 
fi
11992
 
 
11993
 
LD="$lt_cv_path_LD"
11994
 
if test -n "$LD"; then
11995
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11996
 
echo "${ECHO_T}$LD" >&6; }
11997
 
else
11998
 
  { echo "$as_me:$LINENO: result: no" >&5
11999
 
echo "${ECHO_T}no" >&6; }
12000
 
fi
12001
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12002
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12003
 
   { (exit 1); exit 1; }; }
12004
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12005
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12006
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12008
 
else
12009
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12010
 
case `$LD -v 2>&1 </dev/null` in
12011
 
*GNU* | *'with BFD'*)
12012
 
  lt_cv_prog_gnu_ld=yes
12013
 
  ;;
12014
 
*)
12015
 
  lt_cv_prog_gnu_ld=no
12016
 
  ;;
12017
 
esac
12018
 
fi
12019
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12020
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12021
 
with_gnu_ld=$lt_cv_prog_gnu_ld
12022
 
 
12023
 
 
12024
 
 
12025
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12026
 
  # archiving commands below assume that GNU ld is being used.
12027
 
  if test "$with_gnu_ld" = yes; then
12028
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12029
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12030
 
 
12031
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12032
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033
 
 
12034
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
12035
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12036
 
    #     investigate it a little bit more. (MM)
12037
 
    wlarc='${wl}'
12038
 
 
12039
 
    # ancient GNU ld didn't support --whole-archive et. al.
12040
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12041
 
        grep 'no-whole-archive' > /dev/null; then
12042
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12043
 
    else
12044
 
      whole_archive_flag_spec_CXX=
12045
 
    fi
12046
 
  else
12047
 
    with_gnu_ld=no
12048
 
    wlarc=
12049
 
 
12050
 
    # A generic and very simple default shared library creation
12051
 
    # command for GNU C++ for the case where it uses the native
12052
 
    # linker, instead of GNU ld.  If possible, this setting should
12053
 
    # overridden to take advantage of the native linker features on
12054
 
    # the platform it is being used on.
12055
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12056
 
  fi
12057
 
 
12058
 
  # Commands to make compiler produce verbose output that lists
12059
 
  # what "hidden" libraries, object files and flags are used when
12060
 
  # linking a shared library.
12061
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12062
 
 
12063
 
else
12064
 
  GXX=no
12065
 
  with_gnu_ld=no
12066
 
  wlarc=
12067
 
fi
12068
 
 
12069
 
# PORTME: fill in a description of your system's C++ link characteristics
12070
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12071
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12072
 
ld_shlibs_CXX=yes
12073
 
case $host_os in
12074
 
  aix3*)
12075
 
    # FIXME: insert proper C++ library support
12076
 
    ld_shlibs_CXX=no
12077
 
    ;;
12078
 
  aix[4-9]*)
12079
 
    if test "$host_cpu" = ia64; then
12080
 
      # On IA64, the linker does run time linking by default, so we don't
12081
 
      # have to do anything special.
12082
 
      aix_use_runtimelinking=no
12083
 
      exp_sym_flag='-Bexport'
12084
 
      no_entry_flag=""
12085
 
    else
12086
 
      aix_use_runtimelinking=no
12087
 
 
12088
 
      # Test if we are trying to use run time linking or normal
12089
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12090
 
      # need to do runtime linking.
12091
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12092
 
        for ld_flag in $LDFLAGS; do
12093
 
          case $ld_flag in
12094
 
          *-brtl*)
12095
 
            aix_use_runtimelinking=yes
12096
 
            break
12097
 
            ;;
12098
 
          esac
12099
 
        done
12100
 
        ;;
12101
 
      esac
12102
 
 
12103
 
      exp_sym_flag='-bexport'
12104
 
      no_entry_flag='-bnoentry'
12105
 
    fi
12106
 
 
12107
 
    # When large executables or shared objects are built, AIX ld can
12108
 
    # have problems creating the table of contents.  If linking a library
12109
 
    # or program results in "error TOC overflow" add -mminimal-toc to
12110
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12111
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12112
 
 
12113
 
    archive_cmds_CXX=''
12114
 
    hardcode_direct_CXX=yes
12115
 
    hardcode_libdir_separator_CXX=':'
12116
 
    link_all_deplibs_CXX=yes
12117
 
 
12118
 
    if test "$GXX" = yes; then
12119
 
      case $host_os in aix4.[012]|aix4.[012].*)
12120
 
      # We only want to do this on AIX 4.2 and lower, the check
12121
 
      # below for broken collect2 doesn't work under 4.3+
12122
 
        collect2name=`${CC} -print-prog-name=collect2`
12123
 
        if test -f "$collect2name" && \
12124
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
12125
 
        then
12126
 
          # We have reworked collect2
12127
 
          :
12128
 
        else
12129
 
          # We have old collect2
12130
 
          hardcode_direct_CXX=unsupported
12131
 
          # It fails to find uninstalled libraries when the uninstalled
12132
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
12133
 
          # to unsupported forces relinking
12134
 
          hardcode_minus_L_CXX=yes
12135
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12136
 
          hardcode_libdir_separator_CXX=
12137
 
        fi
12138
 
        ;;
12139
 
      esac
12140
 
      shared_flag='-shared'
12141
 
      if test "$aix_use_runtimelinking" = yes; then
12142
 
        shared_flag="$shared_flag "'${wl}-G'
12143
 
      fi
12144
 
    else
12145
 
      # not using gcc
12146
 
      if test "$host_cpu" = ia64; then
12147
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12148
 
        # chokes on -Wl,-G. The following line is correct:
12149
 
        shared_flag='-G'
12150
 
      else
12151
 
        if test "$aix_use_runtimelinking" = yes; then
12152
 
          shared_flag='${wl}-G'
12153
 
        else
12154
 
          shared_flag='${wl}-bM:SRE'
12155
 
        fi
12156
 
      fi
12157
 
    fi
12158
 
 
12159
 
    # It seems that -bexpall does not export symbols beginning with
12160
 
    # underscore (_), so it is better to generate a list of symbols to export.
12161
 
    always_export_symbols_CXX=yes
12162
 
    if test "$aix_use_runtimelinking" = yes; then
12163
 
      # Warning - without using the other runtime loading flags (-brtl),
12164
 
      # -berok will link without error, but may produce a broken library.
12165
 
      allow_undefined_flag_CXX='-berok'
12166
 
      # Determine the default libpath from the value encoded in an empty executable.
12167
 
      cat >conftest.$ac_ext <<_ACEOF
12168
 
/* confdefs.h.  */
12169
 
_ACEOF
12170
 
cat confdefs.h >>conftest.$ac_ext
12171
 
cat >>conftest.$ac_ext <<_ACEOF
12172
 
/* end confdefs.h.  */
12173
 
 
12174
 
int
12175
 
main ()
12176
 
{
12177
 
 
12178
 
  ;
12179
 
  return 0;
12180
 
}
12181
 
_ACEOF
12182
 
rm -f conftest.$ac_objext conftest$ac_exeext
12183
 
if { (ac_try="$ac_link"
12184
 
case "(($ac_try" in
12185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186
 
  *) ac_try_echo=$ac_try;;
12187
 
esac
12188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189
 
  (eval "$ac_link") 2>conftest.er1
12190
 
  ac_status=$?
12191
 
  grep -v '^ *+' conftest.er1 >conftest.err
12192
 
  rm -f conftest.er1
12193
 
  cat conftest.err >&5
12194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195
 
  (exit $ac_status); } && {
12196
 
         test -z "$ac_cxx_werror_flag" ||
12197
 
         test ! -s conftest.err
12198
 
       } && test -s conftest$ac_exeext &&
12199
 
       $as_test_x conftest$ac_exeext; then
12200
 
 
12201
 
lt_aix_libpath_sed='
12202
 
    /Import File Strings/,/^$/ {
12203
 
        /^0/ {
12204
 
            s/^0  *\(.*\)$/\1/
12205
 
            p
12206
 
        }
12207
 
    }'
12208
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12209
 
# Check for a 64-bit object if we didn't find anything.
12210
 
if test -z "$aix_libpath"; then
12211
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12212
 
fi
12213
 
else
12214
 
  echo "$as_me: failed program was:" >&5
12215
 
sed 's/^/| /' conftest.$ac_ext >&5
12216
 
 
12217
 
 
12218
 
fi
12219
 
 
12220
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12221
 
      conftest$ac_exeext conftest.$ac_ext
12222
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12223
 
 
12224
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12225
 
 
12226
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12227
 
     else
12228
 
      if test "$host_cpu" = ia64; then
12229
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12230
 
        allow_undefined_flag_CXX="-z nodefs"
12231
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12232
 
      else
12233
 
        # Determine the default libpath from the value encoded in an empty executable.
12234
 
        cat >conftest.$ac_ext <<_ACEOF
12235
 
/* confdefs.h.  */
12236
 
_ACEOF
12237
 
cat confdefs.h >>conftest.$ac_ext
12238
 
cat >>conftest.$ac_ext <<_ACEOF
12239
 
/* end confdefs.h.  */
12240
 
 
12241
 
int
12242
 
main ()
12243
 
{
12244
 
 
12245
 
  ;
12246
 
  return 0;
12247
 
}
12248
 
_ACEOF
12249
 
rm -f conftest.$ac_objext conftest$ac_exeext
12250
 
if { (ac_try="$ac_link"
12251
 
case "(($ac_try" in
12252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253
 
  *) ac_try_echo=$ac_try;;
12254
 
esac
12255
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256
 
  (eval "$ac_link") 2>conftest.er1
12257
 
  ac_status=$?
12258
 
  grep -v '^ *+' conftest.er1 >conftest.err
12259
 
  rm -f conftest.er1
12260
 
  cat conftest.err >&5
12261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262
 
  (exit $ac_status); } && {
12263
 
         test -z "$ac_cxx_werror_flag" ||
12264
 
         test ! -s conftest.err
12265
 
       } && test -s conftest$ac_exeext &&
12266
 
       $as_test_x conftest$ac_exeext; then
12267
 
 
12268
 
lt_aix_libpath_sed='
12269
 
    /Import File Strings/,/^$/ {
12270
 
        /^0/ {
12271
 
            s/^0  *\(.*\)$/\1/
12272
 
            p
12273
 
        }
12274
 
    }'
12275
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12276
 
# Check for a 64-bit object if we didn't find anything.
12277
 
if test -z "$aix_libpath"; then
12278
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12279
 
fi
12280
 
else
12281
 
  echo "$as_me: failed program was:" >&5
12282
 
sed 's/^/| /' conftest.$ac_ext >&5
12283
 
 
12284
 
 
12285
 
fi
12286
 
 
12287
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288
 
      conftest$ac_exeext conftest.$ac_ext
12289
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12290
 
 
12291
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12292
 
        # Warning - without using the other run time loading flags,
12293
 
        # -berok will link without error, but may produce a broken library.
12294
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
12295
 
        allow_undefined_flag_CXX=' ${wl}-berok'
12296
 
        # Exported symbols can be pulled into shared objects from archives
12297
 
        whole_archive_flag_spec_CXX='$convenience'
12298
 
        archive_cmds_need_lc_CXX=yes
12299
 
        # This is similar to how AIX traditionally builds its shared libraries.
12300
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12301
 
      fi
12302
 
    fi
12303
 
    ;;
12304
 
 
12305
 
  beos*)
12306
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12307
 
      allow_undefined_flag_CXX=unsupported
12308
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12309
 
      # support --undefined.  This deserves some investigation.  FIXME
12310
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12311
 
    else
12312
 
      ld_shlibs_CXX=no
12313
 
    fi
12314
 
    ;;
12315
 
 
12316
 
  chorus*)
12317
 
    case $cc_basename in
12318
 
      *)
12319
 
        # FIXME: insert proper C++ library support
12320
 
        ld_shlibs_CXX=no
12321
 
        ;;
12322
 
    esac
12323
 
    ;;
12324
 
 
12325
 
  cygwin* | mingw* | pw32*)
12326
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12327
 
    # as there is no search path for DLLs.
12328
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
12329
 
    allow_undefined_flag_CXX=unsupported
12330
 
    always_export_symbols_CXX=no
12331
 
    enable_shared_with_static_runtimes_CXX=yes
12332
 
 
12333
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12334
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12335
 
      # If the export-symbols file already is a .def file (1st line
12336
 
      # is EXPORTS), use it as is; otherwise, prepend...
12337
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12338
 
        cp $export_symbols $output_objdir/$soname.def;
12339
 
      else
12340
 
        echo EXPORTS > $output_objdir/$soname.def;
12341
 
        cat $export_symbols >> $output_objdir/$soname.def;
12342
 
      fi~
12343
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12344
 
    else
12345
 
      ld_shlibs_CXX=no
12346
 
    fi
12347
 
  ;;
12348
 
      darwin* | rhapsody*)
12349
 
      archive_cmds_need_lc_CXX=no
12350
 
      hardcode_direct_CXX=no
12351
 
      hardcode_automatic_CXX=yes
12352
 
      hardcode_shlibpath_var_CXX=unsupported
12353
 
      whole_archive_flag_spec_CXX=''
12354
 
      link_all_deplibs_CXX=yes
12355
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12356
 
      if test "$GXX" = yes ; then
12357
 
      output_verbose_link_cmd='echo'
12358
 
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12359
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12360
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12361
 
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12362
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12363
 
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12364
 
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12365
 
      fi
12366
 
      else
12367
 
      case $cc_basename in
12368
 
        xlc*)
12369
 
         output_verbose_link_cmd='echo'
12370
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12371
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12372
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12373
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12374
 
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12375
 
          ;;
12376
 
       *)
12377
 
         ld_shlibs_CXX=no
12378
 
          ;;
12379
 
      esac
12380
 
      fi
12381
 
        ;;
12382
 
 
12383
 
  dgux*)
12384
 
    case $cc_basename in
12385
 
      ec++*)
12386
 
        # FIXME: insert proper C++ library support
12387
 
        ld_shlibs_CXX=no
12388
 
        ;;
12389
 
      ghcx*)
12390
 
        # Green Hills C++ Compiler
12391
 
        # FIXME: insert proper C++ library support
12392
 
        ld_shlibs_CXX=no
12393
 
        ;;
12394
 
      *)
12395
 
        # FIXME: insert proper C++ library support
12396
 
        ld_shlibs_CXX=no
12397
 
        ;;
12398
 
    esac
12399
 
    ;;
12400
 
  freebsd[12]*)
12401
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
12402
 
    ld_shlibs_CXX=no
12403
 
    ;;
12404
 
  freebsd-elf*)
12405
 
    archive_cmds_need_lc_CXX=no
12406
 
    ;;
12407
 
  freebsd* | dragonfly*)
12408
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12409
 
    # conventions
12410
 
    ld_shlibs_CXX=yes
12411
 
    ;;
12412
 
  gnu*)
12413
 
    ;;
12414
 
  hpux9*)
12415
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12416
 
    hardcode_libdir_separator_CXX=:
12417
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12418
 
    hardcode_direct_CXX=yes
12419
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
12420
 
                                # but as the default
12421
 
                                # location of the library.
12422
 
 
12423
 
    case $cc_basename in
12424
 
    CC*)
12425
 
      # FIXME: insert proper C++ library support
12426
 
      ld_shlibs_CXX=no
12427
 
      ;;
12428
 
    aCC*)
12429
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12430
 
      # Commands to make compiler produce verbose output that lists
12431
 
      # what "hidden" libraries, object files and flags are used when
12432
 
      # linking a shared library.
12433
 
      #
12434
 
      # There doesn't appear to be a way to prevent this compiler from
12435
 
      # explicitly linking system object files so we need to strip them
12436
 
      # from the output so that they don't get included in the library
12437
 
      # dependencies.
12438
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12439
 
      ;;
12440
 
    *)
12441
 
      if test "$GXX" = yes; then
12442
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12443
 
      else
12444
 
        # FIXME: insert proper C++ library support
12445
 
        ld_shlibs_CXX=no
12446
 
      fi
12447
 
      ;;
12448
 
    esac
12449
 
    ;;
12450
 
  hpux10*|hpux11*)
12451
 
    if test $with_gnu_ld = no; then
12452
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12453
 
      hardcode_libdir_separator_CXX=:
12454
 
 
12455
 
      case $host_cpu in
12456
 
      hppa*64*|ia64*) ;;
12457
 
      *)
12458
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12459
 
        ;;
12460
 
      esac
12461
 
    fi
12462
 
    case $host_cpu in
12463
 
    hppa*64*|ia64*)
12464
 
      hardcode_direct_CXX=no
12465
 
      hardcode_shlibpath_var_CXX=no
12466
 
      ;;
12467
 
    *)
12468
 
      hardcode_direct_CXX=yes
12469
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12470
 
                                              # but as the default
12471
 
                                              # location of the library.
12472
 
      ;;
12473
 
    esac
12474
 
 
12475
 
    case $cc_basename in
12476
 
      CC*)
12477
 
        # FIXME: insert proper C++ library support
12478
 
        ld_shlibs_CXX=no
12479
 
        ;;
12480
 
      aCC*)
12481
 
        case $host_cpu in
12482
 
        hppa*64*)
12483
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12484
 
          ;;
12485
 
        ia64*)
12486
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12487
 
          ;;
12488
 
        *)
12489
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12490
 
          ;;
12491
 
        esac
12492
 
        # Commands to make compiler produce verbose output that lists
12493
 
        # what "hidden" libraries, object files and flags are used when
12494
 
        # linking a shared library.
12495
 
        #
12496
 
        # There doesn't appear to be a way to prevent this compiler from
12497
 
        # explicitly linking system object files so we need to strip them
12498
 
        # from the output so that they don't get included in the library
12499
 
        # dependencies.
12500
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12501
 
        ;;
12502
 
      *)
12503
 
        if test "$GXX" = yes; then
12504
 
          if test $with_gnu_ld = no; then
12505
 
            case $host_cpu in
12506
 
            hppa*64*)
12507
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508
 
              ;;
12509
 
            ia64*)
12510
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12511
 
              ;;
12512
 
            *)
12513
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12514
 
              ;;
12515
 
            esac
12516
 
          fi
12517
 
        else
12518
 
          # FIXME: insert proper C++ library support
12519
 
          ld_shlibs_CXX=no
12520
 
        fi
12521
 
        ;;
12522
 
    esac
12523
 
    ;;
12524
 
  interix[3-9]*)
12525
 
    hardcode_direct_CXX=no
12526
 
    hardcode_shlibpath_var_CXX=no
12527
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12528
 
    export_dynamic_flag_spec_CXX='${wl}-E'
12529
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12530
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
12531
 
    # default) and relocated if they conflict, which is a slow very memory
12532
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
12533
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12534
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12535
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12536
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12537
 
    ;;
12538
 
  irix5* | irix6*)
12539
 
    case $cc_basename in
12540
 
      CC*)
12541
 
        # SGI C++
12542
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12543
 
 
12544
 
        # Archives containing C++ object files must be created using
12545
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12546
 
        # necessary to make sure instantiated templates are included
12547
 
        # in the archive.
12548
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12549
 
        ;;
12550
 
      *)
12551
 
        if test "$GXX" = yes; then
12552
 
          if test "$with_gnu_ld" = no; then
12553
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12554
 
          else
12555
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12556
 
          fi
12557
 
        fi
12558
 
        link_all_deplibs_CXX=yes
12559
 
        ;;
12560
 
    esac
12561
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12562
 
    hardcode_libdir_separator_CXX=:
12563
 
    ;;
12564
 
  linux* | k*bsd*-gnu)
12565
 
    case $cc_basename in
12566
 
      KCC*)
12567
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12568
 
 
12569
 
        # KCC will only create a shared library if the output file
12570
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12571
 
        # to its proper name (with version) after linking.
12572
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12573
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12574
 
        # Commands to make compiler produce verbose output that lists
12575
 
        # what "hidden" libraries, object files and flags are used when
12576
 
        # linking a shared library.
12577
 
        #
12578
 
        # There doesn't appear to be a way to prevent this compiler from
12579
 
        # explicitly linking system object files so we need to strip them
12580
 
        # from the output so that they don't get included in the library
12581
 
        # dependencies.
12582
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12583
 
 
12584
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12585
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12586
 
 
12587
 
        # Archives containing C++ object files must be created using
12588
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12589
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12590
 
        ;;
12591
 
      icpc*)
12592
 
        # Intel C++
12593
 
        with_gnu_ld=yes
12594
 
        # version 8.0 and above of icpc choke on multiply defined symbols
12595
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
12596
 
        # earlier do not add the objects themselves.
12597
 
        case `$CC -V 2>&1` in
12598
 
        *"Version 7."*)
12599
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12600
 
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12601
 
          ;;
12602
 
        *)  # Version 8.0 or newer
12603
 
          tmp_idyn=
12604
 
          case $host_cpu in
12605
 
            ia64*) tmp_idyn=' -i_dynamic';;
12606
 
          esac
12607
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12608
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12609
 
          ;;
12610
 
        esac
12611
 
        archive_cmds_need_lc_CXX=no
12612
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12613
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12615
 
        ;;
12616
 
      pgCC* | pgcpp*)
12617
 
        # Portland Group C++ compiler
12618
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12619
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12620
 
 
12621
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12622
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12623
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12624
 
        ;;
12625
 
      cxx*)
12626
 
        # Compaq C++
12627
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12629
 
 
12630
 
        runpath_var=LD_RUN_PATH
12631
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12632
 
        hardcode_libdir_separator_CXX=:
12633
 
 
12634
 
        # Commands to make compiler produce verbose output that lists
12635
 
        # what "hidden" libraries, object files and flags are used when
12636
 
        # linking a shared library.
12637
 
        #
12638
 
        # There doesn't appear to be a way to prevent this compiler from
12639
 
        # explicitly linking system object files so we need to strip them
12640
 
        # from the output so that they don't get included in the library
12641
 
        # dependencies.
12642
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12643
 
        ;;
12644
 
      *)
12645
 
        case `$CC -V 2>&1 | sed 5q` in
12646
 
        *Sun\ C*)
12647
 
          # Sun C++ 5.9
12648
 
          no_undefined_flag_CXX=' -zdefs'
12649
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12650
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12651
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12652
 
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12653
 
 
12654
 
          # Not sure whether something based on
12655
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12656
 
          # would be better.
12657
 
          output_verbose_link_cmd='echo'
12658
 
 
12659
 
          # Archives containing C++ object files must be created using
12660
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12661
 
          # necessary to make sure instantiated templates are included
12662
 
          # in the archive.
12663
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12664
 
          ;;
12665
 
        esac
12666
 
        ;;
12667
 
    esac
12668
 
    ;;
12669
 
  lynxos*)
12670
 
    # FIXME: insert proper C++ library support
12671
 
    ld_shlibs_CXX=no
12672
 
    ;;
12673
 
  m88k*)
12674
 
    # FIXME: insert proper C++ library support
12675
 
    ld_shlibs_CXX=no
12676
 
    ;;
12677
 
  mvs*)
12678
 
    case $cc_basename in
12679
 
      cxx*)
12680
 
        # FIXME: insert proper C++ library support
12681
 
        ld_shlibs_CXX=no
12682
 
        ;;
12683
 
      *)
12684
 
        # FIXME: insert proper C++ library support
12685
 
        ld_shlibs_CXX=no
12686
 
        ;;
12687
 
    esac
12688
 
    ;;
12689
 
  netbsd* | netbsdelf*-gnu)
12690
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12691
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12692
 
      wlarc=
12693
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12694
 
      hardcode_direct_CXX=yes
12695
 
      hardcode_shlibpath_var_CXX=no
12696
 
    fi
12697
 
    # Workaround some broken pre-1.5 toolchains
12698
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12699
 
    ;;
12700
 
  openbsd2*)
12701
 
    # C++ shared libraries are fairly broken
12702
 
    ld_shlibs_CXX=no
12703
 
    ;;
12704
 
  openbsd*)
12705
 
    if test -f /usr/libexec/ld.so; then
12706
 
      hardcode_direct_CXX=yes
12707
 
      hardcode_shlibpath_var_CXX=no
12708
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12709
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12710
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12711
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12712
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12713
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12714
 
      fi
12715
 
      output_verbose_link_cmd='echo'
12716
 
    else
12717
 
      ld_shlibs_CXX=no
12718
 
    fi
12719
 
    ;;
12720
 
  osf3*)
12721
 
    case $cc_basename in
12722
 
      KCC*)
12723
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12724
 
 
12725
 
        # KCC will only create a shared library if the output file
12726
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12727
 
        # to its proper name (with version) after linking.
12728
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12729
 
 
12730
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731
 
        hardcode_libdir_separator_CXX=:
12732
 
 
12733
 
        # Archives containing C++ object files must be created using
12734
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12735
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12736
 
 
12737
 
        ;;
12738
 
      RCC*)
12739
 
        # Rational C++ 2.4.1
12740
 
        # FIXME: insert proper C++ library support
12741
 
        ld_shlibs_CXX=no
12742
 
        ;;
12743
 
      cxx*)
12744
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12745
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12746
 
 
12747
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748
 
        hardcode_libdir_separator_CXX=:
12749
 
 
12750
 
        # Commands to make compiler produce verbose output that lists
12751
 
        # what "hidden" libraries, object files and flags are used when
12752
 
        # linking a shared library.
12753
 
        #
12754
 
        # There doesn't appear to be a way to prevent this compiler from
12755
 
        # explicitly linking system object files so we need to strip them
12756
 
        # from the output so that they don't get included in the library
12757
 
        # dependencies.
12758
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12759
 
        ;;
12760
 
      *)
12761
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12762
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12763
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12764
 
 
12765
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766
 
          hardcode_libdir_separator_CXX=:
12767
 
 
12768
 
          # Commands to make compiler produce verbose output that lists
12769
 
          # what "hidden" libraries, object files and flags are used when
12770
 
          # linking a shared library.
12771
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12772
 
 
12773
 
        else
12774
 
          # FIXME: insert proper C++ library support
12775
 
          ld_shlibs_CXX=no
12776
 
        fi
12777
 
        ;;
12778
 
    esac
12779
 
    ;;
12780
 
  osf4* | osf5*)
12781
 
    case $cc_basename in
12782
 
      KCC*)
12783
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12784
 
 
12785
 
        # KCC will only create a shared library if the output file
12786
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12787
 
        # to its proper name (with version) after linking.
12788
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12789
 
 
12790
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791
 
        hardcode_libdir_separator_CXX=:
12792
 
 
12793
 
        # Archives containing C++ object files must be created using
12794
 
        # the KAI C++ compiler.
12795
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12796
 
        ;;
12797
 
      RCC*)
12798
 
        # Rational C++ 2.4.1
12799
 
        # FIXME: insert proper C++ library support
12800
 
        ld_shlibs_CXX=no
12801
 
        ;;
12802
 
      cxx*)
12803
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12804
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12805
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12806
 
          echo "-hidden">> $lib.exp~
12807
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12808
 
          $rm $lib.exp'
12809
 
 
12810
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12811
 
        hardcode_libdir_separator_CXX=:
12812
 
 
12813
 
        # Commands to make compiler produce verbose output that lists
12814
 
        # what "hidden" libraries, object files and flags are used when
12815
 
        # linking a shared library.
12816
 
        #
12817
 
        # There doesn't appear to be a way to prevent this compiler from
12818
 
        # explicitly linking system object files so we need to strip them
12819
 
        # from the output so that they don't get included in the library
12820
 
        # dependencies.
12821
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12822
 
        ;;
12823
 
      *)
12824
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12825
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12826
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12827
 
 
12828
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829
 
          hardcode_libdir_separator_CXX=:
12830
 
 
12831
 
          # Commands to make compiler produce verbose output that lists
12832
 
          # what "hidden" libraries, object files and flags are used when
12833
 
          # linking a shared library.
12834
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12835
 
 
12836
 
        else
12837
 
          # FIXME: insert proper C++ library support
12838
 
          ld_shlibs_CXX=no
12839
 
        fi
12840
 
        ;;
12841
 
    esac
12842
 
    ;;
12843
 
  psos*)
12844
 
    # FIXME: insert proper C++ library support
12845
 
    ld_shlibs_CXX=no
12846
 
    ;;
12847
 
  sunos4*)
12848
 
    case $cc_basename in
12849
 
      CC*)
12850
 
        # Sun C++ 4.x
12851
 
        # FIXME: insert proper C++ library support
12852
 
        ld_shlibs_CXX=no
12853
 
        ;;
12854
 
      lcc*)
12855
 
        # Lucid
12856
 
        # FIXME: insert proper C++ library support
12857
 
        ld_shlibs_CXX=no
12858
 
        ;;
12859
 
      *)
12860
 
        # FIXME: insert proper C++ library support
12861
 
        ld_shlibs_CXX=no
12862
 
        ;;
12863
 
    esac
12864
 
    ;;
12865
 
  solaris*)
12866
 
    case $cc_basename in
12867
 
      CC*)
12868
 
        # Sun C++ 4.2, 5.x and Centerline C++
12869
 
        archive_cmds_need_lc_CXX=yes
12870
 
        no_undefined_flag_CXX=' -zdefs'
12871
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12873
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12874
 
 
12875
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12876
 
        hardcode_shlibpath_var_CXX=no
12877
 
        case $host_os in
12878
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12879
 
          *)
12880
 
            # The compiler driver will combine and reorder linker options,
12881
 
            # but understands `-z linker_flag'.
12882
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12883
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12884
 
            ;;
12885
 
        esac
12886
 
        link_all_deplibs_CXX=yes
12887
 
 
12888
 
        output_verbose_link_cmd='echo'
12889
 
 
12890
 
        # Archives containing C++ object files must be created using
12891
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12892
 
        # necessary to make sure instantiated templates are included
12893
 
        # in the archive.
12894
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12895
 
        ;;
12896
 
      gcx*)
12897
 
        # Green Hills C++ Compiler
12898
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12899
 
 
12900
 
        # The C++ compiler must be used to create the archive.
12901
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12902
 
        ;;
12903
 
      *)
12904
 
        # GNU C++ compiler with Solaris linker
12905
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12906
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12907
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12908
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12909
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12910
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12911
 
 
12912
 
            # Commands to make compiler produce verbose output that lists
12913
 
            # what "hidden" libraries, object files and flags are used when
12914
 
            # linking a shared library.
12915
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12916
 
          else
12917
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12918
 
            # platform.
12919
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12920
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12921
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12922
 
 
12923
 
            # Commands to make compiler produce verbose output that lists
12924
 
            # what "hidden" libraries, object files and flags are used when
12925
 
            # linking a shared library.
12926
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12927
 
          fi
12928
 
 
12929
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12930
 
          case $host_os in
12931
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12932
 
          *)
12933
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12934
 
            ;;
12935
 
          esac
12936
 
        fi
12937
 
        ;;
12938
 
    esac
12939
 
    ;;
12940
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12941
 
    no_undefined_flag_CXX='${wl}-z,text'
12942
 
    archive_cmds_need_lc_CXX=no
12943
 
    hardcode_shlibpath_var_CXX=no
12944
 
    runpath_var='LD_RUN_PATH'
12945
 
 
12946
 
    case $cc_basename in
12947
 
      CC*)
12948
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12950
 
        ;;
12951
 
      *)
12952
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12953
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12954
 
        ;;
12955
 
    esac
12956
 
    ;;
12957
 
  sysv5* | sco3.2v5* | sco5v6*)
12958
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12959
 
    # link with -lc, and that would cause any symbols used from libc to
12960
 
    # always be unresolved, which means just about no library would
12961
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12962
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12963
 
    # as -z defs.
12964
 
    # For security reasons, it is highly recommended that you always
12965
 
    # use absolute paths for naming shared libraries, and exclude the
12966
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12967
 
    # requires that you compile everything twice, which is a pain.
12968
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12969
 
    # non-empty value in the environment.  Most likely only useful for
12970
 
    # creating official distributions of packages.
12971
 
    # This is a hack until libtool officially supports absolute path
12972
 
    # names for shared libraries.
12973
 
    no_undefined_flag_CXX='${wl}-z,text'
12974
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12975
 
    archive_cmds_need_lc_CXX=no
12976
 
    hardcode_shlibpath_var_CXX=no
12977
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12978
 
    hardcode_libdir_separator_CXX=':'
12979
 
    link_all_deplibs_CXX=yes
12980
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12981
 
    runpath_var='LD_RUN_PATH'
12982
 
 
12983
 
    case $cc_basename in
12984
 
      CC*)
12985
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12986
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12987
 
        ;;
12988
 
      *)
12989
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12990
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12991
 
        ;;
12992
 
    esac
12993
 
    ;;
12994
 
  tandem*)
12995
 
    case $cc_basename in
12996
 
      NCC*)
12997
 
        # NonStop-UX NCC 3.20
12998
 
        # FIXME: insert proper C++ library support
12999
 
        ld_shlibs_CXX=no
13000
 
        ;;
13001
 
      *)
13002
 
        # FIXME: insert proper C++ library support
13003
 
        ld_shlibs_CXX=no
13004
 
        ;;
13005
 
    esac
13006
 
    ;;
13007
 
  vxworks*)
13008
 
    # FIXME: insert proper C++ library support
13009
 
    ld_shlibs_CXX=no
13010
 
    ;;
13011
 
  *)
13012
 
    # FIXME: insert proper C++ library support
13013
 
    ld_shlibs_CXX=no
13014
 
    ;;
13015
 
esac
13016
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13017
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13018
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13019
 
 
13020
 
GCC_CXX="$GXX"
13021
 
LD_CXX="$LD"
13022
 
 
13023
 
cat > conftest.$ac_ext <<EOF
13024
 
class Foo
13025
 
{
13026
 
public:
13027
 
  Foo (void) { a = 0; }
13028
 
private:
13029
 
  int a;
13030
 
};
13031
 
EOF
13032
 
 
13033
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034
 
  (eval $ac_compile) 2>&5
13035
 
  ac_status=$?
13036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037
 
  (exit $ac_status); }; then
13038
 
  # Parse the compiler output and extract the necessary
13039
 
  # objects, libraries and library flags.
13040
 
 
13041
 
  # Sentinel used to keep track of whether or not we are before
13042
 
  # the conftest object file.
13043
 
  pre_test_object_deps_done=no
13044
 
 
13045
 
  # The `*' in the case matches for architectures that use `case' in
13046
 
  # $output_verbose_cmd can trigger glob expansion during the loop
13047
 
  # eval without this substitution.
13048
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13049
 
 
13050
 
  for p in `eval $output_verbose_link_cmd`; do
13051
 
    case $p in
13052
 
 
13053
 
    -L* | -R* | -l*)
13054
 
       # Some compilers place space between "-{L,R}" and the path.
13055
 
       # Remove the space.
13056
 
       if test $p = "-L" \
13057
 
          || test $p = "-R"; then
13058
 
         prev=$p
13059
 
         continue
13060
 
       else
13061
 
         prev=
13062
 
       fi
13063
 
 
13064
 
       if test "$pre_test_object_deps_done" = no; then
13065
 
         case $p in
13066
 
         -L* | -R*)
13067
 
           # Internal compiler library paths should come after those
13068
 
           # provided the user.  The postdeps already come after the
13069
 
           # user supplied libs so there is no need to process them.
13070
 
           if test -z "$compiler_lib_search_path_CXX"; then
13071
 
             compiler_lib_search_path_CXX="${prev}${p}"
13072
 
           else
13073
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13074
 
           fi
13075
 
           ;;
13076
 
         # The "-l" case would never come before the object being
13077
 
         # linked, so don't bother handling this case.
13078
 
         esac
13079
 
       else
13080
 
         if test -z "$postdeps_CXX"; then
13081
 
           postdeps_CXX="${prev}${p}"
13082
 
         else
13083
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13084
 
         fi
13085
 
       fi
13086
 
       ;;
13087
 
 
13088
 
    *.$objext)
13089
 
       # This assumes that the test object file only shows up
13090
 
       # once in the compiler output.
13091
 
       if test "$p" = "conftest.$objext"; then
13092
 
         pre_test_object_deps_done=yes
13093
 
         continue
13094
 
       fi
13095
 
 
13096
 
       if test "$pre_test_object_deps_done" = no; then
13097
 
         if test -z "$predep_objects_CXX"; then
13098
 
           predep_objects_CXX="$p"
13099
 
         else
13100
 
           predep_objects_CXX="$predep_objects_CXX $p"
13101
 
         fi
13102
 
       else
13103
 
         if test -z "$postdep_objects_CXX"; then
13104
 
           postdep_objects_CXX="$p"
13105
 
         else
13106
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
13107
 
         fi
13108
 
       fi
13109
 
       ;;
13110
 
 
13111
 
    *) ;; # Ignore the rest.
13112
 
 
13113
 
    esac
13114
 
  done
13115
 
 
13116
 
  # Clean up.
13117
 
  rm -f a.out a.exe
13118
 
else
13119
 
  echo "libtool.m4: error: problem compiling CXX test program"
13120
 
fi
13121
 
 
13122
 
$rm -f confest.$objext
13123
 
 
13124
 
compiler_lib_search_dirs_CXX=
13125
 
if test -n "$compiler_lib_search_path_CXX"; then
13126
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13127
 
fi
13128
 
 
13129
 
# PORTME: override above test on systems where it is broken
13130
 
case $host_os in
13131
 
interix[3-9]*)
13132
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13133
 
  # hack all around it, let's just trust "g++" to DTRT.
13134
 
  predep_objects_CXX=
13135
 
  postdep_objects_CXX=
13136
 
  postdeps_CXX=
13137
 
  ;;
13138
 
 
13139
 
linux*)
13140
 
  case `$CC -V 2>&1 | sed 5q` in
13141
 
  *Sun\ C*)
13142
 
    # Sun C++ 5.9
13143
 
    #
13144
 
    # The more standards-conforming stlport4 library is
13145
 
    # incompatible with the Cstd library. Avoid specifying
13146
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13147
 
    # -library=stlport4 depends on it.
13148
 
    case " $CXX $CXXFLAGS " in
13149
 
    *" -library=stlport4 "*)
13150
 
      solaris_use_stlport4=yes
13151
 
      ;;
13152
 
    esac
13153
 
    if test "$solaris_use_stlport4" != yes; then
13154
 
      postdeps_CXX='-library=Cstd -library=Crun'
13155
 
    fi
13156
 
    ;;
13157
 
  esac
13158
 
  ;;
13159
 
 
13160
 
solaris*)
13161
 
  case $cc_basename in
13162
 
  CC*)
13163
 
    # The more standards-conforming stlport4 library is
13164
 
    # incompatible with the Cstd library. Avoid specifying
13165
 
    # it if it's in CXXFLAGS. Ignore libCrun as
13166
 
    # -library=stlport4 depends on it.
13167
 
    case " $CXX $CXXFLAGS " in
13168
 
    *" -library=stlport4 "*)
13169
 
      solaris_use_stlport4=yes
13170
 
      ;;
13171
 
    esac
13172
 
 
13173
 
    # Adding this requires a known-good setup of shared libraries for
13174
 
    # Sun compiler versions before 5.6, else PIC objects from an old
13175
 
    # archive will be linked into the output, leading to subtle bugs.
13176
 
    if test "$solaris_use_stlport4" != yes; then
13177
 
      postdeps_CXX='-library=Cstd -library=Crun'
13178
 
    fi
13179
 
    ;;
13180
 
  esac
13181
 
  ;;
13182
 
esac
13183
 
 
13184
 
case " $postdeps_CXX " in
13185
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13186
 
esac
13187
 
 
13188
 
lt_prog_compiler_wl_CXX=
13189
 
lt_prog_compiler_pic_CXX=
13190
 
lt_prog_compiler_static_CXX=
13191
 
 
13192
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13193
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13194
 
 
13195
 
  # C++ specific cases for pic, static, wl, etc.
13196
 
  if test "$GXX" = yes; then
13197
 
    lt_prog_compiler_wl_CXX='-Wl,'
13198
 
    lt_prog_compiler_static_CXX='-static'
13199
 
 
13200
 
    case $host_os in
13201
 
    aix*)
13202
 
      # All AIX code is PIC.
13203
 
      if test "$host_cpu" = ia64; then
13204
 
        # AIX 5 now supports IA64 processor
13205
 
        lt_prog_compiler_static_CXX='-Bstatic'
13206
 
      fi
13207
 
      ;;
13208
 
    amigaos*)
13209
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13210
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13211
 
      # like `-m68040'.
13212
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13213
 
      ;;
13214
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13215
 
      # PIC is the default for these OSes.
13216
 
      ;;
13217
 
    mingw* | cygwin* | os2* | pw32*)
13218
 
      # This hack is so that the source file can tell whether it is being
13219
 
      # built for inclusion in a dll (and should export symbols for example).
13220
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13221
 
      # (--disable-auto-import) libraries
13222
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13223
 
      ;;
13224
 
    darwin* | rhapsody*)
13225
 
      # PIC is the default on this platform
13226
 
      # Common symbols not allowed in MH_DYLIB files
13227
 
      lt_prog_compiler_pic_CXX='-fno-common'
13228
 
      ;;
13229
 
    *djgpp*)
13230
 
      # DJGPP does not support shared libraries at all
13231
 
      lt_prog_compiler_pic_CXX=
13232
 
      ;;
13233
 
    interix[3-9]*)
13234
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13235
 
      # Instead, we relocate shared libraries at runtime.
13236
 
      ;;
13237
 
    sysv4*MP*)
13238
 
      if test -d /usr/nec; then
13239
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
13240
 
      fi
13241
 
      ;;
13242
 
    hpux*)
13243
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13244
 
      # not for PA HP-UX.
13245
 
      case $host_cpu in
13246
 
      hppa*64*|ia64*)
13247
 
        ;;
13248
 
      *)
13249
 
        lt_prog_compiler_pic_CXX='-fPIC'
13250
 
        ;;
13251
 
      esac
13252
 
      ;;
13253
 
    *)
13254
 
      lt_prog_compiler_pic_CXX='-fPIC'
13255
 
      ;;
13256
 
    esac
13257
 
  else
13258
 
    case $host_os in
13259
 
      aix[4-9]*)
13260
 
        # All AIX code is PIC.
13261
 
        if test "$host_cpu" = ia64; then
13262
 
          # AIX 5 now supports IA64 processor
13263
 
          lt_prog_compiler_static_CXX='-Bstatic'
13264
 
        else
13265
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13266
 
        fi
13267
 
        ;;
13268
 
      chorus*)
13269
 
        case $cc_basename in
13270
 
        cxch68*)
13271
 
          # Green Hills C++ Compiler
13272
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13273
 
          ;;
13274
 
        esac
13275
 
        ;;
13276
 
       darwin*)
13277
 
         # PIC is the default on this platform
13278
 
         # Common symbols not allowed in MH_DYLIB files
13279
 
         case $cc_basename in
13280
 
           xlc*)
13281
 
           lt_prog_compiler_pic_CXX='-qnocommon'
13282
 
           lt_prog_compiler_wl_CXX='-Wl,'
13283
 
           ;;
13284
 
         esac
13285
 
       ;;
13286
 
      dgux*)
13287
 
        case $cc_basename in
13288
 
          ec++*)
13289
 
            lt_prog_compiler_pic_CXX='-KPIC'
13290
 
            ;;
13291
 
          ghcx*)
13292
 
            # Green Hills C++ Compiler
13293
 
            lt_prog_compiler_pic_CXX='-pic'
13294
 
            ;;
13295
 
          *)
13296
 
            ;;
13297
 
        esac
13298
 
        ;;
13299
 
      freebsd* | dragonfly*)
13300
 
        # FreeBSD uses GNU C++
13301
 
        ;;
13302
 
      hpux9* | hpux10* | hpux11*)
13303
 
        case $cc_basename in
13304
 
          CC*)
13305
 
            lt_prog_compiler_wl_CXX='-Wl,'
13306
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13307
 
            if test "$host_cpu" != ia64; then
13308
 
              lt_prog_compiler_pic_CXX='+Z'
13309
 
            fi
13310
 
            ;;
13311
 
          aCC*)
13312
 
            lt_prog_compiler_wl_CXX='-Wl,'
13313
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13314
 
            case $host_cpu in
13315
 
            hppa*64*|ia64*)
13316
 
              # +Z the default
13317
 
              ;;
13318
 
            *)
13319
 
              lt_prog_compiler_pic_CXX='+Z'
13320
 
              ;;
13321
 
            esac
13322
 
            ;;
13323
 
          *)
13324
 
            ;;
13325
 
        esac
13326
 
        ;;
13327
 
      interix*)
13328
 
        # This is c89, which is MS Visual C++ (no shared libs)
13329
 
        # Anyone wants to do a port?
13330
 
        ;;
13331
 
      irix5* | irix6* | nonstopux*)
13332
 
        case $cc_basename in
13333
 
          CC*)
13334
 
            lt_prog_compiler_wl_CXX='-Wl,'
13335
 
            lt_prog_compiler_static_CXX='-non_shared'
13336
 
            # CC pic flag -KPIC is the default.
13337
 
            ;;
13338
 
          *)
13339
 
            ;;
13340
 
        esac
13341
 
        ;;
13342
 
      linux* | k*bsd*-gnu)
13343
 
        case $cc_basename in
13344
 
          KCC*)
13345
 
            # KAI C++ Compiler
13346
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13347
 
            lt_prog_compiler_pic_CXX='-fPIC'
13348
 
            ;;
13349
 
          icpc* | ecpc*)
13350
 
            # Intel C++
13351
 
            lt_prog_compiler_wl_CXX='-Wl,'
13352
 
            lt_prog_compiler_pic_CXX='-KPIC'
13353
 
            lt_prog_compiler_static_CXX='-static'
13354
 
            ;;
13355
 
          pgCC* | pgcpp*)
13356
 
            # Portland Group C++ compiler.
13357
 
            lt_prog_compiler_wl_CXX='-Wl,'
13358
 
            lt_prog_compiler_pic_CXX='-fpic'
13359
 
            lt_prog_compiler_static_CXX='-Bstatic'
13360
 
            ;;
13361
 
          cxx*)
13362
 
            # Compaq C++
13363
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13364
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13365
 
            lt_prog_compiler_pic_CXX=
13366
 
            lt_prog_compiler_static_CXX='-non_shared'
13367
 
            ;;
13368
 
          *)
13369
 
            case `$CC -V 2>&1 | sed 5q` in
13370
 
            *Sun\ C*)
13371
 
              # Sun C++ 5.9
13372
 
              lt_prog_compiler_pic_CXX='-KPIC'
13373
 
              lt_prog_compiler_static_CXX='-Bstatic'
13374
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
13375
 
              ;;
13376
 
            esac
13377
 
            ;;
13378
 
        esac
13379
 
        ;;
13380
 
      lynxos*)
13381
 
        ;;
13382
 
      m88k*)
13383
 
        ;;
13384
 
      mvs*)
13385
 
        case $cc_basename in
13386
 
          cxx*)
13387
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
13388
 
            ;;
13389
 
          *)
13390
 
            ;;
13391
 
        esac
13392
 
        ;;
13393
 
      netbsd* | netbsdelf*-gnu)
13394
 
        ;;
13395
 
      osf3* | osf4* | osf5*)
13396
 
        case $cc_basename in
13397
 
          KCC*)
13398
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13399
 
            ;;
13400
 
          RCC*)
13401
 
            # Rational C++ 2.4.1
13402
 
            lt_prog_compiler_pic_CXX='-pic'
13403
 
            ;;
13404
 
          cxx*)
13405
 
            # Digital/Compaq C++
13406
 
            lt_prog_compiler_wl_CXX='-Wl,'
13407
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
13408
 
            # Linux and Compaq Tru64 Unix objects are PIC.
13409
 
            lt_prog_compiler_pic_CXX=
13410
 
            lt_prog_compiler_static_CXX='-non_shared'
13411
 
            ;;
13412
 
          *)
13413
 
            ;;
13414
 
        esac
13415
 
        ;;
13416
 
      psos*)
13417
 
        ;;
13418
 
      solaris*)
13419
 
        case $cc_basename in
13420
 
          CC*)
13421
 
            # Sun C++ 4.2, 5.x and Centerline C++
13422
 
            lt_prog_compiler_pic_CXX='-KPIC'
13423
 
            lt_prog_compiler_static_CXX='-Bstatic'
13424
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
13425
 
            ;;
13426
 
          gcx*)
13427
 
            # Green Hills C++ Compiler
13428
 
            lt_prog_compiler_pic_CXX='-PIC'
13429
 
            ;;
13430
 
          *)
13431
 
            ;;
13432
 
        esac
13433
 
        ;;
13434
 
      sunos4*)
13435
 
        case $cc_basename in
13436
 
          CC*)
13437
 
            # Sun C++ 4.x
13438
 
            lt_prog_compiler_pic_CXX='-pic'
13439
 
            lt_prog_compiler_static_CXX='-Bstatic'
13440
 
            ;;
13441
 
          lcc*)
13442
 
            # Lucid
13443
 
            lt_prog_compiler_pic_CXX='-pic'
13444
 
            ;;
13445
 
          *)
13446
 
            ;;
13447
 
        esac
13448
 
        ;;
13449
 
      tandem*)
13450
 
        case $cc_basename in
13451
 
          NCC*)
13452
 
            # NonStop-UX NCC 3.20
13453
 
            lt_prog_compiler_pic_CXX='-KPIC'
13454
 
            ;;
13455
 
          *)
13456
 
            ;;
13457
 
        esac
13458
 
        ;;
13459
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13460
 
        case $cc_basename in
13461
 
          CC*)
13462
 
            lt_prog_compiler_wl_CXX='-Wl,'
13463
 
            lt_prog_compiler_pic_CXX='-KPIC'
13464
 
            lt_prog_compiler_static_CXX='-Bstatic'
13465
 
            ;;
13466
 
        esac
13467
 
        ;;
13468
 
      vxworks*)
13469
 
        ;;
13470
 
      *)
13471
 
        lt_prog_compiler_can_build_shared_CXX=no
13472
 
        ;;
13473
 
    esac
13474
 
  fi
13475
 
 
13476
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13477
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13478
 
 
13479
 
#
13480
 
# Check to make sure the PIC flag actually works.
13481
 
#
13482
 
if test -n "$lt_prog_compiler_pic_CXX"; then
13483
 
 
13484
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13485
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13486
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13487
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13488
 
else
13489
 
  lt_cv_prog_compiler_pic_works_CXX=no
13490
 
  ac_outfile=conftest.$ac_objext
13491
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13492
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13493
 
   # Insert the option either (1) after the last *FLAGS variable, or
13494
 
   # (2) before a word containing "conftest.", or (3) at the end.
13495
 
   # Note that $ac_compile itself does not contain backslashes and begins
13496
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13497
 
   # The option is referenced via a variable to avoid confusing sed.
13498
 
   lt_compile=`echo "$ac_compile" | $SED \
13499
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501
 
   -e 's:$: $lt_compiler_flag:'`
13502
 
   (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503
 
   (eval "$lt_compile" 2>conftest.err)
13504
 
   ac_status=$?
13505
 
   cat conftest.err >&5
13506
 
   echo "$as_me:13506: \$? = $ac_status" >&5
13507
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13508
 
     # The compiler can only warn and ignore the option if not recognized
13509
 
     # So say no if there are warnings other than the usual output.
13510
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13511
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13512
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13513
 
       lt_cv_prog_compiler_pic_works_CXX=yes
13514
 
     fi
13515
 
   fi
13516
 
   $rm conftest*
13517
 
 
13518
 
fi
13519
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13520
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13521
 
 
13522
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13523
 
    case $lt_prog_compiler_pic_CXX in
13524
 
     "" | " "*) ;;
13525
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13526
 
     esac
13527
 
else
13528
 
    lt_prog_compiler_pic_CXX=
13529
 
     lt_prog_compiler_can_build_shared_CXX=no
13530
 
fi
13531
 
 
13532
 
fi
13533
 
case $host_os in
13534
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13535
 
  *djgpp*)
13536
 
    lt_prog_compiler_pic_CXX=
13537
 
    ;;
13538
 
  *)
13539
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13540
 
    ;;
13541
 
esac
13542
 
 
13543
 
#
13544
 
# Check to make sure the static flag actually works.
13545
 
#
13546
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13547
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13548
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13549
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13551
 
else
13552
 
  lt_cv_prog_compiler_static_works_CXX=no
13553
 
   save_LDFLAGS="$LDFLAGS"
13554
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13555
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13556
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13557
 
     # The linker can only warn and ignore the option if not recognized
13558
 
     # So say no if there are warnings
13559
 
     if test -s conftest.err; then
13560
 
       # Append any errors to the config.log.
13561
 
       cat conftest.err 1>&5
13562
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13563
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13565
 
         lt_cv_prog_compiler_static_works_CXX=yes
13566
 
       fi
13567
 
     else
13568
 
       lt_cv_prog_compiler_static_works_CXX=yes
13569
 
     fi
13570
 
   fi
13571
 
   $rm -r conftest*
13572
 
   LDFLAGS="$save_LDFLAGS"
13573
 
 
13574
 
fi
13575
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13576
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13577
 
 
13578
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13579
 
    :
13580
 
else
13581
 
    lt_prog_compiler_static_CXX=
13582
 
fi
13583
 
 
13584
 
 
13585
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13586
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13587
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13589
 
else
13590
 
  lt_cv_prog_compiler_c_o_CXX=no
13591
 
   $rm -r conftest 2>/dev/null
13592
 
   mkdir conftest
13593
 
   cd conftest
13594
 
   mkdir out
13595
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13596
 
 
13597
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13598
 
   # Insert the option either (1) after the last *FLAGS variable, or
13599
 
   # (2) before a word containing "conftest.", or (3) at the end.
13600
 
   # Note that $ac_compile itself does not contain backslashes and begins
13601
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13602
 
   lt_compile=`echo "$ac_compile" | $SED \
13603
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13604
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13605
 
   -e 's:$: $lt_compiler_flag:'`
13606
 
   (eval echo "\"\$as_me:13606: $lt_compile\"" >&5)
13607
 
   (eval "$lt_compile" 2>out/conftest.err)
13608
 
   ac_status=$?
13609
 
   cat out/conftest.err >&5
13610
 
   echo "$as_me:13610: \$? = $ac_status" >&5
13611
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13612
 
   then
13613
 
     # The compiler can only warn and ignore the option if not recognized
13614
 
     # So say no if there are warnings
13615
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13616
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13617
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13618
 
       lt_cv_prog_compiler_c_o_CXX=yes
13619
 
     fi
13620
 
   fi
13621
 
   chmod u+w . 2>&5
13622
 
   $rm conftest*
13623
 
   # SGI C++ compiler will create directory out/ii_files/ for
13624
 
   # template instantiation
13625
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13626
 
   $rm out/* && rmdir out
13627
 
   cd ..
13628
 
   rmdir conftest
13629
 
   $rm conftest*
13630
 
 
13631
 
fi
13632
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13633
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13634
 
 
13635
 
 
13636
 
hard_links="nottested"
13637
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13638
 
  # do not overwrite the value of need_locks provided by the user
13639
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13640
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13641
 
  hard_links=yes
13642
 
  $rm conftest*
13643
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13644
 
  touch conftest.a
13645
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13646
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13648
 
echo "${ECHO_T}$hard_links" >&6; }
13649
 
  if test "$hard_links" = no; then
13650
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13651
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13652
 
    need_locks=warn
13653
 
  fi
13654
 
else
13655
 
  need_locks=no
13656
 
fi
13657
 
 
13658
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13659
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13660
 
 
13661
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13662
 
  case $host_os in
13663
 
  aix[4-9]*)
13664
 
    # If we're using GNU nm, then we don't want the "-C" option.
13665
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13666
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13667
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13668
 
    else
13669
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13670
 
    fi
13671
 
    ;;
13672
 
  pw32*)
13673
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13674
 
  ;;
13675
 
  cygwin* | mingw*)
13676
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13677
 
  ;;
13678
 
  linux* | k*bsd*-gnu)
13679
 
    link_all_deplibs_CXX=no
13680
 
  ;;
13681
 
  *)
13682
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13683
 
  ;;
13684
 
  esac
13685
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13686
 
 
13687
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13688
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13689
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13690
 
 
13691
 
#
13692
 
# Do we need to explicitly link libc?
13693
 
#
13694
 
case "x$archive_cmds_need_lc_CXX" in
13695
 
x|xyes)
13696
 
  # Assume -lc should be added
13697
 
  archive_cmds_need_lc_CXX=yes
13698
 
 
13699
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13700
 
    case $archive_cmds_CXX in
13701
 
    *'~'*)
13702
 
      # FIXME: we may have to deal with multi-command sequences.
13703
 
      ;;
13704
 
    '$CC '*)
13705
 
      # Test whether the compiler implicitly links with -lc since on some
13706
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13707
 
      # to ld, don't add -lc before -lgcc.
13708
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13709
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13710
 
      $rm conftest*
13711
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13712
 
 
13713
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714
 
  (eval $ac_compile) 2>&5
13715
 
  ac_status=$?
13716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717
 
  (exit $ac_status); } 2>conftest.err; then
13718
 
        soname=conftest
13719
 
        lib=conftest
13720
 
        libobjs=conftest.$ac_objext
13721
 
        deplibs=
13722
 
        wl=$lt_prog_compiler_wl_CXX
13723
 
        pic_flag=$lt_prog_compiler_pic_CXX
13724
 
        compiler_flags=-v
13725
 
        linker_flags=-v
13726
 
        verstring=
13727
 
        output_objdir=.
13728
 
        libname=conftest
13729
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13730
 
        allow_undefined_flag_CXX=
13731
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13732
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13733
 
  ac_status=$?
13734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735
 
  (exit $ac_status); }
13736
 
        then
13737
 
          archive_cmds_need_lc_CXX=no
13738
 
        else
13739
 
          archive_cmds_need_lc_CXX=yes
13740
 
        fi
13741
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13742
 
      else
13743
 
        cat conftest.err 1>&5
13744
 
      fi
13745
 
      $rm conftest*
13746
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13747
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13748
 
      ;;
13749
 
    esac
13750
 
  fi
13751
 
  ;;
13752
 
esac
13753
 
 
13754
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13755
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13756
 
library_names_spec=
13757
 
libname_spec='lib$name'
13758
 
soname_spec=
13759
 
shrext_cmds=".so"
13760
 
postinstall_cmds=
13761
 
postuninstall_cmds=
13762
 
finish_cmds=
13763
 
finish_eval=
13764
 
shlibpath_var=
13765
 
shlibpath_overrides_runpath=unknown
13766
 
version_type=none
13767
 
dynamic_linker="$host_os ld.so"
13768
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13769
 
 
13770
 
need_lib_prefix=unknown
13771
 
hardcode_into_libs=no
13772
 
 
13773
 
# when you set need_version to no, make sure it does not cause -set_version
13774
 
# flags to be left without arguments
13775
 
need_version=unknown
13776
 
 
13777
 
case $host_os in
13778
 
aix3*)
13779
 
  version_type=linux
13780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781
 
  shlibpath_var=LIBPATH
13782
 
 
13783
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13784
 
  soname_spec='${libname}${release}${shared_ext}$major'
13785
 
  ;;
13786
 
 
13787
 
aix[4-9]*)
13788
 
  version_type=linux
13789
 
  need_lib_prefix=no
13790
 
  need_version=no
13791
 
  hardcode_into_libs=yes
13792
 
  if test "$host_cpu" = ia64; then
13793
 
    # AIX 5 supports IA64
13794
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795
 
    shlibpath_var=LD_LIBRARY_PATH
13796
 
  else
13797
 
    # With GCC up to 2.95.x, collect2 would create an import file
13798
 
    # for dependence libraries.  The import file would start with
13799
 
    # the line `#! .'.  This would cause the generated library to
13800
 
    # depend on `.', always an invalid library.  This was fixed in
13801
 
    # development snapshots of GCC prior to 3.0.
13802
 
    case $host_os in
13803
 
      aix4 | aix4.[01] | aix4.[01].*)
13804
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13805
 
           echo ' yes '
13806
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13807
 
        :
13808
 
      else
13809
 
        can_build_shared=no
13810
 
      fi
13811
 
      ;;
13812
 
    esac
13813
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814
 
    # soname into executable. Probably we can add versioning support to
13815
 
    # collect2, so additional links can be useful in future.
13816
 
    if test "$aix_use_runtimelinking" = yes; then
13817
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818
 
      # instead of lib<name>.a to let people know that these are not
13819
 
      # typical AIX shared libraries.
13820
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821
 
    else
13822
 
      # We preserve .a as extension for shared libraries through AIX4.2
13823
 
      # and later when we are not doing run time linking.
13824
 
      library_names_spec='${libname}${release}.a $libname.a'
13825
 
      soname_spec='${libname}${release}${shared_ext}$major'
13826
 
    fi
13827
 
    shlibpath_var=LIBPATH
13828
 
  fi
13829
 
  ;;
13830
 
 
13831
 
amigaos*)
13832
 
  library_names_spec='$libname.ixlibrary $libname.a'
13833
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13834
 
  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'
13835
 
  ;;
13836
 
 
13837
 
beos*)
13838
 
  library_names_spec='${libname}${shared_ext}'
13839
 
  dynamic_linker="$host_os ld.so"
13840
 
  shlibpath_var=LIBRARY_PATH
13841
 
  ;;
13842
 
 
13843
 
bsdi[45]*)
13844
 
  version_type=linux
13845
 
  need_version=no
13846
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847
 
  soname_spec='${libname}${release}${shared_ext}$major'
13848
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13849
 
  shlibpath_var=LD_LIBRARY_PATH
13850
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13851
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13852
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13853
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13854
 
  # libtool to hard-code these into programs
13855
 
  ;;
13856
 
 
13857
 
cygwin* | mingw* | pw32*)
13858
 
  version_type=windows
13859
 
  shrext_cmds=".dll"
13860
 
  need_version=no
13861
 
  need_lib_prefix=no
13862
 
 
13863
 
  case $GCC,$host_os in
13864
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13865
 
    library_names_spec='$libname.dll.a'
13866
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13867
 
    postinstall_cmds='base_file=`basename \${file}`~
13868
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13869
 
      dldir=$destdir/`dirname \$dlpath`~
13870
 
      test -d \$dldir || mkdir -p \$dldir~
13871
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13872
 
      chmod a+x \$dldir/$dlname'
13873
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13874
 
      dlpath=$dir/\$dldll~
13875
 
       $rm \$dlpath'
13876
 
    shlibpath_overrides_runpath=yes
13877
 
 
13878
 
    case $host_os in
13879
 
    cygwin*)
13880
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13881
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13882
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13883
 
      ;;
13884
 
    mingw*)
13885
 
      # MinGW DLLs use traditional 'lib' prefix
13886
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13887
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13888
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13889
 
        # It is most probably a Windows format PATH printed by
13890
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13891
 
        # path with ; separators, and with drive letters. We can handle the
13892
 
        # drive letters (cygwin fileutils understands them), so leave them,
13893
 
        # especially as we might pass files found there to a mingw objdump,
13894
 
        # which wouldn't understand a cygwinified path. Ahh.
13895
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13896
 
      else
13897
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13898
 
      fi
13899
 
      ;;
13900
 
    pw32*)
13901
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13902
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13903
 
      ;;
13904
 
    esac
13905
 
    ;;
13906
 
 
13907
 
  *)
13908
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13909
 
    ;;
13910
 
  esac
13911
 
  dynamic_linker='Win32 ld.exe'
13912
 
  # FIXME: first we should search . and the directory the executable is in
13913
 
  shlibpath_var=PATH
13914
 
  ;;
13915
 
 
13916
 
darwin* | rhapsody*)
13917
 
  dynamic_linker="$host_os dyld"
13918
 
  version_type=darwin
13919
 
  need_lib_prefix=no
13920
 
  need_version=no
13921
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13922
 
  soname_spec='${libname}${release}${major}$shared_ext'
13923
 
  shlibpath_overrides_runpath=yes
13924
 
  shlibpath_var=DYLD_LIBRARY_PATH
13925
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13926
 
 
13927
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13928
 
  ;;
13929
 
 
13930
 
dgux*)
13931
 
  version_type=linux
13932
 
  need_lib_prefix=no
13933
 
  need_version=no
13934
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13935
 
  soname_spec='${libname}${release}${shared_ext}$major'
13936
 
  shlibpath_var=LD_LIBRARY_PATH
13937
 
  ;;
13938
 
 
13939
 
freebsd1*)
13940
 
  dynamic_linker=no
13941
 
  ;;
13942
 
 
13943
 
freebsd* | dragonfly*)
13944
 
  # DragonFly does not have aout.  When/if they implement a new
13945
 
  # versioning mechanism, adjust this.
13946
 
  if test -x /usr/bin/objformat; then
13947
 
    objformat=`/usr/bin/objformat`
13948
 
  else
13949
 
    case $host_os in
13950
 
    freebsd[123]*) objformat=aout ;;
13951
 
    *) objformat=elf ;;
13952
 
    esac
13953
 
  fi
13954
 
  version_type=freebsd-$objformat
13955
 
  case $version_type in
13956
 
    freebsd-elf*)
13957
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13958
 
      need_version=no
13959
 
      need_lib_prefix=no
13960
 
      ;;
13961
 
    freebsd-*)
13962
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13963
 
      need_version=yes
13964
 
      ;;
13965
 
  esac
13966
 
  shlibpath_var=LD_LIBRARY_PATH
13967
 
  case $host_os in
13968
 
  freebsd2*)
13969
 
    shlibpath_overrides_runpath=yes
13970
 
    ;;
13971
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13972
 
    shlibpath_overrides_runpath=yes
13973
 
    hardcode_into_libs=yes
13974
 
    ;;
13975
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13976
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13977
 
    shlibpath_overrides_runpath=no
13978
 
    hardcode_into_libs=yes
13979
 
    ;;
13980
 
  *) # from 4.6 on, and DragonFly
13981
 
    shlibpath_overrides_runpath=yes
13982
 
    hardcode_into_libs=yes
13983
 
    ;;
13984
 
  esac
13985
 
  ;;
13986
 
 
13987
 
gnu*)
13988
 
  version_type=linux
13989
 
  need_lib_prefix=no
13990
 
  need_version=no
13991
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13992
 
  soname_spec='${libname}${release}${shared_ext}$major'
13993
 
  shlibpath_var=LD_LIBRARY_PATH
13994
 
  hardcode_into_libs=yes
13995
 
  ;;
13996
 
 
13997
 
hpux9* | hpux10* | hpux11*)
13998
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13999
 
  # link against other versions.
14000
 
  version_type=sunos
14001
 
  need_lib_prefix=no
14002
 
  need_version=no
14003
 
  case $host_cpu in
14004
 
  ia64*)
14005
 
    shrext_cmds='.so'
14006
 
    hardcode_into_libs=yes
14007
 
    dynamic_linker="$host_os dld.so"
14008
 
    shlibpath_var=LD_LIBRARY_PATH
14009
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14010
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011
 
    soname_spec='${libname}${release}${shared_ext}$major'
14012
 
    if test "X$HPUX_IA64_MODE" = X32; then
14013
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14014
 
    else
14015
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14016
 
    fi
14017
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14018
 
    ;;
14019
 
   hppa*64*)
14020
 
     shrext_cmds='.sl'
14021
 
     hardcode_into_libs=yes
14022
 
     dynamic_linker="$host_os dld.sl"
14023
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14024
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14025
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026
 
     soname_spec='${libname}${release}${shared_ext}$major'
14027
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14028
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029
 
     ;;
14030
 
   *)
14031
 
    shrext_cmds='.sl'
14032
 
    dynamic_linker="$host_os dld.sl"
14033
 
    shlibpath_var=SHLIB_PATH
14034
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14035
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036
 
    soname_spec='${libname}${release}${shared_ext}$major'
14037
 
    ;;
14038
 
  esac
14039
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14040
 
  postinstall_cmds='chmod 555 $lib'
14041
 
  ;;
14042
 
 
14043
 
interix[3-9]*)
14044
 
  version_type=linux
14045
 
  need_lib_prefix=no
14046
 
  need_version=no
14047
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14048
 
  soname_spec='${libname}${release}${shared_ext}$major'
14049
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14050
 
  shlibpath_var=LD_LIBRARY_PATH
14051
 
  shlibpath_overrides_runpath=no
14052
 
  hardcode_into_libs=yes
14053
 
  ;;
14054
 
 
14055
 
irix5* | irix6* | nonstopux*)
14056
 
  case $host_os in
14057
 
    nonstopux*) version_type=nonstopux ;;
14058
 
    *)
14059
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
14060
 
                version_type=linux
14061
 
        else
14062
 
                version_type=irix
14063
 
        fi ;;
14064
 
  esac
14065
 
  need_lib_prefix=no
14066
 
  need_version=no
14067
 
  soname_spec='${libname}${release}${shared_ext}$major'
14068
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14069
 
  case $host_os in
14070
 
  irix5* | nonstopux*)
14071
 
    libsuff= shlibsuff=
14072
 
    ;;
14073
 
  *)
14074
 
    case $LD in # libtool.m4 will add one of these switches to LD
14075
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14076
 
      libsuff= shlibsuff= libmagic=32-bit;;
14077
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14078
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
14079
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14080
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14081
 
    *) libsuff= shlibsuff= libmagic=never-match;;
14082
 
    esac
14083
 
    ;;
14084
 
  esac
14085
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14086
 
  shlibpath_overrides_runpath=no
14087
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14088
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14089
 
  hardcode_into_libs=yes
14090
 
  ;;
14091
 
 
14092
 
# No shared lib support for Linux oldld, aout, or coff.
14093
 
linux*oldld* | linux*aout* | linux*coff*)
14094
 
  dynamic_linker=no
14095
 
  ;;
14096
 
 
14097
 
# This must be Linux ELF.
14098
 
linux* | k*bsd*-gnu)
14099
 
  version_type=linux
14100
 
  need_lib_prefix=no
14101
 
  need_version=no
14102
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103
 
  soname_spec='${libname}${release}${shared_ext}$major'
14104
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14105
 
  shlibpath_var=LD_LIBRARY_PATH
14106
 
  shlibpath_overrides_runpath=no
14107
 
  # This implies no fast_install, which is unacceptable.
14108
 
  # Some rework will be needed to allow for fast_install
14109
 
  # before this can be enabled.
14110
 
  hardcode_into_libs=yes
14111
 
 
14112
 
  # Append ld.so.conf contents to the search path
14113
 
  if test -f /etc/ld.so.conf; then
14114
 
    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' ' '`
14115
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14116
 
  fi
14117
 
 
14118
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14119
 
  # powerpc, because MkLinux only supported shared libraries with the
14120
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14121
 
  # most powerpc-linux boxes support dynamic linking these days and
14122
 
  # people can always --disable-shared, the test was removed, and we
14123
 
  # assume the GNU/Linux dynamic linker is in use.
14124
 
  dynamic_linker='GNU/Linux ld.so'
14125
 
  ;;
14126
 
 
14127
 
netbsdelf*-gnu)
14128
 
  version_type=linux
14129
 
  need_lib_prefix=no
14130
 
  need_version=no
14131
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14132
 
  soname_spec='${libname}${release}${shared_ext}$major'
14133
 
  shlibpath_var=LD_LIBRARY_PATH
14134
 
  shlibpath_overrides_runpath=no
14135
 
  hardcode_into_libs=yes
14136
 
  dynamic_linker='NetBSD ld.elf_so'
14137
 
  ;;
14138
 
 
14139
 
netbsd*)
14140
 
  version_type=sunos
14141
 
  need_lib_prefix=no
14142
 
  need_version=no
14143
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14144
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14146
 
    dynamic_linker='NetBSD (a.out) ld.so'
14147
 
  else
14148
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14149
 
    soname_spec='${libname}${release}${shared_ext}$major'
14150
 
    dynamic_linker='NetBSD ld.elf_so'
14151
 
  fi
14152
 
  shlibpath_var=LD_LIBRARY_PATH
14153
 
  shlibpath_overrides_runpath=yes
14154
 
  hardcode_into_libs=yes
14155
 
  ;;
14156
 
 
14157
 
newsos6)
14158
 
  version_type=linux
14159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160
 
  shlibpath_var=LD_LIBRARY_PATH
14161
 
  shlibpath_overrides_runpath=yes
14162
 
  ;;
14163
 
 
14164
 
nto-qnx*)
14165
 
  version_type=linux
14166
 
  need_lib_prefix=no
14167
 
  need_version=no
14168
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169
 
  soname_spec='${libname}${release}${shared_ext}$major'
14170
 
  shlibpath_var=LD_LIBRARY_PATH
14171
 
  shlibpath_overrides_runpath=yes
14172
 
  ;;
14173
 
 
14174
 
openbsd*)
14175
 
  version_type=sunos
14176
 
  sys_lib_dlsearch_path_spec="/usr/lib"
14177
 
  need_lib_prefix=no
14178
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14179
 
  case $host_os in
14180
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14181
 
    *)                         need_version=no  ;;
14182
 
  esac
14183
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14184
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14185
 
  shlibpath_var=LD_LIBRARY_PATH
14186
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14187
 
    case $host_os in
14188
 
      openbsd2.[89] | openbsd2.[89].*)
14189
 
        shlibpath_overrides_runpath=no
14190
 
        ;;
14191
 
      *)
14192
 
        shlibpath_overrides_runpath=yes
14193
 
        ;;
14194
 
      esac
14195
 
  else
14196
 
    shlibpath_overrides_runpath=yes
14197
 
  fi
14198
 
  ;;
14199
 
 
14200
 
os2*)
14201
 
  libname_spec='$name'
14202
 
  shrext_cmds=".dll"
14203
 
  need_lib_prefix=no
14204
 
  library_names_spec='$libname${shared_ext} $libname.a'
14205
 
  dynamic_linker='OS/2 ld.exe'
14206
 
  shlibpath_var=LIBPATH
14207
 
  ;;
14208
 
 
14209
 
osf3* | osf4* | osf5*)
14210
 
  version_type=osf
14211
 
  need_lib_prefix=no
14212
 
  need_version=no
14213
 
  soname_spec='${libname}${release}${shared_ext}$major'
14214
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14215
 
  shlibpath_var=LD_LIBRARY_PATH
14216
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14217
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14218
 
  ;;
14219
 
 
14220
 
rdos*)
14221
 
  dynamic_linker=no
14222
 
  ;;
14223
 
 
14224
 
solaris*)
14225
 
  version_type=linux
14226
 
  need_lib_prefix=no
14227
 
  need_version=no
14228
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229
 
  soname_spec='${libname}${release}${shared_ext}$major'
14230
 
  shlibpath_var=LD_LIBRARY_PATH
14231
 
  shlibpath_overrides_runpath=yes
14232
 
  hardcode_into_libs=yes
14233
 
  # ldd complains unless libraries are executable
14234
 
  postinstall_cmds='chmod +x $lib'
14235
 
  ;;
14236
 
 
14237
 
sunos4*)
14238
 
  version_type=sunos
14239
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14240
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14241
 
  shlibpath_var=LD_LIBRARY_PATH
14242
 
  shlibpath_overrides_runpath=yes
14243
 
  if test "$with_gnu_ld" = yes; then
14244
 
    need_lib_prefix=no
14245
 
  fi
14246
 
  need_version=yes
14247
 
  ;;
14248
 
 
14249
 
sysv4 | sysv4.3*)
14250
 
  version_type=linux
14251
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252
 
  soname_spec='${libname}${release}${shared_ext}$major'
14253
 
  shlibpath_var=LD_LIBRARY_PATH
14254
 
  case $host_vendor in
14255
 
    sni)
14256
 
      shlibpath_overrides_runpath=no
14257
 
      need_lib_prefix=no
14258
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
14259
 
      runpath_var=LD_RUN_PATH
14260
 
      ;;
14261
 
    siemens)
14262
 
      need_lib_prefix=no
14263
 
      ;;
14264
 
    motorola)
14265
 
      need_lib_prefix=no
14266
 
      need_version=no
14267
 
      shlibpath_overrides_runpath=no
14268
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14269
 
      ;;
14270
 
  esac
14271
 
  ;;
14272
 
 
14273
 
sysv4*MP*)
14274
 
  if test -d /usr/nec ;then
14275
 
    version_type=linux
14276
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14277
 
    soname_spec='$libname${shared_ext}.$major'
14278
 
    shlibpath_var=LD_LIBRARY_PATH
14279
 
  fi
14280
 
  ;;
14281
 
 
14282
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14283
 
  version_type=freebsd-elf
14284
 
  need_lib_prefix=no
14285
 
  need_version=no
14286
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14287
 
  soname_spec='${libname}${release}${shared_ext}$major'
14288
 
  shlibpath_var=LD_LIBRARY_PATH
14289
 
  hardcode_into_libs=yes
14290
 
  if test "$with_gnu_ld" = yes; then
14291
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14292
 
    shlibpath_overrides_runpath=no
14293
 
  else
14294
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14295
 
    shlibpath_overrides_runpath=yes
14296
 
    case $host_os in
14297
 
      sco3.2v5*)
14298
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14299
 
        ;;
14300
 
    esac
14301
 
  fi
14302
 
  sys_lib_dlsearch_path_spec='/usr/lib'
14303
 
  ;;
14304
 
 
14305
 
uts4*)
14306
 
  version_type=linux
14307
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308
 
  soname_spec='${libname}${release}${shared_ext}$major'
14309
 
  shlibpath_var=LD_LIBRARY_PATH
14310
 
  ;;
14311
 
 
14312
 
*)
14313
 
  dynamic_linker=no
14314
 
  ;;
14315
 
esac
14316
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14317
 
echo "${ECHO_T}$dynamic_linker" >&6; }
14318
 
test "$dynamic_linker" = no && can_build_shared=no
14319
 
 
14320
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14322
 
else
14323
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14324
 
fi
14325
 
 
14326
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14327
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14329
 
else
14330
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14331
 
fi
14332
 
 
14333
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14334
 
 
14335
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14336
 
if test "$GCC" = yes; then
14337
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14338
 
fi
14339
 
 
14340
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14341
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14342
 
hardcode_action_CXX=
14343
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14344
 
   test -n "$runpath_var_CXX" || \
14345
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14346
 
 
14347
 
  # We can hardcode non-existant directories.
14348
 
  if test "$hardcode_direct_CXX" != no &&
14349
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14350
 
     # have to relink, otherwise we might link with an installed library
14351
 
     # when we should be linking with a yet-to-be-installed one
14352
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14353
 
     test "$hardcode_minus_L_CXX" != no; then
14354
 
    # Linking always hardcodes the temporary library directory.
14355
 
    hardcode_action_CXX=relink
14356
 
  else
14357
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14358
 
    hardcode_action_CXX=immediate
14359
 
  fi
14360
 
else
14361
 
  # We cannot hardcode anything, or else we can only hardcode existing
14362
 
  # directories.
14363
 
  hardcode_action_CXX=unsupported
14364
 
fi
14365
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14366
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14367
 
 
14368
 
if test "$hardcode_action_CXX" = relink; then
14369
 
  # Fast installation is not supported
14370
 
  enable_fast_install=no
14371
 
elif test "$shlibpath_overrides_runpath" = yes ||
14372
 
     test "$enable_shared" = no; then
14373
 
  # Fast installation is not necessary
14374
 
  enable_fast_install=needless
14375
 
fi
14376
 
 
14377
 
 
14378
 
# The else clause should only fire when bootstrapping the
14379
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
14380
 
# with your package, and you will get complaints that there are
14381
 
# no rules to generate ltmain.sh.
14382
 
if test -f "$ltmain"; then
14383
 
  # See if we are running on zsh, and set the options which allow our commands through
14384
 
  # without removal of \ escapes.
14385
 
  if test -n "${ZSH_VERSION+set}" ; then
14386
 
    setopt NO_GLOB_SUBST
14387
 
  fi
14388
 
  # Now quote all the things that may contain metacharacters while being
14389
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14390
 
  # variables and quote the copies for generation of the libtool script.
14391
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14392
 
    SED SHELL STRIP \
14393
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14394
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14395
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14396
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14397
 
    lt_cv_sys_global_symbol_to_c_name_address \
14398
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14399
 
    old_postinstall_cmds old_postuninstall_cmds \
14400
 
    compiler_CXX \
14401
 
    CC_CXX \
14402
 
    LD_CXX \
14403
 
    lt_prog_compiler_wl_CXX \
14404
 
    lt_prog_compiler_pic_CXX \
14405
 
    lt_prog_compiler_static_CXX \
14406
 
    lt_prog_compiler_no_builtin_flag_CXX \
14407
 
    export_dynamic_flag_spec_CXX \
14408
 
    thread_safe_flag_spec_CXX \
14409
 
    whole_archive_flag_spec_CXX \
14410
 
    enable_shared_with_static_runtimes_CXX \
14411
 
    old_archive_cmds_CXX \
14412
 
    old_archive_from_new_cmds_CXX \
14413
 
    predep_objects_CXX \
14414
 
    postdep_objects_CXX \
14415
 
    predeps_CXX \
14416
 
    postdeps_CXX \
14417
 
    compiler_lib_search_path_CXX \
14418
 
    compiler_lib_search_dirs_CXX \
14419
 
    archive_cmds_CXX \
14420
 
    archive_expsym_cmds_CXX \
14421
 
    postinstall_cmds_CXX \
14422
 
    postuninstall_cmds_CXX \
14423
 
    old_archive_from_expsyms_cmds_CXX \
14424
 
    allow_undefined_flag_CXX \
14425
 
    no_undefined_flag_CXX \
14426
 
    export_symbols_cmds_CXX \
14427
 
    hardcode_libdir_flag_spec_CXX \
14428
 
    hardcode_libdir_flag_spec_ld_CXX \
14429
 
    hardcode_libdir_separator_CXX \
14430
 
    hardcode_automatic_CXX \
14431
 
    module_cmds_CXX \
14432
 
    module_expsym_cmds_CXX \
14433
 
    lt_cv_prog_compiler_c_o_CXX \
14434
 
    fix_srcfile_path_CXX \
14435
 
    exclude_expsyms_CXX \
14436
 
    include_expsyms_CXX; do
14437
 
 
14438
 
    case $var in
14439
 
    old_archive_cmds_CXX | \
14440
 
    old_archive_from_new_cmds_CXX | \
14441
 
    archive_cmds_CXX | \
14442
 
    archive_expsym_cmds_CXX | \
14443
 
    module_cmds_CXX | \
14444
 
    module_expsym_cmds_CXX | \
14445
 
    old_archive_from_expsyms_cmds_CXX | \
14446
 
    export_symbols_cmds_CXX | \
14447
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14448
 
    postinstall_cmds | postuninstall_cmds | \
14449
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14450
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14451
 
      # Double-quote double-evaled strings.
14452
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14453
 
      ;;
14454
 
    *)
14455
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14456
 
      ;;
14457
 
    esac
14458
 
  done
14459
 
 
14460
 
  case $lt_echo in
14461
 
  *'\$0 --fallback-echo"')
14462
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14463
 
    ;;
14464
 
  esac
14465
 
 
14466
 
cfgfile="$ofile"
14467
 
 
14468
 
  cat <<__EOF__ >> "$cfgfile"
14469
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14470
 
 
14471
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14472
 
 
14473
 
# Shell to use when invoking shell scripts.
14474
 
SHELL=$lt_SHELL
14475
 
 
14476
 
# Whether or not to build shared libraries.
14477
 
build_libtool_libs=$enable_shared
14478
 
 
14479
 
# Whether or not to build static libraries.
14480
 
build_old_libs=$enable_static
14481
 
 
14482
 
# Whether or not to add -lc for building shared libraries.
14483
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14484
 
 
14485
 
# Whether or not to disallow shared libs when runtime libs are static
14486
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14487
 
 
14488
 
# Whether or not to optimize for fast installation.
14489
 
fast_install=$enable_fast_install
14490
 
 
14491
 
# The host system.
14492
 
host_alias=$host_alias
14493
 
host=$host
14494
 
host_os=$host_os
14495
 
 
14496
 
# The build system.
14497
 
build_alias=$build_alias
14498
 
build=$build
14499
 
build_os=$build_os
14500
 
 
14501
 
# An echo program that does not interpret backslashes.
14502
 
echo=$lt_echo
14503
 
 
14504
 
# The archiver.
14505
 
AR=$lt_AR
14506
 
AR_FLAGS=$lt_AR_FLAGS
14507
 
 
14508
 
# A C compiler.
14509
 
LTCC=$lt_LTCC
14510
 
 
14511
 
# LTCC compiler flags.
14512
 
LTCFLAGS=$lt_LTCFLAGS
14513
 
 
14514
 
# A language-specific compiler.
14515
 
CC=$lt_compiler_CXX
14516
 
 
14517
 
# Is the compiler the GNU C compiler?
14518
 
with_gcc=$GCC_CXX
14519
 
 
14520
 
# An ERE matcher.
14521
 
EGREP=$lt_EGREP
14522
 
 
14523
 
# The linker used to build libraries.
14524
 
LD=$lt_LD_CXX
14525
 
 
14526
 
# Whether we need hard or soft links.
14527
 
LN_S=$lt_LN_S
14528
 
 
14529
 
# A BSD-compatible nm program.
14530
 
NM=$lt_NM
14531
 
 
14532
 
# A symbol stripping program
14533
 
STRIP=$lt_STRIP
14534
 
 
14535
 
# Used to examine libraries when file_magic_cmd begins "file"
14536
 
MAGIC_CMD=$MAGIC_CMD
14537
 
 
14538
 
# Used on cygwin: DLL creation program.
14539
 
DLLTOOL="$DLLTOOL"
14540
 
 
14541
 
# Used on cygwin: object dumper.
14542
 
OBJDUMP="$OBJDUMP"
14543
 
 
14544
 
# Used on cygwin: assembler.
14545
 
AS="$AS"
14546
 
 
14547
 
# The name of the directory that contains temporary libtool files.
14548
 
objdir=$objdir
14549
 
 
14550
 
# How to create reloadable object files.
14551
 
reload_flag=$lt_reload_flag
14552
 
reload_cmds=$lt_reload_cmds
14553
 
 
14554
 
# How to pass a linker flag through the compiler.
14555
 
wl=$lt_lt_prog_compiler_wl_CXX
14556
 
 
14557
 
# Object file suffix (normally "o").
14558
 
objext="$ac_objext"
14559
 
 
14560
 
# Old archive suffix (normally "a").
14561
 
libext="$libext"
14562
 
 
14563
 
# Shared library suffix (normally ".so").
14564
 
shrext_cmds='$shrext_cmds'
14565
 
 
14566
 
# Executable file suffix (normally "").
14567
 
exeext="$exeext"
14568
 
 
14569
 
# Additional compiler flags for building library objects.
14570
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14571
 
pic_mode=$pic_mode
14572
 
 
14573
 
# What is the maximum length of a command?
14574
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14575
 
 
14576
 
# Does compiler simultaneously support -c and -o options?
14577
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14578
 
 
14579
 
# Must we lock files when doing compilation?
14580
 
need_locks=$lt_need_locks
14581
 
 
14582
 
# Do we need the lib prefix for modules?
14583
 
need_lib_prefix=$need_lib_prefix
14584
 
 
14585
 
# Do we need a version for libraries?
14586
 
need_version=$need_version
14587
 
 
14588
 
# Whether dlopen is supported.
14589
 
dlopen_support=$enable_dlopen
14590
 
 
14591
 
# Whether dlopen of programs is supported.
14592
 
dlopen_self=$enable_dlopen_self
14593
 
 
14594
 
# Whether dlopen of statically linked programs is supported.
14595
 
dlopen_self_static=$enable_dlopen_self_static
14596
 
 
14597
 
# Compiler flag to prevent dynamic linking.
14598
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14599
 
 
14600
 
# Compiler flag to turn off builtin functions.
14601
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14602
 
 
14603
 
# Compiler flag to allow reflexive dlopens.
14604
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14605
 
 
14606
 
# Compiler flag to generate shared objects directly from archives.
14607
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14608
 
 
14609
 
# Compiler flag to generate thread-safe objects.
14610
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14611
 
 
14612
 
# Library versioning type.
14613
 
version_type=$version_type
14614
 
 
14615
 
# Format of library name prefix.
14616
 
libname_spec=$lt_libname_spec
14617
 
 
14618
 
# List of archive names.  First name is the real one, the rest are links.
14619
 
# The last name is the one that the linker finds with -lNAME.
14620
 
library_names_spec=$lt_library_names_spec
14621
 
 
14622
 
# The coded name of the library, if different from the real name.
14623
 
soname_spec=$lt_soname_spec
14624
 
 
14625
 
# Commands used to build and install an old-style archive.
14626
 
RANLIB=$lt_RANLIB
14627
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14628
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14629
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14630
 
 
14631
 
# Create an old-style archive from a shared archive.
14632
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14633
 
 
14634
 
# Create a temporary old-style archive to link instead of a shared archive.
14635
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14636
 
 
14637
 
# Commands used to build and install a shared archive.
14638
 
archive_cmds=$lt_archive_cmds_CXX
14639
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14640
 
postinstall_cmds=$lt_postinstall_cmds
14641
 
postuninstall_cmds=$lt_postuninstall_cmds
14642
 
 
14643
 
# Commands used to build a loadable module (assumed same as above if empty)
14644
 
module_cmds=$lt_module_cmds_CXX
14645
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14646
 
 
14647
 
# Commands to strip libraries.
14648
 
old_striplib=$lt_old_striplib
14649
 
striplib=$lt_striplib
14650
 
 
14651
 
# Dependencies to place before the objects being linked to create a
14652
 
# shared library.
14653
 
predep_objects=$lt_predep_objects_CXX
14654
 
 
14655
 
# Dependencies to place after the objects being linked to create a
14656
 
# shared library.
14657
 
postdep_objects=$lt_postdep_objects_CXX
14658
 
 
14659
 
# Dependencies to place before the objects being linked to create a
14660
 
# shared library.
14661
 
predeps=$lt_predeps_CXX
14662
 
 
14663
 
# Dependencies to place after the objects being linked to create a
14664
 
# shared library.
14665
 
postdeps=$lt_postdeps_CXX
14666
 
 
14667
 
# The directories searched by this compiler when creating a shared
14668
 
# library
14669
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14670
 
 
14671
 
# The library search path used internally by the compiler when linking
14672
 
# a shared library.
14673
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14674
 
 
14675
 
# Method to check whether dependent libraries are shared objects.
14676
 
deplibs_check_method=$lt_deplibs_check_method
14677
 
 
14678
 
# Command to use when deplibs_check_method == file_magic.
14679
 
file_magic_cmd=$lt_file_magic_cmd
14680
 
 
14681
 
# Flag that allows shared libraries with undefined symbols to be built.
14682
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14683
 
 
14684
 
# Flag that forces no undefined symbols.
14685
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14686
 
 
14687
 
# Commands used to finish a libtool library installation in a directory.
14688
 
finish_cmds=$lt_finish_cmds
14689
 
 
14690
 
# Same as above, but a single script fragment to be evaled but not shown.
14691
 
finish_eval=$lt_finish_eval
14692
 
 
14693
 
# Take the output of nm and produce a listing of raw symbols and C names.
14694
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14695
 
 
14696
 
# Transform the output of nm in a proper C declaration
14697
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14698
 
 
14699
 
# Transform the output of nm in a C name address pair
14700
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14701
 
 
14702
 
# This is the shared library runtime path variable.
14703
 
runpath_var=$runpath_var
14704
 
 
14705
 
# This is the shared library path variable.
14706
 
shlibpath_var=$shlibpath_var
14707
 
 
14708
 
# Is shlibpath searched before the hard-coded library search path?
14709
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14710
 
 
14711
 
# How to hardcode a shared library path into an executable.
14712
 
hardcode_action=$hardcode_action_CXX
14713
 
 
14714
 
# Whether we should hardcode library paths into libraries.
14715
 
hardcode_into_libs=$hardcode_into_libs
14716
 
 
14717
 
# Flag to hardcode \$libdir into a binary during linking.
14718
 
# This must work even if \$libdir does not exist.
14719
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14720
 
 
14721
 
# If ld is used when linking, flag to hardcode \$libdir into
14722
 
# a binary during linking. This must work even if \$libdir does
14723
 
# not exist.
14724
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14725
 
 
14726
 
# Whether we need a single -rpath flag with a separated argument.
14727
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14728
 
 
14729
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14730
 
# resulting binary.
14731
 
hardcode_direct=$hardcode_direct_CXX
14732
 
 
14733
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14734
 
# resulting binary.
14735
 
hardcode_minus_L=$hardcode_minus_L_CXX
14736
 
 
14737
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14738
 
# the resulting binary.
14739
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14740
 
 
14741
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14742
 
# and all subsequent libraries and executables linked against it.
14743
 
hardcode_automatic=$hardcode_automatic_CXX
14744
 
 
14745
 
# Variables whose values should be saved in libtool wrapper scripts and
14746
 
# restored at relink time.
14747
 
variables_saved_for_relink="$variables_saved_for_relink"
14748
 
 
14749
 
# Whether libtool must link a program against all its dependency libraries.
14750
 
link_all_deplibs=$link_all_deplibs_CXX
14751
 
 
14752
 
# Compile-time system search path for libraries
14753
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14754
 
 
14755
 
# Run-time system search path for libraries
14756
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14757
 
 
14758
 
# Fix the shell variable \$srcfile for the compiler.
14759
 
fix_srcfile_path=$lt_fix_srcfile_path
14760
 
 
14761
 
# Set to yes if exported symbols are required.
14762
 
always_export_symbols=$always_export_symbols_CXX
14763
 
 
14764
 
# The commands to list exported symbols.
14765
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14766
 
 
14767
 
# The commands to extract the exported symbol list from a shared archive.
14768
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14769
 
 
14770
 
# Symbols that should not be listed in the preloaded symbols.
14771
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14772
 
 
14773
 
# Symbols that must always be exported.
14774
 
include_expsyms=$lt_include_expsyms_CXX
14775
 
 
14776
 
# ### END LIBTOOL TAG CONFIG: $tagname
14777
 
 
14778
 
__EOF__
14779
 
 
14780
 
 
14781
 
else
14782
 
  # If there is no Makefile yet, we rely on a make rule to execute
14783
 
  # `config.status --recheck' to rerun these tests and create the
14784
 
  # libtool script then.
14785
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14786
 
  if test -f "$ltmain_in"; then
14787
 
    test -f Makefile && make "$ltmain"
14788
 
  fi
14789
 
fi
14790
 
 
14791
 
 
14792
 
ac_ext=c
14793
 
ac_cpp='$CPP $CPPFLAGS'
14794
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14795
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14796
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14797
 
 
14798
 
CC=$lt_save_CC
14799
 
LDCXX=$LD
14800
 
LD=$lt_save_LD
14801
 
GCC=$lt_save_GCC
14802
 
with_gnu_ldcxx=$with_gnu_ld
14803
 
with_gnu_ld=$lt_save_with_gnu_ld
14804
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14805
 
lt_cv_path_LD=$lt_save_path_LD
14806
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14807
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14808
 
 
14809
 
        else
14810
 
          tagname=""
14811
 
        fi
14812
 
        ;;
14813
 
 
14814
 
      F77)
14815
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14816
 
 
14817
 
ac_ext=f
14818
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14819
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14821
 
 
14822
 
 
14823
 
archive_cmds_need_lc_F77=no
14824
 
allow_undefined_flag_F77=
14825
 
always_export_symbols_F77=no
14826
 
archive_expsym_cmds_F77=
14827
 
export_dynamic_flag_spec_F77=
14828
 
hardcode_direct_F77=no
14829
 
hardcode_libdir_flag_spec_F77=
14830
 
hardcode_libdir_flag_spec_ld_F77=
14831
 
hardcode_libdir_separator_F77=
14832
 
hardcode_minus_L_F77=no
14833
 
hardcode_automatic_F77=no
14834
 
module_cmds_F77=
14835
 
module_expsym_cmds_F77=
14836
 
link_all_deplibs_F77=unknown
14837
 
old_archive_cmds_F77=$old_archive_cmds
14838
 
no_undefined_flag_F77=
14839
 
whole_archive_flag_spec_F77=
14840
 
enable_shared_with_static_runtimes_F77=no
14841
 
 
14842
 
# Source file extension for f77 test sources.
14843
 
ac_ext=f
14844
 
 
14845
 
# Object file extension for compiled f77 test sources.
14846
 
objext=o
14847
 
objext_F77=$objext
14848
 
 
14849
 
# Code to be used in simple compile tests
14850
 
lt_simple_compile_test_code="\
14851
 
      subroutine t
14852
 
      return
14853
 
      end
14854
 
"
14855
 
 
14856
 
# Code to be used in simple link tests
14857
 
lt_simple_link_test_code="\
14858
 
      program t
14859
 
      end
14860
 
"
14861
 
 
14862
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14863
 
 
14864
 
# If no C compiler was specified, use CC.
14865
 
LTCC=${LTCC-"$CC"}
14866
 
 
14867
 
# If no C compiler flags were specified, use CFLAGS.
14868
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14869
 
 
14870
 
# Allow CC to be a program name with arguments.
14871
 
compiler=$CC
14872
 
 
14873
 
 
14874
 
# save warnings/boilerplate of simple test code
14875
 
ac_outfile=conftest.$ac_objext
14876
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14877
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14878
 
_lt_compiler_boilerplate=`cat conftest.err`
14879
 
$rm conftest*
14880
 
 
14881
 
ac_outfile=conftest.$ac_objext
14882
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14883
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14884
 
_lt_linker_boilerplate=`cat conftest.err`
14885
 
$rm -r conftest*
14886
 
 
14887
 
 
14888
 
# Allow CC to be a program name with arguments.
14889
 
lt_save_CC="$CC"
14890
 
CC=${F77-"f77"}
14891
 
compiler=$CC
14892
 
compiler_F77=$CC
14893
 
for cc_temp in $compiler""; do
14894
 
  case $cc_temp in
14895
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14896
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14897
 
    \-*) ;;
14898
 
    *) break;;
14899
 
  esac
14900
 
done
14901
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14902
 
 
14903
 
 
14904
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14905
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14906
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14907
 
echo "${ECHO_T}$can_build_shared" >&6; }
14908
 
 
14909
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14910
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14911
 
test "$can_build_shared" = "no" && enable_shared=no
14912
 
 
14913
 
# On AIX, shared libraries and static libraries use the same namespace, and
14914
 
# are all built from PIC.
14915
 
case $host_os in
14916
 
aix3*)
14917
 
  test "$enable_shared" = yes && enable_static=no
14918
 
  if test -n "$RANLIB"; then
14919
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14920
 
    postinstall_cmds='$RANLIB $lib'
14921
 
  fi
14922
 
  ;;
14923
 
aix[4-9]*)
14924
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14925
 
    test "$enable_shared" = yes && enable_static=no
14926
 
  fi
14927
 
  ;;
14928
 
esac
14929
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14930
 
echo "${ECHO_T}$enable_shared" >&6; }
14931
 
 
14932
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14933
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14934
 
# Make sure either enable_shared or enable_static is yes.
14935
 
test "$enable_shared" = yes || enable_static=yes
14936
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14937
 
echo "${ECHO_T}$enable_static" >&6; }
14938
 
 
14939
 
GCC_F77="$G77"
14940
 
LD_F77="$LD"
14941
 
 
14942
 
lt_prog_compiler_wl_F77=
14943
 
lt_prog_compiler_pic_F77=
14944
 
lt_prog_compiler_static_F77=
14945
 
 
14946
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14947
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14948
 
 
14949
 
  if test "$GCC" = yes; then
14950
 
    lt_prog_compiler_wl_F77='-Wl,'
14951
 
    lt_prog_compiler_static_F77='-static'
14952
 
 
14953
 
    case $host_os in
14954
 
      aix*)
14955
 
      # All AIX code is PIC.
14956
 
      if test "$host_cpu" = ia64; then
14957
 
        # AIX 5 now supports IA64 processor
14958
 
        lt_prog_compiler_static_F77='-Bstatic'
14959
 
      fi
14960
 
      ;;
14961
 
 
14962
 
    amigaos*)
14963
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14964
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14965
 
      # like `-m68040'.
14966
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14967
 
      ;;
14968
 
 
14969
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14970
 
      # PIC is the default for these OSes.
14971
 
      ;;
14972
 
 
14973
 
    mingw* | cygwin* | pw32* | os2*)
14974
 
      # This hack is so that the source file can tell whether it is being
14975
 
      # built for inclusion in a dll (and should export symbols for example).
14976
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14977
 
      # (--disable-auto-import) libraries
14978
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14979
 
      ;;
14980
 
 
14981
 
    darwin* | rhapsody*)
14982
 
      # PIC is the default on this platform
14983
 
      # Common symbols not allowed in MH_DYLIB files
14984
 
      lt_prog_compiler_pic_F77='-fno-common'
14985
 
      ;;
14986
 
 
14987
 
    interix[3-9]*)
14988
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14989
 
      # Instead, we relocate shared libraries at runtime.
14990
 
      ;;
14991
 
 
14992
 
    msdosdjgpp*)
14993
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14994
 
      # on systems that don't support them.
14995
 
      lt_prog_compiler_can_build_shared_F77=no
14996
 
      enable_shared=no
14997
 
      ;;
14998
 
 
14999
 
    sysv4*MP*)
15000
 
      if test -d /usr/nec; then
15001
 
        lt_prog_compiler_pic_F77=-Kconform_pic
15002
 
      fi
15003
 
      ;;
15004
 
 
15005
 
    hpux*)
15006
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15007
 
      # not for PA HP-UX.
15008
 
      case $host_cpu in
15009
 
      hppa*64*|ia64*)
15010
 
        # +Z the default
15011
 
        ;;
15012
 
      *)
15013
 
        lt_prog_compiler_pic_F77='-fPIC'
15014
 
        ;;
15015
 
      esac
15016
 
      ;;
15017
 
 
15018
 
    *)
15019
 
      lt_prog_compiler_pic_F77='-fPIC'
15020
 
      ;;
15021
 
    esac
15022
 
  else
15023
 
    # PORTME Check for flag to pass linker flags through the system compiler.
15024
 
    case $host_os in
15025
 
    aix*)
15026
 
      lt_prog_compiler_wl_F77='-Wl,'
15027
 
      if test "$host_cpu" = ia64; then
15028
 
        # AIX 5 now supports IA64 processor
15029
 
        lt_prog_compiler_static_F77='-Bstatic'
15030
 
      else
15031
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15032
 
      fi
15033
 
      ;;
15034
 
      darwin*)
15035
 
        # PIC is the default on this platform
15036
 
        # Common symbols not allowed in MH_DYLIB files
15037
 
       case $cc_basename in
15038
 
         xlc*)
15039
 
         lt_prog_compiler_pic_F77='-qnocommon'
15040
 
         lt_prog_compiler_wl_F77='-Wl,'
15041
 
         ;;
15042
 
       esac
15043
 
       ;;
15044
 
 
15045
 
    mingw* | cygwin* | pw32* | os2*)
15046
 
      # This hack is so that the source file can tell whether it is being
15047
 
      # built for inclusion in a dll (and should export symbols for example).
15048
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15049
 
      ;;
15050
 
 
15051
 
    hpux9* | hpux10* | hpux11*)
15052
 
      lt_prog_compiler_wl_F77='-Wl,'
15053
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15054
 
      # not for PA HP-UX.
15055
 
      case $host_cpu in
15056
 
      hppa*64*|ia64*)
15057
 
        # +Z the default
15058
 
        ;;
15059
 
      *)
15060
 
        lt_prog_compiler_pic_F77='+Z'
15061
 
        ;;
15062
 
      esac
15063
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15064
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15065
 
      ;;
15066
 
 
15067
 
    irix5* | irix6* | nonstopux*)
15068
 
      lt_prog_compiler_wl_F77='-Wl,'
15069
 
      # PIC (with -KPIC) is the default.
15070
 
      lt_prog_compiler_static_F77='-non_shared'
15071
 
      ;;
15072
 
 
15073
 
    newsos6)
15074
 
      lt_prog_compiler_pic_F77='-KPIC'
15075
 
      lt_prog_compiler_static_F77='-Bstatic'
15076
 
      ;;
15077
 
 
15078
 
    linux* | k*bsd*-gnu)
15079
 
      case $cc_basename in
15080
 
      icc* | ecc*)
15081
 
        lt_prog_compiler_wl_F77='-Wl,'
15082
 
        lt_prog_compiler_pic_F77='-KPIC'
15083
 
        lt_prog_compiler_static_F77='-static'
15084
 
        ;;
15085
 
      pgcc* | pgf77* | pgf90* | pgf95*)
15086
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
15087
 
        # which looks to be a dead project)
15088
 
        lt_prog_compiler_wl_F77='-Wl,'
15089
 
        lt_prog_compiler_pic_F77='-fpic'
15090
 
        lt_prog_compiler_static_F77='-Bstatic'
15091
 
        ;;
15092
 
      ccc*)
15093
 
        lt_prog_compiler_wl_F77='-Wl,'
15094
 
        # All Alpha code is PIC.
15095
 
        lt_prog_compiler_static_F77='-non_shared'
15096
 
        ;;
15097
 
      *)
15098
 
        case `$CC -V 2>&1 | sed 5q` in
15099
 
        *Sun\ C*)
15100
 
          # Sun C 5.9
15101
 
          lt_prog_compiler_pic_F77='-KPIC'
15102
 
          lt_prog_compiler_static_F77='-Bstatic'
15103
 
          lt_prog_compiler_wl_F77='-Wl,'
15104
 
          ;;
15105
 
        *Sun\ F*)
15106
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
15107
 
          lt_prog_compiler_pic_F77='-KPIC'
15108
 
          lt_prog_compiler_static_F77='-Bstatic'
15109
 
          lt_prog_compiler_wl_F77=''
15110
 
          ;;
15111
 
        esac
15112
 
        ;;
15113
 
      esac
15114
 
      ;;
15115
 
 
15116
 
    osf3* | osf4* | osf5*)
15117
 
      lt_prog_compiler_wl_F77='-Wl,'
15118
 
      # All OSF/1 code is PIC.
15119
 
      lt_prog_compiler_static_F77='-non_shared'
15120
 
      ;;
15121
 
 
15122
 
    rdos*)
15123
 
      lt_prog_compiler_static_F77='-non_shared'
15124
 
      ;;
15125
 
 
15126
 
    solaris*)
15127
 
      lt_prog_compiler_pic_F77='-KPIC'
15128
 
      lt_prog_compiler_static_F77='-Bstatic'
15129
 
      case $cc_basename in
15130
 
      f77* | f90* | f95*)
15131
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
15132
 
      *)
15133
 
        lt_prog_compiler_wl_F77='-Wl,';;
15134
 
      esac
15135
 
      ;;
15136
 
 
15137
 
    sunos4*)
15138
 
      lt_prog_compiler_wl_F77='-Qoption ld '
15139
 
      lt_prog_compiler_pic_F77='-PIC'
15140
 
      lt_prog_compiler_static_F77='-Bstatic'
15141
 
      ;;
15142
 
 
15143
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
15144
 
      lt_prog_compiler_wl_F77='-Wl,'
15145
 
      lt_prog_compiler_pic_F77='-KPIC'
15146
 
      lt_prog_compiler_static_F77='-Bstatic'
15147
 
      ;;
15148
 
 
15149
 
    sysv4*MP*)
15150
 
      if test -d /usr/nec ;then
15151
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
15152
 
        lt_prog_compiler_static_F77='-Bstatic'
15153
 
      fi
15154
 
      ;;
15155
 
 
15156
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15157
 
      lt_prog_compiler_wl_F77='-Wl,'
15158
 
      lt_prog_compiler_pic_F77='-KPIC'
15159
 
      lt_prog_compiler_static_F77='-Bstatic'
15160
 
      ;;
15161
 
 
15162
 
    unicos*)
15163
 
      lt_prog_compiler_wl_F77='-Wl,'
15164
 
      lt_prog_compiler_can_build_shared_F77=no
15165
 
      ;;
15166
 
 
15167
 
    uts4*)
15168
 
      lt_prog_compiler_pic_F77='-pic'
15169
 
      lt_prog_compiler_static_F77='-Bstatic'
15170
 
      ;;
15171
 
 
15172
 
    *)
15173
 
      lt_prog_compiler_can_build_shared_F77=no
15174
 
      ;;
15175
 
    esac
15176
 
  fi
15177
 
 
15178
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15179
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15180
 
 
15181
 
#
15182
 
# Check to make sure the PIC flag actually works.
15183
 
#
15184
 
if test -n "$lt_prog_compiler_pic_F77"; then
15185
 
 
15186
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15187
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15188
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15189
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15190
 
else
15191
 
  lt_cv_prog_compiler_pic_works_F77=no
15192
 
  ac_outfile=conftest.$ac_objext
15193
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15194
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15195
 
   # Insert the option either (1) after the last *FLAGS variable, or
15196
 
   # (2) before a word containing "conftest.", or (3) at the end.
15197
 
   # Note that $ac_compile itself does not contain backslashes and begins
15198
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15199
 
   # The option is referenced via a variable to avoid confusing sed.
15200
 
   lt_compile=`echo "$ac_compile" | $SED \
15201
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15202
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15203
 
   -e 's:$: $lt_compiler_flag:'`
15204
 
   (eval echo "\"\$as_me:15204: $lt_compile\"" >&5)
15205
 
   (eval "$lt_compile" 2>conftest.err)
15206
 
   ac_status=$?
15207
 
   cat conftest.err >&5
15208
 
   echo "$as_me:15208: \$? = $ac_status" >&5
15209
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
15210
 
     # The compiler can only warn and ignore the option if not recognized
15211
 
     # So say no if there are warnings other than the usual output.
15212
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15213
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15214
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15215
 
       lt_cv_prog_compiler_pic_works_F77=yes
15216
 
     fi
15217
 
   fi
15218
 
   $rm conftest*
15219
 
 
15220
 
fi
15221
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15222
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15223
 
 
15224
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15225
 
    case $lt_prog_compiler_pic_F77 in
15226
 
     "" | " "*) ;;
15227
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15228
 
     esac
15229
 
else
15230
 
    lt_prog_compiler_pic_F77=
15231
 
     lt_prog_compiler_can_build_shared_F77=no
15232
 
fi
15233
 
 
15234
 
fi
15235
 
case $host_os in
15236
 
  # For platforms which do not support PIC, -DPIC is meaningless:
15237
 
  *djgpp*)
15238
 
    lt_prog_compiler_pic_F77=
15239
 
    ;;
15240
 
  *)
15241
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15242
 
    ;;
15243
 
esac
15244
 
 
15245
 
#
15246
 
# Check to make sure the static flag actually works.
15247
 
#
15248
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15249
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15250
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15251
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15253
 
else
15254
 
  lt_cv_prog_compiler_static_works_F77=no
15255
 
   save_LDFLAGS="$LDFLAGS"
15256
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15257
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15258
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15259
 
     # The linker can only warn and ignore the option if not recognized
15260
 
     # So say no if there are warnings
15261
 
     if test -s conftest.err; then
15262
 
       # Append any errors to the config.log.
15263
 
       cat conftest.err 1>&5
15264
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15265
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15266
 
       if diff conftest.exp conftest.er2 >/dev/null; then
15267
 
         lt_cv_prog_compiler_static_works_F77=yes
15268
 
       fi
15269
 
     else
15270
 
       lt_cv_prog_compiler_static_works_F77=yes
15271
 
     fi
15272
 
   fi
15273
 
   $rm -r conftest*
15274
 
   LDFLAGS="$save_LDFLAGS"
15275
 
 
15276
 
fi
15277
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15278
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15279
 
 
15280
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15281
 
    :
15282
 
else
15283
 
    lt_prog_compiler_static_F77=
15284
 
fi
15285
 
 
15286
 
 
15287
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15288
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15289
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15291
 
else
15292
 
  lt_cv_prog_compiler_c_o_F77=no
15293
 
   $rm -r conftest 2>/dev/null
15294
 
   mkdir conftest
15295
 
   cd conftest
15296
 
   mkdir out
15297
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
 
 
15299
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15300
 
   # Insert the option either (1) after the last *FLAGS variable, or
15301
 
   # (2) before a word containing "conftest.", or (3) at the end.
15302
 
   # Note that $ac_compile itself does not contain backslashes and begins
15303
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15304
 
   lt_compile=`echo "$ac_compile" | $SED \
15305
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15306
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15307
 
   -e 's:$: $lt_compiler_flag:'`
15308
 
   (eval echo "\"\$as_me:15308: $lt_compile\"" >&5)
15309
 
   (eval "$lt_compile" 2>out/conftest.err)
15310
 
   ac_status=$?
15311
 
   cat out/conftest.err >&5
15312
 
   echo "$as_me:15312: \$? = $ac_status" >&5
15313
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15314
 
   then
15315
 
     # The compiler can only warn and ignore the option if not recognized
15316
 
     # So say no if there are warnings
15317
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15318
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15319
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15320
 
       lt_cv_prog_compiler_c_o_F77=yes
15321
 
     fi
15322
 
   fi
15323
 
   chmod u+w . 2>&5
15324
 
   $rm conftest*
15325
 
   # SGI C++ compiler will create directory out/ii_files/ for
15326
 
   # template instantiation
15327
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15328
 
   $rm out/* && rmdir out
15329
 
   cd ..
15330
 
   rmdir conftest
15331
 
   $rm conftest*
15332
 
 
15333
 
fi
15334
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15335
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15336
 
 
15337
 
 
15338
 
hard_links="nottested"
15339
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15340
 
  # do not overwrite the value of need_locks provided by the user
15341
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15342
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15343
 
  hard_links=yes
15344
 
  $rm conftest*
15345
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15346
 
  touch conftest.a
15347
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
15348
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
15350
 
echo "${ECHO_T}$hard_links" >&6; }
15351
 
  if test "$hard_links" = no; then
15352
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15353
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15354
 
    need_locks=warn
15355
 
  fi
15356
 
else
15357
 
  need_locks=no
15358
 
fi
15359
 
 
15360
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15361
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15362
 
 
15363
 
  runpath_var=
15364
 
  allow_undefined_flag_F77=
15365
 
  enable_shared_with_static_runtimes_F77=no
15366
 
  archive_cmds_F77=
15367
 
  archive_expsym_cmds_F77=
15368
 
  old_archive_From_new_cmds_F77=
15369
 
  old_archive_from_expsyms_cmds_F77=
15370
 
  export_dynamic_flag_spec_F77=
15371
 
  whole_archive_flag_spec_F77=
15372
 
  thread_safe_flag_spec_F77=
15373
 
  hardcode_libdir_flag_spec_F77=
15374
 
  hardcode_libdir_flag_spec_ld_F77=
15375
 
  hardcode_libdir_separator_F77=
15376
 
  hardcode_direct_F77=no
15377
 
  hardcode_minus_L_F77=no
15378
 
  hardcode_shlibpath_var_F77=unsupported
15379
 
  link_all_deplibs_F77=unknown
15380
 
  hardcode_automatic_F77=no
15381
 
  module_cmds_F77=
15382
 
  module_expsym_cmds_F77=
15383
 
  always_export_symbols_F77=no
15384
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15385
 
  # include_expsyms should be a list of space-separated symbols to be *always*
15386
 
  # included in the symbol list
15387
 
  include_expsyms_F77=
15388
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
15389
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15390
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15391
 
  # as well as any symbol that contains `d'.
15392
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15393
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15394
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
15395
 
  # the symbol is explicitly referenced.  Since portable code cannot
15396
 
  # rely on this symbol name, it's probably fine to never include it in
15397
 
  # preloaded symbol tables.
15398
 
  # Exclude shared library initialization/finalization symbols.
15399
 
  extract_expsyms_cmds=
15400
 
  # Just being paranoid about ensuring that cc_basename is set.
15401
 
  for cc_temp in $compiler""; do
15402
 
  case $cc_temp in
15403
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15404
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15405
 
    \-*) ;;
15406
 
    *) break;;
15407
 
  esac
15408
 
done
15409
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15410
 
 
15411
 
  case $host_os in
15412
 
  cygwin* | mingw* | pw32*)
15413
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15414
 
    # When not using gcc, we currently assume that we are using
15415
 
    # Microsoft Visual C++.
15416
 
    if test "$GCC" != yes; then
15417
 
      with_gnu_ld=no
15418
 
    fi
15419
 
    ;;
15420
 
  interix*)
15421
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
15422
 
    with_gnu_ld=yes
15423
 
    ;;
15424
 
  openbsd*)
15425
 
    with_gnu_ld=no
15426
 
    ;;
15427
 
  esac
15428
 
 
15429
 
  ld_shlibs_F77=yes
15430
 
  if test "$with_gnu_ld" = yes; then
15431
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
15432
 
    wlarc='${wl}'
15433
 
 
15434
 
    # Set some defaults for GNU ld with shared library support. These
15435
 
    # are reset later if shared libraries are not supported. Putting them
15436
 
    # here allows them to be overridden if necessary.
15437
 
    runpath_var=LD_RUN_PATH
15438
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15439
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15440
 
    # ancient GNU ld didn't support --whole-archive et. al.
15441
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15442
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15443
 
      else
15444
 
        whole_archive_flag_spec_F77=
15445
 
    fi
15446
 
    supports_anon_versioning=no
15447
 
    case `$LD -v 2>/dev/null` in
15448
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15449
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15450
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15451
 
      *\ 2.11.*) ;; # other 2.11 versions
15452
 
      *) supports_anon_versioning=yes ;;
15453
 
    esac
15454
 
 
15455
 
    # See if GNU ld supports shared libraries.
15456
 
    case $host_os in
15457
 
    aix[3-9]*)
15458
 
      # On AIX/PPC, the GNU linker is very broken
15459
 
      if test "$host_cpu" != ia64; then
15460
 
        ld_shlibs_F77=no
15461
 
        cat <<EOF 1>&2
15462
 
 
15463
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15464
 
*** to be unable to reliably create shared libraries on AIX.
15465
 
*** Therefore, libtool is disabling shared libraries support.  If you
15466
 
*** really care for shared libraries, you may want to modify your PATH
15467
 
*** so that a non-GNU linker is found, and then restart.
15468
 
 
15469
 
EOF
15470
 
      fi
15471
 
      ;;
15472
 
 
15473
 
    amigaos*)
15474
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15475
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15476
 
      hardcode_minus_L_F77=yes
15477
 
 
15478
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15479
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
15480
 
      # to version 4, is to share data among multiple programs linked
15481
 
      # with the same dynamic library.  Since this doesn't match the
15482
 
      # behavior of shared libraries on other platforms, we can't use
15483
 
      # them.
15484
 
      ld_shlibs_F77=no
15485
 
      ;;
15486
 
 
15487
 
    beos*)
15488
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15489
 
        allow_undefined_flag_F77=unsupported
15490
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15491
 
        # support --undefined.  This deserves some investigation.  FIXME
15492
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493
 
      else
15494
 
        ld_shlibs_F77=no
15495
 
      fi
15496
 
      ;;
15497
 
 
15498
 
    cygwin* | mingw* | pw32*)
15499
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15500
 
      # as there is no search path for DLLs.
15501
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15502
 
      allow_undefined_flag_F77=unsupported
15503
 
      always_export_symbols_F77=no
15504
 
      enable_shared_with_static_runtimes_F77=yes
15505
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15506
 
 
15507
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15509
 
        # If the export-symbols file already is a .def file (1st line
15510
 
        # is EXPORTS), use it as is; otherwise, prepend...
15511
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512
 
          cp $export_symbols $output_objdir/$soname.def;
15513
 
        else
15514
 
          echo EXPORTS > $output_objdir/$soname.def;
15515
 
          cat $export_symbols >> $output_objdir/$soname.def;
15516
 
        fi~
15517
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15518
 
      else
15519
 
        ld_shlibs_F77=no
15520
 
      fi
15521
 
      ;;
15522
 
 
15523
 
    interix[3-9]*)
15524
 
      hardcode_direct_F77=no
15525
 
      hardcode_shlibpath_var_F77=no
15526
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15527
 
      export_dynamic_flag_spec_F77='${wl}-E'
15528
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15529
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
15530
 
      # default) and relocated if they conflict, which is a slow very memory
15531
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
15532
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15533
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15534
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15535
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15536
 
      ;;
15537
 
 
15538
 
    gnu* | linux* | k*bsd*-gnu)
15539
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540
 
        tmp_addflag=
15541
 
        case $cc_basename,$host_cpu in
15542
 
        pgcc*)                          # Portland Group C compiler
15543
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15544
 
          tmp_addflag=' $pic_flag'
15545
 
          ;;
15546
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15547
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15548
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
15549
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15550
 
          tmp_addflag=' -i_dynamic' ;;
15551
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15552
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
15553
 
        ifc* | ifort*)                  # Intel Fortran compiler
15554
 
          tmp_addflag=' -nofor_main' ;;
15555
 
        esac
15556
 
        case `$CC -V 2>&1 | sed 5q` in
15557
 
        *Sun\ C*)                       # Sun C 5.9
15558
 
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15559
 
          tmp_sharedflag='-G' ;;
15560
 
        *Sun\ F*)                       # Sun Fortran 8.3
15561
 
          tmp_sharedflag='-G' ;;
15562
 
        *)
15563
 
          tmp_sharedflag='-shared' ;;
15564
 
        esac
15565
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566
 
 
15567
 
        if test $supports_anon_versioning = yes; then
15568
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15569
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15570
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15571
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15572
 
        fi
15573
 
        link_all_deplibs_F77=no
15574
 
      else
15575
 
        ld_shlibs_F77=no
15576
 
      fi
15577
 
      ;;
15578
 
 
15579
 
    netbsd* | netbsdelf*-gnu)
15580
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15581
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15582
 
        wlarc=
15583
 
      else
15584
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15585
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15586
 
      fi
15587
 
      ;;
15588
 
 
15589
 
    solaris*)
15590
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15591
 
        ld_shlibs_F77=no
15592
 
        cat <<EOF 1>&2
15593
 
 
15594
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15595
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15596
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15597
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15598
 
*** your PATH or compiler configuration so that the native linker is
15599
 
*** used, and then restart.
15600
 
 
15601
 
EOF
15602
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15605
 
      else
15606
 
        ld_shlibs_F77=no
15607
 
      fi
15608
 
      ;;
15609
 
 
15610
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15611
 
      case `$LD -v 2>&1` in
15612
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15613
 
        ld_shlibs_F77=no
15614
 
        cat <<_LT_EOF 1>&2
15615
 
 
15616
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15617
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15618
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15619
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15620
 
*** your PATH or compiler configuration so that the native linker is
15621
 
*** used, and then restart.
15622
 
 
15623
 
_LT_EOF
15624
 
        ;;
15625
 
        *)
15626
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15627
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15628
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15629
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15630
 
          else
15631
 
            ld_shlibs_F77=no
15632
 
          fi
15633
 
        ;;
15634
 
      esac
15635
 
      ;;
15636
 
 
15637
 
    sunos4*)
15638
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15639
 
      wlarc=
15640
 
      hardcode_direct_F77=yes
15641
 
      hardcode_shlibpath_var_F77=no
15642
 
      ;;
15643
 
 
15644
 
    *)
15645
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15646
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15648
 
      else
15649
 
        ld_shlibs_F77=no
15650
 
      fi
15651
 
      ;;
15652
 
    esac
15653
 
 
15654
 
    if test "$ld_shlibs_F77" = no; then
15655
 
      runpath_var=
15656
 
      hardcode_libdir_flag_spec_F77=
15657
 
      export_dynamic_flag_spec_F77=
15658
 
      whole_archive_flag_spec_F77=
15659
 
    fi
15660
 
  else
15661
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15662
 
    case $host_os in
15663
 
    aix3*)
15664
 
      allow_undefined_flag_F77=unsupported
15665
 
      always_export_symbols_F77=yes
15666
 
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15667
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15668
 
      # are no directories specified by -L.
15669
 
      hardcode_minus_L_F77=yes
15670
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15671
 
        # Neither direct hardcoding nor static linking is supported with a
15672
 
        # broken collect2.
15673
 
        hardcode_direct_F77=unsupported
15674
 
      fi
15675
 
      ;;
15676
 
 
15677
 
    aix[4-9]*)
15678
 
      if test "$host_cpu" = ia64; then
15679
 
        # On IA64, the linker does run time linking by default, so we don't
15680
 
        # have to do anything special.
15681
 
        aix_use_runtimelinking=no
15682
 
        exp_sym_flag='-Bexport'
15683
 
        no_entry_flag=""
15684
 
      else
15685
 
        # If we're using GNU nm, then we don't want the "-C" option.
15686
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15687
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15688
 
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15689
 
        else
15690
 
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15691
 
        fi
15692
 
        aix_use_runtimelinking=no
15693
 
 
15694
 
        # Test if we are trying to use run time linking or normal
15695
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15696
 
        # need to do runtime linking.
15697
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15698
 
          for ld_flag in $LDFLAGS; do
15699
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15700
 
            aix_use_runtimelinking=yes
15701
 
            break
15702
 
          fi
15703
 
          done
15704
 
          ;;
15705
 
        esac
15706
 
 
15707
 
        exp_sym_flag='-bexport'
15708
 
        no_entry_flag='-bnoentry'
15709
 
      fi
15710
 
 
15711
 
      # When large executables or shared objects are built, AIX ld can
15712
 
      # have problems creating the table of contents.  If linking a library
15713
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15714
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15715
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15716
 
 
15717
 
      archive_cmds_F77=''
15718
 
      hardcode_direct_F77=yes
15719
 
      hardcode_libdir_separator_F77=':'
15720
 
      link_all_deplibs_F77=yes
15721
 
 
15722
 
      if test "$GCC" = yes; then
15723
 
        case $host_os in aix4.[012]|aix4.[012].*)
15724
 
        # We only want to do this on AIX 4.2 and lower, the check
15725
 
        # below for broken collect2 doesn't work under 4.3+
15726
 
          collect2name=`${CC} -print-prog-name=collect2`
15727
 
          if test -f "$collect2name" && \
15728
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15729
 
          then
15730
 
          # We have reworked collect2
15731
 
          :
15732
 
          else
15733
 
          # We have old collect2
15734
 
          hardcode_direct_F77=unsupported
15735
 
          # It fails to find uninstalled libraries when the uninstalled
15736
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15737
 
          # to unsupported forces relinking
15738
 
          hardcode_minus_L_F77=yes
15739
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15740
 
          hardcode_libdir_separator_F77=
15741
 
          fi
15742
 
          ;;
15743
 
        esac
15744
 
        shared_flag='-shared'
15745
 
        if test "$aix_use_runtimelinking" = yes; then
15746
 
          shared_flag="$shared_flag "'${wl}-G'
15747
 
        fi
15748
 
      else
15749
 
        # not using gcc
15750
 
        if test "$host_cpu" = ia64; then
15751
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15752
 
        # chokes on -Wl,-G. The following line is correct:
15753
 
          shared_flag='-G'
15754
 
        else
15755
 
          if test "$aix_use_runtimelinking" = yes; then
15756
 
            shared_flag='${wl}-G'
15757
 
          else
15758
 
            shared_flag='${wl}-bM:SRE'
15759
 
          fi
15760
 
        fi
15761
 
      fi
15762
 
 
15763
 
      # It seems that -bexpall does not export symbols beginning with
15764
 
      # underscore (_), so it is better to generate a list of symbols to export.
15765
 
      always_export_symbols_F77=yes
15766
 
      if test "$aix_use_runtimelinking" = yes; then
15767
 
        # Warning - without using the other runtime loading flags (-brtl),
15768
 
        # -berok will link without error, but may produce a broken library.
15769
 
        allow_undefined_flag_F77='-berok'
15770
 
       # Determine the default libpath from the value encoded in an empty executable.
15771
 
       cat >conftest.$ac_ext <<_ACEOF
15772
 
      program main
15773
 
 
15774
 
      end
15775
 
_ACEOF
15776
 
rm -f conftest.$ac_objext conftest$ac_exeext
15777
 
if { (ac_try="$ac_link"
15778
 
case "(($ac_try" in
15779
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780
 
  *) ac_try_echo=$ac_try;;
15781
 
esac
15782
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783
 
  (eval "$ac_link") 2>conftest.er1
15784
 
  ac_status=$?
15785
 
  grep -v '^ *+' conftest.er1 >conftest.err
15786
 
  rm -f conftest.er1
15787
 
  cat conftest.err >&5
15788
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789
 
  (exit $ac_status); } && {
15790
 
         test -z "$ac_f77_werror_flag" ||
15791
 
         test ! -s conftest.err
15792
 
       } && test -s conftest$ac_exeext &&
15793
 
       $as_test_x conftest$ac_exeext; then
15794
 
 
15795
 
lt_aix_libpath_sed='
15796
 
    /Import File Strings/,/^$/ {
15797
 
        /^0/ {
15798
 
            s/^0  *\(.*\)$/\1/
15799
 
            p
15800
 
        }
15801
 
    }'
15802
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15803
 
# Check for a 64-bit object if we didn't find anything.
15804
 
if test -z "$aix_libpath"; then
15805
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15806
 
fi
15807
 
else
15808
 
  echo "$as_me: failed program was:" >&5
15809
 
sed 's/^/| /' conftest.$ac_ext >&5
15810
 
 
15811
 
 
15812
 
fi
15813
 
 
15814
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15815
 
      conftest$ac_exeext conftest.$ac_ext
15816
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15817
 
 
15818
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15819
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15820
 
       else
15821
 
        if test "$host_cpu" = ia64; then
15822
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15823
 
          allow_undefined_flag_F77="-z nodefs"
15824
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15825
 
        else
15826
 
         # Determine the default libpath from the value encoded in an empty executable.
15827
 
         cat >conftest.$ac_ext <<_ACEOF
15828
 
      program main
15829
 
 
15830
 
      end
15831
 
_ACEOF
15832
 
rm -f conftest.$ac_objext conftest$ac_exeext
15833
 
if { (ac_try="$ac_link"
15834
 
case "(($ac_try" in
15835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836
 
  *) ac_try_echo=$ac_try;;
15837
 
esac
15838
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839
 
  (eval "$ac_link") 2>conftest.er1
15840
 
  ac_status=$?
15841
 
  grep -v '^ *+' conftest.er1 >conftest.err
15842
 
  rm -f conftest.er1
15843
 
  cat conftest.err >&5
15844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845
 
  (exit $ac_status); } && {
15846
 
         test -z "$ac_f77_werror_flag" ||
15847
 
         test ! -s conftest.err
15848
 
       } && test -s conftest$ac_exeext &&
15849
 
       $as_test_x conftest$ac_exeext; then
15850
 
 
15851
 
lt_aix_libpath_sed='
15852
 
    /Import File Strings/,/^$/ {
15853
 
        /^0/ {
15854
 
            s/^0  *\(.*\)$/\1/
15855
 
            p
15856
 
        }
15857
 
    }'
15858
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15859
 
# Check for a 64-bit object if we didn't find anything.
15860
 
if test -z "$aix_libpath"; then
15861
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15862
 
fi
15863
 
else
15864
 
  echo "$as_me: failed program was:" >&5
15865
 
sed 's/^/| /' conftest.$ac_ext >&5
15866
 
 
15867
 
 
15868
 
fi
15869
 
 
15870
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15871
 
      conftest$ac_exeext conftest.$ac_ext
15872
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15873
 
 
15874
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15875
 
          # Warning - without using the other run time loading flags,
15876
 
          # -berok will link without error, but may produce a broken library.
15877
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15878
 
          allow_undefined_flag_F77=' ${wl}-berok'
15879
 
          # Exported symbols can be pulled into shared objects from archives
15880
 
          whole_archive_flag_spec_F77='$convenience'
15881
 
          archive_cmds_need_lc_F77=yes
15882
 
          # This is similar to how AIX traditionally builds its shared libraries.
15883
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15884
 
        fi
15885
 
      fi
15886
 
      ;;
15887
 
 
15888
 
    amigaos*)
15889
 
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15890
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15891
 
      hardcode_minus_L_F77=yes
15892
 
      # see comment about different semantics on the GNU ld section
15893
 
      ld_shlibs_F77=no
15894
 
      ;;
15895
 
 
15896
 
    bsdi[45]*)
15897
 
      export_dynamic_flag_spec_F77=-rdynamic
15898
 
      ;;
15899
 
 
15900
 
    cygwin* | mingw* | pw32*)
15901
 
      # When not using gcc, we currently assume that we are using
15902
 
      # Microsoft Visual C++.
15903
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15904
 
      # no search path for DLLs.
15905
 
      hardcode_libdir_flag_spec_F77=' '
15906
 
      allow_undefined_flag_F77=unsupported
15907
 
      # Tell ltmain to make .lib files, not .a files.
15908
 
      libext=lib
15909
 
      # Tell ltmain to make .dll files, not .so files.
15910
 
      shrext_cmds=".dll"
15911
 
      # FIXME: Setting linknames here is a bad hack.
15912
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15913
 
      # The linker will automatically build a .lib file if we build a DLL.
15914
 
      old_archive_From_new_cmds_F77='true'
15915
 
      # FIXME: Should let the user specify the lib program.
15916
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15917
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15918
 
      enable_shared_with_static_runtimes_F77=yes
15919
 
      ;;
15920
 
 
15921
 
    darwin* | rhapsody*)
15922
 
      case $host_os in
15923
 
        rhapsody* | darwin1.[012])
15924
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15925
 
         ;;
15926
 
       *) # Darwin 1.3 on
15927
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15928
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15929
 
         else
15930
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15931
 
             10.[012])
15932
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15933
 
               ;;
15934
 
             10.*)
15935
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15936
 
               ;;
15937
 
           esac
15938
 
         fi
15939
 
         ;;
15940
 
      esac
15941
 
      archive_cmds_need_lc_F77=no
15942
 
      hardcode_direct_F77=no
15943
 
      hardcode_automatic_F77=yes
15944
 
      hardcode_shlibpath_var_F77=unsupported
15945
 
      whole_archive_flag_spec_F77=''
15946
 
      link_all_deplibs_F77=yes
15947
 
    if test "$GCC" = yes ; then
15948
 
        output_verbose_link_cmd='echo'
15949
 
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15950
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15951
 
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15952
 
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15953
 
    else
15954
 
      case $cc_basename in
15955
 
        xlc*)
15956
 
         output_verbose_link_cmd='echo'
15957
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15958
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15959
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15960
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15961
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15962
 
          ;;
15963
 
       *)
15964
 
         ld_shlibs_F77=no
15965
 
          ;;
15966
 
      esac
15967
 
    fi
15968
 
      ;;
15969
 
 
15970
 
    dgux*)
15971
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15973
 
      hardcode_shlibpath_var_F77=no
15974
 
      ;;
15975
 
 
15976
 
    freebsd1*)
15977
 
      ld_shlibs_F77=no
15978
 
      ;;
15979
 
 
15980
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15981
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15982
 
    # does not break anything, and helps significantly (at the cost of a little
15983
 
    # extra space).
15984
 
    freebsd2.2*)
15985
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15986
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15987
 
      hardcode_direct_F77=yes
15988
 
      hardcode_shlibpath_var_F77=no
15989
 
      ;;
15990
 
 
15991
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15992
 
    freebsd2*)
15993
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15994
 
      hardcode_direct_F77=yes
15995
 
      hardcode_minus_L_F77=yes
15996
 
      hardcode_shlibpath_var_F77=no
15997
 
      ;;
15998
 
 
15999
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16000
 
    freebsd* | dragonfly*)
16001
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16002
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16003
 
      hardcode_direct_F77=yes
16004
 
      hardcode_shlibpath_var_F77=no
16005
 
      ;;
16006
 
 
16007
 
    hpux9*)
16008
 
      if test "$GCC" = yes; then
16009
 
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16010
 
      else
16011
 
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16012
 
      fi
16013
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16014
 
      hardcode_libdir_separator_F77=:
16015
 
      hardcode_direct_F77=yes
16016
 
 
16017
 
      # hardcode_minus_L: Not really in the search PATH,
16018
 
      # but as the default location of the library.
16019
 
      hardcode_minus_L_F77=yes
16020
 
      export_dynamic_flag_spec_F77='${wl}-E'
16021
 
      ;;
16022
 
 
16023
 
    hpux10*)
16024
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16025
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16026
 
      else
16027
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16028
 
      fi
16029
 
      if test "$with_gnu_ld" = no; then
16030
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16031
 
        hardcode_libdir_separator_F77=:
16032
 
 
16033
 
        hardcode_direct_F77=yes
16034
 
        export_dynamic_flag_spec_F77='${wl}-E'
16035
 
 
16036
 
        # hardcode_minus_L: Not really in the search PATH,
16037
 
        # but as the default location of the library.
16038
 
        hardcode_minus_L_F77=yes
16039
 
      fi
16040
 
      ;;
16041
 
 
16042
 
    hpux11*)
16043
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16044
 
        case $host_cpu in
16045
 
        hppa*64*)
16046
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16047
 
          ;;
16048
 
        ia64*)
16049
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16050
 
          ;;
16051
 
        *)
16052
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16053
 
          ;;
16054
 
        esac
16055
 
      else
16056
 
        case $host_cpu in
16057
 
        hppa*64*)
16058
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16059
 
          ;;
16060
 
        ia64*)
16061
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16062
 
          ;;
16063
 
        *)
16064
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16065
 
          ;;
16066
 
        esac
16067
 
      fi
16068
 
      if test "$with_gnu_ld" = no; then
16069
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070
 
        hardcode_libdir_separator_F77=:
16071
 
 
16072
 
        case $host_cpu in
16073
 
        hppa*64*|ia64*)
16074
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16075
 
          hardcode_direct_F77=no
16076
 
          hardcode_shlibpath_var_F77=no
16077
 
          ;;
16078
 
        *)
16079
 
          hardcode_direct_F77=yes
16080
 
          export_dynamic_flag_spec_F77='${wl}-E'
16081
 
 
16082
 
          # hardcode_minus_L: Not really in the search PATH,
16083
 
          # but as the default location of the library.
16084
 
          hardcode_minus_L_F77=yes
16085
 
          ;;
16086
 
        esac
16087
 
      fi
16088
 
      ;;
16089
 
 
16090
 
    irix5* | irix6* | nonstopux*)
16091
 
      if test "$GCC" = yes; then
16092
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16093
 
      else
16094
 
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16095
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16096
 
      fi
16097
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16098
 
      hardcode_libdir_separator_F77=:
16099
 
      link_all_deplibs_F77=yes
16100
 
      ;;
16101
 
 
16102
 
    netbsd* | netbsdelf*-gnu)
16103
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16104
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16105
 
      else
16106
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16107
 
      fi
16108
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16109
 
      hardcode_direct_F77=yes
16110
 
      hardcode_shlibpath_var_F77=no
16111
 
      ;;
16112
 
 
16113
 
    newsos6)
16114
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115
 
      hardcode_direct_F77=yes
16116
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16117
 
      hardcode_libdir_separator_F77=:
16118
 
      hardcode_shlibpath_var_F77=no
16119
 
      ;;
16120
 
 
16121
 
    openbsd*)
16122
 
      if test -f /usr/libexec/ld.so; then
16123
 
        hardcode_direct_F77=yes
16124
 
        hardcode_shlibpath_var_F77=no
16125
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16126
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16127
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16128
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16129
 
          export_dynamic_flag_spec_F77='${wl}-E'
16130
 
        else
16131
 
          case $host_os in
16132
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16133
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
16135
 
             ;;
16136
 
           *)
16137
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16138
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16139
 
             ;;
16140
 
          esac
16141
 
        fi
16142
 
      else
16143
 
        ld_shlibs_F77=no
16144
 
      fi
16145
 
      ;;
16146
 
 
16147
 
    os2*)
16148
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16149
 
      hardcode_minus_L_F77=yes
16150
 
      allow_undefined_flag_F77=unsupported
16151
 
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16152
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16153
 
      ;;
16154
 
 
16155
 
    osf3*)
16156
 
      if test "$GCC" = yes; then
16157
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16158
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16159
 
      else
16160
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16161
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16162
 
      fi
16163
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16164
 
      hardcode_libdir_separator_F77=:
16165
 
      ;;
16166
 
 
16167
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16168
 
      if test "$GCC" = yes; then
16169
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16170
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16171
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16172
 
      else
16173
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
16174
 
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16175
 
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16176
 
        $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'
16177
 
 
16178
 
        # Both c and cxx compiler support -rpath directly
16179
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
16180
 
      fi
16181
 
      hardcode_libdir_separator_F77=:
16182
 
      ;;
16183
 
 
16184
 
    solaris*)
16185
 
      no_undefined_flag_F77=' -z text'
16186
 
      if test "$GCC" = yes; then
16187
 
        wlarc='${wl}'
16188
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16190
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16191
 
      else
16192
 
        wlarc=''
16193
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16196
 
      fi
16197
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16198
 
      hardcode_shlibpath_var_F77=no
16199
 
      case $host_os in
16200
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16201
 
      *)
16202
 
        # The compiler driver will combine and reorder linker options,
16203
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
16204
 
        # but is careful enough not to reorder.
16205
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
16206
 
        if test "$GCC" = yes; then
16207
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16208
 
        else
16209
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16210
 
        fi
16211
 
        ;;
16212
 
      esac
16213
 
      link_all_deplibs_F77=yes
16214
 
      ;;
16215
 
 
16216
 
    sunos4*)
16217
 
      if test "x$host_vendor" = xsequent; then
16218
 
        # Use $CC to link under sequent, because it throws in some extra .o
16219
 
        # files that make .init and .fini sections work.
16220
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16221
 
      else
16222
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16223
 
      fi
16224
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16225
 
      hardcode_direct_F77=yes
16226
 
      hardcode_minus_L_F77=yes
16227
 
      hardcode_shlibpath_var_F77=no
16228
 
      ;;
16229
 
 
16230
 
    sysv4)
16231
 
      case $host_vendor in
16232
 
        sni)
16233
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234
 
          hardcode_direct_F77=yes # is this really true???
16235
 
        ;;
16236
 
        siemens)
16237
 
          ## LD is ld it makes a PLAMLIB
16238
 
          ## CC just makes a GrossModule.
16239
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16240
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
16241
 
          hardcode_direct_F77=no
16242
 
        ;;
16243
 
        motorola)
16244
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16246
 
        ;;
16247
 
      esac
16248
 
      runpath_var='LD_RUN_PATH'
16249
 
      hardcode_shlibpath_var_F77=no
16250
 
      ;;
16251
 
 
16252
 
    sysv4.3*)
16253
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16254
 
      hardcode_shlibpath_var_F77=no
16255
 
      export_dynamic_flag_spec_F77='-Bexport'
16256
 
      ;;
16257
 
 
16258
 
    sysv4*MP*)
16259
 
      if test -d /usr/nec; then
16260
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261
 
        hardcode_shlibpath_var_F77=no
16262
 
        runpath_var=LD_RUN_PATH
16263
 
        hardcode_runpath_var=yes
16264
 
        ld_shlibs_F77=yes
16265
 
      fi
16266
 
      ;;
16267
 
 
16268
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16269
 
      no_undefined_flag_F77='${wl}-z,text'
16270
 
      archive_cmds_need_lc_F77=no
16271
 
      hardcode_shlibpath_var_F77=no
16272
 
      runpath_var='LD_RUN_PATH'
16273
 
 
16274
 
      if test "$GCC" = yes; then
16275
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16276
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16277
 
      else
16278
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16279
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16280
 
      fi
16281
 
      ;;
16282
 
 
16283
 
    sysv5* | sco3.2v5* | sco5v6*)
16284
 
      # Note: We can NOT use -z defs as we might desire, because we do not
16285
 
      # link with -lc, and that would cause any symbols used from libc to
16286
 
      # always be unresolved, which means just about no library would
16287
 
      # ever link correctly.  If we're not using GNU ld we use -z text
16288
 
      # though, which does catch some bad symbols but isn't as heavy-handed
16289
 
      # as -z defs.
16290
 
      no_undefined_flag_F77='${wl}-z,text'
16291
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
16292
 
      archive_cmds_need_lc_F77=no
16293
 
      hardcode_shlibpath_var_F77=no
16294
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16295
 
      hardcode_libdir_separator_F77=':'
16296
 
      link_all_deplibs_F77=yes
16297
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16298
 
      runpath_var='LD_RUN_PATH'
16299
 
 
16300
 
      if test "$GCC" = yes; then
16301
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16302
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16303
 
      else
16304
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306
 
      fi
16307
 
      ;;
16308
 
 
16309
 
    uts4*)
16310
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
16312
 
      hardcode_shlibpath_var_F77=no
16313
 
      ;;
16314
 
 
16315
 
    *)
16316
 
      ld_shlibs_F77=no
16317
 
      ;;
16318
 
    esac
16319
 
  fi
16320
 
 
16321
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16322
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16323
 
test "$ld_shlibs_F77" = no && can_build_shared=no
16324
 
 
16325
 
#
16326
 
# Do we need to explicitly link libc?
16327
 
#
16328
 
case "x$archive_cmds_need_lc_F77" in
16329
 
x|xyes)
16330
 
  # Assume -lc should be added
16331
 
  archive_cmds_need_lc_F77=yes
16332
 
 
16333
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
16334
 
    case $archive_cmds_F77 in
16335
 
    *'~'*)
16336
 
      # FIXME: we may have to deal with multi-command sequences.
16337
 
      ;;
16338
 
    '$CC '*)
16339
 
      # Test whether the compiler implicitly links with -lc since on some
16340
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16341
 
      # to ld, don't add -lc before -lgcc.
16342
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16343
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16344
 
      $rm conftest*
16345
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16346
 
 
16347
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348
 
  (eval $ac_compile) 2>&5
16349
 
  ac_status=$?
16350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351
 
  (exit $ac_status); } 2>conftest.err; then
16352
 
        soname=conftest
16353
 
        lib=conftest
16354
 
        libobjs=conftest.$ac_objext
16355
 
        deplibs=
16356
 
        wl=$lt_prog_compiler_wl_F77
16357
 
        pic_flag=$lt_prog_compiler_pic_F77
16358
 
        compiler_flags=-v
16359
 
        linker_flags=-v
16360
 
        verstring=
16361
 
        output_objdir=.
16362
 
        libname=conftest
16363
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16364
 
        allow_undefined_flag_F77=
16365
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16366
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16367
 
  ac_status=$?
16368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369
 
  (exit $ac_status); }
16370
 
        then
16371
 
          archive_cmds_need_lc_F77=no
16372
 
        else
16373
 
          archive_cmds_need_lc_F77=yes
16374
 
        fi
16375
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16376
 
      else
16377
 
        cat conftest.err 1>&5
16378
 
      fi
16379
 
      $rm conftest*
16380
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16381
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16382
 
      ;;
16383
 
    esac
16384
 
  fi
16385
 
  ;;
16386
 
esac
16387
 
 
16388
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16389
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16390
 
library_names_spec=
16391
 
libname_spec='lib$name'
16392
 
soname_spec=
16393
 
shrext_cmds=".so"
16394
 
postinstall_cmds=
16395
 
postuninstall_cmds=
16396
 
finish_cmds=
16397
 
finish_eval=
16398
 
shlibpath_var=
16399
 
shlibpath_overrides_runpath=unknown
16400
 
version_type=none
16401
 
dynamic_linker="$host_os ld.so"
16402
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16403
 
 
16404
 
need_lib_prefix=unknown
16405
 
hardcode_into_libs=no
16406
 
 
16407
 
# when you set need_version to no, make sure it does not cause -set_version
16408
 
# flags to be left without arguments
16409
 
need_version=unknown
16410
 
 
16411
 
case $host_os in
16412
 
aix3*)
16413
 
  version_type=linux
16414
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16415
 
  shlibpath_var=LIBPATH
16416
 
 
16417
 
  # AIX 3 has no versioning support, so we append a major version to the name.
16418
 
  soname_spec='${libname}${release}${shared_ext}$major'
16419
 
  ;;
16420
 
 
16421
 
aix[4-9]*)
16422
 
  version_type=linux
16423
 
  need_lib_prefix=no
16424
 
  need_version=no
16425
 
  hardcode_into_libs=yes
16426
 
  if test "$host_cpu" = ia64; then
16427
 
    # AIX 5 supports IA64
16428
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16429
 
    shlibpath_var=LD_LIBRARY_PATH
16430
 
  else
16431
 
    # With GCC up to 2.95.x, collect2 would create an import file
16432
 
    # for dependence libraries.  The import file would start with
16433
 
    # the line `#! .'.  This would cause the generated library to
16434
 
    # depend on `.', always an invalid library.  This was fixed in
16435
 
    # development snapshots of GCC prior to 3.0.
16436
 
    case $host_os in
16437
 
      aix4 | aix4.[01] | aix4.[01].*)
16438
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16439
 
           echo ' yes '
16440
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16441
 
        :
16442
 
      else
16443
 
        can_build_shared=no
16444
 
      fi
16445
 
      ;;
16446
 
    esac
16447
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16448
 
    # soname into executable. Probably we can add versioning support to
16449
 
    # collect2, so additional links can be useful in future.
16450
 
    if test "$aix_use_runtimelinking" = yes; then
16451
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16452
 
      # instead of lib<name>.a to let people know that these are not
16453
 
      # typical AIX shared libraries.
16454
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455
 
    else
16456
 
      # We preserve .a as extension for shared libraries through AIX4.2
16457
 
      # and later when we are not doing run time linking.
16458
 
      library_names_spec='${libname}${release}.a $libname.a'
16459
 
      soname_spec='${libname}${release}${shared_ext}$major'
16460
 
    fi
16461
 
    shlibpath_var=LIBPATH
16462
 
  fi
16463
 
  ;;
16464
 
 
16465
 
amigaos*)
16466
 
  library_names_spec='$libname.ixlibrary $libname.a'
16467
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16468
 
  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'
16469
 
  ;;
16470
 
 
16471
 
beos*)
16472
 
  library_names_spec='${libname}${shared_ext}'
16473
 
  dynamic_linker="$host_os ld.so"
16474
 
  shlibpath_var=LIBRARY_PATH
16475
 
  ;;
16476
 
 
16477
 
bsdi[45]*)
16478
 
  version_type=linux
16479
 
  need_version=no
16480
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481
 
  soname_spec='${libname}${release}${shared_ext}$major'
16482
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16483
 
  shlibpath_var=LD_LIBRARY_PATH
16484
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16485
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16486
 
  # the default ld.so.conf also contains /usr/contrib/lib and
16487
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16488
 
  # libtool to hard-code these into programs
16489
 
  ;;
16490
 
 
16491
 
cygwin* | mingw* | pw32*)
16492
 
  version_type=windows
16493
 
  shrext_cmds=".dll"
16494
 
  need_version=no
16495
 
  need_lib_prefix=no
16496
 
 
16497
 
  case $GCC,$host_os in
16498
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
16499
 
    library_names_spec='$libname.dll.a'
16500
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16501
 
    postinstall_cmds='base_file=`basename \${file}`~
16502
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16503
 
      dldir=$destdir/`dirname \$dlpath`~
16504
 
      test -d \$dldir || mkdir -p \$dldir~
16505
 
      $install_prog $dir/$dlname \$dldir/$dlname~
16506
 
      chmod a+x \$dldir/$dlname'
16507
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16508
 
      dlpath=$dir/\$dldll~
16509
 
       $rm \$dlpath'
16510
 
    shlibpath_overrides_runpath=yes
16511
 
 
16512
 
    case $host_os in
16513
 
    cygwin*)
16514
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16515
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16516
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16517
 
      ;;
16518
 
    mingw*)
16519
 
      # MinGW DLLs use traditional 'lib' prefix
16520
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16521
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16522
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16523
 
        # It is most probably a Windows format PATH printed by
16524
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16525
 
        # path with ; separators, and with drive letters. We can handle the
16526
 
        # drive letters (cygwin fileutils understands them), so leave them,
16527
 
        # especially as we might pass files found there to a mingw objdump,
16528
 
        # which wouldn't understand a cygwinified path. Ahh.
16529
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16530
 
      else
16531
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16532
 
      fi
16533
 
      ;;
16534
 
    pw32*)
16535
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16536
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16537
 
      ;;
16538
 
    esac
16539
 
    ;;
16540
 
 
16541
 
  *)
16542
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16543
 
    ;;
16544
 
  esac
16545
 
  dynamic_linker='Win32 ld.exe'
16546
 
  # FIXME: first we should search . and the directory the executable is in
16547
 
  shlibpath_var=PATH
16548
 
  ;;
16549
 
 
16550
 
darwin* | rhapsody*)
16551
 
  dynamic_linker="$host_os dyld"
16552
 
  version_type=darwin
16553
 
  need_lib_prefix=no
16554
 
  need_version=no
16555
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16556
 
  soname_spec='${libname}${release}${major}$shared_ext'
16557
 
  shlibpath_overrides_runpath=yes
16558
 
  shlibpath_var=DYLD_LIBRARY_PATH
16559
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16560
 
 
16561
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16562
 
  ;;
16563
 
 
16564
 
dgux*)
16565
 
  version_type=linux
16566
 
  need_lib_prefix=no
16567
 
  need_version=no
16568
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16569
 
  soname_spec='${libname}${release}${shared_ext}$major'
16570
 
  shlibpath_var=LD_LIBRARY_PATH
16571
 
  ;;
16572
 
 
16573
 
freebsd1*)
16574
 
  dynamic_linker=no
16575
 
  ;;
16576
 
 
16577
 
freebsd* | dragonfly*)
16578
 
  # DragonFly does not have aout.  When/if they implement a new
16579
 
  # versioning mechanism, adjust this.
16580
 
  if test -x /usr/bin/objformat; then
16581
 
    objformat=`/usr/bin/objformat`
16582
 
  else
16583
 
    case $host_os in
16584
 
    freebsd[123]*) objformat=aout ;;
16585
 
    *) objformat=elf ;;
16586
 
    esac
16587
 
  fi
16588
 
  version_type=freebsd-$objformat
16589
 
  case $version_type in
16590
 
    freebsd-elf*)
16591
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16592
 
      need_version=no
16593
 
      need_lib_prefix=no
16594
 
      ;;
16595
 
    freebsd-*)
16596
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16597
 
      need_version=yes
16598
 
      ;;
16599
 
  esac
16600
 
  shlibpath_var=LD_LIBRARY_PATH
16601
 
  case $host_os in
16602
 
  freebsd2*)
16603
 
    shlibpath_overrides_runpath=yes
16604
 
    ;;
16605
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16606
 
    shlibpath_overrides_runpath=yes
16607
 
    hardcode_into_libs=yes
16608
 
    ;;
16609
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16610
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16611
 
    shlibpath_overrides_runpath=no
16612
 
    hardcode_into_libs=yes
16613
 
    ;;
16614
 
  *) # from 4.6 on, and DragonFly
16615
 
    shlibpath_overrides_runpath=yes
16616
 
    hardcode_into_libs=yes
16617
 
    ;;
16618
 
  esac
16619
 
  ;;
16620
 
 
16621
 
gnu*)
16622
 
  version_type=linux
16623
 
  need_lib_prefix=no
16624
 
  need_version=no
16625
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16626
 
  soname_spec='${libname}${release}${shared_ext}$major'
16627
 
  shlibpath_var=LD_LIBRARY_PATH
16628
 
  hardcode_into_libs=yes
16629
 
  ;;
16630
 
 
16631
 
hpux9* | hpux10* | hpux11*)
16632
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16633
 
  # link against other versions.
16634
 
  version_type=sunos
16635
 
  need_lib_prefix=no
16636
 
  need_version=no
16637
 
  case $host_cpu in
16638
 
  ia64*)
16639
 
    shrext_cmds='.so'
16640
 
    hardcode_into_libs=yes
16641
 
    dynamic_linker="$host_os dld.so"
16642
 
    shlibpath_var=LD_LIBRARY_PATH
16643
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16644
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16645
 
    soname_spec='${libname}${release}${shared_ext}$major'
16646
 
    if test "X$HPUX_IA64_MODE" = X32; then
16647
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16648
 
    else
16649
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16650
 
    fi
16651
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16652
 
    ;;
16653
 
   hppa*64*)
16654
 
     shrext_cmds='.sl'
16655
 
     hardcode_into_libs=yes
16656
 
     dynamic_linker="$host_os dld.sl"
16657
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16658
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16659
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660
 
     soname_spec='${libname}${release}${shared_ext}$major'
16661
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16662
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16663
 
     ;;
16664
 
   *)
16665
 
    shrext_cmds='.sl'
16666
 
    dynamic_linker="$host_os dld.sl"
16667
 
    shlibpath_var=SHLIB_PATH
16668
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16669
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670
 
    soname_spec='${libname}${release}${shared_ext}$major'
16671
 
    ;;
16672
 
  esac
16673
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16674
 
  postinstall_cmds='chmod 555 $lib'
16675
 
  ;;
16676
 
 
16677
 
interix[3-9]*)
16678
 
  version_type=linux
16679
 
  need_lib_prefix=no
16680
 
  need_version=no
16681
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16682
 
  soname_spec='${libname}${release}${shared_ext}$major'
16683
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16684
 
  shlibpath_var=LD_LIBRARY_PATH
16685
 
  shlibpath_overrides_runpath=no
16686
 
  hardcode_into_libs=yes
16687
 
  ;;
16688
 
 
16689
 
irix5* | irix6* | nonstopux*)
16690
 
  case $host_os in
16691
 
    nonstopux*) version_type=nonstopux ;;
16692
 
    *)
16693
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16694
 
                version_type=linux
16695
 
        else
16696
 
                version_type=irix
16697
 
        fi ;;
16698
 
  esac
16699
 
  need_lib_prefix=no
16700
 
  need_version=no
16701
 
  soname_spec='${libname}${release}${shared_ext}$major'
16702
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16703
 
  case $host_os in
16704
 
  irix5* | nonstopux*)
16705
 
    libsuff= shlibsuff=
16706
 
    ;;
16707
 
  *)
16708
 
    case $LD in # libtool.m4 will add one of these switches to LD
16709
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710
 
      libsuff= shlibsuff= libmagic=32-bit;;
16711
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16713
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16716
 
    esac
16717
 
    ;;
16718
 
  esac
16719
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720
 
  shlibpath_overrides_runpath=no
16721
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723
 
  hardcode_into_libs=yes
16724
 
  ;;
16725
 
 
16726
 
# No shared lib support for Linux oldld, aout, or coff.
16727
 
linux*oldld* | linux*aout* | linux*coff*)
16728
 
  dynamic_linker=no
16729
 
  ;;
16730
 
 
16731
 
# This must be Linux ELF.
16732
 
linux* | k*bsd*-gnu)
16733
 
  version_type=linux
16734
 
  need_lib_prefix=no
16735
 
  need_version=no
16736
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737
 
  soname_spec='${libname}${release}${shared_ext}$major'
16738
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739
 
  shlibpath_var=LD_LIBRARY_PATH
16740
 
  shlibpath_overrides_runpath=no
16741
 
  # This implies no fast_install, which is unacceptable.
16742
 
  # Some rework will be needed to allow for fast_install
16743
 
  # before this can be enabled.
16744
 
  hardcode_into_libs=yes
16745
 
 
16746
 
  # Append ld.so.conf contents to the search path
16747
 
  if test -f /etc/ld.so.conf; then
16748
 
    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' ' '`
16749
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16750
 
  fi
16751
 
 
16752
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16753
 
  # powerpc, because MkLinux only supported shared libraries with the
16754
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16755
 
  # most powerpc-linux boxes support dynamic linking these days and
16756
 
  # people can always --disable-shared, the test was removed, and we
16757
 
  # assume the GNU/Linux dynamic linker is in use.
16758
 
  dynamic_linker='GNU/Linux ld.so'
16759
 
  ;;
16760
 
 
16761
 
netbsdelf*-gnu)
16762
 
  version_type=linux
16763
 
  need_lib_prefix=no
16764
 
  need_version=no
16765
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766
 
  soname_spec='${libname}${release}${shared_ext}$major'
16767
 
  shlibpath_var=LD_LIBRARY_PATH
16768
 
  shlibpath_overrides_runpath=no
16769
 
  hardcode_into_libs=yes
16770
 
  dynamic_linker='NetBSD ld.elf_so'
16771
 
  ;;
16772
 
 
16773
 
netbsd*)
16774
 
  version_type=sunos
16775
 
  need_lib_prefix=no
16776
 
  need_version=no
16777
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16778
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780
 
    dynamic_linker='NetBSD (a.out) ld.so'
16781
 
  else
16782
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16783
 
    soname_spec='${libname}${release}${shared_ext}$major'
16784
 
    dynamic_linker='NetBSD ld.elf_so'
16785
 
  fi
16786
 
  shlibpath_var=LD_LIBRARY_PATH
16787
 
  shlibpath_overrides_runpath=yes
16788
 
  hardcode_into_libs=yes
16789
 
  ;;
16790
 
 
16791
 
newsos6)
16792
 
  version_type=linux
16793
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16794
 
  shlibpath_var=LD_LIBRARY_PATH
16795
 
  shlibpath_overrides_runpath=yes
16796
 
  ;;
16797
 
 
16798
 
nto-qnx*)
16799
 
  version_type=linux
16800
 
  need_lib_prefix=no
16801
 
  need_version=no
16802
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803
 
  soname_spec='${libname}${release}${shared_ext}$major'
16804
 
  shlibpath_var=LD_LIBRARY_PATH
16805
 
  shlibpath_overrides_runpath=yes
16806
 
  ;;
16807
 
 
16808
 
openbsd*)
16809
 
  version_type=sunos
16810
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16811
 
  need_lib_prefix=no
16812
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16813
 
  case $host_os in
16814
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16815
 
    *)                         need_version=no  ;;
16816
 
  esac
16817
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16818
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16819
 
  shlibpath_var=LD_LIBRARY_PATH
16820
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16821
 
    case $host_os in
16822
 
      openbsd2.[89] | openbsd2.[89].*)
16823
 
        shlibpath_overrides_runpath=no
16824
 
        ;;
16825
 
      *)
16826
 
        shlibpath_overrides_runpath=yes
16827
 
        ;;
16828
 
      esac
16829
 
  else
16830
 
    shlibpath_overrides_runpath=yes
16831
 
  fi
16832
 
  ;;
16833
 
 
16834
 
os2*)
16835
 
  libname_spec='$name'
16836
 
  shrext_cmds=".dll"
16837
 
  need_lib_prefix=no
16838
 
  library_names_spec='$libname${shared_ext} $libname.a'
16839
 
  dynamic_linker='OS/2 ld.exe'
16840
 
  shlibpath_var=LIBPATH
16841
 
  ;;
16842
 
 
16843
 
osf3* | osf4* | osf5*)
16844
 
  version_type=osf
16845
 
  need_lib_prefix=no
16846
 
  need_version=no
16847
 
  soname_spec='${libname}${release}${shared_ext}$major'
16848
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16849
 
  shlibpath_var=LD_LIBRARY_PATH
16850
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16851
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16852
 
  ;;
16853
 
 
16854
 
rdos*)
16855
 
  dynamic_linker=no
16856
 
  ;;
16857
 
 
16858
 
solaris*)
16859
 
  version_type=linux
16860
 
  need_lib_prefix=no
16861
 
  need_version=no
16862
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863
 
  soname_spec='${libname}${release}${shared_ext}$major'
16864
 
  shlibpath_var=LD_LIBRARY_PATH
16865
 
  shlibpath_overrides_runpath=yes
16866
 
  hardcode_into_libs=yes
16867
 
  # ldd complains unless libraries are executable
16868
 
  postinstall_cmds='chmod +x $lib'
16869
 
  ;;
16870
 
 
16871
 
sunos4*)
16872
 
  version_type=sunos
16873
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16874
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16875
 
  shlibpath_var=LD_LIBRARY_PATH
16876
 
  shlibpath_overrides_runpath=yes
16877
 
  if test "$with_gnu_ld" = yes; then
16878
 
    need_lib_prefix=no
16879
 
  fi
16880
 
  need_version=yes
16881
 
  ;;
16882
 
 
16883
 
sysv4 | sysv4.3*)
16884
 
  version_type=linux
16885
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886
 
  soname_spec='${libname}${release}${shared_ext}$major'
16887
 
  shlibpath_var=LD_LIBRARY_PATH
16888
 
  case $host_vendor in
16889
 
    sni)
16890
 
      shlibpath_overrides_runpath=no
16891
 
      need_lib_prefix=no
16892
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16893
 
      runpath_var=LD_RUN_PATH
16894
 
      ;;
16895
 
    siemens)
16896
 
      need_lib_prefix=no
16897
 
      ;;
16898
 
    motorola)
16899
 
      need_lib_prefix=no
16900
 
      need_version=no
16901
 
      shlibpath_overrides_runpath=no
16902
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16903
 
      ;;
16904
 
  esac
16905
 
  ;;
16906
 
 
16907
 
sysv4*MP*)
16908
 
  if test -d /usr/nec ;then
16909
 
    version_type=linux
16910
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16911
 
    soname_spec='$libname${shared_ext}.$major'
16912
 
    shlibpath_var=LD_LIBRARY_PATH
16913
 
  fi
16914
 
  ;;
16915
 
 
16916
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16917
 
  version_type=freebsd-elf
16918
 
  need_lib_prefix=no
16919
 
  need_version=no
16920
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16921
 
  soname_spec='${libname}${release}${shared_ext}$major'
16922
 
  shlibpath_var=LD_LIBRARY_PATH
16923
 
  hardcode_into_libs=yes
16924
 
  if test "$with_gnu_ld" = yes; then
16925
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16926
 
    shlibpath_overrides_runpath=no
16927
 
  else
16928
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16929
 
    shlibpath_overrides_runpath=yes
16930
 
    case $host_os in
16931
 
      sco3.2v5*)
16932
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16933
 
        ;;
16934
 
    esac
16935
 
  fi
16936
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16937
 
  ;;
16938
 
 
16939
 
uts4*)
16940
 
  version_type=linux
16941
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942
 
  soname_spec='${libname}${release}${shared_ext}$major'
16943
 
  shlibpath_var=LD_LIBRARY_PATH
16944
 
  ;;
16945
 
 
16946
 
*)
16947
 
  dynamic_linker=no
16948
 
  ;;
16949
 
esac
16950
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16951
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16952
 
test "$dynamic_linker" = no && can_build_shared=no
16953
 
 
16954
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16956
 
else
16957
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16958
 
fi
16959
 
 
16960
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16961
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16962
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16963
 
else
16964
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16965
 
fi
16966
 
 
16967
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16968
 
 
16969
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16970
 
if test "$GCC" = yes; then
16971
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16972
 
fi
16973
 
 
16974
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16975
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16976
 
hardcode_action_F77=
16977
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16978
 
   test -n "$runpath_var_F77" || \
16979
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16980
 
 
16981
 
  # We can hardcode non-existant directories.
16982
 
  if test "$hardcode_direct_F77" != no &&
16983
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16984
 
     # have to relink, otherwise we might link with an installed library
16985
 
     # when we should be linking with a yet-to-be-installed one
16986
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16987
 
     test "$hardcode_minus_L_F77" != no; then
16988
 
    # Linking always hardcodes the temporary library directory.
16989
 
    hardcode_action_F77=relink
16990
 
  else
16991
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16992
 
    hardcode_action_F77=immediate
16993
 
  fi
16994
 
else
16995
 
  # We cannot hardcode anything, or else we can only hardcode existing
16996
 
  # directories.
16997
 
  hardcode_action_F77=unsupported
16998
 
fi
16999
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17000
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17001
 
 
17002
 
if test "$hardcode_action_F77" = relink; then
17003
 
  # Fast installation is not supported
17004
 
  enable_fast_install=no
17005
 
elif test "$shlibpath_overrides_runpath" = yes ||
17006
 
     test "$enable_shared" = no; then
17007
 
  # Fast installation is not necessary
17008
 
  enable_fast_install=needless
17009
 
fi
17010
 
 
17011
 
 
17012
 
# The else clause should only fire when bootstrapping the
17013
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
17014
 
# with your package, and you will get complaints that there are
17015
 
# no rules to generate ltmain.sh.
17016
 
if test -f "$ltmain"; then
17017
 
  # See if we are running on zsh, and set the options which allow our commands through
17018
 
  # without removal of \ escapes.
17019
 
  if test -n "${ZSH_VERSION+set}" ; then
17020
 
    setopt NO_GLOB_SUBST
17021
 
  fi
17022
 
  # Now quote all the things that may contain metacharacters while being
17023
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17024
 
  # variables and quote the copies for generation of the libtool script.
17025
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17026
 
    SED SHELL STRIP \
17027
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17028
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17029
 
    deplibs_check_method reload_flag reload_cmds need_locks \
17030
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17031
 
    lt_cv_sys_global_symbol_to_c_name_address \
17032
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17033
 
    old_postinstall_cmds old_postuninstall_cmds \
17034
 
    compiler_F77 \
17035
 
    CC_F77 \
17036
 
    LD_F77 \
17037
 
    lt_prog_compiler_wl_F77 \
17038
 
    lt_prog_compiler_pic_F77 \
17039
 
    lt_prog_compiler_static_F77 \
17040
 
    lt_prog_compiler_no_builtin_flag_F77 \
17041
 
    export_dynamic_flag_spec_F77 \
17042
 
    thread_safe_flag_spec_F77 \
17043
 
    whole_archive_flag_spec_F77 \
17044
 
    enable_shared_with_static_runtimes_F77 \
17045
 
    old_archive_cmds_F77 \
17046
 
    old_archive_from_new_cmds_F77 \
17047
 
    predep_objects_F77 \
17048
 
    postdep_objects_F77 \
17049
 
    predeps_F77 \
17050
 
    postdeps_F77 \
17051
 
    compiler_lib_search_path_F77 \
17052
 
    compiler_lib_search_dirs_F77 \
17053
 
    archive_cmds_F77 \
17054
 
    archive_expsym_cmds_F77 \
17055
 
    postinstall_cmds_F77 \
17056
 
    postuninstall_cmds_F77 \
17057
 
    old_archive_from_expsyms_cmds_F77 \
17058
 
    allow_undefined_flag_F77 \
17059
 
    no_undefined_flag_F77 \
17060
 
    export_symbols_cmds_F77 \
17061
 
    hardcode_libdir_flag_spec_F77 \
17062
 
    hardcode_libdir_flag_spec_ld_F77 \
17063
 
    hardcode_libdir_separator_F77 \
17064
 
    hardcode_automatic_F77 \
17065
 
    module_cmds_F77 \
17066
 
    module_expsym_cmds_F77 \
17067
 
    lt_cv_prog_compiler_c_o_F77 \
17068
 
    fix_srcfile_path_F77 \
17069
 
    exclude_expsyms_F77 \
17070
 
    include_expsyms_F77; do
17071
 
 
17072
 
    case $var in
17073
 
    old_archive_cmds_F77 | \
17074
 
    old_archive_from_new_cmds_F77 | \
17075
 
    archive_cmds_F77 | \
17076
 
    archive_expsym_cmds_F77 | \
17077
 
    module_cmds_F77 | \
17078
 
    module_expsym_cmds_F77 | \
17079
 
    old_archive_from_expsyms_cmds_F77 | \
17080
 
    export_symbols_cmds_F77 | \
17081
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17082
 
    postinstall_cmds | postuninstall_cmds | \
17083
 
    old_postinstall_cmds | old_postuninstall_cmds | \
17084
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17085
 
      # Double-quote double-evaled strings.
17086
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17087
 
      ;;
17088
 
    *)
17089
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17090
 
      ;;
17091
 
    esac
17092
 
  done
17093
 
 
17094
 
  case $lt_echo in
17095
 
  *'\$0 --fallback-echo"')
17096
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17097
 
    ;;
17098
 
  esac
17099
 
 
17100
 
cfgfile="$ofile"
17101
 
 
17102
 
  cat <<__EOF__ >> "$cfgfile"
17103
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17104
 
 
17105
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17106
 
 
17107
 
# Shell to use when invoking shell scripts.
17108
 
SHELL=$lt_SHELL
17109
 
 
17110
 
# Whether or not to build shared libraries.
17111
 
build_libtool_libs=$enable_shared
17112
 
 
17113
 
# Whether or not to build static libraries.
17114
 
build_old_libs=$enable_static
17115
 
 
17116
 
# Whether or not to add -lc for building shared libraries.
17117
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
17118
 
 
17119
 
# Whether or not to disallow shared libs when runtime libs are static
17120
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17121
 
 
17122
 
# Whether or not to optimize for fast installation.
17123
 
fast_install=$enable_fast_install
17124
 
 
17125
 
# The host system.
17126
 
host_alias=$host_alias
17127
 
host=$host
17128
 
host_os=$host_os
17129
 
 
17130
 
# The build system.
17131
 
build_alias=$build_alias
17132
 
build=$build
17133
 
build_os=$build_os
17134
 
 
17135
 
# An echo program that does not interpret backslashes.
17136
 
echo=$lt_echo
17137
 
 
17138
 
# The archiver.
17139
 
AR=$lt_AR
17140
 
AR_FLAGS=$lt_AR_FLAGS
17141
 
 
17142
 
# A C compiler.
17143
 
LTCC=$lt_LTCC
17144
 
 
17145
 
# LTCC compiler flags.
17146
 
LTCFLAGS=$lt_LTCFLAGS
17147
 
 
17148
 
# A language-specific compiler.
17149
 
CC=$lt_compiler_F77
17150
 
 
17151
 
# Is the compiler the GNU C compiler?
17152
 
with_gcc=$GCC_F77
17153
 
 
17154
 
# An ERE matcher.
17155
 
EGREP=$lt_EGREP
17156
 
 
17157
 
# The linker used to build libraries.
17158
 
LD=$lt_LD_F77
17159
 
 
17160
 
# Whether we need hard or soft links.
17161
 
LN_S=$lt_LN_S
17162
 
 
17163
 
# A BSD-compatible nm program.
17164
 
NM=$lt_NM
17165
 
 
17166
 
# A symbol stripping program
17167
 
STRIP=$lt_STRIP
17168
 
 
17169
 
# Used to examine libraries when file_magic_cmd begins "file"
17170
 
MAGIC_CMD=$MAGIC_CMD
17171
 
 
17172
 
# Used on cygwin: DLL creation program.
17173
 
DLLTOOL="$DLLTOOL"
17174
 
 
17175
 
# Used on cygwin: object dumper.
17176
 
OBJDUMP="$OBJDUMP"
17177
 
 
17178
 
# Used on cygwin: assembler.
17179
 
AS="$AS"
17180
 
 
17181
 
# The name of the directory that contains temporary libtool files.
17182
 
objdir=$objdir
17183
 
 
17184
 
# How to create reloadable object files.
17185
 
reload_flag=$lt_reload_flag
17186
 
reload_cmds=$lt_reload_cmds
17187
 
 
17188
 
# How to pass a linker flag through the compiler.
17189
 
wl=$lt_lt_prog_compiler_wl_F77
17190
 
 
17191
 
# Object file suffix (normally "o").
17192
 
objext="$ac_objext"
17193
 
 
17194
 
# Old archive suffix (normally "a").
17195
 
libext="$libext"
17196
 
 
17197
 
# Shared library suffix (normally ".so").
17198
 
shrext_cmds='$shrext_cmds'
17199
 
 
17200
 
# Executable file suffix (normally "").
17201
 
exeext="$exeext"
17202
 
 
17203
 
# Additional compiler flags for building library objects.
17204
 
pic_flag=$lt_lt_prog_compiler_pic_F77
17205
 
pic_mode=$pic_mode
17206
 
 
17207
 
# What is the maximum length of a command?
17208
 
max_cmd_len=$lt_cv_sys_max_cmd_len
17209
 
 
17210
 
# Does compiler simultaneously support -c and -o options?
17211
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17212
 
 
17213
 
# Must we lock files when doing compilation?
17214
 
need_locks=$lt_need_locks
17215
 
 
17216
 
# Do we need the lib prefix for modules?
17217
 
need_lib_prefix=$need_lib_prefix
17218
 
 
17219
 
# Do we need a version for libraries?
17220
 
need_version=$need_version
17221
 
 
17222
 
# Whether dlopen is supported.
17223
 
dlopen_support=$enable_dlopen
17224
 
 
17225
 
# Whether dlopen of programs is supported.
17226
 
dlopen_self=$enable_dlopen_self
17227
 
 
17228
 
# Whether dlopen of statically linked programs is supported.
17229
 
dlopen_self_static=$enable_dlopen_self_static
17230
 
 
17231
 
# Compiler flag to prevent dynamic linking.
17232
 
link_static_flag=$lt_lt_prog_compiler_static_F77
17233
 
 
17234
 
# Compiler flag to turn off builtin functions.
17235
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17236
 
 
17237
 
# Compiler flag to allow reflexive dlopens.
17238
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17239
 
 
17240
 
# Compiler flag to generate shared objects directly from archives.
17241
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17242
 
 
17243
 
# Compiler flag to generate thread-safe objects.
17244
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17245
 
 
17246
 
# Library versioning type.
17247
 
version_type=$version_type
17248
 
 
17249
 
# Format of library name prefix.
17250
 
libname_spec=$lt_libname_spec
17251
 
 
17252
 
# List of archive names.  First name is the real one, the rest are links.
17253
 
# The last name is the one that the linker finds with -lNAME.
17254
 
library_names_spec=$lt_library_names_spec
17255
 
 
17256
 
# The coded name of the library, if different from the real name.
17257
 
soname_spec=$lt_soname_spec
17258
 
 
17259
 
# Commands used to build and install an old-style archive.
17260
 
RANLIB=$lt_RANLIB
17261
 
old_archive_cmds=$lt_old_archive_cmds_F77
17262
 
old_postinstall_cmds=$lt_old_postinstall_cmds
17263
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17264
 
 
17265
 
# Create an old-style archive from a shared archive.
17266
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17267
 
 
17268
 
# Create a temporary old-style archive to link instead of a shared archive.
17269
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17270
 
 
17271
 
# Commands used to build and install a shared archive.
17272
 
archive_cmds=$lt_archive_cmds_F77
17273
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17274
 
postinstall_cmds=$lt_postinstall_cmds
17275
 
postuninstall_cmds=$lt_postuninstall_cmds
17276
 
 
17277
 
# Commands used to build a loadable module (assumed same as above if empty)
17278
 
module_cmds=$lt_module_cmds_F77
17279
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
17280
 
 
17281
 
# Commands to strip libraries.
17282
 
old_striplib=$lt_old_striplib
17283
 
striplib=$lt_striplib
17284
 
 
17285
 
# Dependencies to place before the objects being linked to create a
17286
 
# shared library.
17287
 
predep_objects=$lt_predep_objects_F77
17288
 
 
17289
 
# Dependencies to place after the objects being linked to create a
17290
 
# shared library.
17291
 
postdep_objects=$lt_postdep_objects_F77
17292
 
 
17293
 
# Dependencies to place before the objects being linked to create a
17294
 
# shared library.
17295
 
predeps=$lt_predeps_F77
17296
 
 
17297
 
# Dependencies to place after the objects being linked to create a
17298
 
# shared library.
17299
 
postdeps=$lt_postdeps_F77
17300
 
 
17301
 
# The directories searched by this compiler when creating a shared
17302
 
# library
17303
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17304
 
 
17305
 
# The library search path used internally by the compiler when linking
17306
 
# a shared library.
17307
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17308
 
 
17309
 
# Method to check whether dependent libraries are shared objects.
17310
 
deplibs_check_method=$lt_deplibs_check_method
17311
 
 
17312
 
# Command to use when deplibs_check_method == file_magic.
17313
 
file_magic_cmd=$lt_file_magic_cmd
17314
 
 
17315
 
# Flag that allows shared libraries with undefined symbols to be built.
17316
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
17317
 
 
17318
 
# Flag that forces no undefined symbols.
17319
 
no_undefined_flag=$lt_no_undefined_flag_F77
17320
 
 
17321
 
# Commands used to finish a libtool library installation in a directory.
17322
 
finish_cmds=$lt_finish_cmds
17323
 
 
17324
 
# Same as above, but a single script fragment to be evaled but not shown.
17325
 
finish_eval=$lt_finish_eval
17326
 
 
17327
 
# Take the output of nm and produce a listing of raw symbols and C names.
17328
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17329
 
 
17330
 
# Transform the output of nm in a proper C declaration
17331
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17332
 
 
17333
 
# Transform the output of nm in a C name address pair
17334
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17335
 
 
17336
 
# This is the shared library runtime path variable.
17337
 
runpath_var=$runpath_var
17338
 
 
17339
 
# This is the shared library path variable.
17340
 
shlibpath_var=$shlibpath_var
17341
 
 
17342
 
# Is shlibpath searched before the hard-coded library search path?
17343
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17344
 
 
17345
 
# How to hardcode a shared library path into an executable.
17346
 
hardcode_action=$hardcode_action_F77
17347
 
 
17348
 
# Whether we should hardcode library paths into libraries.
17349
 
hardcode_into_libs=$hardcode_into_libs
17350
 
 
17351
 
# Flag to hardcode \$libdir into a binary during linking.
17352
 
# This must work even if \$libdir does not exist.
17353
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17354
 
 
17355
 
# If ld is used when linking, flag to hardcode \$libdir into
17356
 
# a binary during linking. This must work even if \$libdir does
17357
 
# not exist.
17358
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17359
 
 
17360
 
# Whether we need a single -rpath flag with a separated argument.
17361
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17362
 
 
17363
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17364
 
# resulting binary.
17365
 
hardcode_direct=$hardcode_direct_F77
17366
 
 
17367
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17368
 
# resulting binary.
17369
 
hardcode_minus_L=$hardcode_minus_L_F77
17370
 
 
17371
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17372
 
# the resulting binary.
17373
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17374
 
 
17375
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
17376
 
# and all subsequent libraries and executables linked against it.
17377
 
hardcode_automatic=$hardcode_automatic_F77
17378
 
 
17379
 
# Variables whose values should be saved in libtool wrapper scripts and
17380
 
# restored at relink time.
17381
 
variables_saved_for_relink="$variables_saved_for_relink"
17382
 
 
17383
 
# Whether libtool must link a program against all its dependency libraries.
17384
 
link_all_deplibs=$link_all_deplibs_F77
17385
 
 
17386
 
# Compile-time system search path for libraries
17387
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17388
 
 
17389
 
# Run-time system search path for libraries
17390
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17391
 
 
17392
 
# Fix the shell variable \$srcfile for the compiler.
17393
 
fix_srcfile_path=$lt_fix_srcfile_path
17394
 
 
17395
 
# Set to yes if exported symbols are required.
17396
 
always_export_symbols=$always_export_symbols_F77
17397
 
 
17398
 
# The commands to list exported symbols.
17399
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
17400
 
 
17401
 
# The commands to extract the exported symbol list from a shared archive.
17402
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17403
 
 
17404
 
# Symbols that should not be listed in the preloaded symbols.
17405
 
exclude_expsyms=$lt_exclude_expsyms_F77
17406
 
 
17407
 
# Symbols that must always be exported.
17408
 
include_expsyms=$lt_include_expsyms_F77
17409
 
 
17410
 
# ### END LIBTOOL TAG CONFIG: $tagname
17411
 
 
17412
 
__EOF__
17413
 
 
17414
 
 
17415
 
else
17416
 
  # If there is no Makefile yet, we rely on a make rule to execute
17417
 
  # `config.status --recheck' to rerun these tests and create the
17418
 
  # libtool script then.
17419
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17420
 
  if test -f "$ltmain_in"; then
17421
 
    test -f Makefile && make "$ltmain"
17422
 
  fi
17423
 
fi
17424
 
 
17425
 
 
17426
 
ac_ext=c
17427
 
ac_cpp='$CPP $CPPFLAGS'
17428
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431
 
 
17432
 
CC="$lt_save_CC"
17433
 
 
17434
 
        else
17435
 
          tagname=""
17436
 
        fi
17437
 
        ;;
17438
 
 
17439
 
      GCJ)
17440
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17441
 
 
17442
 
 
17443
 
# Source file extension for Java test sources.
17444
 
ac_ext=java
17445
 
 
17446
 
# Object file extension for compiled Java test sources.
17447
 
objext=o
17448
 
objext_GCJ=$objext
17449
 
 
17450
 
# Code to be used in simple compile tests
17451
 
lt_simple_compile_test_code="class foo {}"
17452
 
 
17453
 
# Code to be used in simple link tests
17454
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17455
 
 
17456
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17457
 
 
17458
 
# If no C compiler was specified, use CC.
17459
 
LTCC=${LTCC-"$CC"}
17460
 
 
17461
 
# If no C compiler flags were specified, use CFLAGS.
17462
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17463
 
 
17464
 
# Allow CC to be a program name with arguments.
17465
 
compiler=$CC
17466
 
 
17467
 
 
17468
 
# save warnings/boilerplate of simple test code
17469
 
ac_outfile=conftest.$ac_objext
17470
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17471
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17472
 
_lt_compiler_boilerplate=`cat conftest.err`
17473
 
$rm conftest*
17474
 
 
17475
 
ac_outfile=conftest.$ac_objext
17476
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17477
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17478
 
_lt_linker_boilerplate=`cat conftest.err`
17479
 
$rm -r conftest*
17480
 
 
17481
 
 
17482
 
# Allow CC to be a program name with arguments.
17483
 
lt_save_CC="$CC"
17484
 
CC=${GCJ-"gcj"}
17485
 
compiler=$CC
17486
 
compiler_GCJ=$CC
17487
 
for cc_temp in $compiler""; do
17488
 
  case $cc_temp in
17489
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17490
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17491
 
    \-*) ;;
17492
 
    *) break;;
17493
 
  esac
17494
 
done
17495
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17496
 
 
17497
 
 
17498
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17499
 
archive_cmds_need_lc_GCJ=no
17500
 
 
17501
 
old_archive_cmds_GCJ=$old_archive_cmds
17502
 
 
17503
 
 
17504
 
lt_prog_compiler_no_builtin_flag_GCJ=
17505
 
 
17506
 
if test "$GCC" = yes; then
17507
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17508
 
 
17509
 
 
17510
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17511
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17512
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17513
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17514
 
else
17515
 
  lt_cv_prog_compiler_rtti_exceptions=no
17516
 
  ac_outfile=conftest.$ac_objext
17517
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17518
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
17519
 
   # Insert the option either (1) after the last *FLAGS variable, or
17520
 
   # (2) before a word containing "conftest.", or (3) at the end.
17521
 
   # Note that $ac_compile itself does not contain backslashes and begins
17522
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17523
 
   # The option is referenced via a variable to avoid confusing sed.
17524
 
   lt_compile=`echo "$ac_compile" | $SED \
17525
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17526
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17527
 
   -e 's:$: $lt_compiler_flag:'`
17528
 
   (eval echo "\"\$as_me:17528: $lt_compile\"" >&5)
17529
 
   (eval "$lt_compile" 2>conftest.err)
17530
 
   ac_status=$?
17531
 
   cat conftest.err >&5
17532
 
   echo "$as_me:17532: \$? = $ac_status" >&5
17533
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17534
 
     # The compiler can only warn and ignore the option if not recognized
17535
 
     # So say no if there are warnings other than the usual output.
17536
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17537
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17538
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17539
 
       lt_cv_prog_compiler_rtti_exceptions=yes
17540
 
     fi
17541
 
   fi
17542
 
   $rm conftest*
17543
 
 
17544
 
fi
17545
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17546
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17547
 
 
17548
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17549
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17550
 
else
17551
 
    :
17552
 
fi
17553
 
 
17554
 
fi
17555
 
 
17556
 
lt_prog_compiler_wl_GCJ=
17557
 
lt_prog_compiler_pic_GCJ=
17558
 
lt_prog_compiler_static_GCJ=
17559
 
 
17560
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17561
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17562
 
 
17563
 
  if test "$GCC" = yes; then
17564
 
    lt_prog_compiler_wl_GCJ='-Wl,'
17565
 
    lt_prog_compiler_static_GCJ='-static'
17566
 
 
17567
 
    case $host_os in
17568
 
      aix*)
17569
 
      # All AIX code is PIC.
17570
 
      if test "$host_cpu" = ia64; then
17571
 
        # AIX 5 now supports IA64 processor
17572
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17573
 
      fi
17574
 
      ;;
17575
 
 
17576
 
    amigaos*)
17577
 
      # FIXME: we need at least 68020 code to build shared libraries, but
17578
 
      # adding the `-m68020' flag to GCC prevents building anything better,
17579
 
      # like `-m68040'.
17580
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17581
 
      ;;
17582
 
 
17583
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17584
 
      # PIC is the default for these OSes.
17585
 
      ;;
17586
 
 
17587
 
    mingw* | cygwin* | pw32* | os2*)
17588
 
      # This hack is so that the source file can tell whether it is being
17589
 
      # built for inclusion in a dll (and should export symbols for example).
17590
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17591
 
      # (--disable-auto-import) libraries
17592
 
 
17593
 
      ;;
17594
 
 
17595
 
    darwin* | rhapsody*)
17596
 
      # PIC is the default on this platform
17597
 
      # Common symbols not allowed in MH_DYLIB files
17598
 
      lt_prog_compiler_pic_GCJ='-fno-common'
17599
 
      ;;
17600
 
 
17601
 
    interix[3-9]*)
17602
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17603
 
      # Instead, we relocate shared libraries at runtime.
17604
 
      ;;
17605
 
 
17606
 
    msdosdjgpp*)
17607
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17608
 
      # on systems that don't support them.
17609
 
      lt_prog_compiler_can_build_shared_GCJ=no
17610
 
      enable_shared=no
17611
 
      ;;
17612
 
 
17613
 
    sysv4*MP*)
17614
 
      if test -d /usr/nec; then
17615
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
17616
 
      fi
17617
 
      ;;
17618
 
 
17619
 
    hpux*)
17620
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17621
 
      # not for PA HP-UX.
17622
 
      case $host_cpu in
17623
 
      hppa*64*|ia64*)
17624
 
        # +Z the default
17625
 
        ;;
17626
 
      *)
17627
 
        lt_prog_compiler_pic_GCJ='-fPIC'
17628
 
        ;;
17629
 
      esac
17630
 
      ;;
17631
 
 
17632
 
    *)
17633
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17634
 
      ;;
17635
 
    esac
17636
 
  else
17637
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17638
 
    case $host_os in
17639
 
    aix*)
17640
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17641
 
      if test "$host_cpu" = ia64; then
17642
 
        # AIX 5 now supports IA64 processor
17643
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17644
 
      else
17645
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17646
 
      fi
17647
 
      ;;
17648
 
      darwin*)
17649
 
        # PIC is the default on this platform
17650
 
        # Common symbols not allowed in MH_DYLIB files
17651
 
       case $cc_basename in
17652
 
         xlc*)
17653
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17654
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17655
 
         ;;
17656
 
       esac
17657
 
       ;;
17658
 
 
17659
 
    mingw* | cygwin* | pw32* | os2*)
17660
 
      # This hack is so that the source file can tell whether it is being
17661
 
      # built for inclusion in a dll (and should export symbols for example).
17662
 
 
17663
 
      ;;
17664
 
 
17665
 
    hpux9* | hpux10* | hpux11*)
17666
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17667
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17668
 
      # not for PA HP-UX.
17669
 
      case $host_cpu in
17670
 
      hppa*64*|ia64*)
17671
 
        # +Z the default
17672
 
        ;;
17673
 
      *)
17674
 
        lt_prog_compiler_pic_GCJ='+Z'
17675
 
        ;;
17676
 
      esac
17677
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17678
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17679
 
      ;;
17680
 
 
17681
 
    irix5* | irix6* | nonstopux*)
17682
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17683
 
      # PIC (with -KPIC) is the default.
17684
 
      lt_prog_compiler_static_GCJ='-non_shared'
17685
 
      ;;
17686
 
 
17687
 
    newsos6)
17688
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17689
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17690
 
      ;;
17691
 
 
17692
 
    linux* | k*bsd*-gnu)
17693
 
      case $cc_basename in
17694
 
      icc* | ecc*)
17695
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17696
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17697
 
        lt_prog_compiler_static_GCJ='-static'
17698
 
        ;;
17699
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17700
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17701
 
        # which looks to be a dead project)
17702
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17703
 
        lt_prog_compiler_pic_GCJ='-fpic'
17704
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17705
 
        ;;
17706
 
      ccc*)
17707
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17708
 
        # All Alpha code is PIC.
17709
 
        lt_prog_compiler_static_GCJ='-non_shared'
17710
 
        ;;
17711
 
      *)
17712
 
        case `$CC -V 2>&1 | sed 5q` in
17713
 
        *Sun\ C*)
17714
 
          # Sun C 5.9
17715
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17716
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17717
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17718
 
          ;;
17719
 
        *Sun\ F*)
17720
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17721
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17722
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17723
 
          lt_prog_compiler_wl_GCJ=''
17724
 
          ;;
17725
 
        esac
17726
 
        ;;
17727
 
      esac
17728
 
      ;;
17729
 
 
17730
 
    osf3* | osf4* | osf5*)
17731
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17732
 
      # All OSF/1 code is PIC.
17733
 
      lt_prog_compiler_static_GCJ='-non_shared'
17734
 
      ;;
17735
 
 
17736
 
    rdos*)
17737
 
      lt_prog_compiler_static_GCJ='-non_shared'
17738
 
      ;;
17739
 
 
17740
 
    solaris*)
17741
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17742
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17743
 
      case $cc_basename in
17744
 
      f77* | f90* | f95*)
17745
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17746
 
      *)
17747
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17748
 
      esac
17749
 
      ;;
17750
 
 
17751
 
    sunos4*)
17752
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17753
 
      lt_prog_compiler_pic_GCJ='-PIC'
17754
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17755
 
      ;;
17756
 
 
17757
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17758
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17759
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17760
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17761
 
      ;;
17762
 
 
17763
 
    sysv4*MP*)
17764
 
      if test -d /usr/nec ;then
17765
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17766
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17767
 
      fi
17768
 
      ;;
17769
 
 
17770
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17771
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17772
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17773
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17774
 
      ;;
17775
 
 
17776
 
    unicos*)
17777
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17778
 
      lt_prog_compiler_can_build_shared_GCJ=no
17779
 
      ;;
17780
 
 
17781
 
    uts4*)
17782
 
      lt_prog_compiler_pic_GCJ='-pic'
17783
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17784
 
      ;;
17785
 
 
17786
 
    *)
17787
 
      lt_prog_compiler_can_build_shared_GCJ=no
17788
 
      ;;
17789
 
    esac
17790
 
  fi
17791
 
 
17792
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17793
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17794
 
 
17795
 
#
17796
 
# Check to make sure the PIC flag actually works.
17797
 
#
17798
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17799
 
 
17800
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17801
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17802
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17804
 
else
17805
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17806
 
  ac_outfile=conftest.$ac_objext
17807
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17808
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17809
 
   # Insert the option either (1) after the last *FLAGS variable, or
17810
 
   # (2) before a word containing "conftest.", or (3) at the end.
17811
 
   # Note that $ac_compile itself does not contain backslashes and begins
17812
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17813
 
   # The option is referenced via a variable to avoid confusing sed.
17814
 
   lt_compile=`echo "$ac_compile" | $SED \
17815
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17816
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17817
 
   -e 's:$: $lt_compiler_flag:'`
17818
 
   (eval echo "\"\$as_me:17818: $lt_compile\"" >&5)
17819
 
   (eval "$lt_compile" 2>conftest.err)
17820
 
   ac_status=$?
17821
 
   cat conftest.err >&5
17822
 
   echo "$as_me:17822: \$? = $ac_status" >&5
17823
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17824
 
     # The compiler can only warn and ignore the option if not recognized
17825
 
     # So say no if there are warnings other than the usual output.
17826
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17827
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17828
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17829
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17830
 
     fi
17831
 
   fi
17832
 
   $rm conftest*
17833
 
 
17834
 
fi
17835
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17836
 
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17837
 
 
17838
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17839
 
    case $lt_prog_compiler_pic_GCJ in
17840
 
     "" | " "*) ;;
17841
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17842
 
     esac
17843
 
else
17844
 
    lt_prog_compiler_pic_GCJ=
17845
 
     lt_prog_compiler_can_build_shared_GCJ=no
17846
 
fi
17847
 
 
17848
 
fi
17849
 
case $host_os in
17850
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17851
 
  *djgpp*)
17852
 
    lt_prog_compiler_pic_GCJ=
17853
 
    ;;
17854
 
  *)
17855
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17856
 
    ;;
17857
 
esac
17858
 
 
17859
 
#
17860
 
# Check to make sure the static flag actually works.
17861
 
#
17862
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17863
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17864
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17865
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17866
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17867
 
else
17868
 
  lt_cv_prog_compiler_static_works_GCJ=no
17869
 
   save_LDFLAGS="$LDFLAGS"
17870
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17871
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17872
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17873
 
     # The linker can only warn and ignore the option if not recognized
17874
 
     # So say no if there are warnings
17875
 
     if test -s conftest.err; then
17876
 
       # Append any errors to the config.log.
17877
 
       cat conftest.err 1>&5
17878
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17879
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17880
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17881
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17882
 
       fi
17883
 
     else
17884
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17885
 
     fi
17886
 
   fi
17887
 
   $rm -r conftest*
17888
 
   LDFLAGS="$save_LDFLAGS"
17889
 
 
17890
 
fi
17891
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17892
 
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17893
 
 
17894
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17895
 
    :
17896
 
else
17897
 
    lt_prog_compiler_static_GCJ=
17898
 
fi
17899
 
 
17900
 
 
17901
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17902
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17903
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17904
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17905
 
else
17906
 
  lt_cv_prog_compiler_c_o_GCJ=no
17907
 
   $rm -r conftest 2>/dev/null
17908
 
   mkdir conftest
17909
 
   cd conftest
17910
 
   mkdir out
17911
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17912
 
 
17913
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17914
 
   # Insert the option either (1) after the last *FLAGS variable, or
17915
 
   # (2) before a word containing "conftest.", or (3) at the end.
17916
 
   # Note that $ac_compile itself does not contain backslashes and begins
17917
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17918
 
   lt_compile=`echo "$ac_compile" | $SED \
17919
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17920
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17921
 
   -e 's:$: $lt_compiler_flag:'`
17922
 
   (eval echo "\"\$as_me:17922: $lt_compile\"" >&5)
17923
 
   (eval "$lt_compile" 2>out/conftest.err)
17924
 
   ac_status=$?
17925
 
   cat out/conftest.err >&5
17926
 
   echo "$as_me:17926: \$? = $ac_status" >&5
17927
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17928
 
   then
17929
 
     # The compiler can only warn and ignore the option if not recognized
17930
 
     # So say no if there are warnings
17931
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17932
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17933
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17934
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17935
 
     fi
17936
 
   fi
17937
 
   chmod u+w . 2>&5
17938
 
   $rm conftest*
17939
 
   # SGI C++ compiler will create directory out/ii_files/ for
17940
 
   # template instantiation
17941
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17942
 
   $rm out/* && rmdir out
17943
 
   cd ..
17944
 
   rmdir conftest
17945
 
   $rm conftest*
17946
 
 
17947
 
fi
17948
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17949
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17950
 
 
17951
 
 
17952
 
hard_links="nottested"
17953
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17954
 
  # do not overwrite the value of need_locks provided by the user
17955
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17956
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17957
 
  hard_links=yes
17958
 
  $rm conftest*
17959
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17960
 
  touch conftest.a
17961
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17962
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17963
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17964
 
echo "${ECHO_T}$hard_links" >&6; }
17965
 
  if test "$hard_links" = no; then
17966
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17967
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17968
 
    need_locks=warn
17969
 
  fi
17970
 
else
17971
 
  need_locks=no
17972
 
fi
17973
 
 
17974
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17975
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17976
 
 
17977
 
  runpath_var=
17978
 
  allow_undefined_flag_GCJ=
17979
 
  enable_shared_with_static_runtimes_GCJ=no
17980
 
  archive_cmds_GCJ=
17981
 
  archive_expsym_cmds_GCJ=
17982
 
  old_archive_From_new_cmds_GCJ=
17983
 
  old_archive_from_expsyms_cmds_GCJ=
17984
 
  export_dynamic_flag_spec_GCJ=
17985
 
  whole_archive_flag_spec_GCJ=
17986
 
  thread_safe_flag_spec_GCJ=
17987
 
  hardcode_libdir_flag_spec_GCJ=
17988
 
  hardcode_libdir_flag_spec_ld_GCJ=
17989
 
  hardcode_libdir_separator_GCJ=
17990
 
  hardcode_direct_GCJ=no
17991
 
  hardcode_minus_L_GCJ=no
17992
 
  hardcode_shlibpath_var_GCJ=unsupported
17993
 
  link_all_deplibs_GCJ=unknown
17994
 
  hardcode_automatic_GCJ=no
17995
 
  module_cmds_GCJ=
17996
 
  module_expsym_cmds_GCJ=
17997
 
  always_export_symbols_GCJ=no
17998
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17999
 
  # include_expsyms should be a list of space-separated symbols to be *always*
18000
 
  # included in the symbol list
18001
 
  include_expsyms_GCJ=
18002
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
18003
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18004
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18005
 
  # as well as any symbol that contains `d'.
18006
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18007
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18008
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
18009
 
  # the symbol is explicitly referenced.  Since portable code cannot
18010
 
  # rely on this symbol name, it's probably fine to never include it in
18011
 
  # preloaded symbol tables.
18012
 
  # Exclude shared library initialization/finalization symbols.
18013
 
  extract_expsyms_cmds=
18014
 
  # Just being paranoid about ensuring that cc_basename is set.
18015
 
  for cc_temp in $compiler""; do
18016
 
  case $cc_temp in
18017
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18018
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18019
 
    \-*) ;;
18020
 
    *) break;;
18021
 
  esac
18022
 
done
18023
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18024
 
 
18025
 
  case $host_os in
18026
 
  cygwin* | mingw* | pw32*)
18027
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18028
 
    # When not using gcc, we currently assume that we are using
18029
 
    # Microsoft Visual C++.
18030
 
    if test "$GCC" != yes; then
18031
 
      with_gnu_ld=no
18032
 
    fi
18033
 
    ;;
18034
 
  interix*)
18035
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
18036
 
    with_gnu_ld=yes
18037
 
    ;;
18038
 
  openbsd*)
18039
 
    with_gnu_ld=no
18040
 
    ;;
18041
 
  esac
18042
 
 
18043
 
  ld_shlibs_GCJ=yes
18044
 
  if test "$with_gnu_ld" = yes; then
18045
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
18046
 
    wlarc='${wl}'
18047
 
 
18048
 
    # Set some defaults for GNU ld with shared library support. These
18049
 
    # are reset later if shared libraries are not supported. Putting them
18050
 
    # here allows them to be overridden if necessary.
18051
 
    runpath_var=LD_RUN_PATH
18052
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18053
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18054
 
    # ancient GNU ld didn't support --whole-archive et. al.
18055
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18056
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18057
 
      else
18058
 
        whole_archive_flag_spec_GCJ=
18059
 
    fi
18060
 
    supports_anon_versioning=no
18061
 
    case `$LD -v 2>/dev/null` in
18062
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18063
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18064
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18065
 
      *\ 2.11.*) ;; # other 2.11 versions
18066
 
      *) supports_anon_versioning=yes ;;
18067
 
    esac
18068
 
 
18069
 
    # See if GNU ld supports shared libraries.
18070
 
    case $host_os in
18071
 
    aix[3-9]*)
18072
 
      # On AIX/PPC, the GNU linker is very broken
18073
 
      if test "$host_cpu" != ia64; then
18074
 
        ld_shlibs_GCJ=no
18075
 
        cat <<EOF 1>&2
18076
 
 
18077
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18078
 
*** to be unable to reliably create shared libraries on AIX.
18079
 
*** Therefore, libtool is disabling shared libraries support.  If you
18080
 
*** really care for shared libraries, you may want to modify your PATH
18081
 
*** so that a non-GNU linker is found, and then restart.
18082
 
 
18083
 
EOF
18084
 
      fi
18085
 
      ;;
18086
 
 
18087
 
    amigaos*)
18088
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18089
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18090
 
      hardcode_minus_L_GCJ=yes
18091
 
 
18092
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18093
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
18094
 
      # to version 4, is to share data among multiple programs linked
18095
 
      # with the same dynamic library.  Since this doesn't match the
18096
 
      # behavior of shared libraries on other platforms, we can't use
18097
 
      # them.
18098
 
      ld_shlibs_GCJ=no
18099
 
      ;;
18100
 
 
18101
 
    beos*)
18102
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18103
 
        allow_undefined_flag_GCJ=unsupported
18104
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18105
 
        # support --undefined.  This deserves some investigation.  FIXME
18106
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18107
 
      else
18108
 
        ld_shlibs_GCJ=no
18109
 
      fi
18110
 
      ;;
18111
 
 
18112
 
    cygwin* | mingw* | pw32*)
18113
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18114
 
      # as there is no search path for DLLs.
18115
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18116
 
      allow_undefined_flag_GCJ=unsupported
18117
 
      always_export_symbols_GCJ=no
18118
 
      enable_shared_with_static_runtimes_GCJ=yes
18119
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18120
 
 
18121
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18122
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18123
 
        # If the export-symbols file already is a .def file (1st line
18124
 
        # is EXPORTS), use it as is; otherwise, prepend...
18125
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18126
 
          cp $export_symbols $output_objdir/$soname.def;
18127
 
        else
18128
 
          echo EXPORTS > $output_objdir/$soname.def;
18129
 
          cat $export_symbols >> $output_objdir/$soname.def;
18130
 
        fi~
18131
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18132
 
      else
18133
 
        ld_shlibs_GCJ=no
18134
 
      fi
18135
 
      ;;
18136
 
 
18137
 
    interix[3-9]*)
18138
 
      hardcode_direct_GCJ=no
18139
 
      hardcode_shlibpath_var_GCJ=no
18140
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18141
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18142
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18143
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
18144
 
      # default) and relocated if they conflict, which is a slow very memory
18145
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
18146
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18147
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18148
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18149
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18150
 
      ;;
18151
 
 
18152
 
    gnu* | linux* | k*bsd*-gnu)
18153
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18154
 
        tmp_addflag=
18155
 
        case $cc_basename,$host_cpu in
18156
 
        pgcc*)                          # Portland Group C compiler
18157
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18158
 
          tmp_addflag=' $pic_flag'
18159
 
          ;;
18160
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18161
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18162
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
18163
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18164
 
          tmp_addflag=' -i_dynamic' ;;
18165
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18166
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
18167
 
        ifc* | ifort*)                  # Intel Fortran compiler
18168
 
          tmp_addflag=' -nofor_main' ;;
18169
 
        esac
18170
 
        case `$CC -V 2>&1 | sed 5q` in
18171
 
        *Sun\ C*)                       # Sun C 5.9
18172
 
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18173
 
          tmp_sharedflag='-G' ;;
18174
 
        *Sun\ F*)                       # Sun Fortran 8.3
18175
 
          tmp_sharedflag='-G' ;;
18176
 
        *)
18177
 
          tmp_sharedflag='-shared' ;;
18178
 
        esac
18179
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18180
 
 
18181
 
        if test $supports_anon_versioning = yes; then
18182
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18183
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18184
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
18185
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18186
 
        fi
18187
 
        link_all_deplibs_GCJ=no
18188
 
      else
18189
 
        ld_shlibs_GCJ=no
18190
 
      fi
18191
 
      ;;
18192
 
 
18193
 
    netbsd* | netbsdelf*-gnu)
18194
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18195
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18196
 
        wlarc=
18197
 
      else
18198
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18200
 
      fi
18201
 
      ;;
18202
 
 
18203
 
    solaris*)
18204
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18205
 
        ld_shlibs_GCJ=no
18206
 
        cat <<EOF 1>&2
18207
 
 
18208
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18209
 
*** create shared libraries on Solaris systems.  Therefore, libtool
18210
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18211
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
18212
 
*** your PATH or compiler configuration so that the native linker is
18213
 
*** used, and then restart.
18214
 
 
18215
 
EOF
18216
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18217
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18218
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18219
 
      else
18220
 
        ld_shlibs_GCJ=no
18221
 
      fi
18222
 
      ;;
18223
 
 
18224
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18225
 
      case `$LD -v 2>&1` in
18226
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18227
 
        ld_shlibs_GCJ=no
18228
 
        cat <<_LT_EOF 1>&2
18229
 
 
18230
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18231
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
18232
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
18233
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18234
 
*** your PATH or compiler configuration so that the native linker is
18235
 
*** used, and then restart.
18236
 
 
18237
 
_LT_EOF
18238
 
        ;;
18239
 
        *)
18240
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18241
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18242
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18243
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18244
 
          else
18245
 
            ld_shlibs_GCJ=no
18246
 
          fi
18247
 
        ;;
18248
 
      esac
18249
 
      ;;
18250
 
 
18251
 
    sunos4*)
18252
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18253
 
      wlarc=
18254
 
      hardcode_direct_GCJ=yes
18255
 
      hardcode_shlibpath_var_GCJ=no
18256
 
      ;;
18257
 
 
18258
 
    *)
18259
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18260
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18261
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18262
 
      else
18263
 
        ld_shlibs_GCJ=no
18264
 
      fi
18265
 
      ;;
18266
 
    esac
18267
 
 
18268
 
    if test "$ld_shlibs_GCJ" = no; then
18269
 
      runpath_var=
18270
 
      hardcode_libdir_flag_spec_GCJ=
18271
 
      export_dynamic_flag_spec_GCJ=
18272
 
      whole_archive_flag_spec_GCJ=
18273
 
    fi
18274
 
  else
18275
 
    # PORTME fill in a description of your system's linker (not GNU ld)
18276
 
    case $host_os in
18277
 
    aix3*)
18278
 
      allow_undefined_flag_GCJ=unsupported
18279
 
      always_export_symbols_GCJ=yes
18280
 
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18281
 
      # Note: this linker hardcodes the directories in LIBPATH if there
18282
 
      # are no directories specified by -L.
18283
 
      hardcode_minus_L_GCJ=yes
18284
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18285
 
        # Neither direct hardcoding nor static linking is supported with a
18286
 
        # broken collect2.
18287
 
        hardcode_direct_GCJ=unsupported
18288
 
      fi
18289
 
      ;;
18290
 
 
18291
 
    aix[4-9]*)
18292
 
      if test "$host_cpu" = ia64; then
18293
 
        # On IA64, the linker does run time linking by default, so we don't
18294
 
        # have to do anything special.
18295
 
        aix_use_runtimelinking=no
18296
 
        exp_sym_flag='-Bexport'
18297
 
        no_entry_flag=""
18298
 
      else
18299
 
        # If we're using GNU nm, then we don't want the "-C" option.
18300
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
18301
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18302
 
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18303
 
        else
18304
 
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18305
 
        fi
18306
 
        aix_use_runtimelinking=no
18307
 
 
18308
 
        # Test if we are trying to use run time linking or normal
18309
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18310
 
        # need to do runtime linking.
18311
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18312
 
          for ld_flag in $LDFLAGS; do
18313
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18314
 
            aix_use_runtimelinking=yes
18315
 
            break
18316
 
          fi
18317
 
          done
18318
 
          ;;
18319
 
        esac
18320
 
 
18321
 
        exp_sym_flag='-bexport'
18322
 
        no_entry_flag='-bnoentry'
18323
 
      fi
18324
 
 
18325
 
      # When large executables or shared objects are built, AIX ld can
18326
 
      # have problems creating the table of contents.  If linking a library
18327
 
      # or program results in "error TOC overflow" add -mminimal-toc to
18328
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18329
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18330
 
 
18331
 
      archive_cmds_GCJ=''
18332
 
      hardcode_direct_GCJ=yes
18333
 
      hardcode_libdir_separator_GCJ=':'
18334
 
      link_all_deplibs_GCJ=yes
18335
 
 
18336
 
      if test "$GCC" = yes; then
18337
 
        case $host_os in aix4.[012]|aix4.[012].*)
18338
 
        # We only want to do this on AIX 4.2 and lower, the check
18339
 
        # below for broken collect2 doesn't work under 4.3+
18340
 
          collect2name=`${CC} -print-prog-name=collect2`
18341
 
          if test -f "$collect2name" && \
18342
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
18343
 
          then
18344
 
          # We have reworked collect2
18345
 
          :
18346
 
          else
18347
 
          # We have old collect2
18348
 
          hardcode_direct_GCJ=unsupported
18349
 
          # It fails to find uninstalled libraries when the uninstalled
18350
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
18351
 
          # to unsupported forces relinking
18352
 
          hardcode_minus_L_GCJ=yes
18353
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18354
 
          hardcode_libdir_separator_GCJ=
18355
 
          fi
18356
 
          ;;
18357
 
        esac
18358
 
        shared_flag='-shared'
18359
 
        if test "$aix_use_runtimelinking" = yes; then
18360
 
          shared_flag="$shared_flag "'${wl}-G'
18361
 
        fi
18362
 
      else
18363
 
        # not using gcc
18364
 
        if test "$host_cpu" = ia64; then
18365
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18366
 
        # chokes on -Wl,-G. The following line is correct:
18367
 
          shared_flag='-G'
18368
 
        else
18369
 
          if test "$aix_use_runtimelinking" = yes; then
18370
 
            shared_flag='${wl}-G'
18371
 
          else
18372
 
            shared_flag='${wl}-bM:SRE'
18373
 
          fi
18374
 
        fi
18375
 
      fi
18376
 
 
18377
 
      # It seems that -bexpall does not export symbols beginning with
18378
 
      # underscore (_), so it is better to generate a list of symbols to export.
18379
 
      always_export_symbols_GCJ=yes
18380
 
      if test "$aix_use_runtimelinking" = yes; then
18381
 
        # Warning - without using the other runtime loading flags (-brtl),
18382
 
        # -berok will link without error, but may produce a broken library.
18383
 
        allow_undefined_flag_GCJ='-berok'
18384
 
       # Determine the default libpath from the value encoded in an empty executable.
18385
 
       cat >conftest.$ac_ext <<_ACEOF
18386
 
/* confdefs.h.  */
18387
 
_ACEOF
18388
 
cat confdefs.h >>conftest.$ac_ext
18389
 
cat >>conftest.$ac_ext <<_ACEOF
18390
 
/* end confdefs.h.  */
18391
 
 
18392
 
int
18393
 
main ()
18394
 
{
18395
 
 
18396
 
  ;
18397
 
  return 0;
18398
 
}
18399
 
_ACEOF
18400
 
rm -f conftest.$ac_objext conftest$ac_exeext
18401
 
if { (ac_try="$ac_link"
18402
 
case "(($ac_try" in
18403
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404
 
  *) ac_try_echo=$ac_try;;
18405
 
esac
18406
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407
 
  (eval "$ac_link") 2>conftest.er1
18408
 
  ac_status=$?
18409
 
  grep -v '^ *+' conftest.er1 >conftest.err
18410
 
  rm -f conftest.er1
18411
 
  cat conftest.err >&5
18412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413
 
  (exit $ac_status); } && {
18414
 
         test -z "$ac_c_werror_flag" ||
18415
 
         test ! -s conftest.err
18416
 
       } && test -s conftest$ac_exeext &&
18417
 
       $as_test_x conftest$ac_exeext; then
18418
 
 
18419
 
lt_aix_libpath_sed='
18420
 
    /Import File Strings/,/^$/ {
18421
 
        /^0/ {
18422
 
            s/^0  *\(.*\)$/\1/
18423
 
            p
18424
 
        }
18425
 
    }'
18426
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18427
 
# Check for a 64-bit object if we didn't find anything.
18428
 
if test -z "$aix_libpath"; then
18429
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18430
 
fi
18431
 
else
18432
 
  echo "$as_me: failed program was:" >&5
18433
 
sed 's/^/| /' conftest.$ac_ext >&5
18434
 
 
18435
 
 
18436
 
fi
18437
 
 
18438
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18439
 
      conftest$ac_exeext conftest.$ac_ext
18440
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18441
 
 
18442
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18443
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18444
 
       else
18445
 
        if test "$host_cpu" = ia64; then
18446
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18447
 
          allow_undefined_flag_GCJ="-z nodefs"
18448
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18449
 
        else
18450
 
         # Determine the default libpath from the value encoded in an empty executable.
18451
 
         cat >conftest.$ac_ext <<_ACEOF
18452
 
/* confdefs.h.  */
18453
 
_ACEOF
18454
 
cat confdefs.h >>conftest.$ac_ext
18455
 
cat >>conftest.$ac_ext <<_ACEOF
18456
 
/* end confdefs.h.  */
18457
 
 
18458
 
int
18459
 
main ()
18460
 
{
18461
 
 
18462
 
  ;
18463
 
  return 0;
18464
 
}
18465
 
_ACEOF
18466
 
rm -f conftest.$ac_objext conftest$ac_exeext
18467
 
if { (ac_try="$ac_link"
18468
 
case "(($ac_try" in
18469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470
 
  *) ac_try_echo=$ac_try;;
18471
 
esac
18472
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473
 
  (eval "$ac_link") 2>conftest.er1
18474
 
  ac_status=$?
18475
 
  grep -v '^ *+' conftest.er1 >conftest.err
18476
 
  rm -f conftest.er1
18477
 
  cat conftest.err >&5
18478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479
 
  (exit $ac_status); } && {
18480
 
         test -z "$ac_c_werror_flag" ||
18481
 
         test ! -s conftest.err
18482
 
       } && test -s conftest$ac_exeext &&
18483
 
       $as_test_x conftest$ac_exeext; then
18484
 
 
18485
 
lt_aix_libpath_sed='
18486
 
    /Import File Strings/,/^$/ {
18487
 
        /^0/ {
18488
 
            s/^0  *\(.*\)$/\1/
18489
 
            p
18490
 
        }
18491
 
    }'
18492
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18493
 
# Check for a 64-bit object if we didn't find anything.
18494
 
if test -z "$aix_libpath"; then
18495
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18496
 
fi
18497
 
else
18498
 
  echo "$as_me: failed program was:" >&5
18499
 
sed 's/^/| /' conftest.$ac_ext >&5
18500
 
 
18501
 
 
18502
 
fi
18503
 
 
18504
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505
 
      conftest$ac_exeext conftest.$ac_ext
18506
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18507
 
 
18508
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18509
 
          # Warning - without using the other run time loading flags,
18510
 
          # -berok will link without error, but may produce a broken library.
18511
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
18512
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
18513
 
          # Exported symbols can be pulled into shared objects from archives
18514
 
          whole_archive_flag_spec_GCJ='$convenience'
18515
 
          archive_cmds_need_lc_GCJ=yes
18516
 
          # This is similar to how AIX traditionally builds its shared libraries.
18517
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18518
 
        fi
18519
 
      fi
18520
 
      ;;
18521
 
 
18522
 
    amigaos*)
18523
 
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18524
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525
 
      hardcode_minus_L_GCJ=yes
18526
 
      # see comment about different semantics on the GNU ld section
18527
 
      ld_shlibs_GCJ=no
18528
 
      ;;
18529
 
 
18530
 
    bsdi[45]*)
18531
 
      export_dynamic_flag_spec_GCJ=-rdynamic
18532
 
      ;;
18533
 
 
18534
 
    cygwin* | mingw* | pw32*)
18535
 
      # When not using gcc, we currently assume that we are using
18536
 
      # Microsoft Visual C++.
18537
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
18538
 
      # no search path for DLLs.
18539
 
      hardcode_libdir_flag_spec_GCJ=' '
18540
 
      allow_undefined_flag_GCJ=unsupported
18541
 
      # Tell ltmain to make .lib files, not .a files.
18542
 
      libext=lib
18543
 
      # Tell ltmain to make .dll files, not .so files.
18544
 
      shrext_cmds=".dll"
18545
 
      # FIXME: Setting linknames here is a bad hack.
18546
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18547
 
      # The linker will automatically build a .lib file if we build a DLL.
18548
 
      old_archive_From_new_cmds_GCJ='true'
18549
 
      # FIXME: Should let the user specify the lib program.
18550
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18551
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18552
 
      enable_shared_with_static_runtimes_GCJ=yes
18553
 
      ;;
18554
 
 
18555
 
    darwin* | rhapsody*)
18556
 
      case $host_os in
18557
 
        rhapsody* | darwin1.[012])
18558
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18559
 
         ;;
18560
 
       *) # Darwin 1.3 on
18561
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18562
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18563
 
         else
18564
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18565
 
             10.[012])
18566
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18567
 
               ;;
18568
 
             10.*)
18569
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18570
 
               ;;
18571
 
           esac
18572
 
         fi
18573
 
         ;;
18574
 
      esac
18575
 
      archive_cmds_need_lc_GCJ=no
18576
 
      hardcode_direct_GCJ=no
18577
 
      hardcode_automatic_GCJ=yes
18578
 
      hardcode_shlibpath_var_GCJ=unsupported
18579
 
      whole_archive_flag_spec_GCJ=''
18580
 
      link_all_deplibs_GCJ=yes
18581
 
    if test "$GCC" = yes ; then
18582
 
        output_verbose_link_cmd='echo'
18583
 
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18584
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18585
 
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18586
 
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18587
 
    else
18588
 
      case $cc_basename in
18589
 
        xlc*)
18590
 
         output_verbose_link_cmd='echo'
18591
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18592
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18593
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18594
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18595
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18596
 
          ;;
18597
 
       *)
18598
 
         ld_shlibs_GCJ=no
18599
 
          ;;
18600
 
      esac
18601
 
    fi
18602
 
      ;;
18603
 
 
18604
 
    dgux*)
18605
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18606
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18607
 
      hardcode_shlibpath_var_GCJ=no
18608
 
      ;;
18609
 
 
18610
 
    freebsd1*)
18611
 
      ld_shlibs_GCJ=no
18612
 
      ;;
18613
 
 
18614
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18615
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18616
 
    # does not break anything, and helps significantly (at the cost of a little
18617
 
    # extra space).
18618
 
    freebsd2.2*)
18619
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18620
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18621
 
      hardcode_direct_GCJ=yes
18622
 
      hardcode_shlibpath_var_GCJ=no
18623
 
      ;;
18624
 
 
18625
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18626
 
    freebsd2*)
18627
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18628
 
      hardcode_direct_GCJ=yes
18629
 
      hardcode_minus_L_GCJ=yes
18630
 
      hardcode_shlibpath_var_GCJ=no
18631
 
      ;;
18632
 
 
18633
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18634
 
    freebsd* | dragonfly*)
18635
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18636
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18637
 
      hardcode_direct_GCJ=yes
18638
 
      hardcode_shlibpath_var_GCJ=no
18639
 
      ;;
18640
 
 
18641
 
    hpux9*)
18642
 
      if test "$GCC" = yes; then
18643
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18644
 
      else
18645
 
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18646
 
      fi
18647
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18648
 
      hardcode_libdir_separator_GCJ=:
18649
 
      hardcode_direct_GCJ=yes
18650
 
 
18651
 
      # hardcode_minus_L: Not really in the search PATH,
18652
 
      # but as the default location of the library.
18653
 
      hardcode_minus_L_GCJ=yes
18654
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18655
 
      ;;
18656
 
 
18657
 
    hpux10*)
18658
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18659
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18660
 
      else
18661
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18662
 
      fi
18663
 
      if test "$with_gnu_ld" = no; then
18664
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18665
 
        hardcode_libdir_separator_GCJ=:
18666
 
 
18667
 
        hardcode_direct_GCJ=yes
18668
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18669
 
 
18670
 
        # hardcode_minus_L: Not really in the search PATH,
18671
 
        # but as the default location of the library.
18672
 
        hardcode_minus_L_GCJ=yes
18673
 
      fi
18674
 
      ;;
18675
 
 
18676
 
    hpux11*)
18677
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18678
 
        case $host_cpu in
18679
 
        hppa*64*)
18680
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18681
 
          ;;
18682
 
        ia64*)
18683
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18684
 
          ;;
18685
 
        *)
18686
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18687
 
          ;;
18688
 
        esac
18689
 
      else
18690
 
        case $host_cpu in
18691
 
        hppa*64*)
18692
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18693
 
          ;;
18694
 
        ia64*)
18695
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18696
 
          ;;
18697
 
        *)
18698
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18699
 
          ;;
18700
 
        esac
18701
 
      fi
18702
 
      if test "$with_gnu_ld" = no; then
18703
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18704
 
        hardcode_libdir_separator_GCJ=:
18705
 
 
18706
 
        case $host_cpu in
18707
 
        hppa*64*|ia64*)
18708
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18709
 
          hardcode_direct_GCJ=no
18710
 
          hardcode_shlibpath_var_GCJ=no
18711
 
          ;;
18712
 
        *)
18713
 
          hardcode_direct_GCJ=yes
18714
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18715
 
 
18716
 
          # hardcode_minus_L: Not really in the search PATH,
18717
 
          # but as the default location of the library.
18718
 
          hardcode_minus_L_GCJ=yes
18719
 
          ;;
18720
 
        esac
18721
 
      fi
18722
 
      ;;
18723
 
 
18724
 
    irix5* | irix6* | nonstopux*)
18725
 
      if test "$GCC" = yes; then
18726
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18727
 
      else
18728
 
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18729
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18730
 
      fi
18731
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18732
 
      hardcode_libdir_separator_GCJ=:
18733
 
      link_all_deplibs_GCJ=yes
18734
 
      ;;
18735
 
 
18736
 
    netbsd* | netbsdelf*-gnu)
18737
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18738
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18739
 
      else
18740
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18741
 
      fi
18742
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18743
 
      hardcode_direct_GCJ=yes
18744
 
      hardcode_shlibpath_var_GCJ=no
18745
 
      ;;
18746
 
 
18747
 
    newsos6)
18748
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18749
 
      hardcode_direct_GCJ=yes
18750
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18751
 
      hardcode_libdir_separator_GCJ=:
18752
 
      hardcode_shlibpath_var_GCJ=no
18753
 
      ;;
18754
 
 
18755
 
    openbsd*)
18756
 
      if test -f /usr/libexec/ld.so; then
18757
 
        hardcode_direct_GCJ=yes
18758
 
        hardcode_shlibpath_var_GCJ=no
18759
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18760
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18761
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18762
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18763
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18764
 
        else
18765
 
          case $host_os in
18766
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18767
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18768
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18769
 
             ;;
18770
 
           *)
18771
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18773
 
             ;;
18774
 
          esac
18775
 
        fi
18776
 
      else
18777
 
        ld_shlibs_GCJ=no
18778
 
      fi
18779
 
      ;;
18780
 
 
18781
 
    os2*)
18782
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18783
 
      hardcode_minus_L_GCJ=yes
18784
 
      allow_undefined_flag_GCJ=unsupported
18785
 
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18786
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18787
 
      ;;
18788
 
 
18789
 
    osf3*)
18790
 
      if test "$GCC" = yes; then
18791
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18792
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18793
 
      else
18794
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18795
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18796
 
      fi
18797
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18798
 
      hardcode_libdir_separator_GCJ=:
18799
 
      ;;
18800
 
 
18801
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18802
 
      if test "$GCC" = yes; then
18803
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18804
 
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18805
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18806
 
      else
18807
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18808
 
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18809
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18810
 
        $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'
18811
 
 
18812
 
        # Both c and cxx compiler support -rpath directly
18813
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18814
 
      fi
18815
 
      hardcode_libdir_separator_GCJ=:
18816
 
      ;;
18817
 
 
18818
 
    solaris*)
18819
 
      no_undefined_flag_GCJ=' -z text'
18820
 
      if test "$GCC" = yes; then
18821
 
        wlarc='${wl}'
18822
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18823
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18824
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18825
 
      else
18826
 
        wlarc=''
18827
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18829
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18830
 
      fi
18831
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18832
 
      hardcode_shlibpath_var_GCJ=no
18833
 
      case $host_os in
18834
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18835
 
      *)
18836
 
        # The compiler driver will combine and reorder linker options,
18837
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18838
 
        # but is careful enough not to reorder.
18839
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18840
 
        if test "$GCC" = yes; then
18841
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18842
 
        else
18843
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18844
 
        fi
18845
 
        ;;
18846
 
      esac
18847
 
      link_all_deplibs_GCJ=yes
18848
 
      ;;
18849
 
 
18850
 
    sunos4*)
18851
 
      if test "x$host_vendor" = xsequent; then
18852
 
        # Use $CC to link under sequent, because it throws in some extra .o
18853
 
        # files that make .init and .fini sections work.
18854
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18855
 
      else
18856
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18857
 
      fi
18858
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859
 
      hardcode_direct_GCJ=yes
18860
 
      hardcode_minus_L_GCJ=yes
18861
 
      hardcode_shlibpath_var_GCJ=no
18862
 
      ;;
18863
 
 
18864
 
    sysv4)
18865
 
      case $host_vendor in
18866
 
        sni)
18867
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868
 
          hardcode_direct_GCJ=yes # is this really true???
18869
 
        ;;
18870
 
        siemens)
18871
 
          ## LD is ld it makes a PLAMLIB
18872
 
          ## CC just makes a GrossModule.
18873
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18874
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18875
 
          hardcode_direct_GCJ=no
18876
 
        ;;
18877
 
        motorola)
18878
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18879
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18880
 
        ;;
18881
 
      esac
18882
 
      runpath_var='LD_RUN_PATH'
18883
 
      hardcode_shlibpath_var_GCJ=no
18884
 
      ;;
18885
 
 
18886
 
    sysv4.3*)
18887
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888
 
      hardcode_shlibpath_var_GCJ=no
18889
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18890
 
      ;;
18891
 
 
18892
 
    sysv4*MP*)
18893
 
      if test -d /usr/nec; then
18894
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895
 
        hardcode_shlibpath_var_GCJ=no
18896
 
        runpath_var=LD_RUN_PATH
18897
 
        hardcode_runpath_var=yes
18898
 
        ld_shlibs_GCJ=yes
18899
 
      fi
18900
 
      ;;
18901
 
 
18902
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18903
 
      no_undefined_flag_GCJ='${wl}-z,text'
18904
 
      archive_cmds_need_lc_GCJ=no
18905
 
      hardcode_shlibpath_var_GCJ=no
18906
 
      runpath_var='LD_RUN_PATH'
18907
 
 
18908
 
      if test "$GCC" = yes; then
18909
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18911
 
      else
18912
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18913
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18914
 
      fi
18915
 
      ;;
18916
 
 
18917
 
    sysv5* | sco3.2v5* | sco5v6*)
18918
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18919
 
      # link with -lc, and that would cause any symbols used from libc to
18920
 
      # always be unresolved, which means just about no library would
18921
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18922
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18923
 
      # as -z defs.
18924
 
      no_undefined_flag_GCJ='${wl}-z,text'
18925
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18926
 
      archive_cmds_need_lc_GCJ=no
18927
 
      hardcode_shlibpath_var_GCJ=no
18928
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18929
 
      hardcode_libdir_separator_GCJ=':'
18930
 
      link_all_deplibs_GCJ=yes
18931
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18932
 
      runpath_var='LD_RUN_PATH'
18933
 
 
18934
 
      if test "$GCC" = yes; then
18935
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18936
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18937
 
      else
18938
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18939
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18940
 
      fi
18941
 
      ;;
18942
 
 
18943
 
    uts4*)
18944
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18945
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18946
 
      hardcode_shlibpath_var_GCJ=no
18947
 
      ;;
18948
 
 
18949
 
    *)
18950
 
      ld_shlibs_GCJ=no
18951
 
      ;;
18952
 
    esac
18953
 
  fi
18954
 
 
18955
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18956
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18957
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18958
 
 
18959
 
#
18960
 
# Do we need to explicitly link libc?
18961
 
#
18962
 
case "x$archive_cmds_need_lc_GCJ" in
18963
 
x|xyes)
18964
 
  # Assume -lc should be added
18965
 
  archive_cmds_need_lc_GCJ=yes
18966
 
 
18967
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18968
 
    case $archive_cmds_GCJ in
18969
 
    *'~'*)
18970
 
      # FIXME: we may have to deal with multi-command sequences.
18971
 
      ;;
18972
 
    '$CC '*)
18973
 
      # Test whether the compiler implicitly links with -lc since on some
18974
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18975
 
      # to ld, don't add -lc before -lgcc.
18976
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18977
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18978
 
      $rm conftest*
18979
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18980
 
 
18981
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982
 
  (eval $ac_compile) 2>&5
18983
 
  ac_status=$?
18984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985
 
  (exit $ac_status); } 2>conftest.err; then
18986
 
        soname=conftest
18987
 
        lib=conftest
18988
 
        libobjs=conftest.$ac_objext
18989
 
        deplibs=
18990
 
        wl=$lt_prog_compiler_wl_GCJ
18991
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18992
 
        compiler_flags=-v
18993
 
        linker_flags=-v
18994
 
        verstring=
18995
 
        output_objdir=.
18996
 
        libname=conftest
18997
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18998
 
        allow_undefined_flag_GCJ=
18999
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19000
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19001
 
  ac_status=$?
19002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003
 
  (exit $ac_status); }
19004
 
        then
19005
 
          archive_cmds_need_lc_GCJ=no
19006
 
        else
19007
 
          archive_cmds_need_lc_GCJ=yes
19008
 
        fi
19009
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19010
 
      else
19011
 
        cat conftest.err 1>&5
19012
 
      fi
19013
 
      $rm conftest*
19014
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19015
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19016
 
      ;;
19017
 
    esac
19018
 
  fi
19019
 
  ;;
19020
 
esac
19021
 
 
19022
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19023
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19024
 
library_names_spec=
19025
 
libname_spec='lib$name'
19026
 
soname_spec=
19027
 
shrext_cmds=".so"
19028
 
postinstall_cmds=
19029
 
postuninstall_cmds=
19030
 
finish_cmds=
19031
 
finish_eval=
19032
 
shlibpath_var=
19033
 
shlibpath_overrides_runpath=unknown
19034
 
version_type=none
19035
 
dynamic_linker="$host_os ld.so"
19036
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19037
 
 
19038
 
need_lib_prefix=unknown
19039
 
hardcode_into_libs=no
19040
 
 
19041
 
# when you set need_version to no, make sure it does not cause -set_version
19042
 
# flags to be left without arguments
19043
 
need_version=unknown
19044
 
 
19045
 
case $host_os in
19046
 
aix3*)
19047
 
  version_type=linux
19048
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19049
 
  shlibpath_var=LIBPATH
19050
 
 
19051
 
  # AIX 3 has no versioning support, so we append a major version to the name.
19052
 
  soname_spec='${libname}${release}${shared_ext}$major'
19053
 
  ;;
19054
 
 
19055
 
aix[4-9]*)
19056
 
  version_type=linux
19057
 
  need_lib_prefix=no
19058
 
  need_version=no
19059
 
  hardcode_into_libs=yes
19060
 
  if test "$host_cpu" = ia64; then
19061
 
    # AIX 5 supports IA64
19062
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19063
 
    shlibpath_var=LD_LIBRARY_PATH
19064
 
  else
19065
 
    # With GCC up to 2.95.x, collect2 would create an import file
19066
 
    # for dependence libraries.  The import file would start with
19067
 
    # the line `#! .'.  This would cause the generated library to
19068
 
    # depend on `.', always an invalid library.  This was fixed in
19069
 
    # development snapshots of GCC prior to 3.0.
19070
 
    case $host_os in
19071
 
      aix4 | aix4.[01] | aix4.[01].*)
19072
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19073
 
           echo ' yes '
19074
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19075
 
        :
19076
 
      else
19077
 
        can_build_shared=no
19078
 
      fi
19079
 
      ;;
19080
 
    esac
19081
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19082
 
    # soname into executable. Probably we can add versioning support to
19083
 
    # collect2, so additional links can be useful in future.
19084
 
    if test "$aix_use_runtimelinking" = yes; then
19085
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19086
 
      # instead of lib<name>.a to let people know that these are not
19087
 
      # typical AIX shared libraries.
19088
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089
 
    else
19090
 
      # We preserve .a as extension for shared libraries through AIX4.2
19091
 
      # and later when we are not doing run time linking.
19092
 
      library_names_spec='${libname}${release}.a $libname.a'
19093
 
      soname_spec='${libname}${release}${shared_ext}$major'
19094
 
    fi
19095
 
    shlibpath_var=LIBPATH
19096
 
  fi
19097
 
  ;;
19098
 
 
19099
 
amigaos*)
19100
 
  library_names_spec='$libname.ixlibrary $libname.a'
19101
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19102
 
  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'
19103
 
  ;;
19104
 
 
19105
 
beos*)
19106
 
  library_names_spec='${libname}${shared_ext}'
19107
 
  dynamic_linker="$host_os ld.so"
19108
 
  shlibpath_var=LIBRARY_PATH
19109
 
  ;;
19110
 
 
19111
 
bsdi[45]*)
19112
 
  version_type=linux
19113
 
  need_version=no
19114
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115
 
  soname_spec='${libname}${release}${shared_ext}$major'
19116
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19117
 
  shlibpath_var=LD_LIBRARY_PATH
19118
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19119
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19120
 
  # the default ld.so.conf also contains /usr/contrib/lib and
19121
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19122
 
  # libtool to hard-code these into programs
19123
 
  ;;
19124
 
 
19125
 
cygwin* | mingw* | pw32*)
19126
 
  version_type=windows
19127
 
  shrext_cmds=".dll"
19128
 
  need_version=no
19129
 
  need_lib_prefix=no
19130
 
 
19131
 
  case $GCC,$host_os in
19132
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
19133
 
    library_names_spec='$libname.dll.a'
19134
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19135
 
    postinstall_cmds='base_file=`basename \${file}`~
19136
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19137
 
      dldir=$destdir/`dirname \$dlpath`~
19138
 
      test -d \$dldir || mkdir -p \$dldir~
19139
 
      $install_prog $dir/$dlname \$dldir/$dlname~
19140
 
      chmod a+x \$dldir/$dlname'
19141
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19142
 
      dlpath=$dir/\$dldll~
19143
 
       $rm \$dlpath'
19144
 
    shlibpath_overrides_runpath=yes
19145
 
 
19146
 
    case $host_os in
19147
 
    cygwin*)
19148
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19149
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19150
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19151
 
      ;;
19152
 
    mingw*)
19153
 
      # MinGW DLLs use traditional 'lib' prefix
19154
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19155
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19156
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19157
 
        # It is most probably a Windows format PATH printed by
19158
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19159
 
        # path with ; separators, and with drive letters. We can handle the
19160
 
        # drive letters (cygwin fileutils understands them), so leave them,
19161
 
        # especially as we might pass files found there to a mingw objdump,
19162
 
        # which wouldn't understand a cygwinified path. Ahh.
19163
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19164
 
      else
19165
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19166
 
      fi
19167
 
      ;;
19168
 
    pw32*)
19169
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19170
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19171
 
      ;;
19172
 
    esac
19173
 
    ;;
19174
 
 
19175
 
  *)
19176
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19177
 
    ;;
19178
 
  esac
19179
 
  dynamic_linker='Win32 ld.exe'
19180
 
  # FIXME: first we should search . and the directory the executable is in
19181
 
  shlibpath_var=PATH
19182
 
  ;;
19183
 
 
19184
 
darwin* | rhapsody*)
19185
 
  dynamic_linker="$host_os dyld"
19186
 
  version_type=darwin
19187
 
  need_lib_prefix=no
19188
 
  need_version=no
19189
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19190
 
  soname_spec='${libname}${release}${major}$shared_ext'
19191
 
  shlibpath_overrides_runpath=yes
19192
 
  shlibpath_var=DYLD_LIBRARY_PATH
19193
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19194
 
 
19195
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19196
 
  ;;
19197
 
 
19198
 
dgux*)
19199
 
  version_type=linux
19200
 
  need_lib_prefix=no
19201
 
  need_version=no
19202
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19203
 
  soname_spec='${libname}${release}${shared_ext}$major'
19204
 
  shlibpath_var=LD_LIBRARY_PATH
19205
 
  ;;
19206
 
 
19207
 
freebsd1*)
19208
 
  dynamic_linker=no
19209
 
  ;;
19210
 
 
19211
 
freebsd* | dragonfly*)
19212
 
  # DragonFly does not have aout.  When/if they implement a new
19213
 
  # versioning mechanism, adjust this.
19214
 
  if test -x /usr/bin/objformat; then
19215
 
    objformat=`/usr/bin/objformat`
19216
 
  else
19217
 
    case $host_os in
19218
 
    freebsd[123]*) objformat=aout ;;
19219
 
    *) objformat=elf ;;
19220
 
    esac
19221
 
  fi
19222
 
  version_type=freebsd-$objformat
19223
 
  case $version_type in
19224
 
    freebsd-elf*)
19225
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19226
 
      need_version=no
19227
 
      need_lib_prefix=no
19228
 
      ;;
19229
 
    freebsd-*)
19230
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19231
 
      need_version=yes
19232
 
      ;;
19233
 
  esac
19234
 
  shlibpath_var=LD_LIBRARY_PATH
19235
 
  case $host_os in
19236
 
  freebsd2*)
19237
 
    shlibpath_overrides_runpath=yes
19238
 
    ;;
19239
 
  freebsd3.[01]* | freebsdelf3.[01]*)
19240
 
    shlibpath_overrides_runpath=yes
19241
 
    hardcode_into_libs=yes
19242
 
    ;;
19243
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19244
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19245
 
    shlibpath_overrides_runpath=no
19246
 
    hardcode_into_libs=yes
19247
 
    ;;
19248
 
  *) # from 4.6 on, and DragonFly
19249
 
    shlibpath_overrides_runpath=yes
19250
 
    hardcode_into_libs=yes
19251
 
    ;;
19252
 
  esac
19253
 
  ;;
19254
 
 
19255
 
gnu*)
19256
 
  version_type=linux
19257
 
  need_lib_prefix=no
19258
 
  need_version=no
19259
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19260
 
  soname_spec='${libname}${release}${shared_ext}$major'
19261
 
  shlibpath_var=LD_LIBRARY_PATH
19262
 
  hardcode_into_libs=yes
19263
 
  ;;
19264
 
 
19265
 
hpux9* | hpux10* | hpux11*)
19266
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
19267
 
  # link against other versions.
19268
 
  version_type=sunos
19269
 
  need_lib_prefix=no
19270
 
  need_version=no
19271
 
  case $host_cpu in
19272
 
  ia64*)
19273
 
    shrext_cmds='.so'
19274
 
    hardcode_into_libs=yes
19275
 
    dynamic_linker="$host_os dld.so"
19276
 
    shlibpath_var=LD_LIBRARY_PATH
19277
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19278
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19279
 
    soname_spec='${libname}${release}${shared_ext}$major'
19280
 
    if test "X$HPUX_IA64_MODE" = X32; then
19281
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19282
 
    else
19283
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19284
 
    fi
19285
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19286
 
    ;;
19287
 
   hppa*64*)
19288
 
     shrext_cmds='.sl'
19289
 
     hardcode_into_libs=yes
19290
 
     dynamic_linker="$host_os dld.sl"
19291
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19292
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19293
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19294
 
     soname_spec='${libname}${release}${shared_ext}$major'
19295
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19296
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19297
 
     ;;
19298
 
   *)
19299
 
    shrext_cmds='.sl'
19300
 
    dynamic_linker="$host_os dld.sl"
19301
 
    shlibpath_var=SHLIB_PATH
19302
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19303
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19304
 
    soname_spec='${libname}${release}${shared_ext}$major'
19305
 
    ;;
19306
 
  esac
19307
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19308
 
  postinstall_cmds='chmod 555 $lib'
19309
 
  ;;
19310
 
 
19311
 
interix[3-9]*)
19312
 
  version_type=linux
19313
 
  need_lib_prefix=no
19314
 
  need_version=no
19315
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19316
 
  soname_spec='${libname}${release}${shared_ext}$major'
19317
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19318
 
  shlibpath_var=LD_LIBRARY_PATH
19319
 
  shlibpath_overrides_runpath=no
19320
 
  hardcode_into_libs=yes
19321
 
  ;;
19322
 
 
19323
 
irix5* | irix6* | nonstopux*)
19324
 
  case $host_os in
19325
 
    nonstopux*) version_type=nonstopux ;;
19326
 
    *)
19327
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
19328
 
                version_type=linux
19329
 
        else
19330
 
                version_type=irix
19331
 
        fi ;;
19332
 
  esac
19333
 
  need_lib_prefix=no
19334
 
  need_version=no
19335
 
  soname_spec='${libname}${release}${shared_ext}$major'
19336
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19337
 
  case $host_os in
19338
 
  irix5* | nonstopux*)
19339
 
    libsuff= shlibsuff=
19340
 
    ;;
19341
 
  *)
19342
 
    case $LD in # libtool.m4 will add one of these switches to LD
19343
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19344
 
      libsuff= shlibsuff= libmagic=32-bit;;
19345
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19346
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
19347
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19348
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19349
 
    *) libsuff= shlibsuff= libmagic=never-match;;
19350
 
    esac
19351
 
    ;;
19352
 
  esac
19353
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19354
 
  shlibpath_overrides_runpath=no
19355
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19356
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19357
 
  hardcode_into_libs=yes
19358
 
  ;;
19359
 
 
19360
 
# No shared lib support for Linux oldld, aout, or coff.
19361
 
linux*oldld* | linux*aout* | linux*coff*)
19362
 
  dynamic_linker=no
19363
 
  ;;
19364
 
 
19365
 
# This must be Linux ELF.
19366
 
linux* | k*bsd*-gnu)
19367
 
  version_type=linux
19368
 
  need_lib_prefix=no
19369
 
  need_version=no
19370
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19371
 
  soname_spec='${libname}${release}${shared_ext}$major'
19372
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19373
 
  shlibpath_var=LD_LIBRARY_PATH
19374
 
  shlibpath_overrides_runpath=no
19375
 
  # This implies no fast_install, which is unacceptable.
19376
 
  # Some rework will be needed to allow for fast_install
19377
 
  # before this can be enabled.
19378
 
  hardcode_into_libs=yes
19379
 
 
19380
 
  # Append ld.so.conf contents to the search path
19381
 
  if test -f /etc/ld.so.conf; then
19382
 
    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' ' '`
19383
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19384
 
  fi
19385
 
 
19386
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19387
 
  # powerpc, because MkLinux only supported shared libraries with the
19388
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
19389
 
  # most powerpc-linux boxes support dynamic linking these days and
19390
 
  # people can always --disable-shared, the test was removed, and we
19391
 
  # assume the GNU/Linux dynamic linker is in use.
19392
 
  dynamic_linker='GNU/Linux ld.so'
19393
 
  ;;
19394
 
 
19395
 
netbsdelf*-gnu)
19396
 
  version_type=linux
19397
 
  need_lib_prefix=no
19398
 
  need_version=no
19399
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19400
 
  soname_spec='${libname}${release}${shared_ext}$major'
19401
 
  shlibpath_var=LD_LIBRARY_PATH
19402
 
  shlibpath_overrides_runpath=no
19403
 
  hardcode_into_libs=yes
19404
 
  dynamic_linker='NetBSD ld.elf_so'
19405
 
  ;;
19406
 
 
19407
 
netbsd*)
19408
 
  version_type=sunos
19409
 
  need_lib_prefix=no
19410
 
  need_version=no
19411
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19412
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19413
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19414
 
    dynamic_linker='NetBSD (a.out) ld.so'
19415
 
  else
19416
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19417
 
    soname_spec='${libname}${release}${shared_ext}$major'
19418
 
    dynamic_linker='NetBSD ld.elf_so'
19419
 
  fi
19420
 
  shlibpath_var=LD_LIBRARY_PATH
19421
 
  shlibpath_overrides_runpath=yes
19422
 
  hardcode_into_libs=yes
19423
 
  ;;
19424
 
 
19425
 
newsos6)
19426
 
  version_type=linux
19427
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19428
 
  shlibpath_var=LD_LIBRARY_PATH
19429
 
  shlibpath_overrides_runpath=yes
19430
 
  ;;
19431
 
 
19432
 
nto-qnx*)
19433
 
  version_type=linux
19434
 
  need_lib_prefix=no
19435
 
  need_version=no
19436
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19437
 
  soname_spec='${libname}${release}${shared_ext}$major'
19438
 
  shlibpath_var=LD_LIBRARY_PATH
19439
 
  shlibpath_overrides_runpath=yes
19440
 
  ;;
19441
 
 
19442
 
openbsd*)
19443
 
  version_type=sunos
19444
 
  sys_lib_dlsearch_path_spec="/usr/lib"
19445
 
  need_lib_prefix=no
19446
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19447
 
  case $host_os in
19448
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19449
 
    *)                         need_version=no  ;;
19450
 
  esac
19451
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19452
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19453
 
  shlibpath_var=LD_LIBRARY_PATH
19454
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19455
 
    case $host_os in
19456
 
      openbsd2.[89] | openbsd2.[89].*)
19457
 
        shlibpath_overrides_runpath=no
19458
 
        ;;
19459
 
      *)
19460
 
        shlibpath_overrides_runpath=yes
19461
 
        ;;
19462
 
      esac
19463
 
  else
19464
 
    shlibpath_overrides_runpath=yes
19465
 
  fi
19466
 
  ;;
19467
 
 
19468
 
os2*)
19469
 
  libname_spec='$name'
19470
 
  shrext_cmds=".dll"
19471
 
  need_lib_prefix=no
19472
 
  library_names_spec='$libname${shared_ext} $libname.a'
19473
 
  dynamic_linker='OS/2 ld.exe'
19474
 
  shlibpath_var=LIBPATH
19475
 
  ;;
19476
 
 
19477
 
osf3* | osf4* | osf5*)
19478
 
  version_type=osf
19479
 
  need_lib_prefix=no
19480
 
  need_version=no
19481
 
  soname_spec='${libname}${release}${shared_ext}$major'
19482
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19483
 
  shlibpath_var=LD_LIBRARY_PATH
19484
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19485
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19486
 
  ;;
19487
 
 
19488
 
rdos*)
19489
 
  dynamic_linker=no
19490
 
  ;;
19491
 
 
19492
 
solaris*)
19493
 
  version_type=linux
19494
 
  need_lib_prefix=no
19495
 
  need_version=no
19496
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19497
 
  soname_spec='${libname}${release}${shared_ext}$major'
19498
 
  shlibpath_var=LD_LIBRARY_PATH
19499
 
  shlibpath_overrides_runpath=yes
19500
 
  hardcode_into_libs=yes
19501
 
  # ldd complains unless libraries are executable
19502
 
  postinstall_cmds='chmod +x $lib'
19503
 
  ;;
19504
 
 
19505
 
sunos4*)
19506
 
  version_type=sunos
19507
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19508
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19509
 
  shlibpath_var=LD_LIBRARY_PATH
19510
 
  shlibpath_overrides_runpath=yes
19511
 
  if test "$with_gnu_ld" = yes; then
19512
 
    need_lib_prefix=no
19513
 
  fi
19514
 
  need_version=yes
19515
 
  ;;
19516
 
 
19517
 
sysv4 | sysv4.3*)
19518
 
  version_type=linux
19519
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520
 
  soname_spec='${libname}${release}${shared_ext}$major'
19521
 
  shlibpath_var=LD_LIBRARY_PATH
19522
 
  case $host_vendor in
19523
 
    sni)
19524
 
      shlibpath_overrides_runpath=no
19525
 
      need_lib_prefix=no
19526
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
19527
 
      runpath_var=LD_RUN_PATH
19528
 
      ;;
19529
 
    siemens)
19530
 
      need_lib_prefix=no
19531
 
      ;;
19532
 
    motorola)
19533
 
      need_lib_prefix=no
19534
 
      need_version=no
19535
 
      shlibpath_overrides_runpath=no
19536
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19537
 
      ;;
19538
 
  esac
19539
 
  ;;
19540
 
 
19541
 
sysv4*MP*)
19542
 
  if test -d /usr/nec ;then
19543
 
    version_type=linux
19544
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19545
 
    soname_spec='$libname${shared_ext}.$major'
19546
 
    shlibpath_var=LD_LIBRARY_PATH
19547
 
  fi
19548
 
  ;;
19549
 
 
19550
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19551
 
  version_type=freebsd-elf
19552
 
  need_lib_prefix=no
19553
 
  need_version=no
19554
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19555
 
  soname_spec='${libname}${release}${shared_ext}$major'
19556
 
  shlibpath_var=LD_LIBRARY_PATH
19557
 
  hardcode_into_libs=yes
19558
 
  if test "$with_gnu_ld" = yes; then
19559
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19560
 
    shlibpath_overrides_runpath=no
19561
 
  else
19562
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19563
 
    shlibpath_overrides_runpath=yes
19564
 
    case $host_os in
19565
 
      sco3.2v5*)
19566
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19567
 
        ;;
19568
 
    esac
19569
 
  fi
19570
 
  sys_lib_dlsearch_path_spec='/usr/lib'
19571
 
  ;;
19572
 
 
19573
 
uts4*)
19574
 
  version_type=linux
19575
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576
 
  soname_spec='${libname}${release}${shared_ext}$major'
19577
 
  shlibpath_var=LD_LIBRARY_PATH
19578
 
  ;;
19579
 
 
19580
 
*)
19581
 
  dynamic_linker=no
19582
 
  ;;
19583
 
esac
19584
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19585
 
echo "${ECHO_T}$dynamic_linker" >&6; }
19586
 
test "$dynamic_linker" = no && can_build_shared=no
19587
 
 
19588
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19590
 
else
19591
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19592
 
fi
19593
 
 
19594
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19595
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19596
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19597
 
else
19598
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19599
 
fi
19600
 
 
19601
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19602
 
 
19603
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19604
 
if test "$GCC" = yes; then
19605
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19606
 
fi
19607
 
 
19608
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19609
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19610
 
hardcode_action_GCJ=
19611
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19612
 
   test -n "$runpath_var_GCJ" || \
19613
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19614
 
 
19615
 
  # We can hardcode non-existant directories.
19616
 
  if test "$hardcode_direct_GCJ" != no &&
19617
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19618
 
     # have to relink, otherwise we might link with an installed library
19619
 
     # when we should be linking with a yet-to-be-installed one
19620
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19621
 
     test "$hardcode_minus_L_GCJ" != no; then
19622
 
    # Linking always hardcodes the temporary library directory.
19623
 
    hardcode_action_GCJ=relink
19624
 
  else
19625
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19626
 
    hardcode_action_GCJ=immediate
19627
 
  fi
19628
 
else
19629
 
  # We cannot hardcode anything, or else we can only hardcode existing
19630
 
  # directories.
19631
 
  hardcode_action_GCJ=unsupported
19632
 
fi
19633
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19634
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19635
 
 
19636
 
if test "$hardcode_action_GCJ" = relink; then
19637
 
  # Fast installation is not supported
19638
 
  enable_fast_install=no
19639
 
elif test "$shlibpath_overrides_runpath" = yes ||
19640
 
     test "$enable_shared" = no; then
19641
 
  # Fast installation is not necessary
19642
 
  enable_fast_install=needless
19643
 
fi
19644
 
 
19645
 
 
19646
 
# The else clause should only fire when bootstrapping the
19647
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19648
 
# with your package, and you will get complaints that there are
19649
 
# no rules to generate ltmain.sh.
19650
 
if test -f "$ltmain"; then
19651
 
  # See if we are running on zsh, and set the options which allow our commands through
19652
 
  # without removal of \ escapes.
19653
 
  if test -n "${ZSH_VERSION+set}" ; then
19654
 
    setopt NO_GLOB_SUBST
19655
 
  fi
19656
 
  # Now quote all the things that may contain metacharacters while being
19657
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19658
 
  # variables and quote the copies for generation of the libtool script.
19659
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19660
 
    SED SHELL STRIP \
19661
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19662
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19663
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19664
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19665
 
    lt_cv_sys_global_symbol_to_c_name_address \
19666
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19667
 
    old_postinstall_cmds old_postuninstall_cmds \
19668
 
    compiler_GCJ \
19669
 
    CC_GCJ \
19670
 
    LD_GCJ \
19671
 
    lt_prog_compiler_wl_GCJ \
19672
 
    lt_prog_compiler_pic_GCJ \
19673
 
    lt_prog_compiler_static_GCJ \
19674
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19675
 
    export_dynamic_flag_spec_GCJ \
19676
 
    thread_safe_flag_spec_GCJ \
19677
 
    whole_archive_flag_spec_GCJ \
19678
 
    enable_shared_with_static_runtimes_GCJ \
19679
 
    old_archive_cmds_GCJ \
19680
 
    old_archive_from_new_cmds_GCJ \
19681
 
    predep_objects_GCJ \
19682
 
    postdep_objects_GCJ \
19683
 
    predeps_GCJ \
19684
 
    postdeps_GCJ \
19685
 
    compiler_lib_search_path_GCJ \
19686
 
    compiler_lib_search_dirs_GCJ \
19687
 
    archive_cmds_GCJ \
19688
 
    archive_expsym_cmds_GCJ \
19689
 
    postinstall_cmds_GCJ \
19690
 
    postuninstall_cmds_GCJ \
19691
 
    old_archive_from_expsyms_cmds_GCJ \
19692
 
    allow_undefined_flag_GCJ \
19693
 
    no_undefined_flag_GCJ \
19694
 
    export_symbols_cmds_GCJ \
19695
 
    hardcode_libdir_flag_spec_GCJ \
19696
 
    hardcode_libdir_flag_spec_ld_GCJ \
19697
 
    hardcode_libdir_separator_GCJ \
19698
 
    hardcode_automatic_GCJ \
19699
 
    module_cmds_GCJ \
19700
 
    module_expsym_cmds_GCJ \
19701
 
    lt_cv_prog_compiler_c_o_GCJ \
19702
 
    fix_srcfile_path_GCJ \
19703
 
    exclude_expsyms_GCJ \
19704
 
    include_expsyms_GCJ; do
19705
 
 
19706
 
    case $var in
19707
 
    old_archive_cmds_GCJ | \
19708
 
    old_archive_from_new_cmds_GCJ | \
19709
 
    archive_cmds_GCJ | \
19710
 
    archive_expsym_cmds_GCJ | \
19711
 
    module_cmds_GCJ | \
19712
 
    module_expsym_cmds_GCJ | \
19713
 
    old_archive_from_expsyms_cmds_GCJ | \
19714
 
    export_symbols_cmds_GCJ | \
19715
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19716
 
    postinstall_cmds | postuninstall_cmds | \
19717
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19718
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19719
 
      # Double-quote double-evaled strings.
19720
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19721
 
      ;;
19722
 
    *)
19723
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19724
 
      ;;
19725
 
    esac
19726
 
  done
19727
 
 
19728
 
  case $lt_echo in
19729
 
  *'\$0 --fallback-echo"')
19730
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19731
 
    ;;
19732
 
  esac
19733
 
 
19734
 
cfgfile="$ofile"
19735
 
 
19736
 
  cat <<__EOF__ >> "$cfgfile"
19737
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19738
 
 
19739
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19740
 
 
19741
 
# Shell to use when invoking shell scripts.
19742
 
SHELL=$lt_SHELL
19743
 
 
19744
 
# Whether or not to build shared libraries.
19745
 
build_libtool_libs=$enable_shared
19746
 
 
19747
 
# Whether or not to build static libraries.
19748
 
build_old_libs=$enable_static
19749
 
 
19750
 
# Whether or not to add -lc for building shared libraries.
19751
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19752
 
 
19753
 
# Whether or not to disallow shared libs when runtime libs are static
19754
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19755
 
 
19756
 
# Whether or not to optimize for fast installation.
19757
 
fast_install=$enable_fast_install
19758
 
 
19759
 
# The host system.
19760
 
host_alias=$host_alias
19761
 
host=$host
19762
 
host_os=$host_os
19763
 
 
19764
 
# The build system.
19765
 
build_alias=$build_alias
19766
 
build=$build
19767
 
build_os=$build_os
19768
 
 
19769
 
# An echo program that does not interpret backslashes.
19770
 
echo=$lt_echo
19771
 
 
19772
 
# The archiver.
19773
 
AR=$lt_AR
19774
 
AR_FLAGS=$lt_AR_FLAGS
19775
 
 
19776
 
# A C compiler.
19777
 
LTCC=$lt_LTCC
19778
 
 
19779
 
# LTCC compiler flags.
19780
 
LTCFLAGS=$lt_LTCFLAGS
19781
 
 
19782
 
# A language-specific compiler.
19783
 
CC=$lt_compiler_GCJ
19784
 
 
19785
 
# Is the compiler the GNU C compiler?
19786
 
with_gcc=$GCC_GCJ
19787
 
 
19788
 
# An ERE matcher.
19789
 
EGREP=$lt_EGREP
19790
 
 
19791
 
# The linker used to build libraries.
19792
 
LD=$lt_LD_GCJ
19793
 
 
19794
 
# Whether we need hard or soft links.
19795
 
LN_S=$lt_LN_S
19796
 
 
19797
 
# A BSD-compatible nm program.
19798
 
NM=$lt_NM
19799
 
 
19800
 
# A symbol stripping program
19801
 
STRIP=$lt_STRIP
19802
 
 
19803
 
# Used to examine libraries when file_magic_cmd begins "file"
19804
 
MAGIC_CMD=$MAGIC_CMD
19805
 
 
19806
 
# Used on cygwin: DLL creation program.
19807
 
DLLTOOL="$DLLTOOL"
19808
 
 
19809
 
# Used on cygwin: object dumper.
19810
 
OBJDUMP="$OBJDUMP"
19811
 
 
19812
 
# Used on cygwin: assembler.
19813
 
AS="$AS"
19814
 
 
19815
 
# The name of the directory that contains temporary libtool files.
19816
 
objdir=$objdir
19817
 
 
19818
 
# How to create reloadable object files.
19819
 
reload_flag=$lt_reload_flag
19820
 
reload_cmds=$lt_reload_cmds
19821
 
 
19822
 
# How to pass a linker flag through the compiler.
19823
 
wl=$lt_lt_prog_compiler_wl_GCJ
19824
 
 
19825
 
# Object file suffix (normally "o").
19826
 
objext="$ac_objext"
19827
 
 
19828
 
# Old archive suffix (normally "a").
19829
 
libext="$libext"
19830
 
 
19831
 
# Shared library suffix (normally ".so").
19832
 
shrext_cmds='$shrext_cmds'
19833
 
 
19834
 
# Executable file suffix (normally "").
19835
 
exeext="$exeext"
19836
 
 
19837
 
# Additional compiler flags for building library objects.
19838
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19839
 
pic_mode=$pic_mode
19840
 
 
19841
 
# What is the maximum length of a command?
19842
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19843
 
 
19844
 
# Does compiler simultaneously support -c and -o options?
19845
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19846
 
 
19847
 
# Must we lock files when doing compilation?
19848
 
need_locks=$lt_need_locks
19849
 
 
19850
 
# Do we need the lib prefix for modules?
19851
 
need_lib_prefix=$need_lib_prefix
19852
 
 
19853
 
# Do we need a version for libraries?
19854
 
need_version=$need_version
19855
 
 
19856
 
# Whether dlopen is supported.
19857
 
dlopen_support=$enable_dlopen
19858
 
 
19859
 
# Whether dlopen of programs is supported.
19860
 
dlopen_self=$enable_dlopen_self
19861
 
 
19862
 
# Whether dlopen of statically linked programs is supported.
19863
 
dlopen_self_static=$enable_dlopen_self_static
19864
 
 
19865
 
# Compiler flag to prevent dynamic linking.
19866
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19867
 
 
19868
 
# Compiler flag to turn off builtin functions.
19869
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19870
 
 
19871
 
# Compiler flag to allow reflexive dlopens.
19872
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19873
 
 
19874
 
# Compiler flag to generate shared objects directly from archives.
19875
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19876
 
 
19877
 
# Compiler flag to generate thread-safe objects.
19878
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19879
 
 
19880
 
# Library versioning type.
19881
 
version_type=$version_type
19882
 
 
19883
 
# Format of library name prefix.
19884
 
libname_spec=$lt_libname_spec
19885
 
 
19886
 
# List of archive names.  First name is the real one, the rest are links.
19887
 
# The last name is the one that the linker finds with -lNAME.
19888
 
library_names_spec=$lt_library_names_spec
19889
 
 
19890
 
# The coded name of the library, if different from the real name.
19891
 
soname_spec=$lt_soname_spec
19892
 
 
19893
 
# Commands used to build and install an old-style archive.
19894
 
RANLIB=$lt_RANLIB
19895
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19896
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19897
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19898
 
 
19899
 
# Create an old-style archive from a shared archive.
19900
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19901
 
 
19902
 
# Create a temporary old-style archive to link instead of a shared archive.
19903
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19904
 
 
19905
 
# Commands used to build and install a shared archive.
19906
 
archive_cmds=$lt_archive_cmds_GCJ
19907
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19908
 
postinstall_cmds=$lt_postinstall_cmds
19909
 
postuninstall_cmds=$lt_postuninstall_cmds
19910
 
 
19911
 
# Commands used to build a loadable module (assumed same as above if empty)
19912
 
module_cmds=$lt_module_cmds_GCJ
19913
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19914
 
 
19915
 
# Commands to strip libraries.
19916
 
old_striplib=$lt_old_striplib
19917
 
striplib=$lt_striplib
19918
 
 
19919
 
# Dependencies to place before the objects being linked to create a
19920
 
# shared library.
19921
 
predep_objects=$lt_predep_objects_GCJ
19922
 
 
19923
 
# Dependencies to place after the objects being linked to create a
19924
 
# shared library.
19925
 
postdep_objects=$lt_postdep_objects_GCJ
19926
 
 
19927
 
# Dependencies to place before the objects being linked to create a
19928
 
# shared library.
19929
 
predeps=$lt_predeps_GCJ
19930
 
 
19931
 
# Dependencies to place after the objects being linked to create a
19932
 
# shared library.
19933
 
postdeps=$lt_postdeps_GCJ
19934
 
 
19935
 
# The directories searched by this compiler when creating a shared
19936
 
# library
19937
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19938
 
 
19939
 
# The library search path used internally by the compiler when linking
19940
 
# a shared library.
19941
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19942
 
 
19943
 
# Method to check whether dependent libraries are shared objects.
19944
 
deplibs_check_method=$lt_deplibs_check_method
19945
 
 
19946
 
# Command to use when deplibs_check_method == file_magic.
19947
 
file_magic_cmd=$lt_file_magic_cmd
19948
 
 
19949
 
# Flag that allows shared libraries with undefined symbols to be built.
19950
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19951
 
 
19952
 
# Flag that forces no undefined symbols.
19953
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19954
 
 
19955
 
# Commands used to finish a libtool library installation in a directory.
19956
 
finish_cmds=$lt_finish_cmds
19957
 
 
19958
 
# Same as above, but a single script fragment to be evaled but not shown.
19959
 
finish_eval=$lt_finish_eval
19960
 
 
19961
 
# Take the output of nm and produce a listing of raw symbols and C names.
19962
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19963
 
 
19964
 
# Transform the output of nm in a proper C declaration
19965
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19966
 
 
19967
 
# Transform the output of nm in a C name address pair
19968
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19969
 
 
19970
 
# This is the shared library runtime path variable.
19971
 
runpath_var=$runpath_var
19972
 
 
19973
 
# This is the shared library path variable.
19974
 
shlibpath_var=$shlibpath_var
19975
 
 
19976
 
# Is shlibpath searched before the hard-coded library search path?
19977
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19978
 
 
19979
 
# How to hardcode a shared library path into an executable.
19980
 
hardcode_action=$hardcode_action_GCJ
19981
 
 
19982
 
# Whether we should hardcode library paths into libraries.
19983
 
hardcode_into_libs=$hardcode_into_libs
19984
 
 
19985
 
# Flag to hardcode \$libdir into a binary during linking.
19986
 
# This must work even if \$libdir does not exist.
19987
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19988
 
 
19989
 
# If ld is used when linking, flag to hardcode \$libdir into
19990
 
# a binary during linking. This must work even if \$libdir does
19991
 
# not exist.
19992
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19993
 
 
19994
 
# Whether we need a single -rpath flag with a separated argument.
19995
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19996
 
 
19997
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19998
 
# resulting binary.
19999
 
hardcode_direct=$hardcode_direct_GCJ
20000
 
 
20001
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20002
 
# resulting binary.
20003
 
hardcode_minus_L=$hardcode_minus_L_GCJ
20004
 
 
20005
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20006
 
# the resulting binary.
20007
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20008
 
 
20009
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20010
 
# and all subsequent libraries and executables linked against it.
20011
 
hardcode_automatic=$hardcode_automatic_GCJ
20012
 
 
20013
 
# Variables whose values should be saved in libtool wrapper scripts and
20014
 
# restored at relink time.
20015
 
variables_saved_for_relink="$variables_saved_for_relink"
20016
 
 
20017
 
# Whether libtool must link a program against all its dependency libraries.
20018
 
link_all_deplibs=$link_all_deplibs_GCJ
20019
 
 
20020
 
# Compile-time system search path for libraries
20021
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20022
 
 
20023
 
# Run-time system search path for libraries
20024
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20025
 
 
20026
 
# Fix the shell variable \$srcfile for the compiler.
20027
 
fix_srcfile_path=$lt_fix_srcfile_path
20028
 
 
20029
 
# Set to yes if exported symbols are required.
20030
 
always_export_symbols=$always_export_symbols_GCJ
20031
 
 
20032
 
# The commands to list exported symbols.
20033
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20034
 
 
20035
 
# The commands to extract the exported symbol list from a shared archive.
20036
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20037
 
 
20038
 
# Symbols that should not be listed in the preloaded symbols.
20039
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
20040
 
 
20041
 
# Symbols that must always be exported.
20042
 
include_expsyms=$lt_include_expsyms_GCJ
20043
 
 
20044
 
# ### END LIBTOOL TAG CONFIG: $tagname
20045
 
 
20046
 
__EOF__
20047
 
 
20048
 
 
20049
 
else
20050
 
  # If there is no Makefile yet, we rely on a make rule to execute
20051
 
  # `config.status --recheck' to rerun these tests and create the
20052
 
  # libtool script then.
20053
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20054
 
  if test -f "$ltmain_in"; then
20055
 
    test -f Makefile && make "$ltmain"
20056
 
  fi
20057
 
fi
20058
 
 
20059
 
 
20060
 
ac_ext=c
20061
 
ac_cpp='$CPP $CPPFLAGS'
20062
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20063
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20064
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20065
 
 
20066
 
CC="$lt_save_CC"
20067
 
 
20068
 
        else
20069
 
          tagname=""
20070
 
        fi
20071
 
        ;;
20072
 
 
20073
 
      RC)
20074
 
 
20075
 
 
20076
 
# Source file extension for RC test sources.
20077
 
ac_ext=rc
20078
 
 
20079
 
# Object file extension for compiled RC test sources.
20080
 
objext=o
20081
 
objext_RC=$objext
20082
 
 
20083
 
# Code to be used in simple compile tests
20084
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20085
 
 
20086
 
# Code to be used in simple link tests
20087
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20088
 
 
20089
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20090
 
 
20091
 
# If no C compiler was specified, use CC.
20092
 
LTCC=${LTCC-"$CC"}
20093
 
 
20094
 
# If no C compiler flags were specified, use CFLAGS.
20095
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20096
 
 
20097
 
# Allow CC to be a program name with arguments.
20098
 
compiler=$CC
20099
 
 
20100
 
 
20101
 
# save warnings/boilerplate of simple test code
20102
 
ac_outfile=conftest.$ac_objext
20103
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20104
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20105
 
_lt_compiler_boilerplate=`cat conftest.err`
20106
 
$rm conftest*
20107
 
 
20108
 
ac_outfile=conftest.$ac_objext
20109
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20110
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20111
 
_lt_linker_boilerplate=`cat conftest.err`
20112
 
$rm -r conftest*
20113
 
 
20114
 
 
20115
 
# Allow CC to be a program name with arguments.
20116
 
lt_save_CC="$CC"
20117
 
CC=${RC-"windres"}
20118
 
compiler=$CC
20119
 
compiler_RC=$CC
20120
 
for cc_temp in $compiler""; do
20121
 
  case $cc_temp in
20122
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20123
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20124
 
    \-*) ;;
20125
 
    *) break;;
20126
 
  esac
20127
 
done
20128
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20129
 
 
20130
 
lt_cv_prog_compiler_c_o_RC=yes
20131
 
 
20132
 
# The else clause should only fire when bootstrapping the
20133
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20134
 
# with your package, and you will get complaints that there are
20135
 
# no rules to generate ltmain.sh.
20136
 
if test -f "$ltmain"; then
20137
 
  # See if we are running on zsh, and set the options which allow our commands through
20138
 
  # without removal of \ escapes.
20139
 
  if test -n "${ZSH_VERSION+set}" ; then
20140
 
    setopt NO_GLOB_SUBST
20141
 
  fi
20142
 
  # Now quote all the things that may contain metacharacters while being
20143
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20144
 
  # variables and quote the copies for generation of the libtool script.
20145
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20146
 
    SED SHELL STRIP \
20147
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20148
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20149
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20150
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20151
 
    lt_cv_sys_global_symbol_to_c_name_address \
20152
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20153
 
    old_postinstall_cmds old_postuninstall_cmds \
20154
 
    compiler_RC \
20155
 
    CC_RC \
20156
 
    LD_RC \
20157
 
    lt_prog_compiler_wl_RC \
20158
 
    lt_prog_compiler_pic_RC \
20159
 
    lt_prog_compiler_static_RC \
20160
 
    lt_prog_compiler_no_builtin_flag_RC \
20161
 
    export_dynamic_flag_spec_RC \
20162
 
    thread_safe_flag_spec_RC \
20163
 
    whole_archive_flag_spec_RC \
20164
 
    enable_shared_with_static_runtimes_RC \
20165
 
    old_archive_cmds_RC \
20166
 
    old_archive_from_new_cmds_RC \
20167
 
    predep_objects_RC \
20168
 
    postdep_objects_RC \
20169
 
    predeps_RC \
20170
 
    postdeps_RC \
20171
 
    compiler_lib_search_path_RC \
20172
 
    compiler_lib_search_dirs_RC \
20173
 
    archive_cmds_RC \
20174
 
    archive_expsym_cmds_RC \
20175
 
    postinstall_cmds_RC \
20176
 
    postuninstall_cmds_RC \
20177
 
    old_archive_from_expsyms_cmds_RC \
20178
 
    allow_undefined_flag_RC \
20179
 
    no_undefined_flag_RC \
20180
 
    export_symbols_cmds_RC \
20181
 
    hardcode_libdir_flag_spec_RC \
20182
 
    hardcode_libdir_flag_spec_ld_RC \
20183
 
    hardcode_libdir_separator_RC \
20184
 
    hardcode_automatic_RC \
20185
 
    module_cmds_RC \
20186
 
    module_expsym_cmds_RC \
20187
 
    lt_cv_prog_compiler_c_o_RC \
20188
 
    fix_srcfile_path_RC \
20189
 
    exclude_expsyms_RC \
20190
 
    include_expsyms_RC; do
20191
 
 
20192
 
    case $var in
20193
 
    old_archive_cmds_RC | \
20194
 
    old_archive_from_new_cmds_RC | \
20195
 
    archive_cmds_RC | \
20196
 
    archive_expsym_cmds_RC | \
20197
 
    module_cmds_RC | \
20198
 
    module_expsym_cmds_RC | \
20199
 
    old_archive_from_expsyms_cmds_RC | \
20200
 
    export_symbols_cmds_RC | \
20201
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20202
 
    postinstall_cmds | postuninstall_cmds | \
20203
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20204
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20205
 
      # Double-quote double-evaled strings.
20206
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20207
 
      ;;
20208
 
    *)
20209
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20210
 
      ;;
20211
 
    esac
20212
 
  done
20213
 
 
20214
 
  case $lt_echo in
20215
 
  *'\$0 --fallback-echo"')
20216
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20217
 
    ;;
20218
 
  esac
20219
 
 
20220
 
cfgfile="$ofile"
20221
 
 
20222
 
  cat <<__EOF__ >> "$cfgfile"
20223
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20224
 
 
20225
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20226
 
 
20227
 
# Shell to use when invoking shell scripts.
20228
 
SHELL=$lt_SHELL
20229
 
 
20230
 
# Whether or not to build shared libraries.
20231
 
build_libtool_libs=$enable_shared
20232
 
 
20233
 
# Whether or not to build static libraries.
20234
 
build_old_libs=$enable_static
20235
 
 
20236
 
# Whether or not to add -lc for building shared libraries.
20237
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20238
 
 
20239
 
# Whether or not to disallow shared libs when runtime libs are static
20240
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20241
 
 
20242
 
# Whether or not to optimize for fast installation.
20243
 
fast_install=$enable_fast_install
20244
 
 
20245
 
# The host system.
20246
 
host_alias=$host_alias
20247
 
host=$host
20248
 
host_os=$host_os
20249
 
 
20250
 
# The build system.
20251
 
build_alias=$build_alias
20252
 
build=$build
20253
 
build_os=$build_os
20254
 
 
20255
 
# An echo program that does not interpret backslashes.
20256
 
echo=$lt_echo
20257
 
 
20258
 
# The archiver.
20259
 
AR=$lt_AR
20260
 
AR_FLAGS=$lt_AR_FLAGS
20261
 
 
20262
 
# A C compiler.
20263
 
LTCC=$lt_LTCC
20264
 
 
20265
 
# LTCC compiler flags.
20266
 
LTCFLAGS=$lt_LTCFLAGS
20267
 
 
20268
 
# A language-specific compiler.
20269
 
CC=$lt_compiler_RC
20270
 
 
20271
 
# Is the compiler the GNU C compiler?
20272
 
with_gcc=$GCC_RC
20273
 
 
20274
 
# An ERE matcher.
20275
 
EGREP=$lt_EGREP
20276
 
 
20277
 
# The linker used to build libraries.
20278
 
LD=$lt_LD_RC
20279
 
 
20280
 
# Whether we need hard or soft links.
20281
 
LN_S=$lt_LN_S
20282
 
 
20283
 
# A BSD-compatible nm program.
20284
 
NM=$lt_NM
20285
 
 
20286
 
# A symbol stripping program
20287
 
STRIP=$lt_STRIP
20288
 
 
20289
 
# Used to examine libraries when file_magic_cmd begins "file"
20290
 
MAGIC_CMD=$MAGIC_CMD
20291
 
 
20292
 
# Used on cygwin: DLL creation program.
20293
 
DLLTOOL="$DLLTOOL"
20294
 
 
20295
 
# Used on cygwin: object dumper.
20296
 
OBJDUMP="$OBJDUMP"
20297
 
 
20298
 
# Used on cygwin: assembler.
20299
 
AS="$AS"
20300
 
 
20301
 
# The name of the directory that contains temporary libtool files.
20302
 
objdir=$objdir
20303
 
 
20304
 
# How to create reloadable object files.
20305
 
reload_flag=$lt_reload_flag
20306
 
reload_cmds=$lt_reload_cmds
20307
 
 
20308
 
# How to pass a linker flag through the compiler.
20309
 
wl=$lt_lt_prog_compiler_wl_RC
20310
 
 
20311
 
# Object file suffix (normally "o").
20312
 
objext="$ac_objext"
20313
 
 
20314
 
# Old archive suffix (normally "a").
20315
 
libext="$libext"
20316
 
 
20317
 
# Shared library suffix (normally ".so").
20318
 
shrext_cmds='$shrext_cmds'
20319
 
 
20320
 
# Executable file suffix (normally "").
20321
 
exeext="$exeext"
20322
 
 
20323
 
# Additional compiler flags for building library objects.
20324
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20325
 
pic_mode=$pic_mode
20326
 
 
20327
 
# What is the maximum length of a command?
20328
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20329
 
 
20330
 
# Does compiler simultaneously support -c and -o options?
20331
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20332
 
 
20333
 
# Must we lock files when doing compilation?
20334
 
need_locks=$lt_need_locks
20335
 
 
20336
 
# Do we need the lib prefix for modules?
20337
 
need_lib_prefix=$need_lib_prefix
20338
 
 
20339
 
# Do we need a version for libraries?
20340
 
need_version=$need_version
20341
 
 
20342
 
# Whether dlopen is supported.
20343
 
dlopen_support=$enable_dlopen
20344
 
 
20345
 
# Whether dlopen of programs is supported.
20346
 
dlopen_self=$enable_dlopen_self
20347
 
 
20348
 
# Whether dlopen of statically linked programs is supported.
20349
 
dlopen_self_static=$enable_dlopen_self_static
20350
 
 
20351
 
# Compiler flag to prevent dynamic linking.
20352
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20353
 
 
20354
 
# Compiler flag to turn off builtin functions.
20355
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20356
 
 
20357
 
# Compiler flag to allow reflexive dlopens.
20358
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20359
 
 
20360
 
# Compiler flag to generate shared objects directly from archives.
20361
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20362
 
 
20363
 
# Compiler flag to generate thread-safe objects.
20364
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20365
 
 
20366
 
# Library versioning type.
20367
 
version_type=$version_type
20368
 
 
20369
 
# Format of library name prefix.
20370
 
libname_spec=$lt_libname_spec
20371
 
 
20372
 
# List of archive names.  First name is the real one, the rest are links.
20373
 
# The last name is the one that the linker finds with -lNAME.
20374
 
library_names_spec=$lt_library_names_spec
20375
 
 
20376
 
# The coded name of the library, if different from the real name.
20377
 
soname_spec=$lt_soname_spec
20378
 
 
20379
 
# Commands used to build and install an old-style archive.
20380
 
RANLIB=$lt_RANLIB
20381
 
old_archive_cmds=$lt_old_archive_cmds_RC
20382
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20383
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20384
 
 
20385
 
# Create an old-style archive from a shared archive.
20386
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20387
 
 
20388
 
# Create a temporary old-style archive to link instead of a shared archive.
20389
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20390
 
 
20391
 
# Commands used to build and install a shared archive.
20392
 
archive_cmds=$lt_archive_cmds_RC
20393
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20394
 
postinstall_cmds=$lt_postinstall_cmds
20395
 
postuninstall_cmds=$lt_postuninstall_cmds
20396
 
 
20397
 
# Commands used to build a loadable module (assumed same as above if empty)
20398
 
module_cmds=$lt_module_cmds_RC
20399
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20400
 
 
20401
 
# Commands to strip libraries.
20402
 
old_striplib=$lt_old_striplib
20403
 
striplib=$lt_striplib
20404
 
 
20405
 
# Dependencies to place before the objects being linked to create a
20406
 
# shared library.
20407
 
predep_objects=$lt_predep_objects_RC
20408
 
 
20409
 
# Dependencies to place after the objects being linked to create a
20410
 
# shared library.
20411
 
postdep_objects=$lt_postdep_objects_RC
20412
 
 
20413
 
# Dependencies to place before the objects being linked to create a
20414
 
# shared library.
20415
 
predeps=$lt_predeps_RC
20416
 
 
20417
 
# Dependencies to place after the objects being linked to create a
20418
 
# shared library.
20419
 
postdeps=$lt_postdeps_RC
20420
 
 
20421
 
# The directories searched by this compiler when creating a shared
20422
 
# library
20423
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20424
 
 
20425
 
# The library search path used internally by the compiler when linking
20426
 
# a shared library.
20427
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20428
 
 
20429
 
# Method to check whether dependent libraries are shared objects.
20430
 
deplibs_check_method=$lt_deplibs_check_method
20431
 
 
20432
 
# Command to use when deplibs_check_method == file_magic.
20433
 
file_magic_cmd=$lt_file_magic_cmd
20434
 
 
20435
 
# Flag that allows shared libraries with undefined symbols to be built.
20436
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20437
 
 
20438
 
# Flag that forces no undefined symbols.
20439
 
no_undefined_flag=$lt_no_undefined_flag_RC
20440
 
 
20441
 
# Commands used to finish a libtool library installation in a directory.
20442
 
finish_cmds=$lt_finish_cmds
20443
 
 
20444
 
# Same as above, but a single script fragment to be evaled but not shown.
20445
 
finish_eval=$lt_finish_eval
20446
 
 
20447
 
# Take the output of nm and produce a listing of raw symbols and C names.
20448
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20449
 
 
20450
 
# Transform the output of nm in a proper C declaration
20451
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20452
 
 
20453
 
# Transform the output of nm in a C name address pair
20454
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20455
 
 
20456
 
# This is the shared library runtime path variable.
20457
 
runpath_var=$runpath_var
20458
 
 
20459
 
# This is the shared library path variable.
20460
 
shlibpath_var=$shlibpath_var
20461
 
 
20462
 
# Is shlibpath searched before the hard-coded library search path?
20463
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20464
 
 
20465
 
# How to hardcode a shared library path into an executable.
20466
 
hardcode_action=$hardcode_action_RC
20467
 
 
20468
 
# Whether we should hardcode library paths into libraries.
20469
 
hardcode_into_libs=$hardcode_into_libs
20470
 
 
20471
 
# Flag to hardcode \$libdir into a binary during linking.
20472
 
# This must work even if \$libdir does not exist.
20473
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20474
 
 
20475
 
# If ld is used when linking, flag to hardcode \$libdir into
20476
 
# a binary during linking. This must work even if \$libdir does
20477
 
# not exist.
20478
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20479
 
 
20480
 
# Whether we need a single -rpath flag with a separated argument.
20481
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20482
 
 
20483
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20484
 
# resulting binary.
20485
 
hardcode_direct=$hardcode_direct_RC
20486
 
 
20487
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20488
 
# resulting binary.
20489
 
hardcode_minus_L=$hardcode_minus_L_RC
20490
 
 
20491
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20492
 
# the resulting binary.
20493
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20494
 
 
20495
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20496
 
# and all subsequent libraries and executables linked against it.
20497
 
hardcode_automatic=$hardcode_automatic_RC
20498
 
 
20499
 
# Variables whose values should be saved in libtool wrapper scripts and
20500
 
# restored at relink time.
20501
 
variables_saved_for_relink="$variables_saved_for_relink"
20502
 
 
20503
 
# Whether libtool must link a program against all its dependency libraries.
20504
 
link_all_deplibs=$link_all_deplibs_RC
20505
 
 
20506
 
# Compile-time system search path for libraries
20507
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20508
 
 
20509
 
# Run-time system search path for libraries
20510
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20511
 
 
20512
 
# Fix the shell variable \$srcfile for the compiler.
20513
 
fix_srcfile_path=$lt_fix_srcfile_path
20514
 
 
20515
 
# Set to yes if exported symbols are required.
20516
 
always_export_symbols=$always_export_symbols_RC
20517
 
 
20518
 
# The commands to list exported symbols.
20519
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20520
 
 
20521
 
# The commands to extract the exported symbol list from a shared archive.
20522
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20523
 
 
20524
 
# Symbols that should not be listed in the preloaded symbols.
20525
 
exclude_expsyms=$lt_exclude_expsyms_RC
20526
 
 
20527
 
# Symbols that must always be exported.
20528
 
include_expsyms=$lt_include_expsyms_RC
20529
 
 
20530
 
# ### END LIBTOOL TAG CONFIG: $tagname
20531
 
 
20532
 
__EOF__
20533
 
 
20534
 
 
20535
 
else
20536
 
  # If there is no Makefile yet, we rely on a make rule to execute
20537
 
  # `config.status --recheck' to rerun these tests and create the
20538
 
  # libtool script then.
20539
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20540
 
  if test -f "$ltmain_in"; then
20541
 
    test -f Makefile && make "$ltmain"
20542
 
  fi
20543
 
fi
20544
 
 
20545
 
 
20546
 
ac_ext=c
20547
 
ac_cpp='$CPP $CPPFLAGS'
20548
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551
 
 
20552
 
CC="$lt_save_CC"
20553
 
 
20554
 
        ;;
20555
 
 
20556
 
      *)
20557
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20558
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20559
 
   { (exit 1); exit 1; }; }
20560
 
        ;;
20561
 
      esac
20562
 
 
20563
 
      # Append the new tag name to the list of available tags.
20564
 
      if test -n "$tagname" ; then
20565
 
      available_tags="$available_tags $tagname"
20566
 
    fi
20567
 
    fi
20568
 
  done
20569
 
  IFS="$lt_save_ifs"
20570
 
 
20571
 
  # Now substitute the updated list of available tags.
20572
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20573
 
    mv "${ofile}T" "$ofile"
20574
 
    chmod +x "$ofile"
20575
 
  else
20576
 
    rm -f "${ofile}T"
20577
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20578
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20579
 
   { (exit 1); exit 1; }; }
20580
 
  fi
20581
 
fi
20582
 
 
20583
 
 
20584
 
 
20585
 
# This can be used to rebuild libtool when needed
20586
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20587
 
 
20588
 
# Always use our own libtool.
20589
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20590
 
 
20591
 
# Prevent multiple expansion
20592
 
 
20593
 
 
20594
 
 
20595
 
 
20596
 
 
20597
 
 
20598
 
 
 
14942
 
 
14943
 
 
14944
 
 
14945
 
 
14946
 
 
14947
 
 
14948
 
 
14949
 
 
14950
 
 
14951
 
 
14952
 
 
14953
 
 
14954
 
 
14955
 
 
14956
 
 
14957
striplib=
 
14958
old_striplib=
 
14959
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14960
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
14961
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
14962
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14963
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14964
  { echo "$as_me:$LINENO: result: yes" >&5
 
14965
echo "${ECHO_T}yes" >&6; }
 
14966
else
 
14967
# FIXME - insert some real tests, host_os isn't really good enough
 
14968
  case $host_os in
 
14969
  darwin*)
 
14970
    if test -n "$STRIP" ; then
 
14971
      striplib="$STRIP -x"
 
14972
      old_striplib="$STRIP -S"
 
14973
      { echo "$as_me:$LINENO: result: yes" >&5
 
14974
echo "${ECHO_T}yes" >&6; }
 
14975
    else
 
14976
      { echo "$as_me:$LINENO: result: no" >&5
 
14977
echo "${ECHO_T}no" >&6; }
 
14978
    fi
 
14979
    ;;
 
14980
  *)
 
14981
    { echo "$as_me:$LINENO: result: no" >&5
 
14982
echo "${ECHO_T}no" >&6; }
 
14983
    ;;
 
14984
  esac
 
14985
fi
 
14986
 
 
14987
 
 
14988
 
 
14989
 
 
14990
 
 
14991
 
 
14992
 
 
14993
 
 
14994
 
 
14995
 
 
14996
 
 
14997
 
 
14998
  # Report which library types will actually be built
 
14999
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15000
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
15001
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15002
echo "${ECHO_T}$can_build_shared" >&6; }
 
15003
 
 
15004
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15005
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
15006
  test "$can_build_shared" = "no" && enable_shared=no
 
15007
 
 
15008
  # On AIX, shared libraries and static libraries use the same namespace, and
 
15009
  # are all built from PIC.
 
15010
  case $host_os in
 
15011
  aix3*)
 
15012
    test "$enable_shared" = yes && enable_static=no
 
15013
    if test -n "$RANLIB"; then
 
15014
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15015
      postinstall_cmds='$RANLIB $lib'
 
15016
    fi
 
15017
    ;;
 
15018
 
 
15019
  aix[4-9]*)
 
15020
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
15021
      test "$enable_shared" = yes && enable_static=no
 
15022
    fi
 
15023
    ;;
 
15024
  esac
 
15025
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15026
echo "${ECHO_T}$enable_shared" >&6; }
 
15027
 
 
15028
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15029
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
15030
  # Make sure either enable_shared or enable_static is yes.
 
15031
  test "$enable_shared" = yes || enable_static=yes
 
15032
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
15033
echo "${ECHO_T}$enable_static" >&6; }
 
15034
 
 
15035
 
 
15036
 
 
15037
 
 
15038
fi
 
15039
ac_ext=c
 
15040
ac_cpp='$CPP $CPPFLAGS'
 
15041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15044
 
 
15045
CC="$lt_save_CC"
 
15046
 
 
15047
 
 
15048
 
 
15049
 
 
15050
 
 
15051
 
 
15052
 
 
15053
 
 
15054
 
 
15055
 
 
15056
 
 
15057
 
 
15058
 
 
15059
        ac_config_commands="$ac_config_commands libtool"
 
15060
 
 
15061
 
 
15062
 
 
15063
 
 
15064
# Only expand once:
20599
15065
 
20600
15066
 
20601
15067
 
20812
15278
 
20813
15279
 
20814
15280
 
 
15281
  #
 
15282
  compiler_id="unknown"
 
15283
  compiler_num="0"
 
15284
  #
 
15285
  flags_dbg_all="unknown"
 
15286
  flags_dbg_yes="unknown"
 
15287
  flags_dbg_off="unknown"
 
15288
  flags_opt_all="unknown"
 
15289
  flags_opt_yes="unknown"
 
15290
  flags_opt_off="unknown"
 
15291
  #
 
15292
 
 
15293
  { echo "$as_me:$LINENO: checking if compiler is DEC/Compaq/HP C" >&5
 
15294
echo $ECHO_N "checking if compiler is DEC/Compaq/HP C... $ECHO_C" >&6; }
 
15295
 
 
15296
      if test -z "$SED"; then
 
15297
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15298
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15299
   { (exit 1); exit 1; }; }
 
15300
  fi
 
15301
  if test -z "$GREP"; then
 
15302
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15303
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15304
   { (exit 1); exit 1; }; }
 
15305
  fi
 
15306
 
 
15307
  tmp_exp=""
 
15308
  cat >conftest.$ac_ext <<_ACEOF
 
15309
 
 
15310
    /* confdefs.h.  */
 
15311
_ACEOF
 
15312
cat confdefs.h >>conftest.$ac_ext
 
15313
cat >>conftest.$ac_ext <<_ACEOF
 
15314
/* end confdefs.h.  */
 
15315
 
 
15316
#ifdef __DECC
 
15317
CURL_DEF_TOKEN __DECC
 
15318
#endif
 
15319
 
 
15320
 
 
15321
_ACEOF
 
15322
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15323
case "(($ac_try" in
 
15324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15325
  *) ac_try_echo=$ac_try;;
 
15326
esac
 
15327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15328
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15329
  ac_status=$?
 
15330
  grep -v '^ *+' conftest.er1 >conftest.err
 
15331
  rm -f conftest.er1
 
15332
  cat conftest.err >&5
 
15333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15334
  (exit $ac_status); } >/dev/null && {
 
15335
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15336
         test ! -s conftest.err
 
15337
       }; then
 
15338
 
 
15339
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15340
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15341
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15342
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15343
    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
 
15344
      tmp_exp=""
 
15345
    fi
 
15346
 
 
15347
else
 
15348
  echo "$as_me: failed program was:" >&5
 
15349
sed 's/^/| /' conftest.$ac_ext >&5
 
15350
 
 
15351
 
 
15352
fi
 
15353
 
 
15354
rm -f conftest.err conftest.$ac_ext
 
15355
  if test -z "$tmp_exp"; then
 
15356
    curl_cv_have_def___DECC=no
 
15357
 
 
15358
  else
 
15359
    curl_cv_have_def___DECC=yes
 
15360
    curl_cv_def___DECC=$tmp_exp
 
15361
 
 
15362
  fi
 
15363
 
 
15364
 
 
15365
      if test -z "$SED"; then
 
15366
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15367
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15368
   { (exit 1); exit 1; }; }
 
15369
  fi
 
15370
  if test -z "$GREP"; then
 
15371
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15372
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15373
   { (exit 1); exit 1; }; }
 
15374
  fi
 
15375
 
 
15376
  tmp_exp=""
 
15377
  cat >conftest.$ac_ext <<_ACEOF
 
15378
 
 
15379
    /* confdefs.h.  */
 
15380
_ACEOF
 
15381
cat confdefs.h >>conftest.$ac_ext
 
15382
cat >>conftest.$ac_ext <<_ACEOF
 
15383
/* end confdefs.h.  */
 
15384
 
 
15385
#ifdef __DECC_VER
 
15386
CURL_DEF_TOKEN __DECC_VER
 
15387
#endif
 
15388
 
 
15389
 
 
15390
_ACEOF
 
15391
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15392
case "(($ac_try" in
 
15393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15394
  *) ac_try_echo=$ac_try;;
 
15395
esac
 
15396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15397
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15398
  ac_status=$?
 
15399
  grep -v '^ *+' conftest.er1 >conftest.err
 
15400
  rm -f conftest.er1
 
15401
  cat conftest.err >&5
 
15402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15403
  (exit $ac_status); } >/dev/null && {
 
15404
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15405
         test ! -s conftest.err
 
15406
       }; then
 
15407
 
 
15408
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15409
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15410
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15411
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15412
    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
 
15413
      tmp_exp=""
 
15414
    fi
 
15415
 
 
15416
else
 
15417
  echo "$as_me: failed program was:" >&5
 
15418
sed 's/^/| /' conftest.$ac_ext >&5
 
15419
 
 
15420
 
 
15421
fi
 
15422
 
 
15423
rm -f conftest.err conftest.$ac_ext
 
15424
  if test -z "$tmp_exp"; then
 
15425
    curl_cv_have_def___DECC_VER=no
 
15426
 
 
15427
  else
 
15428
    curl_cv_have_def___DECC_VER=yes
 
15429
    curl_cv_def___DECC_VER=$tmp_exp
 
15430
 
 
15431
  fi
 
15432
 
 
15433
  if test "$curl_cv_have_def___DECC" = "yes" &&
 
15434
    test "$curl_cv_have_def___DECC_VER" = "yes"; then
 
15435
    { echo "$as_me:$LINENO: result: yes" >&5
 
15436
echo "${ECHO_T}yes" >&6; }
 
15437
    compiler_id="DEC_C"
 
15438
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
15439
    flags_dbg_yes="-g2"
 
15440
    flags_dbg_off="-g0"
 
15441
    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
 
15442
    flags_opt_yes="-O1"
 
15443
    flags_opt_off="-O0"
 
15444
  else
 
15445
    { echo "$as_me:$LINENO: result: no" >&5
 
15446
echo "${ECHO_T}no" >&6; }
 
15447
  fi
 
15448
 
 
15449
 
 
15450
  { echo "$as_me:$LINENO: checking if compiler is HP-UX C" >&5
 
15451
echo $ECHO_N "checking if compiler is HP-UX C... $ECHO_C" >&6; }
 
15452
 
 
15453
      if test -z "$SED"; then
 
15454
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15455
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15456
   { (exit 1); exit 1; }; }
 
15457
  fi
 
15458
  if test -z "$GREP"; then
 
15459
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15460
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15461
   { (exit 1); exit 1; }; }
 
15462
  fi
 
15463
 
 
15464
  tmp_exp=""
 
15465
  cat >conftest.$ac_ext <<_ACEOF
 
15466
 
 
15467
    /* confdefs.h.  */
 
15468
_ACEOF
 
15469
cat confdefs.h >>conftest.$ac_ext
 
15470
cat >>conftest.$ac_ext <<_ACEOF
 
15471
/* end confdefs.h.  */
 
15472
 
 
15473
#ifdef __HP_cc
 
15474
CURL_DEF_TOKEN __HP_cc
 
15475
#endif
 
15476
 
 
15477
 
 
15478
_ACEOF
 
15479
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15480
case "(($ac_try" in
 
15481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15482
  *) ac_try_echo=$ac_try;;
 
15483
esac
 
15484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15485
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15486
  ac_status=$?
 
15487
  grep -v '^ *+' conftest.er1 >conftest.err
 
15488
  rm -f conftest.er1
 
15489
  cat conftest.err >&5
 
15490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15491
  (exit $ac_status); } >/dev/null && {
 
15492
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15493
         test ! -s conftest.err
 
15494
       }; then
 
15495
 
 
15496
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15497
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15498
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15499
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15500
    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
 
15501
      tmp_exp=""
 
15502
    fi
 
15503
 
 
15504
else
 
15505
  echo "$as_me: failed program was:" >&5
 
15506
sed 's/^/| /' conftest.$ac_ext >&5
 
15507
 
 
15508
 
 
15509
fi
 
15510
 
 
15511
rm -f conftest.err conftest.$ac_ext
 
15512
  if test -z "$tmp_exp"; then
 
15513
    curl_cv_have_def___HP_cc=no
 
15514
 
 
15515
  else
 
15516
    curl_cv_have_def___HP_cc=yes
 
15517
    curl_cv_def___HP_cc=$tmp_exp
 
15518
 
 
15519
  fi
 
15520
 
 
15521
  if test "$curl_cv_have_def___HP_cc" = "yes"; then
 
15522
    { echo "$as_me:$LINENO: result: yes" >&5
 
15523
echo "${ECHO_T}yes" >&6; }
 
15524
    compiler_id="HP_UX_C"
 
15525
    flags_dbg_all="-g -s"
 
15526
    flags_dbg_yes="-g"
 
15527
    flags_dbg_off="-s"
 
15528
    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
 
15529
    flags_opt_yes="+O2"
 
15530
    flags_opt_off="+O0"
 
15531
  else
 
15532
    { echo "$as_me:$LINENO: result: no" >&5
 
15533
echo "${ECHO_T}no" >&6; }
 
15534
  fi
 
15535
 
 
15536
 
 
15537
  { echo "$as_me:$LINENO: checking if compiler is IBM C" >&5
 
15538
echo $ECHO_N "checking if compiler is IBM C... $ECHO_C" >&6; }
 
15539
 
 
15540
      if test -z "$SED"; then
 
15541
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15542
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15543
   { (exit 1); exit 1; }; }
 
15544
  fi
 
15545
  if test -z "$GREP"; then
 
15546
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15547
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15548
   { (exit 1); exit 1; }; }
 
15549
  fi
 
15550
 
 
15551
  tmp_exp=""
 
15552
  cat >conftest.$ac_ext <<_ACEOF
 
15553
 
 
15554
    /* confdefs.h.  */
 
15555
_ACEOF
 
15556
cat confdefs.h >>conftest.$ac_ext
 
15557
cat >>conftest.$ac_ext <<_ACEOF
 
15558
/* end confdefs.h.  */
 
15559
 
 
15560
#ifdef __IBMC__
 
15561
CURL_DEF_TOKEN __IBMC__
 
15562
#endif
 
15563
 
 
15564
 
 
15565
_ACEOF
 
15566
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15567
case "(($ac_try" in
 
15568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15569
  *) ac_try_echo=$ac_try;;
 
15570
esac
 
15571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15572
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15573
  ac_status=$?
 
15574
  grep -v '^ *+' conftest.er1 >conftest.err
 
15575
  rm -f conftest.er1
 
15576
  cat conftest.err >&5
 
15577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15578
  (exit $ac_status); } >/dev/null && {
 
15579
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15580
         test ! -s conftest.err
 
15581
       }; then
 
15582
 
 
15583
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15584
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15585
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15586
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15587
    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
 
15588
      tmp_exp=""
 
15589
    fi
 
15590
 
 
15591
else
 
15592
  echo "$as_me: failed program was:" >&5
 
15593
sed 's/^/| /' conftest.$ac_ext >&5
 
15594
 
 
15595
 
 
15596
fi
 
15597
 
 
15598
rm -f conftest.err conftest.$ac_ext
 
15599
  if test -z "$tmp_exp"; then
 
15600
    curl_cv_have_def___IBMC__=no
 
15601
 
 
15602
  else
 
15603
    curl_cv_have_def___IBMC__=yes
 
15604
    curl_cv_def___IBMC__=$tmp_exp
 
15605
 
 
15606
  fi
 
15607
 
 
15608
  if test "$curl_cv_have_def___IBMC__" = "yes"; then
 
15609
    { echo "$as_me:$LINENO: result: yes" >&5
 
15610
echo "${ECHO_T}yes" >&6; }
 
15611
    compiler_id="IBM_C"
 
15612
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
15613
    flags_dbg_yes="-g"
 
15614
    flags_dbg_off=""
 
15615
    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
 
15616
    flags_opt_all="$flags_opt_all -qnooptimize"
 
15617
    flags_opt_all="$flags_opt_all -qoptimize=0"
 
15618
    flags_opt_all="$flags_opt_all -qoptimize=1"
 
15619
    flags_opt_all="$flags_opt_all -qoptimize=2"
 
15620
    flags_opt_all="$flags_opt_all -qoptimize=3"
 
15621
    flags_opt_all="$flags_opt_all -qoptimize=4"
 
15622
    flags_opt_all="$flags_opt_all -qoptimize=5"
 
15623
    flags_opt_yes="-O2"
 
15624
    flags_opt_off="-qnooptimize"
 
15625
  else
 
15626
    { echo "$as_me:$LINENO: result: no" >&5
 
15627
echo "${ECHO_T}no" >&6; }
 
15628
  fi
 
15629
 
 
15630
 
 
15631
    { echo "$as_me:$LINENO: checking if compiler is Intel C" >&5
 
15632
echo $ECHO_N "checking if compiler is Intel C... $ECHO_C" >&6; }
 
15633
 
 
15634
      if test -z "$SED"; then
 
15635
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15636
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15637
   { (exit 1); exit 1; }; }
 
15638
  fi
 
15639
  if test -z "$GREP"; then
 
15640
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15641
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15642
   { (exit 1); exit 1; }; }
 
15643
  fi
 
15644
 
 
15645
  tmp_exp=""
 
15646
  cat >conftest.$ac_ext <<_ACEOF
 
15647
 
 
15648
    /* confdefs.h.  */
 
15649
_ACEOF
 
15650
cat confdefs.h >>conftest.$ac_ext
 
15651
cat >>conftest.$ac_ext <<_ACEOF
 
15652
/* end confdefs.h.  */
 
15653
 
 
15654
#ifdef __INTEL_COMPILER
 
15655
CURL_DEF_TOKEN __INTEL_COMPILER
 
15656
#endif
 
15657
 
 
15658
 
 
15659
_ACEOF
 
15660
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15661
case "(($ac_try" in
 
15662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15663
  *) ac_try_echo=$ac_try;;
 
15664
esac
 
15665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15666
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15667
  ac_status=$?
 
15668
  grep -v '^ *+' conftest.er1 >conftest.err
 
15669
  rm -f conftest.er1
 
15670
  cat conftest.err >&5
 
15671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15672
  (exit $ac_status); } >/dev/null && {
 
15673
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15674
         test ! -s conftest.err
 
15675
       }; then
 
15676
 
 
15677
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15678
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15679
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15680
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15681
    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
 
15682
      tmp_exp=""
 
15683
    fi
 
15684
 
 
15685
else
 
15686
  echo "$as_me: failed program was:" >&5
 
15687
sed 's/^/| /' conftest.$ac_ext >&5
 
15688
 
 
15689
 
 
15690
fi
 
15691
 
 
15692
rm -f conftest.err conftest.$ac_ext
 
15693
  if test -z "$tmp_exp"; then
 
15694
    curl_cv_have_def___INTEL_COMPILER=no
 
15695
 
 
15696
  else
 
15697
    curl_cv_have_def___INTEL_COMPILER=yes
 
15698
    curl_cv_def___INTEL_COMPILER=$tmp_exp
 
15699
 
 
15700
  fi
 
15701
 
 
15702
  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
 
15703
    { echo "$as_me:$LINENO: result: yes" >&5
 
15704
echo "${ECHO_T}yes" >&6; }
 
15705
    compiler_num="$curl_cv_def___INTEL_COMPILER"
 
15706
 
 
15707
      if test -z "$SED"; then
 
15708
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15709
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15710
   { (exit 1); exit 1; }; }
 
15711
  fi
 
15712
  if test -z "$GREP"; then
 
15713
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15714
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15715
   { (exit 1); exit 1; }; }
 
15716
  fi
 
15717
 
 
15718
  tmp_exp=""
 
15719
  cat >conftest.$ac_ext <<_ACEOF
 
15720
 
 
15721
    /* confdefs.h.  */
 
15722
_ACEOF
 
15723
cat confdefs.h >>conftest.$ac_ext
 
15724
cat >>conftest.$ac_ext <<_ACEOF
 
15725
/* end confdefs.h.  */
 
15726
 
 
15727
#ifdef __i386__
 
15728
CURL_DEF_TOKEN __i386__
 
15729
#endif
 
15730
 
 
15731
 
 
15732
_ACEOF
 
15733
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15734
case "(($ac_try" in
 
15735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15736
  *) ac_try_echo=$ac_try;;
 
15737
esac
 
15738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15740
  ac_status=$?
 
15741
  grep -v '^ *+' conftest.er1 >conftest.err
 
15742
  rm -f conftest.er1
 
15743
  cat conftest.err >&5
 
15744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15745
  (exit $ac_status); } >/dev/null && {
 
15746
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15747
         test ! -s conftest.err
 
15748
       }; then
 
15749
 
 
15750
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15751
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15752
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15753
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15754
    if test -z "$tmp_exp" || test "$tmp_exp" = "__i386__"; then
 
15755
      tmp_exp=""
 
15756
    fi
 
15757
 
 
15758
else
 
15759
  echo "$as_me: failed program was:" >&5
 
15760
sed 's/^/| /' conftest.$ac_ext >&5
 
15761
 
 
15762
 
 
15763
fi
 
15764
 
 
15765
rm -f conftest.err conftest.$ac_ext
 
15766
  if test -z "$tmp_exp"; then
 
15767
    curl_cv_have_def___i386__=no
 
15768
 
 
15769
  else
 
15770
    curl_cv_have_def___i386__=yes
 
15771
    curl_cv_def___i386__=$tmp_exp
 
15772
 
 
15773
  fi
 
15774
 
 
15775
 
 
15776
      if test -z "$SED"; then
 
15777
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15778
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15779
   { (exit 1); exit 1; }; }
 
15780
  fi
 
15781
  if test -z "$GREP"; then
 
15782
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15783
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15784
   { (exit 1); exit 1; }; }
 
15785
  fi
 
15786
 
 
15787
  tmp_exp=""
 
15788
  cat >conftest.$ac_ext <<_ACEOF
 
15789
 
 
15790
    /* confdefs.h.  */
 
15791
_ACEOF
 
15792
cat confdefs.h >>conftest.$ac_ext
 
15793
cat >>conftest.$ac_ext <<_ACEOF
 
15794
/* end confdefs.h.  */
 
15795
 
 
15796
#ifdef __unix__
 
15797
CURL_DEF_TOKEN __unix__
 
15798
#endif
 
15799
 
 
15800
 
 
15801
_ACEOF
 
15802
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15803
case "(($ac_try" in
 
15804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15805
  *) ac_try_echo=$ac_try;;
 
15806
esac
 
15807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15808
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15809
  ac_status=$?
 
15810
  grep -v '^ *+' conftest.er1 >conftest.err
 
15811
  rm -f conftest.er1
 
15812
  cat conftest.err >&5
 
15813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15814
  (exit $ac_status); } >/dev/null && {
 
15815
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15816
         test ! -s conftest.err
 
15817
       }; then
 
15818
 
 
15819
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15820
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15821
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15822
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15823
    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
 
15824
      tmp_exp=""
 
15825
    fi
 
15826
 
 
15827
else
 
15828
  echo "$as_me: failed program was:" >&5
 
15829
sed 's/^/| /' conftest.$ac_ext >&5
 
15830
 
 
15831
 
 
15832
fi
 
15833
 
 
15834
rm -f conftest.err conftest.$ac_ext
 
15835
  if test -z "$tmp_exp"; then
 
15836
    curl_cv_have_def___unix__=no
 
15837
 
 
15838
  else
 
15839
    curl_cv_have_def___unix__=yes
 
15840
    curl_cv_def___unix__=$tmp_exp
 
15841
 
 
15842
  fi
 
15843
 
 
15844
    if test "$curl_cv_have_def___unix__" = "yes"; then
 
15845
      compiler_id="INTEL_UNIX_C"
 
15846
      flags_dbg_all="-g -g0"
 
15847
      flags_dbg_yes="-g"
 
15848
      flags_dbg_off="-g0"
 
15849
      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
 
15850
      flags_opt_yes="-O2"
 
15851
      flags_opt_off="-O0"
 
15852
            if test "$curl_cv_have_def___i386__" = "yes" &&
 
15853
        test "$compiler_num" -eq "910"; then
 
15854
        INTEL_UNIX_C_OPT_SIGSEGV="yes"
 
15855
      else
 
15856
        INTEL_UNIX_C_OPT_SIGSEGV="no"
 
15857
      fi
 
15858
    else
 
15859
      compiler_id="INTEL_WINDOWS_C"
 
15860
      flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
 
15861
      flags_dbg_all="$flags_dbg_all /debug"
 
15862
      flags_dbg_all="$flags_dbg_all /debug:none"
 
15863
      flags_dbg_all="$flags_dbg_all /debug:minimal"
 
15864
      flags_dbg_all="$flags_dbg_all /debug:partial"
 
15865
      flags_dbg_all="$flags_dbg_all /debug:full"
 
15866
      flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
 
15867
      flags_dbg_all="$flags_dbg_all /debug:extended"
 
15868
      flags_dbg_yes="/Zi /Oy-"
 
15869
      flags_dbg_off="/debug:none /Oy-"
 
15870
      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
 
15871
      flags_opt_yes="/O2"
 
15872
      flags_opt_off="/Od"
 
15873
    fi
 
15874
  else
 
15875
    { echo "$as_me:$LINENO: result: no" >&5
 
15876
echo "${ECHO_T}no" >&6; }
 
15877
  fi
 
15878
 
 
15879
 
 
15880
    { echo "$as_me:$LINENO: checking if compiler is GNU C" >&5
 
15881
echo $ECHO_N "checking if compiler is GNU C... $ECHO_C" >&6; }
 
15882
 
 
15883
      if test -z "$SED"; then
 
15884
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15885
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15886
   { (exit 1); exit 1; }; }
 
15887
  fi
 
15888
  if test -z "$GREP"; then
 
15889
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15890
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15891
   { (exit 1); exit 1; }; }
 
15892
  fi
 
15893
 
 
15894
  tmp_exp=""
 
15895
  cat >conftest.$ac_ext <<_ACEOF
 
15896
 
 
15897
    /* confdefs.h.  */
 
15898
_ACEOF
 
15899
cat confdefs.h >>conftest.$ac_ext
 
15900
cat >>conftest.$ac_ext <<_ACEOF
 
15901
/* end confdefs.h.  */
 
15902
 
 
15903
#ifdef __GNUC__
 
15904
CURL_DEF_TOKEN __GNUC__
 
15905
#endif
 
15906
 
 
15907
 
 
15908
_ACEOF
 
15909
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
15910
case "(($ac_try" in
 
15911
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15912
  *) ac_try_echo=$ac_try;;
 
15913
esac
 
15914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15915
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
15916
  ac_status=$?
 
15917
  grep -v '^ *+' conftest.er1 >conftest.err
 
15918
  rm -f conftest.er1
 
15919
  cat conftest.err >&5
 
15920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15921
  (exit $ac_status); } >/dev/null && {
 
15922
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
15923
         test ! -s conftest.err
 
15924
       }; then
 
15925
 
 
15926
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
15927
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
15928
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
15929
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
15930
    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
 
15931
      tmp_exp=""
 
15932
    fi
 
15933
 
 
15934
else
 
15935
  echo "$as_me: failed program was:" >&5
 
15936
sed 's/^/| /' conftest.$ac_ext >&5
 
15937
 
 
15938
 
 
15939
fi
 
15940
 
 
15941
rm -f conftest.err conftest.$ac_ext
 
15942
  if test -z "$tmp_exp"; then
 
15943
    curl_cv_have_def___GNUC__=no
 
15944
 
 
15945
  else
 
15946
    curl_cv_have_def___GNUC__=yes
 
15947
    curl_cv_def___GNUC__=$tmp_exp
 
15948
 
 
15949
  fi
 
15950
 
 
15951
  if test "$curl_cv_have_def___GNUC__" = "yes" &&
 
15952
    test "$compiler_id" = "unknown"; then
 
15953
    { echo "$as_me:$LINENO: result: yes" >&5
 
15954
echo "${ECHO_T}yes" >&6; }
 
15955
    compiler_id="GNU_C"
 
15956
    gccver=`$CC -dumpversion`
 
15957
    gccvhi=`echo $gccver | cut -d . -f1`
 
15958
    gccvlo=`echo $gccver | cut -d . -f2`
 
15959
    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
 
15960
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
15961
    flags_dbg_all="$flags_dbg_all -ggdb"
 
15962
    flags_dbg_all="$flags_dbg_all -gstabs"
 
15963
    flags_dbg_all="$flags_dbg_all -gstabs+"
 
15964
    flags_dbg_all="$flags_dbg_all -gcoff"
 
15965
    flags_dbg_all="$flags_dbg_all -gxcoff"
 
15966
    flags_dbg_all="$flags_dbg_all -gdwarf-2"
 
15967
    flags_dbg_all="$flags_dbg_all -gvms"
 
15968
    flags_dbg_yes="-g"
 
15969
    flags_dbg_off="-g0"
 
15970
    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
 
15971
    flags_opt_yes="-O2"
 
15972
    flags_opt_off="-O0"
 
15973
  else
 
15974
    { echo "$as_me:$LINENO: result: no" >&5
 
15975
echo "${ECHO_T}no" >&6; }
 
15976
  fi
 
15977
 
 
15978
 
 
15979
  { echo "$as_me:$LINENO: checking if compiler is LCC" >&5
 
15980
echo $ECHO_N "checking if compiler is LCC... $ECHO_C" >&6; }
 
15981
 
 
15982
      if test -z "$SED"; then
 
15983
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
15984
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
15985
   { (exit 1); exit 1; }; }
 
15986
  fi
 
15987
  if test -z "$GREP"; then
 
15988
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
15989
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
15990
   { (exit 1); exit 1; }; }
 
15991
  fi
 
15992
 
 
15993
  tmp_exp=""
 
15994
  cat >conftest.$ac_ext <<_ACEOF
 
15995
 
 
15996
    /* confdefs.h.  */
 
15997
_ACEOF
 
15998
cat confdefs.h >>conftest.$ac_ext
 
15999
cat >>conftest.$ac_ext <<_ACEOF
 
16000
/* end confdefs.h.  */
 
16001
 
 
16002
#ifdef __LCC__
 
16003
CURL_DEF_TOKEN __LCC__
 
16004
#endif
 
16005
 
 
16006
 
 
16007
_ACEOF
 
16008
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16009
case "(($ac_try" in
 
16010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16011
  *) ac_try_echo=$ac_try;;
 
16012
esac
 
16013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16014
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16015
  ac_status=$?
 
16016
  grep -v '^ *+' conftest.er1 >conftest.err
 
16017
  rm -f conftest.er1
 
16018
  cat conftest.err >&5
 
16019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16020
  (exit $ac_status); } >/dev/null && {
 
16021
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16022
         test ! -s conftest.err
 
16023
       }; then
 
16024
 
 
16025
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16026
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16027
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16028
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16029
    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
 
16030
      tmp_exp=""
 
16031
    fi
 
16032
 
 
16033
else
 
16034
  echo "$as_me: failed program was:" >&5
 
16035
sed 's/^/| /' conftest.$ac_ext >&5
 
16036
 
 
16037
 
 
16038
fi
 
16039
 
 
16040
rm -f conftest.err conftest.$ac_ext
 
16041
  if test -z "$tmp_exp"; then
 
16042
    curl_cv_have_def___LCC__=no
 
16043
 
 
16044
  else
 
16045
    curl_cv_have_def___LCC__=yes
 
16046
    curl_cv_def___LCC__=$tmp_exp
 
16047
 
 
16048
  fi
 
16049
 
 
16050
  if test "$curl_cv_have_def___LCC__" = "yes"; then
 
16051
    { echo "$as_me:$LINENO: result: yes" >&5
 
16052
echo "${ECHO_T}yes" >&6; }
 
16053
    compiler_id="LCC"
 
16054
    flags_dbg_all="-g"
 
16055
    flags_dbg_yes="-g"
 
16056
    flags_dbg_off=""
 
16057
    flags_opt_all=""
 
16058
    flags_opt_yes=""
 
16059
    flags_opt_off=""
 
16060
  else
 
16061
    { echo "$as_me:$LINENO: result: no" >&5
 
16062
echo "${ECHO_T}no" >&6; }
 
16063
  fi
 
16064
 
 
16065
 
 
16066
    { echo "$as_me:$LINENO: checking if compiler is SGI MIPSpro C" >&5
 
16067
echo $ECHO_N "checking if compiler is SGI MIPSpro C... $ECHO_C" >&6; }
 
16068
 
 
16069
      if test -z "$SED"; then
 
16070
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16071
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16072
   { (exit 1); exit 1; }; }
 
16073
  fi
 
16074
  if test -z "$GREP"; then
 
16075
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16076
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16077
   { (exit 1); exit 1; }; }
 
16078
  fi
 
16079
 
 
16080
  tmp_exp=""
 
16081
  cat >conftest.$ac_ext <<_ACEOF
 
16082
 
 
16083
    /* confdefs.h.  */
 
16084
_ACEOF
 
16085
cat confdefs.h >>conftest.$ac_ext
 
16086
cat >>conftest.$ac_ext <<_ACEOF
 
16087
/* end confdefs.h.  */
 
16088
 
 
16089
#ifdef __GNUC__
 
16090
CURL_DEF_TOKEN __GNUC__
 
16091
#endif
 
16092
 
 
16093
 
 
16094
_ACEOF
 
16095
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16096
case "(($ac_try" in
 
16097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16098
  *) ac_try_echo=$ac_try;;
 
16099
esac
 
16100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16101
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16102
  ac_status=$?
 
16103
  grep -v '^ *+' conftest.er1 >conftest.err
 
16104
  rm -f conftest.er1
 
16105
  cat conftest.err >&5
 
16106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16107
  (exit $ac_status); } >/dev/null && {
 
16108
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16109
         test ! -s conftest.err
 
16110
       }; then
 
16111
 
 
16112
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16113
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16114
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16115
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16116
    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
 
16117
      tmp_exp=""
 
16118
    fi
 
16119
 
 
16120
else
 
16121
  echo "$as_me: failed program was:" >&5
 
16122
sed 's/^/| /' conftest.$ac_ext >&5
 
16123
 
 
16124
 
 
16125
fi
 
16126
 
 
16127
rm -f conftest.err conftest.$ac_ext
 
16128
  if test -z "$tmp_exp"; then
 
16129
    curl_cv_have_def___GNUC__=no
 
16130
 
 
16131
  else
 
16132
    curl_cv_have_def___GNUC__=yes
 
16133
    curl_cv_def___GNUC__=$tmp_exp
 
16134
 
 
16135
  fi
 
16136
 
 
16137
 
 
16138
      if test -z "$SED"; then
 
16139
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16140
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16141
   { (exit 1); exit 1; }; }
 
16142
  fi
 
16143
  if test -z "$GREP"; then
 
16144
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16145
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16146
   { (exit 1); exit 1; }; }
 
16147
  fi
 
16148
 
 
16149
  tmp_exp=""
 
16150
  cat >conftest.$ac_ext <<_ACEOF
 
16151
 
 
16152
    /* confdefs.h.  */
 
16153
_ACEOF
 
16154
cat confdefs.h >>conftest.$ac_ext
 
16155
cat >>conftest.$ac_ext <<_ACEOF
 
16156
/* end confdefs.h.  */
 
16157
 
 
16158
#ifdef _COMPILER_VERSION
 
16159
CURL_DEF_TOKEN _COMPILER_VERSION
 
16160
#endif
 
16161
 
 
16162
 
 
16163
_ACEOF
 
16164
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16165
case "(($ac_try" in
 
16166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16167
  *) ac_try_echo=$ac_try;;
 
16168
esac
 
16169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16170
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16171
  ac_status=$?
 
16172
  grep -v '^ *+' conftest.er1 >conftest.err
 
16173
  rm -f conftest.er1
 
16174
  cat conftest.err >&5
 
16175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16176
  (exit $ac_status); } >/dev/null && {
 
16177
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16178
         test ! -s conftest.err
 
16179
       }; then
 
16180
 
 
16181
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16182
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16183
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16184
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16185
    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
 
16186
      tmp_exp=""
 
16187
    fi
 
16188
 
 
16189
else
 
16190
  echo "$as_me: failed program was:" >&5
 
16191
sed 's/^/| /' conftest.$ac_ext >&5
 
16192
 
 
16193
 
 
16194
fi
 
16195
 
 
16196
rm -f conftest.err conftest.$ac_ext
 
16197
  if test -z "$tmp_exp"; then
 
16198
    curl_cv_have_def__COMPILER_VERSION=no
 
16199
 
 
16200
  else
 
16201
    curl_cv_have_def__COMPILER_VERSION=yes
 
16202
    curl_cv_def__COMPILER_VERSION=$tmp_exp
 
16203
 
 
16204
  fi
 
16205
 
 
16206
 
 
16207
      if test -z "$SED"; then
 
16208
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16209
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16210
   { (exit 1); exit 1; }; }
 
16211
  fi
 
16212
  if test -z "$GREP"; then
 
16213
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16214
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16215
   { (exit 1); exit 1; }; }
 
16216
  fi
 
16217
 
 
16218
  tmp_exp=""
 
16219
  cat >conftest.$ac_ext <<_ACEOF
 
16220
 
 
16221
    /* confdefs.h.  */
 
16222
_ACEOF
 
16223
cat confdefs.h >>conftest.$ac_ext
 
16224
cat >>conftest.$ac_ext <<_ACEOF
 
16225
/* end confdefs.h.  */
 
16226
 
 
16227
#ifdef _SGI_COMPILER_VERSION
 
16228
CURL_DEF_TOKEN _SGI_COMPILER_VERSION
 
16229
#endif
 
16230
 
 
16231
 
 
16232
_ACEOF
 
16233
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16234
case "(($ac_try" in
 
16235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16236
  *) ac_try_echo=$ac_try;;
 
16237
esac
 
16238
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16239
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16240
  ac_status=$?
 
16241
  grep -v '^ *+' conftest.er1 >conftest.err
 
16242
  rm -f conftest.er1
 
16243
  cat conftest.err >&5
 
16244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16245
  (exit $ac_status); } >/dev/null && {
 
16246
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16247
         test ! -s conftest.err
 
16248
       }; then
 
16249
 
 
16250
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16251
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16252
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16253
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16254
    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
 
16255
      tmp_exp=""
 
16256
    fi
 
16257
 
 
16258
else
 
16259
  echo "$as_me: failed program was:" >&5
 
16260
sed 's/^/| /' conftest.$ac_ext >&5
 
16261
 
 
16262
 
 
16263
fi
 
16264
 
 
16265
rm -f conftest.err conftest.$ac_ext
 
16266
  if test -z "$tmp_exp"; then
 
16267
    curl_cv_have_def__SGI_COMPILER_VERSION=no
 
16268
 
 
16269
  else
 
16270
    curl_cv_have_def__SGI_COMPILER_VERSION=yes
 
16271
    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
 
16272
 
 
16273
  fi
 
16274
 
 
16275
  if test "$curl_cv_have_def___GNUC__" = "no" &&
 
16276
    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
 
16277
     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
 
16278
    { echo "$as_me:$LINENO: result: yes" >&5
 
16279
echo "${ECHO_T}yes" >&6; }
 
16280
    compiler_id="SGI_MIPSPRO_C"
 
16281
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
16282
    flags_dbg_yes="-g"
 
16283
    flags_dbg_off="-g0"
 
16284
    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
 
16285
    flags_opt_yes="-O2"
 
16286
    flags_opt_off="-O0"
 
16287
  else
 
16288
    { echo "$as_me:$LINENO: result: no" >&5
 
16289
echo "${ECHO_T}no" >&6; }
 
16290
  fi
 
16291
 
 
16292
 
 
16293
    { echo "$as_me:$LINENO: checking if compiler is SGI MIPS C" >&5
 
16294
echo $ECHO_N "checking if compiler is SGI MIPS C... $ECHO_C" >&6; }
 
16295
 
 
16296
      if test -z "$SED"; then
 
16297
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16298
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16299
   { (exit 1); exit 1; }; }
 
16300
  fi
 
16301
  if test -z "$GREP"; then
 
16302
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16303
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16304
   { (exit 1); exit 1; }; }
 
16305
  fi
 
16306
 
 
16307
  tmp_exp=""
 
16308
  cat >conftest.$ac_ext <<_ACEOF
 
16309
 
 
16310
    /* confdefs.h.  */
 
16311
_ACEOF
 
16312
cat confdefs.h >>conftest.$ac_ext
 
16313
cat >>conftest.$ac_ext <<_ACEOF
 
16314
/* end confdefs.h.  */
 
16315
 
 
16316
#ifdef __GNUC__
 
16317
CURL_DEF_TOKEN __GNUC__
 
16318
#endif
 
16319
 
 
16320
 
 
16321
_ACEOF
 
16322
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16323
case "(($ac_try" in
 
16324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16325
  *) ac_try_echo=$ac_try;;
 
16326
esac
 
16327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16328
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16329
  ac_status=$?
 
16330
  grep -v '^ *+' conftest.er1 >conftest.err
 
16331
  rm -f conftest.er1
 
16332
  cat conftest.err >&5
 
16333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16334
  (exit $ac_status); } >/dev/null && {
 
16335
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16336
         test ! -s conftest.err
 
16337
       }; then
 
16338
 
 
16339
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16340
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16341
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16342
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16343
    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
 
16344
      tmp_exp=""
 
16345
    fi
 
16346
 
 
16347
else
 
16348
  echo "$as_me: failed program was:" >&5
 
16349
sed 's/^/| /' conftest.$ac_ext >&5
 
16350
 
 
16351
 
 
16352
fi
 
16353
 
 
16354
rm -f conftest.err conftest.$ac_ext
 
16355
  if test -z "$tmp_exp"; then
 
16356
    curl_cv_have_def___GNUC__=no
 
16357
 
 
16358
  else
 
16359
    curl_cv_have_def___GNUC__=yes
 
16360
    curl_cv_def___GNUC__=$tmp_exp
 
16361
 
 
16362
  fi
 
16363
 
 
16364
 
 
16365
      if test -z "$SED"; then
 
16366
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16367
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16368
   { (exit 1); exit 1; }; }
 
16369
  fi
 
16370
  if test -z "$GREP"; then
 
16371
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16372
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16373
   { (exit 1); exit 1; }; }
 
16374
  fi
 
16375
 
 
16376
  tmp_exp=""
 
16377
  cat >conftest.$ac_ext <<_ACEOF
 
16378
 
 
16379
    /* confdefs.h.  */
 
16380
_ACEOF
 
16381
cat confdefs.h >>conftest.$ac_ext
 
16382
cat >>conftest.$ac_ext <<_ACEOF
 
16383
/* end confdefs.h.  */
 
16384
 
 
16385
#ifdef __sgi
 
16386
CURL_DEF_TOKEN __sgi
 
16387
#endif
 
16388
 
 
16389
 
 
16390
_ACEOF
 
16391
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16392
case "(($ac_try" in
 
16393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16394
  *) ac_try_echo=$ac_try;;
 
16395
esac
 
16396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16397
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16398
  ac_status=$?
 
16399
  grep -v '^ *+' conftest.er1 >conftest.err
 
16400
  rm -f conftest.er1
 
16401
  cat conftest.err >&5
 
16402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16403
  (exit $ac_status); } >/dev/null && {
 
16404
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16405
         test ! -s conftest.err
 
16406
       }; then
 
16407
 
 
16408
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16409
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16410
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16411
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16412
    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
 
16413
      tmp_exp=""
 
16414
    fi
 
16415
 
 
16416
else
 
16417
  echo "$as_me: failed program was:" >&5
 
16418
sed 's/^/| /' conftest.$ac_ext >&5
 
16419
 
 
16420
 
 
16421
fi
 
16422
 
 
16423
rm -f conftest.err conftest.$ac_ext
 
16424
  if test -z "$tmp_exp"; then
 
16425
    curl_cv_have_def___sgi=no
 
16426
 
 
16427
  else
 
16428
    curl_cv_have_def___sgi=yes
 
16429
    curl_cv_def___sgi=$tmp_exp
 
16430
 
 
16431
  fi
 
16432
 
 
16433
  if test "$curl_cv_have_def___GNUC__" = "no" &&
 
16434
    test "$curl_cv_have_def___sgi" = "yes" &&
 
16435
    test "$compiler_id" = "unknown"; then
 
16436
    { echo "$as_me:$LINENO: result: yes" >&5
 
16437
echo "${ECHO_T}yes" >&6; }
 
16438
    compiler_id="SGI_MIPS_C"
 
16439
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
16440
    flags_dbg_yes="-g"
 
16441
    flags_dbg_off="-g0"
 
16442
    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
 
16443
    flags_opt_yes="-O2"
 
16444
    flags_opt_off="-O0"
 
16445
  else
 
16446
    { echo "$as_me:$LINENO: result: no" >&5
 
16447
echo "${ECHO_T}no" >&6; }
 
16448
  fi
 
16449
 
 
16450
 
 
16451
  { echo "$as_me:$LINENO: checking if compiler is SunPro C" >&5
 
16452
echo $ECHO_N "checking if compiler is SunPro C... $ECHO_C" >&6; }
 
16453
 
 
16454
      if test -z "$SED"; then
 
16455
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16456
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16457
   { (exit 1); exit 1; }; }
 
16458
  fi
 
16459
  if test -z "$GREP"; then
 
16460
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16461
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16462
   { (exit 1); exit 1; }; }
 
16463
  fi
 
16464
 
 
16465
  tmp_exp=""
 
16466
  cat >conftest.$ac_ext <<_ACEOF
 
16467
 
 
16468
    /* confdefs.h.  */
 
16469
_ACEOF
 
16470
cat confdefs.h >>conftest.$ac_ext
 
16471
cat >>conftest.$ac_ext <<_ACEOF
 
16472
/* end confdefs.h.  */
 
16473
 
 
16474
#ifdef __SUNPRO_C
 
16475
CURL_DEF_TOKEN __SUNPRO_C
 
16476
#endif
 
16477
 
 
16478
 
 
16479
_ACEOF
 
16480
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16481
case "(($ac_try" in
 
16482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16483
  *) ac_try_echo=$ac_try;;
 
16484
esac
 
16485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16486
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16487
  ac_status=$?
 
16488
  grep -v '^ *+' conftest.er1 >conftest.err
 
16489
  rm -f conftest.er1
 
16490
  cat conftest.err >&5
 
16491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16492
  (exit $ac_status); } >/dev/null && {
 
16493
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16494
         test ! -s conftest.err
 
16495
       }; then
 
16496
 
 
16497
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16498
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16499
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16500
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16501
    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
 
16502
      tmp_exp=""
 
16503
    fi
 
16504
 
 
16505
else
 
16506
  echo "$as_me: failed program was:" >&5
 
16507
sed 's/^/| /' conftest.$ac_ext >&5
 
16508
 
 
16509
 
 
16510
fi
 
16511
 
 
16512
rm -f conftest.err conftest.$ac_ext
 
16513
  if test -z "$tmp_exp"; then
 
16514
    curl_cv_have_def___SUNPRO_C=no
 
16515
 
 
16516
  else
 
16517
    curl_cv_have_def___SUNPRO_C=yes
 
16518
    curl_cv_def___SUNPRO_C=$tmp_exp
 
16519
 
 
16520
  fi
 
16521
 
 
16522
  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
 
16523
    { echo "$as_me:$LINENO: result: yes" >&5
 
16524
echo "${ECHO_T}yes" >&6; }
 
16525
    compiler_id="SUNPRO_C"
 
16526
    flags_dbg_all="-g -s"
 
16527
    flags_dbg_yes="-g"
 
16528
    flags_dbg_off="-s"
 
16529
    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
 
16530
    flags_opt_yes="-xO2"
 
16531
    flags_opt_off=""
 
16532
  else
 
16533
    { echo "$as_me:$LINENO: result: no" >&5
 
16534
echo "${ECHO_T}no" >&6; }
 
16535
  fi
 
16536
 
 
16537
 
 
16538
  { echo "$as_me:$LINENO: checking if compiler is Tiny C" >&5
 
16539
echo $ECHO_N "checking if compiler is Tiny C... $ECHO_C" >&6; }
 
16540
 
 
16541
      if test -z "$SED"; then
 
16542
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16543
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16544
   { (exit 1); exit 1; }; }
 
16545
  fi
 
16546
  if test -z "$GREP"; then
 
16547
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16548
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16549
   { (exit 1); exit 1; }; }
 
16550
  fi
 
16551
 
 
16552
  tmp_exp=""
 
16553
  cat >conftest.$ac_ext <<_ACEOF
 
16554
 
 
16555
    /* confdefs.h.  */
 
16556
_ACEOF
 
16557
cat confdefs.h >>conftest.$ac_ext
 
16558
cat >>conftest.$ac_ext <<_ACEOF
 
16559
/* end confdefs.h.  */
 
16560
 
 
16561
#ifdef __TINYC__
 
16562
CURL_DEF_TOKEN __TINYC__
 
16563
#endif
 
16564
 
 
16565
 
 
16566
_ACEOF
 
16567
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16568
case "(($ac_try" in
 
16569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16570
  *) ac_try_echo=$ac_try;;
 
16571
esac
 
16572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16573
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16574
  ac_status=$?
 
16575
  grep -v '^ *+' conftest.er1 >conftest.err
 
16576
  rm -f conftest.er1
 
16577
  cat conftest.err >&5
 
16578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16579
  (exit $ac_status); } >/dev/null && {
 
16580
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16581
         test ! -s conftest.err
 
16582
       }; then
 
16583
 
 
16584
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16585
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16586
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16587
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16588
    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
 
16589
      tmp_exp=""
 
16590
    fi
 
16591
 
 
16592
else
 
16593
  echo "$as_me: failed program was:" >&5
 
16594
sed 's/^/| /' conftest.$ac_ext >&5
 
16595
 
 
16596
 
 
16597
fi
 
16598
 
 
16599
rm -f conftest.err conftest.$ac_ext
 
16600
  if test -z "$tmp_exp"; then
 
16601
    curl_cv_have_def___TINYC__=no
 
16602
 
 
16603
  else
 
16604
    curl_cv_have_def___TINYC__=yes
 
16605
    curl_cv_def___TINYC__=$tmp_exp
 
16606
 
 
16607
  fi
 
16608
 
 
16609
  if test "$curl_cv_have_def___TINYC__" = "yes"; then
 
16610
    { echo "$as_me:$LINENO: result: yes" >&5
 
16611
echo "${ECHO_T}yes" >&6; }
 
16612
    compiler_id="TINY_C"
 
16613
    flags_dbg_all="-g -b"
 
16614
    flags_dbg_yes="-g"
 
16615
    flags_dbg_off=""
 
16616
    flags_opt_all=""
 
16617
    flags_opt_yes=""
 
16618
    flags_opt_off=""
 
16619
  else
 
16620
    { echo "$as_me:$LINENO: result: no" >&5
 
16621
echo "${ECHO_T}no" >&6; }
 
16622
  fi
 
16623
 
 
16624
 
 
16625
  { echo "$as_me:$LINENO: checking if compiler is Watcom C" >&5
 
16626
echo $ECHO_N "checking if compiler is Watcom C... $ECHO_C" >&6; }
 
16627
 
 
16628
      if test -z "$SED"; then
 
16629
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16630
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16631
   { (exit 1); exit 1; }; }
 
16632
  fi
 
16633
  if test -z "$GREP"; then
 
16634
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16635
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16636
   { (exit 1); exit 1; }; }
 
16637
  fi
 
16638
 
 
16639
  tmp_exp=""
 
16640
  cat >conftest.$ac_ext <<_ACEOF
 
16641
 
 
16642
    /* confdefs.h.  */
 
16643
_ACEOF
 
16644
cat confdefs.h >>conftest.$ac_ext
 
16645
cat >>conftest.$ac_ext <<_ACEOF
 
16646
/* end confdefs.h.  */
 
16647
 
 
16648
#ifdef __WATCOMC__
 
16649
CURL_DEF_TOKEN __WATCOMC__
 
16650
#endif
 
16651
 
 
16652
 
 
16653
_ACEOF
 
16654
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16655
case "(($ac_try" in
 
16656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16657
  *) ac_try_echo=$ac_try;;
 
16658
esac
 
16659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16660
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16661
  ac_status=$?
 
16662
  grep -v '^ *+' conftest.er1 >conftest.err
 
16663
  rm -f conftest.er1
 
16664
  cat conftest.err >&5
 
16665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16666
  (exit $ac_status); } >/dev/null && {
 
16667
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16668
         test ! -s conftest.err
 
16669
       }; then
 
16670
 
 
16671
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16672
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16673
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16674
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16675
    if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
 
16676
      tmp_exp=""
 
16677
    fi
 
16678
 
 
16679
else
 
16680
  echo "$as_me: failed program was:" >&5
 
16681
sed 's/^/| /' conftest.$ac_ext >&5
 
16682
 
 
16683
 
 
16684
fi
 
16685
 
 
16686
rm -f conftest.err conftest.$ac_ext
 
16687
  if test -z "$tmp_exp"; then
 
16688
    curl_cv_have_def___WATCOMC__=no
 
16689
 
 
16690
  else
 
16691
    curl_cv_have_def___WATCOMC__=yes
 
16692
    curl_cv_def___WATCOMC__=$tmp_exp
 
16693
 
 
16694
  fi
 
16695
 
 
16696
  if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
 
16697
    { echo "$as_me:$LINENO: result: yes" >&5
 
16698
echo "${ECHO_T}yes" >&6; }
 
16699
 
 
16700
      if test -z "$SED"; then
 
16701
    { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
 
16702
echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
 
16703
   { (exit 1); exit 1; }; }
 
16704
  fi
 
16705
  if test -z "$GREP"; then
 
16706
    { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
 
16707
echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
 
16708
   { (exit 1); exit 1; }; }
 
16709
  fi
 
16710
 
 
16711
  tmp_exp=""
 
16712
  cat >conftest.$ac_ext <<_ACEOF
 
16713
 
 
16714
    /* confdefs.h.  */
 
16715
_ACEOF
 
16716
cat confdefs.h >>conftest.$ac_ext
 
16717
cat >>conftest.$ac_ext <<_ACEOF
 
16718
/* end confdefs.h.  */
 
16719
 
 
16720
#ifdef __UNIX__
 
16721
CURL_DEF_TOKEN __UNIX__
 
16722
#endif
 
16723
 
 
16724
 
 
16725
_ACEOF
 
16726
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16727
case "(($ac_try" in
 
16728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16729
  *) ac_try_echo=$ac_try;;
 
16730
esac
 
16731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16732
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16733
  ac_status=$?
 
16734
  grep -v '^ *+' conftest.er1 >conftest.err
 
16735
  rm -f conftest.er1
 
16736
  cat conftest.err >&5
 
16737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16738
  (exit $ac_status); } >/dev/null && {
 
16739
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16740
         test ! -s conftest.err
 
16741
       }; then
 
16742
 
 
16743
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
16744
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
16745
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
16746
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
16747
    if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
 
16748
      tmp_exp=""
 
16749
    fi
 
16750
 
 
16751
else
 
16752
  echo "$as_me: failed program was:" >&5
 
16753
sed 's/^/| /' conftest.$ac_ext >&5
 
16754
 
 
16755
 
 
16756
fi
 
16757
 
 
16758
rm -f conftest.err conftest.$ac_ext
 
16759
  if test -z "$tmp_exp"; then
 
16760
    curl_cv_have_def___UNIX__=no
 
16761
 
 
16762
  else
 
16763
    curl_cv_have_def___UNIX__=yes
 
16764
    curl_cv_def___UNIX__=$tmp_exp
 
16765
 
 
16766
  fi
 
16767
 
 
16768
    if test "$curl_cv_have_def___UNIX__" = "yes"; then
 
16769
      compiler_id="WATCOM_UNIX_C"
 
16770
      flags_dbg_all="-g1 -g1+ -g2 -g3"
 
16771
      flags_dbg_yes="-g2"
 
16772
      flags_dbg_off=""
 
16773
      flags_opt_all="-O0 -O1 -O2 -O3"
 
16774
      flags_opt_yes="-O2"
 
16775
      flags_opt_off="-O0"
 
16776
    else
 
16777
      compiler_id="WATCOM_WINDOWS_C"
 
16778
      flags_dbg_all=""
 
16779
      flags_dbg_yes=""
 
16780
      flags_dbg_off=""
 
16781
      flags_opt_all=""
 
16782
      flags_opt_yes=""
 
16783
      flags_opt_off=""
 
16784
    fi
 
16785
  else
 
16786
    { echo "$as_me:$LINENO: result: no" >&5
 
16787
echo "${ECHO_T}no" >&6; }
 
16788
  fi
 
16789
 
 
16790
  #
 
16791
  if test "$compiler_id" = "unknown"; then
 
16792
  cat <<_EOF 1>&2
 
16793
***
 
16794
*** Warning: This configure script does not have information about the
 
16795
*** compiler you are using, relative to the flags required to enable or
 
16796
*** disable generation of debug info, optimization options or warnings.
 
16797
***
 
16798
*** Whatever settings are present in CFLAGS will be used for this run.
 
16799
***
 
16800
*** If you wish to help the cURL project to better support your compiler
 
16801
*** you can report this and the required info on the libcurl development
 
16802
*** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
 
16803
***
 
16804
_EOF
 
16805
  fi
 
16806
 
 
16807
 
 
16808
      #
 
16809
  if test "$compiler_id" != "unknown"; then
 
16810
    #
 
16811
    if test "$compiler_id" = "GNU_C"; then
 
16812
 
 
16813
    tmp_has_include="no"
 
16814
  tmp_chg_FLAGS="$CFLAGS"
 
16815
  for word1 in $tmp_chg_FLAGS; do
 
16816
    case "$word1" in
 
16817
      -I*)
 
16818
        tmp_has_include="yes"
 
16819
        ;;
 
16820
    esac
 
16821
  done
 
16822
  if test "$tmp_has_include" = "yes"; then
 
16823
    tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
 
16824
    tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
 
16825
    CFLAGS="$tmp_chg_FLAGS"
 
16826
    squeeze CFLAGS
 
16827
  fi
 
16828
  tmp_has_include="no"
 
16829
  tmp_chg_FLAGS="$CPPFLAGS"
 
16830
  for word1 in $tmp_chg_FLAGS; do
 
16831
    case "$word1" in
 
16832
      -I*)
 
16833
        tmp_has_include="yes"
 
16834
        ;;
 
16835
    esac
 
16836
  done
 
16837
  if test "$tmp_has_include" = "yes"; then
 
16838
    tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
 
16839
    tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
 
16840
    CPPFLAGS="$tmp_chg_FLAGS"
 
16841
    squeeze CPPFLAGS
 
16842
  fi
 
16843
 
 
16844
    fi
 
16845
    #
 
16846
    tmp_save_CPPFLAGS="$CPPFLAGS"
 
16847
    tmp_save_CFLAGS="$CFLAGS"
 
16848
    tmp_CPPFLAGS=""
 
16849
    tmp_CFLAGS=""
 
16850
    #
 
16851
    case "$compiler_id" in
 
16852
        #
 
16853
      DEC_C)
 
16854
        #
 
16855
                tmp_CFLAGS="$tmp_CFLAGS -std1"
 
16856
                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
 
16857
                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
 
16858
                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
 
16859
        ;;
 
16860
        #
 
16861
      GNU_C)
 
16862
        #
 
16863
                tmp_CFLAGS="$tmp_CFLAGS"
 
16864
        ;;
 
16865
        #
 
16866
      HP_UX_C)
 
16867
        #
 
16868
                tmp_CFLAGS="$tmp_CFLAGS -z"
 
16869
                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
 
16870
        ;;
 
16871
        #
 
16872
      IBM_C)
 
16873
        #
 
16874
                tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
 
16875
                                        tmp_CFLAGS="$tmp_CFLAGS -qnoansialias"
 
16876
                        tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
 
16877
        ;;
 
16878
        #
 
16879
      INTEL_UNIX_C)
 
16880
        #
 
16881
                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
 
16882
                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
 
16883
                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
 
16884
        ;;
 
16885
        #
 
16886
      INTEL_WINDOWS_C)
 
16887
        #
 
16888
                tmp_CFLAGS="$tmp_CFLAGS"
 
16889
        ;;
 
16890
        #
 
16891
      LCC)
 
16892
        #
 
16893
                tmp_CFLAGS="$tmp_CFLAGS -n"
 
16894
        ;;
 
16895
        #
 
16896
      SGI_MIPS_C)
 
16897
        #
 
16898
                tmp_CFLAGS="$tmp_CFLAGS"
 
16899
        ;;
 
16900
        #
 
16901
      SGI_MIPSPRO_C)
 
16902
        #
 
16903
                tmp_CFLAGS="$tmp_CFLAGS"
 
16904
        ;;
 
16905
        #
 
16906
      SUNPRO_C)
 
16907
        #
 
16908
                tmp_CFLAGS="$tmp_CFLAGS"
 
16909
        ;;
 
16910
        #
 
16911
      TINY_C)
 
16912
        #
 
16913
                tmp_CFLAGS="$tmp_CFLAGS"
 
16914
        ;;
 
16915
        #
 
16916
      WATCOM_UNIX_C)
 
16917
        #
 
16918
                tmp_CFLAGS="$tmp_CFLAGS"
 
16919
        ;;
 
16920
        #
 
16921
      WATCOM_WINDOWS_C)
 
16922
        #
 
16923
                tmp_CFLAGS="$tmp_CFLAGS"
 
16924
        ;;
 
16925
        #
 
16926
    esac
 
16927
    #
 
16928
    squeeze tmp_CPPFLAGS
 
16929
    squeeze tmp_CFLAGS
 
16930
    #
 
16931
    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
 
16932
      { echo "$as_me:$LINENO: checking if compiler accepts some basic options" >&5
 
16933
echo $ECHO_N "checking if compiler accepts some basic options... $ECHO_C" >&6; }
 
16934
      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
 
16935
      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
 
16936
      squeeze CPPFLAGS
 
16937
      squeeze CFLAGS
 
16938
 
 
16939
    tmp_compiler_works="unknown"
 
16940
  cat >conftest.$ac_ext <<_ACEOF
 
16941
 
 
16942
    /* confdefs.h.  */
 
16943
_ACEOF
 
16944
cat confdefs.h >>conftest.$ac_ext
 
16945
cat >>conftest.$ac_ext <<_ACEOF
 
16946
/* end confdefs.h.  */
 
16947
 
 
16948
 
 
16949
int main (void)
 
16950
{
 
16951
 
 
16952
      int i = 1;
 
16953
      return i;
 
16954
 
 
16955
 ;
 
16956
 return 0;
 
16957
}
 
16958
 
 
16959
_ACEOF
 
16960
rm -f conftest.$ac_objext
 
16961
if { (ac_try="$ac_compile"
 
16962
case "(($ac_try" in
 
16963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16964
  *) ac_try_echo=$ac_try;;
 
16965
esac
 
16966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16967
  (eval "$ac_compile") 2>conftest.er1
 
16968
  ac_status=$?
 
16969
  grep -v '^ *+' conftest.er1 >conftest.err
 
16970
  rm -f conftest.er1
 
16971
  cat conftest.err >&5
 
16972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16973
  (exit $ac_status); } && {
 
16974
         test -z "$ac_c_werror_flag" ||
 
16975
         test ! -s conftest.err
 
16976
       } && test -s conftest.$ac_objext; then
 
16977
 
 
16978
    tmp_compiler_works="yes"
 
16979
 
 
16980
else
 
16981
  echo "$as_me: failed program was:" >&5
 
16982
sed 's/^/| /' conftest.$ac_ext >&5
 
16983
 
 
16984
 
 
16985
    tmp_compiler_works="no"
 
16986
    echo " " >&6
 
16987
    sed 's/^/cc-fail: /' conftest.err >&6
 
16988
    echo " " >&6
 
16989
 
 
16990
fi
 
16991
 
 
16992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16993
    if test "$tmp_compiler_works" = "yes"; then
 
16994
    cat >conftest.$ac_ext <<_ACEOF
 
16995
 
 
16996
      /* confdefs.h.  */
 
16997
_ACEOF
 
16998
cat confdefs.h >>conftest.$ac_ext
 
16999
cat >>conftest.$ac_ext <<_ACEOF
 
17000
/* end confdefs.h.  */
 
17001
 
 
17002
 
 
17003
int main (void)
 
17004
{
 
17005
 
 
17006
        int i = 1;
 
17007
        return i;
 
17008
 
 
17009
 ;
 
17010
 return 0;
 
17011
}
 
17012
 
 
17013
_ACEOF
 
17014
rm -f conftest.$ac_objext conftest$ac_exeext
 
17015
if { (ac_try="$ac_link"
 
17016
case "(($ac_try" in
 
17017
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17018
  *) ac_try_echo=$ac_try;;
 
17019
esac
 
17020
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17021
  (eval "$ac_link") 2>conftest.er1
 
17022
  ac_status=$?
 
17023
  grep -v '^ *+' conftest.er1 >conftest.err
 
17024
  rm -f conftest.er1
 
17025
  cat conftest.err >&5
 
17026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17027
  (exit $ac_status); } && {
 
17028
         test -z "$ac_c_werror_flag" ||
 
17029
         test ! -s conftest.err
 
17030
       } && test -s conftest$ac_exeext &&
 
17031
       $as_test_x conftest$ac_exeext; then
 
17032
 
 
17033
      tmp_compiler_works="yes"
 
17034
 
 
17035
else
 
17036
  echo "$as_me: failed program was:" >&5
 
17037
sed 's/^/| /' conftest.$ac_ext >&5
 
17038
 
 
17039
 
 
17040
      tmp_compiler_works="no"
 
17041
      echo " " >&6
 
17042
      sed 's/^/link-fail: /' conftest.err >&6
 
17043
      echo " " >&6
 
17044
 
 
17045
fi
 
17046
 
 
17047
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17048
      conftest$ac_exeext conftest.$ac_ext
 
17049
  fi
 
17050
    if test "x$cross_compiling" != "xyes" &&
 
17051
    test "$tmp_compiler_works" = "yes"; then
 
17052
    if test "$cross_compiling" = yes; then
 
17053
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
17054
See \`config.log' for more details." >&5
 
17055
echo "$as_me: error: cannot run test program while cross compiling
 
17056
See \`config.log' for more details." >&2;}
 
17057
   { (exit 1); exit 1; }; }
 
17058
else
 
17059
  cat >conftest.$ac_ext <<_ACEOF
 
17060
 
 
17061
      /* confdefs.h.  */
 
17062
_ACEOF
 
17063
cat confdefs.h >>conftest.$ac_ext
 
17064
cat >>conftest.$ac_ext <<_ACEOF
 
17065
/* end confdefs.h.  */
 
17066
 
 
17067
#       ifdef __STDC__
 
17068
#         include <stdlib.h>
 
17069
#       endif
 
17070
 
 
17071
int main (void)
 
17072
{
 
17073
 
 
17074
        int i = 0;
 
17075
        exit(i);
 
17076
 
 
17077
 ;
 
17078
 return 0;
 
17079
}
 
17080
 
 
17081
_ACEOF
 
17082
rm -f conftest$ac_exeext
 
17083
if { (ac_try="$ac_link"
 
17084
case "(($ac_try" in
 
17085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17086
  *) ac_try_echo=$ac_try;;
 
17087
esac
 
17088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17089
  (eval "$ac_link") 2>&5
 
17090
  ac_status=$?
 
17091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17092
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17093
  { (case "(($ac_try" in
 
17094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17095
  *) ac_try_echo=$ac_try;;
 
17096
esac
 
17097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17098
  (eval "$ac_try") 2>&5
 
17099
  ac_status=$?
 
17100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17101
  (exit $ac_status); }; }; then
 
17102
 
 
17103
      tmp_compiler_works="yes"
 
17104
 
 
17105
else
 
17106
  echo "$as_me: program exited with status $ac_status" >&5
 
17107
echo "$as_me: failed program was:" >&5
 
17108
sed 's/^/| /' conftest.$ac_ext >&5
 
17109
 
 
17110
( exit $ac_status )
 
17111
 
 
17112
      tmp_compiler_works="no"
 
17113
      echo " " >&6
 
17114
      echo "run-fail: test program exited with status $ac_status" >&6
 
17115
      echo " " >&6
 
17116
 
 
17117
fi
 
17118
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17119
fi
 
17120
 
 
17121
 
 
17122
  fi
 
17123
    if test "$tmp_compiler_works" = "yes"; then
 
17124
 
 
17125
        { echo "$as_me:$LINENO: result: yes" >&5
 
17126
echo "${ECHO_T}yes" >&6; }
 
17127
        { echo "$as_me:$LINENO: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
 
17128
echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
 
17129
 
 
17130
  else
 
17131
 
 
17132
        { echo "$as_me:$LINENO: result: no" >&5
 
17133
echo "${ECHO_T}no" >&6; }
 
17134
        { echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
 
17135
echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
 
17136
                CPPFLAGS="$tmp_save_CPPFLAGS"
 
17137
        CFLAGS="$tmp_save_CFLAGS"
 
17138
 
 
17139
  fi
 
17140
 
 
17141
    fi
 
17142
    #
 
17143
  fi
 
17144
 
 
17145
 
 
17146
        #
 
17147
  if test "$compiler_id" != "unknown"; then
 
17148
    #
 
17149
    tmp_save_CFLAGS="$CFLAGS"
 
17150
    tmp_save_CPPFLAGS="$CPPFLAGS"
 
17151
    #
 
17152
    tmp_options=""
 
17153
    tmp_CFLAGS="$CFLAGS"
 
17154
    tmp_CPPFLAGS="$CPPFLAGS"
 
17155
 
 
17156
    ac_var_stripped=""
 
17157
  for word1 in $tmp_CFLAGS; do
 
17158
    ac_var_strip_word="no"
 
17159
    for word2 in $flags_dbg_all; do
 
17160
      if test "$word1" = "$word2"; then
 
17161
        ac_var_strip_word="yes"
 
17162
      fi
 
17163
    done
 
17164
    if test "$ac_var_strip_word" = "no"; then
 
17165
      ac_var_stripped="$ac_var_stripped $word1"
 
17166
    fi
 
17167
  done
 
17168
    tmp_CFLAGS="$ac_var_stripped"
 
17169
  squeeze tmp_CFLAGS
 
17170
 
 
17171
 
 
17172
    ac_var_stripped=""
 
17173
  for word1 in $tmp_CPPFLAGS; do
 
17174
    ac_var_strip_word="no"
 
17175
    for word2 in $flags_dbg_all; do
 
17176
      if test "$word1" = "$word2"; then
 
17177
        ac_var_strip_word="yes"
 
17178
      fi
 
17179
    done
 
17180
    if test "$ac_var_strip_word" = "no"; then
 
17181
      ac_var_stripped="$ac_var_stripped $word1"
 
17182
    fi
 
17183
  done
 
17184
    tmp_CPPFLAGS="$ac_var_stripped"
 
17185
  squeeze tmp_CPPFLAGS
 
17186
 
 
17187
    #
 
17188
    if test "$want_debug" = "yes"; then
 
17189
      { echo "$as_me:$LINENO: checking if compiler accepts debug enabling options" >&5
 
17190
echo $ECHO_N "checking if compiler accepts debug enabling options... $ECHO_C" >&6; }
 
17191
      tmp_options="$flags_dbg_yes"
 
17192
    fi
 
17193
    if test "$want_debug" = "no"; then
 
17194
      { echo "$as_me:$LINENO: checking if compiler accepts debug disabling options" >&5
 
17195
echo $ECHO_N "checking if compiler accepts debug disabling options... $ECHO_C" >&6; }
 
17196
      tmp_options="$flags_dbg_off"
 
17197
    fi
 
17198
    #
 
17199
    CPPFLAGS="$tmp_CPPFLAGS"
 
17200
    CFLAGS="$tmp_CFLAGS $tmp_options"
 
17201
    squeeze CPPFLAGS
 
17202
    squeeze CFLAGS
 
17203
 
 
17204
    tmp_compiler_works="unknown"
 
17205
  cat >conftest.$ac_ext <<_ACEOF
 
17206
 
 
17207
    /* confdefs.h.  */
 
17208
_ACEOF
 
17209
cat confdefs.h >>conftest.$ac_ext
 
17210
cat >>conftest.$ac_ext <<_ACEOF
 
17211
/* end confdefs.h.  */
 
17212
 
 
17213
 
 
17214
int main (void)
 
17215
{
 
17216
 
 
17217
      int i = 1;
 
17218
      return i;
 
17219
 
 
17220
 ;
 
17221
 return 0;
 
17222
}
 
17223
 
 
17224
_ACEOF
 
17225
rm -f conftest.$ac_objext
 
17226
if { (ac_try="$ac_compile"
 
17227
case "(($ac_try" in
 
17228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17229
  *) ac_try_echo=$ac_try;;
 
17230
esac
 
17231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17232
  (eval "$ac_compile") 2>conftest.er1
 
17233
  ac_status=$?
 
17234
  grep -v '^ *+' conftest.er1 >conftest.err
 
17235
  rm -f conftest.er1
 
17236
  cat conftest.err >&5
 
17237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17238
  (exit $ac_status); } && {
 
17239
         test -z "$ac_c_werror_flag" ||
 
17240
         test ! -s conftest.err
 
17241
       } && test -s conftest.$ac_objext; then
 
17242
 
 
17243
    tmp_compiler_works="yes"
 
17244
 
 
17245
else
 
17246
  echo "$as_me: failed program was:" >&5
 
17247
sed 's/^/| /' conftest.$ac_ext >&5
 
17248
 
 
17249
 
 
17250
    tmp_compiler_works="no"
 
17251
    echo " " >&6
 
17252
    sed 's/^/cc-fail: /' conftest.err >&6
 
17253
    echo " " >&6
 
17254
 
 
17255
fi
 
17256
 
 
17257
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17258
    if test "$tmp_compiler_works" = "yes"; then
 
17259
    cat >conftest.$ac_ext <<_ACEOF
 
17260
 
 
17261
      /* confdefs.h.  */
 
17262
_ACEOF
 
17263
cat confdefs.h >>conftest.$ac_ext
 
17264
cat >>conftest.$ac_ext <<_ACEOF
 
17265
/* end confdefs.h.  */
 
17266
 
 
17267
 
 
17268
int main (void)
 
17269
{
 
17270
 
 
17271
        int i = 1;
 
17272
        return i;
 
17273
 
 
17274
 ;
 
17275
 return 0;
 
17276
}
 
17277
 
 
17278
_ACEOF
 
17279
rm -f conftest.$ac_objext conftest$ac_exeext
 
17280
if { (ac_try="$ac_link"
 
17281
case "(($ac_try" in
 
17282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17283
  *) ac_try_echo=$ac_try;;
 
17284
esac
 
17285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17286
  (eval "$ac_link") 2>conftest.er1
 
17287
  ac_status=$?
 
17288
  grep -v '^ *+' conftest.er1 >conftest.err
 
17289
  rm -f conftest.er1
 
17290
  cat conftest.err >&5
 
17291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17292
  (exit $ac_status); } && {
 
17293
         test -z "$ac_c_werror_flag" ||
 
17294
         test ! -s conftest.err
 
17295
       } && test -s conftest$ac_exeext &&
 
17296
       $as_test_x conftest$ac_exeext; then
 
17297
 
 
17298
      tmp_compiler_works="yes"
 
17299
 
 
17300
else
 
17301
  echo "$as_me: failed program was:" >&5
 
17302
sed 's/^/| /' conftest.$ac_ext >&5
 
17303
 
 
17304
 
 
17305
      tmp_compiler_works="no"
 
17306
      echo " " >&6
 
17307
      sed 's/^/link-fail: /' conftest.err >&6
 
17308
      echo " " >&6
 
17309
 
 
17310
fi
 
17311
 
 
17312
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17313
      conftest$ac_exeext conftest.$ac_ext
 
17314
  fi
 
17315
    if test "x$cross_compiling" != "xyes" &&
 
17316
    test "$tmp_compiler_works" = "yes"; then
 
17317
    if test "$cross_compiling" = yes; then
 
17318
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
17319
See \`config.log' for more details." >&5
 
17320
echo "$as_me: error: cannot run test program while cross compiling
 
17321
See \`config.log' for more details." >&2;}
 
17322
   { (exit 1); exit 1; }; }
 
17323
else
 
17324
  cat >conftest.$ac_ext <<_ACEOF
 
17325
 
 
17326
      /* confdefs.h.  */
 
17327
_ACEOF
 
17328
cat confdefs.h >>conftest.$ac_ext
 
17329
cat >>conftest.$ac_ext <<_ACEOF
 
17330
/* end confdefs.h.  */
 
17331
 
 
17332
#       ifdef __STDC__
 
17333
#         include <stdlib.h>
 
17334
#       endif
 
17335
 
 
17336
int main (void)
 
17337
{
 
17338
 
 
17339
        int i = 0;
 
17340
        exit(i);
 
17341
 
 
17342
 ;
 
17343
 return 0;
 
17344
}
 
17345
 
 
17346
_ACEOF
 
17347
rm -f conftest$ac_exeext
 
17348
if { (ac_try="$ac_link"
 
17349
case "(($ac_try" in
 
17350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17351
  *) ac_try_echo=$ac_try;;
 
17352
esac
 
17353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17354
  (eval "$ac_link") 2>&5
 
17355
  ac_status=$?
 
17356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17357
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17358
  { (case "(($ac_try" in
 
17359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17360
  *) ac_try_echo=$ac_try;;
 
17361
esac
 
17362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17363
  (eval "$ac_try") 2>&5
 
17364
  ac_status=$?
 
17365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17366
  (exit $ac_status); }; }; then
 
17367
 
 
17368
      tmp_compiler_works="yes"
 
17369
 
 
17370
else
 
17371
  echo "$as_me: program exited with status $ac_status" >&5
 
17372
echo "$as_me: failed program was:" >&5
 
17373
sed 's/^/| /' conftest.$ac_ext >&5
 
17374
 
 
17375
( exit $ac_status )
 
17376
 
 
17377
      tmp_compiler_works="no"
 
17378
      echo " " >&6
 
17379
      echo "run-fail: test program exited with status $ac_status" >&6
 
17380
      echo " " >&6
 
17381
 
 
17382
fi
 
17383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17384
fi
 
17385
 
 
17386
 
 
17387
  fi
 
17388
    if test "$tmp_compiler_works" = "yes"; then
 
17389
 
 
17390
      { echo "$as_me:$LINENO: result: yes" >&5
 
17391
echo "${ECHO_T}yes" >&6; }
 
17392
      { echo "$as_me:$LINENO: compiler options added: $tmp_options" >&5
 
17393
echo "$as_me: compiler options added: $tmp_options" >&6;}
 
17394
 
 
17395
  else
 
17396
 
 
17397
      { echo "$as_me:$LINENO: result: no" >&5
 
17398
echo "${ECHO_T}no" >&6; }
 
17399
      { echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_options" >&5
 
17400
echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
 
17401
            CPPFLAGS="$tmp_save_CPPFLAGS"
 
17402
      CFLAGS="$tmp_save_CFLAGS"
 
17403
 
 
17404
  fi
 
17405
 
 
17406
    #
 
17407
  fi
 
17408
 
 
17409
 
 
17410
        #
 
17411
  if test "$compiler_id" != "unknown"; then
 
17412
    #
 
17413
    tmp_save_CFLAGS="$CFLAGS"
 
17414
    tmp_save_CPPFLAGS="$CPPFLAGS"
 
17415
    #
 
17416
    tmp_options=""
 
17417
    tmp_CFLAGS="$CFLAGS"
 
17418
    tmp_CPPFLAGS="$CPPFLAGS"
 
17419
    honor_optimize_option="yes"
 
17420
    #
 
17421
                        #
 
17422
    if test "$want_optimize" = "assume_no" ||
 
17423
       test "$want_optimize" = "assume_yes"; then
 
17424
      { echo "$as_me:$LINENO: checking if compiler optimizer assumed setting might be used" >&5
 
17425
echo $ECHO_N "checking if compiler optimizer assumed setting might be used... $ECHO_C" >&6; }
 
17426
 
 
17427
 
 
17428
  ac_var_match_word="no"
 
17429
  for word1 in $tmp_CFLAGS; do
 
17430
    for word2 in $flags_opt_all; do
 
17431
      if test "$word1" = "$word2"; then
 
17432
        ac_var_match_word="yes"
 
17433
      fi
 
17434
    done
 
17435
  done
 
17436
 
 
17437
  if test "$ac_var_match_word" = "yes"; then
 
17438
 
 
17439
        honor_optimize_option="no"
 
17440
 
 
17441
 
 
17442
  fi
 
17443
 
 
17444
 
 
17445
 
 
17446
  ac_var_match_word="no"
 
17447
  for word1 in $tmp_CPPFLAGS; do
 
17448
    for word2 in $flags_opt_all; do
 
17449
      if test "$word1" = "$word2"; then
 
17450
        ac_var_match_word="yes"
 
17451
      fi
 
17452
    done
 
17453
  done
 
17454
 
 
17455
  if test "$ac_var_match_word" = "yes"; then
 
17456
 
 
17457
        honor_optimize_option="no"
 
17458
 
 
17459
 
 
17460
  fi
 
17461
 
 
17462
      { echo "$as_me:$LINENO: result: $honor_optimize_option" >&5
 
17463
echo "${ECHO_T}$honor_optimize_option" >&6; }
 
17464
      if test "$honor_optimize_option" = "yes"; then
 
17465
        if test "$want_optimize" = "assume_yes"; then
 
17466
          want_optimize="yes"
 
17467
        fi
 
17468
        if test "$want_optimize" = "assume_no"; then
 
17469
          want_optimize="no"
 
17470
        fi
 
17471
      fi
 
17472
    fi
 
17473
    #
 
17474
    if test "$honor_optimize_option" = "yes"; then
 
17475
 
 
17476
    ac_var_stripped=""
 
17477
  for word1 in $tmp_CFLAGS; do
 
17478
    ac_var_strip_word="no"
 
17479
    for word2 in $flags_opt_all; do
 
17480
      if test "$word1" = "$word2"; then
 
17481
        ac_var_strip_word="yes"
 
17482
      fi
 
17483
    done
 
17484
    if test "$ac_var_strip_word" = "no"; then
 
17485
      ac_var_stripped="$ac_var_stripped $word1"
 
17486
    fi
 
17487
  done
 
17488
    tmp_CFLAGS="$ac_var_stripped"
 
17489
  squeeze tmp_CFLAGS
 
17490
 
 
17491
 
 
17492
    ac_var_stripped=""
 
17493
  for word1 in $tmp_CPPFLAGS; do
 
17494
    ac_var_strip_word="no"
 
17495
    for word2 in $flags_opt_all; do
 
17496
      if test "$word1" = "$word2"; then
 
17497
        ac_var_strip_word="yes"
 
17498
      fi
 
17499
    done
 
17500
    if test "$ac_var_strip_word" = "no"; then
 
17501
      ac_var_stripped="$ac_var_stripped $word1"
 
17502
    fi
 
17503
  done
 
17504
    tmp_CPPFLAGS="$ac_var_stripped"
 
17505
  squeeze tmp_CPPFLAGS
 
17506
 
 
17507
      if test "$want_optimize" = "yes"; then
 
17508
        { echo "$as_me:$LINENO: checking if compiler accepts optimizer enabling options" >&5
 
17509
echo $ECHO_N "checking if compiler accepts optimizer enabling options... $ECHO_C" >&6; }
 
17510
        tmp_options="$flags_opt_yes"
 
17511
      fi
 
17512
      if test "$want_optimize" = "no"; then
 
17513
        { echo "$as_me:$LINENO: checking if compiler accepts optimizer disabling options" >&5
 
17514
echo $ECHO_N "checking if compiler accepts optimizer disabling options... $ECHO_C" >&6; }
 
17515
        tmp_options="$flags_opt_off"
 
17516
      fi
 
17517
      CPPFLAGS="$tmp_CPPFLAGS"
 
17518
      CFLAGS="$tmp_CFLAGS $tmp_options"
 
17519
      squeeze CPPFLAGS
 
17520
      squeeze CFLAGS
 
17521
 
 
17522
    tmp_compiler_works="unknown"
 
17523
  cat >conftest.$ac_ext <<_ACEOF
 
17524
 
 
17525
    /* confdefs.h.  */
 
17526
_ACEOF
 
17527
cat confdefs.h >>conftest.$ac_ext
 
17528
cat >>conftest.$ac_ext <<_ACEOF
 
17529
/* end confdefs.h.  */
 
17530
 
 
17531
 
 
17532
int main (void)
 
17533
{
 
17534
 
 
17535
      int i = 1;
 
17536
      return i;
 
17537
 
 
17538
 ;
 
17539
 return 0;
 
17540
}
 
17541
 
 
17542
_ACEOF
 
17543
rm -f conftest.$ac_objext
 
17544
if { (ac_try="$ac_compile"
 
17545
case "(($ac_try" in
 
17546
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17547
  *) ac_try_echo=$ac_try;;
 
17548
esac
 
17549
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17550
  (eval "$ac_compile") 2>conftest.er1
 
17551
  ac_status=$?
 
17552
  grep -v '^ *+' conftest.er1 >conftest.err
 
17553
  rm -f conftest.er1
 
17554
  cat conftest.err >&5
 
17555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17556
  (exit $ac_status); } && {
 
17557
         test -z "$ac_c_werror_flag" ||
 
17558
         test ! -s conftest.err
 
17559
       } && test -s conftest.$ac_objext; then
 
17560
 
 
17561
    tmp_compiler_works="yes"
 
17562
 
 
17563
else
 
17564
  echo "$as_me: failed program was:" >&5
 
17565
sed 's/^/| /' conftest.$ac_ext >&5
 
17566
 
 
17567
 
 
17568
    tmp_compiler_works="no"
 
17569
    echo " " >&6
 
17570
    sed 's/^/cc-fail: /' conftest.err >&6
 
17571
    echo " " >&6
 
17572
 
 
17573
fi
 
17574
 
 
17575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17576
    if test "$tmp_compiler_works" = "yes"; then
 
17577
    cat >conftest.$ac_ext <<_ACEOF
 
17578
 
 
17579
      /* confdefs.h.  */
 
17580
_ACEOF
 
17581
cat confdefs.h >>conftest.$ac_ext
 
17582
cat >>conftest.$ac_ext <<_ACEOF
 
17583
/* end confdefs.h.  */
 
17584
 
 
17585
 
 
17586
int main (void)
 
17587
{
 
17588
 
 
17589
        int i = 1;
 
17590
        return i;
 
17591
 
 
17592
 ;
 
17593
 return 0;
 
17594
}
 
17595
 
 
17596
_ACEOF
 
17597
rm -f conftest.$ac_objext conftest$ac_exeext
 
17598
if { (ac_try="$ac_link"
 
17599
case "(($ac_try" in
 
17600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17601
  *) ac_try_echo=$ac_try;;
 
17602
esac
 
17603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17604
  (eval "$ac_link") 2>conftest.er1
 
17605
  ac_status=$?
 
17606
  grep -v '^ *+' conftest.er1 >conftest.err
 
17607
  rm -f conftest.er1
 
17608
  cat conftest.err >&5
 
17609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17610
  (exit $ac_status); } && {
 
17611
         test -z "$ac_c_werror_flag" ||
 
17612
         test ! -s conftest.err
 
17613
       } && test -s conftest$ac_exeext &&
 
17614
       $as_test_x conftest$ac_exeext; then
 
17615
 
 
17616
      tmp_compiler_works="yes"
 
17617
 
 
17618
else
 
17619
  echo "$as_me: failed program was:" >&5
 
17620
sed 's/^/| /' conftest.$ac_ext >&5
 
17621
 
 
17622
 
 
17623
      tmp_compiler_works="no"
 
17624
      echo " " >&6
 
17625
      sed 's/^/link-fail: /' conftest.err >&6
 
17626
      echo " " >&6
 
17627
 
 
17628
fi
 
17629
 
 
17630
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17631
      conftest$ac_exeext conftest.$ac_ext
 
17632
  fi
 
17633
    if test "x$cross_compiling" != "xyes" &&
 
17634
    test "$tmp_compiler_works" = "yes"; then
 
17635
    if test "$cross_compiling" = yes; then
 
17636
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
17637
See \`config.log' for more details." >&5
 
17638
echo "$as_me: error: cannot run test program while cross compiling
 
17639
See \`config.log' for more details." >&2;}
 
17640
   { (exit 1); exit 1; }; }
 
17641
else
 
17642
  cat >conftest.$ac_ext <<_ACEOF
 
17643
 
 
17644
      /* confdefs.h.  */
 
17645
_ACEOF
 
17646
cat confdefs.h >>conftest.$ac_ext
 
17647
cat >>conftest.$ac_ext <<_ACEOF
 
17648
/* end confdefs.h.  */
 
17649
 
 
17650
#       ifdef __STDC__
 
17651
#         include <stdlib.h>
 
17652
#       endif
 
17653
 
 
17654
int main (void)
 
17655
{
 
17656
 
 
17657
        int i = 0;
 
17658
        exit(i);
 
17659
 
 
17660
 ;
 
17661
 return 0;
 
17662
}
 
17663
 
 
17664
_ACEOF
 
17665
rm -f conftest$ac_exeext
 
17666
if { (ac_try="$ac_link"
 
17667
case "(($ac_try" in
 
17668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17669
  *) ac_try_echo=$ac_try;;
 
17670
esac
 
17671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17672
  (eval "$ac_link") 2>&5
 
17673
  ac_status=$?
 
17674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17675
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17676
  { (case "(($ac_try" in
 
17677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17678
  *) ac_try_echo=$ac_try;;
 
17679
esac
 
17680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17681
  (eval "$ac_try") 2>&5
 
17682
  ac_status=$?
 
17683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17684
  (exit $ac_status); }; }; then
 
17685
 
 
17686
      tmp_compiler_works="yes"
 
17687
 
 
17688
else
 
17689
  echo "$as_me: program exited with status $ac_status" >&5
 
17690
echo "$as_me: failed program was:" >&5
 
17691
sed 's/^/| /' conftest.$ac_ext >&5
 
17692
 
 
17693
( exit $ac_status )
 
17694
 
 
17695
      tmp_compiler_works="no"
 
17696
      echo " " >&6
 
17697
      echo "run-fail: test program exited with status $ac_status" >&6
 
17698
      echo " " >&6
 
17699
 
 
17700
fi
 
17701
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17702
fi
 
17703
 
 
17704
 
 
17705
  fi
 
17706
    if test "$tmp_compiler_works" = "yes"; then
 
17707
 
 
17708
        { echo "$as_me:$LINENO: result: yes" >&5
 
17709
echo "${ECHO_T}yes" >&6; }
 
17710
        { echo "$as_me:$LINENO: compiler options added: $tmp_options" >&5
 
17711
echo "$as_me: compiler options added: $tmp_options" >&6;}
 
17712
 
 
17713
  else
 
17714
 
 
17715
        { echo "$as_me:$LINENO: result: no" >&5
 
17716
echo "${ECHO_T}no" >&6; }
 
17717
        { echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_options" >&5
 
17718
echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
 
17719
                CPPFLAGS="$tmp_save_CPPFLAGS"
 
17720
        CFLAGS="$tmp_save_CFLAGS"
 
17721
 
 
17722
  fi
 
17723
 
 
17724
    fi
 
17725
    #
 
17726
  fi
 
17727
 
 
17728
 
 
17729
        #
 
17730
  if test "$compiler_id" != "unknown"; then
 
17731
    #
 
17732
    tmp_save_CPPFLAGS="$CPPFLAGS"
 
17733
    tmp_save_CFLAGS="$CFLAGS"
 
17734
    tmp_CPPFLAGS=""
 
17735
    tmp_CFLAGS=""
 
17736
    #
 
17737
    case "$compiler_id" in
 
17738
        #
 
17739
      DEC_C)
 
17740
        #
 
17741
        if test "$want_warnings" = "yes"; then
 
17742
                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
 
17743
        fi
 
17744
        ;;
 
17745
        #
 
17746
      GNU_C)
 
17747
        #
 
17748
        if test "$want_warnings" = "yes"; then
 
17749
          #
 
17750
                              if test "x$cross_compiling" != "xyes" ||
 
17751
            test "$compiler_num" -ge "300"; then
 
17752
            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
 
17753
          fi
 
17754
          #
 
17755
                    tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
 
17756
          #
 
17757
                    if test "$compiler_num" -ge "104"; then
 
17758
            tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
 
17759
                        if test "x$cross_compiling" != "xyes" ||
 
17760
              test "$compiler_num" -ge "300"; then
 
17761
              tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
 
17762
            fi
 
17763
          fi
 
17764
          #
 
17765
                    if test "$compiler_num" -ge "207"; then
 
17766
            tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
 
17767
                        if test "x$cross_compiling" != "xyes" ||
 
17768
              test "$compiler_num" -ge "300"; then
 
17769
              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
 
17770
              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
 
17771
            fi
 
17772
          fi
 
17773
          #
 
17774
                    if test "$compiler_num" -ge "295"; then
 
17775
            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
 
17776
          fi
 
17777
          #
 
17778
                    if test "$compiler_num" -ge "296"; then
 
17779
            tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
 
17780
            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
 
17781
                                                tmp_CFLAGS="$tmp_CFLAGS -Wundef"
 
17782
          fi
 
17783
          #
 
17784
                    if test "$compiler_num" -ge "297"; then
 
17785
            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
 
17786
          fi
 
17787
          #
 
17788
                    if test "$compiler_num" -ge "300"; then
 
17789
                                                            tmp_CFLAGS="$tmp_CFLAGS"
 
17790
          fi
 
17791
          #
 
17792
                    if test "$compiler_num" -ge "303"; then
 
17793
            tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
 
17794
          fi
 
17795
          #
 
17796
                    if test "$compiler_num" -ge "304"; then
 
17797
            tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
 
17798
          fi
 
17799
          #
 
17800
                    if test "$compiler_num" -ge "403"; then
 
17801
            tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
 
17802
            tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
 
17803
            tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
 
17804
          fi
 
17805
          #
 
17806
        fi
 
17807
        #
 
17808
                if test "$compiler_num" -ge "300"; then
 
17809
          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
 
17810
        else
 
17811
                              if test "x$cross_compiling" = "xyes"; then
 
17812
            if test "$compiler_num" -ge "104"; then
 
17813
                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
 
17814
            fi
 
17815
            if test "$compiler_num" -ge "207"; then
 
17816
                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
 
17817
              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
 
17818
            fi
 
17819
          fi
 
17820
        fi
 
17821
        ;;
 
17822
        #
 
17823
      HP_UX_C)
 
17824
        #
 
17825
        if test "$want_warnings" = "yes"; then
 
17826
                                                            tmp_CFLAGS="$tmp_CFLAGS +w2"
 
17827
        fi
 
17828
        ;;
 
17829
        #
 
17830
      IBM_C)
 
17831
        #
 
17832
                tmp_CFLAGS="$tmp_CFLAGS"
 
17833
        ;;
 
17834
        #
 
17835
      INTEL_UNIX_C)
 
17836
        #
 
17837
        if test "$want_warnings" = "yes"; then
 
17838
          if test "$compiler_num" -gt "600"; then
 
17839
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
 
17840
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
 
17841
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
 
17842
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
 
17843
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
 
17844
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
 
17845
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
 
17846
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
 
17847
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
 
17848
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
 
17849
                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
 
17850
          fi
 
17851
        fi
 
17852
                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
 
17853
                tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
 
17854
                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
 
17855
                if test "$compiler_num" -ge "1000"; then
 
17856
                    tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
 
17857
        fi
 
17858
                if test "$INTEL_UNIX_C_OPT_SIGSEGV" = "yes"; then
 
17859
                    tmp_CFLAGS="$tmp_CFLAGS -no-ip -no-ipo"
 
17860
                    tmp_CFLAGS="$tmp_CFLAGS -ffunction-sections"
 
17861
                    tmp_CFLAGS="$tmp_CFLAGS -Ob0"
 
17862
                    tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
 
17863
                    tmp_CFLAGS="$tmp_CFLAGS -fno-inline"
 
17864
                    tmp_CFLAGS="$tmp_CFLAGS -fno-inline-functions"
 
17865
                    tmp_CFLAGS="$tmp_CFLAGS -nolib-inline"
 
17866
                    tmp_CFLAGS="$tmp_CFLAGS -ip-no-inlining"
 
17867
                    tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
 
17868
                    tmp_CFLAGS="$tmp_CFLAGS -fstack-security-check"
 
17869
                    tmp_CFLAGS="$tmp_CFLAGS -falias"
 
17870
                    tmp_CFLAGS="$tmp_CFLAGS -alias-args"
 
17871
                    tmp_CFLAGS="$tmp_CFLAGS -ffnalias"
 
17872
                    tmp_CFLAGS="$tmp_CFLAGS -no-prefetch"
 
17873
                    tmp_CFLAGS="$tmp_CFLAGS -unroll0"
 
17874
        fi
 
17875
        ;;
 
17876
        #
 
17877
      INTEL_WINDOWS_C)
 
17878
        #
 
17879
                tmp_CFLAGS="$tmp_CFLAGS"
 
17880
        ;;
 
17881
        #
 
17882
      LCC)
 
17883
        #
 
17884
        if test "$want_warnings" = "yes"; then
 
17885
                                                  tmp_CFLAGS="$tmp_CFLAGS"
 
17886
        fi
 
17887
        ;;
 
17888
        #
 
17889
      SGI_MIPS_C)
 
17890
        #
 
17891
        if test "$want_warnings" = "yes"; then
 
17892
                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
 
17893
        fi
 
17894
        ;;
 
17895
        #
 
17896
      SGI_MIPSPRO_C)
 
17897
        #
 
17898
        if test "$want_warnings" = "yes"; then
 
17899
                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
 
17900
                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
 
17901
        fi
 
17902
        ;;
 
17903
        #
 
17904
      SUNPRO_C)
 
17905
        #
 
17906
        if test "$want_warnings" = "yes"; then
 
17907
                    tmp_CFLAGS="$tmp_CFLAGS -v"
 
17908
        fi
 
17909
        ;;
 
17910
        #
 
17911
      TINY_C)
 
17912
        #
 
17913
        if test "$want_warnings" = "yes"; then
 
17914
                    tmp_CFLAGS="$tmp_CFLAGS -Wall"
 
17915
                    tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
 
17916
                    tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
 
17917
        fi
 
17918
        ;;
 
17919
        #
 
17920
      WATCOM_UNIX_C)
 
17921
        #
 
17922
        if test "$want_warnings" = "yes"; then
 
17923
                    tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
 
17924
        fi
 
17925
        ;;
 
17926
        #
 
17927
      WATCOM_WINDOWS_C)
 
17928
        #
 
17929
                tmp_CFLAGS="$tmp_CFLAGS"
 
17930
        ;;
 
17931
        #
 
17932
    esac
 
17933
    #
 
17934
    squeeze tmp_CPPFLAGS
 
17935
    squeeze tmp_CFLAGS
 
17936
    #
 
17937
    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
 
17938
      { echo "$as_me:$LINENO: checking if compiler accepts strict warning options" >&5
 
17939
echo $ECHO_N "checking if compiler accepts strict warning options... $ECHO_C" >&6; }
 
17940
      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
 
17941
      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
 
17942
      squeeze CPPFLAGS
 
17943
      squeeze CFLAGS
 
17944
 
 
17945
    tmp_compiler_works="unknown"
 
17946
  cat >conftest.$ac_ext <<_ACEOF
 
17947
 
 
17948
    /* confdefs.h.  */
 
17949
_ACEOF
 
17950
cat confdefs.h >>conftest.$ac_ext
 
17951
cat >>conftest.$ac_ext <<_ACEOF
 
17952
/* end confdefs.h.  */
 
17953
 
 
17954
 
 
17955
int main (void)
 
17956
{
 
17957
 
 
17958
      int i = 1;
 
17959
      return i;
 
17960
 
 
17961
 ;
 
17962
 return 0;
 
17963
}
 
17964
 
 
17965
_ACEOF
 
17966
rm -f conftest.$ac_objext
 
17967
if { (ac_try="$ac_compile"
 
17968
case "(($ac_try" in
 
17969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17970
  *) ac_try_echo=$ac_try;;
 
17971
esac
 
17972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17973
  (eval "$ac_compile") 2>conftest.er1
 
17974
  ac_status=$?
 
17975
  grep -v '^ *+' conftest.er1 >conftest.err
 
17976
  rm -f conftest.er1
 
17977
  cat conftest.err >&5
 
17978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17979
  (exit $ac_status); } && {
 
17980
         test -z "$ac_c_werror_flag" ||
 
17981
         test ! -s conftest.err
 
17982
       } && test -s conftest.$ac_objext; then
 
17983
 
 
17984
    tmp_compiler_works="yes"
 
17985
 
 
17986
else
 
17987
  echo "$as_me: failed program was:" >&5
 
17988
sed 's/^/| /' conftest.$ac_ext >&5
 
17989
 
 
17990
 
 
17991
    tmp_compiler_works="no"
 
17992
    echo " " >&6
 
17993
    sed 's/^/cc-fail: /' conftest.err >&6
 
17994
    echo " " >&6
 
17995
 
 
17996
fi
 
17997
 
 
17998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17999
    if test "$tmp_compiler_works" = "yes"; then
 
18000
    cat >conftest.$ac_ext <<_ACEOF
 
18001
 
 
18002
      /* confdefs.h.  */
 
18003
_ACEOF
 
18004
cat confdefs.h >>conftest.$ac_ext
 
18005
cat >>conftest.$ac_ext <<_ACEOF
 
18006
/* end confdefs.h.  */
 
18007
 
 
18008
 
 
18009
int main (void)
 
18010
{
 
18011
 
 
18012
        int i = 1;
 
18013
        return i;
 
18014
 
 
18015
 ;
 
18016
 return 0;
 
18017
}
 
18018
 
 
18019
_ACEOF
 
18020
rm -f conftest.$ac_objext conftest$ac_exeext
 
18021
if { (ac_try="$ac_link"
 
18022
case "(($ac_try" in
 
18023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18024
  *) ac_try_echo=$ac_try;;
 
18025
esac
 
18026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18027
  (eval "$ac_link") 2>conftest.er1
 
18028
  ac_status=$?
 
18029
  grep -v '^ *+' conftest.er1 >conftest.err
 
18030
  rm -f conftest.er1
 
18031
  cat conftest.err >&5
 
18032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18033
  (exit $ac_status); } && {
 
18034
         test -z "$ac_c_werror_flag" ||
 
18035
         test ! -s conftest.err
 
18036
       } && test -s conftest$ac_exeext &&
 
18037
       $as_test_x conftest$ac_exeext; then
 
18038
 
 
18039
      tmp_compiler_works="yes"
 
18040
 
 
18041
else
 
18042
  echo "$as_me: failed program was:" >&5
 
18043
sed 's/^/| /' conftest.$ac_ext >&5
 
18044
 
 
18045
 
 
18046
      tmp_compiler_works="no"
 
18047
      echo " " >&6
 
18048
      sed 's/^/link-fail: /' conftest.err >&6
 
18049
      echo " " >&6
 
18050
 
 
18051
fi
 
18052
 
 
18053
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18054
      conftest$ac_exeext conftest.$ac_ext
 
18055
  fi
 
18056
    if test "x$cross_compiling" != "xyes" &&
 
18057
    test "$tmp_compiler_works" = "yes"; then
 
18058
    if test "$cross_compiling" = yes; then
 
18059
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
18060
See \`config.log' for more details." >&5
 
18061
echo "$as_me: error: cannot run test program while cross compiling
 
18062
See \`config.log' for more details." >&2;}
 
18063
   { (exit 1); exit 1; }; }
 
18064
else
 
18065
  cat >conftest.$ac_ext <<_ACEOF
 
18066
 
 
18067
      /* confdefs.h.  */
 
18068
_ACEOF
 
18069
cat confdefs.h >>conftest.$ac_ext
 
18070
cat >>conftest.$ac_ext <<_ACEOF
 
18071
/* end confdefs.h.  */
 
18072
 
 
18073
#       ifdef __STDC__
 
18074
#         include <stdlib.h>
 
18075
#       endif
 
18076
 
 
18077
int main (void)
 
18078
{
 
18079
 
 
18080
        int i = 0;
 
18081
        exit(i);
 
18082
 
 
18083
 ;
 
18084
 return 0;
 
18085
}
 
18086
 
 
18087
_ACEOF
 
18088
rm -f conftest$ac_exeext
 
18089
if { (ac_try="$ac_link"
 
18090
case "(($ac_try" in
 
18091
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18092
  *) ac_try_echo=$ac_try;;
 
18093
esac
 
18094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18095
  (eval "$ac_link") 2>&5
 
18096
  ac_status=$?
 
18097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18098
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18099
  { (case "(($ac_try" in
 
18100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18101
  *) ac_try_echo=$ac_try;;
 
18102
esac
 
18103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18104
  (eval "$ac_try") 2>&5
 
18105
  ac_status=$?
 
18106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18107
  (exit $ac_status); }; }; then
 
18108
 
 
18109
      tmp_compiler_works="yes"
 
18110
 
 
18111
else
 
18112
  echo "$as_me: program exited with status $ac_status" >&5
 
18113
echo "$as_me: failed program was:" >&5
 
18114
sed 's/^/| /' conftest.$ac_ext >&5
 
18115
 
 
18116
( exit $ac_status )
 
18117
 
 
18118
      tmp_compiler_works="no"
 
18119
      echo " " >&6
 
18120
      echo "run-fail: test program exited with status $ac_status" >&6
 
18121
      echo " " >&6
 
18122
 
 
18123
fi
 
18124
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18125
fi
 
18126
 
 
18127
 
 
18128
  fi
 
18129
    if test "$tmp_compiler_works" = "yes"; then
 
18130
 
 
18131
        { echo "$as_me:$LINENO: result: yes" >&5
 
18132
echo "${ECHO_T}yes" >&6; }
 
18133
        { echo "$as_me:$LINENO: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
 
18134
echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
 
18135
 
 
18136
  else
 
18137
 
 
18138
        { echo "$as_me:$LINENO: result: no" >&5
 
18139
echo "${ECHO_T}no" >&6; }
 
18140
        { echo "$as_me:$LINENO: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
 
18141
echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
 
18142
                CPPFLAGS="$tmp_save_CPPFLAGS"
 
18143
        CFLAGS="$tmp_save_CFLAGS"
 
18144
 
 
18145
  fi
 
18146
 
 
18147
    fi
 
18148
    #
 
18149
  fi
 
18150
 
 
18151
 
 
18152
case $host in
 
18153
  #
 
18154
  x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
 
18155
    #
 
18156
    if test "$compiler_id" = "INTEL_UNIX_C"; then
 
18157
      #
 
18158
      if test "$compiler_num" -ge "900" &&
 
18159
        test "$compiler_num" -lt "1000"; then
 
18160
                CFLAGS="$CFLAGS -i-dynamic"
 
18161
      fi
 
18162
      #
 
18163
      if test "$compiler_num" -ge "1000"; then
 
18164
                CFLAGS="$CFLAGS -shared-intel"
 
18165
      fi
 
18166
      #
 
18167
    fi
 
18168
    ;;
 
18169
  #
 
18170
esac
 
18171
 
 
18172
 
 
18173
  { echo "$as_me:$LINENO: checking if compiler halts on compilation errors" >&5
 
18174
echo $ECHO_N "checking if compiler halts on compilation errors... $ECHO_C" >&6; }
 
18175
  cat >conftest.$ac_ext <<_ACEOF
 
18176
 
 
18177
    /* confdefs.h.  */
 
18178
_ACEOF
 
18179
cat confdefs.h >>conftest.$ac_ext
 
18180
cat >>conftest.$ac_ext <<_ACEOF
 
18181
/* end confdefs.h.  */
 
18182
 
 
18183
 
 
18184
int main (void)
 
18185
{
 
18186
 
 
18187
      force compilation error
 
18188
 
 
18189
 ;
 
18190
 return 0;
 
18191
}
 
18192
 
 
18193
_ACEOF
 
18194
rm -f conftest.$ac_objext
 
18195
if { (ac_try="$ac_compile"
 
18196
case "(($ac_try" in
 
18197
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18198
  *) ac_try_echo=$ac_try;;
 
18199
esac
 
18200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18201
  (eval "$ac_compile") 2>conftest.er1
 
18202
  ac_status=$?
 
18203
  grep -v '^ *+' conftest.er1 >conftest.err
 
18204
  rm -f conftest.er1
 
18205
  cat conftest.err >&5
 
18206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18207
  (exit $ac_status); } && {
 
18208
         test -z "$ac_c_werror_flag" ||
 
18209
         test ! -s conftest.err
 
18210
       } && test -s conftest.$ac_objext; then
 
18211
 
 
18212
    { echo "$as_me:$LINENO: result: no" >&5
 
18213
echo "${ECHO_T}no" >&6; }
 
18214
    { { echo "$as_me:$LINENO: error: compiler does not halt on compilation errors." >&5
 
18215
echo "$as_me: error: compiler does not halt on compilation errors." >&2;}
 
18216
   { (exit 1); exit 1; }; }
 
18217
 
 
18218
else
 
18219
  echo "$as_me: failed program was:" >&5
 
18220
sed 's/^/| /' conftest.$ac_ext >&5
 
18221
 
 
18222
 
 
18223
    { echo "$as_me:$LINENO: result: yes" >&5
 
18224
echo "${ECHO_T}yes" >&6; }
 
18225
 
 
18226
fi
 
18227
 
 
18228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18229
 
 
18230
 
 
18231
    { echo "$as_me:$LINENO: checking if compiler halts on negative sized arrays" >&5
 
18232
echo $ECHO_N "checking if compiler halts on negative sized arrays... $ECHO_C" >&6; }
 
18233
  cat >conftest.$ac_ext <<_ACEOF
 
18234
 
 
18235
    /* confdefs.h.  */
 
18236
_ACEOF
 
18237
cat confdefs.h >>conftest.$ac_ext
 
18238
cat >>conftest.$ac_ext <<_ACEOF
 
18239
/* end confdefs.h.  */
 
18240
 
 
18241
      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
 
18242
 
 
18243
int main (void)
 
18244
{
 
18245
 
 
18246
      bad_t dummy;
 
18247
 
 
18248
 ;
 
18249
 return 0;
 
18250
}
 
18251
 
 
18252
_ACEOF
 
18253
rm -f conftest.$ac_objext
 
18254
if { (ac_try="$ac_compile"
 
18255
case "(($ac_try" in
 
18256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18257
  *) ac_try_echo=$ac_try;;
 
18258
esac
 
18259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18260
  (eval "$ac_compile") 2>conftest.er1
 
18261
  ac_status=$?
 
18262
  grep -v '^ *+' conftest.er1 >conftest.err
 
18263
  rm -f conftest.er1
 
18264
  cat conftest.err >&5
 
18265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18266
  (exit $ac_status); } && {
 
18267
         test -z "$ac_c_werror_flag" ||
 
18268
         test ! -s conftest.err
 
18269
       } && test -s conftest.$ac_objext; then
 
18270
 
 
18271
    { echo "$as_me:$LINENO: result: no" >&5
 
18272
echo "${ECHO_T}no" >&6; }
 
18273
    { { echo "$as_me:$LINENO: error: compiler does not halt on negative sized arrays." >&5
 
18274
echo "$as_me: error: compiler does not halt on negative sized arrays." >&2;}
 
18275
   { (exit 1); exit 1; }; }
 
18276
 
 
18277
else
 
18278
  echo "$as_me: failed program was:" >&5
 
18279
sed 's/^/| /' conftest.$ac_ext >&5
 
18280
 
 
18281
 
 
18282
    { echo "$as_me:$LINENO: result: yes" >&5
 
18283
echo "${ECHO_T}yes" >&6; }
 
18284
 
 
18285
fi
 
18286
 
 
18287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18288
 
 
18289
 
 
18290
 
 
18291
 
 
18292
 
20815
18293
  { echo "$as_me:$LINENO: checking for windows.h" >&5
20816
18294
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
20817
18295
if test "${ac_cv_header_windows_h+set}" = set; then
20832
18310
#endif
20833
18311
#include <windows.h>
20834
18312
 
20835
 
int
20836
 
main ()
 
18313
int main (void)
20837
18314
{
20838
18315
 
20839
18316
#if defined(__CYGWIN__) || defined(__CEGCC__)
20842
18319
        int dummy=2*WINVER;
20843
18320
#endif
20844
18321
 
20845
 
  ;
20846
 
  return 0;
 
18322
 ;
 
18323
 return 0;
20847
18324
}
20848
18325
 
20849
18326
_ACEOF
20915
18392
/* end confdefs.h.  */
20916
18393
 
20917
18394
 
20918
 
int
20919
 
main ()
 
18395
int main (void)
20920
18396
{
20921
18397
 
20922
 
#if defined(__MINGW32__) || defined(__MINGW32CE__)
 
18398
#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
 
18399
   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20923
18400
          int dummy=1;
20924
18401
#else
20925
18402
          Not a native Windows build target.
20926
18403
#endif
20927
18404
 
20928
 
  ;
20929
 
  return 0;
 
18405
 ;
 
18406
 return 0;
20930
18407
}
20931
18408
 
20932
18409
_ACEOF
20999
18476
#include <windows.h>
21000
18477
#include <winsock.h>
21001
18478
 
21002
 
int
21003
 
main ()
 
18479
int main (void)
21004
18480
{
21005
18481
 
21006
18482
#if defined(__CYGWIN__) || defined(__CEGCC__)
21009
18485
        int dummy=WSACleanup();
21010
18486
#endif
21011
18487
 
21012
 
  ;
21013
 
  return 0;
 
18488
 ;
 
18489
 return 0;
21014
18490
}
21015
18491
 
21016
18492
_ACEOF
21080
18556
#include <windows.h>
21081
18557
#include <winsock2.h>
21082
18558
 
21083
 
int
21084
 
main ()
 
18559
int main (void)
21085
18560
{
21086
18561
 
21087
18562
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21090
18565
        int dummy=2*IPPROTO_ESP;
21091
18566
#endif
21092
18567
 
21093
 
  ;
21094
 
  return 0;
 
18568
 ;
 
18569
 return 0;
21095
18570
}
21096
18571
 
21097
18572
_ACEOF
21162
18637
#include <winsock2.h>
21163
18638
#include <ws2tcpip.h>
21164
18639
 
21165
 
int
21166
 
main ()
 
18640
int main (void)
21167
18641
{
21168
18642
 
21169
18643
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21172
18646
        int dummy=2*IP_PKTINFO;
21173
18647
#endif
21174
18648
 
21175
 
  ;
21176
 
  return 0;
 
18649
 ;
 
18650
 return 0;
21177
18651
}
21178
18652
 
21179
18653
_ACEOF
21245
18719
#endif
21246
18720
#include <winldap.h>
21247
18721
 
21248
 
int
21249
 
main ()
 
18722
int main (void)
21250
18723
{
21251
18724
 
21252
18725
#if defined(__CYGWIN__) || defined(__CEGCC__)
21256
18729
        ULONG res = ldap_unbind(ldp);
21257
18730
#endif
21258
18731
 
21259
 
  ;
21260
 
  return 0;
 
18732
 ;
 
18733
 return 0;
21261
18734
}
21262
18735
 
21263
18736
_ACEOF
21330
18803
#include <winldap.h>
21331
18804
#include <winber.h>
21332
18805
 
21333
 
int
21334
 
main ()
 
18806
int main (void)
21335
18807
{
21336
18808
 
21337
18809
#if defined(__CYGWIN__) || defined(__CEGCC__)
21342
18814
        ber_free(bep, 1);
21343
18815
#endif
21344
18816
 
21345
 
  ;
21346
 
  return 0;
 
18817
 ;
 
18818
 return 0;
21347
18819
}
21348
18820
 
21349
18821
_ACEOF
21401
18873
    ;;
21402
18874
esac
21403
18875
 
21404
 
 
21405
 
case $host in
21406
 
  #
21407
 
  x86_64*linux*)
21408
 
    #
21409
 
        if test "z$ICC" = "z"; then
21410
 
 
21411
 
    ICC="no"
21412
 
    { echo "$as_me:$LINENO: checking for icc in use" >&5
21413
 
echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
21414
 
    if test "$GCC" = "yes"; then
21415
 
              cat >conftest.$ac_ext <<_ACEOF
21416
 
/* confdefs.h.  */
21417
 
_ACEOF
21418
 
cat confdefs.h >>conftest.$ac_ext
21419
 
cat >>conftest.$ac_ext <<_ACEOF
21420
 
/* end confdefs.h.  */
21421
 
__INTEL_COMPILER
21422
 
_ACEOF
21423
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424
 
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
21425
 
                    ICC="no"
21426
 
else
21427
 
           ICC="yes"
21428
 
         { echo "$as_me:$LINENO: result: yes" >&5
21429
 
echo "${ECHO_T}yes" >&6; }
21430
 
 
21431
 
 
21432
 
fi
21433
 
rm -f conftest*
21434
 
 
21435
 
    fi
21436
 
    if test "$ICC" = "no"; then
21437
 
        # this is not ICC
21438
 
        { echo "$as_me:$LINENO: result: no" >&5
 
18876
    { echo "$as_me:$LINENO: checking whether build target supports WIN32 file API" >&5
 
18877
echo $ECHO_N "checking whether build target supports WIN32 file API... $ECHO_C" >&6; }
 
18878
  curl_win32_file_api="no"
 
18879
  if test "$ac_cv_header_windows_h" = "yes"; then
 
18880
    if test x"$enable_largefile" != "xno"; then
 
18881
      cat >conftest.$ac_ext <<_ACEOF
 
18882
 
 
18883
        /* confdefs.h.  */
 
18884
_ACEOF
 
18885
cat confdefs.h >>conftest.$ac_ext
 
18886
cat >>conftest.$ac_ext <<_ACEOF
 
18887
/* end confdefs.h.  */
 
18888
 
 
18889
 
 
18890
int main (void)
 
18891
{
 
18892
 
 
18893
#if !defined(_WIN32_WCE) && \
 
18894
    (defined(__MINGW32__) || \
 
18895
    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
 
18896
          int dummy=1;
 
18897
#else
 
18898
          WIN32 large file API not supported.
 
18899
#endif
 
18900
 
 
18901
 ;
 
18902
 return 0;
 
18903
}
 
18904
 
 
18905
_ACEOF
 
18906
rm -f conftest.$ac_objext
 
18907
if { (ac_try="$ac_compile"
 
18908
case "(($ac_try" in
 
18909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18910
  *) ac_try_echo=$ac_try;;
 
18911
esac
 
18912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18913
  (eval "$ac_compile") 2>conftest.er1
 
18914
  ac_status=$?
 
18915
  grep -v '^ *+' conftest.er1 >conftest.err
 
18916
  rm -f conftest.er1
 
18917
  cat conftest.err >&5
 
18918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18919
  (exit $ac_status); } && {
 
18920
         test -z "$ac_c_werror_flag" ||
 
18921
         test ! -s conftest.err
 
18922
       } && test -s conftest.$ac_objext; then
 
18923
 
 
18924
        curl_win32_file_api="win32_large_files"
 
18925
 
 
18926
else
 
18927
  echo "$as_me: failed program was:" >&5
 
18928
sed 's/^/| /' conftest.$ac_ext >&5
 
18929
 
 
18930
 
 
18931
fi
 
18932
 
 
18933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18934
    fi
 
18935
    if test "$curl_win32_file_api" = "no"; then
 
18936
      cat >conftest.$ac_ext <<_ACEOF
 
18937
 
 
18938
        /* confdefs.h.  */
 
18939
_ACEOF
 
18940
cat confdefs.h >>conftest.$ac_ext
 
18941
cat >>conftest.$ac_ext <<_ACEOF
 
18942
/* end confdefs.h.  */
 
18943
 
 
18944
 
 
18945
int main (void)
 
18946
{
 
18947
 
 
18948
#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
 
18949
          int dummy=1;
 
18950
#else
 
18951
          WIN32 small file API not supported.
 
18952
#endif
 
18953
 
 
18954
 ;
 
18955
 return 0;
 
18956
}
 
18957
 
 
18958
_ACEOF
 
18959
rm -f conftest.$ac_objext
 
18960
if { (ac_try="$ac_compile"
 
18961
case "(($ac_try" in
 
18962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18963
  *) ac_try_echo=$ac_try;;
 
18964
esac
 
18965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18966
  (eval "$ac_compile") 2>conftest.er1
 
18967
  ac_status=$?
 
18968
  grep -v '^ *+' conftest.er1 >conftest.err
 
18969
  rm -f conftest.er1
 
18970
  cat conftest.err >&5
 
18971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18972
  (exit $ac_status); } && {
 
18973
         test -z "$ac_c_werror_flag" ||
 
18974
         test ! -s conftest.err
 
18975
       } && test -s conftest.$ac_objext; then
 
18976
 
 
18977
        curl_win32_file_api="win32_small_files"
 
18978
 
 
18979
else
 
18980
  echo "$as_me: failed program was:" >&5
 
18981
sed 's/^/| /' conftest.$ac_ext >&5
 
18982
 
 
18983
 
 
18984
fi
 
18985
 
 
18986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18987
    fi
 
18988
  fi
 
18989
  case "$curl_win32_file_api" in
 
18990
    win32_large_files)
 
18991
      { echo "$as_me:$LINENO: result: yes (large file enabled)" >&5
 
18992
echo "${ECHO_T}yes (large file enabled)" >&6; }
 
18993
 
 
18994
cat >>confdefs.h <<_ACEOF
 
18995
#define USE_WIN32_LARGE_FILES 1
 
18996
_ACEOF
 
18997
 
 
18998
      ;;
 
18999
    win32_small_files)
 
19000
      { echo "$as_me:$LINENO: result: yes (large file disabled)" >&5
 
19001
echo "${ECHO_T}yes (large file disabled)" >&6; }
 
19002
 
 
19003
cat >>confdefs.h <<_ACEOF
 
19004
#define USE_WIN32_LARGE_FILES 1
 
19005
_ACEOF
 
19006
 
 
19007
      ;;
 
19008
    *)
 
19009
      { echo "$as_me:$LINENO: result: no" >&5
21439
19010
echo "${ECHO_T}no" >&6; }
21440
 
    fi
 
19011
      ;;
 
19012
  esac
21441
19013
 
21442
 
    fi
21443
 
    #
21444
 
    if test "$ICC" = "yes"; then
21445
 
            { echo "$as_me:$LINENO: checking icc version" >&5
21446
 
echo $ECHO_N "checking icc version... $ECHO_C" >&6; }
21447
 
      iccver=`$CC -dumpversion`
21448
 
      iccnhi=`echo $iccver | cut -d . -f1`
21449
 
      iccnlo=`echo $iccver | cut -d . -f2`
21450
 
      iccnum=`(expr $iccnhi "*" 100 + $iccnlo) 2>/dev/null`
21451
 
      { echo "$as_me:$LINENO: result: $iccver" >&5
21452
 
echo "${ECHO_T}$iccver" >&6; }
21453
 
      #
21454
 
      if test "$iccnum" -ge "900" && test "$iccnum" -lt "1000"; then
21455
 
                CFLAGS="$CFLAGS -i-dynamic"
21456
 
      fi
21457
 
      #
21458
 
      if test "$iccnum" -ge "1000"; then
21459
 
                CFLAGS="$CFLAGS -shared-intel"
21460
 
      fi
21461
 
      #
21462
 
    fi
21463
 
    ;;
21464
 
  #
21465
 
esac
21466
19014
 
21467
19015
{ echo "$as_me:$LINENO: checking whether to support http" >&5
21468
19016
echo $ECHO_N "checking whether to support http... $ECHO_C" >&6; }
21654
19202
fi
21655
19203
 
21656
19204
 
 
19205
{ echo "$as_me:$LINENO: checking whether to support proxies" >&5
 
19206
echo $ECHO_N "checking whether to support proxies... $ECHO_C" >&6; }
 
19207
# Check whether --enable-proxy was given.
 
19208
if test "${enable_proxy+set}" = set; then
 
19209
  enableval=$enable_proxy;  case "$enableval" in
 
19210
  no)
 
19211
       { echo "$as_me:$LINENO: result: no" >&5
 
19212
echo "${ECHO_T}no" >&6; }
 
19213
 
 
19214
cat >>confdefs.h <<\_ACEOF
 
19215
#define CURL_DISABLE_PROXY 1
 
19216
_ACEOF
 
19217
 
 
19218
       CURL_DISABLE_PROXY=1
 
19219
 
 
19220
       ;;
 
19221
  *)   { echo "$as_me:$LINENO: result: yes" >&5
 
19222
echo "${ECHO_T}yes" >&6; }
 
19223
       ;;
 
19224
  esac
 
19225
else
 
19226
  { echo "$as_me:$LINENO: result: yes" >&5
 
19227
echo "${ECHO_T}yes" >&6; }
 
19228
 
 
19229
fi
 
19230
 
 
19231
 
21657
19232
{ echo "$as_me:$LINENO: checking whether to support dict" >&5
21658
19233
echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6; }
21659
19234
# Check whether --enable-dict was given.
21757
19332
 
21758
19333
 
21759
19334
 
21760
 
    ICC="no"
21761
 
    { echo "$as_me:$LINENO: checking for icc in use" >&5
21762
 
echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
21763
 
    if test "$GCC" = "yes"; then
21764
 
              cat >conftest.$ac_ext <<_ACEOF
21765
 
/* confdefs.h.  */
21766
 
_ACEOF
21767
 
cat confdefs.h >>conftest.$ac_ext
21768
 
cat >>conftest.$ac_ext <<_ACEOF
21769
 
/* end confdefs.h.  */
21770
 
__INTEL_COMPILER
21771
 
_ACEOF
21772
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21773
 
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
21774
 
                    ICC="no"
21775
 
else
21776
 
           ICC="yes"
21777
 
         { echo "$as_me:$LINENO: result: yes" >&5
21778
 
echo "${ECHO_T}yes" >&6; }
21779
 
         CFLAGS="$CFLAGS -we 147"
21780
 
 
21781
 
fi
21782
 
rm -f conftest*
21783
 
 
21784
 
    fi
21785
 
    if test "$ICC" = "no"; then
21786
 
        # this is not ICC
21787
 
        { echo "$as_me:$LINENO: result: no" >&5
21788
 
echo "${ECHO_T}no" >&6; }
21789
 
    fi
21790
 
 
21791
 
 
21792
 
 
21793
19335
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
21794
19336
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21795
19337
if test "${ac_cv_func_gethostbyname+set}" = set; then
21801
19343
cat confdefs.h >>conftest.$ac_ext
21802
19344
cat >>conftest.$ac_ext <<_ACEOF
21803
19345
/* end confdefs.h.  */
21804
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21805
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19346
 
21806
19347
#define gethostbyname innocuous_gethostbyname
21807
 
 
21808
 
/* System header to define __stub macros and hopefully few prototypes,
21809
 
    which can conflict with char gethostbyname (); below.
21810
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811
 
    <limits.h> exists even on freestanding compilers.  */
21812
 
 
21813
19348
#ifdef __STDC__
21814
19349
# include <limits.h>
21815
19350
#else
21816
19351
# include <assert.h>
21817
19352
#endif
21818
 
 
21819
19353
#undef gethostbyname
21820
 
 
21821
 
/* Override any GCC internal prototype to avoid an error.
21822
 
   Use char because int might match the return type of a GCC
21823
 
   builtin and then its argument prototype would still apply.  */
21824
19354
#ifdef __cplusplus
21825
19355
extern "C"
21826
19356
#endif
21827
19357
char gethostbyname ();
21828
 
/* The GNU C library defines this for functions which it implements
21829
 
    to always fail with ENOSYS.  Some functions are actually named
21830
 
    something starting with __ and the normal name is an alias.  */
21831
19358
#if defined __stub_gethostbyname || defined __stub___gethostbyname
21832
19359
choke me
21833
19360
#endif
21834
19361
 
21835
 
int
21836
 
main ()
 
19362
int main (void)
21837
19363
{
21838
19364
return gethostbyname ();
21839
 
  ;
21840
 
  return 0;
 
19365
 ;
 
19366
 return 0;
21841
19367
}
21842
19368
_ACEOF
21843
19369
rm -f conftest.$ac_objext conftest$ac_exeext
21889
19415
cat >>conftest.$ac_ext <<_ACEOF
21890
19416
/* end confdefs.h.  */
21891
19417
 
21892
 
/* Override any GCC internal prototype to avoid an error.
21893
 
   Use char because int might match the return type of a GCC
21894
 
   builtin and then its argument prototype would still apply.  */
 
19418
 
21895
19419
#ifdef __cplusplus
21896
19420
extern "C"
21897
19421
#endif
21898
19422
char gethostbyname ();
21899
 
int
21900
 
main ()
 
19423
int main (void)
21901
19424
{
21902
19425
return gethostbyname ();
21903
 
  ;
21904
 
  return 0;
 
19426
 ;
 
19427
 return 0;
21905
19428
}
21906
19429
_ACEOF
21907
19430
rm -f conftest.$ac_objext conftest$ac_exeext
21962
19485
cat >>conftest.$ac_ext <<_ACEOF
21963
19486
/* end confdefs.h.  */
21964
19487
 
21965
 
/* Override any GCC internal prototype to avoid an error.
21966
 
   Use char because int might match the return type of a GCC
21967
 
   builtin and then its argument prototype would still apply.  */
 
19488
 
21968
19489
#ifdef __cplusplus
21969
19490
extern "C"
21970
19491
#endif
21971
19492
char gethostbyname ();
21972
 
int
21973
 
main ()
 
19493
int main (void)
21974
19494
{
21975
19495
return gethostbyname ();
21976
 
  ;
21977
 
  return 0;
 
19496
 ;
 
19497
 return 0;
21978
19498
}
21979
19499
_ACEOF
21980
19500
rm -f conftest.$ac_objext conftest$ac_exeext
22032
19552
/* end confdefs.h.  */
22033
19553
 
22034
19554
 
22035
 
int
22036
 
main ()
 
19555
int main (void)
22037
19556
{
22038
19557
 
22039
19558
      gethostbyname();
22040
19559
 
22041
 
  ;
22042
 
  return 0;
 
19560
 ;
 
19561
 return 0;
22043
19562
}
22044
19563
 
22045
19564
_ACEOF
22124
19643
#endif
22125
19644
#endif
22126
19645
 
22127
 
int
22128
 
main ()
 
19646
int main (void)
22129
19647
{
22130
19648
 
22131
19649
          gethostbyname("www.dummysite.com");
22132
19650
 
22133
 
  ;
22134
 
  return 0;
 
19651
 ;
 
19652
 return 0;
22135
19653
}
22136
19654
 
22137
19655
_ACEOF
22191
19709
/* Older Minix versions may need <net/gen/netdb.h> here instead */
22192
19710
#include <netdb.h>
22193
19711
 
22194
 
int
22195
 
main ()
 
19712
int main (void)
22196
19713
{
22197
19714
 
22198
19715
      gethostbyname("www.dummysite.com");
22199
19716
 
22200
 
  ;
22201
 
  return 0;
 
19717
 ;
 
19718
 return 0;
22202
19719
}
22203
19720
 
22204
19721
_ACEOF
22254
19771
#include <stdio.h>
22255
19772
#include <netdb.h>
22256
19773
 
22257
 
int
22258
 
main ()
 
19774
int main (void)
22259
19775
{
22260
19776
 
22261
19777
      gethostbyname("www.dummysite.com");
22262
19778
 
22263
 
  ;
22264
 
  return 0;
 
19779
 ;
 
19780
 return 0;
22265
19781
}
22266
19782
 
22267
19783
_ACEOF
22318
19834
cat >>conftest.$ac_ext <<_ACEOF
22319
19835
/* end confdefs.h.  */
22320
19836
 
22321
 
/* Override any GCC internal prototype to avoid an error.
22322
 
   Use char because int might match the return type of a GCC
22323
 
   builtin and then its argument prototype would still apply.  */
 
19837
 
22324
19838
#ifdef __cplusplus
22325
19839
extern "C"
22326
19840
#endif
22327
19841
char gethostbyname ();
22328
 
int
22329
 
main ()
 
19842
int main (void)
22330
19843
{
22331
19844
return gethostbyname ();
22332
 
  ;
22333
 
  return 0;
 
19845
 ;
 
19846
 return 0;
22334
19847
}
22335
19848
_ACEOF
22336
19849
rm -f conftest.$ac_objext conftest$ac_exeext
22389
19902
cat >>conftest.$ac_ext <<_ACEOF
22390
19903
/* end confdefs.h.  */
22391
19904
 
22392
 
/* Override any GCC internal prototype to avoid an error.
22393
 
   Use char because int might match the return type of a GCC
22394
 
   builtin and then its argument prototype would still apply.  */
 
19905
 
22395
19906
#ifdef __cplusplus
22396
19907
extern "C"
22397
19908
#endif
22398
19909
char gethostbyname ();
22399
 
int
22400
 
main ()
 
19910
int main (void)
22401
19911
{
22402
19912
return gethostbyname ();
22403
 
  ;
22404
 
  return 0;
 
19913
 ;
 
19914
 return 0;
22405
19915
}
22406
19916
_ACEOF
22407
19917
rm -f conftest.$ac_objext conftest$ac_exeext
22445
19955
fi
22446
19956
 
22447
19957
 
22448
 
if test "$HAVE_GETHOSTBYNAME" = "1"; then
22449
 
 
22450
 
cat >>confdefs.h <<\_ACEOF
22451
 
#define HAVE_GETHOSTBYNAME 1
22452
 
_ACEOF
22453
 
 
22454
 
else
 
19958
if test "$HAVE_GETHOSTBYNAME" != "1"; then
22455
19959
  { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
22456
19960
echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
22457
19961
   { (exit 1); exit 1; }; }
22468
19972
cat confdefs.h >>conftest.$ac_ext
22469
19973
cat >>conftest.$ac_ext <<_ACEOF
22470
19974
/* end confdefs.h.  */
22471
 
/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
22472
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19975
 
22473
19976
#define strcasecmp innocuous_strcasecmp
22474
 
 
22475
 
/* System header to define __stub macros and hopefully few prototypes,
22476
 
    which can conflict with char strcasecmp (); below.
22477
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22478
 
    <limits.h> exists even on freestanding compilers.  */
22479
 
 
22480
19977
#ifdef __STDC__
22481
19978
# include <limits.h>
22482
19979
#else
22483
19980
# include <assert.h>
22484
19981
#endif
22485
 
 
22486
19982
#undef strcasecmp
22487
 
 
22488
 
/* Override any GCC internal prototype to avoid an error.
22489
 
   Use char because int might match the return type of a GCC
22490
 
   builtin and then its argument prototype would still apply.  */
22491
19983
#ifdef __cplusplus
22492
19984
extern "C"
22493
19985
#endif
22494
19986
char strcasecmp ();
22495
 
/* The GNU C library defines this for functions which it implements
22496
 
    to always fail with ENOSYS.  Some functions are actually named
22497
 
    something starting with __ and the normal name is an alias.  */
22498
19987
#if defined __stub_strcasecmp || defined __stub___strcasecmp
22499
19988
choke me
22500
19989
#endif
22501
19990
 
22502
 
int
22503
 
main ()
 
19991
int main (void)
22504
19992
{
22505
19993
return strcasecmp ();
22506
 
  ;
22507
 
  return 0;
 
19994
 ;
 
19995
 return 0;
22508
19996
}
22509
19997
_ACEOF
22510
19998
rm -f conftest.$ac_objext conftest$ac_exeext
22556
20044
cat >>conftest.$ac_ext <<_ACEOF
22557
20045
/* end confdefs.h.  */
22558
20046
 
22559
 
/* Override any GCC internal prototype to avoid an error.
22560
 
   Use char because int might match the return type of a GCC
22561
 
   builtin and then its argument prototype would still apply.  */
 
20047
 
22562
20048
#ifdef __cplusplus
22563
20049
extern "C"
22564
20050
#endif
22565
20051
char strcasecmp ();
22566
 
int
22567
 
main ()
 
20052
int main (void)
22568
20053
{
22569
20054
return strcasecmp ();
22570
 
  ;
22571
 
  return 0;
 
20055
 ;
 
20056
 return 0;
22572
20057
}
22573
20058
_ACEOF
22574
20059
rm -f conftest.$ac_objext conftest$ac_exeext
22630
20115
cat >>conftest.$ac_ext <<_ACEOF
22631
20116
/* end confdefs.h.  */
22632
20117
 
22633
 
/* Override any GCC internal prototype to avoid an error.
22634
 
   Use char because int might match the return type of a GCC
22635
 
   builtin and then its argument prototype would still apply.  */
 
20118
 
22636
20119
#ifdef __cplusplus
22637
20120
extern "C"
22638
20121
#endif
22639
20122
char strcasecmp ();
22640
 
int
22641
 
main ()
 
20123
int main (void)
22642
20124
{
22643
20125
return strcasecmp ();
22644
 
  ;
22645
 
  return 0;
 
20126
 ;
 
20127
 return 0;
22646
20128
}
22647
20129
_ACEOF
22648
20130
rm -f conftest.$ac_objext conftest$ac_exeext
22682
20164
fi
22683
20165
 
22684
20166
fi
 
20167
ac_cv_func_strcasecmp="no"
22685
20168
 
22686
20169
{ echo "$as_me:$LINENO: checking for connect" >&5
22687
20170
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22694
20177
cat confdefs.h >>conftest.$ac_ext
22695
20178
cat >>conftest.$ac_ext <<_ACEOF
22696
20179
/* end confdefs.h.  */
22697
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
22698
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20180
 
22699
20181
#define connect innocuous_connect
22700
 
 
22701
 
/* System header to define __stub macros and hopefully few prototypes,
22702
 
    which can conflict with char connect (); below.
22703
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22704
 
    <limits.h> exists even on freestanding compilers.  */
22705
 
 
22706
20182
#ifdef __STDC__
22707
20183
# include <limits.h>
22708
20184
#else
22709
20185
# include <assert.h>
22710
20186
#endif
22711
 
 
22712
20187
#undef connect
22713
 
 
22714
 
/* Override any GCC internal prototype to avoid an error.
22715
 
   Use char because int might match the return type of a GCC
22716
 
   builtin and then its argument prototype would still apply.  */
22717
20188
#ifdef __cplusplus
22718
20189
extern "C"
22719
20190
#endif
22720
20191
char connect ();
22721
 
/* The GNU C library defines this for functions which it implements
22722
 
    to always fail with ENOSYS.  Some functions are actually named
22723
 
    something starting with __ and the normal name is an alias.  */
22724
20192
#if defined __stub_connect || defined __stub___connect
22725
20193
choke me
22726
20194
#endif
22727
20195
 
22728
 
int
22729
 
main ()
 
20196
int main (void)
22730
20197
{
22731
20198
return connect ();
22732
 
  ;
22733
 
  return 0;
 
20199
 ;
 
20200
 return 0;
22734
20201
}
22735
20202
_ACEOF
22736
20203
rm -f conftest.$ac_objext conftest$ac_exeext
22782
20249
cat >>conftest.$ac_ext <<_ACEOF
22783
20250
/* end confdefs.h.  */
22784
20251
 
22785
 
/* Override any GCC internal prototype to avoid an error.
22786
 
   Use char because int might match the return type of a GCC
22787
 
   builtin and then its argument prototype would still apply.  */
 
20252
 
22788
20253
#ifdef __cplusplus
22789
20254
extern "C"
22790
20255
#endif
22791
20256
char connect ();
22792
 
int
22793
 
main ()
 
20257
int main (void)
22794
20258
{
22795
20259
return connect ();
22796
 
  ;
22797
 
  return 0;
 
20260
 ;
 
20261
 return 0;
22798
20262
}
22799
20263
_ACEOF
22800
20264
rm -f conftest.$ac_objext conftest$ac_exeext
22856
20320
#include <sys/time.h>
22857
20321
#include <time.h>
22858
20322
 
22859
 
int
22860
 
main ()
 
20323
int main (void)
22861
20324
{
22862
20325
if ((struct tm *) 0)
22863
20326
return 0;
22864
 
  ;
22865
 
  return 0;
 
20327
 ;
 
20328
 return 0;
22866
20329
}
22867
20330
_ACEOF
22868
20331
rm -f conftest.$ac_objext
23074
20537
#endif
23075
20538
#endif
23076
20539
 
23077
 
int
23078
 
main ()
 
20540
int main (void)
23079
20541
{
23080
20542
 
23081
20543
      struct timespec ts;
23082
20544
      (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23083
20545
 
23084
 
  ;
23085
 
  return 0;
 
20546
 ;
 
20547
 return 0;
23086
20548
}
23087
20549
 
23088
20550
_ACEOF
23132
20594
    curl_cv_gclk_LIBS="unknown"
23133
20595
    #
23134
20596
    for x_xlibs in '' '-lrt' '-lposix4' ; do
23135
 
      if test -z "$x_xlibs"; then
23136
 
        LIBS="$curl_cv_save_LIBS"
23137
 
      else
23138
 
        LIBS="$x_xlibs $curl_cv_save_LIBS"
23139
 
      fi
23140
 
      cat >conftest.$ac_ext <<_ACEOF
 
20597
      if test "$curl_cv_gclk_LIBS" = "unknown"; then
 
20598
        if test -z "$x_xlibs"; then
 
20599
          LIBS="$curl_cv_save_LIBS"
 
20600
        else
 
20601
          LIBS="$x_xlibs $curl_cv_save_LIBS"
 
20602
        fi
 
20603
        cat >conftest.$ac_ext <<_ACEOF
23141
20604
 
23142
 
        /* confdefs.h.  */
 
20605
          /* confdefs.h.  */
23143
20606
_ACEOF
23144
20607
cat confdefs.h >>conftest.$ac_ext
23145
20608
cat >>conftest.$ac_ext <<_ACEOF
23159
20622
#endif
23160
20623
#endif
23161
20624
 
23162
 
int
23163
 
main ()
 
20625
int main (void)
23164
20626
{
23165
20627
 
23166
 
          struct timespec ts;
23167
 
          (void)clock_gettime(CLOCK_MONOTONIC, &ts);
 
20628
            struct timespec ts;
 
20629
            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23168
20630
 
23169
 
  ;
23170
 
  return 0;
 
20631
 ;
 
20632
 return 0;
23171
20633
}
23172
20634
 
23173
20635
_ACEOF
23190
20652
       } && test -s conftest$ac_exeext &&
23191
20653
       $as_test_x conftest$ac_exeext; then
23192
20654
 
23193
 
        curl_cv_gclk_LIBS="$x_xlibs"
23194
 
        break
 
20655
          curl_cv_gclk_LIBS="$x_xlibs"
23195
20656
 
23196
20657
else
23197
20658
  echo "$as_me: failed program was:" >&5
23202
20663
 
23203
20664
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23204
20665
      conftest$ac_exeext conftest.$ac_ext
 
20666
      fi
23205
20667
    done
23206
20668
    #
23207
20669
    LIBS="$curl_cv_save_LIBS"
23231
20693
        ;;
23232
20694
    esac
23233
20695
    #
 
20696
        if test "x$cross_compiling" != "xyes" &&
 
20697
      test "$ac_cv_func_clock_gettime" = "yes"; then
 
20698
      { echo "$as_me:$LINENO: checking if monotonic clock_gettime works" >&5
 
20699
echo $ECHO_N "checking if monotonic clock_gettime works... $ECHO_C" >&6; }
 
20700
      if test "$cross_compiling" = yes; then
 
20701
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20702
See \`config.log' for more details." >&5
 
20703
echo "$as_me: error: cannot run test program while cross compiling
 
20704
See \`config.log' for more details." >&2;}
 
20705
   { (exit 1); exit 1; }; }
 
20706
else
 
20707
  cat >conftest.$ac_ext <<_ACEOF
 
20708
 
 
20709
        /* confdefs.h.  */
 
20710
_ACEOF
 
20711
cat confdefs.h >>conftest.$ac_ext
 
20712
cat >>conftest.$ac_ext <<_ACEOF
 
20713
/* end confdefs.h.  */
 
20714
 
 
20715
#ifdef HAVE_STDLIB_H
 
20716
#include <stdlib.h>
 
20717
#endif
 
20718
#ifdef HAVE_SYS_TYPES_H
 
20719
#include <sys/types.h>
 
20720
#endif
 
20721
#ifdef HAVE_SYS_TIME_H
 
20722
#include <sys/time.h>
 
20723
#ifdef TIME_WITH_SYS_TIME
 
20724
#include <time.h>
 
20725
#endif
 
20726
#else
 
20727
#ifdef HAVE_TIME_H
 
20728
#include <time.h>
 
20729
#endif
 
20730
#endif
 
20731
 
 
20732
int main (void)
 
20733
{
 
20734
 
 
20735
          struct timespec ts;
 
20736
          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
 
20737
            exit(0);
 
20738
          else
 
20739
            exit(1);
 
20740
 
 
20741
 ;
 
20742
 return 0;
 
20743
}
 
20744
 
 
20745
_ACEOF
 
20746
rm -f conftest$ac_exeext
 
20747
if { (ac_try="$ac_link"
 
20748
case "(($ac_try" in
 
20749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20750
  *) ac_try_echo=$ac_try;;
 
20751
esac
 
20752
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20753
  (eval "$ac_link") 2>&5
 
20754
  ac_status=$?
 
20755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20756
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20757
  { (case "(($ac_try" in
 
20758
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20759
  *) ac_try_echo=$ac_try;;
 
20760
esac
 
20761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20762
  (eval "$ac_try") 2>&5
 
20763
  ac_status=$?
 
20764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20765
  (exit $ac_status); }; }; then
 
20766
 
 
20767
        { echo "$as_me:$LINENO: result: yes" >&5
 
20768
echo "${ECHO_T}yes" >&6; }
 
20769
 
 
20770
else
 
20771
  echo "$as_me: program exited with status $ac_status" >&5
 
20772
echo "$as_me: failed program was:" >&5
 
20773
sed 's/^/| /' conftest.$ac_ext >&5
 
20774
 
 
20775
( exit $ac_status )
 
20776
 
 
20777
        { echo "$as_me:$LINENO: result: no" >&5
 
20778
echo "${ECHO_T}no" >&6; }
 
20779
        { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
 
20780
echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
 
20781
        ac_cv_func_clock_gettime="no"
 
20782
        LIBS="$curl_cv_save_LIBS"
 
20783
 
 
20784
fi
 
20785
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20786
fi
 
20787
 
 
20788
 
 
20789
    fi
 
20790
    #
23234
20791
    case "$ac_cv_func_clock_gettime" in
23235
20792
      yes)
23236
20793
 
23318
20875
#endif
23319
20876
#include <lber.h>
23320
20877
 
23321
 
int
23322
 
main ()
 
20878
int main (void)
23323
20879
{
23324
20880
 
23325
20881
        BerValue *bvp = NULL;
23326
20882
        BerElement *bep = ber_init(bvp);
23327
20883
        ber_free(bep, 1);
23328
20884
 
23329
 
  ;
23330
 
  return 0;
 
20885
 ;
 
20886
 return 0;
23331
20887
}
23332
20888
 
23333
20889
_ACEOF
23399
20955
#endif
23400
20956
#include <ldap.h>
23401
20957
 
23402
 
int
23403
 
main ()
 
20958
int main (void)
23404
20959
{
23405
20960
 
23406
20961
        BerValue *bvp = NULL;
23407
20962
        BerElement *bep = ber_init(bvp);
23408
20963
        ber_free(bep, 1);
23409
20964
 
23410
 
  ;
23411
 
  return 0;
 
20965
 ;
 
20966
 return 0;
23412
20967
}
23413
20968
 
23414
20969
_ACEOF
23488
21043
#endif
23489
21044
#include <ldap.h>
23490
21045
 
23491
 
int
23492
 
main ()
 
21046
int main (void)
23493
21047
{
23494
21048
 
23495
21049
        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23496
21050
        int res = ldap_unbind(ldp);
23497
21051
 
23498
 
  ;
23499
 
  return 0;
 
21052
 ;
 
21053
 return 0;
23500
21054
}
23501
21055
 
23502
21056
_ACEOF
23584
21138
#endif
23585
21139
#include <ldapssl.h>
23586
21140
 
23587
 
int
23588
 
main ()
 
21141
int main (void)
23589
21142
{
23590
21143
 
23591
21144
        char *cert_label = NULL;
23592
21145
        LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
23593
21146
 
23594
 
  ;
23595
 
  return 0;
 
21147
 ;
 
21148
 return 0;
23596
21149
}
23597
21150
 
23598
21151
_ACEOF
23677
21230
#endif
23678
21231
#include <ldap_ssl.h>
23679
21232
 
23680
 
int
23681
 
main ()
 
21233
int main (void)
23682
21234
{
23683
21235
 
23684
21236
        LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
23685
21237
 
23686
 
  ;
23687
 
  return 0;
 
21238
 ;
 
21239
 return 0;
23688
21240
}
23689
21241
 
23690
21242
_ACEOF
23759
21311
cat >>conftest.$ac_ext <<_ACEOF
23760
21312
/* end confdefs.h.  */
23761
21313
 
23762
 
/* Override any GCC internal prototype to avoid an error.
23763
 
   Use char because int might match the return type of a GCC
23764
 
   builtin and then its argument prototype would still apply.  */
 
21314
 
23765
21315
#ifdef __cplusplus
23766
21316
extern "C"
23767
21317
#endif
23768
21318
char ldap_init ();
23769
 
int
23770
 
main ()
 
21319
int main (void)
23771
21320
{
23772
21321
return ldap_init ();
23773
 
  ;
23774
 
  return 0;
 
21322
 ;
 
21323
 return 0;
23775
21324
}
23776
21325
_ACEOF
23777
21326
rm -f conftest.$ac_objext conftest$ac_exeext
23853
21402
    '-lldap -llber' \
23854
21403
    '-lldapssl -lldapx -lldapsdk' \
23855
21404
    '-lldapsdk -lldapx -lldapssl' ; do
23856
 
    if test -z "$x_nlibs"; then
23857
 
      LIBS="$curl_cv_save_LIBS"
23858
 
    else
23859
 
      LIBS="$x_nlibs $curl_cv_save_LIBS"
23860
 
    fi
23861
 
    cat >conftest.$ac_ext <<_ACEOF
 
21405
    if test "$curl_cv_ldap_LIBS" = "unknown"; then
 
21406
      if test -z "$x_nlibs"; then
 
21407
        LIBS="$curl_cv_save_LIBS"
 
21408
      else
 
21409
        LIBS="$x_nlibs $curl_cv_save_LIBS"
 
21410
      fi
 
21411
      cat >conftest.$ac_ext <<_ACEOF
23862
21412
 
23863
 
      /* confdefs.h.  */
 
21413
        /* confdefs.h.  */
23864
21414
_ACEOF
23865
21415
cat confdefs.h >>conftest.$ac_ext
23866
21416
cat >>conftest.$ac_ext <<_ACEOF
23890
21440
#include <ldap.h>
23891
21441
#endif
23892
21442
 
23893
 
int
23894
 
main ()
 
21443
int main (void)
23895
21444
{
23896
21445
 
23897
 
        BerValue *bvp = NULL;
23898
 
        BerElement *bep = ber_init(bvp);
23899
 
        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23900
 
        int res = ldap_unbind(ldp);
23901
 
        ber_free(bep, 1);
 
21446
          BerValue *bvp = NULL;
 
21447
          BerElement *bep = ber_init(bvp);
 
21448
          LDAP *ldp = ldap_init("dummy", LDAP_PORT);
 
21449
          int res = ldap_unbind(ldp);
 
21450
          ber_free(bep, 1);
23902
21451
 
23903
 
  ;
23904
 
  return 0;
 
21452
 ;
 
21453
 return 0;
23905
21454
}
23906
21455
 
23907
21456
_ACEOF
23924
21473
       } && test -s conftest$ac_exeext &&
23925
21474
       $as_test_x conftest$ac_exeext; then
23926
21475
 
23927
 
      curl_cv_ldap_LIBS="$x_nlibs"
23928
 
      break
 
21476
        curl_cv_ldap_LIBS="$x_nlibs"
23929
21477
 
23930
21478
else
23931
21479
  echo "$as_me: failed program was:" >&5
23936
21484
 
23937
21485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938
21486
      conftest$ac_exeext conftest.$ac_ext
 
21487
    fi
23939
21488
  done
23940
21489
  #
23941
21490
  LIBS="$curl_cv_save_LIBS"
24004
21553
cat >>conftest.$ac_ext <<_ACEOF
24005
21554
/* end confdefs.h.  */
24006
21555
 
24007
 
/* Override any GCC internal prototype to avoid an error.
24008
 
   Use char because int might match the return type of a GCC
24009
 
   builtin and then its argument prototype would still apply.  */
 
21556
 
24010
21557
#ifdef __cplusplus
24011
21558
extern "C"
24012
21559
#endif
24013
21560
char ber_free ();
24014
 
int
24015
 
main ()
 
21561
int main (void)
24016
21562
{
24017
21563
return ber_free ();
24018
 
  ;
24019
 
  return 0;
 
21564
 ;
 
21565
 return 0;
24020
21566
}
24021
21567
_ACEOF
24022
21568
rm -f conftest.$ac_objext conftest$ac_exeext
24099
21645
cat confdefs.h >>conftest.$ac_ext
24100
21646
cat >>conftest.$ac_ext <<_ACEOF
24101
21647
/* end confdefs.h.  */
24102
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24103
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21648
 
24104
21649
#define $ac_func innocuous_$ac_func
24105
 
 
24106
 
/* System header to define __stub macros and hopefully few prototypes,
24107
 
    which can conflict with char $ac_func (); below.
24108
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24109
 
    <limits.h> exists even on freestanding compilers.  */
24110
 
 
24111
21650
#ifdef __STDC__
24112
21651
# include <limits.h>
24113
21652
#else
24114
21653
# include <assert.h>
24115
21654
#endif
24116
 
 
24117
21655
#undef $ac_func
24118
 
 
24119
 
/* Override any GCC internal prototype to avoid an error.
24120
 
   Use char because int might match the return type of a GCC
24121
 
   builtin and then its argument prototype would still apply.  */
24122
21656
#ifdef __cplusplus
24123
21657
extern "C"
24124
21658
#endif
24125
21659
char $ac_func ();
24126
 
/* The GNU C library defines this for functions which it implements
24127
 
    to always fail with ENOSYS.  Some functions are actually named
24128
 
    something starting with __ and the normal name is an alias.  */
24129
21660
#if defined __stub_$ac_func || defined __stub___$ac_func
24130
21661
choke me
24131
21662
#endif
24132
21663
 
24133
 
int
24134
 
main ()
 
21664
int main (void)
24135
21665
{
24136
21666
return $ac_func ();
24137
 
  ;
24138
 
  return 0;
 
21667
 ;
 
21668
 return 0;
24139
21669
}
24140
21670
_ACEOF
24141
21671
rm -f conftest.$ac_objext conftest$ac_exeext
24285
21815
  curl_ipv6_msg="enabled"
24286
21816
fi
24287
21817
 
24288
 
# Check whether --enable-nonblocking was given.
24289
 
if test "${enable_nonblocking+set}" = set; then
24290
 
  enableval=$enable_nonblocking;
24291
 
  if test "$enableval" = "no" ; then
24292
 
    { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
24293
 
echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
 
21818
# Check if struct sockaddr_in6 have sin6_scope_id member
 
21819
if test "$ipv6" = yes; then
 
21820
  { echo "$as_me:$LINENO: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
 
21821
echo $ECHO_N "checking if struct sockaddr_in6 has sin6_scope_id member... $ECHO_C" >&6; }
 
21822
  cat >conftest.$ac_ext <<_ACEOF
 
21823
/* confdefs.h.  */
 
21824
_ACEOF
 
21825
cat confdefs.h >>conftest.$ac_ext
 
21826
cat >>conftest.$ac_ext <<_ACEOF
 
21827
/* end confdefs.h.  */
 
21828
 
 
21829
#include <sys/types.h>
 
21830
#include <netinet/in.h>
 
21831
int main (void)
 
21832
{
 
21833
struct sockaddr_in6 s; s.sin6_scope_id = 0;
 
21834
 ;
 
21835
 return 0;
 
21836
}
 
21837
_ACEOF
 
21838
rm -f conftest.$ac_objext
 
21839
if { (ac_try="$ac_compile"
 
21840
case "(($ac_try" in
 
21841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21842
  *) ac_try_echo=$ac_try;;
 
21843
esac
 
21844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21845
  (eval "$ac_compile") 2>conftest.er1
 
21846
  ac_status=$?
 
21847
  grep -v '^ *+' conftest.er1 >conftest.err
 
21848
  rm -f conftest.er1
 
21849
  cat conftest.err >&5
 
21850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21851
  (exit $ac_status); } && {
 
21852
         test -z "$ac_c_werror_flag" ||
 
21853
         test ! -s conftest.err
 
21854
       } && test -s conftest.$ac_objext; then
 
21855
  have_sin6_scope_id=yes
 
21856
else
 
21857
  echo "$as_me: failed program was:" >&5
 
21858
sed 's/^/| /' conftest.$ac_ext >&5
 
21859
 
 
21860
 
 
21861
fi
 
21862
 
 
21863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21864
  if test "$have_sin6_scope_id" = yes; then
 
21865
    { echo "$as_me:$LINENO: result: yes" >&5
 
21866
echo "${ECHO_T}yes" >&6; }
24294
21867
 
24295
21868
cat >>confdefs.h <<\_ACEOF
24296
 
#define HAVE_DISABLED_NONBLOCKING 1
 
21869
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24297
21870
_ACEOF
24298
21871
 
24299
21872
  else
24300
 
 
24301
 
  { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
24302
 
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
24303
 
  nonblock="unknown"
24304
 
  #
24305
 
  cat >conftest.$ac_ext <<_ACEOF
24306
 
 
24307
 
    /* confdefs.h.  */
24308
 
_ACEOF
24309
 
cat confdefs.h >>conftest.$ac_ext
24310
 
cat >>conftest.$ac_ext <<_ACEOF
24311
 
/* end confdefs.h.  */
24312
 
 
24313
 
/* headers for O_NONBLOCK test */
24314
 
#include <sys/types.h>
24315
 
#include <unistd.h>
24316
 
#include <fcntl.h>
24317
 
/* */
24318
 
#if defined(sun) || defined(__sun__) || \
24319
 
    defined(__SUNPRO_C) || defined(__SUNPRO_CC)
24320
 
# if defined(__SVR4) || defined(__srv4__)
24321
 
#  define PLATFORM_SOLARIS
24322
 
# else
24323
 
#  define PLATFORM_SUNOS4
24324
 
# endif
24325
 
#endif
24326
 
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
24327
 
# define PLATFORM_AIX_V3
24328
 
#endif
24329
 
/* */
24330
 
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
24331
 
#error "O_NONBLOCK does not work on this platform"
24332
 
#endif
24333
 
 
24334
 
int
24335
 
main ()
24336
 
{
24337
 
 
24338
 
      /* O_NONBLOCK source test */
24339
 
      int socket;
24340
 
      int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
24341
 
 
24342
 
  ;
24343
 
  return 0;
24344
 
}
24345
 
 
24346
 
_ACEOF
24347
 
rm -f conftest.$ac_objext
24348
 
if { (ac_try="$ac_compile"
24349
 
case "(($ac_try" in
24350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351
 
  *) ac_try_echo=$ac_try;;
24352
 
esac
24353
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24354
 
  (eval "$ac_compile") 2>conftest.er1
24355
 
  ac_status=$?
24356
 
  grep -v '^ *+' conftest.er1 >conftest.err
24357
 
  rm -f conftest.er1
24358
 
  cat conftest.err >&5
24359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360
 
  (exit $ac_status); } && {
24361
 
         test -z "$ac_c_werror_flag" ||
24362
 
         test ! -s conftest.err
24363
 
       } && test -s conftest.$ac_objext; then
24364
 
 
24365
 
        nonblock="O_NONBLOCK"
24366
 
 
24367
 
cat >>confdefs.h <<\_ACEOF
24368
 
#define HAVE_O_NONBLOCK 1
24369
 
_ACEOF
24370
 
 
24371
 
 
24372
 
else
24373
 
  echo "$as_me: failed program was:" >&5
24374
 
sed 's/^/| /' conftest.$ac_ext >&5
24375
 
 
24376
 
 
24377
 
fi
24378
 
 
24379
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380
 
  #
24381
 
  if test "$nonblock" = "unknown"; then
24382
 
    cat >conftest.$ac_ext <<_ACEOF
24383
 
 
24384
 
      /* confdefs.h.  */
24385
 
_ACEOF
24386
 
cat confdefs.h >>conftest.$ac_ext
24387
 
cat >>conftest.$ac_ext <<_ACEOF
24388
 
/* end confdefs.h.  */
24389
 
 
24390
 
/* headers for FIONBIO test */
24391
 
#include <unistd.h>
24392
 
#include <stropts.h>
24393
 
 
24394
 
int
24395
 
main ()
24396
 
{
24397
 
 
24398
 
        /* FIONBIO source test (old-style unix) */
24399
 
        int socket;
24400
 
        int flags = ioctl(socket, FIONBIO, &flags);
24401
 
 
24402
 
  ;
24403
 
  return 0;
24404
 
}
24405
 
 
24406
 
_ACEOF
24407
 
rm -f conftest.$ac_objext
24408
 
if { (ac_try="$ac_compile"
24409
 
case "(($ac_try" in
24410
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411
 
  *) ac_try_echo=$ac_try;;
24412
 
esac
24413
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414
 
  (eval "$ac_compile") 2>conftest.er1
24415
 
  ac_status=$?
24416
 
  grep -v '^ *+' conftest.er1 >conftest.err
24417
 
  rm -f conftest.er1
24418
 
  cat conftest.err >&5
24419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420
 
  (exit $ac_status); } && {
24421
 
         test -z "$ac_c_werror_flag" ||
24422
 
         test ! -s conftest.err
24423
 
       } && test -s conftest.$ac_objext; then
24424
 
 
24425
 
            nonblock="FIONBIO"
24426
 
 
24427
 
cat >>confdefs.h <<\_ACEOF
24428
 
#define HAVE_FIONBIO 1
24429
 
_ACEOF
24430
 
 
24431
 
 
24432
 
else
24433
 
  echo "$as_me: failed program was:" >&5
24434
 
sed 's/^/| /' conftest.$ac_ext >&5
24435
 
 
24436
 
 
24437
 
fi
24438
 
 
24439
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24440
 
  fi
24441
 
  #
24442
 
  if test "$nonblock" = "unknown"; then
24443
 
    cat >conftest.$ac_ext <<_ACEOF
24444
 
 
24445
 
      /* confdefs.h.  */
24446
 
_ACEOF
24447
 
cat confdefs.h >>conftest.$ac_ext
24448
 
cat >>conftest.$ac_ext <<_ACEOF
24449
 
/* end confdefs.h.  */
24450
 
 
24451
 
/* headers for ioctlsocket test (Windows) */
24452
 
#undef inline
24453
 
#ifdef HAVE_WINDOWS_H
24454
 
#ifndef WIN32_LEAN_AND_MEAN
24455
 
#define WIN32_LEAN_AND_MEAN
24456
 
#endif
24457
 
#include <windows.h>
24458
 
#ifdef HAVE_WINSOCK2_H
24459
 
#include <winsock2.h>
24460
 
#else
24461
 
#ifdef HAVE_WINSOCK_H
24462
 
#include <winsock.h>
24463
 
#endif
24464
 
#endif
24465
 
#endif
24466
 
 
24467
 
int
24468
 
main ()
24469
 
{
24470
 
 
24471
 
        /* ioctlsocket source code (Windows) */
24472
 
        SOCKET sd;
24473
 
        unsigned long flags = 0;
24474
 
        sd = socket(0, 0, 0);
24475
 
        ioctlsocket(sd, FIONBIO, &flags);
24476
 
 
24477
 
  ;
24478
 
  return 0;
24479
 
}
24480
 
 
24481
 
_ACEOF
24482
 
rm -f conftest.$ac_objext
24483
 
if { (ac_try="$ac_compile"
24484
 
case "(($ac_try" in
24485
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486
 
  *) ac_try_echo=$ac_try;;
24487
 
esac
24488
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489
 
  (eval "$ac_compile") 2>conftest.er1
24490
 
  ac_status=$?
24491
 
  grep -v '^ *+' conftest.er1 >conftest.err
24492
 
  rm -f conftest.er1
24493
 
  cat conftest.err >&5
24494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495
 
  (exit $ac_status); } && {
24496
 
         test -z "$ac_c_werror_flag" ||
24497
 
         test ! -s conftest.err
24498
 
       } && test -s conftest.$ac_objext; then
24499
 
 
24500
 
            nonblock="ioctlsocket"
24501
 
 
24502
 
cat >>confdefs.h <<\_ACEOF
24503
 
#define HAVE_IOCTLSOCKET 1
24504
 
_ACEOF
24505
 
 
24506
 
 
24507
 
else
24508
 
  echo "$as_me: failed program was:" >&5
24509
 
sed 's/^/| /' conftest.$ac_ext >&5
24510
 
 
24511
 
 
24512
 
fi
24513
 
 
24514
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24515
 
  fi
24516
 
  #
24517
 
  if test "$nonblock" = "unknown"; then
24518
 
    cat >conftest.$ac_ext <<_ACEOF
24519
 
 
24520
 
      /* confdefs.h.  */
24521
 
_ACEOF
24522
 
cat confdefs.h >>conftest.$ac_ext
24523
 
cat >>conftest.$ac_ext <<_ACEOF
24524
 
/* end confdefs.h.  */
24525
 
 
24526
 
/* headers for IoctlSocket test (Amiga?) */
24527
 
#include <sys/ioctl.h>
24528
 
 
24529
 
int
24530
 
main ()
24531
 
{
24532
 
 
24533
 
        /* IoctlSocket source code (Amiga?) */
24534
 
        int socket;
24535
 
        int flags = IoctlSocket(socket, FIONBIO, (long)1);
24536
 
 
24537
 
  ;
24538
 
  return 0;
24539
 
}
24540
 
 
24541
 
_ACEOF
24542
 
rm -f conftest.$ac_objext conftest$ac_exeext
24543
 
if { (ac_try="$ac_link"
24544
 
case "(($ac_try" in
24545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546
 
  *) ac_try_echo=$ac_try;;
24547
 
esac
24548
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549
 
  (eval "$ac_link") 2>conftest.er1
24550
 
  ac_status=$?
24551
 
  grep -v '^ *+' conftest.er1 >conftest.err
24552
 
  rm -f conftest.er1
24553
 
  cat conftest.err >&5
24554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555
 
  (exit $ac_status); } && {
24556
 
         test -z "$ac_c_werror_flag" ||
24557
 
         test ! -s conftest.err
24558
 
       } && test -s conftest$ac_exeext &&
24559
 
       $as_test_x conftest$ac_exeext; then
24560
 
 
24561
 
            nonblock="IoctlSocket"
24562
 
 
24563
 
cat >>confdefs.h <<\_ACEOF
24564
 
#define HAVE_IOCTLSOCKET_CASE 1
24565
 
_ACEOF
24566
 
 
24567
 
 
24568
 
else
24569
 
  echo "$as_me: failed program was:" >&5
24570
 
sed 's/^/| /' conftest.$ac_ext >&5
24571
 
 
24572
 
 
24573
 
fi
24574
 
 
24575
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24576
 
      conftest$ac_exeext conftest.$ac_ext
24577
 
  fi
24578
 
  #
24579
 
  if test "$nonblock" = "unknown"; then
24580
 
    cat >conftest.$ac_ext <<_ACEOF
24581
 
 
24582
 
      /* confdefs.h.  */
24583
 
_ACEOF
24584
 
cat confdefs.h >>conftest.$ac_ext
24585
 
cat >>conftest.$ac_ext <<_ACEOF
24586
 
/* end confdefs.h.  */
24587
 
 
24588
 
/* headers for SO_NONBLOCK test (BeOS) */
24589
 
#include <socket.h>
24590
 
 
24591
 
int
24592
 
main ()
24593
 
{
24594
 
 
24595
 
        /* SO_NONBLOCK source code (BeOS) */
24596
 
        long b = 1;
24597
 
        int socket;
24598
 
        int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
24599
 
 
24600
 
  ;
24601
 
  return 0;
24602
 
}
24603
 
 
24604
 
_ACEOF
24605
 
rm -f conftest.$ac_objext
24606
 
if { (ac_try="$ac_compile"
24607
 
case "(($ac_try" in
24608
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609
 
  *) ac_try_echo=$ac_try;;
24610
 
esac
24611
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612
 
  (eval "$ac_compile") 2>conftest.er1
24613
 
  ac_status=$?
24614
 
  grep -v '^ *+' conftest.er1 >conftest.err
24615
 
  rm -f conftest.er1
24616
 
  cat conftest.err >&5
24617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618
 
  (exit $ac_status); } && {
24619
 
         test -z "$ac_c_werror_flag" ||
24620
 
         test ! -s conftest.err
24621
 
       } && test -s conftest.$ac_objext; then
24622
 
 
24623
 
            nonblock="SO_NONBLOCK"
24624
 
 
24625
 
cat >>confdefs.h <<\_ACEOF
24626
 
#define HAVE_SO_NONBLOCK 1
24627
 
_ACEOF
24628
 
 
24629
 
 
24630
 
else
24631
 
  echo "$as_me: failed program was:" >&5
24632
 
sed 's/^/| /' conftest.$ac_ext >&5
24633
 
 
24634
 
 
24635
 
fi
24636
 
 
24637
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24638
 
  fi
24639
 
  #
24640
 
  { echo "$as_me:$LINENO: result: $nonblock" >&5
24641
 
echo "${ECHO_T}$nonblock" >&6; }
24642
 
  #
24643
 
  if test "$nonblock" = "unknown"; then
24644
 
 
24645
 
cat >>confdefs.h <<\_ACEOF
24646
 
#define HAVE_DISABLED_NONBLOCKING 1
24647
 
_ACEOF
24648
 
 
24649
 
    { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
24650
 
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
24651
 
  fi
24652
 
 
24653
 
  fi
24654
 
 
24655
 
else
24656
 
 
24657
 
 
24658
 
  { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
24659
 
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
24660
 
  nonblock="unknown"
24661
 
  #
24662
 
  cat >conftest.$ac_ext <<_ACEOF
24663
 
 
24664
 
    /* confdefs.h.  */
24665
 
_ACEOF
24666
 
cat confdefs.h >>conftest.$ac_ext
24667
 
cat >>conftest.$ac_ext <<_ACEOF
24668
 
/* end confdefs.h.  */
24669
 
 
24670
 
/* headers for O_NONBLOCK test */
24671
 
#include <sys/types.h>
24672
 
#include <unistd.h>
24673
 
#include <fcntl.h>
24674
 
/* */
24675
 
#if defined(sun) || defined(__sun__) || \
24676
 
    defined(__SUNPRO_C) || defined(__SUNPRO_CC)
24677
 
# if defined(__SVR4) || defined(__srv4__)
24678
 
#  define PLATFORM_SOLARIS
24679
 
# else
24680
 
#  define PLATFORM_SUNOS4
24681
 
# endif
24682
 
#endif
24683
 
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
24684
 
# define PLATFORM_AIX_V3
24685
 
#endif
24686
 
/* */
24687
 
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
24688
 
#error "O_NONBLOCK does not work on this platform"
24689
 
#endif
24690
 
 
24691
 
int
24692
 
main ()
24693
 
{
24694
 
 
24695
 
      /* O_NONBLOCK source test */
24696
 
      int socket;
24697
 
      int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
24698
 
 
24699
 
  ;
24700
 
  return 0;
24701
 
}
24702
 
 
24703
 
_ACEOF
24704
 
rm -f conftest.$ac_objext
24705
 
if { (ac_try="$ac_compile"
24706
 
case "(($ac_try" in
24707
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708
 
  *) ac_try_echo=$ac_try;;
24709
 
esac
24710
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711
 
  (eval "$ac_compile") 2>conftest.er1
24712
 
  ac_status=$?
24713
 
  grep -v '^ *+' conftest.er1 >conftest.err
24714
 
  rm -f conftest.er1
24715
 
  cat conftest.err >&5
24716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717
 
  (exit $ac_status); } && {
24718
 
         test -z "$ac_c_werror_flag" ||
24719
 
         test ! -s conftest.err
24720
 
       } && test -s conftest.$ac_objext; then
24721
 
 
24722
 
        nonblock="O_NONBLOCK"
24723
 
 
24724
 
cat >>confdefs.h <<\_ACEOF
24725
 
#define HAVE_O_NONBLOCK 1
24726
 
_ACEOF
24727
 
 
24728
 
 
24729
 
else
24730
 
  echo "$as_me: failed program was:" >&5
24731
 
sed 's/^/| /' conftest.$ac_ext >&5
24732
 
 
24733
 
 
24734
 
fi
24735
 
 
24736
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737
 
  #
24738
 
  if test "$nonblock" = "unknown"; then
24739
 
    cat >conftest.$ac_ext <<_ACEOF
24740
 
 
24741
 
      /* confdefs.h.  */
24742
 
_ACEOF
24743
 
cat confdefs.h >>conftest.$ac_ext
24744
 
cat >>conftest.$ac_ext <<_ACEOF
24745
 
/* end confdefs.h.  */
24746
 
 
24747
 
/* headers for FIONBIO test */
24748
 
#include <unistd.h>
24749
 
#include <stropts.h>
24750
 
 
24751
 
int
24752
 
main ()
24753
 
{
24754
 
 
24755
 
        /* FIONBIO source test (old-style unix) */
24756
 
        int socket;
24757
 
        int flags = ioctl(socket, FIONBIO, &flags);
24758
 
 
24759
 
  ;
24760
 
  return 0;
24761
 
}
24762
 
 
24763
 
_ACEOF
24764
 
rm -f conftest.$ac_objext
24765
 
if { (ac_try="$ac_compile"
24766
 
case "(($ac_try" in
24767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768
 
  *) ac_try_echo=$ac_try;;
24769
 
esac
24770
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771
 
  (eval "$ac_compile") 2>conftest.er1
24772
 
  ac_status=$?
24773
 
  grep -v '^ *+' conftest.er1 >conftest.err
24774
 
  rm -f conftest.er1
24775
 
  cat conftest.err >&5
24776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777
 
  (exit $ac_status); } && {
24778
 
         test -z "$ac_c_werror_flag" ||
24779
 
         test ! -s conftest.err
24780
 
       } && test -s conftest.$ac_objext; then
24781
 
 
24782
 
            nonblock="FIONBIO"
24783
 
 
24784
 
cat >>confdefs.h <<\_ACEOF
24785
 
#define HAVE_FIONBIO 1
24786
 
_ACEOF
24787
 
 
24788
 
 
24789
 
else
24790
 
  echo "$as_me: failed program was:" >&5
24791
 
sed 's/^/| /' conftest.$ac_ext >&5
24792
 
 
24793
 
 
24794
 
fi
24795
 
 
24796
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24797
 
  fi
24798
 
  #
24799
 
  if test "$nonblock" = "unknown"; then
24800
 
    cat >conftest.$ac_ext <<_ACEOF
24801
 
 
24802
 
      /* confdefs.h.  */
24803
 
_ACEOF
24804
 
cat confdefs.h >>conftest.$ac_ext
24805
 
cat >>conftest.$ac_ext <<_ACEOF
24806
 
/* end confdefs.h.  */
24807
 
 
24808
 
/* headers for ioctlsocket test (Windows) */
24809
 
#undef inline
24810
 
#ifdef HAVE_WINDOWS_H
24811
 
#ifndef WIN32_LEAN_AND_MEAN
24812
 
#define WIN32_LEAN_AND_MEAN
24813
 
#endif
24814
 
#include <windows.h>
24815
 
#ifdef HAVE_WINSOCK2_H
24816
 
#include <winsock2.h>
24817
 
#else
24818
 
#ifdef HAVE_WINSOCK_H
24819
 
#include <winsock.h>
24820
 
#endif
24821
 
#endif
24822
 
#endif
24823
 
 
24824
 
int
24825
 
main ()
24826
 
{
24827
 
 
24828
 
        /* ioctlsocket source code (Windows) */
24829
 
        SOCKET sd;
24830
 
        unsigned long flags = 0;
24831
 
        sd = socket(0, 0, 0);
24832
 
        ioctlsocket(sd, FIONBIO, &flags);
24833
 
 
24834
 
  ;
24835
 
  return 0;
24836
 
}
24837
 
 
24838
 
_ACEOF
24839
 
rm -f conftest.$ac_objext
24840
 
if { (ac_try="$ac_compile"
24841
 
case "(($ac_try" in
24842
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843
 
  *) ac_try_echo=$ac_try;;
24844
 
esac
24845
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846
 
  (eval "$ac_compile") 2>conftest.er1
24847
 
  ac_status=$?
24848
 
  grep -v '^ *+' conftest.er1 >conftest.err
24849
 
  rm -f conftest.er1
24850
 
  cat conftest.err >&5
24851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852
 
  (exit $ac_status); } && {
24853
 
         test -z "$ac_c_werror_flag" ||
24854
 
         test ! -s conftest.err
24855
 
       } && test -s conftest.$ac_objext; then
24856
 
 
24857
 
            nonblock="ioctlsocket"
24858
 
 
24859
 
cat >>confdefs.h <<\_ACEOF
24860
 
#define HAVE_IOCTLSOCKET 1
24861
 
_ACEOF
24862
 
 
24863
 
 
24864
 
else
24865
 
  echo "$as_me: failed program was:" >&5
24866
 
sed 's/^/| /' conftest.$ac_ext >&5
24867
 
 
24868
 
 
24869
 
fi
24870
 
 
24871
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872
 
  fi
24873
 
  #
24874
 
  if test "$nonblock" = "unknown"; then
24875
 
    cat >conftest.$ac_ext <<_ACEOF
24876
 
 
24877
 
      /* confdefs.h.  */
24878
 
_ACEOF
24879
 
cat confdefs.h >>conftest.$ac_ext
24880
 
cat >>conftest.$ac_ext <<_ACEOF
24881
 
/* end confdefs.h.  */
24882
 
 
24883
 
/* headers for IoctlSocket test (Amiga?) */
24884
 
#include <sys/ioctl.h>
24885
 
 
24886
 
int
24887
 
main ()
24888
 
{
24889
 
 
24890
 
        /* IoctlSocket source code (Amiga?) */
24891
 
        int socket;
24892
 
        int flags = IoctlSocket(socket, FIONBIO, (long)1);
24893
 
 
24894
 
  ;
24895
 
  return 0;
24896
 
}
24897
 
 
24898
 
_ACEOF
24899
 
rm -f conftest.$ac_objext conftest$ac_exeext
24900
 
if { (ac_try="$ac_link"
24901
 
case "(($ac_try" in
24902
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903
 
  *) ac_try_echo=$ac_try;;
24904
 
esac
24905
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906
 
  (eval "$ac_link") 2>conftest.er1
24907
 
  ac_status=$?
24908
 
  grep -v '^ *+' conftest.er1 >conftest.err
24909
 
  rm -f conftest.er1
24910
 
  cat conftest.err >&5
24911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912
 
  (exit $ac_status); } && {
24913
 
         test -z "$ac_c_werror_flag" ||
24914
 
         test ! -s conftest.err
24915
 
       } && test -s conftest$ac_exeext &&
24916
 
       $as_test_x conftest$ac_exeext; then
24917
 
 
24918
 
            nonblock="IoctlSocket"
24919
 
 
24920
 
cat >>confdefs.h <<\_ACEOF
24921
 
#define HAVE_IOCTLSOCKET_CASE 1
24922
 
_ACEOF
24923
 
 
24924
 
 
24925
 
else
24926
 
  echo "$as_me: failed program was:" >&5
24927
 
sed 's/^/| /' conftest.$ac_ext >&5
24928
 
 
24929
 
 
24930
 
fi
24931
 
 
24932
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933
 
      conftest$ac_exeext conftest.$ac_ext
24934
 
  fi
24935
 
  #
24936
 
  if test "$nonblock" = "unknown"; then
24937
 
    cat >conftest.$ac_ext <<_ACEOF
24938
 
 
24939
 
      /* confdefs.h.  */
24940
 
_ACEOF
24941
 
cat confdefs.h >>conftest.$ac_ext
24942
 
cat >>conftest.$ac_ext <<_ACEOF
24943
 
/* end confdefs.h.  */
24944
 
 
24945
 
/* headers for SO_NONBLOCK test (BeOS) */
24946
 
#include <socket.h>
24947
 
 
24948
 
int
24949
 
main ()
24950
 
{
24951
 
 
24952
 
        /* SO_NONBLOCK source code (BeOS) */
24953
 
        long b = 1;
24954
 
        int socket;
24955
 
        int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
24956
 
 
24957
 
  ;
24958
 
  return 0;
24959
 
}
24960
 
 
24961
 
_ACEOF
24962
 
rm -f conftest.$ac_objext
24963
 
if { (ac_try="$ac_compile"
24964
 
case "(($ac_try" in
24965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966
 
  *) ac_try_echo=$ac_try;;
24967
 
esac
24968
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969
 
  (eval "$ac_compile") 2>conftest.er1
24970
 
  ac_status=$?
24971
 
  grep -v '^ *+' conftest.er1 >conftest.err
24972
 
  rm -f conftest.er1
24973
 
  cat conftest.err >&5
24974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975
 
  (exit $ac_status); } && {
24976
 
         test -z "$ac_c_werror_flag" ||
24977
 
         test ! -s conftest.err
24978
 
       } && test -s conftest.$ac_objext; then
24979
 
 
24980
 
            nonblock="SO_NONBLOCK"
24981
 
 
24982
 
cat >>confdefs.h <<\_ACEOF
24983
 
#define HAVE_SO_NONBLOCK 1
24984
 
_ACEOF
24985
 
 
24986
 
 
24987
 
else
24988
 
  echo "$as_me: failed program was:" >&5
24989
 
sed 's/^/| /' conftest.$ac_ext >&5
24990
 
 
24991
 
 
24992
 
fi
24993
 
 
24994
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995
 
  fi
24996
 
  #
24997
 
  { echo "$as_me:$LINENO: result: $nonblock" >&5
24998
 
echo "${ECHO_T}$nonblock" >&6; }
24999
 
  #
25000
 
  if test "$nonblock" = "unknown"; then
25001
 
 
25002
 
cat >>confdefs.h <<\_ACEOF
25003
 
#define HAVE_DISABLED_NONBLOCKING 1
25004
 
_ACEOF
25005
 
 
25006
 
    { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
25007
 
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
25008
 
  fi
25009
 
 
25010
 
 
25011
 
fi
25012
 
 
 
21873
    { echo "$as_me:$LINENO: result: no" >&5
 
21874
echo "${ECHO_T}no" >&6; }
 
21875
  fi
 
21876
fi
25013
21877
 
25014
21878
 
25015
21879
{ echo "$as_me:$LINENO: checking if argv can be written to" >&5
25168
22032
cat >>conftest.$ac_ext <<_ACEOF
25169
22033
/* end confdefs.h.  */
25170
22034
 
25171
 
/* Override any GCC internal prototype to avoid an error.
25172
 
   Use char because int might match the return type of a GCC
25173
 
   builtin and then its argument prototype would still apply.  */
 
22035
 
25174
22036
#ifdef __cplusplus
25175
22037
extern "C"
25176
22038
#endif
25177
22039
char des_pcbc_encrypt ();
25178
 
int
25179
 
main ()
 
22040
int main (void)
25180
22041
{
25181
22042
return des_pcbc_encrypt ();
25182
 
  ;
25183
 
  return 0;
 
22043
 ;
 
22044
 return 0;
25184
22045
}
25185
22046
_ACEOF
25186
22047
rm -f conftest.$ac_objext conftest$ac_exeext
25374
22235
cat confdefs.h >>conftest.$ac_ext
25375
22236
cat >>conftest.$ac_ext <<_ACEOF
25376
22237
/* end confdefs.h.  */
25377
 
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
25378
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22238
 
25379
22239
#define res_search innocuous_res_search
25380
 
 
25381
 
/* System header to define __stub macros and hopefully few prototypes,
25382
 
    which can conflict with char res_search (); below.
25383
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25384
 
    <limits.h> exists even on freestanding compilers.  */
25385
 
 
25386
22240
#ifdef __STDC__
25387
22241
# include <limits.h>
25388
22242
#else
25389
22243
# include <assert.h>
25390
22244
#endif
25391
 
 
25392
22245
#undef res_search
25393
 
 
25394
 
/* Override any GCC internal prototype to avoid an error.
25395
 
   Use char because int might match the return type of a GCC
25396
 
   builtin and then its argument prototype would still apply.  */
25397
22246
#ifdef __cplusplus
25398
22247
extern "C"
25399
22248
#endif
25400
22249
char res_search ();
25401
 
/* The GNU C library defines this for functions which it implements
25402
 
    to always fail with ENOSYS.  Some functions are actually named
25403
 
    something starting with __ and the normal name is an alias.  */
25404
22250
#if defined __stub_res_search || defined __stub___res_search
25405
22251
choke me
25406
22252
#endif
25407
22253
 
25408
 
int
25409
 
main ()
 
22254
int main (void)
25410
22255
{
25411
22256
return res_search ();
25412
 
  ;
25413
 
  return 0;
 
22257
 ;
 
22258
 return 0;
25414
22259
}
25415
22260
_ACEOF
25416
22261
rm -f conftest.$ac_objext conftest$ac_exeext
25462
22307
cat >>conftest.$ac_ext <<_ACEOF
25463
22308
/* end confdefs.h.  */
25464
22309
 
25465
 
/* Override any GCC internal prototype to avoid an error.
25466
 
   Use char because int might match the return type of a GCC
25467
 
   builtin and then its argument prototype would still apply.  */
 
22310
 
25468
22311
#ifdef __cplusplus
25469
22312
extern "C"
25470
22313
#endif
25471
22314
char res_search ();
25472
 
int
25473
 
main ()
 
22315
int main (void)
25474
22316
{
25475
22317
return res_search ();
25476
 
  ;
25477
 
  return 0;
 
22318
 ;
 
22319
 return 0;
25478
22320
}
25479
22321
_ACEOF
25480
22322
rm -f conftest.$ac_objext conftest$ac_exeext
25535
22377
cat >>conftest.$ac_ext <<_ACEOF
25536
22378
/* end confdefs.h.  */
25537
22379
 
25538
 
/* Override any GCC internal prototype to avoid an error.
25539
 
   Use char because int might match the return type of a GCC
25540
 
   builtin and then its argument prototype would still apply.  */
 
22380
 
25541
22381
#ifdef __cplusplus
25542
22382
extern "C"
25543
22383
#endif
25544
22384
char krb_net_read ();
25545
 
int
25546
 
main ()
 
22385
int main (void)
25547
22386
{
25548
22387
return krb_net_read ();
25549
 
  ;
25550
 
  return 0;
 
22388
 ;
 
22389
 return 0;
25551
22390
}
25552
22391
_ACEOF
25553
22392
rm -f conftest.$ac_objext conftest$ac_exeext
25747
22586
cat confdefs.h >>conftest.$ac_ext
25748
22587
cat >>conftest.$ac_ext <<_ACEOF
25749
22588
/* end confdefs.h.  */
25750
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25751
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22589
 
25752
22590
#define $ac_func innocuous_$ac_func
25753
 
 
25754
 
/* System header to define __stub macros and hopefully few prototypes,
25755
 
    which can conflict with char $ac_func (); below.
25756
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757
 
    <limits.h> exists even on freestanding compilers.  */
25758
 
 
25759
22591
#ifdef __STDC__
25760
22592
# include <limits.h>
25761
22593
#else
25762
22594
# include <assert.h>
25763
22595
#endif
25764
 
 
25765
22596
#undef $ac_func
25766
 
 
25767
 
/* Override any GCC internal prototype to avoid an error.
25768
 
   Use char because int might match the return type of a GCC
25769
 
   builtin and then its argument prototype would still apply.  */
25770
22597
#ifdef __cplusplus
25771
22598
extern "C"
25772
22599
#endif
25773
22600
char $ac_func ();
25774
 
/* The GNU C library defines this for functions which it implements
25775
 
    to always fail with ENOSYS.  Some functions are actually named
25776
 
    something starting with __ and the normal name is an alias.  */
25777
22601
#if defined __stub_$ac_func || defined __stub___$ac_func
25778
22602
choke me
25779
22603
#endif
25780
22604
 
25781
 
int
25782
 
main ()
 
22605
int main (void)
25783
22606
{
25784
22607
return $ac_func ();
25785
 
  ;
25786
 
  return 0;
 
22608
 ;
 
22609
 return 0;
25787
22610
}
25788
22611
_ACEOF
25789
22612
rm -f conftest.$ac_objext conftest$ac_exeext
25853
22676
cat confdefs.h >>conftest.$ac_ext
25854
22677
cat >>conftest.$ac_ext <<_ACEOF
25855
22678
/* end confdefs.h.  */
25856
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25857
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22679
 
25858
22680
#define $ac_func innocuous_$ac_func
25859
 
 
25860
 
/* System header to define __stub macros and hopefully few prototypes,
25861
 
    which can conflict with char $ac_func (); below.
25862
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25863
 
    <limits.h> exists even on freestanding compilers.  */
25864
 
 
25865
22681
#ifdef __STDC__
25866
22682
# include <limits.h>
25867
22683
#else
25868
22684
# include <assert.h>
25869
22685
#endif
25870
 
 
25871
22686
#undef $ac_func
25872
 
 
25873
 
/* Override any GCC internal prototype to avoid an error.
25874
 
   Use char because int might match the return type of a GCC
25875
 
   builtin and then its argument prototype would still apply.  */
25876
22687
#ifdef __cplusplus
25877
22688
extern "C"
25878
22689
#endif
25879
22690
char $ac_func ();
25880
 
/* The GNU C library defines this for functions which it implements
25881
 
    to always fail with ENOSYS.  Some functions are actually named
25882
 
    something starting with __ and the normal name is an alias.  */
25883
22691
#if defined __stub_$ac_func || defined __stub___$ac_func
25884
22692
choke me
25885
22693
#endif
25886
22694
 
25887
 
int
25888
 
main ()
 
22695
int main (void)
25889
22696
{
25890
22697
return $ac_func ();
25891
 
  ;
25892
 
  return 0;
 
22698
 ;
 
22699
 return 0;
25893
22700
}
25894
22701
_ACEOF
25895
22702
rm -f conftest.$ac_objext conftest$ac_exeext
26492
23299
                { echo "$as_me:$LINENO: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
26493
23300
echo $ECHO_N "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6; }
26494
23301
        cat >conftest.$ac_ext <<_ACEOF
26495
 
/* confdefs.h.  */
 
23302
 
 
23303
          /* confdefs.h.  */
26496
23304
_ACEOF
26497
23305
cat confdefs.h >>conftest.$ac_ext
26498
23306
cat >>conftest.$ac_ext <<_ACEOF
26502
23310
#include <gssapi/gssapi_generic.h>
26503
23311
#include <gssapi/gssapi_krb5.h>
26504
23312
 
26505
 
int
26506
 
main ()
 
23313
int main (void)
26507
23314
{
26508
23315
 
26509
23316
            gss_import_name(
26512
23319
                            GSS_C_NT_HOSTBASED_SERVICE,
26513
23320
                            (gss_name_t *)0);
26514
23321
 
26515
 
  ;
26516
 
  return 0;
 
23322
 ;
 
23323
 return 0;
26517
23324
}
 
23325
 
26518
23326
_ACEOF
26519
23327
rm -f conftest.$ac_objext
26520
23328
if { (ac_try="$ac_compile"
26534
23342
         test ! -s conftest.err
26535
23343
       } && test -s conftest.$ac_objext; then
26536
23344
 
26537
 
            { echo "$as_me:$LINENO: result: yes" >&5
 
23345
          { echo "$as_me:$LINENO: result: yes" >&5
26538
23346
echo "${ECHO_T}yes" >&6; }
26539
23347
 
26540
23348
else
26542
23350
sed 's/^/| /' conftest.$ac_ext >&5
26543
23351
 
26544
23352
 
26545
 
            { echo "$as_me:$LINENO: result: no" >&5
 
23353
          { echo "$as_me:$LINENO: result: no" >&5
26546
23354
echo "${ECHO_T}no" >&6; }
26547
23355
 
26548
23356
cat >>confdefs.h <<\_ACEOF
26550
23358
_ACEOF
26551
23359
 
26552
23360
 
26553
 
 
26554
23361
fi
26555
23362
 
26556
23363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557
 
 
26558
23364
      fi
26559
23365
 
26560
23366
 
26629
23435
        PKGTEST="no"
26630
23436
    PREFIX_OPENSSL=$OPT_SSL
26631
23437
    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26632
 
    LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
26633
 
    CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
 
23438
    if  "$PREFIX_OPENSSL" != "/usr"  ; then
 
23439
      LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
 
23440
      CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include"
 
23441
    fi
 
23442
    CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
26634
23443
    ;;
26635
23444
  esac
26636
23445
 
26637
23446
  if test "$PKGTEST" = "yes"; then
26638
23447
 
26639
23448
 
26640
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
23449
  if test x$cross_compiling != xyes; then
 
23450
        # Extract the first word of "pkg-config", so it can be a program name with args.
26641
23451
set dummy pkg-config; ac_word=$2
26642
23452
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26643
23453
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26679
23489
fi
26680
23490
 
26681
23491
 
 
23492
 
 
23493
    if test x$PKGCONFIG != xno; then
 
23494
      { echo "$as_me:$LINENO: checking for openssl options with pkg-config" >&5
 
23495
echo $ECHO_N "checking for openssl options with pkg-config... $ECHO_C" >&6; }
 
23496
            $PKGCONFIG --exists openssl
 
23497
      if test "$?" -ne "0"; then
 
23498
                        PKGCONFIG="no"
 
23499
        { echo "$as_me:$LINENO: result: no" >&5
 
23500
echo "${ECHO_T}no" >&6; }
 
23501
      else
 
23502
        { echo "$as_me:$LINENO: result: found" >&5
 
23503
echo "${ECHO_T}found" >&6; }
 
23504
      fi
 
23505
    fi
 
23506
 
 
23507
  else
 
23508
    PKGCONFIG="no"
 
23509
  fi
 
23510
 
 
23511
 
26682
23512
    if test "$PKGCONFIG" != "no" ; then
26683
 
      { echo "$as_me:$LINENO: checking OpenSSL options with pkg-config" >&5
26684
 
echo $ECHO_N "checking OpenSSL options with pkg-config... $ECHO_C" >&6; }
26685
 
 
26686
 
      $PKGCONFIG --exists openssl
26687
 
      SSL_EXISTS=$?
26688
 
 
26689
 
      if test "$SSL_EXISTS" -eq "0"; then
26690
 
        SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
26691
 
        SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
26692
 
        SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26693
 
 
26694
 
        LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
26695
 
 
26696
 
                LIBS="$LIBS $SSL_LIBS"
26697
 
        CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26698
 
        LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26699
 
        { echo "$as_me:$LINENO: result: found" >&5
26700
 
echo "${ECHO_T}found" >&6; }
26701
 
      else
26702
 
        { echo "$as_me:$LINENO: result: no" >&5
26703
 
echo "${ECHO_T}no" >&6; }
26704
 
      fi
 
23513
      SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
 
23514
      SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
 
23515
      SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
 
23516
 
 
23517
      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
 
23518
 
 
23519
            LIBS="$LIBS $SSL_LIBS"
 
23520
      CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
 
23521
      LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26705
23522
    fi
26706
23523
  fi
26707
23524
 
26708
23525
    case $host in
26709
 
    *-*-cygwin*)
26710
 
                  ;;
26711
 
    *)
 
23526
    *-*-msys* | *-*-mingw*)
26712
23527
      { echo "$as_me:$LINENO: checking for gdi32" >&5
26713
23528
echo $ECHO_N "checking for gdi32... $ECHO_C" >&6; }
26714
23529
      my_ac_save_LIBS=$LIBS
26721
23536
/* end confdefs.h.  */
26722
23537
#include <windef.h>
26723
23538
                   #include <wingdi.h>
26724
 
int
26725
 
main ()
 
23539
int main (void)
26726
23540
{
26727
23541
GdiFlush();
26728
 
  ;
26729
 
  return 0;
 
23542
 ;
 
23543
 return 0;
26730
23544
}
26731
23545
_ACEOF
26732
23546
rm -f conftest.$ac_objext conftest$ac_exeext
26778
23592
cat >>conftest.$ac_ext <<_ACEOF
26779
23593
/* end confdefs.h.  */
26780
23594
 
26781
 
/* Override any GCC internal prototype to avoid an error.
26782
 
   Use char because int might match the return type of a GCC
26783
 
   builtin and then its argument prototype would still apply.  */
 
23595
 
26784
23596
#ifdef __cplusplus
26785
23597
extern "C"
26786
23598
#endif
26787
23599
char CRYPTO_lock ();
26788
 
int
26789
 
main ()
 
23600
int main (void)
26790
23601
{
26791
23602
return CRYPTO_lock ();
26792
 
  ;
26793
 
  return 0;
 
23603
 ;
 
23604
 return 0;
26794
23605
}
26795
23606
_ACEOF
26796
23607
rm -f conftest.$ac_objext conftest$ac_exeext
26848
23659
cat >>conftest.$ac_ext <<_ACEOF
26849
23660
/* end confdefs.h.  */
26850
23661
 
26851
 
/* Override any GCC internal prototype to avoid an error.
26852
 
   Use char because int might match the return type of a GCC
26853
 
   builtin and then its argument prototype would still apply.  */
 
23662
 
26854
23663
#ifdef __cplusplus
26855
23664
extern "C"
26856
23665
#endif
26857
23666
char CRYPTO_add_lock ();
26858
 
int
26859
 
main ()
 
23667
int main (void)
26860
23668
{
26861
23669
return CRYPTO_add_lock ();
26862
 
  ;
26863
 
  return 0;
 
23670
 ;
 
23671
 return 0;
26864
23672
}
26865
23673
_ACEOF
26866
23674
rm -f conftest.$ac_objext conftest$ac_exeext
26929
23737
cat >>conftest.$ac_ext <<_ACEOF
26930
23738
/* end confdefs.h.  */
26931
23739
 
26932
 
/* Override any GCC internal prototype to avoid an error.
26933
 
   Use char because int might match the return type of a GCC
26934
 
   builtin and then its argument prototype would still apply.  */
 
23740
 
26935
23741
#ifdef __cplusplus
26936
23742
extern "C"
26937
23743
#endif
26938
23744
char SSL_connect ();
26939
 
int
26940
 
main ()
 
23745
int main (void)
26941
23746
{
26942
23747
return SSL_connect ();
26943
 
  ;
26944
 
  return 0;
 
23748
 ;
 
23749
 return 0;
26945
23750
}
26946
23751
_ACEOF
26947
23752
rm -f conftest.$ac_objext conftest$ac_exeext
27006
23811
cat >>conftest.$ac_ext <<_ACEOF
27007
23812
/* end confdefs.h.  */
27008
23813
 
27009
 
/* Override any GCC internal prototype to avoid an error.
27010
 
   Use char because int might match the return type of a GCC
27011
 
   builtin and then its argument prototype would still apply.  */
 
23814
 
27012
23815
#ifdef __cplusplus
27013
23816
extern "C"
27014
23817
#endif
27015
23818
char SSL_connect ();
27016
 
int
27017
 
main ()
 
23819
int main (void)
27018
23820
{
27019
23821
return SSL_connect ();
27020
 
  ;
27021
 
  return 0;
 
23822
 ;
 
23823
 return 0;
27022
23824
}
27023
23825
_ACEOF
27024
23826
rm -f conftest.$ac_objext conftest$ac_exeext
27570
24372
cat confdefs.h >>conftest.$ac_ext
27571
24373
cat >>conftest.$ac_ext <<_ACEOF
27572
24374
/* end confdefs.h.  */
27573
 
/* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
27574
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24375
 
27575
24376
#define ENGINE_init innocuous_ENGINE_init
27576
 
 
27577
 
/* System header to define __stub macros and hopefully few prototypes,
27578
 
    which can conflict with char ENGINE_init (); below.
27579
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27580
 
    <limits.h> exists even on freestanding compilers.  */
27581
 
 
27582
24377
#ifdef __STDC__
27583
24378
# include <limits.h>
27584
24379
#else
27585
24380
# include <assert.h>
27586
24381
#endif
27587
 
 
27588
24382
#undef ENGINE_init
27589
 
 
27590
 
/* Override any GCC internal prototype to avoid an error.
27591
 
   Use char because int might match the return type of a GCC
27592
 
   builtin and then its argument prototype would still apply.  */
27593
24383
#ifdef __cplusplus
27594
24384
extern "C"
27595
24385
#endif
27596
24386
char ENGINE_init ();
27597
 
/* The GNU C library defines this for functions which it implements
27598
 
    to always fail with ENOSYS.  Some functions are actually named
27599
 
    something starting with __ and the normal name is an alias.  */
27600
24387
#if defined __stub_ENGINE_init || defined __stub___ENGINE_init
27601
24388
choke me
27602
24389
#endif
27603
24390
 
27604
 
int
27605
 
main ()
 
24391
int main (void)
27606
24392
{
27607
24393
return ENGINE_init ();
27608
 
  ;
27609
 
  return 0;
 
24394
 ;
 
24395
 return 0;
27610
24396
}
27611
24397
_ACEOF
27612
24398
rm -f conftest.$ac_objext conftest$ac_exeext
27802
24588
cat confdefs.h >>conftest.$ac_ext
27803
24589
cat >>conftest.$ac_ext <<_ACEOF
27804
24590
/* end confdefs.h.  */
27805
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27806
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24591
 
27807
24592
#define $ac_func innocuous_$ac_func
27808
 
 
27809
 
/* System header to define __stub macros and hopefully few prototypes,
27810
 
    which can conflict with char $ac_func (); below.
27811
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27812
 
    <limits.h> exists even on freestanding compilers.  */
27813
 
 
27814
24593
#ifdef __STDC__
27815
24594
# include <limits.h>
27816
24595
#else
27817
24596
# include <assert.h>
27818
24597
#endif
27819
 
 
27820
24598
#undef $ac_func
27821
 
 
27822
 
/* Override any GCC internal prototype to avoid an error.
27823
 
   Use char because int might match the return type of a GCC
27824
 
   builtin and then its argument prototype would still apply.  */
27825
24599
#ifdef __cplusplus
27826
24600
extern "C"
27827
24601
#endif
27828
24602
char $ac_func ();
27829
 
/* The GNU C library defines this for functions which it implements
27830
 
    to always fail with ENOSYS.  Some functions are actually named
27831
 
    something starting with __ and the normal name is an alias.  */
27832
24603
#if defined __stub_$ac_func || defined __stub___$ac_func
27833
24604
choke me
27834
24605
#endif
27835
24606
 
27836
 
int
27837
 
main ()
 
24607
int main (void)
27838
24608
{
27839
24609
return $ac_func ();
27840
 
  ;
27841
 
  return 0;
 
24610
 ;
 
24611
 return 0;
27842
24612
}
27843
24613
_ACEOF
27844
24614
rm -f conftest.$ac_objext conftest$ac_exeext
27909
24679
cat confdefs.h >>conftest.$ac_ext
27910
24680
cat >>conftest.$ac_ext <<_ACEOF
27911
24681
/* end confdefs.h.  */
27912
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27913
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24682
 
27914
24683
#define $ac_func innocuous_$ac_func
27915
 
 
27916
 
/* System header to define __stub macros and hopefully few prototypes,
27917
 
    which can conflict with char $ac_func (); below.
27918
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27919
 
    <limits.h> exists even on freestanding compilers.  */
27920
 
 
27921
24684
#ifdef __STDC__
27922
24685
# include <limits.h>
27923
24686
#else
27924
24687
# include <assert.h>
27925
24688
#endif
27926
 
 
27927
24689
#undef $ac_func
27928
 
 
27929
 
/* Override any GCC internal prototype to avoid an error.
27930
 
   Use char because int might match the return type of a GCC
27931
 
   builtin and then its argument prototype would still apply.  */
27932
24690
#ifdef __cplusplus
27933
24691
extern "C"
27934
24692
#endif
27935
24693
char $ac_func ();
27936
 
/* The GNU C library defines this for functions which it implements
27937
 
    to always fail with ENOSYS.  Some functions are actually named
27938
 
    something starting with __ and the normal name is an alias.  */
27939
24694
#if defined __stub_$ac_func || defined __stub___$ac_func
27940
24695
choke me
27941
24696
#endif
27942
24697
 
27943
 
int
27944
 
main ()
 
24698
int main (void)
27945
24699
{
27946
24700
return $ac_func ();
27947
 
  ;
27948
 
  return 0;
 
24701
 ;
 
24702
 return 0;
27949
24703
}
27950
24704
_ACEOF
27951
24705
rm -f conftest.$ac_objext conftest$ac_exeext
28002
24756
 
28003
24757
#include <openssl/ssl.h>
28004
24758
 
28005
 
int
28006
 
main ()
 
24759
int main (void)
28007
24760
{
28008
24761
 
28009
24762
#if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
28012
24765
        Not the yaSSL OpenSSL compatibility header.
28013
24766
#endif
28014
24767
 
28015
 
  ;
28016
 
  return 0;
 
24768
 ;
 
24769
 return 0;
28017
24770
}
28018
24771
 
28019
24772
_ACEOF
28104
24857
cat >>conftest.$ac_ext <<_ACEOF
28105
24858
/* end confdefs.h.  */
28106
24859
 
28107
 
/* Override any GCC internal prototype to avoid an error.
28108
 
   Use char because int might match the return type of a GCC
28109
 
   builtin and then its argument prototype would still apply.  */
 
24860
 
28110
24861
#ifdef __cplusplus
28111
24862
extern "C"
28112
24863
#endif
28113
24864
char inflateEnd ();
28114
 
int
28115
 
main ()
 
24865
int main (void)
28116
24866
{
28117
24867
return inflateEnd ();
28118
 
  ;
28119
 
  return 0;
 
24868
 ;
 
24869
 return 0;
28120
24870
}
28121
24871
_ACEOF
28122
24872
rm -f conftest.$ac_objext conftest$ac_exeext
28313
25063
cat >>conftest.$ac_ext <<_ACEOF
28314
25064
/* end confdefs.h.  */
28315
25065
 
28316
 
/* Override any GCC internal prototype to avoid an error.
28317
 
   Use char because int might match the return type of a GCC
28318
 
   builtin and then its argument prototype would still apply.  */
 
25066
 
28319
25067
#ifdef __cplusplus
28320
25068
extern "C"
28321
25069
#endif
28322
25070
char gzread ();
28323
 
int
28324
 
main ()
 
25071
int main (void)
28325
25072
{
28326
25073
return gzread ();
28327
 
  ;
28328
 
  return 0;
 
25074
 ;
 
25075
 return 0;
28329
25076
}
28330
25077
_ACEOF
28331
25078
rm -f conftest.$ac_objext conftest$ac_exeext
28469
25216
cat >>conftest.$ac_ext <<_ACEOF
28470
25217
/* end confdefs.h.  */
28471
25218
 
28472
 
/* Override any GCC internal prototype to avoid an error.
28473
 
   Use char because int might match the return type of a GCC
28474
 
   builtin and then its argument prototype would still apply.  */
 
25219
 
28475
25220
#ifdef __cplusplus
28476
25221
extern "C"
28477
25222
#endif
28478
25223
char libssh2_channel_open_ex ();
28479
 
int
28480
 
main ()
 
25224
int main (void)
28481
25225
{
28482
25226
return libssh2_channel_open_ex ();
28483
 
  ;
28484
 
  return 0;
 
25227
 ;
 
25228
 return 0;
28485
25229
}
28486
25230
_ACEOF
28487
25231
rm -f conftest.$ac_objext conftest$ac_exeext
28770
25514
if test "$OPENSSL_ENABLED" != "1"; then
28771
25515
 
28772
25516
  if test X"$OPT_GNUTLS" != Xno; then
 
25517
 
 
25518
    { echo "$as_me:$LINENO: OPT_GNUTLS is $OPT_GNUTLS" >&5
 
25519
echo "$as_me: OPT_GNUTLS is $OPT_GNUTLS" >&6;}
 
25520
 
 
25521
    addld=""
28773
25522
    if test "x$OPT_GNUTLS" = "xyes"; then
28774
 
     check=`libgnutls-config --version 2>/dev/null`
28775
 
     if test -n "$check"; then
28776
 
       addlib=`libgnutls-config --libs`
28777
 
       addcflags=`libgnutls-config --cflags`
28778
 
       version=`libgnutls-config --version`
28779
 
       gtlsprefix=`libgnutls-config --prefix`
28780
 
     fi
 
25523
      check=`libgnutls-config --version 2>/dev/null`
 
25524
      if test -n "$check"; then
 
25525
        addlib=`libgnutls-config --libs`
 
25526
        addcflags=`libgnutls-config --cflags`
 
25527
        version=`libgnutls-config --version`
 
25528
        gtlslib=`libgnutls-config --prefix`/lib$libsuff
 
25529
      fi
28781
25530
    else
28782
25531
      addlib=`$OPT_GNUTLS/bin/libgnutls-config --libs`
28783
25532
      addcflags=`$OPT_GNUTLS/bin/libgnutls-config --cflags`
28784
25533
      version=`$OPT_GNUTLS/bin/libgnutls-config --version 2>/dev/null`
28785
 
      gtlsprefix=$OPT_GNUTLS
28786
 
      if test -z "$version"; then
28787
 
        version="unknown"
28788
 
      fi
28789
 
    fi
 
25534
      gtlslib=$OPT_GNUTLS/lib$libsuff
 
25535
    fi
 
25536
 
 
25537
    if test -z "$version"; then
 
25538
 
 
25539
  if test x$cross_compiling != xyes; then
 
25540
        # Extract the first word of "pkg-config", so it can be a program name with args.
 
25541
set dummy pkg-config; ac_word=$2
 
25542
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
25544
if test "${ac_cv_path_PKGCONFIG+set}" = set; then
 
25545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25546
else
 
25547
  case $PKGCONFIG in
 
25548
  [\\/]* | ?:[\\/]*)
 
25549
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
 
25550
  ;;
 
25551
  *)
 
25552
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25553
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
25554
for as_dir in $as_dummy
 
25555
do
 
25556
  IFS=$as_save_IFS
 
25557
  test -z "$as_dir" && as_dir=.
 
25558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25560
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
25561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25562
    break 2
 
25563
  fi
 
25564
done
 
25565
done
 
25566
IFS=$as_save_IFS
 
25567
 
 
25568
  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
 
25569
  ;;
 
25570
esac
 
25571
fi
 
25572
PKGCONFIG=$ac_cv_path_PKGCONFIG
 
25573
if test -n "$PKGCONFIG"; then
 
25574
  { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
25575
echo "${ECHO_T}$PKGCONFIG" >&6; }
 
25576
else
 
25577
  { echo "$as_me:$LINENO: result: no" >&5
 
25578
echo "${ECHO_T}no" >&6; }
 
25579
fi
 
25580
 
 
25581
 
 
25582
 
 
25583
    if test x$PKGCONFIG != xno; then
 
25584
      { echo "$as_me:$LINENO: checking for gnutls options with pkg-config" >&5
 
25585
echo $ECHO_N "checking for gnutls options with pkg-config... $ECHO_C" >&6; }
 
25586
            $PKGCONFIG --exists gnutls
 
25587
      if test "$?" -ne "0"; then
 
25588
                        PKGCONFIG="no"
 
25589
        { echo "$as_me:$LINENO: result: no" >&5
 
25590
echo "${ECHO_T}no" >&6; }
 
25591
      else
 
25592
        { echo "$as_me:$LINENO: result: found" >&5
 
25593
echo "${ECHO_T}found" >&6; }
 
25594
      fi
 
25595
    fi
 
25596
 
 
25597
  else
 
25598
    PKGCONFIG="no"
 
25599
  fi
 
25600
 
 
25601
 
 
25602
      if test "$PKGCONFIG" != "no" ; then
 
25603
        addlib=`$PKGCONFIG --libs-only-l gnutls`
 
25604
        addld=`$PKGCONFIG --libs-only-L gnutls`
 
25605
        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
 
25606
        version=`$PKGCONFIG --modversion gnutls`
 
25607
        gtlslib=`echo $addld | $SED -e 's/-L//'`
 
25608
      fi
 
25609
 
 
25610
    fi
 
25611
 
 
25612
    if test -z "$version"; then
 
25613
            version="unknown"
 
25614
    fi
 
25615
 
28790
25616
    if test -n "$addlib"; then
28791
25617
 
28792
25618
      CLEANLIBS="$LIBS"
28793
25619
      CLEANCPPFLAGS="$CPPFLAGS"
 
25620
      CLEADLDFLAGS="$LDFLAGS"
28794
25621
 
28795
25622
      LIBS="$LIBS $addlib"
 
25623
      LDFLAGS="$LDFLAGS $addld"
28796
25624
      if test "$addcflags" != "-I/usr/include"; then
28797
25625
         CPPFLAGS="$CPPFLAGS $addcflags"
28798
25626
      fi
28811
25639
cat >>conftest.$ac_ext <<_ACEOF
28812
25640
/* end confdefs.h.  */
28813
25641
 
28814
 
/* Override any GCC internal prototype to avoid an error.
28815
 
   Use char because int might match the return type of a GCC
28816
 
   builtin and then its argument prototype would still apply.  */
 
25642
 
28817
25643
#ifdef __cplusplus
28818
25644
extern "C"
28819
25645
#endif
28820
25646
char gnutls_check_version ();
28821
 
int
28822
 
main ()
 
25647
int main (void)
28823
25648
{
28824
25649
return gnutls_check_version ();
28825
 
  ;
28826
 
  return 0;
 
25650
 ;
 
25651
 return 0;
28827
25652
}
28828
25653
_ACEOF
28829
25654
rm -f conftest.$ac_objext conftest$ac_exeext
28883
25708
        { echo "$as_me:$LINENO: detected GnuTLS version $version" >&5
28884
25709
echo "$as_me: detected GnuTLS version $version" >&6;}
28885
25710
 
 
25711
        if test -n "$gtlslib"; then
28886
25712
 
28887
 
        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
28888
 
        export LD_LIBRARY_PATH
28889
 
        { echo "$as_me:$LINENO: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
28890
 
echo "$as_me: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
 
25713
          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
 
25714
          export LD_LIBRARY_PATH
 
25715
          { echo "$as_me:$LINENO: Added $gtlslib to LD_LIBRARY_PATH" >&5
 
25716
echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
 
25717
        fi
28891
25718
      fi
28892
25719
 
28893
25720
    fi
28908
25735
 
28909
25736
  if test X"$OPT_NSS" != Xno; then
28910
25737
    if test "x$OPT_NSS" = "xyes"; then
28911
 
     check=`pkg-config --version 2>/dev/null`
28912
 
     if test -n "$check"; then
28913
 
       addlib=`pkg-config --libs nss`
28914
 
       addcflags=`pkg-config --cflags nss`
28915
 
       version=`pkg-config --modversion nss`
28916
 
       nssprefix=`pkg-config --variable=prefix nss`
28917
 
     fi
 
25738
 
 
25739
 
 
25740
  if test x$cross_compiling != xyes; then
 
25741
        # Extract the first word of "pkg-config", so it can be a program name with args.
 
25742
set dummy pkg-config; ac_word=$2
 
25743
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
25744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
25745
if test "${ac_cv_path_PKGCONFIG+set}" = set; then
 
25746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25747
else
 
25748
  case $PKGCONFIG in
 
25749
  [\\/]* | ?:[\\/]*)
 
25750
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
 
25751
  ;;
 
25752
  *)
 
25753
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25754
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
25755
for as_dir in $as_dummy
 
25756
do
 
25757
  IFS=$as_save_IFS
 
25758
  test -z "$as_dir" && as_dir=.
 
25759
  for ac_exec_ext in '' $ac_executable_extensions; do
 
25760
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
25761
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
25762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
25763
    break 2
 
25764
  fi
 
25765
done
 
25766
done
 
25767
IFS=$as_save_IFS
 
25768
 
 
25769
  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
 
25770
  ;;
 
25771
esac
 
25772
fi
 
25773
PKGCONFIG=$ac_cv_path_PKGCONFIG
 
25774
if test -n "$PKGCONFIG"; then
 
25775
  { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
 
25776
echo "${ECHO_T}$PKGCONFIG" >&6; }
 
25777
else
 
25778
  { echo "$as_me:$LINENO: result: no" >&5
 
25779
echo "${ECHO_T}no" >&6; }
 
25780
fi
 
25781
 
 
25782
 
 
25783
 
 
25784
    if test x$PKGCONFIG != xno; then
 
25785
      { echo "$as_me:$LINENO: checking for nss options with pkg-config" >&5
 
25786
echo $ECHO_N "checking for nss options with pkg-config... $ECHO_C" >&6; }
 
25787
            $PKGCONFIG --exists nss
 
25788
      if test "$?" -ne "0"; then
 
25789
                        PKGCONFIG="no"
 
25790
        { echo "$as_me:$LINENO: result: no" >&5
 
25791
echo "${ECHO_T}no" >&6; }
 
25792
      else
 
25793
        { echo "$as_me:$LINENO: result: found" >&5
 
25794
echo "${ECHO_T}found" >&6; }
 
25795
      fi
 
25796
    fi
 
25797
 
 
25798
  else
 
25799
    PKGCONFIG="no"
 
25800
  fi
 
25801
 
 
25802
 
 
25803
      if test "$PKGCONFIG" != "no" ; then
 
25804
        addlib=`$PKGCONFIG --libs nss`
 
25805
        addcflags=`$PKGCONFIG --cflags nss`
 
25806
        version=`$PKGCONFIG --modversion nss`
 
25807
        nssprefix=`$PKGCONFIG --variable=prefix nss`
 
25808
      fi
28918
25809
    else
28919
25810
      # Without pkg-config, we'll kludge in some defaults
28920
25811
      addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
28937
25828
cat >>conftest.$ac_ext <<_ACEOF
28938
25829
/* end confdefs.h.  */
28939
25830
 
28940
 
/* Override any GCC internal prototype to avoid an error.
28941
 
   Use char because int might match the return type of a GCC
28942
 
   builtin and then its argument prototype would still apply.  */
 
25831
 
28943
25832
#ifdef __cplusplus
28944
25833
extern "C"
28945
25834
#endif
28946
25835
char PK11_CreateGenericObject ();
28947
 
int
28948
 
main ()
 
25836
int main (void)
28949
25837
{
28950
25838
return PK11_CreateGenericObject ();
28951
 
  ;
28952
 
  return 0;
 
25839
 ;
 
25840
 return 0;
28953
25841
}
28954
25842
_ACEOF
28955
25843
rm -f conftest.$ac_objext conftest$ac_exeext
29020
25908
cat >>conftest.$ac_ext <<_ACEOF
29021
25909
/* end confdefs.h.  */
29022
25910
 
29023
 
/* Override any GCC internal prototype to avoid an error.
29024
 
   Use char because int might match the return type of a GCC
29025
 
   builtin and then its argument prototype would still apply.  */
 
25911
 
29026
25912
#ifdef __cplusplus
29027
25913
extern "C"
29028
25914
#endif
29029
25915
char NSS_Initialize ();
29030
 
int
29031
 
main ()
 
25916
int main (void)
29032
25917
{
29033
25918
return NSS_Initialize ();
29034
 
  ;
29035
 
  return 0;
 
25919
 ;
 
25920
 return 0;
29036
25921
}
29037
25922
_ACEOF
29038
25923
rm -f conftest.$ac_objext conftest$ac_exeext
29180
26065
      for a in /etc/ssl/certs/ca-certificates.crt \
29181
26066
               /etc/pki/tls/certs/ca-bundle.crt \
29182
26067
               /usr/share/ssl/certs/ca-bundle.crt \
 
26068
               /usr/local/share/certs/ca-root.crt \
 
26069
               /etc/ssl/cert.pem \
29183
26070
               "$cac"; do
29184
26071
        if test -f "$a"; then
29185
26072
          ca="$a"
29207
26094
#define CURL_CA_BUNDLE "$ca"
29208
26095
_ACEOF
29209
26096
 
 
26097
 
29210
26098
    { echo "$as_me:$LINENO: result: $ca" >&5
29211
26099
echo "${ECHO_T}$ca" >&6; }
29212
26100
  elif test "x$capath" != "xno"; then
29265
26153
cat >>conftest.$ac_ext <<_ACEOF
29266
26154
/* end confdefs.h.  */
29267
26155
 
29268
 
/* Override any GCC internal prototype to avoid an error.
29269
 
   Use char because int might match the return type of a GCC
29270
 
   builtin and then its argument prototype would still apply.  */
 
26156
 
29271
26157
#ifdef __cplusplus
29272
26158
extern "C"
29273
26159
#endif
29274
26160
char idna_to_ascii_4i ();
29275
 
int
29276
 
main ()
 
26161
int main (void)
29277
26162
{
29278
26163
return idna_to_ascii_4i ();
29279
 
  ;
29280
 
  return 0;
 
26164
 ;
 
26165
 return 0;
29281
26166
}
29282
26167
_ACEOF
29283
26168
rm -f conftest.$ac_objext conftest$ac_exeext
29345
26230
cat >>conftest.$ac_ext <<_ACEOF
29346
26231
/* end confdefs.h.  */
29347
26232
 
29348
 
/* Override any GCC internal prototype to avoid an error.
29349
 
   Use char because int might match the return type of a GCC
29350
 
   builtin and then its argument prototype would still apply.  */
 
26233
 
29351
26234
#ifdef __cplusplus
29352
26235
extern "C"
29353
26236
#endif
29354
26237
char idna_to_ascii_lz ();
29355
 
int
29356
 
main ()
 
26238
int main (void)
29357
26239
{
29358
26240
return idna_to_ascii_lz ();
29359
 
  ;
29360
 
  return 0;
 
26241
 ;
 
26242
 return 0;
29361
26243
}
29362
26244
_ACEOF
29363
26245
rm -f conftest.$ac_objext conftest$ac_exeext
29426
26308
cat confdefs.h >>conftest.$ac_ext
29427
26309
cat >>conftest.$ac_ext <<_ACEOF
29428
26310
/* end confdefs.h.  */
29429
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29430
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26311
 
29431
26312
#define $ac_func innocuous_$ac_func
29432
 
 
29433
 
/* System header to define __stub macros and hopefully few prototypes,
29434
 
    which can conflict with char $ac_func (); below.
29435
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29436
 
    <limits.h> exists even on freestanding compilers.  */
29437
 
 
29438
26313
#ifdef __STDC__
29439
26314
# include <limits.h>
29440
26315
#else
29441
26316
# include <assert.h>
29442
26317
#endif
29443
 
 
29444
26318
#undef $ac_func
29445
 
 
29446
 
/* Override any GCC internal prototype to avoid an error.
29447
 
   Use char because int might match the return type of a GCC
29448
 
   builtin and then its argument prototype would still apply.  */
29449
26319
#ifdef __cplusplus
29450
26320
extern "C"
29451
26321
#endif
29452
26322
char $ac_func ();
29453
 
/* The GNU C library defines this for functions which it implements
29454
 
    to always fail with ENOSYS.  Some functions are actually named
29455
 
    something starting with __ and the normal name is an alias.  */
29456
26323
#if defined __stub_$ac_func || defined __stub___$ac_func
29457
26324
choke me
29458
26325
#endif
29459
26326
 
29460
 
int
29461
 
main ()
 
26327
int main (void)
29462
26328
{
29463
26329
return $ac_func ();
29464
 
  ;
29465
 
  return 0;
 
26330
 ;
 
26331
 return 0;
29466
26332
}
29467
26333
_ACEOF
29468
26334
rm -f conftest.$ac_objext conftest$ac_exeext
29724
26590
_ACEOF
29725
26591
 
29726
26592
else
29727
 
  if test "$ipv6" != "yes"; then
29728
 
 
29729
 
  #
29730
 
  { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
29731
 
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
29732
 
  cat >conftest.$ac_ext <<_ACEOF
29733
 
 
29734
 
    /* confdefs.h.  */
29735
 
_ACEOF
29736
 
cat confdefs.h >>conftest.$ac_ext
29737
 
cat >>conftest.$ac_ext <<_ACEOF
29738
 
/* end confdefs.h.  */
29739
 
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
29740
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29741
 
#define gethostbyname_r innocuous_gethostbyname_r
29742
 
 
29743
 
/* System header to define __stub macros and hopefully few prototypes,
29744
 
    which can conflict with char gethostbyname_r (); below.
29745
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29746
 
    <limits.h> exists even on freestanding compilers.  */
29747
 
 
29748
 
#ifdef __STDC__
29749
 
# include <limits.h>
29750
 
#else
29751
 
# include <assert.h>
29752
 
#endif
29753
 
 
29754
 
#undef gethostbyname_r
29755
 
 
29756
 
/* Override any GCC internal prototype to avoid an error.
29757
 
   Use char because int might match the return type of a GCC
29758
 
   builtin and then its argument prototype would still apply.  */
29759
 
#ifdef __cplusplus
29760
 
extern "C"
29761
 
#endif
29762
 
char gethostbyname_r ();
29763
 
/* The GNU C library defines this for functions which it implements
29764
 
    to always fail with ENOSYS.  Some functions are actually named
29765
 
    something starting with __ and the normal name is an alias.  */
29766
 
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
29767
 
choke me
29768
 
#endif
29769
 
 
29770
 
int
29771
 
main ()
29772
 
{
29773
 
return gethostbyname_r ();
29774
 
  ;
29775
 
  return 0;
29776
 
}
29777
 
 
29778
 
_ACEOF
29779
 
rm -f conftest.$ac_objext conftest$ac_exeext
29780
 
if { (ac_try="$ac_link"
29781
 
case "(($ac_try" in
29782
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783
 
  *) ac_try_echo=$ac_try;;
29784
 
esac
29785
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786
 
  (eval "$ac_link") 2>conftest.er1
29787
 
  ac_status=$?
29788
 
  grep -v '^ *+' conftest.er1 >conftest.err
29789
 
  rm -f conftest.er1
29790
 
  cat conftest.err >&5
29791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792
 
  (exit $ac_status); } && {
29793
 
         test -z "$ac_c_werror_flag" ||
29794
 
         test ! -s conftest.err
29795
 
       } && test -s conftest$ac_exeext &&
29796
 
       $as_test_x conftest$ac_exeext; then
29797
 
 
29798
 
    { echo "$as_me:$LINENO: result: yes" >&5
29799
 
echo "${ECHO_T}yes" >&6; }
29800
 
    tmp_cv_gethostbyname_r="yes"
29801
 
 
29802
 
else
29803
 
  echo "$as_me: failed program was:" >&5
29804
 
sed 's/^/| /' conftest.$ac_ext >&5
29805
 
 
29806
 
 
29807
 
    { echo "$as_me:$LINENO: result: no" >&5
29808
 
echo "${ECHO_T}no" >&6; }
29809
 
    tmp_cv_gethostbyname_r="no"
29810
 
 
29811
 
fi
29812
 
 
29813
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29814
 
      conftest$ac_exeext conftest.$ac_ext
29815
 
  #
29816
 
  if test "$tmp_cv_gethostbyname_r" != "yes"; then
29817
 
    { echo "$as_me:$LINENO: checking deeper for gethostbyname_r" >&5
29818
 
echo $ECHO_N "checking deeper for gethostbyname_r... $ECHO_C" >&6; }
29819
 
    cat >conftest.$ac_ext <<_ACEOF
29820
 
 
29821
 
      /* confdefs.h.  */
29822
 
_ACEOF
29823
 
cat confdefs.h >>conftest.$ac_ext
29824
 
cat >>conftest.$ac_ext <<_ACEOF
29825
 
/* end confdefs.h.  */
29826
 
 
29827
 
 
29828
 
int
29829
 
main ()
29830
 
{
29831
 
 
29832
 
        gethostbyname_r();
29833
 
 
29834
 
  ;
29835
 
  return 0;
29836
 
}
29837
 
 
29838
 
_ACEOF
29839
 
rm -f conftest.$ac_objext conftest$ac_exeext
29840
 
if { (ac_try="$ac_link"
29841
 
case "(($ac_try" in
29842
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843
 
  *) ac_try_echo=$ac_try;;
29844
 
esac
29845
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846
 
  (eval "$ac_link") 2>conftest.er1
29847
 
  ac_status=$?
29848
 
  grep -v '^ *+' conftest.er1 >conftest.err
29849
 
  rm -f conftest.er1
29850
 
  cat conftest.err >&5
29851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852
 
  (exit $ac_status); } && {
29853
 
         test -z "$ac_c_werror_flag" ||
29854
 
         test ! -s conftest.err
29855
 
       } && test -s conftest$ac_exeext &&
29856
 
       $as_test_x conftest$ac_exeext; then
29857
 
 
29858
 
      { echo "$as_me:$LINENO: result: yes" >&5
29859
 
echo "${ECHO_T}yes" >&6; }
29860
 
      tmp_cv_gethostbyname_r="yes"
29861
 
 
29862
 
else
29863
 
  echo "$as_me: failed program was:" >&5
29864
 
sed 's/^/| /' conftest.$ac_ext >&5
29865
 
 
29866
 
 
29867
 
      { echo "$as_me:$LINENO: result: but still no" >&5
29868
 
echo "${ECHO_T}but still no" >&6; }
29869
 
      tmp_cv_gethostbyname_r="no"
29870
 
 
29871
 
fi
29872
 
 
29873
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29874
 
      conftest$ac_exeext conftest.$ac_ext
29875
 
  fi
29876
 
  #
29877
 
  if test "$tmp_cv_gethostbyname_r" = "yes"; then
29878
 
 
29879
 
    ac_cv_gethostbyname_r_args="unknown"
29880
 
 
29881
 
    { echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
29882
 
echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6; }
29883
 
    cat >conftest.$ac_ext <<_ACEOF
29884
 
 
29885
 
      /* confdefs.h.  */
29886
 
_ACEOF
29887
 
cat confdefs.h >>conftest.$ac_ext
29888
 
cat >>conftest.$ac_ext <<_ACEOF
29889
 
/* end confdefs.h.  */
29890
 
 
29891
 
#include <string.h>
29892
 
#include <sys/types.h>
29893
 
#include <netdb.h>
29894
 
#undef NULL
29895
 
#define NULL (void *)0
29896
 
        int
29897
 
        gethostbyname_r(const char *, struct hostent *,
29898
 
                        struct hostent_data *);
29899
 
 
29900
 
int
29901
 
main ()
29902
 
{
29903
 
 
29904
 
        struct hostent_data data;
29905
 
        gethostbyname_r(NULL, NULL, NULL);
29906
 
 
29907
 
  ;
29908
 
  return 0;
29909
 
}
29910
 
 
29911
 
_ACEOF
29912
 
rm -f conftest.$ac_objext
29913
 
if { (ac_try="$ac_compile"
29914
 
case "(($ac_try" in
29915
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29916
 
  *) ac_try_echo=$ac_try;;
29917
 
esac
29918
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29919
 
  (eval "$ac_compile") 2>conftest.er1
29920
 
  ac_status=$?
29921
 
  grep -v '^ *+' conftest.er1 >conftest.err
29922
 
  rm -f conftest.er1
29923
 
  cat conftest.err >&5
29924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925
 
  (exit $ac_status); } && {
29926
 
         test -z "$ac_c_werror_flag" ||
29927
 
         test ! -s conftest.err
29928
 
       } && test -s conftest.$ac_objext; then
29929
 
 
29930
 
      { echo "$as_me:$LINENO: result: yes" >&5
29931
 
echo "${ECHO_T}yes" >&6; }
29932
 
 
29933
 
cat >>confdefs.h <<\_ACEOF
29934
 
#define HAVE_GETHOSTBYNAME_R_3 1
29935
 
_ACEOF
29936
 
 
29937
 
      ac_cv_gethostbyname_r_args="3"
29938
 
 
29939
 
else
29940
 
  echo "$as_me: failed program was:" >&5
29941
 
sed 's/^/| /' conftest.$ac_ext >&5
29942
 
 
29943
 
 
29944
 
      { echo "$as_me:$LINENO: result: no" >&5
29945
 
echo "${ECHO_T}no" >&6; }
29946
 
 
29947
 
fi
29948
 
 
29949
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29950
 
 
29951
 
    if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
29952
 
      { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
29953
 
echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6; }
29954
 
      cat >conftest.$ac_ext <<_ACEOF
29955
 
 
29956
 
        /* confdefs.h.  */
29957
 
_ACEOF
29958
 
cat confdefs.h >>conftest.$ac_ext
29959
 
cat >>conftest.$ac_ext <<_ACEOF
29960
 
/* end confdefs.h.  */
29961
 
 
29962
 
#define _REENTRANT
29963
 
#include <string.h>
29964
 
#include <sys/types.h>
29965
 
#include <netdb.h>
29966
 
#undef NULL
29967
 
#define NULL (void *)0
29968
 
          int
29969
 
          gethostbyname_r(const char *, struct hostent *,
29970
 
                          struct hostent_data *);
29971
 
 
29972
 
int
29973
 
main ()
29974
 
{
29975
 
 
29976
 
          struct hostent_data data;
29977
 
          gethostbyname_r(NULL, NULL, NULL);
29978
 
 
29979
 
  ;
29980
 
  return 0;
29981
 
}
29982
 
 
29983
 
_ACEOF
29984
 
rm -f conftest.$ac_objext
29985
 
if { (ac_try="$ac_compile"
29986
 
case "(($ac_try" in
29987
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29988
 
  *) ac_try_echo=$ac_try;;
29989
 
esac
29990
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29991
 
  (eval "$ac_compile") 2>conftest.er1
29992
 
  ac_status=$?
29993
 
  grep -v '^ *+' conftest.er1 >conftest.err
29994
 
  rm -f conftest.er1
29995
 
  cat conftest.err >&5
29996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997
 
  (exit $ac_status); } && {
29998
 
         test -z "$ac_c_werror_flag" ||
29999
 
         test ! -s conftest.err
30000
 
       } && test -s conftest.$ac_objext; then
30001
 
 
30002
 
        { echo "$as_me:$LINENO: result: yes" >&5
30003
 
echo "${ECHO_T}yes" >&6; }
30004
 
 
30005
 
cat >>confdefs.h <<\_ACEOF
30006
 
#define HAVE_GETHOSTBYNAME_R_3 1
30007
 
_ACEOF
30008
 
 
30009
 
 
30010
 
cat >>confdefs.h <<\_ACEOF
30011
 
#define NEED_REENTRANT 1
30012
 
_ACEOF
30013
 
 
30014
 
        ac_cv_gethostbyname_r_args="3"
30015
 
 
30016
 
else
30017
 
  echo "$as_me: failed program was:" >&5
30018
 
sed 's/^/| /' conftest.$ac_ext >&5
30019
 
 
30020
 
 
30021
 
        { echo "$as_me:$LINENO: result: no" >&5
30022
 
echo "${ECHO_T}no" >&6; }
30023
 
 
30024
 
fi
30025
 
 
30026
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027
 
    fi
30028
 
 
30029
 
    if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
30030
 
      { echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
30031
 
echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6; }
30032
 
      cat >conftest.$ac_ext <<_ACEOF
30033
 
 
30034
 
        /* confdefs.h.  */
30035
 
_ACEOF
30036
 
cat confdefs.h >>conftest.$ac_ext
30037
 
cat >>conftest.$ac_ext <<_ACEOF
30038
 
/* end confdefs.h.  */
30039
 
 
30040
 
#include <sys/types.h>
30041
 
#include <netdb.h>
30042
 
#undef NULL
30043
 
#define NULL (void *)0
30044
 
          struct hostent *
30045
 
          gethostbyname_r(const char *, struct hostent *,
30046
 
                          char *, int, int *);
30047
 
 
30048
 
int
30049
 
main ()
30050
 
{
30051
 
 
30052
 
          gethostbyname_r(NULL, NULL, NULL, 0, NULL);
30053
 
 
30054
 
  ;
30055
 
  return 0;
30056
 
}
30057
 
 
30058
 
_ACEOF
30059
 
rm -f conftest.$ac_objext
30060
 
if { (ac_try="$ac_compile"
30061
 
case "(($ac_try" in
30062
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063
 
  *) ac_try_echo=$ac_try;;
30064
 
esac
30065
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066
 
  (eval "$ac_compile") 2>conftest.er1
30067
 
  ac_status=$?
30068
 
  grep -v '^ *+' conftest.er1 >conftest.err
30069
 
  rm -f conftest.er1
30070
 
  cat conftest.err >&5
30071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072
 
  (exit $ac_status); } && {
30073
 
         test -z "$ac_c_werror_flag" ||
30074
 
         test ! -s conftest.err
30075
 
       } && test -s conftest.$ac_objext; then
30076
 
 
30077
 
        { echo "$as_me:$LINENO: result: yes" >&5
30078
 
echo "${ECHO_T}yes" >&6; }
30079
 
 
30080
 
cat >>confdefs.h <<\_ACEOF
30081
 
#define HAVE_GETHOSTBYNAME_R_5 1
30082
 
_ACEOF
30083
 
 
30084
 
        ac_cv_gethostbyname_r_args="5"
30085
 
 
30086
 
else
30087
 
  echo "$as_me: failed program was:" >&5
30088
 
sed 's/^/| /' conftest.$ac_ext >&5
30089
 
 
30090
 
 
30091
 
        { echo "$as_me:$LINENO: result: no" >&5
30092
 
echo "${ECHO_T}no" >&6; }
30093
 
 
30094
 
fi
30095
 
 
30096
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30097
 
    fi
30098
 
 
30099
 
    if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
30100
 
      { echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
30101
 
echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6; }
30102
 
      cat >conftest.$ac_ext <<_ACEOF
30103
 
 
30104
 
        /* confdefs.h.  */
30105
 
_ACEOF
30106
 
cat confdefs.h >>conftest.$ac_ext
30107
 
cat >>conftest.$ac_ext <<_ACEOF
30108
 
/* end confdefs.h.  */
30109
 
 
30110
 
#include <sys/types.h>
30111
 
#include <netdb.h>
30112
 
#undef NULL
30113
 
#define NULL (void *)0
30114
 
          int
30115
 
          gethostbyname_r(const char *, struct hostent *,
30116
 
                          char *, size_t, struct hostent **, int *);
30117
 
 
30118
 
int
30119
 
main ()
30120
 
{
30121
 
 
30122
 
          gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
30123
 
 
30124
 
  ;
30125
 
  return 0;
30126
 
}
30127
 
 
30128
 
_ACEOF
30129
 
rm -f conftest.$ac_objext
30130
 
if { (ac_try="$ac_compile"
30131
 
case "(($ac_try" in
30132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30133
 
  *) ac_try_echo=$ac_try;;
30134
 
esac
30135
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30136
 
  (eval "$ac_compile") 2>conftest.er1
30137
 
  ac_status=$?
30138
 
  grep -v '^ *+' conftest.er1 >conftest.err
30139
 
  rm -f conftest.er1
30140
 
  cat conftest.err >&5
30141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142
 
  (exit $ac_status); } && {
30143
 
         test -z "$ac_c_werror_flag" ||
30144
 
         test ! -s conftest.err
30145
 
       } && test -s conftest.$ac_objext; then
30146
 
 
30147
 
        { echo "$as_me:$LINENO: result: yes" >&5
30148
 
echo "${ECHO_T}yes" >&6; }
30149
 
 
30150
 
cat >>confdefs.h <<\_ACEOF
30151
 
#define HAVE_GETHOSTBYNAME_R_6 1
30152
 
_ACEOF
30153
 
 
30154
 
        ac_cv_gethostbyname_r_args="6"
30155
 
 
30156
 
else
30157
 
  echo "$as_me: failed program was:" >&5
30158
 
sed 's/^/| /' conftest.$ac_ext >&5
30159
 
 
30160
 
 
30161
 
        { echo "$as_me:$LINENO: result: no" >&5
30162
 
echo "${ECHO_T}no" >&6; }
30163
 
 
30164
 
fi
30165
 
 
30166
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30167
 
    fi
30168
 
 
30169
 
    if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
30170
 
      { echo "$as_me:$LINENO: WARNING: Cannot find out how to use gethostbyname_r" >&5
30171
 
echo "$as_me: WARNING: Cannot find out how to use gethostbyname_r" >&2;}
30172
 
      { echo "$as_me:$LINENO: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&5
30173
 
echo "$as_me: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&2;}
30174
 
      ac_cv_func_gethostbyname_r="no"
30175
 
    else
30176
 
 
30177
 
cat >>confdefs.h <<_ACEOF
30178
 
#define HAVE_GETHOSTBYNAME_R 1
30179
 
_ACEOF
30180
 
 
30181
 
      ac_cv_func_gethostbyname_r="yes"
30182
 
    fi
30183
 
 
30184
 
  else
30185
 
    ac_cv_func_gethostbyname_r="no"
30186
 
  fi
30187
 
 
30188
 
 
30189
 
          fi
30190
 
 
30191
 
 
30192
 
 
30193
 
for ac_func in inet_ntoa_r
30194
 
do
30195
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30196
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30197
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30198
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30199
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
30200
 
else
30201
 
  cat >conftest.$ac_ext <<_ACEOF
30202
 
/* confdefs.h.  */
30203
 
_ACEOF
30204
 
cat confdefs.h >>conftest.$ac_ext
30205
 
cat >>conftest.$ac_ext <<_ACEOF
30206
 
/* end confdefs.h.  */
30207
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30209
 
#define $ac_func innocuous_$ac_func
30210
 
 
30211
 
/* System header to define __stub macros and hopefully few prototypes,
30212
 
    which can conflict with char $ac_func (); below.
30213
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214
 
    <limits.h> exists even on freestanding compilers.  */
30215
 
 
30216
 
#ifdef __STDC__
30217
 
# include <limits.h>
30218
 
#else
30219
 
# include <assert.h>
30220
 
#endif
30221
 
 
30222
 
#undef $ac_func
30223
 
 
30224
 
/* Override any GCC internal prototype to avoid an error.
30225
 
   Use char because int might match the return type of a GCC
30226
 
   builtin and then its argument prototype would still apply.  */
30227
 
#ifdef __cplusplus
30228
 
extern "C"
30229
 
#endif
30230
 
char $ac_func ();
30231
 
/* The GNU C library defines this for functions which it implements
30232
 
    to always fail with ENOSYS.  Some functions are actually named
30233
 
    something starting with __ and the normal name is an alias.  */
30234
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30235
 
choke me
30236
 
#endif
30237
 
 
30238
 
int
30239
 
main ()
30240
 
{
30241
 
return $ac_func ();
30242
 
  ;
30243
 
  return 0;
30244
 
}
30245
 
_ACEOF
30246
 
rm -f conftest.$ac_objext conftest$ac_exeext
30247
 
if { (ac_try="$ac_link"
30248
 
case "(($ac_try" in
30249
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250
 
  *) ac_try_echo=$ac_try;;
30251
 
esac
30252
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253
 
  (eval "$ac_link") 2>conftest.er1
30254
 
  ac_status=$?
30255
 
  grep -v '^ *+' conftest.er1 >conftest.err
30256
 
  rm -f conftest.er1
30257
 
  cat conftest.err >&5
30258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259
 
  (exit $ac_status); } && {
30260
 
         test -z "$ac_c_werror_flag" ||
30261
 
         test ! -s conftest.err
30262
 
       } && test -s conftest$ac_exeext &&
30263
 
       $as_test_x conftest$ac_exeext; then
30264
 
  eval "$as_ac_var=yes"
30265
 
else
30266
 
  echo "$as_me: failed program was:" >&5
30267
 
sed 's/^/| /' conftest.$ac_ext >&5
30268
 
 
30269
 
        eval "$as_ac_var=no"
30270
 
fi
30271
 
 
30272
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30273
 
      conftest$ac_exeext conftest.$ac_ext
30274
 
fi
30275
 
ac_res=`eval echo '${'$as_ac_var'}'`
30276
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
30277
 
echo "${ECHO_T}$ac_res" >&6; }
30278
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
30279
 
  cat >>confdefs.h <<_ACEOF
30280
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30281
 
_ACEOF
30282
 
 
30283
 
    { echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
30284
 
echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6; }
30285
 
    cat >conftest.$ac_ext <<_ACEOF
30286
 
/* confdefs.h.  */
30287
 
_ACEOF
30288
 
cat confdefs.h >>conftest.$ac_ext
30289
 
cat >>conftest.$ac_ext <<_ACEOF
30290
 
/* end confdefs.h.  */
30291
 
 
30292
 
#include <arpa/inet.h>
30293
 
_ACEOF
30294
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30295
 
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
30296
 
 
30297
 
 
30298
 
cat >>confdefs.h <<\_ACEOF
30299
 
#define HAVE_INET_NTOA_R_DECL 1
30300
 
_ACEOF
30301
 
 
30302
 
      { echo "$as_me:$LINENO: result: yes" >&5
30303
 
echo "${ECHO_T}yes" >&6; }
30304
 
else
30305
 
 
30306
 
      { echo "$as_me:$LINENO: result: no" >&5
30307
 
echo "${ECHO_T}no" >&6; }
30308
 
      { echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
30309
 
echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
30310
 
      cat >conftest.$ac_ext <<_ACEOF
30311
 
/* confdefs.h.  */
30312
 
_ACEOF
30313
 
cat confdefs.h >>conftest.$ac_ext
30314
 
cat >>conftest.$ac_ext <<_ACEOF
30315
 
/* end confdefs.h.  */
30316
 
 
30317
 
#define _REENTRANT
30318
 
#include <arpa/inet.h>
30319
 
_ACEOF
30320
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30321
 
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
30322
 
 
30323
 
 
30324
 
cat >>confdefs.h <<\_ACEOF
30325
 
#define HAVE_INET_NTOA_R_DECL 1
30326
 
_ACEOF
30327
 
 
30328
 
 
30329
 
cat >>confdefs.h <<\_ACEOF
30330
 
#define NEED_REENTRANT 1
30331
 
_ACEOF
30332
 
 
30333
 
        { echo "$as_me:$LINENO: result: yes" >&5
30334
 
echo "${ECHO_T}yes" >&6; }
30335
 
else
30336
 
  { echo "$as_me:$LINENO: result: no" >&5
30337
 
echo "${ECHO_T}no" >&6; }
30338
 
fi
30339
 
rm -f conftest*
30340
 
 
30341
 
fi
30342
 
rm -f conftest*
30343
 
 
30344
 
fi
30345
 
done
30346
 
 
30347
 
 
30348
 
 
30349
 
 
30350
 
 
30351
 
for ac_func in localtime_r
30352
 
do
30353
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30354
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30355
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30356
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
30358
 
else
30359
 
  cat >conftest.$ac_ext <<_ACEOF
30360
 
/* confdefs.h.  */
30361
 
_ACEOF
30362
 
cat confdefs.h >>conftest.$ac_ext
30363
 
cat >>conftest.$ac_ext <<_ACEOF
30364
 
/* end confdefs.h.  */
30365
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30366
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30367
 
#define $ac_func innocuous_$ac_func
30368
 
 
30369
 
/* System header to define __stub macros and hopefully few prototypes,
30370
 
    which can conflict with char $ac_func (); below.
30371
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30372
 
    <limits.h> exists even on freestanding compilers.  */
30373
 
 
30374
 
#ifdef __STDC__
30375
 
# include <limits.h>
30376
 
#else
30377
 
# include <assert.h>
30378
 
#endif
30379
 
 
30380
 
#undef $ac_func
30381
 
 
30382
 
/* Override any GCC internal prototype to avoid an error.
30383
 
   Use char because int might match the return type of a GCC
30384
 
   builtin and then its argument prototype would still apply.  */
30385
 
#ifdef __cplusplus
30386
 
extern "C"
30387
 
#endif
30388
 
char $ac_func ();
30389
 
/* The GNU C library defines this for functions which it implements
30390
 
    to always fail with ENOSYS.  Some functions are actually named
30391
 
    something starting with __ and the normal name is an alias.  */
30392
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30393
 
choke me
30394
 
#endif
30395
 
 
30396
 
int
30397
 
main ()
30398
 
{
30399
 
return $ac_func ();
30400
 
  ;
30401
 
  return 0;
30402
 
}
30403
 
_ACEOF
30404
 
rm -f conftest.$ac_objext conftest$ac_exeext
30405
 
if { (ac_try="$ac_link"
30406
 
case "(($ac_try" in
30407
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30408
 
  *) ac_try_echo=$ac_try;;
30409
 
esac
30410
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30411
 
  (eval "$ac_link") 2>conftest.er1
30412
 
  ac_status=$?
30413
 
  grep -v '^ *+' conftest.er1 >conftest.err
30414
 
  rm -f conftest.er1
30415
 
  cat conftest.err >&5
30416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417
 
  (exit $ac_status); } && {
30418
 
         test -z "$ac_c_werror_flag" ||
30419
 
         test ! -s conftest.err
30420
 
       } && test -s conftest$ac_exeext &&
30421
 
       $as_test_x conftest$ac_exeext; then
30422
 
  eval "$as_ac_var=yes"
30423
 
else
30424
 
  echo "$as_me: failed program was:" >&5
30425
 
sed 's/^/| /' conftest.$ac_ext >&5
30426
 
 
30427
 
        eval "$as_ac_var=no"
30428
 
fi
30429
 
 
30430
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30431
 
      conftest$ac_exeext conftest.$ac_ext
30432
 
fi
30433
 
ac_res=`eval echo '${'$as_ac_var'}'`
30434
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
30435
 
echo "${ECHO_T}$ac_res" >&6; }
30436
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
30437
 
  cat >>confdefs.h <<_ACEOF
30438
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30439
 
_ACEOF
30440
 
 
30441
 
    { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
30442
 
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
30443
 
    cat >conftest.$ac_ext <<_ACEOF
30444
 
/* confdefs.h.  */
30445
 
_ACEOF
30446
 
cat confdefs.h >>conftest.$ac_ext
30447
 
cat >>conftest.$ac_ext <<_ACEOF
30448
 
/* end confdefs.h.  */
30449
 
 
30450
 
#include <time.h>
30451
 
_ACEOF
30452
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30453
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
30454
 
 
30455
 
      { echo "$as_me:$LINENO: result: yes" >&5
30456
 
echo "${ECHO_T}yes" >&6; }
30457
 
else
30458
 
 
30459
 
      { echo "$as_me:$LINENO: result: no" >&5
30460
 
echo "${ECHO_T}no" >&6; }
30461
 
      { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
30462
 
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
30463
 
      cat >conftest.$ac_ext <<_ACEOF
30464
 
/* confdefs.h.  */
30465
 
_ACEOF
30466
 
cat confdefs.h >>conftest.$ac_ext
30467
 
cat >>conftest.$ac_ext <<_ACEOF
30468
 
/* end confdefs.h.  */
30469
 
 
30470
 
#define _REENTRANT
30471
 
#include <time.h>
30472
 
_ACEOF
30473
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30474
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
30475
 
 
30476
 
        cat >>confdefs.h <<\_ACEOF
30477
 
#define NEED_REENTRANT 1
30478
 
_ACEOF
30479
 
 
30480
 
        { echo "$as_me:$LINENO: result: yes" >&5
30481
 
echo "${ECHO_T}yes" >&6; }
30482
 
else
30483
 
  { echo "$as_me:$LINENO: result: no" >&5
30484
 
echo "${ECHO_T}no" >&6; }
30485
 
fi
30486
 
rm -f conftest*
30487
 
 
30488
 
fi
30489
 
rm -f conftest*
30490
 
 
30491
 
fi
30492
 
done
30493
 
 
30494
 
 
30495
 
 
30496
 
 
30497
 
 
30498
 
for ac_func in strerror_r
30499
 
do
30500
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30501
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30502
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30503
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30504
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
30505
 
else
30506
 
  cat >conftest.$ac_ext <<_ACEOF
30507
 
/* confdefs.h.  */
30508
 
_ACEOF
30509
 
cat confdefs.h >>conftest.$ac_ext
30510
 
cat >>conftest.$ac_ext <<_ACEOF
30511
 
/* end confdefs.h.  */
30512
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30513
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30514
 
#define $ac_func innocuous_$ac_func
30515
 
 
30516
 
/* System header to define __stub macros and hopefully few prototypes,
30517
 
    which can conflict with char $ac_func (); below.
30518
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30519
 
    <limits.h> exists even on freestanding compilers.  */
30520
 
 
30521
 
#ifdef __STDC__
30522
 
# include <limits.h>
30523
 
#else
30524
 
# include <assert.h>
30525
 
#endif
30526
 
 
30527
 
#undef $ac_func
30528
 
 
30529
 
/* Override any GCC internal prototype to avoid an error.
30530
 
   Use char because int might match the return type of a GCC
30531
 
   builtin and then its argument prototype would still apply.  */
30532
 
#ifdef __cplusplus
30533
 
extern "C"
30534
 
#endif
30535
 
char $ac_func ();
30536
 
/* The GNU C library defines this for functions which it implements
30537
 
    to always fail with ENOSYS.  Some functions are actually named
30538
 
    something starting with __ and the normal name is an alias.  */
30539
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30540
 
choke me
30541
 
#endif
30542
 
 
30543
 
int
30544
 
main ()
30545
 
{
30546
 
return $ac_func ();
30547
 
  ;
30548
 
  return 0;
30549
 
}
30550
 
_ACEOF
30551
 
rm -f conftest.$ac_objext conftest$ac_exeext
30552
 
if { (ac_try="$ac_link"
30553
 
case "(($ac_try" in
30554
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555
 
  *) ac_try_echo=$ac_try;;
30556
 
esac
30557
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558
 
  (eval "$ac_link") 2>conftest.er1
30559
 
  ac_status=$?
30560
 
  grep -v '^ *+' conftest.er1 >conftest.err
30561
 
  rm -f conftest.er1
30562
 
  cat conftest.err >&5
30563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564
 
  (exit $ac_status); } && {
30565
 
         test -z "$ac_c_werror_flag" ||
30566
 
         test ! -s conftest.err
30567
 
       } && test -s conftest$ac_exeext &&
30568
 
       $as_test_x conftest$ac_exeext; then
30569
 
  eval "$as_ac_var=yes"
30570
 
else
30571
 
  echo "$as_me: failed program was:" >&5
30572
 
sed 's/^/| /' conftest.$ac_ext >&5
30573
 
 
30574
 
        eval "$as_ac_var=no"
30575
 
fi
30576
 
 
30577
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30578
 
      conftest$ac_exeext conftest.$ac_ext
30579
 
fi
30580
 
ac_res=`eval echo '${'$as_ac_var'}'`
30581
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
30582
 
echo "${ECHO_T}$ac_res" >&6; }
30583
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
30584
 
  cat >>confdefs.h <<_ACEOF
30585
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586
 
_ACEOF
30587
 
 
30588
 
fi
30589
 
done
30590
 
 
30591
 
 
30592
 
  if test "x$ac_cv_func_strerror_r" = "xyes"; then
30593
 
 
30594
 
    { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
30595
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
30596
 
    cat >conftest.$ac_ext <<_ACEOF
30597
 
/* confdefs.h.  */
30598
 
_ACEOF
30599
 
cat confdefs.h >>conftest.$ac_ext
30600
 
cat >>conftest.$ac_ext <<_ACEOF
30601
 
/* end confdefs.h.  */
30602
 
 
30603
 
#include <string.h>
30604
 
_ACEOF
30605
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30606
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
30607
 
 
30608
 
      { echo "$as_me:$LINENO: result: yes" >&5
30609
 
echo "${ECHO_T}yes" >&6; }
30610
 
else
30611
 
 
30612
 
      { echo "$as_me:$LINENO: result: no" >&5
30613
 
echo "${ECHO_T}no" >&6; }
30614
 
      { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
30615
 
echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
30616
 
      cat >conftest.$ac_ext <<_ACEOF
30617
 
/* confdefs.h.  */
30618
 
_ACEOF
30619
 
cat confdefs.h >>conftest.$ac_ext
30620
 
cat >>conftest.$ac_ext <<_ACEOF
30621
 
/* end confdefs.h.  */
30622
 
 
30623
 
#define _REENTRANT
30624
 
#include <string.h>
30625
 
_ACEOF
30626
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30627
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
30628
 
 
30629
 
        CPPFLAGS="-D_REENTRANT $CPPFLAGS"
30630
 
        { echo "$as_me:$LINENO: result: yes" >&5
30631
 
echo "${ECHO_T}yes" >&6; }
30632
 
else
30633
 
  { echo "$as_me:$LINENO: result: no" >&5
30634
 
echo "${ECHO_T}no" >&6; }
30635
 
 
30636
 
cat >>confdefs.h <<\_ACEOF
30637
 
#define HAVE_NO_STRERROR_R_DECL 1
30638
 
_ACEOF
30639
 
 
30640
 
 
30641
 
fi
30642
 
rm -f conftest*
30643
 
 
30644
 
fi
30645
 
rm -f conftest*
30646
 
 
30647
 
        { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
30648
 
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
30649
 
    if test "$cross_compiling" = yes; then
30650
 
      cat >conftest.$ac_ext <<_ACEOF
30651
 
/* confdefs.h.  */
30652
 
_ACEOF
30653
 
cat confdefs.h >>conftest.$ac_ext
30654
 
cat >>conftest.$ac_ext <<_ACEOF
30655
 
/* end confdefs.h.  */
30656
 
 
30657
 
#include <features.h>
30658
 
#ifdef __GLIBC__
30659
 
yes
30660
 
#endif
30661
 
 
30662
 
_ACEOF
30663
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30664
 
  $EGREP "yes" >/dev/null 2>&1; then
30665
 
        GLIBC_STRERROR_R="1"
30666
 
 
30667
 
cat >>confdefs.h <<\_ACEOF
30668
 
#define HAVE_GLIBC_STRERROR_R 1
30669
 
_ACEOF
30670
 
 
30671
 
      { echo "$as_me:$LINENO: result: yes" >&5
30672
 
echo "${ECHO_T}yes" >&6; }
30673
 
else
30674
 
  { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
30675
 
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
30676
 
 
30677
 
fi
30678
 
rm -f conftest*
30679
 
 
30680
 
else
30681
 
  cat >conftest.$ac_ext <<_ACEOF
30682
 
/* confdefs.h.  */
30683
 
_ACEOF
30684
 
cat confdefs.h >>conftest.$ac_ext
30685
 
cat >>conftest.$ac_ext <<_ACEOF
30686
 
/* end confdefs.h.  */
30687
 
 
30688
 
#include <string.h>
30689
 
#include <errno.h>
30690
 
int
30691
 
main () {
30692
 
  char buffer[1024]; /* big enough to play with */
30693
 
  char *string =
30694
 
    strerror_r(EACCES, buffer, sizeof(buffer));
30695
 
    /* this should've returned a string */
30696
 
    if(!string || !string[0])
30697
 
      return 99;
30698
 
    return 0;
30699
 
}
30700
 
 
30701
 
_ACEOF
30702
 
rm -f conftest$ac_exeext
30703
 
if { (ac_try="$ac_link"
30704
 
case "(($ac_try" in
30705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706
 
  *) ac_try_echo=$ac_try;;
30707
 
esac
30708
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709
 
  (eval "$ac_link") 2>&5
30710
 
  ac_status=$?
30711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30713
 
  { (case "(($ac_try" in
30714
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715
 
  *) ac_try_echo=$ac_try;;
30716
 
esac
30717
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718
 
  (eval "$ac_try") 2>&5
30719
 
  ac_status=$?
30720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721
 
  (exit $ac_status); }; }; then
30722
 
  GLIBC_STRERROR_R="1"
30723
 
 
30724
 
cat >>confdefs.h <<\_ACEOF
30725
 
#define HAVE_GLIBC_STRERROR_R 1
30726
 
_ACEOF
30727
 
 
30728
 
    { echo "$as_me:$LINENO: result: yes" >&5
30729
 
echo "${ECHO_T}yes" >&6; }
30730
 
else
30731
 
  echo "$as_me: program exited with status $ac_status" >&5
30732
 
echo "$as_me: failed program was:" >&5
30733
 
sed 's/^/| /' conftest.$ac_ext >&5
30734
 
 
30735
 
( exit $ac_status )
30736
 
{ echo "$as_me:$LINENO: result: no" >&5
30737
 
echo "${ECHO_T}no" >&6; }
30738
 
fi
30739
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30740
 
fi
30741
 
 
30742
 
 
30743
 
 
30744
 
    if test -z "$GLIBC_STRERROR_R"; then
30745
 
 
30746
 
      { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
30747
 
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
30748
 
      if test "$cross_compiling" = yes; then
30749
 
        { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
30750
 
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
30751
 
 
30752
 
else
30753
 
  cat >conftest.$ac_ext <<_ACEOF
30754
 
/* confdefs.h.  */
30755
 
_ACEOF
30756
 
cat confdefs.h >>conftest.$ac_ext
30757
 
cat >>conftest.$ac_ext <<_ACEOF
30758
 
/* end confdefs.h.  */
30759
 
 
30760
 
#include <string.h>
30761
 
#include <errno.h>
30762
 
int
30763
 
main () {
30764
 
  char buffer[1024]; /* big enough to play with */
30765
 
  int error =
30766
 
    strerror_r(EACCES, buffer, sizeof(buffer));
30767
 
    /* This should've returned zero, and written an error string in the
30768
 
       buffer.*/
30769
 
    if(!buffer[0] || error)
30770
 
      return 99;
30771
 
    return 0;
30772
 
}
30773
 
 
30774
 
_ACEOF
30775
 
rm -f conftest$ac_exeext
30776
 
if { (ac_try="$ac_link"
30777
 
case "(($ac_try" in
30778
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779
 
  *) ac_try_echo=$ac_try;;
30780
 
esac
30781
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782
 
  (eval "$ac_link") 2>&5
30783
 
  ac_status=$?
30784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30786
 
  { (case "(($ac_try" in
30787
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788
 
  *) ac_try_echo=$ac_try;;
30789
 
esac
30790
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791
 
  (eval "$ac_try") 2>&5
30792
 
  ac_status=$?
30793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794
 
  (exit $ac_status); }; }; then
30795
 
 
30796
 
cat >>confdefs.h <<\_ACEOF
30797
 
#define HAVE_POSIX_STRERROR_R 1
30798
 
_ACEOF
30799
 
 
30800
 
      { echo "$as_me:$LINENO: result: yes" >&5
30801
 
echo "${ECHO_T}yes" >&6; }
30802
 
else
30803
 
  echo "$as_me: program exited with status $ac_status" >&5
30804
 
echo "$as_me: failed program was:" >&5
30805
 
sed 's/^/| /' conftest.$ac_ext >&5
30806
 
 
30807
 
( exit $ac_status )
30808
 
{ echo "$as_me:$LINENO: result: no" >&5
30809
 
echo "${ECHO_T}no" >&6; }
30810
 
fi
30811
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30812
 
fi
30813
 
 
30814
 
 
30815
 
 
30816
 
    fi
30817
 
  fi
 
26593
 
 
26594
 
 
26595
 
30818
26596
 
30819
26597
 
30820
26598
  checkfor_gmtime_r="yes"
30830
26608
_ACEOF
30831
26609
 
30832
26610
 
30833
 
      { echo "$as_me:$LINENO: checking if this is the xlc compiler" >&5
30834
 
echo $ECHO_N "checking if this is the xlc compiler... $ECHO_C" >&6; }
30835
 
  cat >conftest.$ac_ext <<_ACEOF
30836
 
/* confdefs.h.  */
30837
 
_ACEOF
30838
 
cat confdefs.h >>conftest.$ac_ext
30839
 
cat >>conftest.$ac_ext <<_ACEOF
30840
 
/* end confdefs.h.  */
30841
 
__xlC__
30842
 
_ACEOF
30843
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30844
 
  $EGREP "^__xlC__" >/dev/null 2>&1; then
30845
 
                    XLC="no"
30846
 
         { echo "$as_me:$LINENO: result: no" >&5
30847
 
echo "${ECHO_T}no" >&6; }
30848
 
else
30849
 
           XLC="yes"
30850
 
         { echo "$as_me:$LINENO: result: yes" >&5
30851
 
echo "${ECHO_T}yes" >&6; }
30852
 
         CFLAGS="$CFLAGS -qthreaded"
30853
 
                                    CFLAGS="$CFLAGS -qnoansialias"
30854
 
                           CFLAGS="$CFLAGS -qhalt=e"
30855
 
 
30856
 
fi
30857
 
rm -f conftest*
30858
 
 
30859
 
 
30860
 
 
30861
 
 
30862
 
 
30863
 
for ac_func in localtime_r
30864
 
do
30865
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30866
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30867
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30868
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30869
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
30870
 
else
30871
 
  cat >conftest.$ac_ext <<_ACEOF
30872
 
/* confdefs.h.  */
30873
 
_ACEOF
30874
 
cat confdefs.h >>conftest.$ac_ext
30875
 
cat >>conftest.$ac_ext <<_ACEOF
30876
 
/* end confdefs.h.  */
30877
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30878
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30879
 
#define $ac_func innocuous_$ac_func
30880
 
 
30881
 
/* System header to define __stub macros and hopefully few prototypes,
30882
 
    which can conflict with char $ac_func (); below.
30883
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884
 
    <limits.h> exists even on freestanding compilers.  */
30885
 
 
30886
 
#ifdef __STDC__
30887
 
# include <limits.h>
30888
 
#else
30889
 
# include <assert.h>
30890
 
#endif
30891
 
 
30892
 
#undef $ac_func
30893
 
 
30894
 
/* Override any GCC internal prototype to avoid an error.
30895
 
   Use char because int might match the return type of a GCC
30896
 
   builtin and then its argument prototype would still apply.  */
30897
 
#ifdef __cplusplus
30898
 
extern "C"
30899
 
#endif
30900
 
char $ac_func ();
30901
 
/* The GNU C library defines this for functions which it implements
30902
 
    to always fail with ENOSYS.  Some functions are actually named
30903
 
    something starting with __ and the normal name is an alias.  */
30904
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30905
 
choke me
30906
 
#endif
30907
 
 
30908
 
int
30909
 
main ()
30910
 
{
30911
 
return $ac_func ();
30912
 
  ;
30913
 
  return 0;
30914
 
}
30915
 
_ACEOF
30916
 
rm -f conftest.$ac_objext conftest$ac_exeext
30917
 
if { (ac_try="$ac_link"
30918
 
case "(($ac_try" in
30919
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920
 
  *) ac_try_echo=$ac_try;;
30921
 
esac
30922
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923
 
  (eval "$ac_link") 2>conftest.er1
30924
 
  ac_status=$?
30925
 
  grep -v '^ *+' conftest.er1 >conftest.err
30926
 
  rm -f conftest.er1
30927
 
  cat conftest.err >&5
30928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929
 
  (exit $ac_status); } && {
30930
 
         test -z "$ac_c_werror_flag" ||
30931
 
         test ! -s conftest.err
30932
 
       } && test -s conftest$ac_exeext &&
30933
 
       $as_test_x conftest$ac_exeext; then
30934
 
  eval "$as_ac_var=yes"
30935
 
else
30936
 
  echo "$as_me: failed program was:" >&5
30937
 
sed 's/^/| /' conftest.$ac_ext >&5
30938
 
 
30939
 
        eval "$as_ac_var=no"
30940
 
fi
30941
 
 
30942
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943
 
      conftest$ac_exeext conftest.$ac_ext
30944
 
fi
30945
 
ac_res=`eval echo '${'$as_ac_var'}'`
30946
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
30947
 
echo "${ECHO_T}$ac_res" >&6; }
30948
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
30949
 
  cat >>confdefs.h <<_ACEOF
30950
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30951
 
_ACEOF
30952
 
 
30953
 
    { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
30954
 
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
30955
 
    cat >conftest.$ac_ext <<_ACEOF
30956
 
/* confdefs.h.  */
30957
 
_ACEOF
30958
 
cat confdefs.h >>conftest.$ac_ext
30959
 
cat >>conftest.$ac_ext <<_ACEOF
30960
 
/* end confdefs.h.  */
30961
 
 
30962
 
#include <time.h>
30963
 
_ACEOF
30964
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30965
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
30966
 
 
30967
 
      { echo "$as_me:$LINENO: result: yes" >&5
30968
 
echo "${ECHO_T}yes" >&6; }
30969
 
else
30970
 
 
30971
 
      { echo "$as_me:$LINENO: result: no" >&5
30972
 
echo "${ECHO_T}no" >&6; }
30973
 
      { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
30974
 
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
30975
 
      cat >conftest.$ac_ext <<_ACEOF
30976
 
/* confdefs.h.  */
30977
 
_ACEOF
30978
 
cat confdefs.h >>conftest.$ac_ext
30979
 
cat >>conftest.$ac_ext <<_ACEOF
30980
 
/* end confdefs.h.  */
30981
 
 
30982
 
#define _REENTRANT
30983
 
#include <time.h>
30984
 
_ACEOF
30985
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30986
 
  $EGREP "localtime_r" >/dev/null 2>&1; then
30987
 
 
30988
 
        cat >>confdefs.h <<\_ACEOF
30989
 
#define NEED_REENTRANT 1
30990
 
_ACEOF
30991
 
 
30992
 
        { echo "$as_me:$LINENO: result: yes" >&5
30993
 
echo "${ECHO_T}yes" >&6; }
30994
 
else
30995
 
  { echo "$as_me:$LINENO: result: no" >&5
30996
 
echo "${ECHO_T}no" >&6; }
30997
 
fi
30998
 
rm -f conftest*
30999
 
 
31000
 
fi
31001
 
rm -f conftest*
31002
 
 
31003
 
fi
31004
 
done
31005
 
 
31006
 
 
31007
 
 
31008
 
 
31009
 
 
31010
 
for ac_func in strerror_r
31011
 
do
31012
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31014
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31015
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31016
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
31017
 
else
31018
 
  cat >conftest.$ac_ext <<_ACEOF
31019
 
/* confdefs.h.  */
31020
 
_ACEOF
31021
 
cat confdefs.h >>conftest.$ac_ext
31022
 
cat >>conftest.$ac_ext <<_ACEOF
31023
 
/* end confdefs.h.  */
31024
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31025
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31026
 
#define $ac_func innocuous_$ac_func
31027
 
 
31028
 
/* System header to define __stub macros and hopefully few prototypes,
31029
 
    which can conflict with char $ac_func (); below.
31030
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31031
 
    <limits.h> exists even on freestanding compilers.  */
31032
 
 
31033
 
#ifdef __STDC__
31034
 
# include <limits.h>
31035
 
#else
31036
 
# include <assert.h>
31037
 
#endif
31038
 
 
31039
 
#undef $ac_func
31040
 
 
31041
 
/* Override any GCC internal prototype to avoid an error.
31042
 
   Use char because int might match the return type of a GCC
31043
 
   builtin and then its argument prototype would still apply.  */
31044
 
#ifdef __cplusplus
31045
 
extern "C"
31046
 
#endif
31047
 
char $ac_func ();
31048
 
/* The GNU C library defines this for functions which it implements
31049
 
    to always fail with ENOSYS.  Some functions are actually named
31050
 
    something starting with __ and the normal name is an alias.  */
31051
 
#if defined __stub_$ac_func || defined __stub___$ac_func
31052
 
choke me
31053
 
#endif
31054
 
 
31055
 
int
31056
 
main ()
31057
 
{
31058
 
return $ac_func ();
31059
 
  ;
31060
 
  return 0;
31061
 
}
31062
 
_ACEOF
31063
 
rm -f conftest.$ac_objext conftest$ac_exeext
31064
 
if { (ac_try="$ac_link"
31065
 
case "(($ac_try" in
31066
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067
 
  *) ac_try_echo=$ac_try;;
31068
 
esac
31069
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070
 
  (eval "$ac_link") 2>conftest.er1
31071
 
  ac_status=$?
31072
 
  grep -v '^ *+' conftest.er1 >conftest.err
31073
 
  rm -f conftest.er1
31074
 
  cat conftest.err >&5
31075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076
 
  (exit $ac_status); } && {
31077
 
         test -z "$ac_c_werror_flag" ||
31078
 
         test ! -s conftest.err
31079
 
       } && test -s conftest$ac_exeext &&
31080
 
       $as_test_x conftest$ac_exeext; then
31081
 
  eval "$as_ac_var=yes"
31082
 
else
31083
 
  echo "$as_me: failed program was:" >&5
31084
 
sed 's/^/| /' conftest.$ac_ext >&5
31085
 
 
31086
 
        eval "$as_ac_var=no"
31087
 
fi
31088
 
 
31089
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31090
 
      conftest$ac_exeext conftest.$ac_ext
31091
 
fi
31092
 
ac_res=`eval echo '${'$as_ac_var'}'`
31093
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
31094
 
echo "${ECHO_T}$ac_res" >&6; }
31095
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
31096
 
  cat >>confdefs.h <<_ACEOF
31097
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31098
 
_ACEOF
31099
 
 
31100
 
fi
31101
 
done
31102
 
 
31103
 
 
31104
 
  if test "x$ac_cv_func_strerror_r" = "xyes"; then
31105
 
 
31106
 
    { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
31107
 
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
31108
 
    cat >conftest.$ac_ext <<_ACEOF
31109
 
/* confdefs.h.  */
31110
 
_ACEOF
31111
 
cat confdefs.h >>conftest.$ac_ext
31112
 
cat >>conftest.$ac_ext <<_ACEOF
31113
 
/* end confdefs.h.  */
31114
 
 
31115
 
#include <string.h>
31116
 
_ACEOF
31117
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31118
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
31119
 
 
31120
 
      { echo "$as_me:$LINENO: result: yes" >&5
31121
 
echo "${ECHO_T}yes" >&6; }
31122
 
else
31123
 
 
31124
 
      { echo "$as_me:$LINENO: result: no" >&5
31125
 
echo "${ECHO_T}no" >&6; }
31126
 
      { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
31127
 
echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
31128
 
      cat >conftest.$ac_ext <<_ACEOF
31129
 
/* confdefs.h.  */
31130
 
_ACEOF
31131
 
cat confdefs.h >>conftest.$ac_ext
31132
 
cat >>conftest.$ac_ext <<_ACEOF
31133
 
/* end confdefs.h.  */
31134
 
 
31135
 
#define _REENTRANT
31136
 
#include <string.h>
31137
 
_ACEOF
31138
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31139
 
  $EGREP "strerror_r" >/dev/null 2>&1; then
31140
 
 
31141
 
        CPPFLAGS="-D_REENTRANT $CPPFLAGS"
31142
 
        { echo "$as_me:$LINENO: result: yes" >&5
31143
 
echo "${ECHO_T}yes" >&6; }
31144
 
else
31145
 
  { echo "$as_me:$LINENO: result: no" >&5
31146
 
echo "${ECHO_T}no" >&6; }
31147
 
 
31148
 
cat >>confdefs.h <<\_ACEOF
31149
 
#define HAVE_NO_STRERROR_R_DECL 1
31150
 
_ACEOF
31151
 
 
31152
 
 
31153
 
fi
31154
 
rm -f conftest*
31155
 
 
31156
 
fi
31157
 
rm -f conftest*
31158
 
 
31159
 
        { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
31160
 
echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
31161
 
    if test "$cross_compiling" = yes; then
31162
 
      cat >conftest.$ac_ext <<_ACEOF
31163
 
/* confdefs.h.  */
31164
 
_ACEOF
31165
 
cat confdefs.h >>conftest.$ac_ext
31166
 
cat >>conftest.$ac_ext <<_ACEOF
31167
 
/* end confdefs.h.  */
31168
 
 
31169
 
#include <features.h>
31170
 
#ifdef __GLIBC__
31171
 
yes
31172
 
#endif
31173
 
 
31174
 
_ACEOF
31175
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31176
 
  $EGREP "yes" >/dev/null 2>&1; then
31177
 
        GLIBC_STRERROR_R="1"
31178
 
 
31179
 
cat >>confdefs.h <<\_ACEOF
31180
 
#define HAVE_GLIBC_STRERROR_R 1
31181
 
_ACEOF
31182
 
 
31183
 
      { echo "$as_me:$LINENO: result: yes" >&5
31184
 
echo "${ECHO_T}yes" >&6; }
31185
 
else
31186
 
  { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
31187
 
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
31188
 
 
31189
 
fi
31190
 
rm -f conftest*
31191
 
 
31192
 
else
31193
 
  cat >conftest.$ac_ext <<_ACEOF
31194
 
/* confdefs.h.  */
31195
 
_ACEOF
31196
 
cat confdefs.h >>conftest.$ac_ext
31197
 
cat >>conftest.$ac_ext <<_ACEOF
31198
 
/* end confdefs.h.  */
31199
 
 
31200
 
#include <string.h>
31201
 
#include <errno.h>
31202
 
int
31203
 
main () {
31204
 
  char buffer[1024]; /* big enough to play with */
31205
 
  char *string =
31206
 
    strerror_r(EACCES, buffer, sizeof(buffer));
31207
 
    /* this should've returned a string */
31208
 
    if(!string || !string[0])
31209
 
      return 99;
31210
 
    return 0;
31211
 
}
31212
 
 
31213
 
_ACEOF
31214
 
rm -f conftest$ac_exeext
31215
 
if { (ac_try="$ac_link"
31216
 
case "(($ac_try" in
31217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218
 
  *) ac_try_echo=$ac_try;;
31219
 
esac
31220
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221
 
  (eval "$ac_link") 2>&5
31222
 
  ac_status=$?
31223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31225
 
  { (case "(($ac_try" in
31226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227
 
  *) ac_try_echo=$ac_try;;
31228
 
esac
31229
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230
 
  (eval "$ac_try") 2>&5
31231
 
  ac_status=$?
31232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233
 
  (exit $ac_status); }; }; then
31234
 
  GLIBC_STRERROR_R="1"
31235
 
 
31236
 
cat >>confdefs.h <<\_ACEOF
31237
 
#define HAVE_GLIBC_STRERROR_R 1
31238
 
_ACEOF
31239
 
 
31240
 
    { echo "$as_me:$LINENO: result: yes" >&5
31241
 
echo "${ECHO_T}yes" >&6; }
31242
 
else
31243
 
  echo "$as_me: program exited with status $ac_status" >&5
31244
 
echo "$as_me: failed program was:" >&5
31245
 
sed 's/^/| /' conftest.$ac_ext >&5
31246
 
 
31247
 
( exit $ac_status )
31248
 
{ echo "$as_me:$LINENO: result: no" >&5
31249
 
echo "${ECHO_T}no" >&6; }
31250
 
fi
31251
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31252
 
fi
31253
 
 
31254
 
 
31255
 
 
31256
 
    if test -z "$GLIBC_STRERROR_R"; then
31257
 
 
31258
 
      { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
31259
 
echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
31260
 
      if test "$cross_compiling" = yes; then
31261
 
        { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
31262
 
echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
31263
 
 
31264
 
else
31265
 
  cat >conftest.$ac_ext <<_ACEOF
31266
 
/* confdefs.h.  */
31267
 
_ACEOF
31268
 
cat confdefs.h >>conftest.$ac_ext
31269
 
cat >>conftest.$ac_ext <<_ACEOF
31270
 
/* end confdefs.h.  */
31271
 
 
31272
 
#include <string.h>
31273
 
#include <errno.h>
31274
 
int
31275
 
main () {
31276
 
  char buffer[1024]; /* big enough to play with */
31277
 
  int error =
31278
 
    strerror_r(EACCES, buffer, sizeof(buffer));
31279
 
    /* This should've returned zero, and written an error string in the
31280
 
       buffer.*/
31281
 
    if(!buffer[0] || error)
31282
 
      return 99;
31283
 
    return 0;
31284
 
}
31285
 
 
31286
 
_ACEOF
31287
 
rm -f conftest$ac_exeext
31288
 
if { (ac_try="$ac_link"
31289
 
case "(($ac_try" in
31290
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291
 
  *) ac_try_echo=$ac_try;;
31292
 
esac
31293
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294
 
  (eval "$ac_link") 2>&5
31295
 
  ac_status=$?
31296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31298
 
  { (case "(($ac_try" in
31299
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300
 
  *) ac_try_echo=$ac_try;;
31301
 
esac
31302
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303
 
  (eval "$ac_try") 2>&5
31304
 
  ac_status=$?
31305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306
 
  (exit $ac_status); }; }; then
31307
 
 
31308
 
cat >>confdefs.h <<\_ACEOF
31309
 
#define HAVE_POSIX_STRERROR_R 1
31310
 
_ACEOF
31311
 
 
31312
 
      { echo "$as_me:$LINENO: result: yes" >&5
31313
 
echo "${ECHO_T}yes" >&6; }
31314
 
else
31315
 
  echo "$as_me: program exited with status $ac_status" >&5
31316
 
echo "$as_me: failed program was:" >&5
31317
 
sed 's/^/| /' conftest.$ac_ext >&5
31318
 
 
31319
 
( exit $ac_status )
31320
 
{ echo "$as_me:$LINENO: result: no" >&5
31321
 
echo "${ECHO_T}no" >&6; }
31322
 
fi
31323
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31324
 
fi
31325
 
 
31326
 
 
31327
 
 
31328
 
    fi
31329
 
  fi
31330
26611
 
31331
26612
 
31332
26613
  checkfor_gmtime_r="yes"
31333
26614
fi
31334
26615
 
31335
 
if test x$cross_compiling != xyes; then
31336
 
 
31337
 
  if test x$checkfor_gmtime_r = xyes; then
31338
 
 
31339
 
 
31340
 
    { echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
31341
 
echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6; }
31342
 
    if test "$cross_compiling" = yes; then
31343
 
       echo "hej"
31344
 
 
31345
 
else
31346
 
  cat >conftest.$ac_ext <<_ACEOF
31347
 
 
31348
 
    #include <time.h>
31349
 
    int main(void)
31350
 
    {
31351
 
    time_t local = 1170352587;
31352
 
    struct tm *gmt;
31353
 
    struct tm keeper;
31354
 
    putenv("TZ=CST6CDT");
31355
 
    tzset();
31356
 
    gmt = gmtime_r(&local, &keeper);
31357
 
    if(gmt) {
31358
 
      return 0;
31359
 
    }
31360
 
    return 1; /* failure */
31361
 
    }
31362
 
 
31363
 
_ACEOF
31364
 
rm -f conftest$ac_exeext
31365
 
if { (ac_try="$ac_link"
31366
 
case "(($ac_try" in
31367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368
 
  *) ac_try_echo=$ac_try;;
31369
 
esac
31370
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371
 
  (eval "$ac_link") 2>&5
31372
 
  ac_status=$?
31373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31375
 
  { (case "(($ac_try" in
31376
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377
 
  *) ac_try_echo=$ac_try;;
31378
 
esac
31379
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380
 
  (eval "$ac_try") 2>&5
31381
 
  ac_status=$?
31382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383
 
  (exit $ac_status); }; }; then
31384
 
       { echo "$as_me:$LINENO: result: yes" >&5
31385
 
echo "${ECHO_T}yes" >&6; }
31386
 
 
31387
 
cat >>confdefs.h <<\_ACEOF
31388
 
#define HAVE_GMTIME_R 1
31389
 
_ACEOF
31390
 
 
31391
 
 
31392
 
else
31393
 
  echo "$as_me: program exited with status $ac_status" >&5
31394
 
echo "$as_me: failed program was:" >&5
31395
 
sed 's/^/| /' conftest.$ac_ext >&5
31396
 
 
31397
 
( exit $ac_status )
31398
 
     { echo "$as_me:$LINENO: result: no" >&5
31399
 
echo "${ECHO_T}no" >&6; }
31400
 
 
31401
 
fi
31402
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31403
 
fi
31404
 
 
31405
 
 
31406
 
  fi
31407
 
else
31408
 
 
31409
 
for ac_func in gmtime_r
31410
 
do
31411
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31412
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31413
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31414
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
31416
 
else
31417
 
  cat >conftest.$ac_ext <<_ACEOF
31418
 
/* confdefs.h.  */
31419
 
_ACEOF
31420
 
cat confdefs.h >>conftest.$ac_ext
31421
 
cat >>conftest.$ac_ext <<_ACEOF
31422
 
/* end confdefs.h.  */
31423
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31424
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31425
 
#define $ac_func innocuous_$ac_func
31426
 
 
31427
 
/* System header to define __stub macros and hopefully few prototypes,
31428
 
    which can conflict with char $ac_func (); below.
31429
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31430
 
    <limits.h> exists even on freestanding compilers.  */
31431
 
 
31432
 
#ifdef __STDC__
31433
 
# include <limits.h>
31434
 
#else
31435
 
# include <assert.h>
31436
 
#endif
31437
 
 
31438
 
#undef $ac_func
31439
 
 
31440
 
/* Override any GCC internal prototype to avoid an error.
31441
 
   Use char because int might match the return type of a GCC
31442
 
   builtin and then its argument prototype would still apply.  */
31443
 
#ifdef __cplusplus
31444
 
extern "C"
31445
 
#endif
31446
 
char $ac_func ();
31447
 
/* The GNU C library defines this for functions which it implements
31448
 
    to always fail with ENOSYS.  Some functions are actually named
31449
 
    something starting with __ and the normal name is an alias.  */
31450
 
#if defined __stub_$ac_func || defined __stub___$ac_func
31451
 
choke me
31452
 
#endif
31453
 
 
31454
 
int
31455
 
main ()
31456
 
{
31457
 
return $ac_func ();
31458
 
  ;
31459
 
  return 0;
31460
 
}
31461
 
_ACEOF
31462
 
rm -f conftest.$ac_objext conftest$ac_exeext
31463
 
if { (ac_try="$ac_link"
31464
 
case "(($ac_try" in
31465
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466
 
  *) ac_try_echo=$ac_try;;
31467
 
esac
31468
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469
 
  (eval "$ac_link") 2>conftest.er1
31470
 
  ac_status=$?
31471
 
  grep -v '^ *+' conftest.er1 >conftest.err
31472
 
  rm -f conftest.er1
31473
 
  cat conftest.err >&5
31474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475
 
  (exit $ac_status); } && {
31476
 
         test -z "$ac_c_werror_flag" ||
31477
 
         test ! -s conftest.err
31478
 
       } && test -s conftest$ac_exeext &&
31479
 
       $as_test_x conftest$ac_exeext; then
31480
 
  eval "$as_ac_var=yes"
31481
 
else
31482
 
  echo "$as_me: failed program was:" >&5
31483
 
sed 's/^/| /' conftest.$ac_ext >&5
31484
 
 
31485
 
        eval "$as_ac_var=no"
31486
 
fi
31487
 
 
31488
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31489
 
      conftest$ac_exeext conftest.$ac_ext
31490
 
fi
31491
 
ac_res=`eval echo '${'$as_ac_var'}'`
31492
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
31493
 
echo "${ECHO_T}$ac_res" >&6; }
31494
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
31495
 
  cat >>confdefs.h <<_ACEOF
31496
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31497
 
_ACEOF
31498
 
 
31499
 
fi
31500
 
done
31501
 
 
31502
 
fi
31503
 
 
31504
26616
 
31505
26617
 
31506
26618
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31519
26631
#include <string.h>
31520
26632
#include <float.h>
31521
26633
 
31522
 
int
31523
 
main ()
 
26634
int main (void)
31524
26635
{
31525
26636
 
31526
 
  ;
31527
 
  return 0;
 
26637
 ;
 
26638
 return 0;
31528
26639
}
31529
26640
_ACEOF
31530
26641
rm -f conftest.$ac_objext
31695
26806
 
31696
26807
#include <malloc.h>
31697
26808
 
31698
 
int
31699
 
main ()
 
26809
int main (void)
31700
26810
{
31701
26811
 
31702
26812
        void *p = malloc(10);
31704
26814
        free(p);
31705
26815
        free(q);
31706
26816
 
31707
 
  ;
31708
 
  return 0;
 
26817
 ;
 
26818
 return 0;
31709
26819
}
31710
26820
 
31711
26821
_ACEOF
31760
26870
 
31761
26871
#include <stdlib.h>
31762
26872
 
31763
 
int
31764
 
main ()
 
26873
int main (void)
31765
26874
{
31766
26875
 
31767
26876
        void *p = malloc(10);
31769
26878
        free(p);
31770
26879
        free(q);
31771
26880
 
31772
 
  ;
31773
 
  return 0;
 
26881
 ;
 
26882
 return 0;
31774
26883
}
31775
26884
 
31776
26885
_ACEOF
31855
26964
 
31856
26965
 
31857
26966
 
 
26967
 
31858
26968
for ac_header in sys/types.h \
31859
26969
        sys/time.h \
31860
26970
        sys/select.h \
31861
26971
        sys/socket.h \
31862
26972
        sys/ioctl.h \
 
26973
        sys/uio.h \
31863
26974
        assert.h \
31864
26975
        unistd.h \
31865
26976
        stdlib.h \
31982
27093
cat >>conftest.$ac_ext <<_ACEOF
31983
27094
/* end confdefs.h.  */
31984
27095
 
31985
 
int
31986
 
main ()
 
27096
int main (void)
31987
27097
{
31988
27098
/* FIXME: Include the comments suggested by Paul. */
31989
27099
#ifndef __cplusplus
32035
27145
  return !cs[0] && !zero.x;
32036
27146
#endif
32037
27147
 
32038
 
  ;
32039
 
  return 0;
 
27148
 ;
 
27149
 return 0;
32040
27150
}
32041
27151
_ACEOF
32042
27152
rm -f conftest.$ac_objext
32100
27210
        int fun2(int arg1, int arg2)
32101
27211
        { return arg1 + arg2; }
32102
27212
 
32103
 
int
32104
 
main ()
 
27213
int main (void)
32105
27214
{
32106
27215
 
32107
27216
        int res3 = c99_vmacro3(1, 2, 3);
32108
27217
        int res2 = c99_vmacro2(1, 2);
32109
27218
 
32110
 
  ;
32111
 
  return 0;
 
27219
 ;
 
27220
 return 0;
32112
27221
}
32113
27222
 
32114
27223
_ACEOF
32178
27287
        int fun2(int arg1, int arg2)
32179
27288
        { return arg1 + arg2; }
32180
27289
 
32181
 
int
32182
 
main ()
 
27290
int main (void)
32183
27291
{
32184
27292
 
32185
27293
        int res3 = gcc_vmacro3(1, 2, 3);
32186
27294
        int res2 = gcc_vmacro2(1, 2);
32187
27295
 
32188
 
  ;
32189
 
  return 0;
 
27296
 ;
 
27297
 return 0;
32190
27298
}
32191
27299
 
32192
27300
_ACEOF
32247
27355
/* end confdefs.h.  */
32248
27356
$ac_includes_default
32249
27357
typedef size_t ac__type_new_;
32250
 
int
32251
 
main ()
 
27358
int main (void)
32252
27359
{
32253
27360
if ((ac__type_new_ *) 0)
32254
27361
  return 0;
32255
27362
if (sizeof (ac__type_new_))
32256
27363
  return 0;
32257
 
  ;
32258
 
  return 0;
 
27364
 ;
 
27365
 return 0;
32259
27366
}
32260
27367
_ACEOF
32261
27368
rm -f conftest.$ac_objext
32312
27419
#include <sys/time.h>
32313
27420
#include <time.h>
32314
27421
 
32315
 
int
32316
 
main ()
 
27422
int main (void)
32317
27423
{
32318
27424
if ((struct tm *) 0)
32319
27425
return 0;
32320
 
  ;
32321
 
  return 0;
 
27426
 ;
 
27427
 return 0;
32322
27428
}
32323
27429
_ACEOF
32324
27430
rm -f conftest.$ac_objext
32548
27654
#endif
32549
27655
#endif
32550
27656
 
32551
 
int
32552
 
main ()
 
27657
int main (void)
32553
27658
{
32554
27659
 
32555
27660
        struct timeval ts;
32556
27661
        ts.tv_sec  = 0;
32557
27662
        ts.tv_usec = 0;
32558
27663
 
32559
 
  ;
32560
 
  return 0;
 
27664
 ;
 
27665
 return 0;
32561
27666
}
32562
27667
 
32563
27668
_ACEOF
32674
27779
      fi
32675
27780
 
32676
27781
 
32677
 
{ echo "$as_me:$LINENO: checking for curl_off_t" >&5
32678
 
echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6; }
32679
 
if test "${ac_cv_type_curl_off_t+set}" = set; then
32680
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
32681
 
else
32682
 
  cat >conftest.$ac_ext <<_ACEOF
32683
 
/* confdefs.h.  */
32684
 
_ACEOF
32685
 
cat confdefs.h >>conftest.$ac_ext
32686
 
cat >>conftest.$ac_ext <<_ACEOF
32687
 
/* end confdefs.h.  */
32688
 
 
32689
 
#include <stdio.h>
32690
 
#include "$srcdir/include/curl/curl.h"
32691
 
 
32692
 
 
32693
 
typedef curl_off_t ac__type_new_;
32694
 
int
32695
 
main ()
32696
 
{
32697
 
if ((ac__type_new_ *) 0)
32698
 
  return 0;
32699
 
if (sizeof (ac__type_new_))
32700
 
  return 0;
32701
 
  ;
32702
 
  return 0;
32703
 
}
32704
 
_ACEOF
32705
 
rm -f conftest.$ac_objext
32706
 
if { (ac_try="$ac_compile"
32707
 
case "(($ac_try" in
32708
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709
 
  *) ac_try_echo=$ac_try;;
32710
 
esac
32711
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712
 
  (eval "$ac_compile") 2>conftest.er1
32713
 
  ac_status=$?
32714
 
  grep -v '^ *+' conftest.er1 >conftest.err
32715
 
  rm -f conftest.er1
32716
 
  cat conftest.err >&5
32717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718
 
  (exit $ac_status); } && {
32719
 
         test -z "$ac_c_werror_flag" ||
32720
 
         test ! -s conftest.err
32721
 
       } && test -s conftest.$ac_objext; then
32722
 
  ac_cv_type_curl_off_t=yes
32723
 
else
32724
 
  echo "$as_me: failed program was:" >&5
32725
 
sed 's/^/| /' conftest.$ac_ext >&5
32726
 
 
32727
 
        ac_cv_type_curl_off_t=no
32728
 
fi
32729
 
 
32730
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731
 
fi
32732
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
32733
 
echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6; }
32734
 
 
32735
 
# The cast to long int works around a bug in the HP C Compiler
32736
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32737
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32738
 
# This bug is HP SR number 8606223364.
32739
 
{ echo "$as_me:$LINENO: checking size of curl_off_t" >&5
32740
 
echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
32741
 
if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
32742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
32743
 
else
32744
 
  if test "$cross_compiling" = yes; then
32745
 
  # Depending upon the size, compute the lo and hi bounds.
32746
 
cat >conftest.$ac_ext <<_ACEOF
32747
 
/* confdefs.h.  */
32748
 
_ACEOF
32749
 
cat confdefs.h >>conftest.$ac_ext
32750
 
cat >>conftest.$ac_ext <<_ACEOF
32751
 
/* end confdefs.h.  */
32752
 
 
32753
 
#include <stdio.h>
32754
 
#include "$srcdir/include/curl/curl.h"
32755
 
 
32756
 
 
32757
 
   typedef curl_off_t ac__type_sizeof_;
32758
 
int
32759
 
main ()
32760
 
{
32761
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
32762
 
test_array [0] = 0
32763
 
 
32764
 
  ;
32765
 
  return 0;
32766
 
}
32767
 
_ACEOF
32768
 
rm -f conftest.$ac_objext
32769
 
if { (ac_try="$ac_compile"
32770
 
case "(($ac_try" in
32771
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32772
 
  *) ac_try_echo=$ac_try;;
32773
 
esac
32774
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32775
 
  (eval "$ac_compile") 2>conftest.er1
32776
 
  ac_status=$?
32777
 
  grep -v '^ *+' conftest.er1 >conftest.err
32778
 
  rm -f conftest.er1
32779
 
  cat conftest.err >&5
32780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781
 
  (exit $ac_status); } && {
32782
 
         test -z "$ac_c_werror_flag" ||
32783
 
         test ! -s conftest.err
32784
 
       } && test -s conftest.$ac_objext; then
32785
 
  ac_lo=0 ac_mid=0
32786
 
  while :; do
32787
 
    cat >conftest.$ac_ext <<_ACEOF
32788
 
/* confdefs.h.  */
32789
 
_ACEOF
32790
 
cat confdefs.h >>conftest.$ac_ext
32791
 
cat >>conftest.$ac_ext <<_ACEOF
32792
 
/* end confdefs.h.  */
32793
 
 
32794
 
#include <stdio.h>
32795
 
#include "$srcdir/include/curl/curl.h"
32796
 
 
32797
 
 
32798
 
   typedef curl_off_t ac__type_sizeof_;
32799
 
int
32800
 
main ()
32801
 
{
32802
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32803
 
test_array [0] = 0
32804
 
 
32805
 
  ;
32806
 
  return 0;
32807
 
}
32808
 
_ACEOF
32809
 
rm -f conftest.$ac_objext
32810
 
if { (ac_try="$ac_compile"
32811
 
case "(($ac_try" in
32812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813
 
  *) ac_try_echo=$ac_try;;
32814
 
esac
32815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816
 
  (eval "$ac_compile") 2>conftest.er1
32817
 
  ac_status=$?
32818
 
  grep -v '^ *+' conftest.er1 >conftest.err
32819
 
  rm -f conftest.er1
32820
 
  cat conftest.err >&5
32821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822
 
  (exit $ac_status); } && {
32823
 
         test -z "$ac_c_werror_flag" ||
32824
 
         test ! -s conftest.err
32825
 
       } && test -s conftest.$ac_objext; then
32826
 
  ac_hi=$ac_mid; break
32827
 
else
32828
 
  echo "$as_me: failed program was:" >&5
32829
 
sed 's/^/| /' conftest.$ac_ext >&5
32830
 
 
32831
 
        ac_lo=`expr $ac_mid + 1`
32832
 
                        if test $ac_lo -le $ac_mid; then
32833
 
                          ac_lo= ac_hi=
32834
 
                          break
32835
 
                        fi
32836
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
32837
 
fi
32838
 
 
32839
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32840
 
  done
32841
 
else
32842
 
  echo "$as_me: failed program was:" >&5
32843
 
sed 's/^/| /' conftest.$ac_ext >&5
32844
 
 
32845
 
        cat >conftest.$ac_ext <<_ACEOF
32846
 
/* confdefs.h.  */
32847
 
_ACEOF
32848
 
cat confdefs.h >>conftest.$ac_ext
32849
 
cat >>conftest.$ac_ext <<_ACEOF
32850
 
/* end confdefs.h.  */
32851
 
 
32852
 
#include <stdio.h>
32853
 
#include "$srcdir/include/curl/curl.h"
32854
 
 
32855
 
 
32856
 
   typedef curl_off_t ac__type_sizeof_;
32857
 
int
32858
 
main ()
32859
 
{
32860
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
32861
 
test_array [0] = 0
32862
 
 
32863
 
  ;
32864
 
  return 0;
32865
 
}
32866
 
_ACEOF
32867
 
rm -f conftest.$ac_objext
32868
 
if { (ac_try="$ac_compile"
32869
 
case "(($ac_try" in
32870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871
 
  *) ac_try_echo=$ac_try;;
32872
 
esac
32873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874
 
  (eval "$ac_compile") 2>conftest.er1
32875
 
  ac_status=$?
32876
 
  grep -v '^ *+' conftest.er1 >conftest.err
32877
 
  rm -f conftest.er1
32878
 
  cat conftest.err >&5
32879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880
 
  (exit $ac_status); } && {
32881
 
         test -z "$ac_c_werror_flag" ||
32882
 
         test ! -s conftest.err
32883
 
       } && test -s conftest.$ac_objext; then
32884
 
  ac_hi=-1 ac_mid=-1
32885
 
  while :; do
32886
 
    cat >conftest.$ac_ext <<_ACEOF
32887
 
/* confdefs.h.  */
32888
 
_ACEOF
32889
 
cat confdefs.h >>conftest.$ac_ext
32890
 
cat >>conftest.$ac_ext <<_ACEOF
32891
 
/* end confdefs.h.  */
32892
 
 
32893
 
#include <stdio.h>
32894
 
#include "$srcdir/include/curl/curl.h"
32895
 
 
32896
 
 
32897
 
   typedef curl_off_t ac__type_sizeof_;
32898
 
int
32899
 
main ()
32900
 
{
32901
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
32902
 
test_array [0] = 0
32903
 
 
32904
 
  ;
32905
 
  return 0;
32906
 
}
32907
 
_ACEOF
32908
 
rm -f conftest.$ac_objext
32909
 
if { (ac_try="$ac_compile"
32910
 
case "(($ac_try" in
32911
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32912
 
  *) ac_try_echo=$ac_try;;
32913
 
esac
32914
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32915
 
  (eval "$ac_compile") 2>conftest.er1
32916
 
  ac_status=$?
32917
 
  grep -v '^ *+' conftest.er1 >conftest.err
32918
 
  rm -f conftest.er1
32919
 
  cat conftest.err >&5
32920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921
 
  (exit $ac_status); } && {
32922
 
         test -z "$ac_c_werror_flag" ||
32923
 
         test ! -s conftest.err
32924
 
       } && test -s conftest.$ac_objext; then
32925
 
  ac_lo=$ac_mid; break
32926
 
else
32927
 
  echo "$as_me: failed program was:" >&5
32928
 
sed 's/^/| /' conftest.$ac_ext >&5
32929
 
 
32930
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
32931
 
                        if test $ac_mid -le $ac_hi; then
32932
 
                          ac_lo= ac_hi=
32933
 
                          break
32934
 
                        fi
32935
 
                        ac_mid=`expr 2 '*' $ac_mid`
32936
 
fi
32937
 
 
32938
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32939
 
  done
32940
 
else
32941
 
  echo "$as_me: failed program was:" >&5
32942
 
sed 's/^/| /' conftest.$ac_ext >&5
32943
 
 
32944
 
        ac_lo= ac_hi=
32945
 
fi
32946
 
 
32947
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948
 
fi
32949
 
 
32950
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951
 
# Binary search between lo and hi bounds.
32952
 
while test "x$ac_lo" != "x$ac_hi"; do
32953
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32954
 
  cat >conftest.$ac_ext <<_ACEOF
32955
 
/* confdefs.h.  */
32956
 
_ACEOF
32957
 
cat confdefs.h >>conftest.$ac_ext
32958
 
cat >>conftest.$ac_ext <<_ACEOF
32959
 
/* end confdefs.h.  */
32960
 
 
32961
 
#include <stdio.h>
32962
 
#include "$srcdir/include/curl/curl.h"
32963
 
 
32964
 
 
32965
 
   typedef curl_off_t ac__type_sizeof_;
32966
 
int
32967
 
main ()
32968
 
{
32969
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
32970
 
test_array [0] = 0
32971
 
 
32972
 
  ;
32973
 
  return 0;
32974
 
}
32975
 
_ACEOF
32976
 
rm -f conftest.$ac_objext
32977
 
if { (ac_try="$ac_compile"
32978
 
case "(($ac_try" in
32979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980
 
  *) ac_try_echo=$ac_try;;
32981
 
esac
32982
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983
 
  (eval "$ac_compile") 2>conftest.er1
32984
 
  ac_status=$?
32985
 
  grep -v '^ *+' conftest.er1 >conftest.err
32986
 
  rm -f conftest.er1
32987
 
  cat conftest.err >&5
32988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989
 
  (exit $ac_status); } && {
32990
 
         test -z "$ac_c_werror_flag" ||
32991
 
         test ! -s conftest.err
32992
 
       } && test -s conftest.$ac_objext; then
32993
 
  ac_hi=$ac_mid
32994
 
else
32995
 
  echo "$as_me: failed program was:" >&5
32996
 
sed 's/^/| /' conftest.$ac_ext >&5
32997
 
 
32998
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
32999
 
fi
33000
 
 
33001
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33002
 
done
33003
 
case $ac_lo in
33004
 
?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
33005
 
'') if test "$ac_cv_type_curl_off_t" = yes; then
33006
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t)
33007
 
See \`config.log' for more details." >&5
33008
 
echo "$as_me: error: cannot compute sizeof (curl_off_t)
33009
 
See \`config.log' for more details." >&2;}
33010
 
   { (exit 77); exit 77; }; }
33011
 
   else
33012
 
     ac_cv_sizeof_curl_off_t=0
33013
 
   fi ;;
33014
 
esac
33015
 
else
33016
 
  cat >conftest.$ac_ext <<_ACEOF
33017
 
/* confdefs.h.  */
33018
 
_ACEOF
33019
 
cat confdefs.h >>conftest.$ac_ext
33020
 
cat >>conftest.$ac_ext <<_ACEOF
33021
 
/* end confdefs.h.  */
33022
 
 
33023
 
#include <stdio.h>
33024
 
#include "$srcdir/include/curl/curl.h"
33025
 
 
33026
 
 
33027
 
   typedef curl_off_t ac__type_sizeof_;
33028
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33029
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33030
 
#include <stdio.h>
33031
 
#include <stdlib.h>
33032
 
int
33033
 
main ()
33034
 
{
33035
 
 
33036
 
  FILE *f = fopen ("conftest.val", "w");
33037
 
  if (! f)
33038
 
    return 1;
33039
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33040
 
    {
33041
 
      long int i = longval ();
33042
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33043
 
        return 1;
33044
 
      fprintf (f, "%ld\n", i);
33045
 
    }
33046
 
  else
33047
 
    {
33048
 
      unsigned long int i = ulongval ();
33049
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
33050
 
        return 1;
33051
 
      fprintf (f, "%lu\n", i);
33052
 
    }
33053
 
  return ferror (f) || fclose (f) != 0;
33054
 
 
33055
 
  ;
33056
 
  return 0;
33057
 
}
33058
 
_ACEOF
33059
 
rm -f conftest$ac_exeext
33060
 
if { (ac_try="$ac_link"
33061
 
case "(($ac_try" in
33062
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063
 
  *) ac_try_echo=$ac_try;;
33064
 
esac
33065
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066
 
  (eval "$ac_link") 2>&5
33067
 
  ac_status=$?
33068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33070
 
  { (case "(($ac_try" in
33071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072
 
  *) ac_try_echo=$ac_try;;
33073
 
esac
33074
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075
 
  (eval "$ac_try") 2>&5
33076
 
  ac_status=$?
33077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078
 
  (exit $ac_status); }; }; then
33079
 
  ac_cv_sizeof_curl_off_t=`cat conftest.val`
33080
 
else
33081
 
  echo "$as_me: program exited with status $ac_status" >&5
33082
 
echo "$as_me: failed program was:" >&5
33083
 
sed 's/^/| /' conftest.$ac_ext >&5
33084
 
 
33085
 
( exit $ac_status )
33086
 
if test "$ac_cv_type_curl_off_t" = yes; then
33087
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t)
33088
 
See \`config.log' for more details." >&5
33089
 
echo "$as_me: error: cannot compute sizeof (curl_off_t)
33090
 
See \`config.log' for more details." >&2;}
33091
 
   { (exit 77); exit 77; }; }
33092
 
   else
33093
 
     ac_cv_sizeof_curl_off_t=0
33094
 
   fi
33095
 
fi
33096
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33097
 
fi
33098
 
rm -f conftest.val
33099
 
fi
33100
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
33101
 
echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6; }
33102
 
 
33103
 
 
33104
 
 
33105
 
cat >>confdefs.h <<_ACEOF
33106
 
#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
33107
 
_ACEOF
33108
 
 
33109
 
 
33110
27782
{ echo "$as_me:$LINENO: checking for size_t" >&5
33111
27783
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33112
27784
if test "${ac_cv_type_size_t+set}" = set; then
33120
27792
/* end confdefs.h.  */
33121
27793
$ac_includes_default
33122
27794
typedef size_t ac__type_new_;
33123
 
int
33124
 
main ()
 
27795
int main (void)
33125
27796
{
33126
27797
if ((ac__type_new_ *) 0)
33127
27798
  return 0;
33128
27799
if (sizeof (ac__type_new_))
33129
27800
  return 0;
33130
 
  ;
33131
 
  return 0;
 
27801
 ;
 
27802
 return 0;
33132
27803
}
33133
27804
_ACEOF
33134
27805
rm -f conftest.$ac_objext
33180
27851
/* end confdefs.h.  */
33181
27852
$ac_includes_default
33182
27853
   typedef size_t ac__type_sizeof_;
33183
 
int
33184
 
main ()
 
27854
int main (void)
33185
27855
{
33186
27856
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33187
27857
test_array [0] = 0
33188
27858
 
33189
 
  ;
33190
 
  return 0;
 
27859
 ;
 
27860
 return 0;
33191
27861
}
33192
27862
_ACEOF
33193
27863
rm -f conftest.$ac_objext
33217
27887
/* end confdefs.h.  */
33218
27888
$ac_includes_default
33219
27889
   typedef size_t ac__type_sizeof_;
33220
 
int
33221
 
main ()
 
27890
int main (void)
33222
27891
{
33223
27892
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33224
27893
test_array [0] = 0
33225
27894
 
33226
 
  ;
33227
 
  return 0;
 
27895
 ;
 
27896
 return 0;
33228
27897
}
33229
27898
_ACEOF
33230
27899
rm -f conftest.$ac_objext
33271
27940
/* end confdefs.h.  */
33272
27941
$ac_includes_default
33273
27942
   typedef size_t ac__type_sizeof_;
33274
 
int
33275
 
main ()
 
27943
int main (void)
33276
27944
{
33277
27945
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33278
27946
test_array [0] = 0
33279
27947
 
33280
 
  ;
33281
 
  return 0;
 
27948
 ;
 
27949
 return 0;
33282
27950
}
33283
27951
_ACEOF
33284
27952
rm -f conftest.$ac_objext
33308
27976
/* end confdefs.h.  */
33309
27977
$ac_includes_default
33310
27978
   typedef size_t ac__type_sizeof_;
33311
 
int
33312
 
main ()
 
27979
int main (void)
33313
27980
{
33314
27981
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33315
27982
test_array [0] = 0
33316
27983
 
33317
 
  ;
33318
 
  return 0;
 
27984
 ;
 
27985
 return 0;
33319
27986
}
33320
27987
_ACEOF
33321
27988
rm -f conftest.$ac_objext
33372
28039
/* end confdefs.h.  */
33373
28040
$ac_includes_default
33374
28041
   typedef size_t ac__type_sizeof_;
33375
 
int
33376
 
main ()
 
28042
int main (void)
33377
28043
{
33378
28044
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33379
28045
test_array [0] = 0
33380
28046
 
33381
 
  ;
33382
 
  return 0;
 
28047
 ;
 
28048
 return 0;
33383
28049
}
33384
28050
_ACEOF
33385
28051
rm -f conftest.$ac_objext
33434
28100
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33435
28101
#include <stdio.h>
33436
28102
#include <stdlib.h>
33437
 
int
33438
 
main ()
 
28103
int main (void)
33439
28104
{
33440
28105
 
33441
28106
  FILE *f = fopen ("conftest.val", "w");
33457
28122
    }
33458
28123
  return ferror (f) || fclose (f) != 0;
33459
28124
 
33460
 
  ;
33461
 
  return 0;
 
28125
 ;
 
28126
 return 0;
33462
28127
}
33463
28128
_ACEOF
33464
28129
rm -f conftest$ac_exeext
33512
28177
_ACEOF
33513
28178
 
33514
28179
 
 
28180
{ echo "$as_me:$LINENO: checking for int" >&5
 
28181
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
28182
if test "${ac_cv_type_int+set}" = set; then
 
28183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28184
else
 
28185
  cat >conftest.$ac_ext <<_ACEOF
 
28186
/* confdefs.h.  */
 
28187
_ACEOF
 
28188
cat confdefs.h >>conftest.$ac_ext
 
28189
cat >>conftest.$ac_ext <<_ACEOF
 
28190
/* end confdefs.h.  */
 
28191
$ac_includes_default
 
28192
typedef int ac__type_new_;
 
28193
int main (void)
 
28194
{
 
28195
if ((ac__type_new_ *) 0)
 
28196
  return 0;
 
28197
if (sizeof (ac__type_new_))
 
28198
  return 0;
 
28199
 ;
 
28200
 return 0;
 
28201
}
 
28202
_ACEOF
 
28203
rm -f conftest.$ac_objext
 
28204
if { (ac_try="$ac_compile"
 
28205
case "(($ac_try" in
 
28206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28207
  *) ac_try_echo=$ac_try;;
 
28208
esac
 
28209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28210
  (eval "$ac_compile") 2>conftest.er1
 
28211
  ac_status=$?
 
28212
  grep -v '^ *+' conftest.er1 >conftest.err
 
28213
  rm -f conftest.er1
 
28214
  cat conftest.err >&5
 
28215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28216
  (exit $ac_status); } && {
 
28217
         test -z "$ac_c_werror_flag" ||
 
28218
         test ! -s conftest.err
 
28219
       } && test -s conftest.$ac_objext; then
 
28220
  ac_cv_type_int=yes
 
28221
else
 
28222
  echo "$as_me: failed program was:" >&5
 
28223
sed 's/^/| /' conftest.$ac_ext >&5
 
28224
 
 
28225
        ac_cv_type_int=no
 
28226
fi
 
28227
 
 
28228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28229
fi
 
28230
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
28231
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
28232
 
 
28233
# The cast to long int works around a bug in the HP C Compiler
 
28234
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
28235
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
28236
# This bug is HP SR number 8606223364.
 
28237
{ echo "$as_me:$LINENO: checking size of int" >&5
 
28238
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
28239
if test "${ac_cv_sizeof_int+set}" = set; then
 
28240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28241
else
 
28242
  if test "$cross_compiling" = yes; then
 
28243
  # Depending upon the size, compute the lo and hi bounds.
 
28244
cat >conftest.$ac_ext <<_ACEOF
 
28245
/* confdefs.h.  */
 
28246
_ACEOF
 
28247
cat confdefs.h >>conftest.$ac_ext
 
28248
cat >>conftest.$ac_ext <<_ACEOF
 
28249
/* end confdefs.h.  */
 
28250
$ac_includes_default
 
28251
   typedef int ac__type_sizeof_;
 
28252
int main (void)
 
28253
{
 
28254
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
28255
test_array [0] = 0
 
28256
 
 
28257
 ;
 
28258
 return 0;
 
28259
}
 
28260
_ACEOF
 
28261
rm -f conftest.$ac_objext
 
28262
if { (ac_try="$ac_compile"
 
28263
case "(($ac_try" in
 
28264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28265
  *) ac_try_echo=$ac_try;;
 
28266
esac
 
28267
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28268
  (eval "$ac_compile") 2>conftest.er1
 
28269
  ac_status=$?
 
28270
  grep -v '^ *+' conftest.er1 >conftest.err
 
28271
  rm -f conftest.er1
 
28272
  cat conftest.err >&5
 
28273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28274
  (exit $ac_status); } && {
 
28275
         test -z "$ac_c_werror_flag" ||
 
28276
         test ! -s conftest.err
 
28277
       } && test -s conftest.$ac_objext; then
 
28278
  ac_lo=0 ac_mid=0
 
28279
  while :; do
 
28280
    cat >conftest.$ac_ext <<_ACEOF
 
28281
/* confdefs.h.  */
 
28282
_ACEOF
 
28283
cat confdefs.h >>conftest.$ac_ext
 
28284
cat >>conftest.$ac_ext <<_ACEOF
 
28285
/* end confdefs.h.  */
 
28286
$ac_includes_default
 
28287
   typedef int ac__type_sizeof_;
 
28288
int main (void)
 
28289
{
 
28290
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
28291
test_array [0] = 0
 
28292
 
 
28293
 ;
 
28294
 return 0;
 
28295
}
 
28296
_ACEOF
 
28297
rm -f conftest.$ac_objext
 
28298
if { (ac_try="$ac_compile"
 
28299
case "(($ac_try" in
 
28300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28301
  *) ac_try_echo=$ac_try;;
 
28302
esac
 
28303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28304
  (eval "$ac_compile") 2>conftest.er1
 
28305
  ac_status=$?
 
28306
  grep -v '^ *+' conftest.er1 >conftest.err
 
28307
  rm -f conftest.er1
 
28308
  cat conftest.err >&5
 
28309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28310
  (exit $ac_status); } && {
 
28311
         test -z "$ac_c_werror_flag" ||
 
28312
         test ! -s conftest.err
 
28313
       } && test -s conftest.$ac_objext; then
 
28314
  ac_hi=$ac_mid; break
 
28315
else
 
28316
  echo "$as_me: failed program was:" >&5
 
28317
sed 's/^/| /' conftest.$ac_ext >&5
 
28318
 
 
28319
        ac_lo=`expr $ac_mid + 1`
 
28320
                        if test $ac_lo -le $ac_mid; then
 
28321
                          ac_lo= ac_hi=
 
28322
                          break
 
28323
                        fi
 
28324
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
28325
fi
 
28326
 
 
28327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28328
  done
 
28329
else
 
28330
  echo "$as_me: failed program was:" >&5
 
28331
sed 's/^/| /' conftest.$ac_ext >&5
 
28332
 
 
28333
        cat >conftest.$ac_ext <<_ACEOF
 
28334
/* confdefs.h.  */
 
28335
_ACEOF
 
28336
cat confdefs.h >>conftest.$ac_ext
 
28337
cat >>conftest.$ac_ext <<_ACEOF
 
28338
/* end confdefs.h.  */
 
28339
$ac_includes_default
 
28340
   typedef int ac__type_sizeof_;
 
28341
int main (void)
 
28342
{
 
28343
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
28344
test_array [0] = 0
 
28345
 
 
28346
 ;
 
28347
 return 0;
 
28348
}
 
28349
_ACEOF
 
28350
rm -f conftest.$ac_objext
 
28351
if { (ac_try="$ac_compile"
 
28352
case "(($ac_try" in
 
28353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28354
  *) ac_try_echo=$ac_try;;
 
28355
esac
 
28356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28357
  (eval "$ac_compile") 2>conftest.er1
 
28358
  ac_status=$?
 
28359
  grep -v '^ *+' conftest.er1 >conftest.err
 
28360
  rm -f conftest.er1
 
28361
  cat conftest.err >&5
 
28362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28363
  (exit $ac_status); } && {
 
28364
         test -z "$ac_c_werror_flag" ||
 
28365
         test ! -s conftest.err
 
28366
       } && test -s conftest.$ac_objext; then
 
28367
  ac_hi=-1 ac_mid=-1
 
28368
  while :; do
 
28369
    cat >conftest.$ac_ext <<_ACEOF
 
28370
/* confdefs.h.  */
 
28371
_ACEOF
 
28372
cat confdefs.h >>conftest.$ac_ext
 
28373
cat >>conftest.$ac_ext <<_ACEOF
 
28374
/* end confdefs.h.  */
 
28375
$ac_includes_default
 
28376
   typedef int ac__type_sizeof_;
 
28377
int main (void)
 
28378
{
 
28379
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
28380
test_array [0] = 0
 
28381
 
 
28382
 ;
 
28383
 return 0;
 
28384
}
 
28385
_ACEOF
 
28386
rm -f conftest.$ac_objext
 
28387
if { (ac_try="$ac_compile"
 
28388
case "(($ac_try" in
 
28389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28390
  *) ac_try_echo=$ac_try;;
 
28391
esac
 
28392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28393
  (eval "$ac_compile") 2>conftest.er1
 
28394
  ac_status=$?
 
28395
  grep -v '^ *+' conftest.er1 >conftest.err
 
28396
  rm -f conftest.er1
 
28397
  cat conftest.err >&5
 
28398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28399
  (exit $ac_status); } && {
 
28400
         test -z "$ac_c_werror_flag" ||
 
28401
         test ! -s conftest.err
 
28402
       } && test -s conftest.$ac_objext; then
 
28403
  ac_lo=$ac_mid; break
 
28404
else
 
28405
  echo "$as_me: failed program was:" >&5
 
28406
sed 's/^/| /' conftest.$ac_ext >&5
 
28407
 
 
28408
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
28409
                        if test $ac_mid -le $ac_hi; then
 
28410
                          ac_lo= ac_hi=
 
28411
                          break
 
28412
                        fi
 
28413
                        ac_mid=`expr 2 '*' $ac_mid`
 
28414
fi
 
28415
 
 
28416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28417
  done
 
28418
else
 
28419
  echo "$as_me: failed program was:" >&5
 
28420
sed 's/^/| /' conftest.$ac_ext >&5
 
28421
 
 
28422
        ac_lo= ac_hi=
 
28423
fi
 
28424
 
 
28425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28426
fi
 
28427
 
 
28428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28429
# Binary search between lo and hi bounds.
 
28430
while test "x$ac_lo" != "x$ac_hi"; do
 
28431
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
28432
  cat >conftest.$ac_ext <<_ACEOF
 
28433
/* confdefs.h.  */
 
28434
_ACEOF
 
28435
cat confdefs.h >>conftest.$ac_ext
 
28436
cat >>conftest.$ac_ext <<_ACEOF
 
28437
/* end confdefs.h.  */
 
28438
$ac_includes_default
 
28439
   typedef int ac__type_sizeof_;
 
28440
int main (void)
 
28441
{
 
28442
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
28443
test_array [0] = 0
 
28444
 
 
28445
 ;
 
28446
 return 0;
 
28447
}
 
28448
_ACEOF
 
28449
rm -f conftest.$ac_objext
 
28450
if { (ac_try="$ac_compile"
 
28451
case "(($ac_try" in
 
28452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28453
  *) ac_try_echo=$ac_try;;
 
28454
esac
 
28455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28456
  (eval "$ac_compile") 2>conftest.er1
 
28457
  ac_status=$?
 
28458
  grep -v '^ *+' conftest.er1 >conftest.err
 
28459
  rm -f conftest.er1
 
28460
  cat conftest.err >&5
 
28461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28462
  (exit $ac_status); } && {
 
28463
         test -z "$ac_c_werror_flag" ||
 
28464
         test ! -s conftest.err
 
28465
       } && test -s conftest.$ac_objext; then
 
28466
  ac_hi=$ac_mid
 
28467
else
 
28468
  echo "$as_me: failed program was:" >&5
 
28469
sed 's/^/| /' conftest.$ac_ext >&5
 
28470
 
 
28471
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
28472
fi
 
28473
 
 
28474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
28475
done
 
28476
case $ac_lo in
 
28477
?*) ac_cv_sizeof_int=$ac_lo;;
 
28478
'') if test "$ac_cv_type_int" = yes; then
 
28479
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
28480
See \`config.log' for more details." >&5
 
28481
echo "$as_me: error: cannot compute sizeof (int)
 
28482
See \`config.log' for more details." >&2;}
 
28483
   { (exit 77); exit 77; }; }
 
28484
   else
 
28485
     ac_cv_sizeof_int=0
 
28486
   fi ;;
 
28487
esac
 
28488
else
 
28489
  cat >conftest.$ac_ext <<_ACEOF
 
28490
/* confdefs.h.  */
 
28491
_ACEOF
 
28492
cat confdefs.h >>conftest.$ac_ext
 
28493
cat >>conftest.$ac_ext <<_ACEOF
 
28494
/* end confdefs.h.  */
 
28495
$ac_includes_default
 
28496
   typedef int ac__type_sizeof_;
 
28497
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
28498
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
28499
#include <stdio.h>
 
28500
#include <stdlib.h>
 
28501
int main (void)
 
28502
{
 
28503
 
 
28504
  FILE *f = fopen ("conftest.val", "w");
 
28505
  if (! f)
 
28506
    return 1;
 
28507
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
28508
    {
 
28509
      long int i = longval ();
 
28510
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
28511
        return 1;
 
28512
      fprintf (f, "%ld\n", i);
 
28513
    }
 
28514
  else
 
28515
    {
 
28516
      unsigned long int i = ulongval ();
 
28517
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
28518
        return 1;
 
28519
      fprintf (f, "%lu\n", i);
 
28520
    }
 
28521
  return ferror (f) || fclose (f) != 0;
 
28522
 
 
28523
 ;
 
28524
 return 0;
 
28525
}
 
28526
_ACEOF
 
28527
rm -f conftest$ac_exeext
 
28528
if { (ac_try="$ac_link"
 
28529
case "(($ac_try" in
 
28530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28531
  *) ac_try_echo=$ac_try;;
 
28532
esac
 
28533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28534
  (eval "$ac_link") 2>&5
 
28535
  ac_status=$?
 
28536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28537
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28538
  { (case "(($ac_try" in
 
28539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28540
  *) ac_try_echo=$ac_try;;
 
28541
esac
 
28542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28543
  (eval "$ac_try") 2>&5
 
28544
  ac_status=$?
 
28545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28546
  (exit $ac_status); }; }; then
 
28547
  ac_cv_sizeof_int=`cat conftest.val`
 
28548
else
 
28549
  echo "$as_me: program exited with status $ac_status" >&5
 
28550
echo "$as_me: failed program was:" >&5
 
28551
sed 's/^/| /' conftest.$ac_ext >&5
 
28552
 
 
28553
( exit $ac_status )
 
28554
if test "$ac_cv_type_int" = yes; then
 
28555
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
28556
See \`config.log' for more details." >&5
 
28557
echo "$as_me: error: cannot compute sizeof (int)
 
28558
See \`config.log' for more details." >&2;}
 
28559
   { (exit 77); exit 77; }; }
 
28560
   else
 
28561
     ac_cv_sizeof_int=0
 
28562
   fi
 
28563
fi
 
28564
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28565
fi
 
28566
rm -f conftest.val
 
28567
fi
 
28568
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
28569
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
28570
 
 
28571
 
 
28572
 
 
28573
cat >>confdefs.h <<_ACEOF
 
28574
#define SIZEOF_INT $ac_cv_sizeof_int
 
28575
_ACEOF
 
28576
 
 
28577
 
33515
28578
{ echo "$as_me:$LINENO: checking for long" >&5
33516
28579
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
33517
28580
if test "${ac_cv_type_long+set}" = set; then
33525
28588
/* end confdefs.h.  */
33526
28589
$ac_includes_default
33527
28590
typedef long ac__type_new_;
33528
 
int
33529
 
main ()
 
28591
int main (void)
33530
28592
{
33531
28593
if ((ac__type_new_ *) 0)
33532
28594
  return 0;
33533
28595
if (sizeof (ac__type_new_))
33534
28596
  return 0;
33535
 
  ;
33536
 
  return 0;
 
28597
 ;
 
28598
 return 0;
33537
28599
}
33538
28600
_ACEOF
33539
28601
rm -f conftest.$ac_objext
33585
28647
/* end confdefs.h.  */
33586
28648
$ac_includes_default
33587
28649
   typedef long ac__type_sizeof_;
33588
 
int
33589
 
main ()
 
28650
int main (void)
33590
28651
{
33591
28652
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33592
28653
test_array [0] = 0
33593
28654
 
33594
 
  ;
33595
 
  return 0;
 
28655
 ;
 
28656
 return 0;
33596
28657
}
33597
28658
_ACEOF
33598
28659
rm -f conftest.$ac_objext
33622
28683
/* end confdefs.h.  */
33623
28684
$ac_includes_default
33624
28685
   typedef long ac__type_sizeof_;
33625
 
int
33626
 
main ()
 
28686
int main (void)
33627
28687
{
33628
28688
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33629
28689
test_array [0] = 0
33630
28690
 
33631
 
  ;
33632
 
  return 0;
 
28691
 ;
 
28692
 return 0;
33633
28693
}
33634
28694
_ACEOF
33635
28695
rm -f conftest.$ac_objext
33676
28736
/* end confdefs.h.  */
33677
28737
$ac_includes_default
33678
28738
   typedef long ac__type_sizeof_;
33679
 
int
33680
 
main ()
 
28739
int main (void)
33681
28740
{
33682
28741
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33683
28742
test_array [0] = 0
33684
28743
 
33685
 
  ;
33686
 
  return 0;
 
28744
 ;
 
28745
 return 0;
33687
28746
}
33688
28747
_ACEOF
33689
28748
rm -f conftest.$ac_objext
33713
28772
/* end confdefs.h.  */
33714
28773
$ac_includes_default
33715
28774
   typedef long ac__type_sizeof_;
33716
 
int
33717
 
main ()
 
28775
int main (void)
33718
28776
{
33719
28777
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33720
28778
test_array [0] = 0
33721
28779
 
33722
 
  ;
33723
 
  return 0;
 
28780
 ;
 
28781
 return 0;
33724
28782
}
33725
28783
_ACEOF
33726
28784
rm -f conftest.$ac_objext
33777
28835
/* end confdefs.h.  */
33778
28836
$ac_includes_default
33779
28837
   typedef long ac__type_sizeof_;
33780
 
int
33781
 
main ()
 
28838
int main (void)
33782
28839
{
33783
28840
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33784
28841
test_array [0] = 0
33785
28842
 
33786
 
  ;
33787
 
  return 0;
 
28843
 ;
 
28844
 return 0;
33788
28845
}
33789
28846
_ACEOF
33790
28847
rm -f conftest.$ac_objext
33839
28896
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33840
28897
#include <stdio.h>
33841
28898
#include <stdlib.h>
33842
 
int
33843
 
main ()
 
28899
int main (void)
33844
28900
{
33845
28901
 
33846
28902
  FILE *f = fopen ("conftest.val", "w");
33862
28918
    }
33863
28919
  return ferror (f) || fclose (f) != 0;
33864
28920
 
33865
 
  ;
33866
 
  return 0;
 
28921
 ;
 
28922
 return 0;
33867
28923
}
33868
28924
_ACEOF
33869
28925
rm -f conftest$ac_exeext
33917
28973
_ACEOF
33918
28974
 
33919
28975
 
 
28976
 
 
28977
  if test -z "$ac_cv_sizeof_long" ||
 
28978
    test "$ac_cv_sizeof_long" -eq "0"; then
 
28979
    { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
 
28980
echo "$as_me: error: cannot find out size of long." >&2;}
 
28981
   { (exit 1); exit 1; }; }
 
28982
  fi
 
28983
 
 
28984
cat >>confdefs.h <<_EOF
 
28985
#define CURL_SIZEOF_LONG $ac_cv_sizeof_long
 
28986
_EOF
 
28987
 
 
28988
 
33920
28989
{ echo "$as_me:$LINENO: checking for time_t" >&5
33921
28990
echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
33922
28991
if test "${ac_cv_type_time_t+set}" = set; then
33930
28999
/* end confdefs.h.  */
33931
29000
$ac_includes_default
33932
29001
typedef time_t ac__type_new_;
33933
 
int
33934
 
main ()
 
29002
int main (void)
33935
29003
{
33936
29004
if ((ac__type_new_ *) 0)
33937
29005
  return 0;
33938
29006
if (sizeof (ac__type_new_))
33939
29007
  return 0;
33940
 
  ;
33941
 
  return 0;
 
29008
 ;
 
29009
 return 0;
33942
29010
}
33943
29011
_ACEOF
33944
29012
rm -f conftest.$ac_objext
33990
29058
/* end confdefs.h.  */
33991
29059
$ac_includes_default
33992
29060
   typedef time_t ac__type_sizeof_;
33993
 
int
33994
 
main ()
 
29061
int main (void)
33995
29062
{
33996
29063
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33997
29064
test_array [0] = 0
33998
29065
 
33999
 
  ;
34000
 
  return 0;
 
29066
 ;
 
29067
 return 0;
34001
29068
}
34002
29069
_ACEOF
34003
29070
rm -f conftest.$ac_objext
34027
29094
/* end confdefs.h.  */
34028
29095
$ac_includes_default
34029
29096
   typedef time_t ac__type_sizeof_;
34030
 
int
34031
 
main ()
 
29097
int main (void)
34032
29098
{
34033
29099
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34034
29100
test_array [0] = 0
34035
29101
 
34036
 
  ;
34037
 
  return 0;
 
29102
 ;
 
29103
 return 0;
34038
29104
}
34039
29105
_ACEOF
34040
29106
rm -f conftest.$ac_objext
34081
29147
/* end confdefs.h.  */
34082
29148
$ac_includes_default
34083
29149
   typedef time_t ac__type_sizeof_;
34084
 
int
34085
 
main ()
 
29150
int main (void)
34086
29151
{
34087
29152
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34088
29153
test_array [0] = 0
34089
29154
 
34090
 
  ;
34091
 
  return 0;
 
29155
 ;
 
29156
 return 0;
34092
29157
}
34093
29158
_ACEOF
34094
29159
rm -f conftest.$ac_objext
34118
29183
/* end confdefs.h.  */
34119
29184
$ac_includes_default
34120
29185
   typedef time_t ac__type_sizeof_;
34121
 
int
34122
 
main ()
 
29186
int main (void)
34123
29187
{
34124
29188
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34125
29189
test_array [0] = 0
34126
29190
 
34127
 
  ;
34128
 
  return 0;
 
29191
 ;
 
29192
 return 0;
34129
29193
}
34130
29194
_ACEOF
34131
29195
rm -f conftest.$ac_objext
34182
29246
/* end confdefs.h.  */
34183
29247
$ac_includes_default
34184
29248
   typedef time_t ac__type_sizeof_;
34185
 
int
34186
 
main ()
 
29249
int main (void)
34187
29250
{
34188
29251
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34189
29252
test_array [0] = 0
34190
29253
 
34191
 
  ;
34192
 
  return 0;
 
29254
 ;
 
29255
 return 0;
34193
29256
}
34194
29257
_ACEOF
34195
29258
rm -f conftest.$ac_objext
34244
29307
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34245
29308
#include <stdio.h>
34246
29309
#include <stdlib.h>
34247
 
int
34248
 
main ()
 
29310
int main (void)
34249
29311
{
34250
29312
 
34251
29313
  FILE *f = fopen ("conftest.val", "w");
34267
29329
    }
34268
29330
  return ferror (f) || fclose (f) != 0;
34269
29331
 
34270
 
  ;
34271
 
  return 0;
 
29332
 ;
 
29333
 return 0;
34272
29334
}
34273
29335
_ACEOF
34274
29336
rm -f conftest$ac_exeext
34335
29397
/* end confdefs.h.  */
34336
29398
$ac_includes_default
34337
29399
typedef off_t ac__type_new_;
34338
 
int
34339
 
main ()
 
29400
int main (void)
34340
29401
{
34341
29402
if ((ac__type_new_ *) 0)
34342
29403
  return 0;
34343
29404
if (sizeof (ac__type_new_))
34344
29405
  return 0;
34345
 
  ;
34346
 
  return 0;
 
29406
 ;
 
29407
 return 0;
34347
29408
}
34348
29409
_ACEOF
34349
29410
rm -f conftest.$ac_objext
34395
29456
/* end confdefs.h.  */
34396
29457
$ac_includes_default
34397
29458
   typedef off_t ac__type_sizeof_;
34398
 
int
34399
 
main ()
 
29459
int main (void)
34400
29460
{
34401
29461
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34402
29462
test_array [0] = 0
34403
29463
 
34404
 
  ;
34405
 
  return 0;
 
29464
 ;
 
29465
 return 0;
34406
29466
}
34407
29467
_ACEOF
34408
29468
rm -f conftest.$ac_objext
34432
29492
/* end confdefs.h.  */
34433
29493
$ac_includes_default
34434
29494
   typedef off_t ac__type_sizeof_;
34435
 
int
34436
 
main ()
 
29495
int main (void)
34437
29496
{
34438
29497
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34439
29498
test_array [0] = 0
34440
29499
 
34441
 
  ;
34442
 
  return 0;
 
29500
 ;
 
29501
 return 0;
34443
29502
}
34444
29503
_ACEOF
34445
29504
rm -f conftest.$ac_objext
34486
29545
/* end confdefs.h.  */
34487
29546
$ac_includes_default
34488
29547
   typedef off_t ac__type_sizeof_;
34489
 
int
34490
 
main ()
 
29548
int main (void)
34491
29549
{
34492
29550
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34493
29551
test_array [0] = 0
34494
29552
 
34495
 
  ;
34496
 
  return 0;
 
29553
 ;
 
29554
 return 0;
34497
29555
}
34498
29556
_ACEOF
34499
29557
rm -f conftest.$ac_objext
34523
29581
/* end confdefs.h.  */
34524
29582
$ac_includes_default
34525
29583
   typedef off_t ac__type_sizeof_;
34526
 
int
34527
 
main ()
 
29584
int main (void)
34528
29585
{
34529
29586
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34530
29587
test_array [0] = 0
34531
29588
 
34532
 
  ;
34533
 
  return 0;
 
29589
 ;
 
29590
 return 0;
34534
29591
}
34535
29592
_ACEOF
34536
29593
rm -f conftest.$ac_objext
34587
29644
/* end confdefs.h.  */
34588
29645
$ac_includes_default
34589
29646
   typedef off_t ac__type_sizeof_;
34590
 
int
34591
 
main ()
 
29647
int main (void)
34592
29648
{
34593
29649
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34594
29650
test_array [0] = 0
34595
29651
 
34596
 
  ;
34597
 
  return 0;
 
29652
 ;
 
29653
 return 0;
34598
29654
}
34599
29655
_ACEOF
34600
29656
rm -f conftest.$ac_objext
34649
29705
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34650
29706
#include <stdio.h>
34651
29707
#include <stdlib.h>
34652
 
int
34653
 
main ()
 
29708
int main (void)
34654
29709
{
34655
29710
 
34656
29711
  FILE *f = fopen ("conftest.val", "w");
34672
29727
    }
34673
29728
  return ferror (f) || fclose (f) != 0;
34674
29729
 
34675
 
  ;
34676
 
  return 0;
 
29730
 ;
 
29731
 return 0;
34677
29732
}
34678
29733
_ACEOF
34679
29734
rm -f conftest$ac_exeext
34728
29783
 
34729
29784
 
34730
29785
 
 
29786
soname_bump=no
 
29787
if test x"$ac_cv_native_windows" != "xyes" &&
 
29788
   test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
 
29789
  { echo "$as_me:$LINENO: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
 
29790
echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
 
29791
  { echo "$as_me:$LINENO: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
 
29792
echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
 
29793
  soname_bump=yes
 
29794
fi
 
29795
 
 
29796
 
34731
29797
{ echo "$as_me:$LINENO: checking for long long" >&5
34732
29798
echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34733
29799
if test "${ac_cv_type_long_long+set}" = set; then
34741
29807
/* end confdefs.h.  */
34742
29808
$ac_includes_default
34743
29809
typedef long long ac__type_new_;
34744
 
int
34745
 
main ()
 
29810
int main (void)
34746
29811
{
34747
29812
if ((ac__type_new_ *) 0)
34748
29813
  return 0;
34749
29814
if (sizeof (ac__type_new_))
34750
29815
  return 0;
34751
 
  ;
34752
 
  return 0;
 
29816
 ;
 
29817
 return 0;
34753
29818
}
34754
29819
_ACEOF
34755
29820
rm -f conftest.$ac_objext
34849
29914
/* end confdefs.h.  */
34850
29915
$ac_includes_default
34851
29916
typedef ssize_t ac__type_new_;
34852
 
int
34853
 
main ()
 
29917
int main (void)
34854
29918
{
34855
29919
if ((ac__type_new_ *) 0)
34856
29920
  return 0;
34857
29921
if (sizeof (ac__type_new_))
34858
29922
  return 0;
34859
 
  ;
34860
 
  return 0;
 
29923
 ;
 
29924
 return 0;
34861
29925
}
34862
29926
_ACEOF
34863
29927
rm -f conftest.$ac_objext
34922
29986
 
34923
29987
 
34924
29988
typedef bool ac__type_new_;
34925
 
int
34926
 
main ()
 
29989
int main (void)
34927
29990
{
34928
29991
if ((ac__type_new_ *) 0)
34929
29992
  return 0;
34930
29993
if (sizeof (ac__type_new_))
34931
29994
  return 0;
34932
 
  ;
34933
 
  return 0;
 
29995
 ;
 
29996
 return 0;
34934
29997
}
34935
29998
_ACEOF
34936
29999
rm -f conftest.$ac_objext
35010
30073
 
35011
30074
 
35012
30075
typedef socklen_t ac__type_new_;
35013
 
int
35014
 
main ()
 
30076
int main (void)
35015
30077
{
35016
30078
if ((ac__type_new_ *) 0)
35017
30079
  return 0;
35018
30080
if (sizeof (ac__type_new_))
35019
30081
  return 0;
35020
 
  ;
35021
 
  return 0;
 
30082
 ;
 
30083
 return 0;
35022
30084
}
35023
30085
_ACEOF
35024
30086
rm -f conftest.$ac_objext
35064
30126
      for arg1 in 'int' 'SOCKET'; do
35065
30127
        for arg2 in "struct sockaddr" void; do
35066
30128
          for t in int size_t unsigned long "unsigned long"; do
35067
 
            cat >conftest.$ac_ext <<_ACEOF
 
30129
            if test "$curl_cv_socklen_t_equiv" = "unknown"; then
 
30130
              cat >conftest.$ac_ext <<_ACEOF
35068
30131
 
35069
 
              /* confdefs.h.  */
 
30132
                /* confdefs.h.  */
35070
30133
_ACEOF
35071
30134
cat confdefs.h >>conftest.$ac_ext
35072
30135
cat >>conftest.$ac_ext <<_ACEOF
35095
30158
#endif
35096
30159
#define GETPEERNCALLCONV
35097
30160
#endif
35098
 
                extern int GETPEERNCALLCONV getpeername ($arg1, $arg2 *, $t *);
 
30161
                  extern int GETPEERNCALLCONV getpeername($arg1, $arg2 *, $t *);
35099
30162
 
35100
 
int
35101
 
main ()
 
30163
int main (void)
35102
30164
{
35103
30165
 
35104
 
                $t len=0;
35105
 
                getpeername(0,0,&len);
 
30166
                  $t len=0;
 
30167
                  getpeername(0,0,&len);
35106
30168
 
35107
 
  ;
35108
 
  return 0;
 
30169
 ;
 
30170
 return 0;
35109
30171
}
35110
30172
 
35111
30173
_ACEOF
35127
30189
         test ! -s conftest.err
35128
30190
       } && test -s conftest.$ac_objext; then
35129
30191
 
35130
 
               curl_cv_socklen_t_equiv="$t"
35131
 
               break 3
 
30192
                curl_cv_socklen_t_equiv="$t"
35132
30193
 
35133
30194
else
35134
30195
  echo "$as_me: failed program was:" >&5
35138
30199
fi
35139
30200
 
35140
30201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30202
            fi
35141
30203
          done
35142
30204
        done
35143
30205
      done
35165
30227
 
35166
30228
 
35167
30229
 
35168
 
   { echo "$as_me:$LINENO: checking for in_addr_t" >&5
 
30230
  { echo "$as_me:$LINENO: checking for in_addr_t" >&5
35169
30231
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
35170
30232
if test "${ac_cv_type_in_addr_t+set}" = set; then
35171
30233
  echo $ECHO_N "(cached) $ECHO_C" >&6
35207
30269
 
35208
30270
 
35209
30271
typedef in_addr_t ac__type_new_;
35210
 
int
35211
 
main ()
 
30272
int main (void)
35212
30273
{
35213
30274
if ((ac__type_new_ *) 0)
35214
30275
  return 0;
35215
30276
if (sizeof (ac__type_new_))
35216
30277
  return 0;
35217
 
  ;
35218
 
  return 0;
 
30278
 ;
 
30279
 return 0;
35219
30280
}
35220
30281
_ACEOF
35221
30282
rm -f conftest.$ac_objext
35251
30312
  :
35252
30313
else
35253
30314
 
35254
 
      { echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
 
30315
        { echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
35255
30316
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6; }
35256
 
      if test "${curl_cv_in_addr_t_equiv+set}" = set; then
 
30317
if test "${curl_cv_in_addr_t_equiv+set}" = set; then
35257
30318
  echo $ECHO_N "(cached) $ECHO_C" >&6
35258
30319
else
35259
30320
 
35260
 
         curl_cv_in_addr_t_equiv=
35261
 
         for t in "unsigned long" int size_t unsigned long; do
35262
 
            cat >conftest.$ac_ext <<_ACEOF
 
30321
      curl_cv_in_addr_t_equiv="unknown"
 
30322
      for t in "unsigned long" int size_t unsigned long; do
 
30323
        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
 
30324
          cat >conftest.$ac_ext <<_ACEOF
35263
30325
 
35264
 
              /* confdefs.h.  */
 
30326
            /* confdefs.h.  */
35265
30327
_ACEOF
35266
30328
cat confdefs.h >>conftest.$ac_ext
35267
30329
cat >>conftest.$ac_ext <<_ACEOF
35295
30357
#endif
35296
30358
#endif
35297
30359
 
35298
 
int
35299
 
main ()
 
30360
int main (void)
35300
30361
{
35301
30362
 
35302
 
                $t data = inet_addr ("1.2.3.4");
 
30363
              $t data = inet_addr ("1.2.3.4");
35303
30364
 
35304
 
  ;
35305
 
  return 0;
 
30365
 ;
 
30366
 return 0;
35306
30367
}
35307
30368
 
35308
30369
_ACEOF
35325
30386
       } && test -s conftest$ac_exeext &&
35326
30387
       $as_test_x conftest$ac_exeext; then
35327
30388
 
35328
 
              curl_cv_in_addr_t_equiv="$t"
35329
 
              break
 
30389
            curl_cv_in_addr_t_equiv="$t"
35330
30390
 
35331
30391
else
35332
30392
  echo "$as_me: failed program was:" >&5
35337
30397
 
35338
30398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35339
30399
      conftest$ac_exeext conftest.$ac_ext
35340
 
         done
 
30400
        fi
 
30401
      done
35341
30402
 
35342
 
         if test "x$curl_cv_in_addr_t_equiv" = x; then
35343
 
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
 
30403
fi
 
30404
{ echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
 
30405
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6; }
 
30406
    case "$curl_cv_in_addr_t_equiv" in
 
30407
      unknown)
 
30408
        { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
35344
30409
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
35345
30410
   { (exit 1); exit 1; }; }
35346
 
         fi
35347
 
 
35348
 
fi
35349
 
 
35350
 
      { echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
35351
 
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6; }
 
30411
        ;;
 
30412
      *)
35352
30413
 
35353
30414
cat >>confdefs.h <<_ACEOF
35354
30415
#define in_addr_t $curl_cv_in_addr_t_equiv
35355
30416
_ACEOF
35356
30417
 
 
30418
        ;;
 
30419
    esac
 
30420
 
35357
30421
fi
35358
30422
 
35359
30423
 
35360
30424
 
 
30425
 
35361
30426
   { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
35362
30427
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
35363
30428
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
35396
30461
 
35397
30462
 
35398
30463
typedef struct sockaddr_storage ac__type_new_;
35399
 
int
35400
 
main ()
 
30464
int main (void)
35401
30465
{
35402
30466
if ((ac__type_new_ *) 0)
35403
30467
  return 0;
35404
30468
if (sizeof (ac__type_new_))
35405
30469
  return 0;
35406
 
  ;
35407
 
  return 0;
 
30470
 ;
 
30471
 return 0;
35408
30472
}
35409
30473
_ACEOF
35410
30474
rm -f conftest.$ac_objext
35610
30674
 
35611
30675
 
35612
30676
typedef sig_atomic_t ac__type_new_;
35613
 
int
35614
 
main ()
 
30677
int main (void)
35615
30678
{
35616
30679
if ((ac__type_new_ *) 0)
35617
30680
  return 0;
35618
30681
if (sizeof (ac__type_new_))
35619
30682
  return 0;
35620
 
  ;
35621
 
  return 0;
 
30683
 ;
 
30684
 return 0;
35622
30685
}
35623
30686
_ACEOF
35624
30687
rm -f conftest.$ac_objext
35677
30740
#include <signal.h>
35678
30741
#endif
35679
30742
 
35680
 
int
35681
 
main ()
 
30743
int main (void)
35682
30744
{
35683
30745
 
35684
30746
          static volatile sig_atomic_t dummy = 0;
35685
30747
 
35686
 
  ;
35687
 
  return 0;
 
30748
 ;
 
30749
 return 0;
35688
30750
}
35689
30751
 
35690
30752
_ACEOF
35750
30812
#include <sys/types.h>
35751
30813
#include <signal.h>
35752
30814
 
35753
 
int
35754
 
main ()
 
30815
int main (void)
35755
30816
{
35756
30817
return *(signal (0, 0)) (0) == 1;
35757
 
  ;
35758
 
  return 0;
 
30818
 ;
 
30819
 return 0;
35759
30820
}
35760
30821
_ACEOF
35761
30822
rm -f conftest.$ac_objext
35988
31049
#endif
35989
31050
#endif
35990
31051
 
35991
 
int
35992
 
main ()
 
31052
int main (void)
35993
31053
{
35994
31054
 
35995
31055
      select(0, 0, 0, 0, 0);
35996
31056
 
35997
 
  ;
35998
 
  return 0;
 
31057
 ;
 
31058
 return 0;
35999
31059
}
36000
31060
 
36001
31061
_ACEOF
36048
31108
        for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
36049
31109
          for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
36050
31110
            for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
36051
 
              cat >conftest.$ac_ext <<_ACEOF
 
31111
              if test "$curl_cv_func_select_args" = "unknown"; then
 
31112
                cat >conftest.$ac_ext <<_ACEOF
36052
31113
 
36053
 
                /* confdefs.h.  */
 
31114
                  /* confdefs.h.  */
36054
31115
_ACEOF
36055
31116
cat confdefs.h >>conftest.$ac_ext
36056
31117
cat >>conftest.$ac_ext <<_ACEOF
36094
31155
#define SELECTCALLCONV
36095
31156
#endif
36096
31157
#ifndef HAVE_STRUCT_TIMEVAL
36097
 
                  struct timeval {
36098
 
                    long tv_sec;
36099
 
                    long tv_usec;
36100
 
                  };
 
31158
                    struct timeval {
 
31159
                      long tv_sec;
 
31160
                      long tv_usec;
 
31161
                    };
36101
31162
#endif
36102
 
                  extern $sel_retv SELECTCALLCONV select($sel_arg1,
36103
 
                                                         $sel_arg234,
36104
 
                                                         $sel_arg234,
36105
 
                                                         $sel_arg234,
36106
 
                                                         $sel_arg5);
 
31163
                    extern $sel_retv SELECTCALLCONV select($sel_arg1,
 
31164
                                                           $sel_arg234,
 
31165
                                                           $sel_arg234,
 
31166
                                                           $sel_arg234,
 
31167
                                                           $sel_arg5);
36107
31168
 
36108
 
int
36109
 
main ()
 
31169
int main (void)
36110
31170
{
36111
31171
 
36112
 
                  $sel_arg1   nfds=0;
36113
 
                  $sel_arg234 rfds=0;
36114
 
                  $sel_arg234 wfds=0;
36115
 
                  $sel_arg234 efds=0;
36116
 
                  $sel_retv res = select(nfds, rfds, wfds, efds, 0);
 
31172
                    $sel_arg1   nfds=0;
 
31173
                    $sel_arg234 rfds=0;
 
31174
                    $sel_arg234 wfds=0;
 
31175
                    $sel_arg234 efds=0;
 
31176
                    $sel_retv res = select(nfds, rfds, wfds, efds, 0);
36117
31177
 
36118
 
  ;
36119
 
  return 0;
 
31178
 ;
 
31179
 return 0;
36120
31180
}
36121
31181
 
36122
31182
_ACEOF
36138
31198
         test ! -s conftest.err
36139
31199
       } && test -s conftest.$ac_objext; then
36140
31200
 
36141
 
                 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
36142
 
                 break 4
 
31201
                  curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
36143
31202
 
36144
31203
else
36145
31204
  echo "$as_me: failed program was:" >&5
36149
31208
fi
36150
31209
 
36151
31210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31211
              fi
36152
31212
            done
36153
31213
          done
36154
31214
        done
36156
31216
 
36157
31217
fi
36158
31218
{ echo "$as_me:$LINENO: result: $curl_cv_func_select_args" >&5
36159
 
echo "${ECHO_T}$curl_cv_func_select_args" >&6; } # AC_CACHE_CHECK
 
31219
echo "${ECHO_T}$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
36160
31220
    if test "$curl_cv_func_select_args" = "unknown"; then
36161
31221
      { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for select args" >&5
36162
31222
echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
36416
31476
#endif
36417
31477
#endif
36418
31478
 
36419
 
int
36420
 
main ()
 
31479
int main (void)
36421
31480
{
36422
31481
 
36423
31482
      recv(0, 0, 0, 0);
36424
31483
 
36425
 
  ;
36426
 
  return 0;
 
31484
 ;
 
31485
 return 0;
36427
31486
}
36428
31487
 
36429
31488
_ACEOF
36477
31536
          for recv_arg2 in 'char *' 'void *'; do
36478
31537
            for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
36479
31538
              for recv_arg4 in 'int' 'unsigned int'; do
36480
 
                cat >conftest.$ac_ext <<_ACEOF
 
31539
                if test "$curl_cv_func_recv_args" = "unknown"; then
 
31540
                  cat >conftest.$ac_ext <<_ACEOF
36481
31541
 
36482
 
                  /* confdefs.h.  */
 
31542
                    /* confdefs.h.  */
36483
31543
_ACEOF
36484
31544
cat confdefs.h >>conftest.$ac_ext
36485
31545
cat >>conftest.$ac_ext <<_ACEOF
36508
31568
#endif
36509
31569
#define RECVCALLCONV
36510
31570
#endif
36511
 
                    extern $recv_retv RECVCALLCONV recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
 
31571
                      extern $recv_retv RECVCALLCONV
 
31572
                      recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
36512
31573
 
36513
 
int
36514
 
main ()
 
31574
int main (void)
36515
31575
{
36516
31576
 
36517
 
                    $recv_arg1 s=0;
36518
 
                    $recv_arg2 buf=0;
36519
 
                    $recv_arg3 len=0;
36520
 
                    $recv_arg4 flags=0;
36521
 
                    $recv_retv res = recv(s, buf, len, flags);
 
31577
                      $recv_arg1 s=0;
 
31578
                      $recv_arg2 buf=0;
 
31579
                      $recv_arg3 len=0;
 
31580
                      $recv_arg4 flags=0;
 
31581
                      $recv_retv res = recv(s, buf, len, flags);
36522
31582
 
36523
 
  ;
36524
 
  return 0;
 
31583
 ;
 
31584
 return 0;
36525
31585
}
36526
31586
 
36527
31587
_ACEOF
36543
31603
         test ! -s conftest.err
36544
31604
       } && test -s conftest.$ac_objext; then
36545
31605
 
36546
 
                   curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
36547
 
                   break 5
 
31606
                    curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
36548
31607
 
36549
31608
else
36550
31609
  echo "$as_me: failed program was:" >&5
36554
31613
fi
36555
31614
 
36556
31615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31616
                fi
36557
31617
              done
36558
31618
            done
36559
31619
          done
36562
31622
 
36563
31623
fi
36564
31624
{ echo "$as_me:$LINENO: result: $curl_cv_func_recv_args" >&5
36565
 
echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC_CACHE_CHECK
 
31625
echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
36566
31626
    if test "$curl_cv_func_recv_args" = "unknown"; then
36567
31627
      { { echo "$as_me:$LINENO: error: Cannot find proper types to use for recv args" >&5
36568
31628
echo "$as_me: error: Cannot find proper types to use for recv args" >&2;}
36615
31675
 
36616
31676
 
36617
31677
 
 
31678
for ac_header in sys/types.h sys/socket.h
 
31679
do
 
31680
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
31681
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
31682
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31683
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
31684
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
31685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31686
fi
 
31687
ac_res=`eval echo '${'$as_ac_Header'}'`
 
31688
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
31689
echo "${ECHO_T}$ac_res" >&6; }
 
31690
else
 
31691
  # Is the header compilable?
 
31692
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
31693
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
31694
cat >conftest.$ac_ext <<_ACEOF
 
31695
/* confdefs.h.  */
 
31696
_ACEOF
 
31697
cat confdefs.h >>conftest.$ac_ext
 
31698
cat >>conftest.$ac_ext <<_ACEOF
 
31699
/* end confdefs.h.  */
 
31700
$ac_includes_default
 
31701
#include <$ac_header>
 
31702
_ACEOF
 
31703
rm -f conftest.$ac_objext
 
31704
if { (ac_try="$ac_compile"
 
31705
case "(($ac_try" in
 
31706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31707
  *) ac_try_echo=$ac_try;;
 
31708
esac
 
31709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31710
  (eval "$ac_compile") 2>conftest.er1
 
31711
  ac_status=$?
 
31712
  grep -v '^ *+' conftest.er1 >conftest.err
 
31713
  rm -f conftest.er1
 
31714
  cat conftest.err >&5
 
31715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31716
  (exit $ac_status); } && {
 
31717
         test -z "$ac_c_werror_flag" ||
 
31718
         test ! -s conftest.err
 
31719
       } && test -s conftest.$ac_objext; then
 
31720
  ac_header_compiler=yes
 
31721
else
 
31722
  echo "$as_me: failed program was:" >&5
 
31723
sed 's/^/| /' conftest.$ac_ext >&5
 
31724
 
 
31725
        ac_header_compiler=no
 
31726
fi
 
31727
 
 
31728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31729
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
31730
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
31731
 
 
31732
# Is the header present?
 
31733
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
31734
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
31735
cat >conftest.$ac_ext <<_ACEOF
 
31736
/* confdefs.h.  */
 
31737
_ACEOF
 
31738
cat confdefs.h >>conftest.$ac_ext
 
31739
cat >>conftest.$ac_ext <<_ACEOF
 
31740
/* end confdefs.h.  */
 
31741
#include <$ac_header>
 
31742
_ACEOF
 
31743
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
31744
case "(($ac_try" in
 
31745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31746
  *) ac_try_echo=$ac_try;;
 
31747
esac
 
31748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31749
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
31750
  ac_status=$?
 
31751
  grep -v '^ *+' conftest.er1 >conftest.err
 
31752
  rm -f conftest.er1
 
31753
  cat conftest.err >&5
 
31754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31755
  (exit $ac_status); } >/dev/null && {
 
31756
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
31757
         test ! -s conftest.err
 
31758
       }; then
 
31759
  ac_header_preproc=yes
 
31760
else
 
31761
  echo "$as_me: failed program was:" >&5
 
31762
sed 's/^/| /' conftest.$ac_ext >&5
 
31763
 
 
31764
  ac_header_preproc=no
 
31765
fi
 
31766
 
 
31767
rm -f conftest.err conftest.$ac_ext
 
31768
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
31769
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
31770
 
 
31771
# So?  What about this header?
 
31772
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
31773
  yes:no: )
 
31774
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
31775
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
31776
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
31777
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
31778
    ac_header_preproc=yes
 
31779
    ;;
 
31780
  no:yes:* )
 
31781
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
31782
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
31783
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
31784
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
31785
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
31786
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
31787
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
31788
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
31789
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
31790
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
31791
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
31792
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
31793
    ( cat <<\_ASBOX
 
31794
## ------------------------------------------------------------------------ ##
 
31795
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
31796
## ------------------------------------------------------------------------ ##
 
31797
_ASBOX
 
31798
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
31799
    ;;
 
31800
esac
 
31801
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
31802
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
31803
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
31804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31805
else
 
31806
  eval "$as_ac_Header=\$ac_header_preproc"
 
31807
fi
 
31808
ac_res=`eval echo '${'$as_ac_Header'}'`
 
31809
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
31810
echo "${ECHO_T}$ac_res" >&6; }
 
31811
 
 
31812
fi
 
31813
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
31814
  cat >>confdefs.h <<_ACEOF
 
31815
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
31816
_ACEOF
 
31817
 
 
31818
fi
 
31819
 
 
31820
done
 
31821
 
 
31822
  #
 
31823
  { echo "$as_me:$LINENO: checking for recvfrom" >&5
 
31824
echo $ECHO_N "checking for recvfrom... $ECHO_C" >&6; }
 
31825
  cat >conftest.$ac_ext <<_ACEOF
 
31826
 
 
31827
    /* confdefs.h.  */
 
31828
_ACEOF
 
31829
cat confdefs.h >>conftest.$ac_ext
 
31830
cat >>conftest.$ac_ext <<_ACEOF
 
31831
/* end confdefs.h.  */
 
31832
 
 
31833
#undef inline
 
31834
#ifdef HAVE_WINDOWS_H
 
31835
#ifndef WIN32_LEAN_AND_MEAN
 
31836
#define WIN32_LEAN_AND_MEAN
 
31837
#endif
 
31838
#include <windows.h>
 
31839
#ifdef HAVE_WINSOCK2_H
 
31840
#include <winsock2.h>
 
31841
#else
 
31842
#ifdef HAVE_WINSOCK_H
 
31843
#include <winsock.h>
 
31844
#endif
 
31845
#endif
 
31846
#else
 
31847
#ifdef HAVE_SYS_TYPES_H
 
31848
#include <sys/types.h>
 
31849
#endif
 
31850
#ifdef HAVE_SYS_SOCKET_H
 
31851
#include <sys/socket.h>
 
31852
#endif
 
31853
#endif
 
31854
 
 
31855
int main (void)
 
31856
{
 
31857
 
 
31858
      recvfrom(0, 0, 0, 0, 0, 0);
 
31859
 
 
31860
 ;
 
31861
 return 0;
 
31862
}
 
31863
 
 
31864
_ACEOF
 
31865
rm -f conftest.$ac_objext conftest$ac_exeext
 
31866
if { (ac_try="$ac_link"
 
31867
case "(($ac_try" in
 
31868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31869
  *) ac_try_echo=$ac_try;;
 
31870
esac
 
31871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31872
  (eval "$ac_link") 2>conftest.er1
 
31873
  ac_status=$?
 
31874
  grep -v '^ *+' conftest.er1 >conftest.err
 
31875
  rm -f conftest.er1
 
31876
  cat conftest.err >&5
 
31877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31878
  (exit $ac_status); } && {
 
31879
         test -z "$ac_c_werror_flag" ||
 
31880
         test ! -s conftest.err
 
31881
       } && test -s conftest$ac_exeext &&
 
31882
       $as_test_x conftest$ac_exeext; then
 
31883
 
 
31884
    { echo "$as_me:$LINENO: result: yes" >&5
 
31885
echo "${ECHO_T}yes" >&6; }
 
31886
    curl_cv_recvfrom="yes"
 
31887
 
 
31888
else
 
31889
  echo "$as_me: failed program was:" >&5
 
31890
sed 's/^/| /' conftest.$ac_ext >&5
 
31891
 
 
31892
 
 
31893
    { echo "$as_me:$LINENO: result: no" >&5
 
31894
echo "${ECHO_T}no" >&6; }
 
31895
    curl_cv_recvfrom="no"
 
31896
 
 
31897
fi
 
31898
 
 
31899
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
31900
      conftest$ac_exeext conftest.$ac_ext
 
31901
  #
 
31902
  if test "$curl_cv_recvfrom" = "yes"; then
 
31903
    { echo "$as_me:$LINENO: checking types of args and return type for recvfrom" >&5
 
31904
echo $ECHO_N "checking types of args and return type for recvfrom... $ECHO_C" >&6; }
 
31905
if test "${curl_cv_func_recvfrom_args+set}" = set; then
 
31906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31907
else
 
31908
 
 
31909
      curl_cv_func_recvfrom_args="unknown"
 
31910
      for recvfrom_retv in 'int' 'ssize_t'; do
 
31911
        for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
 
31912
          for recvfrom_arg2 in 'char *' 'void *'; do
 
31913
            for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
 
31914
              for recvfrom_arg4 in 'int' 'unsigned int'; do
 
31915
                for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
 
31916
                  for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
 
31917
                    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
 
31918
                      cat >conftest.$ac_ext <<_ACEOF
 
31919
 
 
31920
                        /* confdefs.h.  */
 
31921
_ACEOF
 
31922
cat confdefs.h >>conftest.$ac_ext
 
31923
cat >>conftest.$ac_ext <<_ACEOF
 
31924
/* end confdefs.h.  */
 
31925
 
 
31926
#undef inline
 
31927
#ifdef HAVE_WINDOWS_H
 
31928
#ifndef WIN32_LEAN_AND_MEAN
 
31929
#define WIN32_LEAN_AND_MEAN
 
31930
#endif
 
31931
#include <windows.h>
 
31932
#ifdef HAVE_WINSOCK2_H
 
31933
#include <winsock2.h>
 
31934
#else
 
31935
#ifdef HAVE_WINSOCK_H
 
31936
#include <winsock.h>
 
31937
#endif
 
31938
#endif
 
31939
#define RECVFROMCALLCONV PASCAL
 
31940
#else
 
31941
#ifdef HAVE_SYS_TYPES_H
 
31942
#include <sys/types.h>
 
31943
#endif
 
31944
#ifdef HAVE_SYS_SOCKET_H
 
31945
#include <sys/socket.h>
 
31946
#endif
 
31947
#define RECVFROMCALLCONV
 
31948
#endif
 
31949
                          extern $recvfrom_retv RECVFROMCALLCONV
 
31950
                          recvfrom($recvfrom_arg1, $recvfrom_arg2,
 
31951
                                   $recvfrom_arg3, $recvfrom_arg4,
 
31952
                                   $recvfrom_arg5, $recvfrom_arg6);
 
31953
 
 
31954
int main (void)
 
31955
{
 
31956
 
 
31957
                          $recvfrom_arg1 s=0;
 
31958
                          $recvfrom_arg2 buf=0;
 
31959
                          $recvfrom_arg3 len=0;
 
31960
                          $recvfrom_arg4 flags=0;
 
31961
                          $recvfrom_arg5 addr=0;
 
31962
                          $recvfrom_arg6 addrlen=0;
 
31963
                          $recvfrom_retv res=0;
 
31964
                          res = recvfrom(s, buf, len, flags, addr, addrlen);
 
31965
 
 
31966
 ;
 
31967
 return 0;
 
31968
}
 
31969
 
 
31970
_ACEOF
 
31971
rm -f conftest.$ac_objext
 
31972
if { (ac_try="$ac_compile"
 
31973
case "(($ac_try" in
 
31974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31975
  *) ac_try_echo=$ac_try;;
 
31976
esac
 
31977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31978
  (eval "$ac_compile") 2>conftest.er1
 
31979
  ac_status=$?
 
31980
  grep -v '^ *+' conftest.er1 >conftest.err
 
31981
  rm -f conftest.er1
 
31982
  cat conftest.err >&5
 
31983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31984
  (exit $ac_status); } && {
 
31985
         test -z "$ac_c_werror_flag" ||
 
31986
         test ! -s conftest.err
 
31987
       } && test -s conftest.$ac_objext; then
 
31988
 
 
31989
                        curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
 
31990
 
 
31991
else
 
31992
  echo "$as_me: failed program was:" >&5
 
31993
sed 's/^/| /' conftest.$ac_ext >&5
 
31994
 
 
31995
 
 
31996
fi
 
31997
 
 
31998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
31999
                    fi
 
32000
                  done
 
32001
                done
 
32002
              done
 
32003
            done
 
32004
          done
 
32005
        done
 
32006
      done
 
32007
 
 
32008
fi
 
32009
{ echo "$as_me:$LINENO: result: $curl_cv_func_recvfrom_args" >&5
 
32010
echo "${ECHO_T}$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
 
32011
    # Nearly last minute change for this release starts here
 
32012
 
 
32013
cat >>confdefs.h <<_ACEOF
 
32014
#define HAVE_RECVFROM 1
 
32015
_ACEOF
 
32016
 
 
32017
    ac_cv_func_recvfrom="yes"
 
32018
    # Nearly last minute change for this release ends here
 
32019
    if test "$curl_cv_func_recvfrom_args" = "unknown"; then
 
32020
      { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for recvfrom args" >&5
 
32021
echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
 
32022
    else
 
32023
      recvfrom_prev_IFS=$IFS; IFS=','
 
32024
      set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
 
32025
      IFS=$recvfrom_prev_IFS
 
32026
      shift
 
32027
      #
 
32028
      recvfrom_ptrt_arg2=$2
 
32029
      recvfrom_ptrt_arg5=$5
 
32030
      recvfrom_ptrt_arg6=$6
 
32031
      #
 
32032
 
 
32033
cat >>confdefs.h <<_ACEOF
 
32034
#define RECVFROM_TYPE_ARG1 $1
 
32035
_ACEOF
 
32036
 
 
32037
 
 
32038
cat >>confdefs.h <<_ACEOF
 
32039
#define RECVFROM_TYPE_ARG3 $3
 
32040
_ACEOF
 
32041
 
 
32042
 
 
32043
cat >>confdefs.h <<_ACEOF
 
32044
#define RECVFROM_TYPE_ARG4 $4
 
32045
_ACEOF
 
32046
 
 
32047
 
 
32048
cat >>confdefs.h <<_ACEOF
 
32049
#define RECVFROM_TYPE_RETV $7
 
32050
_ACEOF
 
32051
 
 
32052
      #
 
32053
      prev_sh_opts=$-
 
32054
      #
 
32055
      case $prev_sh_opts in
 
32056
        *f*)
 
32057
          ;;
 
32058
        *)
 
32059
          set -f
 
32060
          ;;
 
32061
      esac
 
32062
      #
 
32063
      recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
 
32064
      recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
 
32065
      recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
 
32066
      #
 
32067
 
 
32068
cat >>confdefs.h <<_ACEOF
 
32069
#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
 
32070
_ACEOF
 
32071
 
 
32072
 
 
32073
cat >>confdefs.h <<_ACEOF
 
32074
#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
 
32075
_ACEOF
 
32076
 
 
32077
 
 
32078
cat >>confdefs.h <<_ACEOF
 
32079
#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
 
32080
_ACEOF
 
32081
 
 
32082
      #
 
32083
      if test "$recvfrom_type_arg2" = "void"; then
 
32084
 
 
32085
cat >>confdefs.h <<_ACEOF
 
32086
#define RECVFROM_TYPE_ARG2_IS_VOID 1
 
32087
_ACEOF
 
32088
 
 
32089
      fi
 
32090
      if test "$recvfrom_type_arg5" = "void"; then
 
32091
 
 
32092
cat >>confdefs.h <<_ACEOF
 
32093
#define RECVFROM_TYPE_ARG5_IS_VOID 1
 
32094
_ACEOF
 
32095
 
 
32096
      fi
 
32097
      if test "$recvfrom_type_arg6" = "void"; then
 
32098
 
 
32099
cat >>confdefs.h <<_ACEOF
 
32100
#define RECVFROM_TYPE_ARG6_IS_VOID 1
 
32101
_ACEOF
 
32102
 
 
32103
      fi
 
32104
      #
 
32105
      case $prev_sh_opts in
 
32106
        *f*)
 
32107
          ;;
 
32108
        *)
 
32109
          set +f
 
32110
          ;;
 
32111
      esac
 
32112
      #
 
32113
 
 
32114
cat >>confdefs.h <<_ACEOF
 
32115
#define HAVE_RECVFROM 1
 
32116
_ACEOF
 
32117
 
 
32118
      ac_cv_func_recvfrom="yes"
 
32119
    fi
 
32120
  else
 
32121
    { echo "$as_me:$LINENO: WARNING: Unable to link function recvfrom" >&5
 
32122
echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
 
32123
  fi
 
32124
 
 
32125
 
 
32126
 
36618
32127
 
36619
32128
for ac_header in sys/types.h sys/socket.h
36620
32129
do
36793
32302
#endif
36794
32303
#endif
36795
32304
 
36796
 
int
36797
 
main ()
 
32305
int main (void)
36798
32306
{
36799
32307
 
36800
32308
      send(0, 0, 0, 0);
36801
32309
 
36802
 
  ;
36803
 
  return 0;
 
32310
 ;
 
32311
 return 0;
36804
32312
}
36805
32313
 
36806
32314
_ACEOF
36854
32362
          for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
36855
32363
            for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
36856
32364
              for send_arg4 in 'int' 'unsigned int'; do
36857
 
                cat >conftest.$ac_ext <<_ACEOF
 
32365
                if test "$curl_cv_func_send_args" = "unknown"; then
 
32366
                  cat >conftest.$ac_ext <<_ACEOF
36858
32367
 
36859
 
                  /* confdefs.h.  */
 
32368
                    /* confdefs.h.  */
36860
32369
_ACEOF
36861
32370
cat confdefs.h >>conftest.$ac_ext
36862
32371
cat >>conftest.$ac_ext <<_ACEOF
36885
32394
#endif
36886
32395
#define SENDCALLCONV
36887
32396
#endif
36888
 
                    extern $send_retv SENDCALLCONV send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
 
32397
                      extern $send_retv SENDCALLCONV
 
32398
                      send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
36889
32399
 
36890
 
int
36891
 
main ()
 
32400
int main (void)
36892
32401
{
36893
32402
 
36894
 
                    $send_arg1 s=0;
36895
 
                    $send_arg3 len=0;
36896
 
                    $send_arg4 flags=0;
36897
 
                    $send_retv res = send(s, 0, len, flags);
 
32403
                      $send_arg1 s=0;
 
32404
                      $send_arg3 len=0;
 
32405
                      $send_arg4 flags=0;
 
32406
                      $send_retv res = send(s, 0, len, flags);
36898
32407
 
36899
 
  ;
36900
 
  return 0;
 
32408
 ;
 
32409
 return 0;
36901
32410
}
36902
32411
 
36903
32412
_ACEOF
36919
32428
         test ! -s conftest.err
36920
32429
       } && test -s conftest.$ac_objext; then
36921
32430
 
36922
 
                   curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
36923
 
                   break 5
 
32431
                    curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
36924
32432
 
36925
32433
else
36926
32434
  echo "$as_me: failed program was:" >&5
36930
32438
fi
36931
32439
 
36932
32440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32441
                fi
36933
32442
              done
36934
32443
            done
36935
32444
          done
36938
32447
 
36939
32448
fi
36940
32449
{ echo "$as_me:$LINENO: result: $curl_cv_func_send_args" >&5
36941
 
echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC_CACHE_CHECK
 
32450
echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
36942
32451
    if test "$curl_cv_func_send_args" = "unknown"; then
36943
32452
      { { echo "$as_me:$LINENO: error: Cannot find proper types to use for send args" >&5
36944
32453
echo "$as_me: error: Cannot find proper types to use for send args" >&2;}
37028
32537
 
37029
32538
 
37030
32539
 
37031
 
 
37032
32540
for ac_header in sys/types.h sys/socket.h
37033
32541
do
37034
32542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37209
32717
#endif
37210
32718
#endif
37211
32719
 
37212
 
int
37213
 
main ()
 
32720
int main (void)
37214
32721
{
37215
32722
 
37216
32723
        int flag=MSG_NOSIGNAL;
37217
32724
 
37218
 
  ;
37219
 
  return 0;
 
32725
 ;
 
32726
 return 0;
37220
32727
}
37221
32728
 
37222
32729
_ACEOF
37266
32773
 
37267
32774
 
37268
32775
 
 
32776
curl_includes_unistd="\
 
32777
/* includes start */
 
32778
#ifdef HAVE_SYS_TYPES_H
 
32779
#  include <sys/types.h>
 
32780
#endif
 
32781
#ifdef HAVE_UNISTD_H
 
32782
#  include <unistd.h>
 
32783
#endif
 
32784
/* includes end */"
 
32785
 
 
32786
 
 
32787
for ac_header in sys/types.h unistd.h
 
32788
do
 
32789
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
32790
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32791
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
32792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
32793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32794
else
 
32795
  cat >conftest.$ac_ext <<_ACEOF
 
32796
/* confdefs.h.  */
 
32797
_ACEOF
 
32798
cat confdefs.h >>conftest.$ac_ext
 
32799
cat >>conftest.$ac_ext <<_ACEOF
 
32800
/* end confdefs.h.  */
 
32801
$curl_includes_unistd
 
32802
 
 
32803
#include <$ac_header>
 
32804
_ACEOF
 
32805
rm -f conftest.$ac_objext
 
32806
if { (ac_try="$ac_compile"
 
32807
case "(($ac_try" in
 
32808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32809
  *) ac_try_echo=$ac_try;;
 
32810
esac
 
32811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32812
  (eval "$ac_compile") 2>conftest.er1
 
32813
  ac_status=$?
 
32814
  grep -v '^ *+' conftest.er1 >conftest.err
 
32815
  rm -f conftest.er1
 
32816
  cat conftest.err >&5
 
32817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32818
  (exit $ac_status); } && {
 
32819
         test -z "$ac_c_werror_flag" ||
 
32820
         test ! -s conftest.err
 
32821
       } && test -s conftest.$ac_objext; then
 
32822
  eval "$as_ac_Header=yes"
 
32823
else
 
32824
  echo "$as_me: failed program was:" >&5
 
32825
sed 's/^/| /' conftest.$ac_ext >&5
 
32826
 
 
32827
        eval "$as_ac_Header=no"
 
32828
fi
 
32829
 
 
32830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
32831
fi
 
32832
ac_res=`eval echo '${'$as_ac_Header'}'`
 
32833
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
32834
echo "${ECHO_T}$ac_res" >&6; }
 
32835
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
32836
  cat >>confdefs.h <<_ACEOF
 
32837
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
32838
_ACEOF
 
32839
 
 
32840
fi
 
32841
 
 
32842
done
 
32843
 
 
32844
 
 
32845
 
 
32846
    #
 
32847
  tst_links_alarm="unknown"
 
32848
  tst_proto_alarm="unknown"
 
32849
  tst_compi_alarm="unknown"
 
32850
  tst_allow_alarm="unknown"
 
32851
  #
 
32852
  { echo "$as_me:$LINENO: checking if alarm can be linked" >&5
 
32853
echo $ECHO_N "checking if alarm can be linked... $ECHO_C" >&6; }
 
32854
  cat >conftest.$ac_ext <<_ACEOF
 
32855
 
 
32856
    /* confdefs.h.  */
 
32857
_ACEOF
 
32858
cat confdefs.h >>conftest.$ac_ext
 
32859
cat >>conftest.$ac_ext <<_ACEOF
 
32860
/* end confdefs.h.  */
 
32861
 
 
32862
#define alarm innocuous_alarm
 
32863
#ifdef __STDC__
 
32864
# include <limits.h>
 
32865
#else
 
32866
# include <assert.h>
 
32867
#endif
 
32868
#undef alarm
 
32869
#ifdef __cplusplus
 
32870
extern "C"
 
32871
#endif
 
32872
char alarm ();
 
32873
#if defined __stub_alarm || defined __stub___alarm
 
32874
choke me
 
32875
#endif
 
32876
 
 
32877
int main (void)
 
32878
{
 
32879
return alarm ();
 
32880
 ;
 
32881
 return 0;
 
32882
}
 
32883
 
 
32884
_ACEOF
 
32885
rm -f conftest.$ac_objext conftest$ac_exeext
 
32886
if { (ac_try="$ac_link"
 
32887
case "(($ac_try" in
 
32888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32889
  *) ac_try_echo=$ac_try;;
 
32890
esac
 
32891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32892
  (eval "$ac_link") 2>conftest.er1
 
32893
  ac_status=$?
 
32894
  grep -v '^ *+' conftest.er1 >conftest.err
 
32895
  rm -f conftest.er1
 
32896
  cat conftest.err >&5
 
32897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32898
  (exit $ac_status); } && {
 
32899
         test -z "$ac_c_werror_flag" ||
 
32900
         test ! -s conftest.err
 
32901
       } && test -s conftest$ac_exeext &&
 
32902
       $as_test_x conftest$ac_exeext; then
 
32903
 
 
32904
    { echo "$as_me:$LINENO: result: yes" >&5
 
32905
echo "${ECHO_T}yes" >&6; }
 
32906
    tst_links_alarm="yes"
 
32907
 
 
32908
else
 
32909
  echo "$as_me: failed program was:" >&5
 
32910
sed 's/^/| /' conftest.$ac_ext >&5
 
32911
 
 
32912
 
 
32913
    { echo "$as_me:$LINENO: result: no" >&5
 
32914
echo "${ECHO_T}no" >&6; }
 
32915
    tst_links_alarm="no"
 
32916
 
 
32917
fi
 
32918
 
 
32919
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
32920
      conftest$ac_exeext conftest.$ac_ext
 
32921
  #
 
32922
  if test "$tst_links_alarm" = "yes"; then
 
32923
    { echo "$as_me:$LINENO: checking if alarm is prototyped" >&5
 
32924
echo $ECHO_N "checking if alarm is prototyped... $ECHO_C" >&6; }
 
32925
    cat >conftest.$ac_ext <<_ACEOF
 
32926
/* confdefs.h.  */
 
32927
_ACEOF
 
32928
cat confdefs.h >>conftest.$ac_ext
 
32929
cat >>conftest.$ac_ext <<_ACEOF
 
32930
/* end confdefs.h.  */
 
32931
 
 
32932
      $curl_includes_unistd
 
32933
 
 
32934
_ACEOF
 
32935
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
32936
  $EGREP "alarm" >/dev/null 2>&1; then
 
32937
 
 
32938
      { echo "$as_me:$LINENO: result: yes" >&5
 
32939
echo "${ECHO_T}yes" >&6; }
 
32940
      tst_proto_alarm="yes"
 
32941
 
 
32942
else
 
32943
 
 
32944
      { echo "$as_me:$LINENO: result: no" >&5
 
32945
echo "${ECHO_T}no" >&6; }
 
32946
      tst_proto_alarm="no"
 
32947
 
 
32948
fi
 
32949
rm -f conftest*
 
32950
 
 
32951
  fi
 
32952
  #
 
32953
  if test "$tst_proto_alarm" = "yes"; then
 
32954
    { echo "$as_me:$LINENO: checking if alarm is compilable" >&5
 
32955
echo $ECHO_N "checking if alarm is compilable... $ECHO_C" >&6; }
 
32956
    cat >conftest.$ac_ext <<_ACEOF
 
32957
 
 
32958
      /* confdefs.h.  */
 
32959
_ACEOF
 
32960
cat confdefs.h >>conftest.$ac_ext
 
32961
cat >>conftest.$ac_ext <<_ACEOF
 
32962
/* end confdefs.h.  */
 
32963
 
 
32964
        $curl_includes_unistd
 
32965
 
 
32966
int main (void)
 
32967
{
 
32968
 
 
32969
        if(0 != alarm(0))
 
32970
          return 1;
 
32971
 
 
32972
 ;
 
32973
 return 0;
 
32974
}
 
32975
 
 
32976
_ACEOF
 
32977
rm -f conftest.$ac_objext
 
32978
if { (ac_try="$ac_compile"
 
32979
case "(($ac_try" in
 
32980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
32981
  *) ac_try_echo=$ac_try;;
 
32982
esac
 
32983
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
32984
  (eval "$ac_compile") 2>conftest.er1
 
32985
  ac_status=$?
 
32986
  grep -v '^ *+' conftest.er1 >conftest.err
 
32987
  rm -f conftest.er1
 
32988
  cat conftest.err >&5
 
32989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32990
  (exit $ac_status); } && {
 
32991
         test -z "$ac_c_werror_flag" ||
 
32992
         test ! -s conftest.err
 
32993
       } && test -s conftest.$ac_objext; then
 
32994
 
 
32995
      { echo "$as_me:$LINENO: result: yes" >&5
 
32996
echo "${ECHO_T}yes" >&6; }
 
32997
      tst_compi_alarm="yes"
 
32998
 
 
32999
else
 
33000
  echo "$as_me: failed program was:" >&5
 
33001
sed 's/^/| /' conftest.$ac_ext >&5
 
33002
 
 
33003
 
 
33004
      { echo "$as_me:$LINENO: result: no" >&5
 
33005
echo "${ECHO_T}no" >&6; }
 
33006
      tst_compi_alarm="no"
 
33007
 
 
33008
fi
 
33009
 
 
33010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33011
  fi
 
33012
  #
 
33013
  if test "$tst_compi_alarm" = "yes"; then
 
33014
    { echo "$as_me:$LINENO: checking if alarm usage allowed" >&5
 
33015
echo $ECHO_N "checking if alarm usage allowed... $ECHO_C" >&6; }
 
33016
    if test "x$curl_disallow_alarm" != "xyes"; then
 
33017
      { echo "$as_me:$LINENO: result: yes" >&5
 
33018
echo "${ECHO_T}yes" >&6; }
 
33019
      tst_allow_alarm="yes"
 
33020
    else
 
33021
      { echo "$as_me:$LINENO: result: no" >&5
 
33022
echo "${ECHO_T}no" >&6; }
 
33023
      tst_allow_alarm="no"
 
33024
    fi
 
33025
  fi
 
33026
  #
 
33027
  { echo "$as_me:$LINENO: checking if alarm might be used" >&5
 
33028
echo $ECHO_N "checking if alarm might be used... $ECHO_C" >&6; }
 
33029
  if test "$tst_links_alarm" = "yes" &&
 
33030
     test "$tst_proto_alarm" = "yes" &&
 
33031
     test "$tst_compi_alarm" = "yes" &&
 
33032
     test "$tst_allow_alarm" = "yes"; then
 
33033
    { echo "$as_me:$LINENO: result: yes" >&5
 
33034
echo "${ECHO_T}yes" >&6; }
 
33035
 
 
33036
cat >>confdefs.h <<_ACEOF
 
33037
#define HAVE_ALARM 1
 
33038
_ACEOF
 
33039
 
 
33040
    ac_cv_func_alarm="yes"
 
33041
  else
 
33042
    { echo "$as_me:$LINENO: result: no" >&5
 
33043
echo "${ECHO_T}no" >&6; }
 
33044
    ac_cv_func_alarm="no"
 
33045
  fi
 
33046
 
 
33047
 
 
33048
curl_includes_fcntl="\
 
33049
/* includes start */
 
33050
#ifdef HAVE_SYS_TYPES_H
 
33051
#  include <sys/types.h>
 
33052
#endif
 
33053
#ifdef HAVE_UNISTD_H
 
33054
#  include <unistd.h>
 
33055
#endif
 
33056
#ifdef HAVE_FCNTL_H
 
33057
#  include <fcntl.h>
 
33058
#endif
 
33059
/* includes end */"
 
33060
 
 
33061
 
 
33062
 
 
33063
for ac_header in sys/types.h unistd.h fcntl.h
 
33064
do
 
33065
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33066
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33067
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
33068
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33070
else
 
33071
  cat >conftest.$ac_ext <<_ACEOF
 
33072
/* confdefs.h.  */
 
33073
_ACEOF
 
33074
cat confdefs.h >>conftest.$ac_ext
 
33075
cat >>conftest.$ac_ext <<_ACEOF
 
33076
/* end confdefs.h.  */
 
33077
$curl_includes_fcntl
 
33078
 
 
33079
#include <$ac_header>
 
33080
_ACEOF
 
33081
rm -f conftest.$ac_objext
 
33082
if { (ac_try="$ac_compile"
 
33083
case "(($ac_try" in
 
33084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33085
  *) ac_try_echo=$ac_try;;
 
33086
esac
 
33087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33088
  (eval "$ac_compile") 2>conftest.er1
 
33089
  ac_status=$?
 
33090
  grep -v '^ *+' conftest.er1 >conftest.err
 
33091
  rm -f conftest.er1
 
33092
  cat conftest.err >&5
 
33093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33094
  (exit $ac_status); } && {
 
33095
         test -z "$ac_c_werror_flag" ||
 
33096
         test ! -s conftest.err
 
33097
       } && test -s conftest.$ac_objext; then
 
33098
  eval "$as_ac_Header=yes"
 
33099
else
 
33100
  echo "$as_me: failed program was:" >&5
 
33101
sed 's/^/| /' conftest.$ac_ext >&5
 
33102
 
 
33103
        eval "$as_ac_Header=no"
 
33104
fi
 
33105
 
 
33106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33107
fi
 
33108
ac_res=`eval echo '${'$as_ac_Header'}'`
 
33109
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
33110
echo "${ECHO_T}$ac_res" >&6; }
 
33111
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
33112
  cat >>confdefs.h <<_ACEOF
 
33113
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33114
_ACEOF
 
33115
 
 
33116
fi
 
33117
 
 
33118
done
 
33119
 
 
33120
 
 
33121
 
 
33122
    #
 
33123
  tst_links_fcntl="unknown"
 
33124
  tst_proto_fcntl="unknown"
 
33125
  tst_compi_fcntl="unknown"
 
33126
  tst_allow_fcntl="unknown"
 
33127
  #
 
33128
  { echo "$as_me:$LINENO: checking if fcntl can be linked" >&5
 
33129
echo $ECHO_N "checking if fcntl can be linked... $ECHO_C" >&6; }
 
33130
  cat >conftest.$ac_ext <<_ACEOF
 
33131
 
 
33132
    /* confdefs.h.  */
 
33133
_ACEOF
 
33134
cat confdefs.h >>conftest.$ac_ext
 
33135
cat >>conftest.$ac_ext <<_ACEOF
 
33136
/* end confdefs.h.  */
 
33137
 
 
33138
#define fcntl innocuous_fcntl
 
33139
#ifdef __STDC__
 
33140
# include <limits.h>
 
33141
#else
 
33142
# include <assert.h>
 
33143
#endif
 
33144
#undef fcntl
 
33145
#ifdef __cplusplus
 
33146
extern "C"
 
33147
#endif
 
33148
char fcntl ();
 
33149
#if defined __stub_fcntl || defined __stub___fcntl
 
33150
choke me
 
33151
#endif
 
33152
 
 
33153
int main (void)
 
33154
{
 
33155
return fcntl ();
 
33156
 ;
 
33157
 return 0;
 
33158
}
 
33159
 
 
33160
_ACEOF
 
33161
rm -f conftest.$ac_objext conftest$ac_exeext
 
33162
if { (ac_try="$ac_link"
 
33163
case "(($ac_try" in
 
33164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33165
  *) ac_try_echo=$ac_try;;
 
33166
esac
 
33167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33168
  (eval "$ac_link") 2>conftest.er1
 
33169
  ac_status=$?
 
33170
  grep -v '^ *+' conftest.er1 >conftest.err
 
33171
  rm -f conftest.er1
 
33172
  cat conftest.err >&5
 
33173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33174
  (exit $ac_status); } && {
 
33175
         test -z "$ac_c_werror_flag" ||
 
33176
         test ! -s conftest.err
 
33177
       } && test -s conftest$ac_exeext &&
 
33178
       $as_test_x conftest$ac_exeext; then
 
33179
 
 
33180
    { echo "$as_me:$LINENO: result: yes" >&5
 
33181
echo "${ECHO_T}yes" >&6; }
 
33182
    tst_links_fcntl="yes"
 
33183
 
 
33184
else
 
33185
  echo "$as_me: failed program was:" >&5
 
33186
sed 's/^/| /' conftest.$ac_ext >&5
 
33187
 
 
33188
 
 
33189
    { echo "$as_me:$LINENO: result: no" >&5
 
33190
echo "${ECHO_T}no" >&6; }
 
33191
    tst_links_fcntl="no"
 
33192
 
 
33193
fi
 
33194
 
 
33195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33196
      conftest$ac_exeext conftest.$ac_ext
 
33197
  #
 
33198
  if test "$tst_links_fcntl" = "yes"; then
 
33199
    { echo "$as_me:$LINENO: checking if fcntl is prototyped" >&5
 
33200
echo $ECHO_N "checking if fcntl is prototyped... $ECHO_C" >&6; }
 
33201
    cat >conftest.$ac_ext <<_ACEOF
 
33202
/* confdefs.h.  */
 
33203
_ACEOF
 
33204
cat confdefs.h >>conftest.$ac_ext
 
33205
cat >>conftest.$ac_ext <<_ACEOF
 
33206
/* end confdefs.h.  */
 
33207
 
 
33208
      $curl_includes_fcntl
 
33209
 
 
33210
_ACEOF
 
33211
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
33212
  $EGREP "fcntl" >/dev/null 2>&1; then
 
33213
 
 
33214
      { echo "$as_me:$LINENO: result: yes" >&5
 
33215
echo "${ECHO_T}yes" >&6; }
 
33216
      tst_proto_fcntl="yes"
 
33217
 
 
33218
else
 
33219
 
 
33220
      { echo "$as_me:$LINENO: result: no" >&5
 
33221
echo "${ECHO_T}no" >&6; }
 
33222
      tst_proto_fcntl="no"
 
33223
 
 
33224
fi
 
33225
rm -f conftest*
 
33226
 
 
33227
  fi
 
33228
  #
 
33229
  if test "$tst_proto_fcntl" = "yes"; then
 
33230
    { echo "$as_me:$LINENO: checking if fcntl is compilable" >&5
 
33231
echo $ECHO_N "checking if fcntl is compilable... $ECHO_C" >&6; }
 
33232
    cat >conftest.$ac_ext <<_ACEOF
 
33233
 
 
33234
      /* confdefs.h.  */
 
33235
_ACEOF
 
33236
cat confdefs.h >>conftest.$ac_ext
 
33237
cat >>conftest.$ac_ext <<_ACEOF
 
33238
/* end confdefs.h.  */
 
33239
 
 
33240
        $curl_includes_fcntl
 
33241
 
 
33242
int main (void)
 
33243
{
 
33244
 
 
33245
        if(0 != fcntl(0, 0, 0))
 
33246
          return 1;
 
33247
 
 
33248
 ;
 
33249
 return 0;
 
33250
}
 
33251
 
 
33252
_ACEOF
 
33253
rm -f conftest.$ac_objext
 
33254
if { (ac_try="$ac_compile"
 
33255
case "(($ac_try" in
 
33256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33257
  *) ac_try_echo=$ac_try;;
 
33258
esac
 
33259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33260
  (eval "$ac_compile") 2>conftest.er1
 
33261
  ac_status=$?
 
33262
  grep -v '^ *+' conftest.er1 >conftest.err
 
33263
  rm -f conftest.er1
 
33264
  cat conftest.err >&5
 
33265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33266
  (exit $ac_status); } && {
 
33267
         test -z "$ac_c_werror_flag" ||
 
33268
         test ! -s conftest.err
 
33269
       } && test -s conftest.$ac_objext; then
 
33270
 
 
33271
      { echo "$as_me:$LINENO: result: yes" >&5
 
33272
echo "${ECHO_T}yes" >&6; }
 
33273
      tst_compi_fcntl="yes"
 
33274
 
 
33275
else
 
33276
  echo "$as_me: failed program was:" >&5
 
33277
sed 's/^/| /' conftest.$ac_ext >&5
 
33278
 
 
33279
 
 
33280
      { echo "$as_me:$LINENO: result: no" >&5
 
33281
echo "${ECHO_T}no" >&6; }
 
33282
      tst_compi_fcntl="no"
 
33283
 
 
33284
fi
 
33285
 
 
33286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33287
  fi
 
33288
  #
 
33289
  if test "$tst_compi_fcntl" = "yes"; then
 
33290
    { echo "$as_me:$LINENO: checking if fcntl usage allowed" >&5
 
33291
echo $ECHO_N "checking if fcntl usage allowed... $ECHO_C" >&6; }
 
33292
    if test "x$curl_disallow_fcntl" != "xyes"; then
 
33293
      { echo "$as_me:$LINENO: result: yes" >&5
 
33294
echo "${ECHO_T}yes" >&6; }
 
33295
      tst_allow_fcntl="yes"
 
33296
    else
 
33297
      { echo "$as_me:$LINENO: result: no" >&5
 
33298
echo "${ECHO_T}no" >&6; }
 
33299
      tst_allow_fcntl="no"
 
33300
    fi
 
33301
  fi
 
33302
  #
 
33303
  { echo "$as_me:$LINENO: checking if fcntl might be used" >&5
 
33304
echo $ECHO_N "checking if fcntl might be used... $ECHO_C" >&6; }
 
33305
  if test "$tst_links_fcntl" = "yes" &&
 
33306
     test "$tst_proto_fcntl" = "yes" &&
 
33307
     test "$tst_compi_fcntl" = "yes" &&
 
33308
     test "$tst_allow_fcntl" = "yes"; then
 
33309
    { echo "$as_me:$LINENO: result: yes" >&5
 
33310
echo "${ECHO_T}yes" >&6; }
 
33311
 
 
33312
cat >>confdefs.h <<_ACEOF
 
33313
#define HAVE_FCNTL 1
 
33314
_ACEOF
 
33315
 
 
33316
    ac_cv_func_fcntl="yes"
 
33317
 
 
33318
  #
 
33319
  tst_compi_fcntl_o_nonblock="unknown"
 
33320
  tst_allow_fcntl_o_nonblock="unknown"
 
33321
  #
 
33322
  case $host_os in
 
33323
    sunos4* | aix3* | beos*)
 
33324
            curl_disallow_fcntl_o_nonblock="yes"
 
33325
      ;;
 
33326
  esac
 
33327
  #
 
33328
  if test "$ac_cv_func_fcntl" = "yes"; then
 
33329
    { echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK is compilable" >&5
 
33330
echo $ECHO_N "checking if fcntl O_NONBLOCK is compilable... $ECHO_C" >&6; }
 
33331
    cat >conftest.$ac_ext <<_ACEOF
 
33332
 
 
33333
      /* confdefs.h.  */
 
33334
_ACEOF
 
33335
cat confdefs.h >>conftest.$ac_ext
 
33336
cat >>conftest.$ac_ext <<_ACEOF
 
33337
/* end confdefs.h.  */
 
33338
 
 
33339
        $curl_includes_fcntl
 
33340
 
 
33341
int main (void)
 
33342
{
 
33343
 
 
33344
        int flags = 0;
 
33345
        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
 
33346
          return 1;
 
33347
 
 
33348
 ;
 
33349
 return 0;
 
33350
}
 
33351
 
 
33352
_ACEOF
 
33353
rm -f conftest.$ac_objext
 
33354
if { (ac_try="$ac_compile"
 
33355
case "(($ac_try" in
 
33356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33357
  *) ac_try_echo=$ac_try;;
 
33358
esac
 
33359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33360
  (eval "$ac_compile") 2>conftest.er1
 
33361
  ac_status=$?
 
33362
  grep -v '^ *+' conftest.er1 >conftest.err
 
33363
  rm -f conftest.er1
 
33364
  cat conftest.err >&5
 
33365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33366
  (exit $ac_status); } && {
 
33367
         test -z "$ac_c_werror_flag" ||
 
33368
         test ! -s conftest.err
 
33369
       } && test -s conftest.$ac_objext; then
 
33370
 
 
33371
      { echo "$as_me:$LINENO: result: yes" >&5
 
33372
echo "${ECHO_T}yes" >&6; }
 
33373
      tst_compi_fcntl_o_nonblock="yes"
 
33374
 
 
33375
else
 
33376
  echo "$as_me: failed program was:" >&5
 
33377
sed 's/^/| /' conftest.$ac_ext >&5
 
33378
 
 
33379
 
 
33380
      { echo "$as_me:$LINENO: result: no" >&5
 
33381
echo "${ECHO_T}no" >&6; }
 
33382
      tst_compi_fcntl_o_nonblock="no"
 
33383
 
 
33384
fi
 
33385
 
 
33386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33387
  fi
 
33388
  #
 
33389
  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
 
33390
    { echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK usage allowed" >&5
 
33391
echo $ECHO_N "checking if fcntl O_NONBLOCK usage allowed... $ECHO_C" >&6; }
 
33392
    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
 
33393
      { echo "$as_me:$LINENO: result: yes" >&5
 
33394
echo "${ECHO_T}yes" >&6; }
 
33395
      tst_allow_fcntl_o_nonblock="yes"
 
33396
    else
 
33397
      { echo "$as_me:$LINENO: result: no" >&5
 
33398
echo "${ECHO_T}no" >&6; }
 
33399
      tst_allow_fcntl_o_nonblock="no"
 
33400
    fi
 
33401
  fi
 
33402
  #
 
33403
  { echo "$as_me:$LINENO: checking if fcntl O_NONBLOCK might be used" >&5
 
33404
echo $ECHO_N "checking if fcntl O_NONBLOCK might be used... $ECHO_C" >&6; }
 
33405
  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
 
33406
     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
 
33407
    { echo "$as_me:$LINENO: result: yes" >&5
 
33408
echo "${ECHO_T}yes" >&6; }
 
33409
 
 
33410
cat >>confdefs.h <<_ACEOF
 
33411
#define HAVE_FCNTL_O_NONBLOCK 1
 
33412
_ACEOF
 
33413
 
 
33414
    ac_cv_func_fcntl_o_nonblock="yes"
 
33415
  else
 
33416
    { echo "$as_me:$LINENO: result: no" >&5
 
33417
echo "${ECHO_T}no" >&6; }
 
33418
    ac_cv_func_fcntl_o_nonblock="no"
 
33419
  fi
 
33420
 
 
33421
  else
 
33422
    { echo "$as_me:$LINENO: result: no" >&5
 
33423
echo "${ECHO_T}no" >&6; }
 
33424
    ac_cv_func_fcntl="no"
 
33425
  fi
 
33426
 
 
33427
 
 
33428
curl_includes_stdio="\
 
33429
/* includes start */
 
33430
#ifdef HAVE_SYS_TYPES_H
 
33431
#  include <sys/types.h>
 
33432
#endif
 
33433
#ifdef HAVE_STDIO_H
 
33434
#  include <stdio.h>
 
33435
#endif
 
33436
/* includes end */"
 
33437
 
 
33438
 
 
33439
for ac_header in sys/types.h stdio.h
 
33440
do
 
33441
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33442
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33443
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
33444
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33446
else
 
33447
  cat >conftest.$ac_ext <<_ACEOF
 
33448
/* confdefs.h.  */
 
33449
_ACEOF
 
33450
cat confdefs.h >>conftest.$ac_ext
 
33451
cat >>conftest.$ac_ext <<_ACEOF
 
33452
/* end confdefs.h.  */
 
33453
$curl_includes_stdio
 
33454
 
 
33455
#include <$ac_header>
 
33456
_ACEOF
 
33457
rm -f conftest.$ac_objext
 
33458
if { (ac_try="$ac_compile"
 
33459
case "(($ac_try" in
 
33460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33461
  *) ac_try_echo=$ac_try;;
 
33462
esac
 
33463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33464
  (eval "$ac_compile") 2>conftest.er1
 
33465
  ac_status=$?
 
33466
  grep -v '^ *+' conftest.er1 >conftest.err
 
33467
  rm -f conftest.er1
 
33468
  cat conftest.err >&5
 
33469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33470
  (exit $ac_status); } && {
 
33471
         test -z "$ac_c_werror_flag" ||
 
33472
         test ! -s conftest.err
 
33473
       } && test -s conftest.$ac_objext; then
 
33474
  eval "$as_ac_Header=yes"
 
33475
else
 
33476
  echo "$as_me: failed program was:" >&5
 
33477
sed 's/^/| /' conftest.$ac_ext >&5
 
33478
 
 
33479
        eval "$as_ac_Header=no"
 
33480
fi
 
33481
 
 
33482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33483
fi
 
33484
ac_res=`eval echo '${'$as_ac_Header'}'`
 
33485
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
33486
echo "${ECHO_T}$ac_res" >&6; }
 
33487
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
33488
  cat >>confdefs.h <<_ACEOF
 
33489
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
33490
_ACEOF
 
33491
 
 
33492
fi
 
33493
 
 
33494
done
 
33495
 
 
33496
 
 
33497
 
 
33498
    #
 
33499
  tst_links_fdopen="unknown"
 
33500
  tst_proto_fdopen="unknown"
 
33501
  tst_compi_fdopen="unknown"
 
33502
  tst_allow_fdopen="unknown"
 
33503
  #
 
33504
  { echo "$as_me:$LINENO: checking if fdopen can be linked" >&5
 
33505
echo $ECHO_N "checking if fdopen can be linked... $ECHO_C" >&6; }
 
33506
  cat >conftest.$ac_ext <<_ACEOF
 
33507
 
 
33508
    /* confdefs.h.  */
 
33509
_ACEOF
 
33510
cat confdefs.h >>conftest.$ac_ext
 
33511
cat >>conftest.$ac_ext <<_ACEOF
 
33512
/* end confdefs.h.  */
 
33513
 
 
33514
#define fdopen innocuous_fdopen
 
33515
#ifdef __STDC__
 
33516
# include <limits.h>
 
33517
#else
 
33518
# include <assert.h>
 
33519
#endif
 
33520
#undef fdopen
 
33521
#ifdef __cplusplus
 
33522
extern "C"
 
33523
#endif
 
33524
char fdopen ();
 
33525
#if defined __stub_fdopen || defined __stub___fdopen
 
33526
choke me
 
33527
#endif
 
33528
 
 
33529
int main (void)
 
33530
{
 
33531
return fdopen ();
 
33532
 ;
 
33533
 return 0;
 
33534
}
 
33535
 
 
33536
_ACEOF
 
33537
rm -f conftest.$ac_objext conftest$ac_exeext
 
33538
if { (ac_try="$ac_link"
 
33539
case "(($ac_try" in
 
33540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33541
  *) ac_try_echo=$ac_try;;
 
33542
esac
 
33543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33544
  (eval "$ac_link") 2>conftest.er1
 
33545
  ac_status=$?
 
33546
  grep -v '^ *+' conftest.er1 >conftest.err
 
33547
  rm -f conftest.er1
 
33548
  cat conftest.err >&5
 
33549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33550
  (exit $ac_status); } && {
 
33551
         test -z "$ac_c_werror_flag" ||
 
33552
         test ! -s conftest.err
 
33553
       } && test -s conftest$ac_exeext &&
 
33554
       $as_test_x conftest$ac_exeext; then
 
33555
 
 
33556
    { echo "$as_me:$LINENO: result: yes" >&5
 
33557
echo "${ECHO_T}yes" >&6; }
 
33558
    tst_links_fdopen="yes"
 
33559
 
 
33560
else
 
33561
  echo "$as_me: failed program was:" >&5
 
33562
sed 's/^/| /' conftest.$ac_ext >&5
 
33563
 
 
33564
 
 
33565
    { echo "$as_me:$LINENO: result: no" >&5
 
33566
echo "${ECHO_T}no" >&6; }
 
33567
    tst_links_fdopen="no"
 
33568
 
 
33569
fi
 
33570
 
 
33571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
33572
      conftest$ac_exeext conftest.$ac_ext
 
33573
  #
 
33574
  if test "$tst_links_fdopen" = "yes"; then
 
33575
    { echo "$as_me:$LINENO: checking if fdopen is prototyped" >&5
 
33576
echo $ECHO_N "checking if fdopen is prototyped... $ECHO_C" >&6; }
 
33577
    cat >conftest.$ac_ext <<_ACEOF
 
33578
/* confdefs.h.  */
 
33579
_ACEOF
 
33580
cat confdefs.h >>conftest.$ac_ext
 
33581
cat >>conftest.$ac_ext <<_ACEOF
 
33582
/* end confdefs.h.  */
 
33583
 
 
33584
      $curl_includes_stdio
 
33585
 
 
33586
_ACEOF
 
33587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
33588
  $EGREP "fdopen" >/dev/null 2>&1; then
 
33589
 
 
33590
      { echo "$as_me:$LINENO: result: yes" >&5
 
33591
echo "${ECHO_T}yes" >&6; }
 
33592
      tst_proto_fdopen="yes"
 
33593
 
 
33594
else
 
33595
 
 
33596
      { echo "$as_me:$LINENO: result: no" >&5
 
33597
echo "${ECHO_T}no" >&6; }
 
33598
      tst_proto_fdopen="no"
 
33599
 
 
33600
fi
 
33601
rm -f conftest*
 
33602
 
 
33603
  fi
 
33604
  #
 
33605
  if test "$tst_proto_fdopen" = "yes"; then
 
33606
    { echo "$as_me:$LINENO: checking if fdopen is compilable" >&5
 
33607
echo $ECHO_N "checking if fdopen is compilable... $ECHO_C" >&6; }
 
33608
    cat >conftest.$ac_ext <<_ACEOF
 
33609
 
 
33610
      /* confdefs.h.  */
 
33611
_ACEOF
 
33612
cat confdefs.h >>conftest.$ac_ext
 
33613
cat >>conftest.$ac_ext <<_ACEOF
 
33614
/* end confdefs.h.  */
 
33615
 
 
33616
        $curl_includes_stdio
 
33617
 
 
33618
int main (void)
 
33619
{
 
33620
 
 
33621
        if(0 != fdopen(0, 0))
 
33622
          return 1;
 
33623
 
 
33624
 ;
 
33625
 return 0;
 
33626
}
 
33627
 
 
33628
_ACEOF
 
33629
rm -f conftest.$ac_objext
 
33630
if { (ac_try="$ac_compile"
 
33631
case "(($ac_try" in
 
33632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33633
  *) ac_try_echo=$ac_try;;
 
33634
esac
 
33635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33636
  (eval "$ac_compile") 2>conftest.er1
 
33637
  ac_status=$?
 
33638
  grep -v '^ *+' conftest.er1 >conftest.err
 
33639
  rm -f conftest.er1
 
33640
  cat conftest.err >&5
 
33641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33642
  (exit $ac_status); } && {
 
33643
         test -z "$ac_c_werror_flag" ||
 
33644
         test ! -s conftest.err
 
33645
       } && test -s conftest.$ac_objext; then
 
33646
 
 
33647
      { echo "$as_me:$LINENO: result: yes" >&5
 
33648
echo "${ECHO_T}yes" >&6; }
 
33649
      tst_compi_fdopen="yes"
 
33650
 
 
33651
else
 
33652
  echo "$as_me: failed program was:" >&5
 
33653
sed 's/^/| /' conftest.$ac_ext >&5
 
33654
 
 
33655
 
 
33656
      { echo "$as_me:$LINENO: result: no" >&5
 
33657
echo "${ECHO_T}no" >&6; }
 
33658
      tst_compi_fdopen="no"
 
33659
 
 
33660
fi
 
33661
 
 
33662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33663
  fi
 
33664
  #
 
33665
  if test "$tst_compi_fdopen" = "yes"; then
 
33666
    { echo "$as_me:$LINENO: checking if fdopen usage allowed" >&5
 
33667
echo $ECHO_N "checking if fdopen usage allowed... $ECHO_C" >&6; }
 
33668
    if test "x$curl_disallow_fdopen" != "xyes"; then
 
33669
      { echo "$as_me:$LINENO: result: yes" >&5
 
33670
echo "${ECHO_T}yes" >&6; }
 
33671
      tst_allow_fdopen="yes"
 
33672
    else
 
33673
      { echo "$as_me:$LINENO: result: no" >&5
 
33674
echo "${ECHO_T}no" >&6; }
 
33675
      tst_allow_fdopen="no"
 
33676
    fi
 
33677
  fi
 
33678
  #
 
33679
  { echo "$as_me:$LINENO: checking if fdopen might be used" >&5
 
33680
echo $ECHO_N "checking if fdopen might be used... $ECHO_C" >&6; }
 
33681
  if test "$tst_links_fdopen" = "yes" &&
 
33682
     test "$tst_proto_fdopen" = "yes" &&
 
33683
     test "$tst_compi_fdopen" = "yes" &&
 
33684
     test "$tst_allow_fdopen" = "yes"; then
 
33685
    { echo "$as_me:$LINENO: result: yes" >&5
 
33686
echo "${ECHO_T}yes" >&6; }
 
33687
 
 
33688
cat >>confdefs.h <<_ACEOF
 
33689
#define HAVE_FDOPEN 1
 
33690
_ACEOF
 
33691
 
 
33692
    ac_cv_func_fdopen="yes"
 
33693
  else
 
33694
    { echo "$as_me:$LINENO: result: no" >&5
 
33695
echo "${ECHO_T}no" >&6; }
 
33696
    ac_cv_func_fdopen="no"
 
33697
  fi
 
33698
 
 
33699
 
 
33700
curl_includes_ws2tcpip="\
 
33701
/* includes start */
 
33702
#ifdef HAVE_WINDOWS_H
 
33703
#  ifndef WIN32_LEAN_AND_MEAN
 
33704
#    define WIN32_LEAN_AND_MEAN
 
33705
#  endif
 
33706
#  include <windows.h>
 
33707
#  ifdef HAVE_WINSOCK2_H
 
33708
#    include <winsock2.h>
 
33709
#    ifdef HAVE_WS2TCPIP_H
 
33710
#       include <ws2tcpip.h>
 
33711
#    endif
 
33712
#  endif
 
33713
#endif
 
33714
/* includes end */"
 
33715
 
 
33716
  { echo "$as_me:$LINENO: checking for windows.h" >&5
 
33717
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
 
33718
if test "${ac_cv_header_windows_h+set}" = set; then
 
33719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33720
else
 
33721
 
 
33722
    cat >conftest.$ac_ext <<_ACEOF
 
33723
 
 
33724
      /* confdefs.h.  */
 
33725
_ACEOF
 
33726
cat confdefs.h >>conftest.$ac_ext
 
33727
cat >>conftest.$ac_ext <<_ACEOF
 
33728
/* end confdefs.h.  */
 
33729
 
 
33730
#undef inline
 
33731
#ifndef WIN32_LEAN_AND_MEAN
 
33732
#define WIN32_LEAN_AND_MEAN
 
33733
#endif
 
33734
#include <windows.h>
 
33735
 
 
33736
int main (void)
 
33737
{
 
33738
 
 
33739
#if defined(__CYGWIN__) || defined(__CEGCC__)
 
33740
        HAVE_WINDOWS_H shall not be defined.
 
33741
#else
 
33742
        int dummy=2*WINVER;
 
33743
#endif
 
33744
 
 
33745
 ;
 
33746
 return 0;
 
33747
}
 
33748
 
 
33749
_ACEOF
 
33750
rm -f conftest.$ac_objext
 
33751
if { (ac_try="$ac_compile"
 
33752
case "(($ac_try" in
 
33753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33754
  *) ac_try_echo=$ac_try;;
 
33755
esac
 
33756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33757
  (eval "$ac_compile") 2>conftest.er1
 
33758
  ac_status=$?
 
33759
  grep -v '^ *+' conftest.er1 >conftest.err
 
33760
  rm -f conftest.er1
 
33761
  cat conftest.err >&5
 
33762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33763
  (exit $ac_status); } && {
 
33764
         test -z "$ac_c_werror_flag" ||
 
33765
         test ! -s conftest.err
 
33766
       } && test -s conftest.$ac_objext; then
 
33767
 
 
33768
      ac_cv_header_windows_h="yes"
 
33769
 
 
33770
else
 
33771
  echo "$as_me: failed program was:" >&5
 
33772
sed 's/^/| /' conftest.$ac_ext >&5
 
33773
 
 
33774
 
 
33775
      ac_cv_header_windows_h="no"
 
33776
 
 
33777
fi
 
33778
 
 
33779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33780
 
 
33781
fi
 
33782
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
 
33783
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
 
33784
  case "$ac_cv_header_windows_h" in
 
33785
    yes)
 
33786
 
 
33787
cat >>confdefs.h <<_ACEOF
 
33788
#define HAVE_WINDOWS_H 1
 
33789
_ACEOF
 
33790
 
 
33791
 
 
33792
cat >>confdefs.h <<_ACEOF
 
33793
#define WIN32_LEAN_AND_MEAN 1
 
33794
_ACEOF
 
33795
 
 
33796
      ;;
 
33797
  esac
 
33798
 
 
33799
 
 
33800
    { echo "$as_me:$LINENO: checking for winsock2.h" >&5
 
33801
echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
 
33802
if test "${ac_cv_header_winsock2_h+set}" = set; then
 
33803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33804
else
 
33805
 
 
33806
    cat >conftest.$ac_ext <<_ACEOF
 
33807
 
 
33808
      /* confdefs.h.  */
 
33809
_ACEOF
 
33810
cat confdefs.h >>conftest.$ac_ext
 
33811
cat >>conftest.$ac_ext <<_ACEOF
 
33812
/* end confdefs.h.  */
 
33813
 
 
33814
#undef inline
 
33815
#ifndef WIN32_LEAN_AND_MEAN
 
33816
#define WIN32_LEAN_AND_MEAN
 
33817
#endif
 
33818
#include <windows.h>
 
33819
#include <winsock2.h>
 
33820
 
 
33821
int main (void)
 
33822
{
 
33823
 
 
33824
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
 
33825
        HAVE_WINSOCK2_H shall not be defined.
 
33826
#else
 
33827
        int dummy=2*IPPROTO_ESP;
 
33828
#endif
 
33829
 
 
33830
 ;
 
33831
 return 0;
 
33832
}
 
33833
 
 
33834
_ACEOF
 
33835
rm -f conftest.$ac_objext
 
33836
if { (ac_try="$ac_compile"
 
33837
case "(($ac_try" in
 
33838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33839
  *) ac_try_echo=$ac_try;;
 
33840
esac
 
33841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33842
  (eval "$ac_compile") 2>conftest.er1
 
33843
  ac_status=$?
 
33844
  grep -v '^ *+' conftest.er1 >conftest.err
 
33845
  rm -f conftest.er1
 
33846
  cat conftest.err >&5
 
33847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33848
  (exit $ac_status); } && {
 
33849
         test -z "$ac_c_werror_flag" ||
 
33850
         test ! -s conftest.err
 
33851
       } && test -s conftest.$ac_objext; then
 
33852
 
 
33853
      ac_cv_header_winsock2_h="yes"
 
33854
 
 
33855
else
 
33856
  echo "$as_me: failed program was:" >&5
 
33857
sed 's/^/| /' conftest.$ac_ext >&5
 
33858
 
 
33859
 
 
33860
      ac_cv_header_winsock2_h="no"
 
33861
 
 
33862
fi
 
33863
 
 
33864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33865
 
 
33866
fi
 
33867
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
 
33868
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
 
33869
  case "$ac_cv_header_winsock2_h" in
 
33870
    yes)
 
33871
 
 
33872
cat >>confdefs.h <<_ACEOF
 
33873
#define HAVE_WINSOCK2_H 1
 
33874
_ACEOF
 
33875
 
 
33876
      ;;
 
33877
  esac
 
33878
 
 
33879
 
 
33880
    { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
 
33881
echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
 
33882
if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
 
33883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33884
else
 
33885
 
 
33886
    cat >conftest.$ac_ext <<_ACEOF
 
33887
 
 
33888
      /* confdefs.h.  */
 
33889
_ACEOF
 
33890
cat confdefs.h >>conftest.$ac_ext
 
33891
cat >>conftest.$ac_ext <<_ACEOF
 
33892
/* end confdefs.h.  */
 
33893
 
 
33894
#undef inline
 
33895
#ifndef WIN32_LEAN_AND_MEAN
 
33896
#define WIN32_LEAN_AND_MEAN
 
33897
#endif
 
33898
#include <windows.h>
 
33899
#include <winsock2.h>
 
33900
#include <ws2tcpip.h>
 
33901
 
 
33902
int main (void)
 
33903
{
 
33904
 
 
33905
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
 
33906
        HAVE_WS2TCPIP_H shall not be defined.
 
33907
#else
 
33908
        int dummy=2*IP_PKTINFO;
 
33909
#endif
 
33910
 
 
33911
 ;
 
33912
 return 0;
 
33913
}
 
33914
 
 
33915
_ACEOF
 
33916
rm -f conftest.$ac_objext
 
33917
if { (ac_try="$ac_compile"
 
33918
case "(($ac_try" in
 
33919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33920
  *) ac_try_echo=$ac_try;;
 
33921
esac
 
33922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33923
  (eval "$ac_compile") 2>conftest.er1
 
33924
  ac_status=$?
 
33925
  grep -v '^ *+' conftest.er1 >conftest.err
 
33926
  rm -f conftest.er1
 
33927
  cat conftest.err >&5
 
33928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33929
  (exit $ac_status); } && {
 
33930
         test -z "$ac_c_werror_flag" ||
 
33931
         test ! -s conftest.err
 
33932
       } && test -s conftest.$ac_objext; then
 
33933
 
 
33934
      ac_cv_header_ws2tcpip_h="yes"
 
33935
 
 
33936
else
 
33937
  echo "$as_me: failed program was:" >&5
 
33938
sed 's/^/| /' conftest.$ac_ext >&5
 
33939
 
 
33940
 
 
33941
      ac_cv_header_ws2tcpip_h="no"
 
33942
 
 
33943
fi
 
33944
 
 
33945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
33946
 
 
33947
fi
 
33948
{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
 
33949
echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
 
33950
  case "$ac_cv_header_ws2tcpip_h" in
 
33951
    yes)
 
33952
 
 
33953
cat >>confdefs.h <<_ACEOF
 
33954
#define HAVE_WS2TCPIP_H 1
 
33955
_ACEOF
 
33956
 
 
33957
      ;;
 
33958
  esac
 
33959
 
 
33960
 
 
33961
 
 
33962
curl_includes_sys_socket="\
 
33963
/* includes start */
 
33964
#ifdef HAVE_SYS_TYPES_H
 
33965
#  include <sys/types.h>
 
33966
#endif
 
33967
#ifdef HAVE_SYS_SOCKET_H
 
33968
#  include <sys/socket.h>
 
33969
#endif
 
33970
/* includes end */"
 
33971
 
 
33972
 
 
33973
for ac_header in sys/types.h sys/socket.h
 
33974
do
 
33975
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
33976
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
33977
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
33978
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
33979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33980
else
 
33981
  cat >conftest.$ac_ext <<_ACEOF
 
33982
/* confdefs.h.  */
 
33983
_ACEOF
 
33984
cat confdefs.h >>conftest.$ac_ext
 
33985
cat >>conftest.$ac_ext <<_ACEOF
 
33986
/* end confdefs.h.  */
 
33987
$curl_includes_sys_socket
 
33988
 
 
33989
#include <$ac_header>
 
33990
_ACEOF
 
33991
rm -f conftest.$ac_objext
 
33992
if { (ac_try="$ac_compile"
 
33993
case "(($ac_try" in
 
33994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
33995
  *) ac_try_echo=$ac_try;;
 
33996
esac
 
33997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
33998
  (eval "$ac_compile") 2>conftest.er1
 
33999
  ac_status=$?
 
34000
  grep -v '^ *+' conftest.er1 >conftest.err
 
34001
  rm -f conftest.er1
 
34002
  cat conftest.err >&5
 
34003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34004
  (exit $ac_status); } && {
 
34005
         test -z "$ac_c_werror_flag" ||
 
34006
         test ! -s conftest.err
 
34007
       } && test -s conftest.$ac_objext; then
 
34008
  eval "$as_ac_Header=yes"
 
34009
else
 
34010
  echo "$as_me: failed program was:" >&5
 
34011
sed 's/^/| /' conftest.$ac_ext >&5
 
34012
 
 
34013
        eval "$as_ac_Header=no"
 
34014
fi
 
34015
 
 
34016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34017
fi
 
34018
ac_res=`eval echo '${'$as_ac_Header'}'`
 
34019
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34020
echo "${ECHO_T}$ac_res" >&6; }
 
34021
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34022
  cat >>confdefs.h <<_ACEOF
 
34023
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34024
_ACEOF
 
34025
 
 
34026
fi
 
34027
 
 
34028
done
 
34029
 
 
34030
 
 
34031
 
 
34032
curl_includes_netdb="\
 
34033
/* includes start */
 
34034
#ifdef HAVE_SYS_TYPES_H
 
34035
#  include <sys/types.h>
 
34036
#endif
 
34037
#ifdef HAVE_NETDB_H
 
34038
#  include <netdb.h>
 
34039
#endif
 
34040
/* includes end */"
 
34041
 
 
34042
 
 
34043
for ac_header in sys/types.h netdb.h
 
34044
do
 
34045
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34046
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34047
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
34048
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34050
else
 
34051
  cat >conftest.$ac_ext <<_ACEOF
 
34052
/* confdefs.h.  */
 
34053
_ACEOF
 
34054
cat confdefs.h >>conftest.$ac_ext
 
34055
cat >>conftest.$ac_ext <<_ACEOF
 
34056
/* end confdefs.h.  */
 
34057
$curl_includes_netdb
 
34058
 
 
34059
#include <$ac_header>
 
34060
_ACEOF
 
34061
rm -f conftest.$ac_objext
 
34062
if { (ac_try="$ac_compile"
 
34063
case "(($ac_try" in
 
34064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34065
  *) ac_try_echo=$ac_try;;
 
34066
esac
 
34067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34068
  (eval "$ac_compile") 2>conftest.er1
 
34069
  ac_status=$?
 
34070
  grep -v '^ *+' conftest.er1 >conftest.err
 
34071
  rm -f conftest.er1
 
34072
  cat conftest.err >&5
 
34073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34074
  (exit $ac_status); } && {
 
34075
         test -z "$ac_c_werror_flag" ||
 
34076
         test ! -s conftest.err
 
34077
       } && test -s conftest.$ac_objext; then
 
34078
  eval "$as_ac_Header=yes"
 
34079
else
 
34080
  echo "$as_me: failed program was:" >&5
 
34081
sed 's/^/| /' conftest.$ac_ext >&5
 
34082
 
 
34083
        eval "$as_ac_Header=no"
 
34084
fi
 
34085
 
 
34086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34087
fi
 
34088
ac_res=`eval echo '${'$as_ac_Header'}'`
 
34089
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34090
echo "${ECHO_T}$ac_res" >&6; }
 
34091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34092
  cat >>confdefs.h <<_ACEOF
 
34093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34094
_ACEOF
 
34095
 
 
34096
fi
 
34097
 
 
34098
done
 
34099
 
 
34100
 
 
34101
 
 
34102
        #
 
34103
  tst_links_freeaddrinfo="unknown"
 
34104
  tst_proto_freeaddrinfo="unknown"
 
34105
  tst_compi_freeaddrinfo="unknown"
 
34106
  tst_allow_freeaddrinfo="unknown"
 
34107
  #
 
34108
  { echo "$as_me:$LINENO: checking if freeaddrinfo can be linked" >&5
 
34109
echo $ECHO_N "checking if freeaddrinfo can be linked... $ECHO_C" >&6; }
 
34110
  cat >conftest.$ac_ext <<_ACEOF
 
34111
 
 
34112
    /* confdefs.h.  */
 
34113
_ACEOF
 
34114
cat confdefs.h >>conftest.$ac_ext
 
34115
cat >>conftest.$ac_ext <<_ACEOF
 
34116
/* end confdefs.h.  */
 
34117
 
 
34118
      $curl_includes_ws2tcpip
 
34119
      $curl_includes_sys_socket
 
34120
      $curl_includes_netdb
 
34121
 
 
34122
int main (void)
 
34123
{
 
34124
 
 
34125
      freeaddrinfo(0);
 
34126
 
 
34127
 ;
 
34128
 return 0;
 
34129
}
 
34130
 
 
34131
_ACEOF
 
34132
rm -f conftest.$ac_objext conftest$ac_exeext
 
34133
if { (ac_try="$ac_link"
 
34134
case "(($ac_try" in
 
34135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34136
  *) ac_try_echo=$ac_try;;
 
34137
esac
 
34138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34139
  (eval "$ac_link") 2>conftest.er1
 
34140
  ac_status=$?
 
34141
  grep -v '^ *+' conftest.er1 >conftest.err
 
34142
  rm -f conftest.er1
 
34143
  cat conftest.err >&5
 
34144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34145
  (exit $ac_status); } && {
 
34146
         test -z "$ac_c_werror_flag" ||
 
34147
         test ! -s conftest.err
 
34148
       } && test -s conftest$ac_exeext &&
 
34149
       $as_test_x conftest$ac_exeext; then
 
34150
 
 
34151
    { echo "$as_me:$LINENO: result: yes" >&5
 
34152
echo "${ECHO_T}yes" >&6; }
 
34153
    tst_links_freeaddrinfo="yes"
 
34154
 
 
34155
else
 
34156
  echo "$as_me: failed program was:" >&5
 
34157
sed 's/^/| /' conftest.$ac_ext >&5
 
34158
 
 
34159
 
 
34160
    { echo "$as_me:$LINENO: result: no" >&5
 
34161
echo "${ECHO_T}no" >&6; }
 
34162
    tst_links_freeaddrinfo="no"
 
34163
 
 
34164
fi
 
34165
 
 
34166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34167
      conftest$ac_exeext conftest.$ac_ext
 
34168
  #
 
34169
  if test "$tst_links_freeaddrinfo" = "yes"; then
 
34170
    { echo "$as_me:$LINENO: checking if freeaddrinfo is prototyped" >&5
 
34171
echo $ECHO_N "checking if freeaddrinfo is prototyped... $ECHO_C" >&6; }
 
34172
    cat >conftest.$ac_ext <<_ACEOF
 
34173
/* confdefs.h.  */
 
34174
_ACEOF
 
34175
cat confdefs.h >>conftest.$ac_ext
 
34176
cat >>conftest.$ac_ext <<_ACEOF
 
34177
/* end confdefs.h.  */
 
34178
 
 
34179
      $curl_includes_ws2tcpip
 
34180
      $curl_includes_sys_socket
 
34181
      $curl_includes_netdb
 
34182
 
 
34183
_ACEOF
 
34184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
34185
  $EGREP "freeaddrinfo" >/dev/null 2>&1; then
 
34186
 
 
34187
      { echo "$as_me:$LINENO: result: yes" >&5
 
34188
echo "${ECHO_T}yes" >&6; }
 
34189
      tst_proto_freeaddrinfo="yes"
 
34190
 
 
34191
else
 
34192
 
 
34193
      { echo "$as_me:$LINENO: result: no" >&5
 
34194
echo "${ECHO_T}no" >&6; }
 
34195
      tst_proto_freeaddrinfo="no"
 
34196
 
 
34197
fi
 
34198
rm -f conftest*
 
34199
 
 
34200
  fi
 
34201
  #
 
34202
  if test "$tst_proto_freeaddrinfo" = "yes"; then
 
34203
    { echo "$as_me:$LINENO: checking if freeaddrinfo is compilable" >&5
 
34204
echo $ECHO_N "checking if freeaddrinfo is compilable... $ECHO_C" >&6; }
 
34205
    cat >conftest.$ac_ext <<_ACEOF
 
34206
 
 
34207
      /* confdefs.h.  */
 
34208
_ACEOF
 
34209
cat confdefs.h >>conftest.$ac_ext
 
34210
cat >>conftest.$ac_ext <<_ACEOF
 
34211
/* end confdefs.h.  */
 
34212
 
 
34213
        $curl_includes_ws2tcpip
 
34214
        $curl_includes_sys_socket
 
34215
        $curl_includes_netdb
 
34216
 
 
34217
int main (void)
 
34218
{
 
34219
 
 
34220
        freeaddrinfo(0);
 
34221
 
 
34222
 ;
 
34223
 return 0;
 
34224
}
 
34225
 
 
34226
_ACEOF
 
34227
rm -f conftest.$ac_objext
 
34228
if { (ac_try="$ac_compile"
 
34229
case "(($ac_try" in
 
34230
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34231
  *) ac_try_echo=$ac_try;;
 
34232
esac
 
34233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34234
  (eval "$ac_compile") 2>conftest.er1
 
34235
  ac_status=$?
 
34236
  grep -v '^ *+' conftest.er1 >conftest.err
 
34237
  rm -f conftest.er1
 
34238
  cat conftest.err >&5
 
34239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34240
  (exit $ac_status); } && {
 
34241
         test -z "$ac_c_werror_flag" ||
 
34242
         test ! -s conftest.err
 
34243
       } && test -s conftest.$ac_objext; then
 
34244
 
 
34245
      { echo "$as_me:$LINENO: result: yes" >&5
 
34246
echo "${ECHO_T}yes" >&6; }
 
34247
      tst_compi_freeaddrinfo="yes"
 
34248
 
 
34249
else
 
34250
  echo "$as_me: failed program was:" >&5
 
34251
sed 's/^/| /' conftest.$ac_ext >&5
 
34252
 
 
34253
 
 
34254
      { echo "$as_me:$LINENO: result: no" >&5
 
34255
echo "${ECHO_T}no" >&6; }
 
34256
      tst_compi_freeaddrinfo="no"
 
34257
 
 
34258
fi
 
34259
 
 
34260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34261
  fi
 
34262
  #
 
34263
  if test "$tst_compi_freeaddrinfo" = "yes"; then
 
34264
    { echo "$as_me:$LINENO: checking if freeaddrinfo usage allowed" >&5
 
34265
echo $ECHO_N "checking if freeaddrinfo usage allowed... $ECHO_C" >&6; }
 
34266
    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
 
34267
      { echo "$as_me:$LINENO: result: yes" >&5
 
34268
echo "${ECHO_T}yes" >&6; }
 
34269
      tst_allow_freeaddrinfo="yes"
 
34270
    else
 
34271
      { echo "$as_me:$LINENO: result: no" >&5
 
34272
echo "${ECHO_T}no" >&6; }
 
34273
      tst_allow_freeaddrinfo="no"
 
34274
    fi
 
34275
  fi
 
34276
  #
 
34277
  { echo "$as_me:$LINENO: checking if freeaddrinfo might be used" >&5
 
34278
echo $ECHO_N "checking if freeaddrinfo might be used... $ECHO_C" >&6; }
 
34279
  if test "$tst_links_freeaddrinfo" = "yes" &&
 
34280
     test "$tst_proto_freeaddrinfo" = "yes" &&
 
34281
     test "$tst_compi_freeaddrinfo" = "yes" &&
 
34282
     test "$tst_allow_freeaddrinfo" = "yes"; then
 
34283
    { echo "$as_me:$LINENO: result: yes" >&5
 
34284
echo "${ECHO_T}yes" >&6; }
 
34285
 
 
34286
cat >>confdefs.h <<_ACEOF
 
34287
#define HAVE_FREEADDRINFO 1
 
34288
_ACEOF
 
34289
 
 
34290
    ac_cv_func_freeaddrinfo="yes"
 
34291
  else
 
34292
    { echo "$as_me:$LINENO: result: no" >&5
 
34293
echo "${ECHO_T}no" >&6; }
 
34294
    ac_cv_func_freeaddrinfo="no"
 
34295
  fi
 
34296
 
 
34297
 
 
34298
curl_includes_ifaddrs="\
 
34299
/* includes start */
 
34300
#ifdef HAVE_SYS_TYPES_H
 
34301
#  include <sys/types.h>
 
34302
#endif
 
34303
#ifdef HAVE_SYS_SOCKET_H
 
34304
#  include <sys/socket.h>
 
34305
#endif
 
34306
#ifdef HAVE_NETINET_IN_H
 
34307
#  include <netinet/in.h>
 
34308
#endif
 
34309
#ifdef HAVE_IFADDRS_H
 
34310
#  include <ifaddrs.h>
 
34311
#endif
 
34312
/* includes end */"
 
34313
 
 
34314
 
 
34315
 
 
34316
 
 
34317
for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
 
34318
do
 
34319
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34320
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34321
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
34322
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34324
else
 
34325
  cat >conftest.$ac_ext <<_ACEOF
 
34326
/* confdefs.h.  */
 
34327
_ACEOF
 
34328
cat confdefs.h >>conftest.$ac_ext
 
34329
cat >>conftest.$ac_ext <<_ACEOF
 
34330
/* end confdefs.h.  */
 
34331
$curl_includes_ifaddrs
 
34332
 
 
34333
#include <$ac_header>
 
34334
_ACEOF
 
34335
rm -f conftest.$ac_objext
 
34336
if { (ac_try="$ac_compile"
 
34337
case "(($ac_try" in
 
34338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34339
  *) ac_try_echo=$ac_try;;
 
34340
esac
 
34341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34342
  (eval "$ac_compile") 2>conftest.er1
 
34343
  ac_status=$?
 
34344
  grep -v '^ *+' conftest.er1 >conftest.err
 
34345
  rm -f conftest.er1
 
34346
  cat conftest.err >&5
 
34347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34348
  (exit $ac_status); } && {
 
34349
         test -z "$ac_c_werror_flag" ||
 
34350
         test ! -s conftest.err
 
34351
       } && test -s conftest.$ac_objext; then
 
34352
  eval "$as_ac_Header=yes"
 
34353
else
 
34354
  echo "$as_me: failed program was:" >&5
 
34355
sed 's/^/| /' conftest.$ac_ext >&5
 
34356
 
 
34357
        eval "$as_ac_Header=no"
 
34358
fi
 
34359
 
 
34360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34361
fi
 
34362
ac_res=`eval echo '${'$as_ac_Header'}'`
 
34363
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34364
echo "${ECHO_T}$ac_res" >&6; }
 
34365
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34366
  cat >>confdefs.h <<_ACEOF
 
34367
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34368
_ACEOF
 
34369
 
 
34370
fi
 
34371
 
 
34372
done
 
34373
 
 
34374
 
 
34375
 
 
34376
    #
 
34377
  tst_links_freeifaddrs="unknown"
 
34378
  tst_proto_freeifaddrs="unknown"
 
34379
  tst_compi_freeifaddrs="unknown"
 
34380
  tst_allow_freeifaddrs="unknown"
 
34381
  #
 
34382
  { echo "$as_me:$LINENO: checking if freeifaddrs can be linked" >&5
 
34383
echo $ECHO_N "checking if freeifaddrs can be linked... $ECHO_C" >&6; }
 
34384
  cat >conftest.$ac_ext <<_ACEOF
 
34385
 
 
34386
    /* confdefs.h.  */
 
34387
_ACEOF
 
34388
cat confdefs.h >>conftest.$ac_ext
 
34389
cat >>conftest.$ac_ext <<_ACEOF
 
34390
/* end confdefs.h.  */
 
34391
 
 
34392
#define freeifaddrs innocuous_freeifaddrs
 
34393
#ifdef __STDC__
 
34394
# include <limits.h>
 
34395
#else
 
34396
# include <assert.h>
 
34397
#endif
 
34398
#undef freeifaddrs
 
34399
#ifdef __cplusplus
 
34400
extern "C"
 
34401
#endif
 
34402
char freeifaddrs ();
 
34403
#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
 
34404
choke me
 
34405
#endif
 
34406
 
 
34407
int main (void)
 
34408
{
 
34409
return freeifaddrs ();
 
34410
 ;
 
34411
 return 0;
 
34412
}
 
34413
 
 
34414
_ACEOF
 
34415
rm -f conftest.$ac_objext conftest$ac_exeext
 
34416
if { (ac_try="$ac_link"
 
34417
case "(($ac_try" in
 
34418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34419
  *) ac_try_echo=$ac_try;;
 
34420
esac
 
34421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34422
  (eval "$ac_link") 2>conftest.er1
 
34423
  ac_status=$?
 
34424
  grep -v '^ *+' conftest.er1 >conftest.err
 
34425
  rm -f conftest.er1
 
34426
  cat conftest.err >&5
 
34427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34428
  (exit $ac_status); } && {
 
34429
         test -z "$ac_c_werror_flag" ||
 
34430
         test ! -s conftest.err
 
34431
       } && test -s conftest$ac_exeext &&
 
34432
       $as_test_x conftest$ac_exeext; then
 
34433
 
 
34434
    { echo "$as_me:$LINENO: result: yes" >&5
 
34435
echo "${ECHO_T}yes" >&6; }
 
34436
    tst_links_freeifaddrs="yes"
 
34437
 
 
34438
else
 
34439
  echo "$as_me: failed program was:" >&5
 
34440
sed 's/^/| /' conftest.$ac_ext >&5
 
34441
 
 
34442
 
 
34443
    { echo "$as_me:$LINENO: result: no" >&5
 
34444
echo "${ECHO_T}no" >&6; }
 
34445
    tst_links_freeifaddrs="no"
 
34446
 
 
34447
fi
 
34448
 
 
34449
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34450
      conftest$ac_exeext conftest.$ac_ext
 
34451
  #
 
34452
  if test "$tst_links_freeifaddrs" = "yes"; then
 
34453
    { echo "$as_me:$LINENO: checking if freeifaddrs is prototyped" >&5
 
34454
echo $ECHO_N "checking if freeifaddrs is prototyped... $ECHO_C" >&6; }
 
34455
    cat >conftest.$ac_ext <<_ACEOF
 
34456
/* confdefs.h.  */
 
34457
_ACEOF
 
34458
cat confdefs.h >>conftest.$ac_ext
 
34459
cat >>conftest.$ac_ext <<_ACEOF
 
34460
/* end confdefs.h.  */
 
34461
 
 
34462
      $curl_includes_ifaddrs
 
34463
 
 
34464
_ACEOF
 
34465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
34466
  $EGREP "freeifaddrs" >/dev/null 2>&1; then
 
34467
 
 
34468
      { echo "$as_me:$LINENO: result: yes" >&5
 
34469
echo "${ECHO_T}yes" >&6; }
 
34470
      tst_proto_freeifaddrs="yes"
 
34471
 
 
34472
else
 
34473
 
 
34474
      { echo "$as_me:$LINENO: result: no" >&5
 
34475
echo "${ECHO_T}no" >&6; }
 
34476
      tst_proto_freeifaddrs="no"
 
34477
 
 
34478
fi
 
34479
rm -f conftest*
 
34480
 
 
34481
  fi
 
34482
  #
 
34483
  if test "$tst_proto_freeifaddrs" = "yes"; then
 
34484
    { echo "$as_me:$LINENO: checking if freeifaddrs is compilable" >&5
 
34485
echo $ECHO_N "checking if freeifaddrs is compilable... $ECHO_C" >&6; }
 
34486
    cat >conftest.$ac_ext <<_ACEOF
 
34487
 
 
34488
      /* confdefs.h.  */
 
34489
_ACEOF
 
34490
cat confdefs.h >>conftest.$ac_ext
 
34491
cat >>conftest.$ac_ext <<_ACEOF
 
34492
/* end confdefs.h.  */
 
34493
 
 
34494
        $curl_includes_ifaddrs
 
34495
 
 
34496
int main (void)
 
34497
{
 
34498
 
 
34499
        freeifaddrs(0);
 
34500
 
 
34501
 ;
 
34502
 return 0;
 
34503
}
 
34504
 
 
34505
_ACEOF
 
34506
rm -f conftest.$ac_objext
 
34507
if { (ac_try="$ac_compile"
 
34508
case "(($ac_try" in
 
34509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34510
  *) ac_try_echo=$ac_try;;
 
34511
esac
 
34512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34513
  (eval "$ac_compile") 2>conftest.er1
 
34514
  ac_status=$?
 
34515
  grep -v '^ *+' conftest.er1 >conftest.err
 
34516
  rm -f conftest.er1
 
34517
  cat conftest.err >&5
 
34518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34519
  (exit $ac_status); } && {
 
34520
         test -z "$ac_c_werror_flag" ||
 
34521
         test ! -s conftest.err
 
34522
       } && test -s conftest.$ac_objext; then
 
34523
 
 
34524
      { echo "$as_me:$LINENO: result: yes" >&5
 
34525
echo "${ECHO_T}yes" >&6; }
 
34526
      tst_compi_freeifaddrs="yes"
 
34527
 
 
34528
else
 
34529
  echo "$as_me: failed program was:" >&5
 
34530
sed 's/^/| /' conftest.$ac_ext >&5
 
34531
 
 
34532
 
 
34533
      { echo "$as_me:$LINENO: result: no" >&5
 
34534
echo "${ECHO_T}no" >&6; }
 
34535
      tst_compi_freeifaddrs="no"
 
34536
 
 
34537
fi
 
34538
 
 
34539
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34540
  fi
 
34541
  #
 
34542
  if test "$tst_compi_freeifaddrs" = "yes"; then
 
34543
    { echo "$as_me:$LINENO: checking if freeifaddrs usage allowed" >&5
 
34544
echo $ECHO_N "checking if freeifaddrs usage allowed... $ECHO_C" >&6; }
 
34545
    if test "x$curl_disallow_freeifaddrs" != "xyes"; then
 
34546
      { echo "$as_me:$LINENO: result: yes" >&5
 
34547
echo "${ECHO_T}yes" >&6; }
 
34548
      tst_allow_freeifaddrs="yes"
 
34549
    else
 
34550
      { echo "$as_me:$LINENO: result: no" >&5
 
34551
echo "${ECHO_T}no" >&6; }
 
34552
      tst_allow_freeifaddrs="no"
 
34553
    fi
 
34554
  fi
 
34555
  #
 
34556
  { echo "$as_me:$LINENO: checking if freeifaddrs might be used" >&5
 
34557
echo $ECHO_N "checking if freeifaddrs might be used... $ECHO_C" >&6; }
 
34558
  if test "$tst_links_freeifaddrs" = "yes" &&
 
34559
     test "$tst_proto_freeifaddrs" = "yes" &&
 
34560
     test "$tst_compi_freeifaddrs" = "yes" &&
 
34561
     test "$tst_allow_freeifaddrs" = "yes"; then
 
34562
    { echo "$as_me:$LINENO: result: yes" >&5
 
34563
echo "${ECHO_T}yes" >&6; }
 
34564
 
 
34565
cat >>confdefs.h <<_ACEOF
 
34566
#define HAVE_FREEIFADDRS 1
 
34567
_ACEOF
 
34568
 
 
34569
    ac_cv_func_freeifaddrs="yes"
 
34570
  else
 
34571
    { echo "$as_me:$LINENO: result: no" >&5
 
34572
echo "${ECHO_T}no" >&6; }
 
34573
    ac_cv_func_freeifaddrs="no"
 
34574
  fi
 
34575
 
 
34576
 
 
34577
    #
 
34578
  tst_links_ftruncate="unknown"
 
34579
  tst_proto_ftruncate="unknown"
 
34580
  tst_compi_ftruncate="unknown"
 
34581
  tst_allow_ftruncate="unknown"
 
34582
  #
 
34583
  { echo "$as_me:$LINENO: checking if ftruncate can be linked" >&5
 
34584
echo $ECHO_N "checking if ftruncate can be linked... $ECHO_C" >&6; }
 
34585
  cat >conftest.$ac_ext <<_ACEOF
 
34586
 
 
34587
    /* confdefs.h.  */
 
34588
_ACEOF
 
34589
cat confdefs.h >>conftest.$ac_ext
 
34590
cat >>conftest.$ac_ext <<_ACEOF
 
34591
/* end confdefs.h.  */
 
34592
 
 
34593
#define ftruncate innocuous_ftruncate
 
34594
#ifdef __STDC__
 
34595
# include <limits.h>
 
34596
#else
 
34597
# include <assert.h>
 
34598
#endif
 
34599
#undef ftruncate
 
34600
#ifdef __cplusplus
 
34601
extern "C"
 
34602
#endif
 
34603
char ftruncate ();
 
34604
#if defined __stub_ftruncate || defined __stub___ftruncate
 
34605
choke me
 
34606
#endif
 
34607
 
 
34608
int main (void)
 
34609
{
 
34610
return ftruncate ();
 
34611
 ;
 
34612
 return 0;
 
34613
}
 
34614
 
 
34615
_ACEOF
 
34616
rm -f conftest.$ac_objext conftest$ac_exeext
 
34617
if { (ac_try="$ac_link"
 
34618
case "(($ac_try" in
 
34619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34620
  *) ac_try_echo=$ac_try;;
 
34621
esac
 
34622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34623
  (eval "$ac_link") 2>conftest.er1
 
34624
  ac_status=$?
 
34625
  grep -v '^ *+' conftest.er1 >conftest.err
 
34626
  rm -f conftest.er1
 
34627
  cat conftest.err >&5
 
34628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34629
  (exit $ac_status); } && {
 
34630
         test -z "$ac_c_werror_flag" ||
 
34631
         test ! -s conftest.err
 
34632
       } && test -s conftest$ac_exeext &&
 
34633
       $as_test_x conftest$ac_exeext; then
 
34634
 
 
34635
    { echo "$as_me:$LINENO: result: yes" >&5
 
34636
echo "${ECHO_T}yes" >&6; }
 
34637
    tst_links_ftruncate="yes"
 
34638
 
 
34639
else
 
34640
  echo "$as_me: failed program was:" >&5
 
34641
sed 's/^/| /' conftest.$ac_ext >&5
 
34642
 
 
34643
 
 
34644
    { echo "$as_me:$LINENO: result: no" >&5
 
34645
echo "${ECHO_T}no" >&6; }
 
34646
    tst_links_ftruncate="no"
 
34647
 
 
34648
fi
 
34649
 
 
34650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34651
      conftest$ac_exeext conftest.$ac_ext
 
34652
  #
 
34653
  if test "$tst_links_ftruncate" = "yes"; then
 
34654
    { echo "$as_me:$LINENO: checking if ftruncate is prototyped" >&5
 
34655
echo $ECHO_N "checking if ftruncate is prototyped... $ECHO_C" >&6; }
 
34656
    cat >conftest.$ac_ext <<_ACEOF
 
34657
/* confdefs.h.  */
 
34658
_ACEOF
 
34659
cat confdefs.h >>conftest.$ac_ext
 
34660
cat >>conftest.$ac_ext <<_ACEOF
 
34661
/* end confdefs.h.  */
 
34662
 
 
34663
      $curl_includes_unistd
 
34664
 
 
34665
_ACEOF
 
34666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
34667
  $EGREP "ftruncate" >/dev/null 2>&1; then
 
34668
 
 
34669
      { echo "$as_me:$LINENO: result: yes" >&5
 
34670
echo "${ECHO_T}yes" >&6; }
 
34671
      tst_proto_ftruncate="yes"
 
34672
 
 
34673
else
 
34674
 
 
34675
      { echo "$as_me:$LINENO: result: no" >&5
 
34676
echo "${ECHO_T}no" >&6; }
 
34677
      tst_proto_ftruncate="no"
 
34678
 
 
34679
fi
 
34680
rm -f conftest*
 
34681
 
 
34682
  fi
 
34683
  #
 
34684
  if test "$tst_proto_ftruncate" = "yes"; then
 
34685
    { echo "$as_me:$LINENO: checking if ftruncate is compilable" >&5
 
34686
echo $ECHO_N "checking if ftruncate is compilable... $ECHO_C" >&6; }
 
34687
    cat >conftest.$ac_ext <<_ACEOF
 
34688
 
 
34689
      /* confdefs.h.  */
 
34690
_ACEOF
 
34691
cat confdefs.h >>conftest.$ac_ext
 
34692
cat >>conftest.$ac_ext <<_ACEOF
 
34693
/* end confdefs.h.  */
 
34694
 
 
34695
        $curl_includes_unistd
 
34696
 
 
34697
int main (void)
 
34698
{
 
34699
 
 
34700
        if(0 != ftruncate(0, 0))
 
34701
          return 1;
 
34702
 
 
34703
 ;
 
34704
 return 0;
 
34705
}
 
34706
 
 
34707
_ACEOF
 
34708
rm -f conftest.$ac_objext
 
34709
if { (ac_try="$ac_compile"
 
34710
case "(($ac_try" in
 
34711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34712
  *) ac_try_echo=$ac_try;;
 
34713
esac
 
34714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34715
  (eval "$ac_compile") 2>conftest.er1
 
34716
  ac_status=$?
 
34717
  grep -v '^ *+' conftest.er1 >conftest.err
 
34718
  rm -f conftest.er1
 
34719
  cat conftest.err >&5
 
34720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34721
  (exit $ac_status); } && {
 
34722
         test -z "$ac_c_werror_flag" ||
 
34723
         test ! -s conftest.err
 
34724
       } && test -s conftest.$ac_objext; then
 
34725
 
 
34726
      { echo "$as_me:$LINENO: result: yes" >&5
 
34727
echo "${ECHO_T}yes" >&6; }
 
34728
      tst_compi_ftruncate="yes"
 
34729
 
 
34730
else
 
34731
  echo "$as_me: failed program was:" >&5
 
34732
sed 's/^/| /' conftest.$ac_ext >&5
 
34733
 
 
34734
 
 
34735
      { echo "$as_me:$LINENO: result: no" >&5
 
34736
echo "${ECHO_T}no" >&6; }
 
34737
      tst_compi_ftruncate="no"
 
34738
 
 
34739
fi
 
34740
 
 
34741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34742
  fi
 
34743
  #
 
34744
  if test "$tst_compi_ftruncate" = "yes"; then
 
34745
    { echo "$as_me:$LINENO: checking if ftruncate usage allowed" >&5
 
34746
echo $ECHO_N "checking if ftruncate usage allowed... $ECHO_C" >&6; }
 
34747
    if test "x$curl_disallow_ftruncate" != "xyes"; then
 
34748
      { echo "$as_me:$LINENO: result: yes" >&5
 
34749
echo "${ECHO_T}yes" >&6; }
 
34750
      tst_allow_ftruncate="yes"
 
34751
    else
 
34752
      { echo "$as_me:$LINENO: result: no" >&5
 
34753
echo "${ECHO_T}no" >&6; }
 
34754
      tst_allow_ftruncate="no"
 
34755
    fi
 
34756
  fi
 
34757
  #
 
34758
  { echo "$as_me:$LINENO: checking if ftruncate might be used" >&5
 
34759
echo $ECHO_N "checking if ftruncate might be used... $ECHO_C" >&6; }
 
34760
  if test "$tst_links_ftruncate" = "yes" &&
 
34761
     test "$tst_proto_ftruncate" = "yes" &&
 
34762
     test "$tst_compi_ftruncate" = "yes" &&
 
34763
     test "$tst_allow_ftruncate" = "yes"; then
 
34764
    { echo "$as_me:$LINENO: result: yes" >&5
 
34765
echo "${ECHO_T}yes" >&6; }
 
34766
 
 
34767
cat >>confdefs.h <<_ACEOF
 
34768
#define HAVE_FTRUNCATE 1
 
34769
_ACEOF
 
34770
 
 
34771
    ac_cv_func_ftruncate="yes"
 
34772
  else
 
34773
    { echo "$as_me:$LINENO: result: no" >&5
 
34774
echo "${ECHO_T}no" >&6; }
 
34775
    ac_cv_func_ftruncate="no"
 
34776
  fi
 
34777
 
 
34778
 
 
34779
curl_includes_stdlib="\
 
34780
/* includes start */
 
34781
#ifdef HAVE_SYS_TYPES_H
 
34782
#  include <sys/types.h>
 
34783
#endif
 
34784
#ifdef HAVE_STDLIB_H
 
34785
#  include <stdlib.h>
 
34786
#endif
 
34787
/* includes end */"
 
34788
 
 
34789
 
 
34790
for ac_header in sys/types.h stdlib.h
 
34791
do
 
34792
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34793
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34794
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
34795
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34797
else
 
34798
  cat >conftest.$ac_ext <<_ACEOF
 
34799
/* confdefs.h.  */
 
34800
_ACEOF
 
34801
cat confdefs.h >>conftest.$ac_ext
 
34802
cat >>conftest.$ac_ext <<_ACEOF
 
34803
/* end confdefs.h.  */
 
34804
$curl_includes_stdlib
 
34805
 
 
34806
#include <$ac_header>
 
34807
_ACEOF
 
34808
rm -f conftest.$ac_objext
 
34809
if { (ac_try="$ac_compile"
 
34810
case "(($ac_try" in
 
34811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34812
  *) ac_try_echo=$ac_try;;
 
34813
esac
 
34814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34815
  (eval "$ac_compile") 2>conftest.er1
 
34816
  ac_status=$?
 
34817
  grep -v '^ *+' conftest.er1 >conftest.err
 
34818
  rm -f conftest.er1
 
34819
  cat conftest.err >&5
 
34820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34821
  (exit $ac_status); } && {
 
34822
         test -z "$ac_c_werror_flag" ||
 
34823
         test ! -s conftest.err
 
34824
       } && test -s conftest.$ac_objext; then
 
34825
  eval "$as_ac_Header=yes"
 
34826
else
 
34827
  echo "$as_me: failed program was:" >&5
 
34828
sed 's/^/| /' conftest.$ac_ext >&5
 
34829
 
 
34830
        eval "$as_ac_Header=no"
 
34831
fi
 
34832
 
 
34833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34834
fi
 
34835
ac_res=`eval echo '${'$as_ac_Header'}'`
 
34836
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34837
echo "${ECHO_T}$ac_res" >&6; }
 
34838
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34839
  cat >>confdefs.h <<_ACEOF
 
34840
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34841
_ACEOF
 
34842
 
 
34843
fi
 
34844
 
 
34845
done
 
34846
 
 
34847
 
 
34848
 
 
34849
curl_includes_string="\
 
34850
/* includes start */
 
34851
#ifdef HAVE_SYS_TYPES_H
 
34852
#  include <sys/types.h>
 
34853
#endif
 
34854
#ifdef HAVE_STRING_H
 
34855
#  include <string.h>
 
34856
#endif
 
34857
#ifdef HAVE_STRINGS_H
 
34858
#  include <strings.h>
 
34859
#endif
 
34860
/* includes end */"
 
34861
 
 
34862
 
 
34863
 
 
34864
for ac_header in sys/types.h string.h strings.h
 
34865
do
 
34866
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34867
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34868
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
34869
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
34870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34871
else
 
34872
  cat >conftest.$ac_ext <<_ACEOF
 
34873
/* confdefs.h.  */
 
34874
_ACEOF
 
34875
cat confdefs.h >>conftest.$ac_ext
 
34876
cat >>conftest.$ac_ext <<_ACEOF
 
34877
/* end confdefs.h.  */
 
34878
$curl_includes_string
 
34879
 
 
34880
#include <$ac_header>
 
34881
_ACEOF
 
34882
rm -f conftest.$ac_objext
 
34883
if { (ac_try="$ac_compile"
 
34884
case "(($ac_try" in
 
34885
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34886
  *) ac_try_echo=$ac_try;;
 
34887
esac
 
34888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34889
  (eval "$ac_compile") 2>conftest.er1
 
34890
  ac_status=$?
 
34891
  grep -v '^ *+' conftest.er1 >conftest.err
 
34892
  rm -f conftest.er1
 
34893
  cat conftest.err >&5
 
34894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34895
  (exit $ac_status); } && {
 
34896
         test -z "$ac_c_werror_flag" ||
 
34897
         test ! -s conftest.err
 
34898
       } && test -s conftest.$ac_objext; then
 
34899
  eval "$as_ac_Header=yes"
 
34900
else
 
34901
  echo "$as_me: failed program was:" >&5
 
34902
sed 's/^/| /' conftest.$ac_ext >&5
 
34903
 
 
34904
        eval "$as_ac_Header=no"
 
34905
fi
 
34906
 
 
34907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
34908
fi
 
34909
ac_res=`eval echo '${'$as_ac_Header'}'`
 
34910
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34911
echo "${ECHO_T}$ac_res" >&6; }
 
34912
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34913
  cat >>confdefs.h <<_ACEOF
 
34914
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34915
_ACEOF
 
34916
 
 
34917
fi
 
34918
 
 
34919
done
 
34920
 
 
34921
 
 
34922
 
 
34923
            #
 
34924
  tst_links_getaddrinfo="unknown"
 
34925
  tst_proto_getaddrinfo="unknown"
 
34926
  tst_compi_getaddrinfo="unknown"
 
34927
  tst_works_getaddrinfo="unknown"
 
34928
  tst_allow_getaddrinfo="unknown"
 
34929
  #
 
34930
  { echo "$as_me:$LINENO: checking if getaddrinfo can be linked" >&5
 
34931
echo $ECHO_N "checking if getaddrinfo can be linked... $ECHO_C" >&6; }
 
34932
  cat >conftest.$ac_ext <<_ACEOF
 
34933
 
 
34934
    /* confdefs.h.  */
 
34935
_ACEOF
 
34936
cat confdefs.h >>conftest.$ac_ext
 
34937
cat >>conftest.$ac_ext <<_ACEOF
 
34938
/* end confdefs.h.  */
 
34939
 
 
34940
      $curl_includes_ws2tcpip
 
34941
      $curl_includes_sys_socket
 
34942
      $curl_includes_netdb
 
34943
 
 
34944
int main (void)
 
34945
{
 
34946
 
 
34947
      if(0 != getaddrinfo(0, 0, 0, 0))
 
34948
        return 1;
 
34949
 
 
34950
 ;
 
34951
 return 0;
 
34952
}
 
34953
 
 
34954
_ACEOF
 
34955
rm -f conftest.$ac_objext conftest$ac_exeext
 
34956
if { (ac_try="$ac_link"
 
34957
case "(($ac_try" in
 
34958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34959
  *) ac_try_echo=$ac_try;;
 
34960
esac
 
34961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34962
  (eval "$ac_link") 2>conftest.er1
 
34963
  ac_status=$?
 
34964
  grep -v '^ *+' conftest.er1 >conftest.err
 
34965
  rm -f conftest.er1
 
34966
  cat conftest.err >&5
 
34967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34968
  (exit $ac_status); } && {
 
34969
         test -z "$ac_c_werror_flag" ||
 
34970
         test ! -s conftest.err
 
34971
       } && test -s conftest$ac_exeext &&
 
34972
       $as_test_x conftest$ac_exeext; then
 
34973
 
 
34974
    { echo "$as_me:$LINENO: result: yes" >&5
 
34975
echo "${ECHO_T}yes" >&6; }
 
34976
    tst_links_getaddrinfo="yes"
 
34977
 
 
34978
else
 
34979
  echo "$as_me: failed program was:" >&5
 
34980
sed 's/^/| /' conftest.$ac_ext >&5
 
34981
 
 
34982
 
 
34983
    { echo "$as_me:$LINENO: result: no" >&5
 
34984
echo "${ECHO_T}no" >&6; }
 
34985
    tst_links_getaddrinfo="no"
 
34986
 
 
34987
fi
 
34988
 
 
34989
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34990
      conftest$ac_exeext conftest.$ac_ext
 
34991
  #
 
34992
  if test "$tst_links_getaddrinfo" = "yes"; then
 
34993
    { echo "$as_me:$LINENO: checking if getaddrinfo is prototyped" >&5
 
34994
echo $ECHO_N "checking if getaddrinfo is prototyped... $ECHO_C" >&6; }
 
34995
    cat >conftest.$ac_ext <<_ACEOF
 
34996
/* confdefs.h.  */
 
34997
_ACEOF
 
34998
cat confdefs.h >>conftest.$ac_ext
 
34999
cat >>conftest.$ac_ext <<_ACEOF
 
35000
/* end confdefs.h.  */
 
35001
 
 
35002
      $curl_includes_ws2tcpip
 
35003
      $curl_includes_sys_socket
 
35004
      $curl_includes_netdb
 
35005
 
 
35006
_ACEOF
 
35007
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
35008
  $EGREP "getaddrinfo" >/dev/null 2>&1; then
 
35009
 
 
35010
      { echo "$as_me:$LINENO: result: yes" >&5
 
35011
echo "${ECHO_T}yes" >&6; }
 
35012
      tst_proto_getaddrinfo="yes"
 
35013
 
 
35014
else
 
35015
 
 
35016
      { echo "$as_me:$LINENO: result: no" >&5
 
35017
echo "${ECHO_T}no" >&6; }
 
35018
      tst_proto_getaddrinfo="no"
 
35019
 
 
35020
fi
 
35021
rm -f conftest*
 
35022
 
 
35023
  fi
 
35024
  #
 
35025
  if test "$tst_proto_getaddrinfo" = "yes"; then
 
35026
    { echo "$as_me:$LINENO: checking if getaddrinfo is compilable" >&5
 
35027
echo $ECHO_N "checking if getaddrinfo is compilable... $ECHO_C" >&6; }
 
35028
    cat >conftest.$ac_ext <<_ACEOF
 
35029
 
 
35030
      /* confdefs.h.  */
 
35031
_ACEOF
 
35032
cat confdefs.h >>conftest.$ac_ext
 
35033
cat >>conftest.$ac_ext <<_ACEOF
 
35034
/* end confdefs.h.  */
 
35035
 
 
35036
        $curl_includes_ws2tcpip
 
35037
        $curl_includes_sys_socket
 
35038
        $curl_includes_netdb
 
35039
 
 
35040
int main (void)
 
35041
{
 
35042
 
 
35043
        if(0 != getaddrinfo(0, 0, 0, 0))
 
35044
          return 1;
 
35045
 
 
35046
 ;
 
35047
 return 0;
 
35048
}
 
35049
 
 
35050
_ACEOF
 
35051
rm -f conftest.$ac_objext
 
35052
if { (ac_try="$ac_compile"
 
35053
case "(($ac_try" in
 
35054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35055
  *) ac_try_echo=$ac_try;;
 
35056
esac
 
35057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35058
  (eval "$ac_compile") 2>conftest.er1
 
35059
  ac_status=$?
 
35060
  grep -v '^ *+' conftest.er1 >conftest.err
 
35061
  rm -f conftest.er1
 
35062
  cat conftest.err >&5
 
35063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35064
  (exit $ac_status); } && {
 
35065
         test -z "$ac_c_werror_flag" ||
 
35066
         test ! -s conftest.err
 
35067
       } && test -s conftest.$ac_objext; then
 
35068
 
 
35069
      { echo "$as_me:$LINENO: result: yes" >&5
 
35070
echo "${ECHO_T}yes" >&6; }
 
35071
      tst_compi_getaddrinfo="yes"
 
35072
 
 
35073
else
 
35074
  echo "$as_me: failed program was:" >&5
 
35075
sed 's/^/| /' conftest.$ac_ext >&5
 
35076
 
 
35077
 
 
35078
      { echo "$as_me:$LINENO: result: no" >&5
 
35079
echo "${ECHO_T}no" >&6; }
 
35080
      tst_compi_getaddrinfo="no"
 
35081
 
 
35082
fi
 
35083
 
 
35084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35085
  fi
 
35086
  #
 
35087
    if test "x$cross_compiling" != "xyes" &&
 
35088
    test "$tst_compi_getaddrinfo" = "yes"; then
 
35089
    { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
 
35090
echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
 
35091
    if test "$cross_compiling" = yes; then
 
35092
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
35093
See \`config.log' for more details." >&5
 
35094
echo "$as_me: error: cannot run test program while cross compiling
 
35095
See \`config.log' for more details." >&2;}
 
35096
   { (exit 1); exit 1; }; }
 
35097
else
 
35098
  cat >conftest.$ac_ext <<_ACEOF
 
35099
 
 
35100
      /* confdefs.h.  */
 
35101
_ACEOF
 
35102
cat confdefs.h >>conftest.$ac_ext
 
35103
cat >>conftest.$ac_ext <<_ACEOF
 
35104
/* end confdefs.h.  */
 
35105
 
 
35106
        $curl_includes_ws2tcpip
 
35107
        $curl_includes_stdlib
 
35108
        $curl_includes_string
 
35109
        $curl_includes_sys_socket
 
35110
        $curl_includes_netdb
 
35111
 
 
35112
int main (void)
 
35113
{
 
35114
 
 
35115
        struct addrinfo hints;
 
35116
        struct addrinfo *ai = 0;
 
35117
        int error;
 
35118
 
 
35119
        memset(&hints, 0, sizeof(hints));
 
35120
        hints.ai_flags = AI_NUMERICHOST;
 
35121
        hints.ai_family = AF_UNSPEC;
 
35122
        hints.ai_socktype = SOCK_STREAM;
 
35123
        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
 
35124
        if(error || !ai)
 
35125
          exit(1); /* fail */
 
35126
        else
 
35127
          exit(0);
 
35128
 
 
35129
 ;
 
35130
 return 0;
 
35131
}
 
35132
 
 
35133
_ACEOF
 
35134
rm -f conftest$ac_exeext
 
35135
if { (ac_try="$ac_link"
 
35136
case "(($ac_try" in
 
35137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35138
  *) ac_try_echo=$ac_try;;
 
35139
esac
 
35140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35141
  (eval "$ac_link") 2>&5
 
35142
  ac_status=$?
 
35143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35144
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
35145
  { (case "(($ac_try" in
 
35146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35147
  *) ac_try_echo=$ac_try;;
 
35148
esac
 
35149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35150
  (eval "$ac_try") 2>&5
 
35151
  ac_status=$?
 
35152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35153
  (exit $ac_status); }; }; then
 
35154
 
 
35155
      { echo "$as_me:$LINENO: result: yes" >&5
 
35156
echo "${ECHO_T}yes" >&6; }
 
35157
      tst_works_getaddrinfo="yes"
 
35158
 
 
35159
else
 
35160
  echo "$as_me: program exited with status $ac_status" >&5
 
35161
echo "$as_me: failed program was:" >&5
 
35162
sed 's/^/| /' conftest.$ac_ext >&5
 
35163
 
 
35164
( exit $ac_status )
 
35165
 
 
35166
      { echo "$as_me:$LINENO: result: no" >&5
 
35167
echo "${ECHO_T}no" >&6; }
 
35168
      tst_works_getaddrinfo="no"
 
35169
 
 
35170
fi
 
35171
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
35172
fi
 
35173
 
 
35174
 
 
35175
  fi
 
35176
  #
 
35177
  if test "$tst_compi_getaddrinfo" = "yes" &&
 
35178
    test "$tst_works_getaddrinfo" != "no"; then
 
35179
    { echo "$as_me:$LINENO: checking if getaddrinfo usage allowed" >&5
 
35180
echo $ECHO_N "checking if getaddrinfo usage allowed... $ECHO_C" >&6; }
 
35181
    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
 
35182
      { echo "$as_me:$LINENO: result: yes" >&5
 
35183
echo "${ECHO_T}yes" >&6; }
 
35184
      tst_allow_getaddrinfo="yes"
 
35185
    else
 
35186
      { echo "$as_me:$LINENO: result: no" >&5
 
35187
echo "${ECHO_T}no" >&6; }
 
35188
      tst_allow_getaddrinfo="no"
 
35189
    fi
 
35190
  fi
 
35191
  #
 
35192
  { echo "$as_me:$LINENO: checking if getaddrinfo might be used" >&5
 
35193
echo $ECHO_N "checking if getaddrinfo might be used... $ECHO_C" >&6; }
 
35194
  if test "$tst_links_getaddrinfo" = "yes" &&
 
35195
     test "$tst_proto_getaddrinfo" = "yes" &&
 
35196
     test "$tst_compi_getaddrinfo" = "yes" &&
 
35197
     test "$tst_allow_getaddrinfo" = "yes" &&
 
35198
     test "$tst_works_getaddrinfo" != "no"; then
 
35199
    { echo "$as_me:$LINENO: result: yes" >&5
 
35200
echo "${ECHO_T}yes" >&6; }
 
35201
 
 
35202
cat >>confdefs.h <<_ACEOF
 
35203
#define HAVE_GETADDRINFO 1
 
35204
_ACEOF
 
35205
 
 
35206
    ac_cv_func_getaddrinfo="yes"
 
35207
  else
 
35208
    { echo "$as_me:$LINENO: result: no" >&5
 
35209
echo "${ECHO_T}no" >&6; }
 
35210
    ac_cv_func_getaddrinfo="no"
 
35211
  fi
 
35212
 
 
35213
 
 
35214
curl_includes_winsock2="\
 
35215
/* includes start */
 
35216
#ifdef HAVE_WINDOWS_H
 
35217
#  ifndef WIN32_LEAN_AND_MEAN
 
35218
#    define WIN32_LEAN_AND_MEAN
 
35219
#  endif
 
35220
#  include <windows.h>
 
35221
#  ifdef HAVE_WINSOCK2_H
 
35222
#    include <winsock2.h>
 
35223
#  else
 
35224
#    ifdef HAVE_WINSOCK_H
 
35225
#      include <winsock.h>
 
35226
#    endif
 
35227
#  endif
 
35228
#endif
 
35229
/* includes end */"
 
35230
 
 
35231
  { echo "$as_me:$LINENO: checking for windows.h" >&5
 
35232
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
 
35233
if test "${ac_cv_header_windows_h+set}" = set; then
 
35234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35235
else
 
35236
 
 
35237
    cat >conftest.$ac_ext <<_ACEOF
 
35238
 
 
35239
      /* confdefs.h.  */
 
35240
_ACEOF
 
35241
cat confdefs.h >>conftest.$ac_ext
 
35242
cat >>conftest.$ac_ext <<_ACEOF
 
35243
/* end confdefs.h.  */
 
35244
 
 
35245
#undef inline
 
35246
#ifndef WIN32_LEAN_AND_MEAN
 
35247
#define WIN32_LEAN_AND_MEAN
 
35248
#endif
 
35249
#include <windows.h>
 
35250
 
 
35251
int main (void)
 
35252
{
 
35253
 
 
35254
#if defined(__CYGWIN__) || defined(__CEGCC__)
 
35255
        HAVE_WINDOWS_H shall not be defined.
 
35256
#else
 
35257
        int dummy=2*WINVER;
 
35258
#endif
 
35259
 
 
35260
 ;
 
35261
 return 0;
 
35262
}
 
35263
 
 
35264
_ACEOF
 
35265
rm -f conftest.$ac_objext
 
35266
if { (ac_try="$ac_compile"
 
35267
case "(($ac_try" in
 
35268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35269
  *) ac_try_echo=$ac_try;;
 
35270
esac
 
35271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35272
  (eval "$ac_compile") 2>conftest.er1
 
35273
  ac_status=$?
 
35274
  grep -v '^ *+' conftest.er1 >conftest.err
 
35275
  rm -f conftest.er1
 
35276
  cat conftest.err >&5
 
35277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35278
  (exit $ac_status); } && {
 
35279
         test -z "$ac_c_werror_flag" ||
 
35280
         test ! -s conftest.err
 
35281
       } && test -s conftest.$ac_objext; then
 
35282
 
 
35283
      ac_cv_header_windows_h="yes"
 
35284
 
 
35285
else
 
35286
  echo "$as_me: failed program was:" >&5
 
35287
sed 's/^/| /' conftest.$ac_ext >&5
 
35288
 
 
35289
 
 
35290
      ac_cv_header_windows_h="no"
 
35291
 
 
35292
fi
 
35293
 
 
35294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35295
 
 
35296
fi
 
35297
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
 
35298
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
 
35299
  case "$ac_cv_header_windows_h" in
 
35300
    yes)
 
35301
 
 
35302
cat >>confdefs.h <<_ACEOF
 
35303
#define HAVE_WINDOWS_H 1
 
35304
_ACEOF
 
35305
 
 
35306
 
 
35307
cat >>confdefs.h <<_ACEOF
 
35308
#define WIN32_LEAN_AND_MEAN 1
 
35309
_ACEOF
 
35310
 
 
35311
      ;;
 
35312
  esac
 
35313
 
 
35314
 
 
35315
    { echo "$as_me:$LINENO: checking for winsock.h" >&5
 
35316
echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
 
35317
if test "${ac_cv_header_winsock_h+set}" = set; then
 
35318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35319
else
 
35320
 
 
35321
    cat >conftest.$ac_ext <<_ACEOF
 
35322
 
 
35323
      /* confdefs.h.  */
 
35324
_ACEOF
 
35325
cat confdefs.h >>conftest.$ac_ext
 
35326
cat >>conftest.$ac_ext <<_ACEOF
 
35327
/* end confdefs.h.  */
 
35328
 
 
35329
#undef inline
 
35330
#ifndef WIN32_LEAN_AND_MEAN
 
35331
#define WIN32_LEAN_AND_MEAN
 
35332
#endif
 
35333
#include <windows.h>
 
35334
#include <winsock.h>
 
35335
 
 
35336
int main (void)
 
35337
{
 
35338
 
 
35339
#if defined(__CYGWIN__) || defined(__CEGCC__)
 
35340
        HAVE_WINSOCK_H shall not be defined.
 
35341
#else
 
35342
        int dummy=WSACleanup();
 
35343
#endif
 
35344
 
 
35345
 ;
 
35346
 return 0;
 
35347
}
 
35348
 
 
35349
_ACEOF
 
35350
rm -f conftest.$ac_objext
 
35351
if { (ac_try="$ac_compile"
 
35352
case "(($ac_try" in
 
35353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35354
  *) ac_try_echo=$ac_try;;
 
35355
esac
 
35356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35357
  (eval "$ac_compile") 2>conftest.er1
 
35358
  ac_status=$?
 
35359
  grep -v '^ *+' conftest.er1 >conftest.err
 
35360
  rm -f conftest.er1
 
35361
  cat conftest.err >&5
 
35362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35363
  (exit $ac_status); } && {
 
35364
         test -z "$ac_c_werror_flag" ||
 
35365
         test ! -s conftest.err
 
35366
       } && test -s conftest.$ac_objext; then
 
35367
 
 
35368
      ac_cv_header_winsock_h="yes"
 
35369
 
 
35370
else
 
35371
  echo "$as_me: failed program was:" >&5
 
35372
sed 's/^/| /' conftest.$ac_ext >&5
 
35373
 
 
35374
 
 
35375
      ac_cv_header_winsock_h="no"
 
35376
 
 
35377
fi
 
35378
 
 
35379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35380
 
 
35381
fi
 
35382
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
 
35383
echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
 
35384
  case "$ac_cv_header_winsock_h" in
 
35385
    yes)
 
35386
 
 
35387
cat >>confdefs.h <<_ACEOF
 
35388
#define HAVE_WINSOCK_H 1
 
35389
_ACEOF
 
35390
 
 
35391
      ;;
 
35392
  esac
 
35393
 
 
35394
 
 
35395
    { echo "$as_me:$LINENO: checking for winsock2.h" >&5
 
35396
echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
 
35397
if test "${ac_cv_header_winsock2_h+set}" = set; then
 
35398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35399
else
 
35400
 
 
35401
    cat >conftest.$ac_ext <<_ACEOF
 
35402
 
 
35403
      /* confdefs.h.  */
 
35404
_ACEOF
 
35405
cat confdefs.h >>conftest.$ac_ext
 
35406
cat >>conftest.$ac_ext <<_ACEOF
 
35407
/* end confdefs.h.  */
 
35408
 
 
35409
#undef inline
 
35410
#ifndef WIN32_LEAN_AND_MEAN
 
35411
#define WIN32_LEAN_AND_MEAN
 
35412
#endif
 
35413
#include <windows.h>
 
35414
#include <winsock2.h>
 
35415
 
 
35416
int main (void)
 
35417
{
 
35418
 
 
35419
#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
 
35420
        HAVE_WINSOCK2_H shall not be defined.
 
35421
#else
 
35422
        int dummy=2*IPPROTO_ESP;
 
35423
#endif
 
35424
 
 
35425
 ;
 
35426
 return 0;
 
35427
}
 
35428
 
 
35429
_ACEOF
 
35430
rm -f conftest.$ac_objext
 
35431
if { (ac_try="$ac_compile"
 
35432
case "(($ac_try" in
 
35433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35434
  *) ac_try_echo=$ac_try;;
 
35435
esac
 
35436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35437
  (eval "$ac_compile") 2>conftest.er1
 
35438
  ac_status=$?
 
35439
  grep -v '^ *+' conftest.er1 >conftest.err
 
35440
  rm -f conftest.er1
 
35441
  cat conftest.err >&5
 
35442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35443
  (exit $ac_status); } && {
 
35444
         test -z "$ac_c_werror_flag" ||
 
35445
         test ! -s conftest.err
 
35446
       } && test -s conftest.$ac_objext; then
 
35447
 
 
35448
      ac_cv_header_winsock2_h="yes"
 
35449
 
 
35450
else
 
35451
  echo "$as_me: failed program was:" >&5
 
35452
sed 's/^/| /' conftest.$ac_ext >&5
 
35453
 
 
35454
 
 
35455
      ac_cv_header_winsock2_h="no"
 
35456
 
 
35457
fi
 
35458
 
 
35459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35460
 
 
35461
fi
 
35462
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
 
35463
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
 
35464
  case "$ac_cv_header_winsock2_h" in
 
35465
    yes)
 
35466
 
 
35467
cat >>confdefs.h <<_ACEOF
 
35468
#define HAVE_WINSOCK2_H 1
 
35469
_ACEOF
 
35470
 
 
35471
      ;;
 
35472
  esac
 
35473
 
 
35474
 
 
35475
 
 
35476
      #
 
35477
  tst_links_gethostbyaddr="unknown"
 
35478
  tst_proto_gethostbyaddr="unknown"
 
35479
  tst_compi_gethostbyaddr="unknown"
 
35480
  tst_allow_gethostbyaddr="unknown"
 
35481
  #
 
35482
  { echo "$as_me:$LINENO: checking if gethostbyaddr can be linked" >&5
 
35483
echo $ECHO_N "checking if gethostbyaddr can be linked... $ECHO_C" >&6; }
 
35484
  cat >conftest.$ac_ext <<_ACEOF
 
35485
 
 
35486
    /* confdefs.h.  */
 
35487
_ACEOF
 
35488
cat confdefs.h >>conftest.$ac_ext
 
35489
cat >>conftest.$ac_ext <<_ACEOF
 
35490
/* end confdefs.h.  */
 
35491
 
 
35492
      $curl_includes_winsock2
 
35493
      $curl_includes_netdb
 
35494
 
 
35495
int main (void)
 
35496
{
 
35497
 
 
35498
      if(0 != gethostbyaddr(0, 0, 0))
 
35499
        return 1;
 
35500
 
 
35501
 ;
 
35502
 return 0;
 
35503
}
 
35504
 
 
35505
_ACEOF
 
35506
rm -f conftest.$ac_objext conftest$ac_exeext
 
35507
if { (ac_try="$ac_link"
 
35508
case "(($ac_try" in
 
35509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35510
  *) ac_try_echo=$ac_try;;
 
35511
esac
 
35512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35513
  (eval "$ac_link") 2>conftest.er1
 
35514
  ac_status=$?
 
35515
  grep -v '^ *+' conftest.er1 >conftest.err
 
35516
  rm -f conftest.er1
 
35517
  cat conftest.err >&5
 
35518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35519
  (exit $ac_status); } && {
 
35520
         test -z "$ac_c_werror_flag" ||
 
35521
         test ! -s conftest.err
 
35522
       } && test -s conftest$ac_exeext &&
 
35523
       $as_test_x conftest$ac_exeext; then
 
35524
 
 
35525
    { echo "$as_me:$LINENO: result: yes" >&5
 
35526
echo "${ECHO_T}yes" >&6; }
 
35527
    tst_links_gethostbyaddr="yes"
 
35528
 
 
35529
else
 
35530
  echo "$as_me: failed program was:" >&5
 
35531
sed 's/^/| /' conftest.$ac_ext >&5
 
35532
 
 
35533
 
 
35534
    { echo "$as_me:$LINENO: result: no" >&5
 
35535
echo "${ECHO_T}no" >&6; }
 
35536
    tst_links_gethostbyaddr="no"
 
35537
 
 
35538
fi
 
35539
 
 
35540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
35541
      conftest$ac_exeext conftest.$ac_ext
 
35542
  #
 
35543
  if test "$tst_links_gethostbyaddr" = "yes"; then
 
35544
    { echo "$as_me:$LINENO: checking if gethostbyaddr is prototyped" >&5
 
35545
echo $ECHO_N "checking if gethostbyaddr is prototyped... $ECHO_C" >&6; }
 
35546
    cat >conftest.$ac_ext <<_ACEOF
 
35547
/* confdefs.h.  */
 
35548
_ACEOF
 
35549
cat confdefs.h >>conftest.$ac_ext
 
35550
cat >>conftest.$ac_ext <<_ACEOF
 
35551
/* end confdefs.h.  */
 
35552
 
 
35553
      $curl_includes_winsock2
 
35554
      $curl_includes_netdb
 
35555
 
 
35556
_ACEOF
 
35557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
35558
  $EGREP "gethostbyaddr" >/dev/null 2>&1; then
 
35559
 
 
35560
      { echo "$as_me:$LINENO: result: yes" >&5
 
35561
echo "${ECHO_T}yes" >&6; }
 
35562
      tst_proto_gethostbyaddr="yes"
 
35563
 
 
35564
else
 
35565
 
 
35566
      { echo "$as_me:$LINENO: result: no" >&5
 
35567
echo "${ECHO_T}no" >&6; }
 
35568
      tst_proto_gethostbyaddr="no"
 
35569
 
 
35570
fi
 
35571
rm -f conftest*
 
35572
 
 
35573
  fi
 
35574
  #
 
35575
  if test "$tst_proto_gethostbyaddr" = "yes"; then
 
35576
    { echo "$as_me:$LINENO: checking if gethostbyaddr is compilable" >&5
 
35577
echo $ECHO_N "checking if gethostbyaddr is compilable... $ECHO_C" >&6; }
 
35578
    cat >conftest.$ac_ext <<_ACEOF
 
35579
 
 
35580
      /* confdefs.h.  */
 
35581
_ACEOF
 
35582
cat confdefs.h >>conftest.$ac_ext
 
35583
cat >>conftest.$ac_ext <<_ACEOF
 
35584
/* end confdefs.h.  */
 
35585
 
 
35586
        $curl_includes_winsock2
 
35587
        $curl_includes_netdb
 
35588
 
 
35589
int main (void)
 
35590
{
 
35591
 
 
35592
        if(0 != gethostbyaddr(0, 0, 0))
 
35593
          return 1;
 
35594
 
 
35595
 ;
 
35596
 return 0;
 
35597
}
 
35598
 
 
35599
_ACEOF
 
35600
rm -f conftest.$ac_objext
 
35601
if { (ac_try="$ac_compile"
 
35602
case "(($ac_try" in
 
35603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35604
  *) ac_try_echo=$ac_try;;
 
35605
esac
 
35606
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35607
  (eval "$ac_compile") 2>conftest.er1
 
35608
  ac_status=$?
 
35609
  grep -v '^ *+' conftest.er1 >conftest.err
 
35610
  rm -f conftest.er1
 
35611
  cat conftest.err >&5
 
35612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35613
  (exit $ac_status); } && {
 
35614
         test -z "$ac_c_werror_flag" ||
 
35615
         test ! -s conftest.err
 
35616
       } && test -s conftest.$ac_objext; then
 
35617
 
 
35618
      { echo "$as_me:$LINENO: result: yes" >&5
 
35619
echo "${ECHO_T}yes" >&6; }
 
35620
      tst_compi_gethostbyaddr="yes"
 
35621
 
 
35622
else
 
35623
  echo "$as_me: failed program was:" >&5
 
35624
sed 's/^/| /' conftest.$ac_ext >&5
 
35625
 
 
35626
 
 
35627
      { echo "$as_me:$LINENO: result: no" >&5
 
35628
echo "${ECHO_T}no" >&6; }
 
35629
      tst_compi_gethostbyaddr="no"
 
35630
 
 
35631
fi
 
35632
 
 
35633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35634
  fi
 
35635
  #
 
35636
  if test "$tst_compi_gethostbyaddr" = "yes"; then
 
35637
    { echo "$as_me:$LINENO: checking if gethostbyaddr usage allowed" >&5
 
35638
echo $ECHO_N "checking if gethostbyaddr usage allowed... $ECHO_C" >&6; }
 
35639
    if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
 
35640
      { echo "$as_me:$LINENO: result: yes" >&5
 
35641
echo "${ECHO_T}yes" >&6; }
 
35642
      tst_allow_gethostbyaddr="yes"
 
35643
    else
 
35644
      { echo "$as_me:$LINENO: result: no" >&5
 
35645
echo "${ECHO_T}no" >&6; }
 
35646
      tst_allow_gethostbyaddr="no"
 
35647
    fi
 
35648
  fi
 
35649
  #
 
35650
  { echo "$as_me:$LINENO: checking if gethostbyaddr might be used" >&5
 
35651
echo $ECHO_N "checking if gethostbyaddr might be used... $ECHO_C" >&6; }
 
35652
  if test "$tst_links_gethostbyaddr" = "yes" &&
 
35653
     test "$tst_proto_gethostbyaddr" = "yes" &&
 
35654
     test "$tst_compi_gethostbyaddr" = "yes" &&
 
35655
     test "$tst_allow_gethostbyaddr" = "yes"; then
 
35656
    { echo "$as_me:$LINENO: result: yes" >&5
 
35657
echo "${ECHO_T}yes" >&6; }
 
35658
 
 
35659
cat >>confdefs.h <<_ACEOF
 
35660
#define HAVE_GETHOSTBYADDR 1
 
35661
_ACEOF
 
35662
 
 
35663
    ac_cv_func_gethostbyaddr="yes"
 
35664
  else
 
35665
    { echo "$as_me:$LINENO: result: no" >&5
 
35666
echo "${ECHO_T}no" >&6; }
 
35667
    ac_cv_func_gethostbyaddr="no"
 
35668
  fi
 
35669
 
 
35670
 
 
35671
    #
 
35672
  tst_links_gethostbyaddr_r="unknown"
 
35673
  tst_proto_gethostbyaddr_r="unknown"
 
35674
  tst_compi_gethostbyaddr_r="unknown"
 
35675
  tst_allow_gethostbyaddr_r="unknown"
 
35676
  tst_nargs_gethostbyaddr_r="unknown"
 
35677
  #
 
35678
  { echo "$as_me:$LINENO: checking if gethostbyaddr_r can be linked" >&5
 
35679
echo $ECHO_N "checking if gethostbyaddr_r can be linked... $ECHO_C" >&6; }
 
35680
  cat >conftest.$ac_ext <<_ACEOF
 
35681
 
 
35682
    /* confdefs.h.  */
 
35683
_ACEOF
 
35684
cat confdefs.h >>conftest.$ac_ext
 
35685
cat >>conftest.$ac_ext <<_ACEOF
 
35686
/* end confdefs.h.  */
 
35687
 
 
35688
#define gethostbyaddr_r innocuous_gethostbyaddr_r
 
35689
#ifdef __STDC__
 
35690
# include <limits.h>
 
35691
#else
 
35692
# include <assert.h>
 
35693
#endif
 
35694
#undef gethostbyaddr_r
 
35695
#ifdef __cplusplus
 
35696
extern "C"
 
35697
#endif
 
35698
char gethostbyaddr_r ();
 
35699
#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
 
35700
choke me
 
35701
#endif
 
35702
 
 
35703
int main (void)
 
35704
{
 
35705
return gethostbyaddr_r ();
 
35706
 ;
 
35707
 return 0;
 
35708
}
 
35709
 
 
35710
_ACEOF
 
35711
rm -f conftest.$ac_objext conftest$ac_exeext
 
35712
if { (ac_try="$ac_link"
 
35713
case "(($ac_try" in
 
35714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35715
  *) ac_try_echo=$ac_try;;
 
35716
esac
 
35717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35718
  (eval "$ac_link") 2>conftest.er1
 
35719
  ac_status=$?
 
35720
  grep -v '^ *+' conftest.er1 >conftest.err
 
35721
  rm -f conftest.er1
 
35722
  cat conftest.err >&5
 
35723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35724
  (exit $ac_status); } && {
 
35725
         test -z "$ac_c_werror_flag" ||
 
35726
         test ! -s conftest.err
 
35727
       } && test -s conftest$ac_exeext &&
 
35728
       $as_test_x conftest$ac_exeext; then
 
35729
 
 
35730
    { echo "$as_me:$LINENO: result: yes" >&5
 
35731
echo "${ECHO_T}yes" >&6; }
 
35732
    tst_links_gethostbyaddr_r="yes"
 
35733
 
 
35734
else
 
35735
  echo "$as_me: failed program was:" >&5
 
35736
sed 's/^/| /' conftest.$ac_ext >&5
 
35737
 
 
35738
 
 
35739
    { echo "$as_me:$LINENO: result: no" >&5
 
35740
echo "${ECHO_T}no" >&6; }
 
35741
    tst_links_gethostbyaddr_r="no"
 
35742
 
 
35743
fi
 
35744
 
 
35745
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
35746
      conftest$ac_exeext conftest.$ac_ext
 
35747
  #
 
35748
  if test "$tst_links_gethostbyaddr_r" = "yes"; then
 
35749
    { echo "$as_me:$LINENO: checking if gethostbyaddr_r is prototyped" >&5
 
35750
echo $ECHO_N "checking if gethostbyaddr_r is prototyped... $ECHO_C" >&6; }
 
35751
    cat >conftest.$ac_ext <<_ACEOF
 
35752
/* confdefs.h.  */
 
35753
_ACEOF
 
35754
cat confdefs.h >>conftest.$ac_ext
 
35755
cat >>conftest.$ac_ext <<_ACEOF
 
35756
/* end confdefs.h.  */
 
35757
 
 
35758
      $curl_includes_netdb
 
35759
 
 
35760
_ACEOF
 
35761
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
35762
  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
 
35763
 
 
35764
      { echo "$as_me:$LINENO: result: yes" >&5
 
35765
echo "${ECHO_T}yes" >&6; }
 
35766
      tst_proto_gethostbyaddr_r="yes"
 
35767
 
 
35768
else
 
35769
 
 
35770
      { echo "$as_me:$LINENO: result: no" >&5
 
35771
echo "${ECHO_T}no" >&6; }
 
35772
      tst_proto_gethostbyaddr_r="no"
 
35773
 
 
35774
fi
 
35775
rm -f conftest*
 
35776
 
 
35777
  fi
 
35778
  #
 
35779
  if test "$tst_proto_gethostbyaddr_r" = "yes"; then
 
35780
    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
 
35781
      { echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 args." >&5
 
35782
echo $ECHO_N "checking if gethostbyaddr_r takes 5 args.... $ECHO_C" >&6; }
 
35783
      cat >conftest.$ac_ext <<_ACEOF
 
35784
 
 
35785
        /* confdefs.h.  */
 
35786
_ACEOF
 
35787
cat confdefs.h >>conftest.$ac_ext
 
35788
cat >>conftest.$ac_ext <<_ACEOF
 
35789
/* end confdefs.h.  */
 
35790
 
 
35791
          $curl_includes_netdb
 
35792
 
 
35793
int main (void)
 
35794
{
 
35795
 
 
35796
          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
 
35797
            return 1;
 
35798
 
 
35799
 ;
 
35800
 return 0;
 
35801
}
 
35802
 
 
35803
_ACEOF
 
35804
rm -f conftest.$ac_objext
 
35805
if { (ac_try="$ac_compile"
 
35806
case "(($ac_try" in
 
35807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35808
  *) ac_try_echo=$ac_try;;
 
35809
esac
 
35810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35811
  (eval "$ac_compile") 2>conftest.er1
 
35812
  ac_status=$?
 
35813
  grep -v '^ *+' conftest.er1 >conftest.err
 
35814
  rm -f conftest.er1
 
35815
  cat conftest.err >&5
 
35816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35817
  (exit $ac_status); } && {
 
35818
         test -z "$ac_c_werror_flag" ||
 
35819
         test ! -s conftest.err
 
35820
       } && test -s conftest.$ac_objext; then
 
35821
 
 
35822
        { echo "$as_me:$LINENO: result: yes" >&5
 
35823
echo "${ECHO_T}yes" >&6; }
 
35824
        tst_compi_gethostbyaddr_r="yes"
 
35825
        tst_nargs_gethostbyaddr_r="5"
 
35826
 
 
35827
else
 
35828
  echo "$as_me: failed program was:" >&5
 
35829
sed 's/^/| /' conftest.$ac_ext >&5
 
35830
 
 
35831
 
 
35832
        { echo "$as_me:$LINENO: result: no" >&5
 
35833
echo "${ECHO_T}no" >&6; }
 
35834
        tst_compi_gethostbyaddr_r="no"
 
35835
 
 
35836
fi
 
35837
 
 
35838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35839
    fi
 
35840
    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
 
35841
      { echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 args." >&5
 
35842
echo $ECHO_N "checking if gethostbyaddr_r takes 7 args.... $ECHO_C" >&6; }
 
35843
      cat >conftest.$ac_ext <<_ACEOF
 
35844
 
 
35845
        /* confdefs.h.  */
 
35846
_ACEOF
 
35847
cat confdefs.h >>conftest.$ac_ext
 
35848
cat >>conftest.$ac_ext <<_ACEOF
 
35849
/* end confdefs.h.  */
 
35850
 
 
35851
          $curl_includes_netdb
 
35852
 
 
35853
int main (void)
 
35854
{
 
35855
 
 
35856
          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
 
35857
            return 1;
 
35858
 
 
35859
 ;
 
35860
 return 0;
 
35861
}
 
35862
 
 
35863
_ACEOF
 
35864
rm -f conftest.$ac_objext
 
35865
if { (ac_try="$ac_compile"
 
35866
case "(($ac_try" in
 
35867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35868
  *) ac_try_echo=$ac_try;;
 
35869
esac
 
35870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35871
  (eval "$ac_compile") 2>conftest.er1
 
35872
  ac_status=$?
 
35873
  grep -v '^ *+' conftest.er1 >conftest.err
 
35874
  rm -f conftest.er1
 
35875
  cat conftest.err >&5
 
35876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35877
  (exit $ac_status); } && {
 
35878
         test -z "$ac_c_werror_flag" ||
 
35879
         test ! -s conftest.err
 
35880
       } && test -s conftest.$ac_objext; then
 
35881
 
 
35882
        { echo "$as_me:$LINENO: result: yes" >&5
 
35883
echo "${ECHO_T}yes" >&6; }
 
35884
        tst_compi_gethostbyaddr_r="yes"
 
35885
        tst_nargs_gethostbyaddr_r="7"
 
35886
 
 
35887
else
 
35888
  echo "$as_me: failed program was:" >&5
 
35889
sed 's/^/| /' conftest.$ac_ext >&5
 
35890
 
 
35891
 
 
35892
        { echo "$as_me:$LINENO: result: no" >&5
 
35893
echo "${ECHO_T}no" >&6; }
 
35894
        tst_compi_gethostbyaddr_r="no"
 
35895
 
 
35896
fi
 
35897
 
 
35898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35899
    fi
 
35900
    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
 
35901
      { echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 args." >&5
 
35902
echo $ECHO_N "checking if gethostbyaddr_r takes 8 args.... $ECHO_C" >&6; }
 
35903
      cat >conftest.$ac_ext <<_ACEOF
 
35904
 
 
35905
        /* confdefs.h.  */
 
35906
_ACEOF
 
35907
cat confdefs.h >>conftest.$ac_ext
 
35908
cat >>conftest.$ac_ext <<_ACEOF
 
35909
/* end confdefs.h.  */
 
35910
 
 
35911
          $curl_includes_netdb
 
35912
 
 
35913
int main (void)
 
35914
{
 
35915
 
 
35916
          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
 
35917
            return 1;
 
35918
 
 
35919
 ;
 
35920
 return 0;
 
35921
}
 
35922
 
 
35923
_ACEOF
 
35924
rm -f conftest.$ac_objext
 
35925
if { (ac_try="$ac_compile"
 
35926
case "(($ac_try" in
 
35927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35928
  *) ac_try_echo=$ac_try;;
 
35929
esac
 
35930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35931
  (eval "$ac_compile") 2>conftest.er1
 
35932
  ac_status=$?
 
35933
  grep -v '^ *+' conftest.er1 >conftest.err
 
35934
  rm -f conftest.er1
 
35935
  cat conftest.err >&5
 
35936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35937
  (exit $ac_status); } && {
 
35938
         test -z "$ac_c_werror_flag" ||
 
35939
         test ! -s conftest.err
 
35940
       } && test -s conftest.$ac_objext; then
 
35941
 
 
35942
        { echo "$as_me:$LINENO: result: yes" >&5
 
35943
echo "${ECHO_T}yes" >&6; }
 
35944
        tst_compi_gethostbyaddr_r="yes"
 
35945
        tst_nargs_gethostbyaddr_r="8"
 
35946
 
 
35947
else
 
35948
  echo "$as_me: failed program was:" >&5
 
35949
sed 's/^/| /' conftest.$ac_ext >&5
 
35950
 
 
35951
 
 
35952
        { echo "$as_me:$LINENO: result: no" >&5
 
35953
echo "${ECHO_T}no" >&6; }
 
35954
        tst_compi_gethostbyaddr_r="no"
 
35955
 
 
35956
fi
 
35957
 
 
35958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35959
    fi
 
35960
    { echo "$as_me:$LINENO: checking if gethostbyaddr_r is compilable" >&5
 
35961
echo $ECHO_N "checking if gethostbyaddr_r is compilable... $ECHO_C" >&6; }
 
35962
    if test "$tst_compi_gethostbyaddr_r" = "yes"; then
 
35963
      { echo "$as_me:$LINENO: result: yes" >&5
 
35964
echo "${ECHO_T}yes" >&6; }
 
35965
    else
 
35966
      { echo "$as_me:$LINENO: result: no" >&5
 
35967
echo "${ECHO_T}no" >&6; }
 
35968
    fi
 
35969
  fi
 
35970
  #
 
35971
  if test "$tst_compi_gethostbyaddr_r" = "yes"; then
 
35972
    { echo "$as_me:$LINENO: checking if gethostbyaddr_r usage allowed" >&5
 
35973
echo $ECHO_N "checking if gethostbyaddr_r usage allowed... $ECHO_C" >&6; }
 
35974
    if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
 
35975
      { echo "$as_me:$LINENO: result: yes" >&5
 
35976
echo "${ECHO_T}yes" >&6; }
 
35977
      tst_allow_gethostbyaddr_r="yes"
 
35978
    else
 
35979
      { echo "$as_me:$LINENO: result: no" >&5
 
35980
echo "${ECHO_T}no" >&6; }
 
35981
      tst_allow_gethostbyaddr_r="no"
 
35982
    fi
 
35983
  fi
 
35984
  #
 
35985
  { echo "$as_me:$LINENO: checking if gethostbyaddr_r might be used" >&5
 
35986
echo $ECHO_N "checking if gethostbyaddr_r might be used... $ECHO_C" >&6; }
 
35987
  if test "$tst_links_gethostbyaddr_r" = "yes" &&
 
35988
     test "$tst_proto_gethostbyaddr_r" = "yes" &&
 
35989
     test "$tst_compi_gethostbyaddr_r" = "yes" &&
 
35990
     test "$tst_allow_gethostbyaddr_r" = "yes"; then
 
35991
    { echo "$as_me:$LINENO: result: yes" >&5
 
35992
echo "${ECHO_T}yes" >&6; }
 
35993
 
 
35994
cat >>confdefs.h <<_ACEOF
 
35995
#define HAVE_GETHOSTBYADDR_R 1
 
35996
_ACEOF
 
35997
 
 
35998
            #
 
35999
    if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
 
36000
 
 
36001
cat >>confdefs.h <<\_ACEOF
 
36002
#define HAVE_GETHOSTBYADDR_R_5 1
 
36003
_ACEOF
 
36004
 
 
36005
    elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
 
36006
 
 
36007
cat >>confdefs.h <<\_ACEOF
 
36008
#define HAVE_GETHOSTBYADDR_R_7 1
 
36009
_ACEOF
 
36010
 
 
36011
    elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
 
36012
 
 
36013
cat >>confdefs.h <<\_ACEOF
 
36014
#define HAVE_GETHOSTBYADDR_R_8 1
 
36015
_ACEOF
 
36016
 
 
36017
    fi
 
36018
    #
 
36019
    ac_cv_func_gethostbyaddr_r="yes"
 
36020
  else
 
36021
    { echo "$as_me:$LINENO: result: no" >&5
 
36022
echo "${ECHO_T}no" >&6; }
 
36023
    ac_cv_func_gethostbyaddr_r="no"
 
36024
  fi
 
36025
 
 
36026
 
 
36027
      #
 
36028
  tst_links_gethostbyname="unknown"
 
36029
  tst_proto_gethostbyname="unknown"
 
36030
  tst_compi_gethostbyname="unknown"
 
36031
  tst_allow_gethostbyname="unknown"
 
36032
  #
 
36033
  { echo "$as_me:$LINENO: checking if gethostbyname can be linked" >&5
 
36034
echo $ECHO_N "checking if gethostbyname can be linked... $ECHO_C" >&6; }
 
36035
  cat >conftest.$ac_ext <<_ACEOF
 
36036
 
 
36037
    /* confdefs.h.  */
 
36038
_ACEOF
 
36039
cat confdefs.h >>conftest.$ac_ext
 
36040
cat >>conftest.$ac_ext <<_ACEOF
 
36041
/* end confdefs.h.  */
 
36042
 
 
36043
      $curl_includes_winsock2
 
36044
      $curl_includes_netdb
 
36045
 
 
36046
int main (void)
 
36047
{
 
36048
 
 
36049
      if(0 != gethostbyname(0))
 
36050
        return 1;
 
36051
 
 
36052
 ;
 
36053
 return 0;
 
36054
}
 
36055
 
 
36056
_ACEOF
 
36057
rm -f conftest.$ac_objext conftest$ac_exeext
 
36058
if { (ac_try="$ac_link"
 
36059
case "(($ac_try" in
 
36060
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36061
  *) ac_try_echo=$ac_try;;
 
36062
esac
 
36063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36064
  (eval "$ac_link") 2>conftest.er1
 
36065
  ac_status=$?
 
36066
  grep -v '^ *+' conftest.er1 >conftest.err
 
36067
  rm -f conftest.er1
 
36068
  cat conftest.err >&5
 
36069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36070
  (exit $ac_status); } && {
 
36071
         test -z "$ac_c_werror_flag" ||
 
36072
         test ! -s conftest.err
 
36073
       } && test -s conftest$ac_exeext &&
 
36074
       $as_test_x conftest$ac_exeext; then
 
36075
 
 
36076
    { echo "$as_me:$LINENO: result: yes" >&5
 
36077
echo "${ECHO_T}yes" >&6; }
 
36078
    tst_links_gethostbyname="yes"
 
36079
 
 
36080
else
 
36081
  echo "$as_me: failed program was:" >&5
 
36082
sed 's/^/| /' conftest.$ac_ext >&5
 
36083
 
 
36084
 
 
36085
    { echo "$as_me:$LINENO: result: no" >&5
 
36086
echo "${ECHO_T}no" >&6; }
 
36087
    tst_links_gethostbyname="no"
 
36088
 
 
36089
fi
 
36090
 
 
36091
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
36092
      conftest$ac_exeext conftest.$ac_ext
 
36093
  #
 
36094
  if test "$tst_links_gethostbyname" = "yes"; then
 
36095
    { echo "$as_me:$LINENO: checking if gethostbyname is prototyped" >&5
 
36096
echo $ECHO_N "checking if gethostbyname is prototyped... $ECHO_C" >&6; }
 
36097
    cat >conftest.$ac_ext <<_ACEOF
 
36098
/* confdefs.h.  */
 
36099
_ACEOF
 
36100
cat confdefs.h >>conftest.$ac_ext
 
36101
cat >>conftest.$ac_ext <<_ACEOF
 
36102
/* end confdefs.h.  */
 
36103
 
 
36104
      $curl_includes_winsock2
 
36105
      $curl_includes_netdb
 
36106
 
 
36107
_ACEOF
 
36108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
36109
  $EGREP "gethostbyname" >/dev/null 2>&1; then
 
36110
 
 
36111
      { echo "$as_me:$LINENO: result: yes" >&5
 
36112
echo "${ECHO_T}yes" >&6; }
 
36113
      tst_proto_gethostbyname="yes"
 
36114
 
 
36115
else
 
36116
 
 
36117
      { echo "$as_me:$LINENO: result: no" >&5
 
36118
echo "${ECHO_T}no" >&6; }
 
36119
      tst_proto_gethostbyname="no"
 
36120
 
 
36121
fi
 
36122
rm -f conftest*
 
36123
 
 
36124
  fi
 
36125
  #
 
36126
  if test "$tst_proto_gethostbyname" = "yes"; then
 
36127
    { echo "$as_me:$LINENO: checking if gethostbyname is compilable" >&5
 
36128
echo $ECHO_N "checking if gethostbyname is compilable... $ECHO_C" >&6; }
 
36129
    cat >conftest.$ac_ext <<_ACEOF
 
36130
 
 
36131
      /* confdefs.h.  */
 
36132
_ACEOF
 
36133
cat confdefs.h >>conftest.$ac_ext
 
36134
cat >>conftest.$ac_ext <<_ACEOF
 
36135
/* end confdefs.h.  */
 
36136
 
 
36137
        $curl_includes_winsock2
 
36138
        $curl_includes_netdb
 
36139
 
 
36140
int main (void)
 
36141
{
 
36142
 
 
36143
        if(0 != gethostbyname(0))
 
36144
          return 1;
 
36145
 
 
36146
 ;
 
36147
 return 0;
 
36148
}
 
36149
 
 
36150
_ACEOF
 
36151
rm -f conftest.$ac_objext
 
36152
if { (ac_try="$ac_compile"
 
36153
case "(($ac_try" in
 
36154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36155
  *) ac_try_echo=$ac_try;;
 
36156
esac
 
36157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36158
  (eval "$ac_compile") 2>conftest.er1
 
36159
  ac_status=$?
 
36160
  grep -v '^ *+' conftest.er1 >conftest.err
 
36161
  rm -f conftest.er1
 
36162
  cat conftest.err >&5
 
36163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36164
  (exit $ac_status); } && {
 
36165
         test -z "$ac_c_werror_flag" ||
 
36166
         test ! -s conftest.err
 
36167
       } && test -s conftest.$ac_objext; then
 
36168
 
 
36169
      { echo "$as_me:$LINENO: result: yes" >&5
 
36170
echo "${ECHO_T}yes" >&6; }
 
36171
      tst_compi_gethostbyname="yes"
 
36172
 
 
36173
else
 
36174
  echo "$as_me: failed program was:" >&5
 
36175
sed 's/^/| /' conftest.$ac_ext >&5
 
36176
 
 
36177
 
 
36178
      { echo "$as_me:$LINENO: result: no" >&5
 
36179
echo "${ECHO_T}no" >&6; }
 
36180
      tst_compi_gethostbyname="no"
 
36181
 
 
36182
fi
 
36183
 
 
36184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36185
  fi
 
36186
  #
 
36187
  if test "$tst_compi_gethostbyname" = "yes"; then
 
36188
    { echo "$as_me:$LINENO: checking if gethostbyname usage allowed" >&5
 
36189
echo $ECHO_N "checking if gethostbyname usage allowed... $ECHO_C" >&6; }
 
36190
    if test "x$curl_disallow_gethostbyname" != "xyes"; then
 
36191
      { echo "$as_me:$LINENO: result: yes" >&5
 
36192
echo "${ECHO_T}yes" >&6; }
 
36193
      tst_allow_gethostbyname="yes"
 
36194
    else
 
36195
      { echo "$as_me:$LINENO: result: no" >&5
 
36196
echo "${ECHO_T}no" >&6; }
 
36197
      tst_allow_gethostbyname="no"
 
36198
    fi
 
36199
  fi
 
36200
  #
 
36201
  { echo "$as_me:$LINENO: checking if gethostbyname might be used" >&5
 
36202
echo $ECHO_N "checking if gethostbyname might be used... $ECHO_C" >&6; }
 
36203
  if test "$tst_links_gethostbyname" = "yes" &&
 
36204
     test "$tst_proto_gethostbyname" = "yes" &&
 
36205
     test "$tst_compi_gethostbyname" = "yes" &&
 
36206
     test "$tst_allow_gethostbyname" = "yes"; then
 
36207
    { echo "$as_me:$LINENO: result: yes" >&5
 
36208
echo "${ECHO_T}yes" >&6; }
 
36209
 
 
36210
cat >>confdefs.h <<_ACEOF
 
36211
#define HAVE_GETHOSTBYNAME 1
 
36212
_ACEOF
 
36213
 
 
36214
    ac_cv_func_gethostbyname="yes"
 
36215
  else
 
36216
    { echo "$as_me:$LINENO: result: no" >&5
 
36217
echo "${ECHO_T}no" >&6; }
 
36218
    ac_cv_func_gethostbyname="no"
 
36219
  fi
 
36220
 
 
36221
 
 
36222
    #
 
36223
  tst_links_gethostbyname_r="unknown"
 
36224
  tst_proto_gethostbyname_r="unknown"
 
36225
  tst_compi_gethostbyname_r="unknown"
 
36226
  tst_allow_gethostbyname_r="unknown"
 
36227
  tst_nargs_gethostbyname_r="unknown"
 
36228
  #
 
36229
  { echo "$as_me:$LINENO: checking if gethostbyname_r can be linked" >&5
 
36230
echo $ECHO_N "checking if gethostbyname_r can be linked... $ECHO_C" >&6; }
 
36231
  cat >conftest.$ac_ext <<_ACEOF
 
36232
 
 
36233
    /* confdefs.h.  */
 
36234
_ACEOF
 
36235
cat confdefs.h >>conftest.$ac_ext
 
36236
cat >>conftest.$ac_ext <<_ACEOF
 
36237
/* end confdefs.h.  */
 
36238
 
 
36239
#define gethostbyname_r innocuous_gethostbyname_r
 
36240
#ifdef __STDC__
 
36241
# include <limits.h>
 
36242
#else
 
36243
# include <assert.h>
 
36244
#endif
 
36245
#undef gethostbyname_r
 
36246
#ifdef __cplusplus
 
36247
extern "C"
 
36248
#endif
 
36249
char gethostbyname_r ();
 
36250
#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
 
36251
choke me
 
36252
#endif
 
36253
 
 
36254
int main (void)
 
36255
{
 
36256
return gethostbyname_r ();
 
36257
 ;
 
36258
 return 0;
 
36259
}
 
36260
 
 
36261
_ACEOF
 
36262
rm -f conftest.$ac_objext conftest$ac_exeext
 
36263
if { (ac_try="$ac_link"
 
36264
case "(($ac_try" in
 
36265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36266
  *) ac_try_echo=$ac_try;;
 
36267
esac
 
36268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36269
  (eval "$ac_link") 2>conftest.er1
 
36270
  ac_status=$?
 
36271
  grep -v '^ *+' conftest.er1 >conftest.err
 
36272
  rm -f conftest.er1
 
36273
  cat conftest.err >&5
 
36274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36275
  (exit $ac_status); } && {
 
36276
         test -z "$ac_c_werror_flag" ||
 
36277
         test ! -s conftest.err
 
36278
       } && test -s conftest$ac_exeext &&
 
36279
       $as_test_x conftest$ac_exeext; then
 
36280
 
 
36281
    { echo "$as_me:$LINENO: result: yes" >&5
 
36282
echo "${ECHO_T}yes" >&6; }
 
36283
    tst_links_gethostbyname_r="yes"
 
36284
 
 
36285
else
 
36286
  echo "$as_me: failed program was:" >&5
 
36287
sed 's/^/| /' conftest.$ac_ext >&5
 
36288
 
 
36289
 
 
36290
    { echo "$as_me:$LINENO: result: no" >&5
 
36291
echo "${ECHO_T}no" >&6; }
 
36292
    tst_links_gethostbyname_r="no"
 
36293
 
 
36294
fi
 
36295
 
 
36296
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
36297
      conftest$ac_exeext conftest.$ac_ext
 
36298
  #
 
36299
  if test "$tst_links_gethostbyname_r" = "yes"; then
 
36300
    { echo "$as_me:$LINENO: checking if gethostbyname_r is prototyped" >&5
 
36301
echo $ECHO_N "checking if gethostbyname_r is prototyped... $ECHO_C" >&6; }
 
36302
    cat >conftest.$ac_ext <<_ACEOF
 
36303
/* confdefs.h.  */
 
36304
_ACEOF
 
36305
cat confdefs.h >>conftest.$ac_ext
 
36306
cat >>conftest.$ac_ext <<_ACEOF
 
36307
/* end confdefs.h.  */
 
36308
 
 
36309
      $curl_includes_netdb
 
36310
 
 
36311
_ACEOF
 
36312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
36313
  $EGREP "gethostbyname_r" >/dev/null 2>&1; then
 
36314
 
 
36315
      { echo "$as_me:$LINENO: result: yes" >&5
 
36316
echo "${ECHO_T}yes" >&6; }
 
36317
      tst_proto_gethostbyname_r="yes"
 
36318
 
 
36319
else
 
36320
 
 
36321
      { echo "$as_me:$LINENO: result: no" >&5
 
36322
echo "${ECHO_T}no" >&6; }
 
36323
      tst_proto_gethostbyname_r="no"
 
36324
 
 
36325
fi
 
36326
rm -f conftest*
 
36327
 
 
36328
  fi
 
36329
  #
 
36330
  if test "$tst_proto_gethostbyname_r" = "yes"; then
 
36331
    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
 
36332
      { echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 args." >&5
 
36333
echo $ECHO_N "checking if gethostbyname_r takes 3 args.... $ECHO_C" >&6; }
 
36334
      cat >conftest.$ac_ext <<_ACEOF
 
36335
 
 
36336
        /* confdefs.h.  */
 
36337
_ACEOF
 
36338
cat confdefs.h >>conftest.$ac_ext
 
36339
cat >>conftest.$ac_ext <<_ACEOF
 
36340
/* end confdefs.h.  */
 
36341
 
 
36342
          $curl_includes_netdb
 
36343
 
 
36344
int main (void)
 
36345
{
 
36346
 
 
36347
          if(0 != gethostbyname_r(0, 0, 0))
 
36348
            return 1;
 
36349
 
 
36350
 ;
 
36351
 return 0;
 
36352
}
 
36353
 
 
36354
_ACEOF
 
36355
rm -f conftest.$ac_objext
 
36356
if { (ac_try="$ac_compile"
 
36357
case "(($ac_try" in
 
36358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36359
  *) ac_try_echo=$ac_try;;
 
36360
esac
 
36361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36362
  (eval "$ac_compile") 2>conftest.er1
 
36363
  ac_status=$?
 
36364
  grep -v '^ *+' conftest.er1 >conftest.err
 
36365
  rm -f conftest.er1
 
36366
  cat conftest.err >&5
 
36367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36368
  (exit $ac_status); } && {
 
36369
         test -z "$ac_c_werror_flag" ||
 
36370
         test ! -s conftest.err
 
36371
       } && test -s conftest.$ac_objext; then
 
36372
 
 
36373
        { echo "$as_me:$LINENO: result: yes" >&5
 
36374
echo "${ECHO_T}yes" >&6; }
 
36375
        tst_compi_gethostbyname_r="yes"
 
36376
        tst_nargs_gethostbyname_r="3"
 
36377
 
 
36378
else
 
36379
  echo "$as_me: failed program was:" >&5
 
36380
sed 's/^/| /' conftest.$ac_ext >&5
 
36381
 
 
36382
 
 
36383
        { echo "$as_me:$LINENO: result: no" >&5
 
36384
echo "${ECHO_T}no" >&6; }
 
36385
        tst_compi_gethostbyname_r="no"
 
36386
 
 
36387
fi
 
36388
 
 
36389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36390
    fi
 
36391
    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
 
36392
      { echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 args." >&5
 
36393
echo $ECHO_N "checking if gethostbyname_r takes 5 args.... $ECHO_C" >&6; }
 
36394
      cat >conftest.$ac_ext <<_ACEOF
 
36395
 
 
36396
        /* confdefs.h.  */
 
36397
_ACEOF
 
36398
cat confdefs.h >>conftest.$ac_ext
 
36399
cat >>conftest.$ac_ext <<_ACEOF
 
36400
/* end confdefs.h.  */
 
36401
 
 
36402
          $curl_includes_netdb
 
36403
 
 
36404
int main (void)
 
36405
{
 
36406
 
 
36407
          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
 
36408
            return 1;
 
36409
 
 
36410
 ;
 
36411
 return 0;
 
36412
}
 
36413
 
 
36414
_ACEOF
 
36415
rm -f conftest.$ac_objext
 
36416
if { (ac_try="$ac_compile"
 
36417
case "(($ac_try" in
 
36418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36419
  *) ac_try_echo=$ac_try;;
 
36420
esac
 
36421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36422
  (eval "$ac_compile") 2>conftest.er1
 
36423
  ac_status=$?
 
36424
  grep -v '^ *+' conftest.er1 >conftest.err
 
36425
  rm -f conftest.er1
 
36426
  cat conftest.err >&5
 
36427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36428
  (exit $ac_status); } && {
 
36429
         test -z "$ac_c_werror_flag" ||
 
36430
         test ! -s conftest.err
 
36431
       } && test -s conftest.$ac_objext; then
 
36432
 
 
36433
        { echo "$as_me:$LINENO: result: yes" >&5
 
36434
echo "${ECHO_T}yes" >&6; }
 
36435
        tst_compi_gethostbyname_r="yes"
 
36436
        tst_nargs_gethostbyname_r="5"
 
36437
 
 
36438
else
 
36439
  echo "$as_me: failed program was:" >&5
 
36440
sed 's/^/| /' conftest.$ac_ext >&5
 
36441
 
 
36442
 
 
36443
        { echo "$as_me:$LINENO: result: no" >&5
 
36444
echo "${ECHO_T}no" >&6; }
 
36445
        tst_compi_gethostbyname_r="no"
 
36446
 
 
36447
fi
 
36448
 
 
36449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36450
    fi
 
36451
    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
 
36452
      { echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 args." >&5
 
36453
echo $ECHO_N "checking if gethostbyname_r takes 6 args.... $ECHO_C" >&6; }
 
36454
      cat >conftest.$ac_ext <<_ACEOF
 
36455
 
 
36456
        /* confdefs.h.  */
 
36457
_ACEOF
 
36458
cat confdefs.h >>conftest.$ac_ext
 
36459
cat >>conftest.$ac_ext <<_ACEOF
 
36460
/* end confdefs.h.  */
 
36461
 
 
36462
          $curl_includes_netdb
 
36463
 
 
36464
int main (void)
 
36465
{
 
36466
 
 
36467
          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
 
36468
            return 1;
 
36469
 
 
36470
 ;
 
36471
 return 0;
 
36472
}
 
36473
 
 
36474
_ACEOF
 
36475
rm -f conftest.$ac_objext
 
36476
if { (ac_try="$ac_compile"
 
36477
case "(($ac_try" in
 
36478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36479
  *) ac_try_echo=$ac_try;;
 
36480
esac
 
36481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36482
  (eval "$ac_compile") 2>conftest.er1
 
36483
  ac_status=$?
 
36484
  grep -v '^ *+' conftest.er1 >conftest.err
 
36485
  rm -f conftest.er1
 
36486
  cat conftest.err >&5
 
36487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36488
  (exit $ac_status); } && {
 
36489
         test -z "$ac_c_werror_flag" ||
 
36490
         test ! -s conftest.err
 
36491
       } && test -s conftest.$ac_objext; then
 
36492
 
 
36493
        { echo "$as_me:$LINENO: result: yes" >&5
 
36494
echo "${ECHO_T}yes" >&6; }
 
36495
        tst_compi_gethostbyname_r="yes"
 
36496
        tst_nargs_gethostbyname_r="6"
 
36497
 
 
36498
else
 
36499
  echo "$as_me: failed program was:" >&5
 
36500
sed 's/^/| /' conftest.$ac_ext >&5
 
36501
 
 
36502
 
 
36503
        { echo "$as_me:$LINENO: result: no" >&5
 
36504
echo "${ECHO_T}no" >&6; }
 
36505
        tst_compi_gethostbyname_r="no"
 
36506
 
 
36507
fi
 
36508
 
 
36509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36510
    fi
 
36511
    { echo "$as_me:$LINENO: checking if gethostbyname_r is compilable" >&5
 
36512
echo $ECHO_N "checking if gethostbyname_r is compilable... $ECHO_C" >&6; }
 
36513
    if test "$tst_compi_gethostbyname_r" = "yes"; then
 
36514
      { echo "$as_me:$LINENO: result: yes" >&5
 
36515
echo "${ECHO_T}yes" >&6; }
 
36516
    else
 
36517
      { echo "$as_me:$LINENO: result: no" >&5
 
36518
echo "${ECHO_T}no" >&6; }
 
36519
    fi
 
36520
  fi
 
36521
  #
 
36522
  if test "$tst_compi_gethostbyname_r" = "yes"; then
 
36523
    { echo "$as_me:$LINENO: checking if gethostbyname_r usage allowed" >&5
 
36524
echo $ECHO_N "checking if gethostbyname_r usage allowed... $ECHO_C" >&6; }
 
36525
    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
 
36526
      { echo "$as_me:$LINENO: result: yes" >&5
 
36527
echo "${ECHO_T}yes" >&6; }
 
36528
      tst_allow_gethostbyname_r="yes"
 
36529
    else
 
36530
      { echo "$as_me:$LINENO: result: no" >&5
 
36531
echo "${ECHO_T}no" >&6; }
 
36532
      tst_allow_gethostbyname_r="no"
 
36533
    fi
 
36534
  fi
 
36535
  #
 
36536
  { echo "$as_me:$LINENO: checking if gethostbyname_r might be used" >&5
 
36537
echo $ECHO_N "checking if gethostbyname_r might be used... $ECHO_C" >&6; }
 
36538
  if test "$tst_links_gethostbyname_r" = "yes" &&
 
36539
     test "$tst_proto_gethostbyname_r" = "yes" &&
 
36540
     test "$tst_compi_gethostbyname_r" = "yes" &&
 
36541
     test "$tst_allow_gethostbyname_r" = "yes"; then
 
36542
    { echo "$as_me:$LINENO: result: yes" >&5
 
36543
echo "${ECHO_T}yes" >&6; }
 
36544
 
 
36545
cat >>confdefs.h <<_ACEOF
 
36546
#define HAVE_GETHOSTBYNAME_R 1
 
36547
_ACEOF
 
36548
 
 
36549
            #
 
36550
    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
 
36551
 
 
36552
cat >>confdefs.h <<\_ACEOF
 
36553
#define HAVE_GETHOSTBYNAME_R_3 1
 
36554
_ACEOF
 
36555
 
 
36556
    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
 
36557
 
 
36558
cat >>confdefs.h <<\_ACEOF
 
36559
#define HAVE_GETHOSTBYNAME_R_5 1
 
36560
_ACEOF
 
36561
 
 
36562
    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
 
36563
 
 
36564
cat >>confdefs.h <<\_ACEOF
 
36565
#define HAVE_GETHOSTBYNAME_R_6 1
 
36566
_ACEOF
 
36567
 
 
36568
    fi
 
36569
    #
 
36570
    ac_cv_func_gethostbyname_r="yes"
 
36571
  else
 
36572
    { echo "$as_me:$LINENO: result: no" >&5
 
36573
echo "${ECHO_T}no" >&6; }
 
36574
    ac_cv_func_gethostbyname_r="no"
 
36575
  fi
 
36576
 
 
36577
 
 
36578
      #
 
36579
  tst_links_gethostname="unknown"
 
36580
  tst_proto_gethostname="unknown"
 
36581
  tst_compi_gethostname="unknown"
 
36582
  tst_allow_gethostname="unknown"
 
36583
  #
 
36584
  { echo "$as_me:$LINENO: checking if gethostname can be linked" >&5
 
36585
echo $ECHO_N "checking if gethostname can be linked... $ECHO_C" >&6; }
 
36586
  cat >conftest.$ac_ext <<_ACEOF
 
36587
 
 
36588
    /* confdefs.h.  */
 
36589
_ACEOF
 
36590
cat confdefs.h >>conftest.$ac_ext
 
36591
cat >>conftest.$ac_ext <<_ACEOF
 
36592
/* end confdefs.h.  */
 
36593
 
 
36594
      $curl_includes_winsock2
 
36595
      $curl_includes_unistd
 
36596
 
 
36597
int main (void)
 
36598
{
 
36599
 
 
36600
      if(0 != gethostname(0, 0))
 
36601
        return 1;
 
36602
 
 
36603
 ;
 
36604
 return 0;
 
36605
}
 
36606
 
 
36607
_ACEOF
 
36608
rm -f conftest.$ac_objext conftest$ac_exeext
 
36609
if { (ac_try="$ac_link"
 
36610
case "(($ac_try" in
 
36611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36612
  *) ac_try_echo=$ac_try;;
 
36613
esac
 
36614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36615
  (eval "$ac_link") 2>conftest.er1
 
36616
  ac_status=$?
 
36617
  grep -v '^ *+' conftest.er1 >conftest.err
 
36618
  rm -f conftest.er1
 
36619
  cat conftest.err >&5
 
36620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36621
  (exit $ac_status); } && {
 
36622
         test -z "$ac_c_werror_flag" ||
 
36623
         test ! -s conftest.err
 
36624
       } && test -s conftest$ac_exeext &&
 
36625
       $as_test_x conftest$ac_exeext; then
 
36626
 
 
36627
    { echo "$as_me:$LINENO: result: yes" >&5
 
36628
echo "${ECHO_T}yes" >&6; }
 
36629
    tst_links_gethostname="yes"
 
36630
 
 
36631
else
 
36632
  echo "$as_me: failed program was:" >&5
 
36633
sed 's/^/| /' conftest.$ac_ext >&5
 
36634
 
 
36635
 
 
36636
    { echo "$as_me:$LINENO: result: no" >&5
 
36637
echo "${ECHO_T}no" >&6; }
 
36638
    tst_links_gethostname="no"
 
36639
 
 
36640
fi
 
36641
 
 
36642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
36643
      conftest$ac_exeext conftest.$ac_ext
 
36644
  #
 
36645
  if test "$tst_links_gethostname" = "yes"; then
 
36646
    { echo "$as_me:$LINENO: checking if gethostname is prototyped" >&5
 
36647
echo $ECHO_N "checking if gethostname is prototyped... $ECHO_C" >&6; }
 
36648
    cat >conftest.$ac_ext <<_ACEOF
 
36649
/* confdefs.h.  */
 
36650
_ACEOF
 
36651
cat confdefs.h >>conftest.$ac_ext
 
36652
cat >>conftest.$ac_ext <<_ACEOF
 
36653
/* end confdefs.h.  */
 
36654
 
 
36655
      $curl_includes_winsock2
 
36656
      $curl_includes_unistd
 
36657
 
 
36658
_ACEOF
 
36659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
36660
  $EGREP "gethostname" >/dev/null 2>&1; then
 
36661
 
 
36662
      { echo "$as_me:$LINENO: result: yes" >&5
 
36663
echo "${ECHO_T}yes" >&6; }
 
36664
      tst_proto_gethostname="yes"
 
36665
 
 
36666
else
 
36667
 
 
36668
      { echo "$as_me:$LINENO: result: no" >&5
 
36669
echo "${ECHO_T}no" >&6; }
 
36670
      tst_proto_gethostname="no"
 
36671
 
 
36672
fi
 
36673
rm -f conftest*
 
36674
 
 
36675
  fi
 
36676
  #
 
36677
  if test "$tst_proto_gethostname" = "yes"; then
 
36678
    { echo "$as_me:$LINENO: checking if gethostname is compilable" >&5
 
36679
echo $ECHO_N "checking if gethostname is compilable... $ECHO_C" >&6; }
 
36680
    cat >conftest.$ac_ext <<_ACEOF
 
36681
 
 
36682
      /* confdefs.h.  */
 
36683
_ACEOF
 
36684
cat confdefs.h >>conftest.$ac_ext
 
36685
cat >>conftest.$ac_ext <<_ACEOF
 
36686
/* end confdefs.h.  */
 
36687
 
 
36688
        $curl_includes_winsock2
 
36689
        $curl_includes_unistd
 
36690
 
 
36691
int main (void)
 
36692
{
 
36693
 
 
36694
        if(0 != gethostname(0, 0))
 
36695
          return 1;
 
36696
 
 
36697
 ;
 
36698
 return 0;
 
36699
}
 
36700
 
 
36701
_ACEOF
 
36702
rm -f conftest.$ac_objext
 
36703
if { (ac_try="$ac_compile"
 
36704
case "(($ac_try" in
 
36705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36706
  *) ac_try_echo=$ac_try;;
 
36707
esac
 
36708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36709
  (eval "$ac_compile") 2>conftest.er1
 
36710
  ac_status=$?
 
36711
  grep -v '^ *+' conftest.er1 >conftest.err
 
36712
  rm -f conftest.er1
 
36713
  cat conftest.err >&5
 
36714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36715
  (exit $ac_status); } && {
 
36716
         test -z "$ac_c_werror_flag" ||
 
36717
         test ! -s conftest.err
 
36718
       } && test -s conftest.$ac_objext; then
 
36719
 
 
36720
      { echo "$as_me:$LINENO: result: yes" >&5
 
36721
echo "${ECHO_T}yes" >&6; }
 
36722
      tst_compi_gethostname="yes"
 
36723
 
 
36724
else
 
36725
  echo "$as_me: failed program was:" >&5
 
36726
sed 's/^/| /' conftest.$ac_ext >&5
 
36727
 
 
36728
 
 
36729
      { echo "$as_me:$LINENO: result: no" >&5
 
36730
echo "${ECHO_T}no" >&6; }
 
36731
      tst_compi_gethostname="no"
 
36732
 
 
36733
fi
 
36734
 
 
36735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36736
  fi
 
36737
  #
 
36738
  if test "$tst_compi_gethostname" = "yes"; then
 
36739
    { echo "$as_me:$LINENO: checking if gethostname usage allowed" >&5
 
36740
echo $ECHO_N "checking if gethostname usage allowed... $ECHO_C" >&6; }
 
36741
    if test "x$curl_disallow_gethostname" != "xyes"; then
 
36742
      { echo "$as_me:$LINENO: result: yes" >&5
 
36743
echo "${ECHO_T}yes" >&6; }
 
36744
      tst_allow_gethostname="yes"
 
36745
    else
 
36746
      { echo "$as_me:$LINENO: result: no" >&5
 
36747
echo "${ECHO_T}no" >&6; }
 
36748
      tst_allow_gethostname="no"
 
36749
    fi
 
36750
  fi
 
36751
  #
 
36752
  { echo "$as_me:$LINENO: checking if gethostname might be used" >&5
 
36753
echo $ECHO_N "checking if gethostname might be used... $ECHO_C" >&6; }
 
36754
  if test "$tst_links_gethostname" = "yes" &&
 
36755
     test "$tst_proto_gethostname" = "yes" &&
 
36756
     test "$tst_compi_gethostname" = "yes" &&
 
36757
     test "$tst_allow_gethostname" = "yes"; then
 
36758
    { echo "$as_me:$LINENO: result: yes" >&5
 
36759
echo "${ECHO_T}yes" >&6; }
 
36760
 
 
36761
cat >>confdefs.h <<_ACEOF
 
36762
#define HAVE_GETHOSTNAME 1
 
36763
_ACEOF
 
36764
 
 
36765
    ac_cv_func_gethostname="yes"
 
36766
  else
 
36767
    { echo "$as_me:$LINENO: result: no" >&5
 
36768
echo "${ECHO_T}no" >&6; }
 
36769
    ac_cv_func_gethostname="no"
 
36770
  fi
 
36771
 
 
36772
 
 
36773
      #
 
36774
  tst_links_getifaddrs="unknown"
 
36775
  tst_proto_getifaddrs="unknown"
 
36776
  tst_compi_getifaddrs="unknown"
 
36777
  tst_works_getifaddrs="unknown"
 
36778
  tst_allow_getifaddrs="unknown"
 
36779
  #
 
36780
  { echo "$as_me:$LINENO: checking if getifaddrs can be linked" >&5
 
36781
echo $ECHO_N "checking if getifaddrs can be linked... $ECHO_C" >&6; }
 
36782
  cat >conftest.$ac_ext <<_ACEOF
 
36783
 
 
36784
    /* confdefs.h.  */
 
36785
_ACEOF
 
36786
cat confdefs.h >>conftest.$ac_ext
 
36787
cat >>conftest.$ac_ext <<_ACEOF
 
36788
/* end confdefs.h.  */
 
36789
 
 
36790
#define getifaddrs innocuous_getifaddrs
 
36791
#ifdef __STDC__
 
36792
# include <limits.h>
 
36793
#else
 
36794
# include <assert.h>
 
36795
#endif
 
36796
#undef getifaddrs
 
36797
#ifdef __cplusplus
 
36798
extern "C"
 
36799
#endif
 
36800
char getifaddrs ();
 
36801
#if defined __stub_getifaddrs || defined __stub___getifaddrs
 
36802
choke me
 
36803
#endif
 
36804
 
 
36805
int main (void)
 
36806
{
 
36807
return getifaddrs ();
 
36808
 ;
 
36809
 return 0;
 
36810
}
 
36811
 
 
36812
_ACEOF
 
36813
rm -f conftest.$ac_objext conftest$ac_exeext
 
36814
if { (ac_try="$ac_link"
 
36815
case "(($ac_try" in
 
36816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36817
  *) ac_try_echo=$ac_try;;
 
36818
esac
 
36819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36820
  (eval "$ac_link") 2>conftest.er1
 
36821
  ac_status=$?
 
36822
  grep -v '^ *+' conftest.er1 >conftest.err
 
36823
  rm -f conftest.er1
 
36824
  cat conftest.err >&5
 
36825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36826
  (exit $ac_status); } && {
 
36827
         test -z "$ac_c_werror_flag" ||
 
36828
         test ! -s conftest.err
 
36829
       } && test -s conftest$ac_exeext &&
 
36830
       $as_test_x conftest$ac_exeext; then
 
36831
 
 
36832
    { echo "$as_me:$LINENO: result: yes" >&5
 
36833
echo "${ECHO_T}yes" >&6; }
 
36834
    tst_links_getifaddrs="yes"
 
36835
 
 
36836
else
 
36837
  echo "$as_me: failed program was:" >&5
 
36838
sed 's/^/| /' conftest.$ac_ext >&5
 
36839
 
 
36840
 
 
36841
    { echo "$as_me:$LINENO: result: no" >&5
 
36842
echo "${ECHO_T}no" >&6; }
 
36843
    tst_links_getifaddrs="no"
 
36844
 
 
36845
fi
 
36846
 
 
36847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
36848
      conftest$ac_exeext conftest.$ac_ext
 
36849
  #
 
36850
  if test "$tst_links_getifaddrs" = "yes"; then
 
36851
    { echo "$as_me:$LINENO: checking if getifaddrs is prototyped" >&5
 
36852
echo $ECHO_N "checking if getifaddrs is prototyped... $ECHO_C" >&6; }
 
36853
    cat >conftest.$ac_ext <<_ACEOF
 
36854
/* confdefs.h.  */
 
36855
_ACEOF
 
36856
cat confdefs.h >>conftest.$ac_ext
 
36857
cat >>conftest.$ac_ext <<_ACEOF
 
36858
/* end confdefs.h.  */
 
36859
 
 
36860
      $curl_includes_ifaddrs
 
36861
 
 
36862
_ACEOF
 
36863
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
36864
  $EGREP "getifaddrs" >/dev/null 2>&1; then
 
36865
 
 
36866
      { echo "$as_me:$LINENO: result: yes" >&5
 
36867
echo "${ECHO_T}yes" >&6; }
 
36868
      tst_proto_getifaddrs="yes"
 
36869
 
 
36870
else
 
36871
 
 
36872
      { echo "$as_me:$LINENO: result: no" >&5
 
36873
echo "${ECHO_T}no" >&6; }
 
36874
      tst_proto_getifaddrs="no"
 
36875
 
 
36876
fi
 
36877
rm -f conftest*
 
36878
 
 
36879
  fi
 
36880
  #
 
36881
  if test "$tst_proto_getifaddrs" = "yes"; then
 
36882
    { echo "$as_me:$LINENO: checking if getifaddrs is compilable" >&5
 
36883
echo $ECHO_N "checking if getifaddrs is compilable... $ECHO_C" >&6; }
 
36884
    cat >conftest.$ac_ext <<_ACEOF
 
36885
 
 
36886
      /* confdefs.h.  */
 
36887
_ACEOF
 
36888
cat confdefs.h >>conftest.$ac_ext
 
36889
cat >>conftest.$ac_ext <<_ACEOF
 
36890
/* end confdefs.h.  */
 
36891
 
 
36892
        $curl_includes_ifaddrs
 
36893
 
 
36894
int main (void)
 
36895
{
 
36896
 
 
36897
        if(0 != getifaddrs(0))
 
36898
          return 1;
 
36899
 
 
36900
 ;
 
36901
 return 0;
 
36902
}
 
36903
 
 
36904
_ACEOF
 
36905
rm -f conftest.$ac_objext
 
36906
if { (ac_try="$ac_compile"
 
36907
case "(($ac_try" in
 
36908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36909
  *) ac_try_echo=$ac_try;;
 
36910
esac
 
36911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36912
  (eval "$ac_compile") 2>conftest.er1
 
36913
  ac_status=$?
 
36914
  grep -v '^ *+' conftest.er1 >conftest.err
 
36915
  rm -f conftest.er1
 
36916
  cat conftest.err >&5
 
36917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36918
  (exit $ac_status); } && {
 
36919
         test -z "$ac_c_werror_flag" ||
 
36920
         test ! -s conftest.err
 
36921
       } && test -s conftest.$ac_objext; then
 
36922
 
 
36923
      { echo "$as_me:$LINENO: result: yes" >&5
 
36924
echo "${ECHO_T}yes" >&6; }
 
36925
      tst_compi_getifaddrs="yes"
 
36926
 
 
36927
else
 
36928
  echo "$as_me: failed program was:" >&5
 
36929
sed 's/^/| /' conftest.$ac_ext >&5
 
36930
 
 
36931
 
 
36932
      { echo "$as_me:$LINENO: result: no" >&5
 
36933
echo "${ECHO_T}no" >&6; }
 
36934
      tst_compi_getifaddrs="no"
 
36935
 
 
36936
fi
 
36937
 
 
36938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
36939
  fi
 
36940
  #
 
36941
    if test "x$cross_compiling" != "xyes" &&
 
36942
    test "$tst_compi_getifaddrs" = "yes"; then
 
36943
    { echo "$as_me:$LINENO: checking if getifaddrs seems to work" >&5
 
36944
echo $ECHO_N "checking if getifaddrs seems to work... $ECHO_C" >&6; }
 
36945
    if test "$cross_compiling" = yes; then
 
36946
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
36947
See \`config.log' for more details." >&5
 
36948
echo "$as_me: error: cannot run test program while cross compiling
 
36949
See \`config.log' for more details." >&2;}
 
36950
   { (exit 1); exit 1; }; }
 
36951
else
 
36952
  cat >conftest.$ac_ext <<_ACEOF
 
36953
 
 
36954
      /* confdefs.h.  */
 
36955
_ACEOF
 
36956
cat confdefs.h >>conftest.$ac_ext
 
36957
cat >>conftest.$ac_ext <<_ACEOF
 
36958
/* end confdefs.h.  */
 
36959
 
 
36960
        $curl_includes_stdlib
 
36961
        $curl_includes_ifaddrs
 
36962
 
 
36963
int main (void)
 
36964
{
 
36965
 
 
36966
        struct ifaddrs *ifa = 0;
 
36967
        int error;
 
36968
 
 
36969
        error = getifaddrs(&ifa);
 
36970
        if(error || !ifa)
 
36971
          exit(1); /* fail */
 
36972
        else
 
36973
          exit(0);
 
36974
 
 
36975
 ;
 
36976
 return 0;
 
36977
}
 
36978
 
 
36979
_ACEOF
 
36980
rm -f conftest$ac_exeext
 
36981
if { (ac_try="$ac_link"
 
36982
case "(($ac_try" in
 
36983
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36984
  *) ac_try_echo=$ac_try;;
 
36985
esac
 
36986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36987
  (eval "$ac_link") 2>&5
 
36988
  ac_status=$?
 
36989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36990
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
36991
  { (case "(($ac_try" in
 
36992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
36993
  *) ac_try_echo=$ac_try;;
 
36994
esac
 
36995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36996
  (eval "$ac_try") 2>&5
 
36997
  ac_status=$?
 
36998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36999
  (exit $ac_status); }; }; then
 
37000
 
 
37001
      { echo "$as_me:$LINENO: result: yes" >&5
 
37002
echo "${ECHO_T}yes" >&6; }
 
37003
      tst_works_getifaddrs="yes"
 
37004
 
 
37005
else
 
37006
  echo "$as_me: program exited with status $ac_status" >&5
 
37007
echo "$as_me: failed program was:" >&5
 
37008
sed 's/^/| /' conftest.$ac_ext >&5
 
37009
 
 
37010
( exit $ac_status )
 
37011
 
 
37012
      { echo "$as_me:$LINENO: result: no" >&5
 
37013
echo "${ECHO_T}no" >&6; }
 
37014
      tst_works_getifaddrs="no"
 
37015
 
 
37016
fi
 
37017
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
37018
fi
 
37019
 
 
37020
 
 
37021
  fi
 
37022
  #
 
37023
  if test "$tst_compi_getifaddrs" = "yes" &&
 
37024
    test "$tst_works_getifaddrs" != "no"; then
 
37025
    { echo "$as_me:$LINENO: checking if getifaddrs usage allowed" >&5
 
37026
echo $ECHO_N "checking if getifaddrs usage allowed... $ECHO_C" >&6; }
 
37027
    if test "x$curl_disallow_getifaddrs" != "xyes"; then
 
37028
      { echo "$as_me:$LINENO: result: yes" >&5
 
37029
echo "${ECHO_T}yes" >&6; }
 
37030
      tst_allow_getifaddrs="yes"
 
37031
    else
 
37032
      { echo "$as_me:$LINENO: result: no" >&5
 
37033
echo "${ECHO_T}no" >&6; }
 
37034
      tst_allow_getifaddrs="no"
 
37035
    fi
 
37036
  fi
 
37037
  #
 
37038
  { echo "$as_me:$LINENO: checking if getifaddrs might be used" >&5
 
37039
echo $ECHO_N "checking if getifaddrs might be used... $ECHO_C" >&6; }
 
37040
  if test "$tst_links_getifaddrs" = "yes" &&
 
37041
     test "$tst_proto_getifaddrs" = "yes" &&
 
37042
     test "$tst_compi_getifaddrs" = "yes" &&
 
37043
     test "$tst_allow_getifaddrs" = "yes" &&
 
37044
     test "$tst_works_getifaddrs" != "no"; then
 
37045
    { echo "$as_me:$LINENO: result: yes" >&5
 
37046
echo "${ECHO_T}yes" >&6; }
 
37047
 
 
37048
cat >>confdefs.h <<_ACEOF
 
37049
#define HAVE_GETIFADDRS 1
 
37050
_ACEOF
 
37051
 
 
37052
    ac_cv_func_getifaddrs="yes"
 
37053
  else
 
37054
    { echo "$as_me:$LINENO: result: no" >&5
 
37055
echo "${ECHO_T}no" >&6; }
 
37056
    ac_cv_func_getifaddrs="no"
 
37057
  fi
 
37058
 
 
37059
 
 
37060
    #
 
37061
  tst_links_getservbyport_r="unknown"
 
37062
  tst_proto_getservbyport_r="unknown"
 
37063
  tst_compi_getservbyport_r="unknown"
 
37064
  tst_allow_getservbyport_r="unknown"
 
37065
  tst_nargs_getservbyport_r="unknown"
 
37066
  #
 
37067
  { echo "$as_me:$LINENO: checking if getservbyport_r can be linked" >&5
 
37068
echo $ECHO_N "checking if getservbyport_r can be linked... $ECHO_C" >&6; }
 
37069
  cat >conftest.$ac_ext <<_ACEOF
 
37070
 
 
37071
    /* confdefs.h.  */
 
37072
_ACEOF
 
37073
cat confdefs.h >>conftest.$ac_ext
 
37074
cat >>conftest.$ac_ext <<_ACEOF
 
37075
/* end confdefs.h.  */
 
37076
 
 
37077
#define getservbyport_r innocuous_getservbyport_r
 
37078
#ifdef __STDC__
 
37079
# include <limits.h>
 
37080
#else
 
37081
# include <assert.h>
 
37082
#endif
 
37083
#undef getservbyport_r
 
37084
#ifdef __cplusplus
 
37085
extern "C"
 
37086
#endif
 
37087
char getservbyport_r ();
 
37088
#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
 
37089
choke me
 
37090
#endif
 
37091
 
 
37092
int main (void)
 
37093
{
 
37094
return getservbyport_r ();
 
37095
 ;
 
37096
 return 0;
 
37097
}
 
37098
 
 
37099
_ACEOF
 
37100
rm -f conftest.$ac_objext conftest$ac_exeext
 
37101
if { (ac_try="$ac_link"
 
37102
case "(($ac_try" in
 
37103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37104
  *) ac_try_echo=$ac_try;;
 
37105
esac
 
37106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37107
  (eval "$ac_link") 2>conftest.er1
 
37108
  ac_status=$?
 
37109
  grep -v '^ *+' conftest.er1 >conftest.err
 
37110
  rm -f conftest.er1
 
37111
  cat conftest.err >&5
 
37112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37113
  (exit $ac_status); } && {
 
37114
         test -z "$ac_c_werror_flag" ||
 
37115
         test ! -s conftest.err
 
37116
       } && test -s conftest$ac_exeext &&
 
37117
       $as_test_x conftest$ac_exeext; then
 
37118
 
 
37119
    { echo "$as_me:$LINENO: result: yes" >&5
 
37120
echo "${ECHO_T}yes" >&6; }
 
37121
    tst_links_getservbyport_r="yes"
 
37122
 
 
37123
else
 
37124
  echo "$as_me: failed program was:" >&5
 
37125
sed 's/^/| /' conftest.$ac_ext >&5
 
37126
 
 
37127
 
 
37128
    { echo "$as_me:$LINENO: result: no" >&5
 
37129
echo "${ECHO_T}no" >&6; }
 
37130
    tst_links_getservbyport_r="no"
 
37131
 
 
37132
fi
 
37133
 
 
37134
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
37135
      conftest$ac_exeext conftest.$ac_ext
 
37136
  #
 
37137
  if test "$tst_links_getservbyport_r" = "yes"; then
 
37138
    { echo "$as_me:$LINENO: checking if getservbyport_r is prototyped" >&5
 
37139
echo $ECHO_N "checking if getservbyport_r is prototyped... $ECHO_C" >&6; }
 
37140
    cat >conftest.$ac_ext <<_ACEOF
 
37141
/* confdefs.h.  */
 
37142
_ACEOF
 
37143
cat confdefs.h >>conftest.$ac_ext
 
37144
cat >>conftest.$ac_ext <<_ACEOF
 
37145
/* end confdefs.h.  */
 
37146
 
 
37147
      $curl_includes_netdb
 
37148
 
 
37149
_ACEOF
 
37150
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
37151
  $EGREP "getservbyport_r" >/dev/null 2>&1; then
 
37152
 
 
37153
      { echo "$as_me:$LINENO: result: yes" >&5
 
37154
echo "${ECHO_T}yes" >&6; }
 
37155
      tst_proto_getservbyport_r="yes"
 
37156
 
 
37157
else
 
37158
 
 
37159
      { echo "$as_me:$LINENO: result: no" >&5
 
37160
echo "${ECHO_T}no" >&6; }
 
37161
      tst_proto_getservbyport_r="no"
 
37162
 
 
37163
fi
 
37164
rm -f conftest*
 
37165
 
 
37166
  fi
 
37167
  #
 
37168
  if test "$tst_proto_getservbyport_r" = "yes"; then
 
37169
    if test "$tst_nargs_getservbyport_r" = "unknown"; then
 
37170
      { echo "$as_me:$LINENO: checking if getservbyport_r takes 4 args." >&5
 
37171
echo $ECHO_N "checking if getservbyport_r takes 4 args.... $ECHO_C" >&6; }
 
37172
      cat >conftest.$ac_ext <<_ACEOF
 
37173
 
 
37174
        /* confdefs.h.  */
 
37175
_ACEOF
 
37176
cat confdefs.h >>conftest.$ac_ext
 
37177
cat >>conftest.$ac_ext <<_ACEOF
 
37178
/* end confdefs.h.  */
 
37179
 
 
37180
          $curl_includes_netdb
 
37181
 
 
37182
int main (void)
 
37183
{
 
37184
 
 
37185
          if(0 != getservbyport_r(0, 0, 0, 0))
 
37186
            return 1;
 
37187
 
 
37188
 ;
 
37189
 return 0;
 
37190
}
 
37191
 
 
37192
_ACEOF
 
37193
rm -f conftest.$ac_objext
 
37194
if { (ac_try="$ac_compile"
 
37195
case "(($ac_try" in
 
37196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37197
  *) ac_try_echo=$ac_try;;
 
37198
esac
 
37199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37200
  (eval "$ac_compile") 2>conftest.er1
 
37201
  ac_status=$?
 
37202
  grep -v '^ *+' conftest.er1 >conftest.err
 
37203
  rm -f conftest.er1
 
37204
  cat conftest.err >&5
 
37205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37206
  (exit $ac_status); } && {
 
37207
         test -z "$ac_c_werror_flag" ||
 
37208
         test ! -s conftest.err
 
37209
       } && test -s conftest.$ac_objext; then
 
37210
 
 
37211
        { echo "$as_me:$LINENO: result: yes" >&5
 
37212
echo "${ECHO_T}yes" >&6; }
 
37213
        tst_compi_getservbyport_r="yes"
 
37214
        tst_nargs_getservbyport_r="4"
 
37215
 
 
37216
else
 
37217
  echo "$as_me: failed program was:" >&5
 
37218
sed 's/^/| /' conftest.$ac_ext >&5
 
37219
 
 
37220
 
 
37221
        { echo "$as_me:$LINENO: result: no" >&5
 
37222
echo "${ECHO_T}no" >&6; }
 
37223
        tst_compi_getservbyport_r="no"
 
37224
 
 
37225
fi
 
37226
 
 
37227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37228
    fi
 
37229
    if test "$tst_nargs_getservbyport_r" = "unknown"; then
 
37230
      { echo "$as_me:$LINENO: checking if getservbyport_r takes 5 args." >&5
 
37231
echo $ECHO_N "checking if getservbyport_r takes 5 args.... $ECHO_C" >&6; }
 
37232
      cat >conftest.$ac_ext <<_ACEOF
 
37233
 
 
37234
        /* confdefs.h.  */
 
37235
_ACEOF
 
37236
cat confdefs.h >>conftest.$ac_ext
 
37237
cat >>conftest.$ac_ext <<_ACEOF
 
37238
/* end confdefs.h.  */
 
37239
 
 
37240
          $curl_includes_netdb
 
37241
 
 
37242
int main (void)
 
37243
{
 
37244
 
 
37245
          if(0 != getservbyport_r(0, 0, 0, 0, 0))
 
37246
            return 1;
 
37247
 
 
37248
 ;
 
37249
 return 0;
 
37250
}
 
37251
 
 
37252
_ACEOF
 
37253
rm -f conftest.$ac_objext
 
37254
if { (ac_try="$ac_compile"
 
37255
case "(($ac_try" in
 
37256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37257
  *) ac_try_echo=$ac_try;;
 
37258
esac
 
37259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37260
  (eval "$ac_compile") 2>conftest.er1
 
37261
  ac_status=$?
 
37262
  grep -v '^ *+' conftest.er1 >conftest.err
 
37263
  rm -f conftest.er1
 
37264
  cat conftest.err >&5
 
37265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37266
  (exit $ac_status); } && {
 
37267
         test -z "$ac_c_werror_flag" ||
 
37268
         test ! -s conftest.err
 
37269
       } && test -s conftest.$ac_objext; then
 
37270
 
 
37271
        { echo "$as_me:$LINENO: result: yes" >&5
 
37272
echo "${ECHO_T}yes" >&6; }
 
37273
        tst_compi_getservbyport_r="yes"
 
37274
        tst_nargs_getservbyport_r="5"
 
37275
 
 
37276
else
 
37277
  echo "$as_me: failed program was:" >&5
 
37278
sed 's/^/| /' conftest.$ac_ext >&5
 
37279
 
 
37280
 
 
37281
        { echo "$as_me:$LINENO: result: no" >&5
 
37282
echo "${ECHO_T}no" >&6; }
 
37283
        tst_compi_getservbyport_r="no"
 
37284
 
 
37285
fi
 
37286
 
 
37287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37288
    fi
 
37289
    if test "$tst_nargs_getservbyport_r" = "unknown"; then
 
37290
      { echo "$as_me:$LINENO: checking if getservbyport_r takes 6 args." >&5
 
37291
echo $ECHO_N "checking if getservbyport_r takes 6 args.... $ECHO_C" >&6; }
 
37292
      cat >conftest.$ac_ext <<_ACEOF
 
37293
 
 
37294
        /* confdefs.h.  */
 
37295
_ACEOF
 
37296
cat confdefs.h >>conftest.$ac_ext
 
37297
cat >>conftest.$ac_ext <<_ACEOF
 
37298
/* end confdefs.h.  */
 
37299
 
 
37300
          $curl_includes_netdb
 
37301
 
 
37302
int main (void)
 
37303
{
 
37304
 
 
37305
          if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
 
37306
            return 1;
 
37307
 
 
37308
 ;
 
37309
 return 0;
 
37310
}
 
37311
 
 
37312
_ACEOF
 
37313
rm -f conftest.$ac_objext
 
37314
if { (ac_try="$ac_compile"
 
37315
case "(($ac_try" in
 
37316
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37317
  *) ac_try_echo=$ac_try;;
 
37318
esac
 
37319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37320
  (eval "$ac_compile") 2>conftest.er1
 
37321
  ac_status=$?
 
37322
  grep -v '^ *+' conftest.er1 >conftest.err
 
37323
  rm -f conftest.er1
 
37324
  cat conftest.err >&5
 
37325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37326
  (exit $ac_status); } && {
 
37327
         test -z "$ac_c_werror_flag" ||
 
37328
         test ! -s conftest.err
 
37329
       } && test -s conftest.$ac_objext; then
 
37330
 
 
37331
        { echo "$as_me:$LINENO: result: yes" >&5
 
37332
echo "${ECHO_T}yes" >&6; }
 
37333
        tst_compi_getservbyport_r="yes"
 
37334
        tst_nargs_getservbyport_r="6"
 
37335
 
 
37336
else
 
37337
  echo "$as_me: failed program was:" >&5
 
37338
sed 's/^/| /' conftest.$ac_ext >&5
 
37339
 
 
37340
 
 
37341
        { echo "$as_me:$LINENO: result: no" >&5
 
37342
echo "${ECHO_T}no" >&6; }
 
37343
        tst_compi_getservbyport_r="no"
 
37344
 
 
37345
fi
 
37346
 
 
37347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37348
    fi
 
37349
    { echo "$as_me:$LINENO: checking if getservbyport_r is compilable" >&5
 
37350
echo $ECHO_N "checking if getservbyport_r is compilable... $ECHO_C" >&6; }
 
37351
    if test "$tst_compi_getservbyport_r" = "yes"; then
 
37352
      { echo "$as_me:$LINENO: result: yes" >&5
 
37353
echo "${ECHO_T}yes" >&6; }
 
37354
    else
 
37355
      { echo "$as_me:$LINENO: result: no" >&5
 
37356
echo "${ECHO_T}no" >&6; }
 
37357
    fi
 
37358
  fi
 
37359
  #
 
37360
  if test "$tst_compi_getservbyport_r" = "yes"; then
 
37361
    { echo "$as_me:$LINENO: checking if getservbyport_r usage allowed" >&5
 
37362
echo $ECHO_N "checking if getservbyport_r usage allowed... $ECHO_C" >&6; }
 
37363
    if test "x$curl_disallow_getservbyport_r" != "xyes"; then
 
37364
      { echo "$as_me:$LINENO: result: yes" >&5
 
37365
echo "${ECHO_T}yes" >&6; }
 
37366
      tst_allow_getservbyport_r="yes"
 
37367
    else
 
37368
      { echo "$as_me:$LINENO: result: no" >&5
 
37369
echo "${ECHO_T}no" >&6; }
 
37370
      tst_allow_getservbyport_r="no"
 
37371
    fi
 
37372
  fi
 
37373
  #
 
37374
  { echo "$as_me:$LINENO: checking if getservbyport_r might be used" >&5
 
37375
echo $ECHO_N "checking if getservbyport_r might be used... $ECHO_C" >&6; }
 
37376
  if test "$tst_links_getservbyport_r" = "yes" &&
 
37377
     test "$tst_proto_getservbyport_r" = "yes" &&
 
37378
     test "$tst_compi_getservbyport_r" = "yes" &&
 
37379
     test "$tst_allow_getservbyport_r" = "yes"; then
 
37380
    { echo "$as_me:$LINENO: result: yes" >&5
 
37381
echo "${ECHO_T}yes" >&6; }
 
37382
 
 
37383
cat >>confdefs.h <<_ACEOF
 
37384
#define HAVE_GETSERVBYPORT_R 1
 
37385
_ACEOF
 
37386
 
 
37387
 
 
37388
cat >>confdefs.h <<_ACEOF
 
37389
#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
 
37390
_ACEOF
 
37391
 
 
37392
    if test "$tst_nargs_getservbyport_r" -eq "4"; then
 
37393
 
 
37394
cat >>confdefs.h <<\_ACEOF
 
37395
#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)
 
37396
_ACEOF
 
37397
 
 
37398
    else
 
37399
 
 
37400
cat >>confdefs.h <<\_ACEOF
 
37401
#define GETSERVBYPORT_R_BUFSIZE 4096
 
37402
_ACEOF
 
37403
 
 
37404
    fi
 
37405
    ac_cv_func_getservbyport_r="yes"
 
37406
  else
 
37407
    { echo "$as_me:$LINENO: result: no" >&5
 
37408
echo "${ECHO_T}no" >&6; }
 
37409
    ac_cv_func_getservbyport_r="no"
 
37410
  fi
 
37411
 
 
37412
 
 
37413
curl_includes_time="\
 
37414
/* includes start */
 
37415
#ifdef HAVE_SYS_TYPES_H
 
37416
#  include <sys/types.h>
 
37417
#endif
 
37418
#ifdef HAVE_SYS_TIME_H
 
37419
#  include <sys/time.h>
 
37420
#  ifdef TIME_WITH_SYS_TIME
 
37421
#    include <time.h>
 
37422
#  endif
 
37423
#else
 
37424
#  ifdef HAVE_TIME_H
 
37425
#    include <time.h>
 
37426
#  endif
 
37427
#endif
 
37428
/* includes end */"
 
37429
 
 
37430
 
 
37431
 
 
37432
for ac_header in sys/types.h sys/time.h time.h
 
37433
do
 
37434
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
37435
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
37436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
37437
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
37438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37439
else
 
37440
  cat >conftest.$ac_ext <<_ACEOF
 
37441
/* confdefs.h.  */
 
37442
_ACEOF
 
37443
cat confdefs.h >>conftest.$ac_ext
 
37444
cat >>conftest.$ac_ext <<_ACEOF
 
37445
/* end confdefs.h.  */
 
37446
$curl_includes_time
 
37447
 
 
37448
#include <$ac_header>
 
37449
_ACEOF
 
37450
rm -f conftest.$ac_objext
 
37451
if { (ac_try="$ac_compile"
 
37452
case "(($ac_try" in
 
37453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37454
  *) ac_try_echo=$ac_try;;
 
37455
esac
 
37456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37457
  (eval "$ac_compile") 2>conftest.er1
 
37458
  ac_status=$?
 
37459
  grep -v '^ *+' conftest.er1 >conftest.err
 
37460
  rm -f conftest.er1
 
37461
  cat conftest.err >&5
 
37462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37463
  (exit $ac_status); } && {
 
37464
         test -z "$ac_c_werror_flag" ||
 
37465
         test ! -s conftest.err
 
37466
       } && test -s conftest.$ac_objext; then
 
37467
  eval "$as_ac_Header=yes"
 
37468
else
 
37469
  echo "$as_me: failed program was:" >&5
 
37470
sed 's/^/| /' conftest.$ac_ext >&5
 
37471
 
 
37472
        eval "$as_ac_Header=no"
 
37473
fi
 
37474
 
 
37475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37476
fi
 
37477
ac_res=`eval echo '${'$as_ac_Header'}'`
 
37478
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
37479
echo "${ECHO_T}$ac_res" >&6; }
 
37480
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
37481
  cat >>confdefs.h <<_ACEOF
 
37482
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
37483
_ACEOF
 
37484
 
 
37485
fi
 
37486
 
 
37487
done
 
37488
 
 
37489
 
 
37490
 
 
37491
      #
 
37492
  tst_links_gmtime_r="unknown"
 
37493
  tst_proto_gmtime_r="unknown"
 
37494
  tst_compi_gmtime_r="unknown"
 
37495
  tst_works_gmtime_r="unknown"
 
37496
  tst_allow_gmtime_r="unknown"
 
37497
  #
 
37498
  { echo "$as_me:$LINENO: checking if gmtime_r can be linked" >&5
 
37499
echo $ECHO_N "checking if gmtime_r can be linked... $ECHO_C" >&6; }
 
37500
  cat >conftest.$ac_ext <<_ACEOF
 
37501
 
 
37502
    /* confdefs.h.  */
 
37503
_ACEOF
 
37504
cat confdefs.h >>conftest.$ac_ext
 
37505
cat >>conftest.$ac_ext <<_ACEOF
 
37506
/* end confdefs.h.  */
 
37507
 
 
37508
#define gmtime_r innocuous_gmtime_r
 
37509
#ifdef __STDC__
 
37510
# include <limits.h>
 
37511
#else
 
37512
# include <assert.h>
 
37513
#endif
 
37514
#undef gmtime_r
 
37515
#ifdef __cplusplus
 
37516
extern "C"
 
37517
#endif
 
37518
char gmtime_r ();
 
37519
#if defined __stub_gmtime_r || defined __stub___gmtime_r
 
37520
choke me
 
37521
#endif
 
37522
 
 
37523
int main (void)
 
37524
{
 
37525
return gmtime_r ();
 
37526
 ;
 
37527
 return 0;
 
37528
}
 
37529
 
 
37530
_ACEOF
 
37531
rm -f conftest.$ac_objext conftest$ac_exeext
 
37532
if { (ac_try="$ac_link"
 
37533
case "(($ac_try" in
 
37534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37535
  *) ac_try_echo=$ac_try;;
 
37536
esac
 
37537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37538
  (eval "$ac_link") 2>conftest.er1
 
37539
  ac_status=$?
 
37540
  grep -v '^ *+' conftest.er1 >conftest.err
 
37541
  rm -f conftest.er1
 
37542
  cat conftest.err >&5
 
37543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37544
  (exit $ac_status); } && {
 
37545
         test -z "$ac_c_werror_flag" ||
 
37546
         test ! -s conftest.err
 
37547
       } && test -s conftest$ac_exeext &&
 
37548
       $as_test_x conftest$ac_exeext; then
 
37549
 
 
37550
    { echo "$as_me:$LINENO: result: yes" >&5
 
37551
echo "${ECHO_T}yes" >&6; }
 
37552
    tst_links_gmtime_r="yes"
 
37553
 
 
37554
else
 
37555
  echo "$as_me: failed program was:" >&5
 
37556
sed 's/^/| /' conftest.$ac_ext >&5
 
37557
 
 
37558
 
 
37559
    { echo "$as_me:$LINENO: result: no" >&5
 
37560
echo "${ECHO_T}no" >&6; }
 
37561
    tst_links_gmtime_r="no"
 
37562
 
 
37563
fi
 
37564
 
 
37565
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
37566
      conftest$ac_exeext conftest.$ac_ext
 
37567
  #
 
37568
  if test "$tst_links_gmtime_r" = "yes"; then
 
37569
    { echo "$as_me:$LINENO: checking if gmtime_r is prototyped" >&5
 
37570
echo $ECHO_N "checking if gmtime_r is prototyped... $ECHO_C" >&6; }
 
37571
    cat >conftest.$ac_ext <<_ACEOF
 
37572
/* confdefs.h.  */
 
37573
_ACEOF
 
37574
cat confdefs.h >>conftest.$ac_ext
 
37575
cat >>conftest.$ac_ext <<_ACEOF
 
37576
/* end confdefs.h.  */
 
37577
 
 
37578
      $curl_includes_time
 
37579
 
 
37580
_ACEOF
 
37581
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
37582
  $EGREP "gmtime_r" >/dev/null 2>&1; then
 
37583
 
 
37584
      { echo "$as_me:$LINENO: result: yes" >&5
 
37585
echo "${ECHO_T}yes" >&6; }
 
37586
      tst_proto_gmtime_r="yes"
 
37587
 
 
37588
else
 
37589
 
 
37590
      { echo "$as_me:$LINENO: result: no" >&5
 
37591
echo "${ECHO_T}no" >&6; }
 
37592
      tst_proto_gmtime_r="no"
 
37593
 
 
37594
fi
 
37595
rm -f conftest*
 
37596
 
 
37597
  fi
 
37598
  #
 
37599
  if test "$tst_proto_gmtime_r" = "yes"; then
 
37600
    { echo "$as_me:$LINENO: checking if gmtime_r is compilable" >&5
 
37601
echo $ECHO_N "checking if gmtime_r is compilable... $ECHO_C" >&6; }
 
37602
    cat >conftest.$ac_ext <<_ACEOF
 
37603
 
 
37604
      /* confdefs.h.  */
 
37605
_ACEOF
 
37606
cat confdefs.h >>conftest.$ac_ext
 
37607
cat >>conftest.$ac_ext <<_ACEOF
 
37608
/* end confdefs.h.  */
 
37609
 
 
37610
        $curl_includes_time
 
37611
 
 
37612
int main (void)
 
37613
{
 
37614
 
 
37615
        if(0 != gmtime_r(0, 0))
 
37616
          return 1;
 
37617
 
 
37618
 ;
 
37619
 return 0;
 
37620
}
 
37621
 
 
37622
_ACEOF
 
37623
rm -f conftest.$ac_objext
 
37624
if { (ac_try="$ac_compile"
 
37625
case "(($ac_try" in
 
37626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37627
  *) ac_try_echo=$ac_try;;
 
37628
esac
 
37629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37630
  (eval "$ac_compile") 2>conftest.er1
 
37631
  ac_status=$?
 
37632
  grep -v '^ *+' conftest.er1 >conftest.err
 
37633
  rm -f conftest.er1
 
37634
  cat conftest.err >&5
 
37635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37636
  (exit $ac_status); } && {
 
37637
         test -z "$ac_c_werror_flag" ||
 
37638
         test ! -s conftest.err
 
37639
       } && test -s conftest.$ac_objext; then
 
37640
 
 
37641
      { echo "$as_me:$LINENO: result: yes" >&5
 
37642
echo "${ECHO_T}yes" >&6; }
 
37643
      tst_compi_gmtime_r="yes"
 
37644
 
 
37645
else
 
37646
  echo "$as_me: failed program was:" >&5
 
37647
sed 's/^/| /' conftest.$ac_ext >&5
 
37648
 
 
37649
 
 
37650
      { echo "$as_me:$LINENO: result: no" >&5
 
37651
echo "${ECHO_T}no" >&6; }
 
37652
      tst_compi_gmtime_r="no"
 
37653
 
 
37654
fi
 
37655
 
 
37656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37657
  fi
 
37658
  #
 
37659
    if test "x$cross_compiling" != "xyes" &&
 
37660
    test "$tst_compi_gmtime_r" = "yes"; then
 
37661
    { echo "$as_me:$LINENO: checking if gmtime_r seems to work" >&5
 
37662
echo $ECHO_N "checking if gmtime_r seems to work... $ECHO_C" >&6; }
 
37663
    if test "$cross_compiling" = yes; then
 
37664
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
37665
See \`config.log' for more details." >&5
 
37666
echo "$as_me: error: cannot run test program while cross compiling
 
37667
See \`config.log' for more details." >&2;}
 
37668
   { (exit 1); exit 1; }; }
 
37669
else
 
37670
  cat >conftest.$ac_ext <<_ACEOF
 
37671
 
 
37672
      /* confdefs.h.  */
 
37673
_ACEOF
 
37674
cat confdefs.h >>conftest.$ac_ext
 
37675
cat >>conftest.$ac_ext <<_ACEOF
 
37676
/* end confdefs.h.  */
 
37677
 
 
37678
        $curl_includes_stdlib
 
37679
        $curl_includes_time
 
37680
 
 
37681
int main (void)
 
37682
{
 
37683
 
 
37684
        time_t local = 1170352587;
 
37685
        struct tm *gmt = 0;
 
37686
        struct tm result;
 
37687
        gmt = gmtime_r(&local, &result);
 
37688
        if(gmt)
 
37689
          exit(0);
 
37690
        else
 
37691
          exit(1);
 
37692
 
 
37693
 ;
 
37694
 return 0;
 
37695
}
 
37696
 
 
37697
_ACEOF
 
37698
rm -f conftest$ac_exeext
 
37699
if { (ac_try="$ac_link"
 
37700
case "(($ac_try" in
 
37701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37702
  *) ac_try_echo=$ac_try;;
 
37703
esac
 
37704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37705
  (eval "$ac_link") 2>&5
 
37706
  ac_status=$?
 
37707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37708
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
37709
  { (case "(($ac_try" in
 
37710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37711
  *) ac_try_echo=$ac_try;;
 
37712
esac
 
37713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37714
  (eval "$ac_try") 2>&5
 
37715
  ac_status=$?
 
37716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37717
  (exit $ac_status); }; }; then
 
37718
 
 
37719
      { echo "$as_me:$LINENO: result: yes" >&5
 
37720
echo "${ECHO_T}yes" >&6; }
 
37721
      tst_works_gmtime_r="yes"
 
37722
 
 
37723
else
 
37724
  echo "$as_me: program exited with status $ac_status" >&5
 
37725
echo "$as_me: failed program was:" >&5
 
37726
sed 's/^/| /' conftest.$ac_ext >&5
 
37727
 
 
37728
( exit $ac_status )
 
37729
 
 
37730
      { echo "$as_me:$LINENO: result: no" >&5
 
37731
echo "${ECHO_T}no" >&6; }
 
37732
      tst_works_gmtime_r="no"
 
37733
 
 
37734
fi
 
37735
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
37736
fi
 
37737
 
 
37738
 
 
37739
  fi
 
37740
  #
 
37741
  if test "$tst_compi_gmtime_r" = "yes" &&
 
37742
    test "$tst_works_gmtime_r" != "no"; then
 
37743
    { echo "$as_me:$LINENO: checking if gmtime_r usage allowed" >&5
 
37744
echo $ECHO_N "checking if gmtime_r usage allowed... $ECHO_C" >&6; }
 
37745
    if test "x$curl_disallow_gmtime_r" != "xyes"; then
 
37746
      { echo "$as_me:$LINENO: result: yes" >&5
 
37747
echo "${ECHO_T}yes" >&6; }
 
37748
      tst_allow_gmtime_r="yes"
 
37749
    else
 
37750
      { echo "$as_me:$LINENO: result: no" >&5
 
37751
echo "${ECHO_T}no" >&6; }
 
37752
      tst_allow_gmtime_r="no"
 
37753
    fi
 
37754
  fi
 
37755
  #
 
37756
  { echo "$as_me:$LINENO: checking if gmtime_r might be used" >&5
 
37757
echo $ECHO_N "checking if gmtime_r might be used... $ECHO_C" >&6; }
 
37758
  if test "$tst_links_gmtime_r" = "yes" &&
 
37759
     test "$tst_proto_gmtime_r" = "yes" &&
 
37760
     test "$tst_compi_gmtime_r" = "yes" &&
 
37761
     test "$tst_allow_gmtime_r" = "yes" &&
 
37762
     test "$tst_works_gmtime_r" != "no"; then
 
37763
    { echo "$as_me:$LINENO: result: yes" >&5
 
37764
echo "${ECHO_T}yes" >&6; }
 
37765
 
 
37766
cat >>confdefs.h <<_ACEOF
 
37767
#define HAVE_GMTIME_R 1
 
37768
_ACEOF
 
37769
 
 
37770
    ac_cv_func_gmtime_r="yes"
 
37771
  else
 
37772
    { echo "$as_me:$LINENO: result: no" >&5
 
37773
echo "${ECHO_T}no" >&6; }
 
37774
    ac_cv_func_gmtime_r="no"
 
37775
  fi
 
37776
 
 
37777
 
 
37778
curl_includes_arpa_inet="\
 
37779
/* includes start */
 
37780
#ifdef HAVE_SYS_TYPES_H
 
37781
#  include <sys/types.h>
 
37782
#endif
 
37783
#ifdef HAVE_SYS_SOCKET_H
 
37784
#  include <sys/socket.h>
 
37785
#endif
 
37786
#ifdef HAVE_NETINET_IN_H
 
37787
#  include <netinet/in.h>
 
37788
#endif
 
37789
#ifdef HAVE_ARPA_INET_H
 
37790
#  include <arpa/inet.h>
 
37791
#endif
 
37792
/* includes end */"
 
37793
 
 
37794
 
 
37795
 
 
37796
 
 
37797
for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
 
37798
do
 
37799
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
37800
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
37801
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
37802
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
37803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37804
else
 
37805
  cat >conftest.$ac_ext <<_ACEOF
 
37806
/* confdefs.h.  */
 
37807
_ACEOF
 
37808
cat confdefs.h >>conftest.$ac_ext
 
37809
cat >>conftest.$ac_ext <<_ACEOF
 
37810
/* end confdefs.h.  */
 
37811
$curl_includes_arpa_inet
 
37812
 
 
37813
#include <$ac_header>
 
37814
_ACEOF
 
37815
rm -f conftest.$ac_objext
 
37816
if { (ac_try="$ac_compile"
 
37817
case "(($ac_try" in
 
37818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37819
  *) ac_try_echo=$ac_try;;
 
37820
esac
 
37821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37822
  (eval "$ac_compile") 2>conftest.er1
 
37823
  ac_status=$?
 
37824
  grep -v '^ *+' conftest.er1 >conftest.err
 
37825
  rm -f conftest.er1
 
37826
  cat conftest.err >&5
 
37827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37828
  (exit $ac_status); } && {
 
37829
         test -z "$ac_c_werror_flag" ||
 
37830
         test ! -s conftest.err
 
37831
       } && test -s conftest.$ac_objext; then
 
37832
  eval "$as_ac_Header=yes"
 
37833
else
 
37834
  echo "$as_me: failed program was:" >&5
 
37835
sed 's/^/| /' conftest.$ac_ext >&5
 
37836
 
 
37837
        eval "$as_ac_Header=no"
 
37838
fi
 
37839
 
 
37840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
37841
fi
 
37842
ac_res=`eval echo '${'$as_ac_Header'}'`
 
37843
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
37844
echo "${ECHO_T}$ac_res" >&6; }
 
37845
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
37846
  cat >>confdefs.h <<_ACEOF
 
37847
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
37848
_ACEOF
 
37849
 
 
37850
fi
 
37851
 
 
37852
done
 
37853
 
 
37854
 
 
37855
 
 
37856
    #
 
37857
  tst_links_inet_ntoa_r="unknown"
 
37858
  tst_proto_inet_ntoa_r="unknown"
 
37859
  tst_compi_inet_ntoa_r="unknown"
 
37860
  tst_allow_inet_ntoa_r="unknown"
 
37861
  tst_nargs_inet_ntoa_r="unknown"
 
37862
  #
 
37863
  { echo "$as_me:$LINENO: checking if inet_ntoa_r can be linked" >&5
 
37864
echo $ECHO_N "checking if inet_ntoa_r can be linked... $ECHO_C" >&6; }
 
37865
  cat >conftest.$ac_ext <<_ACEOF
 
37866
 
 
37867
    /* confdefs.h.  */
 
37868
_ACEOF
 
37869
cat confdefs.h >>conftest.$ac_ext
 
37870
cat >>conftest.$ac_ext <<_ACEOF
 
37871
/* end confdefs.h.  */
 
37872
 
 
37873
#define inet_ntoa_r innocuous_inet_ntoa_r
 
37874
#ifdef __STDC__
 
37875
# include <limits.h>
 
37876
#else
 
37877
# include <assert.h>
 
37878
#endif
 
37879
#undef inet_ntoa_r
 
37880
#ifdef __cplusplus
 
37881
extern "C"
 
37882
#endif
 
37883
char inet_ntoa_r ();
 
37884
#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
 
37885
choke me
 
37886
#endif
 
37887
 
 
37888
int main (void)
 
37889
{
 
37890
return inet_ntoa_r ();
 
37891
 ;
 
37892
 return 0;
 
37893
}
 
37894
 
 
37895
_ACEOF
 
37896
rm -f conftest.$ac_objext conftest$ac_exeext
 
37897
if { (ac_try="$ac_link"
 
37898
case "(($ac_try" in
 
37899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37900
  *) ac_try_echo=$ac_try;;
 
37901
esac
 
37902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37903
  (eval "$ac_link") 2>conftest.er1
 
37904
  ac_status=$?
 
37905
  grep -v '^ *+' conftest.er1 >conftest.err
 
37906
  rm -f conftest.er1
 
37907
  cat conftest.err >&5
 
37908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37909
  (exit $ac_status); } && {
 
37910
         test -z "$ac_c_werror_flag" ||
 
37911
         test ! -s conftest.err
 
37912
       } && test -s conftest$ac_exeext &&
 
37913
       $as_test_x conftest$ac_exeext; then
 
37914
 
 
37915
    { echo "$as_me:$LINENO: result: yes" >&5
 
37916
echo "${ECHO_T}yes" >&6; }
 
37917
    tst_links_inet_ntoa_r="yes"
 
37918
 
 
37919
else
 
37920
  echo "$as_me: failed program was:" >&5
 
37921
sed 's/^/| /' conftest.$ac_ext >&5
 
37922
 
 
37923
 
 
37924
    { echo "$as_me:$LINENO: result: no" >&5
 
37925
echo "${ECHO_T}no" >&6; }
 
37926
    tst_links_inet_ntoa_r="no"
 
37927
 
 
37928
fi
 
37929
 
 
37930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
37931
      conftest$ac_exeext conftest.$ac_ext
 
37932
  #
 
37933
  if test "$tst_links_inet_ntoa_r" = "yes"; then
 
37934
    { echo "$as_me:$LINENO: checking if inet_ntoa_r is prototyped" >&5
 
37935
echo $ECHO_N "checking if inet_ntoa_r is prototyped... $ECHO_C" >&6; }
 
37936
    cat >conftest.$ac_ext <<_ACEOF
 
37937
/* confdefs.h.  */
 
37938
_ACEOF
 
37939
cat confdefs.h >>conftest.$ac_ext
 
37940
cat >>conftest.$ac_ext <<_ACEOF
 
37941
/* end confdefs.h.  */
 
37942
 
 
37943
      $curl_includes_arpa_inet
 
37944
 
 
37945
_ACEOF
 
37946
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
37947
  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
 
37948
 
 
37949
      { echo "$as_me:$LINENO: result: yes" >&5
 
37950
echo "${ECHO_T}yes" >&6; }
 
37951
      tst_proto_inet_ntoa_r="yes"
 
37952
 
 
37953
else
 
37954
 
 
37955
      { echo "$as_me:$LINENO: result: no" >&5
 
37956
echo "${ECHO_T}no" >&6; }
 
37957
      tst_proto_inet_ntoa_r="no"
 
37958
 
 
37959
fi
 
37960
rm -f conftest*
 
37961
 
 
37962
  fi
 
37963
  #
 
37964
  if test "$tst_proto_inet_ntoa_r" = "yes"; then
 
37965
    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
 
37966
      { echo "$as_me:$LINENO: checking if inet_ntoa_r takes 2 args." >&5
 
37967
echo $ECHO_N "checking if inet_ntoa_r takes 2 args.... $ECHO_C" >&6; }
 
37968
      cat >conftest.$ac_ext <<_ACEOF
 
37969
 
 
37970
        /* confdefs.h.  */
 
37971
_ACEOF
 
37972
cat confdefs.h >>conftest.$ac_ext
 
37973
cat >>conftest.$ac_ext <<_ACEOF
 
37974
/* end confdefs.h.  */
 
37975
 
 
37976
          $curl_includes_arpa_inet
 
37977
 
 
37978
int main (void)
 
37979
{
 
37980
 
 
37981
          struct in_addr addr;
 
37982
          if(0 != inet_ntoa_r(addr, 0))
 
37983
            return 1;
 
37984
 
 
37985
 ;
 
37986
 return 0;
 
37987
}
 
37988
 
 
37989
_ACEOF
 
37990
rm -f conftest.$ac_objext
 
37991
if { (ac_try="$ac_compile"
 
37992
case "(($ac_try" in
 
37993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
37994
  *) ac_try_echo=$ac_try;;
 
37995
esac
 
37996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37997
  (eval "$ac_compile") 2>conftest.er1
 
37998
  ac_status=$?
 
37999
  grep -v '^ *+' conftest.er1 >conftest.err
 
38000
  rm -f conftest.er1
 
38001
  cat conftest.err >&5
 
38002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38003
  (exit $ac_status); } && {
 
38004
         test -z "$ac_c_werror_flag" ||
 
38005
         test ! -s conftest.err
 
38006
       } && test -s conftest.$ac_objext; then
 
38007
 
 
38008
        { echo "$as_me:$LINENO: result: yes" >&5
 
38009
echo "${ECHO_T}yes" >&6; }
 
38010
        tst_compi_inet_ntoa_r="yes"
 
38011
        tst_nargs_inet_ntoa_r="2"
 
38012
 
 
38013
else
 
38014
  echo "$as_me: failed program was:" >&5
 
38015
sed 's/^/| /' conftest.$ac_ext >&5
 
38016
 
 
38017
 
 
38018
        { echo "$as_me:$LINENO: result: no" >&5
 
38019
echo "${ECHO_T}no" >&6; }
 
38020
        tst_compi_inet_ntoa_r="no"
 
38021
 
 
38022
fi
 
38023
 
 
38024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
38025
    fi
 
38026
    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
 
38027
      { echo "$as_me:$LINENO: checking if inet_ntoa_r takes 3 args." >&5
 
38028
echo $ECHO_N "checking if inet_ntoa_r takes 3 args.... $ECHO_C" >&6; }
 
38029
      cat >conftest.$ac_ext <<_ACEOF
 
38030
 
 
38031
        /* confdefs.h.  */
 
38032
_ACEOF
 
38033
cat confdefs.h >>conftest.$ac_ext
 
38034
cat >>conftest.$ac_ext <<_ACEOF
 
38035
/* end confdefs.h.  */
 
38036
 
 
38037
          $curl_includes_arpa_inet
 
38038
 
 
38039
int main (void)
 
38040
{
 
38041
 
 
38042
          struct in_addr addr;
 
38043
          if(0 != inet_ntoa_r(addr, 0, 0))
 
38044
            return 1;
 
38045
 
 
38046
 ;
 
38047
 return 0;
 
38048
}
 
38049
 
 
38050
_ACEOF
 
38051
rm -f conftest.$ac_objext
 
38052
if { (ac_try="$ac_compile"
 
38053
case "(($ac_try" in
 
38054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38055
  *) ac_try_echo=$ac_try;;
 
38056
esac
 
38057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38058
  (eval "$ac_compile") 2>conftest.er1
 
38059
  ac_status=$?
 
38060
  grep -v '^ *+' conftest.er1 >conftest.err
 
38061
  rm -f conftest.er1
 
38062
  cat conftest.err >&5
 
38063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38064
  (exit $ac_status); } && {
 
38065
         test -z "$ac_c_werror_flag" ||
 
38066
         test ! -s conftest.err
 
38067
       } && test -s conftest.$ac_objext; then
 
38068
 
 
38069
        { echo "$as_me:$LINENO: result: yes" >&5
 
38070
echo "${ECHO_T}yes" >&6; }
 
38071
        tst_compi_inet_ntoa_r="yes"
 
38072
        tst_nargs_inet_ntoa_r="3"
 
38073
 
 
38074
else
 
38075
  echo "$as_me: failed program was:" >&5
 
38076
sed 's/^/| /' conftest.$ac_ext >&5
 
38077
 
 
38078
 
 
38079
        { echo "$as_me:$LINENO: result: no" >&5
 
38080
echo "${ECHO_T}no" >&6; }
 
38081
        tst_compi_inet_ntoa_r="no"
 
38082
 
 
38083
fi
 
38084
 
 
38085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
38086
    fi
 
38087
    { echo "$as_me:$LINENO: checking if inet_ntoa_r is compilable" >&5
 
38088
echo $ECHO_N "checking if inet_ntoa_r is compilable... $ECHO_C" >&6; }
 
38089
    if test "$tst_compi_inet_ntoa_r" = "yes"; then
 
38090
      { echo "$as_me:$LINENO: result: yes" >&5
 
38091
echo "${ECHO_T}yes" >&6; }
 
38092
    else
 
38093
      { echo "$as_me:$LINENO: result: no" >&5
 
38094
echo "${ECHO_T}no" >&6; }
 
38095
    fi
 
38096
  fi
 
38097
  #
 
38098
  if test "$tst_compi_inet_ntoa_r" = "yes"; then
 
38099
    { echo "$as_me:$LINENO: checking if inet_ntoa_r usage allowed" >&5
 
38100
echo $ECHO_N "checking if inet_ntoa_r usage allowed... $ECHO_C" >&6; }
 
38101
    if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
 
38102
      { echo "$as_me:$LINENO: result: yes" >&5
 
38103
echo "${ECHO_T}yes" >&6; }
 
38104
      tst_allow_inet_ntoa_r="yes"
 
38105
    else
 
38106
      { echo "$as_me:$LINENO: result: no" >&5
 
38107
echo "${ECHO_T}no" >&6; }
 
38108
      tst_allow_inet_ntoa_r="no"
 
38109
    fi
 
38110
  fi
 
38111
  #
 
38112
  { echo "$as_me:$LINENO: checking if inet_ntoa_r might be used" >&5
 
38113
echo $ECHO_N "checking if inet_ntoa_r might be used... $ECHO_C" >&6; }
 
38114
  if test "$tst_links_inet_ntoa_r" = "yes" &&
 
38115
     test "$tst_proto_inet_ntoa_r" = "yes" &&
 
38116
     test "$tst_compi_inet_ntoa_r" = "yes" &&
 
38117
     test "$tst_allow_inet_ntoa_r" = "yes"; then
 
38118
    { echo "$as_me:$LINENO: result: yes" >&5
 
38119
echo "${ECHO_T}yes" >&6; }
 
38120
 
 
38121
cat >>confdefs.h <<_ACEOF
 
38122
#define HAVE_INET_NTOA_R 1
 
38123
_ACEOF
 
38124
 
 
38125
            #
 
38126
    if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
 
38127
 
 
38128
cat >>confdefs.h <<\_ACEOF
 
38129
#define HAVE_INET_NTOA_R_2 1
 
38130
_ACEOF
 
38131
 
 
38132
    elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
 
38133
 
 
38134
cat >>confdefs.h <<\_ACEOF
 
38135
#define HAVE_INET_NTOA_R_3 1
 
38136
_ACEOF
 
38137
 
 
38138
    fi
 
38139
    #
 
38140
    ac_cv_func_inet_ntoa_r="yes"
 
38141
  else
 
38142
    { echo "$as_me:$LINENO: result: no" >&5
 
38143
echo "${ECHO_T}no" >&6; }
 
38144
    ac_cv_func_inet_ntoa_r="no"
 
38145
  fi
 
38146
 
 
38147
 
 
38148
        #
 
38149
  tst_links_inet_ntop="unknown"
 
38150
  tst_proto_inet_ntop="unknown"
 
38151
  tst_compi_inet_ntop="unknown"
 
38152
  tst_works_inet_ntop="unknown"
 
38153
  tst_allow_inet_ntop="unknown"
 
38154
  #
 
38155
  { echo "$as_me:$LINENO: checking if inet_ntop can be linked" >&5
 
38156
echo $ECHO_N "checking if inet_ntop can be linked... $ECHO_C" >&6; }
 
38157
  cat >conftest.$ac_ext <<_ACEOF
 
38158
 
 
38159
    /* confdefs.h.  */
 
38160
_ACEOF
 
38161
cat confdefs.h >>conftest.$ac_ext
 
38162
cat >>conftest.$ac_ext <<_ACEOF
 
38163
/* end confdefs.h.  */
 
38164
 
 
38165
#define inet_ntop innocuous_inet_ntop
 
38166
#ifdef __STDC__
 
38167
# include <limits.h>
 
38168
#else
 
38169
# include <assert.h>
 
38170
#endif
 
38171
#undef inet_ntop
 
38172
#ifdef __cplusplus
 
38173
extern "C"
 
38174
#endif
 
38175
char inet_ntop ();
 
38176
#if defined __stub_inet_ntop || defined __stub___inet_ntop
 
38177
choke me
 
38178
#endif
 
38179
 
 
38180
int main (void)
 
38181
{
 
38182
return inet_ntop ();
 
38183
 ;
 
38184
 return 0;
 
38185
}
 
38186
 
 
38187
_ACEOF
 
38188
rm -f conftest.$ac_objext conftest$ac_exeext
 
38189
if { (ac_try="$ac_link"
 
38190
case "(($ac_try" in
 
38191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38192
  *) ac_try_echo=$ac_try;;
 
38193
esac
 
38194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38195
  (eval "$ac_link") 2>conftest.er1
 
38196
  ac_status=$?
 
38197
  grep -v '^ *+' conftest.er1 >conftest.err
 
38198
  rm -f conftest.er1
 
38199
  cat conftest.err >&5
 
38200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38201
  (exit $ac_status); } && {
 
38202
         test -z "$ac_c_werror_flag" ||
 
38203
         test ! -s conftest.err
 
38204
       } && test -s conftest$ac_exeext &&
 
38205
       $as_test_x conftest$ac_exeext; then
 
38206
 
 
38207
    { echo "$as_me:$LINENO: result: yes" >&5
 
38208
echo "${ECHO_T}yes" >&6; }
 
38209
    tst_links_inet_ntop="yes"
 
38210
 
 
38211
else
 
38212
  echo "$as_me: failed program was:" >&5
 
38213
sed 's/^/| /' conftest.$ac_ext >&5
 
38214
 
 
38215
 
 
38216
    { echo "$as_me:$LINENO: result: no" >&5
 
38217
echo "${ECHO_T}no" >&6; }
 
38218
    tst_links_inet_ntop="no"
 
38219
 
 
38220
fi
 
38221
 
 
38222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
38223
      conftest$ac_exeext conftest.$ac_ext
 
38224
  #
 
38225
  if test "$tst_links_inet_ntop" = "yes"; then
 
38226
    { echo "$as_me:$LINENO: checking if inet_ntop is prototyped" >&5
 
38227
echo $ECHO_N "checking if inet_ntop is prototyped... $ECHO_C" >&6; }
 
38228
    cat >conftest.$ac_ext <<_ACEOF
 
38229
/* confdefs.h.  */
 
38230
_ACEOF
 
38231
cat confdefs.h >>conftest.$ac_ext
 
38232
cat >>conftest.$ac_ext <<_ACEOF
 
38233
/* end confdefs.h.  */
 
38234
 
 
38235
      $curl_includes_arpa_inet
 
38236
 
 
38237
_ACEOF
 
38238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
38239
  $EGREP "inet_ntop" >/dev/null 2>&1; then
 
38240
 
 
38241
      { echo "$as_me:$LINENO: result: yes" >&5
 
38242
echo "${ECHO_T}yes" >&6; }
 
38243
      tst_proto_inet_ntop="yes"
 
38244
 
 
38245
else
 
38246
 
 
38247
      { echo "$as_me:$LINENO: result: no" >&5
 
38248
echo "${ECHO_T}no" >&6; }
 
38249
      tst_proto_inet_ntop="no"
 
38250
 
 
38251
fi
 
38252
rm -f conftest*
 
38253
 
 
38254
  fi
 
38255
  #
 
38256
  if test "$tst_proto_inet_ntop" = "yes"; then
 
38257
    { echo "$as_me:$LINENO: checking if inet_ntop is compilable" >&5
 
38258
echo $ECHO_N "checking if inet_ntop is compilable... $ECHO_C" >&6; }
 
38259
    cat >conftest.$ac_ext <<_ACEOF
 
38260
 
 
38261
      /* confdefs.h.  */
 
38262
_ACEOF
 
38263
cat confdefs.h >>conftest.$ac_ext
 
38264
cat >>conftest.$ac_ext <<_ACEOF
 
38265
/* end confdefs.h.  */
 
38266
 
 
38267
        $curl_includes_arpa_inet
 
38268
 
 
38269
int main (void)
 
38270
{
 
38271
 
 
38272
        if(0 != inet_ntop(0, 0, 0, 0))
 
38273
          return 1;
 
38274
 
 
38275
 ;
 
38276
 return 0;
 
38277
}
 
38278
 
 
38279
_ACEOF
 
38280
rm -f conftest.$ac_objext
 
38281
if { (ac_try="$ac_compile"
 
38282
case "(($ac_try" in
 
38283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38284
  *) ac_try_echo=$ac_try;;
 
38285
esac
 
38286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38287
  (eval "$ac_compile") 2>conftest.er1
 
38288
  ac_status=$?
 
38289
  grep -v '^ *+' conftest.er1 >conftest.err
 
38290
  rm -f conftest.er1
 
38291
  cat conftest.err >&5
 
38292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38293
  (exit $ac_status); } && {
 
38294
         test -z "$ac_c_werror_flag" ||
 
38295
         test ! -s conftest.err
 
38296
       } && test -s conftest.$ac_objext; then
 
38297
 
 
38298
      { echo "$as_me:$LINENO: result: yes" >&5
 
38299
echo "${ECHO_T}yes" >&6; }
 
38300
      tst_compi_inet_ntop="yes"
 
38301
 
 
38302
else
 
38303
  echo "$as_me: failed program was:" >&5
 
38304
sed 's/^/| /' conftest.$ac_ext >&5
 
38305
 
 
38306
 
 
38307
      { echo "$as_me:$LINENO: result: no" >&5
 
38308
echo "${ECHO_T}no" >&6; }
 
38309
      tst_compi_inet_ntop="no"
 
38310
 
 
38311
fi
 
38312
 
 
38313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
38314
  fi
 
38315
  #
 
38316
    if test "x$cross_compiling" != "xyes" &&
 
38317
    test "$tst_compi_inet_ntop" = "yes"; then
 
38318
    { echo "$as_me:$LINENO: checking if inet_ntop seems to work" >&5
 
38319
echo $ECHO_N "checking if inet_ntop seems to work... $ECHO_C" >&6; }
 
38320
    if test "$cross_compiling" = yes; then
 
38321
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
38322
See \`config.log' for more details." >&5
 
38323
echo "$as_me: error: cannot run test program while cross compiling
 
38324
See \`config.log' for more details." >&2;}
 
38325
   { (exit 1); exit 1; }; }
 
38326
else
 
38327
  cat >conftest.$ac_ext <<_ACEOF
 
38328
 
 
38329
      /* confdefs.h.  */
 
38330
_ACEOF
 
38331
cat confdefs.h >>conftest.$ac_ext
 
38332
cat >>conftest.$ac_ext <<_ACEOF
 
38333
/* end confdefs.h.  */
 
38334
 
 
38335
        $curl_includes_stdlib
 
38336
        $curl_includes_arpa_inet
 
38337
        $curl_includes_string
 
38338
 
 
38339
int main (void)
 
38340
{
 
38341
 
 
38342
        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
 
38343
        char ipv4res[sizeof "255.255.255.255"];
 
38344
        unsigned char ipv6a[26];
 
38345
        unsigned char ipv4a[5];
 
38346
        char *ipv6ptr = 0;
 
38347
        char *ipv4ptr = 0;
 
38348
        /* - */
 
38349
        ipv4res[0] = '\0';
 
38350
        ipv4a[0] = 0xc0;
 
38351
        ipv4a[1] = 0xa8;
 
38352
        ipv4a[2] = 0x64;
 
38353
        ipv4a[3] = 0x01;
 
38354
        ipv4a[4] = 0x01;
 
38355
        /* - */
 
38356
        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
 
38357
        if(!ipv4ptr)
 
38358
          exit(1); /* fail */
 
38359
        if(ipv4ptr != ipv4res)
 
38360
          exit(1); /* fail */
 
38361
        if(!ipv4ptr[0])
 
38362
          exit(1); /* fail */
 
38363
        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
 
38364
          exit(1); /* fail */
 
38365
        /* - */
 
38366
        ipv6res[0] = '\0';
 
38367
        memset(ipv6a, 0, sizeof(ipv6a));
 
38368
        ipv6a[0] = 0xfe;
 
38369
        ipv6a[1] = 0x80;
 
38370
        ipv6a[8] = 0x02;
 
38371
        ipv6a[9] = 0x14;
 
38372
        ipv6a[10] = 0x4f;
 
38373
        ipv6a[11] = 0xff;
 
38374
        ipv6a[12] = 0xfe;
 
38375
        ipv6a[13] = 0x0b;
 
38376
        ipv6a[14] = 0x76;
 
38377
        ipv6a[15] = 0xc8;
 
38378
        ipv6a[25] = 0x01;
 
38379
        /* - */
 
38380
        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
 
38381
        if(!ipv6ptr)
 
38382
          exit(1); /* fail */
 
38383
        if(ipv6ptr != ipv6res)
 
38384
          exit(1); /* fail */
 
38385
        if(!ipv6ptr[0])
 
38386
          exit(1); /* fail */
 
38387
        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
 
38388
          exit(1); /* fail */
 
38389
        /* - */
 
38390
        exit(0);
 
38391
 
 
38392
 ;
 
38393
 return 0;
 
38394
}
 
38395
 
 
38396
_ACEOF
 
38397
rm -f conftest$ac_exeext
 
38398
if { (ac_try="$ac_link"
 
38399
case "(($ac_try" in
 
38400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38401
  *) ac_try_echo=$ac_try;;
 
38402
esac
 
38403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38404
  (eval "$ac_link") 2>&5
 
38405
  ac_status=$?
 
38406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38407
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
38408
  { (case "(($ac_try" in
 
38409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38410
  *) ac_try_echo=$ac_try;;
 
38411
esac
 
38412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38413
  (eval "$ac_try") 2>&5
 
38414
  ac_status=$?
 
38415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38416
  (exit $ac_status); }; }; then
 
38417
 
 
38418
      { echo "$as_me:$LINENO: result: yes" >&5
 
38419
echo "${ECHO_T}yes" >&6; }
 
38420
      tst_works_inet_ntop="yes"
 
38421
 
 
38422
else
 
38423
  echo "$as_me: program exited with status $ac_status" >&5
 
38424
echo "$as_me: failed program was:" >&5
 
38425
sed 's/^/| /' conftest.$ac_ext >&5
 
38426
 
 
38427
( exit $ac_status )
 
38428
 
 
38429
      { echo "$as_me:$LINENO: result: no" >&5
 
38430
echo "${ECHO_T}no" >&6; }
 
38431
      tst_works_inet_ntop="no"
 
38432
 
 
38433
fi
 
38434
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
38435
fi
 
38436
 
 
38437
 
 
38438
  fi
 
38439
  #
 
38440
  if test "$tst_compi_inet_ntop" = "yes" &&
 
38441
    test "$tst_works_inet_ntop" != "no"; then
 
38442
    { echo "$as_me:$LINENO: checking if inet_ntop usage allowed" >&5
 
38443
echo $ECHO_N "checking if inet_ntop usage allowed... $ECHO_C" >&6; }
 
38444
    if test "x$curl_disallow_inet_ntop" != "xyes"; then
 
38445
      { echo "$as_me:$LINENO: result: yes" >&5
 
38446
echo "${ECHO_T}yes" >&6; }
 
38447
      tst_allow_inet_ntop="yes"
 
38448
    else
 
38449
      { echo "$as_me:$LINENO: result: no" >&5
 
38450
echo "${ECHO_T}no" >&6; }
 
38451
      tst_allow_inet_ntop="no"
 
38452
    fi
 
38453
  fi
 
38454
  #
 
38455
  { echo "$as_me:$LINENO: checking if inet_ntop might be used" >&5
 
38456
echo $ECHO_N "checking if inet_ntop might be used... $ECHO_C" >&6; }
 
38457
  if test "$tst_links_inet_ntop" = "yes" &&
 
38458
     test "$tst_proto_inet_ntop" = "yes" &&
 
38459
     test "$tst_compi_inet_ntop" = "yes" &&
 
38460
     test "$tst_allow_inet_ntop" = "yes" &&
 
38461
     test "$tst_works_inet_ntop" != "no"; then
 
38462
    { echo "$as_me:$LINENO: result: yes" >&5
 
38463
echo "${ECHO_T}yes" >&6; }
 
38464
 
 
38465
cat >>confdefs.h <<_ACEOF
 
38466
#define HAVE_INET_NTOP 1
 
38467
_ACEOF
 
38468
 
 
38469
    ac_cv_func_inet_ntop="yes"
 
38470
  else
 
38471
    { echo "$as_me:$LINENO: result: no" >&5
 
38472
echo "${ECHO_T}no" >&6; }
 
38473
    ac_cv_func_inet_ntop="no"
 
38474
  fi
 
38475
 
 
38476
 
 
38477
        #
 
38478
  tst_links_inet_pton="unknown"
 
38479
  tst_proto_inet_pton="unknown"
 
38480
  tst_compi_inet_pton="unknown"
 
38481
  tst_works_inet_pton="unknown"
 
38482
  tst_allow_inet_pton="unknown"
 
38483
  #
 
38484
  { echo "$as_me:$LINENO: checking if inet_pton can be linked" >&5
 
38485
echo $ECHO_N "checking if inet_pton can be linked... $ECHO_C" >&6; }
 
38486
  cat >conftest.$ac_ext <<_ACEOF
 
38487
 
 
38488
    /* confdefs.h.  */
 
38489
_ACEOF
 
38490
cat confdefs.h >>conftest.$ac_ext
 
38491
cat >>conftest.$ac_ext <<_ACEOF
 
38492
/* end confdefs.h.  */
 
38493
 
 
38494
#define inet_pton innocuous_inet_pton
 
38495
#ifdef __STDC__
 
38496
# include <limits.h>
 
38497
#else
 
38498
# include <assert.h>
 
38499
#endif
 
38500
#undef inet_pton
 
38501
#ifdef __cplusplus
 
38502
extern "C"
 
38503
#endif
 
38504
char inet_pton ();
 
38505
#if defined __stub_inet_pton || defined __stub___inet_pton
 
38506
choke me
 
38507
#endif
 
38508
 
 
38509
int main (void)
 
38510
{
 
38511
return inet_pton ();
 
38512
 ;
 
38513
 return 0;
 
38514
}
 
38515
 
 
38516
_ACEOF
 
38517
rm -f conftest.$ac_objext conftest$ac_exeext
 
38518
if { (ac_try="$ac_link"
 
38519
case "(($ac_try" in
 
38520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38521
  *) ac_try_echo=$ac_try;;
 
38522
esac
 
38523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38524
  (eval "$ac_link") 2>conftest.er1
 
38525
  ac_status=$?
 
38526
  grep -v '^ *+' conftest.er1 >conftest.err
 
38527
  rm -f conftest.er1
 
38528
  cat conftest.err >&5
 
38529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38530
  (exit $ac_status); } && {
 
38531
         test -z "$ac_c_werror_flag" ||
 
38532
         test ! -s conftest.err
 
38533
       } && test -s conftest$ac_exeext &&
 
38534
       $as_test_x conftest$ac_exeext; then
 
38535
 
 
38536
    { echo "$as_me:$LINENO: result: yes" >&5
 
38537
echo "${ECHO_T}yes" >&6; }
 
38538
    tst_links_inet_pton="yes"
 
38539
 
 
38540
else
 
38541
  echo "$as_me: failed program was:" >&5
 
38542
sed 's/^/| /' conftest.$ac_ext >&5
 
38543
 
 
38544
 
 
38545
    { echo "$as_me:$LINENO: result: no" >&5
 
38546
echo "${ECHO_T}no" >&6; }
 
38547
    tst_links_inet_pton="no"
 
38548
 
 
38549
fi
 
38550
 
 
38551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
38552
      conftest$ac_exeext conftest.$ac_ext
 
38553
  #
 
38554
  if test "$tst_links_inet_pton" = "yes"; then
 
38555
    { echo "$as_me:$LINENO: checking if inet_pton is prototyped" >&5
 
38556
echo $ECHO_N "checking if inet_pton is prototyped... $ECHO_C" >&6; }
 
38557
    cat >conftest.$ac_ext <<_ACEOF
 
38558
/* confdefs.h.  */
 
38559
_ACEOF
 
38560
cat confdefs.h >>conftest.$ac_ext
 
38561
cat >>conftest.$ac_ext <<_ACEOF
 
38562
/* end confdefs.h.  */
 
38563
 
 
38564
      $curl_includes_arpa_inet
 
38565
 
 
38566
_ACEOF
 
38567
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
38568
  $EGREP "inet_pton" >/dev/null 2>&1; then
 
38569
 
 
38570
      { echo "$as_me:$LINENO: result: yes" >&5
 
38571
echo "${ECHO_T}yes" >&6; }
 
38572
      tst_proto_inet_pton="yes"
 
38573
 
 
38574
else
 
38575
 
 
38576
      { echo "$as_me:$LINENO: result: no" >&5
 
38577
echo "${ECHO_T}no" >&6; }
 
38578
      tst_proto_inet_pton="no"
 
38579
 
 
38580
fi
 
38581
rm -f conftest*
 
38582
 
 
38583
  fi
 
38584
  #
 
38585
  if test "$tst_proto_inet_pton" = "yes"; then
 
38586
    { echo "$as_me:$LINENO: checking if inet_pton is compilable" >&5
 
38587
echo $ECHO_N "checking if inet_pton is compilable... $ECHO_C" >&6; }
 
38588
    cat >conftest.$ac_ext <<_ACEOF
 
38589
 
 
38590
      /* confdefs.h.  */
 
38591
_ACEOF
 
38592
cat confdefs.h >>conftest.$ac_ext
 
38593
cat >>conftest.$ac_ext <<_ACEOF
 
38594
/* end confdefs.h.  */
 
38595
 
 
38596
        $curl_includes_arpa_inet
 
38597
 
 
38598
int main (void)
 
38599
{
 
38600
 
 
38601
        if(0 != inet_pton(0, 0, 0))
 
38602
          return 1;
 
38603
 
 
38604
 ;
 
38605
 return 0;
 
38606
}
 
38607
 
 
38608
_ACEOF
 
38609
rm -f conftest.$ac_objext
 
38610
if { (ac_try="$ac_compile"
 
38611
case "(($ac_try" in
 
38612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38613
  *) ac_try_echo=$ac_try;;
 
38614
esac
 
38615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38616
  (eval "$ac_compile") 2>conftest.er1
 
38617
  ac_status=$?
 
38618
  grep -v '^ *+' conftest.er1 >conftest.err
 
38619
  rm -f conftest.er1
 
38620
  cat conftest.err >&5
 
38621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38622
  (exit $ac_status); } && {
 
38623
         test -z "$ac_c_werror_flag" ||
 
38624
         test ! -s conftest.err
 
38625
       } && test -s conftest.$ac_objext; then
 
38626
 
 
38627
      { echo "$as_me:$LINENO: result: yes" >&5
 
38628
echo "${ECHO_T}yes" >&6; }
 
38629
      tst_compi_inet_pton="yes"
 
38630
 
 
38631
else
 
38632
  echo "$as_me: failed program was:" >&5
 
38633
sed 's/^/| /' conftest.$ac_ext >&5
 
38634
 
 
38635
 
 
38636
      { echo "$as_me:$LINENO: result: no" >&5
 
38637
echo "${ECHO_T}no" >&6; }
 
38638
      tst_compi_inet_pton="no"
 
38639
 
 
38640
fi
 
38641
 
 
38642
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
38643
  fi
 
38644
  #
 
38645
    if test "x$cross_compiling" != "xyes" &&
 
38646
    test "$tst_compi_inet_pton" = "yes"; then
 
38647
    { echo "$as_me:$LINENO: checking if inet_pton seems to work" >&5
 
38648
echo $ECHO_N "checking if inet_pton seems to work... $ECHO_C" >&6; }
 
38649
    if test "$cross_compiling" = yes; then
 
38650
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
38651
See \`config.log' for more details." >&5
 
38652
echo "$as_me: error: cannot run test program while cross compiling
 
38653
See \`config.log' for more details." >&2;}
 
38654
   { (exit 1); exit 1; }; }
 
38655
else
 
38656
  cat >conftest.$ac_ext <<_ACEOF
 
38657
 
 
38658
      /* confdefs.h.  */
 
38659
_ACEOF
 
38660
cat confdefs.h >>conftest.$ac_ext
 
38661
cat >>conftest.$ac_ext <<_ACEOF
 
38662
/* end confdefs.h.  */
 
38663
 
 
38664
        $curl_includes_stdlib
 
38665
        $curl_includes_arpa_inet
 
38666
        $curl_includes_string
 
38667
 
 
38668
int main (void)
 
38669
{
 
38670
 
 
38671
        unsigned char ipv6a[16+1];
 
38672
        unsigned char ipv4a[4+1];
 
38673
        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
 
38674
        const char *ipv4src = "192.168.100.1";
 
38675
        /* - */
 
38676
        memset(ipv4a, 1, sizeof(ipv4a));
 
38677
        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
 
38678
          exit(1); /* fail */
 
38679
        /* - */
 
38680
        if( (ipv4a[0] != 0xc0) ||
 
38681
            (ipv4a[1] != 0xa8) ||
 
38682
            (ipv4a[2] != 0x64) ||
 
38683
            (ipv4a[3] != 0x01) ||
 
38684
            (ipv4a[4] != 0x01) )
 
38685
          exit(1); /* fail */
 
38686
        /* - */
 
38687
        memset(ipv6a, 1, sizeof(ipv6a));
 
38688
        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
 
38689
          exit(1); /* fail */
 
38690
        /* - */
 
38691
        if( (ipv6a[0]  != 0xfe) ||
 
38692
            (ipv6a[1]  != 0x80) ||
 
38693
            (ipv6a[8]  != 0x02) ||
 
38694
            (ipv6a[9]  != 0x14) ||
 
38695
            (ipv6a[10] != 0x4f) ||
 
38696
            (ipv6a[11] != 0xff) ||
 
38697
            (ipv6a[12] != 0xfe) ||
 
38698
            (ipv6a[13] != 0x0b) ||
 
38699
            (ipv6a[14] != 0x76) ||
 
38700
            (ipv6a[15] != 0xc8) ||
 
38701
            (ipv6a[16] != 0x01) )
 
38702
          exit(1); /* fail */
 
38703
        /* - */
 
38704
        if( (ipv6a[2]  != 0x0) ||
 
38705
            (ipv6a[3]  != 0x0) ||
 
38706
            (ipv6a[4]  != 0x0) ||
 
38707
            (ipv6a[5]  != 0x0) ||
 
38708
            (ipv6a[6]  != 0x0) ||
 
38709
            (ipv6a[7]  != 0x0) )
 
38710
          exit(1); /* fail */
 
38711
        /* - */
 
38712
        exit(0);
 
38713
 
 
38714
 ;
 
38715
 return 0;
 
38716
}
 
38717
 
 
38718
_ACEOF
 
38719
rm -f conftest$ac_exeext
 
38720
if { (ac_try="$ac_link"
 
38721
case "(($ac_try" in
 
38722
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38723
  *) ac_try_echo=$ac_try;;
 
38724
esac
 
38725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38726
  (eval "$ac_link") 2>&5
 
38727
  ac_status=$?
 
38728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38729
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
38730
  { (case "(($ac_try" in
 
38731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38732
  *) ac_try_echo=$ac_try;;
 
38733
esac
 
38734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38735
  (eval "$ac_try") 2>&5
 
38736
  ac_status=$?
 
38737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38738
  (exit $ac_status); }; }; then
 
38739
 
 
38740
      { echo "$as_me:$LINENO: result: yes" >&5
 
38741
echo "${ECHO_T}yes" >&6; }
 
38742
      tst_works_inet_pton="yes"
 
38743
 
 
38744
else
 
38745
  echo "$as_me: program exited with status $ac_status" >&5
 
38746
echo "$as_me: failed program was:" >&5
 
38747
sed 's/^/| /' conftest.$ac_ext >&5
 
38748
 
 
38749
( exit $ac_status )
 
38750
 
 
38751
      { echo "$as_me:$LINENO: result: no" >&5
 
38752
echo "${ECHO_T}no" >&6; }
 
38753
      tst_works_inet_pton="no"
 
38754
 
 
38755
fi
 
38756
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
38757
fi
 
38758
 
 
38759
 
 
38760
  fi
 
38761
  #
 
38762
  if test "$tst_compi_inet_pton" = "yes" &&
 
38763
    test "$tst_works_inet_pton" != "no"; then
 
38764
    { echo "$as_me:$LINENO: checking if inet_pton usage allowed" >&5
 
38765
echo $ECHO_N "checking if inet_pton usage allowed... $ECHO_C" >&6; }
 
38766
    if test "x$curl_disallow_inet_pton" != "xyes"; then
 
38767
      { echo "$as_me:$LINENO: result: yes" >&5
 
38768
echo "${ECHO_T}yes" >&6; }
 
38769
      tst_allow_inet_pton="yes"
 
38770
    else
 
38771
      { echo "$as_me:$LINENO: result: no" >&5
 
38772
echo "${ECHO_T}no" >&6; }
 
38773
      tst_allow_inet_pton="no"
 
38774
    fi
 
38775
  fi
 
38776
  #
 
38777
  { echo "$as_me:$LINENO: checking if inet_pton might be used" >&5
 
38778
echo $ECHO_N "checking if inet_pton might be used... $ECHO_C" >&6; }
 
38779
  if test "$tst_links_inet_pton" = "yes" &&
 
38780
     test "$tst_proto_inet_pton" = "yes" &&
 
38781
     test "$tst_compi_inet_pton" = "yes" &&
 
38782
     test "$tst_allow_inet_pton" = "yes" &&
 
38783
     test "$tst_works_inet_pton" != "no"; then
 
38784
    { echo "$as_me:$LINENO: result: yes" >&5
 
38785
echo "${ECHO_T}yes" >&6; }
 
38786
 
 
38787
cat >>confdefs.h <<_ACEOF
 
38788
#define HAVE_INET_PTON 1
 
38789
_ACEOF
 
38790
 
 
38791
    ac_cv_func_inet_pton="yes"
 
38792
  else
 
38793
    { echo "$as_me:$LINENO: result: no" >&5
 
38794
echo "${ECHO_T}no" >&6; }
 
38795
    ac_cv_func_inet_pton="no"
 
38796
  fi
 
38797
 
 
38798
 
 
38799
curl_includes_stropts="\
 
38800
/* includes start */
 
38801
#ifdef HAVE_SYS_TYPES_H
 
38802
#  include <sys/types.h>
 
38803
#endif
 
38804
#ifdef HAVE_UNISTD_H
 
38805
#  include <unistd.h>
 
38806
#endif
 
38807
#ifdef HAVE_SYS_SOCKET_H
 
38808
#  include <sys/socket.h>
 
38809
#endif
 
38810
#ifdef HAVE_SYS_IOCTL_H
 
38811
#  include <sys/ioctl.h>
 
38812
#endif
 
38813
#ifdef HAVE_STROPTS_H
 
38814
#  include <stropts.h>
 
38815
#endif
 
38816
/* includes end */"
 
38817
 
 
38818
 
 
38819
 
 
38820
 
 
38821
 
 
38822
for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
 
38823
do
 
38824
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
38825
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
38826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
38827
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
38828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38829
else
 
38830
  cat >conftest.$ac_ext <<_ACEOF
 
38831
/* confdefs.h.  */
 
38832
_ACEOF
 
38833
cat confdefs.h >>conftest.$ac_ext
 
38834
cat >>conftest.$ac_ext <<_ACEOF
 
38835
/* end confdefs.h.  */
 
38836
$curl_includes_stropts
 
38837
 
 
38838
#include <$ac_header>
 
38839
_ACEOF
 
38840
rm -f conftest.$ac_objext
 
38841
if { (ac_try="$ac_compile"
 
38842
case "(($ac_try" in
 
38843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38844
  *) ac_try_echo=$ac_try;;
 
38845
esac
 
38846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38847
  (eval "$ac_compile") 2>conftest.er1
 
38848
  ac_status=$?
 
38849
  grep -v '^ *+' conftest.er1 >conftest.err
 
38850
  rm -f conftest.er1
 
38851
  cat conftest.err >&5
 
38852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38853
  (exit $ac_status); } && {
 
38854
         test -z "$ac_c_werror_flag" ||
 
38855
         test ! -s conftest.err
 
38856
       } && test -s conftest.$ac_objext; then
 
38857
  eval "$as_ac_Header=yes"
 
38858
else
 
38859
  echo "$as_me: failed program was:" >&5
 
38860
sed 's/^/| /' conftest.$ac_ext >&5
 
38861
 
 
38862
        eval "$as_ac_Header=no"
 
38863
fi
 
38864
 
 
38865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
38866
fi
 
38867
ac_res=`eval echo '${'$as_ac_Header'}'`
 
38868
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
38869
echo "${ECHO_T}$ac_res" >&6; }
 
38870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
38871
  cat >>confdefs.h <<_ACEOF
 
38872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
38873
_ACEOF
 
38874
 
 
38875
fi
 
38876
 
 
38877
done
 
38878
 
 
38879
 
 
38880
 
 
38881
    #
 
38882
  tst_links_ioctl="unknown"
 
38883
  tst_proto_ioctl="unknown"
 
38884
  tst_compi_ioctl="unknown"
 
38885
  tst_allow_ioctl="unknown"
 
38886
  #
 
38887
  { echo "$as_me:$LINENO: checking if ioctl can be linked" >&5
 
38888
echo $ECHO_N "checking if ioctl can be linked... $ECHO_C" >&6; }
 
38889
  cat >conftest.$ac_ext <<_ACEOF
 
38890
 
 
38891
    /* confdefs.h.  */
 
38892
_ACEOF
 
38893
cat confdefs.h >>conftest.$ac_ext
 
38894
cat >>conftest.$ac_ext <<_ACEOF
 
38895
/* end confdefs.h.  */
 
38896
 
 
38897
#define ioctl innocuous_ioctl
 
38898
#ifdef __STDC__
 
38899
# include <limits.h>
 
38900
#else
 
38901
# include <assert.h>
 
38902
#endif
 
38903
#undef ioctl
 
38904
#ifdef __cplusplus
 
38905
extern "C"
 
38906
#endif
 
38907
char ioctl ();
 
38908
#if defined __stub_ioctl || defined __stub___ioctl
 
38909
choke me
 
38910
#endif
 
38911
 
 
38912
int main (void)
 
38913
{
 
38914
return ioctl ();
 
38915
 ;
 
38916
 return 0;
 
38917
}
 
38918
 
 
38919
_ACEOF
 
38920
rm -f conftest.$ac_objext conftest$ac_exeext
 
38921
if { (ac_try="$ac_link"
 
38922
case "(($ac_try" in
 
38923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
38924
  *) ac_try_echo=$ac_try;;
 
38925
esac
 
38926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38927
  (eval "$ac_link") 2>conftest.er1
 
38928
  ac_status=$?
 
38929
  grep -v '^ *+' conftest.er1 >conftest.err
 
38930
  rm -f conftest.er1
 
38931
  cat conftest.err >&5
 
38932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38933
  (exit $ac_status); } && {
 
38934
         test -z "$ac_c_werror_flag" ||
 
38935
         test ! -s conftest.err
 
38936
       } && test -s conftest$ac_exeext &&
 
38937
       $as_test_x conftest$ac_exeext; then
 
38938
 
 
38939
    { echo "$as_me:$LINENO: result: yes" >&5
 
38940
echo "${ECHO_T}yes" >&6; }
 
38941
    tst_links_ioctl="yes"
 
38942
 
 
38943
else
 
38944
  echo "$as_me: failed program was:" >&5
 
38945
sed 's/^/| /' conftest.$ac_ext >&5
 
38946
 
 
38947
 
 
38948
    { echo "$as_me:$LINENO: result: no" >&5
 
38949
echo "${ECHO_T}no" >&6; }
 
38950
    tst_links_ioctl="no"
 
38951
 
 
38952
fi
 
38953
 
 
38954
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
38955
      conftest$ac_exeext conftest.$ac_ext
 
38956
  #
 
38957
  if test "$tst_links_ioctl" = "yes"; then
 
38958
    { echo "$as_me:$LINENO: checking if ioctl is prototyped" >&5
 
38959
echo $ECHO_N "checking if ioctl is prototyped... $ECHO_C" >&6; }
 
38960
    cat >conftest.$ac_ext <<_ACEOF
 
38961
/* confdefs.h.  */
 
38962
_ACEOF
 
38963
cat confdefs.h >>conftest.$ac_ext
 
38964
cat >>conftest.$ac_ext <<_ACEOF
 
38965
/* end confdefs.h.  */
 
38966
 
 
38967
      $curl_includes_stropts
 
38968
 
 
38969
_ACEOF
 
38970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
38971
  $EGREP "ioctl" >/dev/null 2>&1; then
 
38972
 
 
38973
      { echo "$as_me:$LINENO: result: yes" >&5
 
38974
echo "${ECHO_T}yes" >&6; }
 
38975
      tst_proto_ioctl="yes"
 
38976
 
 
38977
else
 
38978
 
 
38979
      { echo "$as_me:$LINENO: result: no" >&5
 
38980
echo "${ECHO_T}no" >&6; }
 
38981
      tst_proto_ioctl="no"
 
38982
 
 
38983
fi
 
38984
rm -f conftest*
 
38985
 
 
38986
  fi
 
38987
  #
 
38988
  if test "$tst_proto_ioctl" = "yes"; then
 
38989
    { echo "$as_me:$LINENO: checking if ioctl is compilable" >&5
 
38990
echo $ECHO_N "checking if ioctl is compilable... $ECHO_C" >&6; }
 
38991
    cat >conftest.$ac_ext <<_ACEOF
 
38992
 
 
38993
      /* confdefs.h.  */
 
38994
_ACEOF
 
38995
cat confdefs.h >>conftest.$ac_ext
 
38996
cat >>conftest.$ac_ext <<_ACEOF
 
38997
/* end confdefs.h.  */
 
38998
 
 
38999
        $curl_includes_stropts
 
39000
 
 
39001
int main (void)
 
39002
{
 
39003
 
 
39004
        if(0 != ioctl(0, 0, 0))
 
39005
          return 1;
 
39006
 
 
39007
 ;
 
39008
 return 0;
 
39009
}
 
39010
 
 
39011
_ACEOF
 
39012
rm -f conftest.$ac_objext
 
39013
if { (ac_try="$ac_compile"
 
39014
case "(($ac_try" in
 
39015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39016
  *) ac_try_echo=$ac_try;;
 
39017
esac
 
39018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39019
  (eval "$ac_compile") 2>conftest.er1
 
39020
  ac_status=$?
 
39021
  grep -v '^ *+' conftest.er1 >conftest.err
 
39022
  rm -f conftest.er1
 
39023
  cat conftest.err >&5
 
39024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39025
  (exit $ac_status); } && {
 
39026
         test -z "$ac_c_werror_flag" ||
 
39027
         test ! -s conftest.err
 
39028
       } && test -s conftest.$ac_objext; then
 
39029
 
 
39030
      { echo "$as_me:$LINENO: result: yes" >&5
 
39031
echo "${ECHO_T}yes" >&6; }
 
39032
      tst_compi_ioctl="yes"
 
39033
 
 
39034
else
 
39035
  echo "$as_me: failed program was:" >&5
 
39036
sed 's/^/| /' conftest.$ac_ext >&5
 
39037
 
 
39038
 
 
39039
      { echo "$as_me:$LINENO: result: no" >&5
 
39040
echo "${ECHO_T}no" >&6; }
 
39041
      tst_compi_ioctl="no"
 
39042
 
 
39043
fi
 
39044
 
 
39045
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39046
  fi
 
39047
  #
 
39048
  if test "$tst_compi_ioctl" = "yes"; then
 
39049
    { echo "$as_me:$LINENO: checking if ioctl usage allowed" >&5
 
39050
echo $ECHO_N "checking if ioctl usage allowed... $ECHO_C" >&6; }
 
39051
    if test "x$curl_disallow_ioctl" != "xyes"; then
 
39052
      { echo "$as_me:$LINENO: result: yes" >&5
 
39053
echo "${ECHO_T}yes" >&6; }
 
39054
      tst_allow_ioctl="yes"
 
39055
    else
 
39056
      { echo "$as_me:$LINENO: result: no" >&5
 
39057
echo "${ECHO_T}no" >&6; }
 
39058
      tst_allow_ioctl="no"
 
39059
    fi
 
39060
  fi
 
39061
  #
 
39062
  { echo "$as_me:$LINENO: checking if ioctl might be used" >&5
 
39063
echo $ECHO_N "checking if ioctl might be used... $ECHO_C" >&6; }
 
39064
  if test "$tst_links_ioctl" = "yes" &&
 
39065
     test "$tst_proto_ioctl" = "yes" &&
 
39066
     test "$tst_compi_ioctl" = "yes" &&
 
39067
     test "$tst_allow_ioctl" = "yes"; then
 
39068
    { echo "$as_me:$LINENO: result: yes" >&5
 
39069
echo "${ECHO_T}yes" >&6; }
 
39070
 
 
39071
cat >>confdefs.h <<_ACEOF
 
39072
#define HAVE_IOCTL 1
 
39073
_ACEOF
 
39074
 
 
39075
    ac_cv_func_ioctl="yes"
 
39076
 
 
39077
  #
 
39078
  tst_compi_ioctl_fionbio="unknown"
 
39079
  tst_allow_ioctl_fionbio="unknown"
 
39080
  #
 
39081
  if test "$ac_cv_func_ioctl" = "yes"; then
 
39082
    { echo "$as_me:$LINENO: checking if ioctl FIONBIO is compilable" >&5
 
39083
echo $ECHO_N "checking if ioctl FIONBIO is compilable... $ECHO_C" >&6; }
 
39084
    cat >conftest.$ac_ext <<_ACEOF
 
39085
 
 
39086
      /* confdefs.h.  */
 
39087
_ACEOF
 
39088
cat confdefs.h >>conftest.$ac_ext
 
39089
cat >>conftest.$ac_ext <<_ACEOF
 
39090
/* end confdefs.h.  */
 
39091
 
 
39092
        $curl_includes_stropts
 
39093
 
 
39094
int main (void)
 
39095
{
 
39096
 
 
39097
        int flags = 0;
 
39098
        if(0 != ioctl(0, FIONBIO, &flags))
 
39099
          return 1;
 
39100
 
 
39101
 ;
 
39102
 return 0;
 
39103
}
 
39104
 
 
39105
_ACEOF
 
39106
rm -f conftest.$ac_objext
 
39107
if { (ac_try="$ac_compile"
 
39108
case "(($ac_try" in
 
39109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39110
  *) ac_try_echo=$ac_try;;
 
39111
esac
 
39112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39113
  (eval "$ac_compile") 2>conftest.er1
 
39114
  ac_status=$?
 
39115
  grep -v '^ *+' conftest.er1 >conftest.err
 
39116
  rm -f conftest.er1
 
39117
  cat conftest.err >&5
 
39118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39119
  (exit $ac_status); } && {
 
39120
         test -z "$ac_c_werror_flag" ||
 
39121
         test ! -s conftest.err
 
39122
       } && test -s conftest.$ac_objext; then
 
39123
 
 
39124
      { echo "$as_me:$LINENO: result: yes" >&5
 
39125
echo "${ECHO_T}yes" >&6; }
 
39126
      tst_compi_ioctl_fionbio="yes"
 
39127
 
 
39128
else
 
39129
  echo "$as_me: failed program was:" >&5
 
39130
sed 's/^/| /' conftest.$ac_ext >&5
 
39131
 
 
39132
 
 
39133
      { echo "$as_me:$LINENO: result: no" >&5
 
39134
echo "${ECHO_T}no" >&6; }
 
39135
      tst_compi_ioctl_fionbio="no"
 
39136
 
 
39137
fi
 
39138
 
 
39139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39140
  fi
 
39141
  #
 
39142
  if test "$tst_compi_ioctl_fionbio" = "yes"; then
 
39143
    { echo "$as_me:$LINENO: checking if ioctl FIONBIO usage allowed" >&5
 
39144
echo $ECHO_N "checking if ioctl FIONBIO usage allowed... $ECHO_C" >&6; }
 
39145
    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
 
39146
      { echo "$as_me:$LINENO: result: yes" >&5
 
39147
echo "${ECHO_T}yes" >&6; }
 
39148
      tst_allow_ioctl_fionbio="yes"
 
39149
    else
 
39150
      { echo "$as_me:$LINENO: result: no" >&5
 
39151
echo "${ECHO_T}no" >&6; }
 
39152
      tst_allow_ioctl_fionbio="no"
 
39153
    fi
 
39154
  fi
 
39155
  #
 
39156
  { echo "$as_me:$LINENO: checking if ioctl FIONBIO might be used" >&5
 
39157
echo $ECHO_N "checking if ioctl FIONBIO might be used... $ECHO_C" >&6; }
 
39158
  if test "$tst_compi_ioctl_fionbio" = "yes" &&
 
39159
     test "$tst_allow_ioctl_fionbio" = "yes"; then
 
39160
    { echo "$as_me:$LINENO: result: yes" >&5
 
39161
echo "${ECHO_T}yes" >&6; }
 
39162
 
 
39163
cat >>confdefs.h <<_ACEOF
 
39164
#define HAVE_IOCTL_FIONBIO 1
 
39165
_ACEOF
 
39166
 
 
39167
    ac_cv_func_ioctl_fionbio="yes"
 
39168
  else
 
39169
    { echo "$as_me:$LINENO: result: no" >&5
 
39170
echo "${ECHO_T}no" >&6; }
 
39171
    ac_cv_func_ioctl_fionbio="no"
 
39172
  fi
 
39173
 
 
39174
 
 
39175
  #
 
39176
  tst_compi_ioctl_siocgifaddr="unknown"
 
39177
  tst_allow_ioctl_siocgifaddr="unknown"
 
39178
  #
 
39179
  if test "$ac_cv_func_ioctl" = "yes"; then
 
39180
    { echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR is compilable" >&5
 
39181
echo $ECHO_N "checking if ioctl SIOCGIFADDR is compilable... $ECHO_C" >&6; }
 
39182
    cat >conftest.$ac_ext <<_ACEOF
 
39183
 
 
39184
      /* confdefs.h.  */
 
39185
_ACEOF
 
39186
cat confdefs.h >>conftest.$ac_ext
 
39187
cat >>conftest.$ac_ext <<_ACEOF
 
39188
/* end confdefs.h.  */
 
39189
 
 
39190
        $curl_includes_stropts
 
39191
        #include <net/if.h>
 
39192
 
 
39193
int main (void)
 
39194
{
 
39195
 
 
39196
        struct ifreq ifr;
 
39197
        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
 
39198
          return 1;
 
39199
 
 
39200
 ;
 
39201
 return 0;
 
39202
}
 
39203
 
 
39204
_ACEOF
 
39205
rm -f conftest.$ac_objext
 
39206
if { (ac_try="$ac_compile"
 
39207
case "(($ac_try" in
 
39208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39209
  *) ac_try_echo=$ac_try;;
 
39210
esac
 
39211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39212
  (eval "$ac_compile") 2>conftest.er1
 
39213
  ac_status=$?
 
39214
  grep -v '^ *+' conftest.er1 >conftest.err
 
39215
  rm -f conftest.er1
 
39216
  cat conftest.err >&5
 
39217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39218
  (exit $ac_status); } && {
 
39219
         test -z "$ac_c_werror_flag" ||
 
39220
         test ! -s conftest.err
 
39221
       } && test -s conftest.$ac_objext; then
 
39222
 
 
39223
      { echo "$as_me:$LINENO: result: yes" >&5
 
39224
echo "${ECHO_T}yes" >&6; }
 
39225
      tst_compi_ioctl_siocgifaddr="yes"
 
39226
 
 
39227
else
 
39228
  echo "$as_me: failed program was:" >&5
 
39229
sed 's/^/| /' conftest.$ac_ext >&5
 
39230
 
 
39231
 
 
39232
      { echo "$as_me:$LINENO: result: no" >&5
 
39233
echo "${ECHO_T}no" >&6; }
 
39234
      tst_compi_ioctl_siocgifaddr="no"
 
39235
 
 
39236
fi
 
39237
 
 
39238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39239
  fi
 
39240
  #
 
39241
  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
 
39242
    { echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR usage allowed" >&5
 
39243
echo $ECHO_N "checking if ioctl SIOCGIFADDR usage allowed... $ECHO_C" >&6; }
 
39244
    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
 
39245
      { echo "$as_me:$LINENO: result: yes" >&5
 
39246
echo "${ECHO_T}yes" >&6; }
 
39247
      tst_allow_ioctl_siocgifaddr="yes"
 
39248
    else
 
39249
      { echo "$as_me:$LINENO: result: no" >&5
 
39250
echo "${ECHO_T}no" >&6; }
 
39251
      tst_allow_ioctl_siocgifaddr="no"
 
39252
    fi
 
39253
  fi
 
39254
  #
 
39255
  { echo "$as_me:$LINENO: checking if ioctl SIOCGIFADDR might be used" >&5
 
39256
echo $ECHO_N "checking if ioctl SIOCGIFADDR might be used... $ECHO_C" >&6; }
 
39257
  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
 
39258
     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
 
39259
    { echo "$as_me:$LINENO: result: yes" >&5
 
39260
echo "${ECHO_T}yes" >&6; }
 
39261
 
 
39262
cat >>confdefs.h <<_ACEOF
 
39263
#define HAVE_IOCTL_SIOCGIFADDR 1
 
39264
_ACEOF
 
39265
 
 
39266
    ac_cv_func_ioctl_siocgifaddr="yes"
 
39267
  else
 
39268
    { echo "$as_me:$LINENO: result: no" >&5
 
39269
echo "${ECHO_T}no" >&6; }
 
39270
    ac_cv_func_ioctl_siocgifaddr="no"
 
39271
  fi
 
39272
 
 
39273
  else
 
39274
    { echo "$as_me:$LINENO: result: no" >&5
 
39275
echo "${ECHO_T}no" >&6; }
 
39276
    ac_cv_func_ioctl="no"
 
39277
  fi
 
39278
 
 
39279
 
 
39280
    #
 
39281
  tst_links_ioctlsocket="unknown"
 
39282
  tst_proto_ioctlsocket="unknown"
 
39283
  tst_compi_ioctlsocket="unknown"
 
39284
  tst_allow_ioctlsocket="unknown"
 
39285
  #
 
39286
  { echo "$as_me:$LINENO: checking if ioctlsocket can be linked" >&5
 
39287
echo $ECHO_N "checking if ioctlsocket can be linked... $ECHO_C" >&6; }
 
39288
  cat >conftest.$ac_ext <<_ACEOF
 
39289
 
 
39290
    /* confdefs.h.  */
 
39291
_ACEOF
 
39292
cat confdefs.h >>conftest.$ac_ext
 
39293
cat >>conftest.$ac_ext <<_ACEOF
 
39294
/* end confdefs.h.  */
 
39295
 
 
39296
      $curl_includes_winsock2
 
39297
 
 
39298
int main (void)
 
39299
{
 
39300
 
 
39301
      if(0 != ioctlsocket(0, 0, 0))
 
39302
        return 1;
 
39303
 
 
39304
 ;
 
39305
 return 0;
 
39306
}
 
39307
 
 
39308
_ACEOF
 
39309
rm -f conftest.$ac_objext conftest$ac_exeext
 
39310
if { (ac_try="$ac_link"
 
39311
case "(($ac_try" in
 
39312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39313
  *) ac_try_echo=$ac_try;;
 
39314
esac
 
39315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39316
  (eval "$ac_link") 2>conftest.er1
 
39317
  ac_status=$?
 
39318
  grep -v '^ *+' conftest.er1 >conftest.err
 
39319
  rm -f conftest.er1
 
39320
  cat conftest.err >&5
 
39321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39322
  (exit $ac_status); } && {
 
39323
         test -z "$ac_c_werror_flag" ||
 
39324
         test ! -s conftest.err
 
39325
       } && test -s conftest$ac_exeext &&
 
39326
       $as_test_x conftest$ac_exeext; then
 
39327
 
 
39328
    { echo "$as_me:$LINENO: result: yes" >&5
 
39329
echo "${ECHO_T}yes" >&6; }
 
39330
    tst_links_ioctlsocket="yes"
 
39331
 
 
39332
else
 
39333
  echo "$as_me: failed program was:" >&5
 
39334
sed 's/^/| /' conftest.$ac_ext >&5
 
39335
 
 
39336
 
 
39337
    { echo "$as_me:$LINENO: result: no" >&5
 
39338
echo "${ECHO_T}no" >&6; }
 
39339
    tst_links_ioctlsocket="no"
 
39340
 
 
39341
fi
 
39342
 
 
39343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39344
      conftest$ac_exeext conftest.$ac_ext
 
39345
  #
 
39346
  if test "$tst_links_ioctlsocket" = "yes"; then
 
39347
    { echo "$as_me:$LINENO: checking if ioctlsocket is prototyped" >&5
 
39348
echo $ECHO_N "checking if ioctlsocket is prototyped... $ECHO_C" >&6; }
 
39349
    cat >conftest.$ac_ext <<_ACEOF
 
39350
/* confdefs.h.  */
 
39351
_ACEOF
 
39352
cat confdefs.h >>conftest.$ac_ext
 
39353
cat >>conftest.$ac_ext <<_ACEOF
 
39354
/* end confdefs.h.  */
 
39355
 
 
39356
      $curl_includes_winsock2
 
39357
 
 
39358
_ACEOF
 
39359
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39360
  $EGREP "ioctlsocket" >/dev/null 2>&1; then
 
39361
 
 
39362
      { echo "$as_me:$LINENO: result: yes" >&5
 
39363
echo "${ECHO_T}yes" >&6; }
 
39364
      tst_proto_ioctlsocket="yes"
 
39365
 
 
39366
else
 
39367
 
 
39368
      { echo "$as_me:$LINENO: result: no" >&5
 
39369
echo "${ECHO_T}no" >&6; }
 
39370
      tst_proto_ioctlsocket="no"
 
39371
 
 
39372
fi
 
39373
rm -f conftest*
 
39374
 
 
39375
  fi
 
39376
  #
 
39377
  if test "$tst_proto_ioctlsocket" = "yes"; then
 
39378
    { echo "$as_me:$LINENO: checking if ioctlsocket is compilable" >&5
 
39379
echo $ECHO_N "checking if ioctlsocket is compilable... $ECHO_C" >&6; }
 
39380
    cat >conftest.$ac_ext <<_ACEOF
 
39381
 
 
39382
      /* confdefs.h.  */
 
39383
_ACEOF
 
39384
cat confdefs.h >>conftest.$ac_ext
 
39385
cat >>conftest.$ac_ext <<_ACEOF
 
39386
/* end confdefs.h.  */
 
39387
 
 
39388
        $curl_includes_winsock2
 
39389
 
 
39390
int main (void)
 
39391
{
 
39392
 
 
39393
        if(0 != ioctlsocket(0, 0, 0))
 
39394
          return 1;
 
39395
 
 
39396
 ;
 
39397
 return 0;
 
39398
}
 
39399
 
 
39400
_ACEOF
 
39401
rm -f conftest.$ac_objext
 
39402
if { (ac_try="$ac_compile"
 
39403
case "(($ac_try" in
 
39404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39405
  *) ac_try_echo=$ac_try;;
 
39406
esac
 
39407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39408
  (eval "$ac_compile") 2>conftest.er1
 
39409
  ac_status=$?
 
39410
  grep -v '^ *+' conftest.er1 >conftest.err
 
39411
  rm -f conftest.er1
 
39412
  cat conftest.err >&5
 
39413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39414
  (exit $ac_status); } && {
 
39415
         test -z "$ac_c_werror_flag" ||
 
39416
         test ! -s conftest.err
 
39417
       } && test -s conftest.$ac_objext; then
 
39418
 
 
39419
      { echo "$as_me:$LINENO: result: yes" >&5
 
39420
echo "${ECHO_T}yes" >&6; }
 
39421
      tst_compi_ioctlsocket="yes"
 
39422
 
 
39423
else
 
39424
  echo "$as_me: failed program was:" >&5
 
39425
sed 's/^/| /' conftest.$ac_ext >&5
 
39426
 
 
39427
 
 
39428
      { echo "$as_me:$LINENO: result: no" >&5
 
39429
echo "${ECHO_T}no" >&6; }
 
39430
      tst_compi_ioctlsocket="no"
 
39431
 
 
39432
fi
 
39433
 
 
39434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39435
  fi
 
39436
  #
 
39437
  if test "$tst_compi_ioctlsocket" = "yes"; then
 
39438
    { echo "$as_me:$LINENO: checking if ioctlsocket usage allowed" >&5
 
39439
echo $ECHO_N "checking if ioctlsocket usage allowed... $ECHO_C" >&6; }
 
39440
    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
 
39441
      { echo "$as_me:$LINENO: result: yes" >&5
 
39442
echo "${ECHO_T}yes" >&6; }
 
39443
      tst_allow_ioctlsocket="yes"
 
39444
    else
 
39445
      { echo "$as_me:$LINENO: result: no" >&5
 
39446
echo "${ECHO_T}no" >&6; }
 
39447
      tst_allow_ioctlsocket="no"
 
39448
    fi
 
39449
  fi
 
39450
  #
 
39451
  { echo "$as_me:$LINENO: checking if ioctlsocket might be used" >&5
 
39452
echo $ECHO_N "checking if ioctlsocket might be used... $ECHO_C" >&6; }
 
39453
  if test "$tst_links_ioctlsocket" = "yes" &&
 
39454
     test "$tst_proto_ioctlsocket" = "yes" &&
 
39455
     test "$tst_compi_ioctlsocket" = "yes" &&
 
39456
     test "$tst_allow_ioctlsocket" = "yes"; then
 
39457
    { echo "$as_me:$LINENO: result: yes" >&5
 
39458
echo "${ECHO_T}yes" >&6; }
 
39459
 
 
39460
cat >>confdefs.h <<_ACEOF
 
39461
#define HAVE_IOCTLSOCKET 1
 
39462
_ACEOF
 
39463
 
 
39464
    ac_cv_func_ioctlsocket="yes"
 
39465
 
 
39466
  #
 
39467
  tst_compi_ioctlsocket_fionbio="unknown"
 
39468
  tst_allow_ioctlsocket_fionbio="unknown"
 
39469
  #
 
39470
  if test "$ac_cv_func_ioctlsocket" = "yes"; then
 
39471
    { echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO is compilable" >&5
 
39472
echo $ECHO_N "checking if ioctlsocket FIONBIO is compilable... $ECHO_C" >&6; }
 
39473
    cat >conftest.$ac_ext <<_ACEOF
 
39474
 
 
39475
      /* confdefs.h.  */
 
39476
_ACEOF
 
39477
cat confdefs.h >>conftest.$ac_ext
 
39478
cat >>conftest.$ac_ext <<_ACEOF
 
39479
/* end confdefs.h.  */
 
39480
 
 
39481
        $curl_includes_winsock2
 
39482
 
 
39483
int main (void)
 
39484
{
 
39485
 
 
39486
        int flags = 0;
 
39487
        if(0 != ioctlsocket(0, FIONBIO, &flags))
 
39488
          return 1;
 
39489
 
 
39490
 ;
 
39491
 return 0;
 
39492
}
 
39493
 
 
39494
_ACEOF
 
39495
rm -f conftest.$ac_objext
 
39496
if { (ac_try="$ac_compile"
 
39497
case "(($ac_try" in
 
39498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39499
  *) ac_try_echo=$ac_try;;
 
39500
esac
 
39501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39502
  (eval "$ac_compile") 2>conftest.er1
 
39503
  ac_status=$?
 
39504
  grep -v '^ *+' conftest.er1 >conftest.err
 
39505
  rm -f conftest.er1
 
39506
  cat conftest.err >&5
 
39507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39508
  (exit $ac_status); } && {
 
39509
         test -z "$ac_c_werror_flag" ||
 
39510
         test ! -s conftest.err
 
39511
       } && test -s conftest.$ac_objext; then
 
39512
 
 
39513
      { echo "$as_me:$LINENO: result: yes" >&5
 
39514
echo "${ECHO_T}yes" >&6; }
 
39515
      tst_compi_ioctlsocket_fionbio="yes"
 
39516
 
 
39517
else
 
39518
  echo "$as_me: failed program was:" >&5
 
39519
sed 's/^/| /' conftest.$ac_ext >&5
 
39520
 
 
39521
 
 
39522
      { echo "$as_me:$LINENO: result: no" >&5
 
39523
echo "${ECHO_T}no" >&6; }
 
39524
      tst_compi_ioctlsocket_fionbio="no"
 
39525
 
 
39526
fi
 
39527
 
 
39528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39529
  fi
 
39530
  #
 
39531
  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
 
39532
    { echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO usage allowed" >&5
 
39533
echo $ECHO_N "checking if ioctlsocket FIONBIO usage allowed... $ECHO_C" >&6; }
 
39534
    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
 
39535
      { echo "$as_me:$LINENO: result: yes" >&5
 
39536
echo "${ECHO_T}yes" >&6; }
 
39537
      tst_allow_ioctlsocket_fionbio="yes"
 
39538
    else
 
39539
      { echo "$as_me:$LINENO: result: no" >&5
 
39540
echo "${ECHO_T}no" >&6; }
 
39541
      tst_allow_ioctlsocket_fionbio="no"
 
39542
    fi
 
39543
  fi
 
39544
  #
 
39545
  { echo "$as_me:$LINENO: checking if ioctlsocket FIONBIO might be used" >&5
 
39546
echo $ECHO_N "checking if ioctlsocket FIONBIO might be used... $ECHO_C" >&6; }
 
39547
  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
 
39548
     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
 
39549
    { echo "$as_me:$LINENO: result: yes" >&5
 
39550
echo "${ECHO_T}yes" >&6; }
 
39551
 
 
39552
cat >>confdefs.h <<_ACEOF
 
39553
#define HAVE_IOCTLSOCKET_FIONBIO 1
 
39554
_ACEOF
 
39555
 
 
39556
    ac_cv_func_ioctlsocket_fionbio="yes"
 
39557
  else
 
39558
    { echo "$as_me:$LINENO: result: no" >&5
 
39559
echo "${ECHO_T}no" >&6; }
 
39560
    ac_cv_func_ioctlsocket_fionbio="no"
 
39561
  fi
 
39562
 
 
39563
  else
 
39564
    { echo "$as_me:$LINENO: result: no" >&5
 
39565
echo "${ECHO_T}no" >&6; }
 
39566
    ac_cv_func_ioctlsocket="no"
 
39567
  fi
 
39568
 
 
39569
 
 
39570
    #
 
39571
  tst_links_ioctlsocket_camel="unknown"
 
39572
  tst_proto_ioctlsocket_camel="unknown"
 
39573
  tst_compi_ioctlsocket_camel="unknown"
 
39574
  tst_allow_ioctlsocket_camel="unknown"
 
39575
  #
 
39576
  { echo "$as_me:$LINENO: checking if IoctlSocket can be linked" >&5
 
39577
echo $ECHO_N "checking if IoctlSocket can be linked... $ECHO_C" >&6; }
 
39578
  cat >conftest.$ac_ext <<_ACEOF
 
39579
 
 
39580
    /* confdefs.h.  */
 
39581
_ACEOF
 
39582
cat confdefs.h >>conftest.$ac_ext
 
39583
cat >>conftest.$ac_ext <<_ACEOF
 
39584
/* end confdefs.h.  */
 
39585
 
 
39586
#define IoctlSocket innocuous_IoctlSocket
 
39587
#ifdef __STDC__
 
39588
# include <limits.h>
 
39589
#else
 
39590
# include <assert.h>
 
39591
#endif
 
39592
#undef IoctlSocket
 
39593
#ifdef __cplusplus
 
39594
extern "C"
 
39595
#endif
 
39596
char IoctlSocket ();
 
39597
#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
 
39598
choke me
 
39599
#endif
 
39600
 
 
39601
int main (void)
 
39602
{
 
39603
return IoctlSocket ();
 
39604
 ;
 
39605
 return 0;
 
39606
}
 
39607
 
 
39608
_ACEOF
 
39609
rm -f conftest.$ac_objext conftest$ac_exeext
 
39610
if { (ac_try="$ac_link"
 
39611
case "(($ac_try" in
 
39612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39613
  *) ac_try_echo=$ac_try;;
 
39614
esac
 
39615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39616
  (eval "$ac_link") 2>conftest.er1
 
39617
  ac_status=$?
 
39618
  grep -v '^ *+' conftest.er1 >conftest.err
 
39619
  rm -f conftest.er1
 
39620
  cat conftest.err >&5
 
39621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39622
  (exit $ac_status); } && {
 
39623
         test -z "$ac_c_werror_flag" ||
 
39624
         test ! -s conftest.err
 
39625
       } && test -s conftest$ac_exeext &&
 
39626
       $as_test_x conftest$ac_exeext; then
 
39627
 
 
39628
    { echo "$as_me:$LINENO: result: yes" >&5
 
39629
echo "${ECHO_T}yes" >&6; }
 
39630
    tst_links_ioctlsocket_camel="yes"
 
39631
 
 
39632
else
 
39633
  echo "$as_me: failed program was:" >&5
 
39634
sed 's/^/| /' conftest.$ac_ext >&5
 
39635
 
 
39636
 
 
39637
    { echo "$as_me:$LINENO: result: no" >&5
 
39638
echo "${ECHO_T}no" >&6; }
 
39639
    tst_links_ioctlsocket_camel="no"
 
39640
 
 
39641
fi
 
39642
 
 
39643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39644
      conftest$ac_exeext conftest.$ac_ext
 
39645
  #
 
39646
  if test "$tst_links_ioctlsocket_camel" = "yes"; then
 
39647
    { echo "$as_me:$LINENO: checking if IoctlSocket is prototyped" >&5
 
39648
echo $ECHO_N "checking if IoctlSocket is prototyped... $ECHO_C" >&6; }
 
39649
    cat >conftest.$ac_ext <<_ACEOF
 
39650
/* confdefs.h.  */
 
39651
_ACEOF
 
39652
cat confdefs.h >>conftest.$ac_ext
 
39653
cat >>conftest.$ac_ext <<_ACEOF
 
39654
/* end confdefs.h.  */
 
39655
 
 
39656
      $curl_includes_stropts
 
39657
 
 
39658
_ACEOF
 
39659
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39660
  $EGREP "IoctlSocket" >/dev/null 2>&1; then
 
39661
 
 
39662
      { echo "$as_me:$LINENO: result: yes" >&5
 
39663
echo "${ECHO_T}yes" >&6; }
 
39664
      tst_proto_ioctlsocket_camel="yes"
 
39665
 
 
39666
else
 
39667
 
 
39668
      { echo "$as_me:$LINENO: result: no" >&5
 
39669
echo "${ECHO_T}no" >&6; }
 
39670
      tst_proto_ioctlsocket_camel="no"
 
39671
 
 
39672
fi
 
39673
rm -f conftest*
 
39674
 
 
39675
  fi
 
39676
  #
 
39677
  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
 
39678
    { echo "$as_me:$LINENO: checking if IoctlSocket is compilable" >&5
 
39679
echo $ECHO_N "checking if IoctlSocket is compilable... $ECHO_C" >&6; }
 
39680
    cat >conftest.$ac_ext <<_ACEOF
 
39681
 
 
39682
      /* confdefs.h.  */
 
39683
_ACEOF
 
39684
cat confdefs.h >>conftest.$ac_ext
 
39685
cat >>conftest.$ac_ext <<_ACEOF
 
39686
/* end confdefs.h.  */
 
39687
 
 
39688
        $curl_includes_stropts
 
39689
 
 
39690
int main (void)
 
39691
{
 
39692
 
 
39693
        if(0 != IoctlSocket(0, 0, 0))
 
39694
          return 1;
 
39695
 
 
39696
 ;
 
39697
 return 0;
 
39698
}
 
39699
 
 
39700
_ACEOF
 
39701
rm -f conftest.$ac_objext
 
39702
if { (ac_try="$ac_compile"
 
39703
case "(($ac_try" in
 
39704
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39705
  *) ac_try_echo=$ac_try;;
 
39706
esac
 
39707
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39708
  (eval "$ac_compile") 2>conftest.er1
 
39709
  ac_status=$?
 
39710
  grep -v '^ *+' conftest.er1 >conftest.err
 
39711
  rm -f conftest.er1
 
39712
  cat conftest.err >&5
 
39713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39714
  (exit $ac_status); } && {
 
39715
         test -z "$ac_c_werror_flag" ||
 
39716
         test ! -s conftest.err
 
39717
       } && test -s conftest.$ac_objext; then
 
39718
 
 
39719
      { echo "$as_me:$LINENO: result: yes" >&5
 
39720
echo "${ECHO_T}yes" >&6; }
 
39721
      tst_compi_ioctlsocket_camel="yes"
 
39722
 
 
39723
else
 
39724
  echo "$as_me: failed program was:" >&5
 
39725
sed 's/^/| /' conftest.$ac_ext >&5
 
39726
 
 
39727
 
 
39728
      { echo "$as_me:$LINENO: result: no" >&5
 
39729
echo "${ECHO_T}no" >&6; }
 
39730
      tst_compi_ioctlsocket_camel="no"
 
39731
 
 
39732
fi
 
39733
 
 
39734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39735
  fi
 
39736
  #
 
39737
  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
 
39738
    { echo "$as_me:$LINENO: checking if IoctlSocket usage allowed" >&5
 
39739
echo $ECHO_N "checking if IoctlSocket usage allowed... $ECHO_C" >&6; }
 
39740
    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
 
39741
      { echo "$as_me:$LINENO: result: yes" >&5
 
39742
echo "${ECHO_T}yes" >&6; }
 
39743
      tst_allow_ioctlsocket_camel="yes"
 
39744
    else
 
39745
      { echo "$as_me:$LINENO: result: no" >&5
 
39746
echo "${ECHO_T}no" >&6; }
 
39747
      tst_allow_ioctlsocket_camel="no"
 
39748
    fi
 
39749
  fi
 
39750
  #
 
39751
  { echo "$as_me:$LINENO: checking if IoctlSocket might be used" >&5
 
39752
echo $ECHO_N "checking if IoctlSocket might be used... $ECHO_C" >&6; }
 
39753
  if test "$tst_links_ioctlsocket_camel" = "yes" &&
 
39754
     test "$tst_proto_ioctlsocket_camel" = "yes" &&
 
39755
     test "$tst_compi_ioctlsocket_camel" = "yes" &&
 
39756
     test "$tst_allow_ioctlsocket_camel" = "yes"; then
 
39757
    { echo "$as_me:$LINENO: result: yes" >&5
 
39758
echo "${ECHO_T}yes" >&6; }
 
39759
 
 
39760
cat >>confdefs.h <<_ACEOF
 
39761
#define HAVE_IOCTLSOCKET_CAMEL 1
 
39762
_ACEOF
 
39763
 
 
39764
    ac_cv_func_ioctlsocket_camel="yes"
 
39765
 
 
39766
  #
 
39767
  tst_compi_ioctlsocket_camel_fionbio="unknown"
 
39768
  tst_allow_ioctlsocket_camel_fionbio="unknown"
 
39769
  #
 
39770
  if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
 
39771
    { echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO is compilable" >&5
 
39772
echo $ECHO_N "checking if IoctlSocket FIONBIO is compilable... $ECHO_C" >&6; }
 
39773
    cat >conftest.$ac_ext <<_ACEOF
 
39774
 
 
39775
      /* confdefs.h.  */
 
39776
_ACEOF
 
39777
cat confdefs.h >>conftest.$ac_ext
 
39778
cat >>conftest.$ac_ext <<_ACEOF
 
39779
/* end confdefs.h.  */
 
39780
 
 
39781
        $curl_includes_stropts
 
39782
 
 
39783
int main (void)
 
39784
{
 
39785
 
 
39786
        long flags = 0;
 
39787
        if(0 != ioctlsocket(0, FIONBIO, &flags))
 
39788
          return 1;
 
39789
 
 
39790
 ;
 
39791
 return 0;
 
39792
}
 
39793
 
 
39794
_ACEOF
 
39795
rm -f conftest.$ac_objext
 
39796
if { (ac_try="$ac_compile"
 
39797
case "(($ac_try" in
 
39798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39799
  *) ac_try_echo=$ac_try;;
 
39800
esac
 
39801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39802
  (eval "$ac_compile") 2>conftest.er1
 
39803
  ac_status=$?
 
39804
  grep -v '^ *+' conftest.er1 >conftest.err
 
39805
  rm -f conftest.er1
 
39806
  cat conftest.err >&5
 
39807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39808
  (exit $ac_status); } && {
 
39809
         test -z "$ac_c_werror_flag" ||
 
39810
         test ! -s conftest.err
 
39811
       } && test -s conftest.$ac_objext; then
 
39812
 
 
39813
      { echo "$as_me:$LINENO: result: yes" >&5
 
39814
echo "${ECHO_T}yes" >&6; }
 
39815
      tst_compi_ioctlsocket_camel_fionbio="yes"
 
39816
 
 
39817
else
 
39818
  echo "$as_me: failed program was:" >&5
 
39819
sed 's/^/| /' conftest.$ac_ext >&5
 
39820
 
 
39821
 
 
39822
      { echo "$as_me:$LINENO: result: no" >&5
 
39823
echo "${ECHO_T}no" >&6; }
 
39824
      tst_compi_ioctlsocket_camel_fionbio="no"
 
39825
 
 
39826
fi
 
39827
 
 
39828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
39829
  fi
 
39830
  #
 
39831
  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
 
39832
    { echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO usage allowed" >&5
 
39833
echo $ECHO_N "checking if IoctlSocket FIONBIO usage allowed... $ECHO_C" >&6; }
 
39834
    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
 
39835
      { echo "$as_me:$LINENO: result: yes" >&5
 
39836
echo "${ECHO_T}yes" >&6; }
 
39837
      tst_allow_ioctlsocket_camel_fionbio="yes"
 
39838
    else
 
39839
      { echo "$as_me:$LINENO: result: no" >&5
 
39840
echo "${ECHO_T}no" >&6; }
 
39841
      tst_allow_ioctlsocket_camel_fionbio="no"
 
39842
    fi
 
39843
  fi
 
39844
  #
 
39845
  { echo "$as_me:$LINENO: checking if IoctlSocket FIONBIO might be used" >&5
 
39846
echo $ECHO_N "checking if IoctlSocket FIONBIO might be used... $ECHO_C" >&6; }
 
39847
  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
 
39848
     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
 
39849
    { echo "$as_me:$LINENO: result: yes" >&5
 
39850
echo "${ECHO_T}yes" >&6; }
 
39851
 
 
39852
cat >>confdefs.h <<_ACEOF
 
39853
#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
 
39854
_ACEOF
 
39855
 
 
39856
    ac_cv_func_ioctlsocket_camel_fionbio="yes"
 
39857
  else
 
39858
    { echo "$as_me:$LINENO: result: no" >&5
 
39859
echo "${ECHO_T}no" >&6; }
 
39860
    ac_cv_func_ioctlsocket_camel_fionbio="no"
 
39861
  fi
 
39862
 
 
39863
  else
 
39864
    { echo "$as_me:$LINENO: result: no" >&5
 
39865
echo "${ECHO_T}no" >&6; }
 
39866
    ac_cv_func_ioctlsocket_camel="no"
 
39867
  fi
 
39868
 
 
39869
 
 
39870
      #
 
39871
  tst_links_localtime_r="unknown"
 
39872
  tst_proto_localtime_r="unknown"
 
39873
  tst_compi_localtime_r="unknown"
 
39874
  tst_works_localtime_r="unknown"
 
39875
  tst_allow_localtime_r="unknown"
 
39876
  #
 
39877
  { echo "$as_me:$LINENO: checking if localtime_r can be linked" >&5
 
39878
echo $ECHO_N "checking if localtime_r can be linked... $ECHO_C" >&6; }
 
39879
  cat >conftest.$ac_ext <<_ACEOF
 
39880
 
 
39881
    /* confdefs.h.  */
 
39882
_ACEOF
 
39883
cat confdefs.h >>conftest.$ac_ext
 
39884
cat >>conftest.$ac_ext <<_ACEOF
 
39885
/* end confdefs.h.  */
 
39886
 
 
39887
#define localtime_r innocuous_localtime_r
 
39888
#ifdef __STDC__
 
39889
# include <limits.h>
 
39890
#else
 
39891
# include <assert.h>
 
39892
#endif
 
39893
#undef localtime_r
 
39894
#ifdef __cplusplus
 
39895
extern "C"
 
39896
#endif
 
39897
char localtime_r ();
 
39898
#if defined __stub_localtime_r || defined __stub___localtime_r
 
39899
choke me
 
39900
#endif
 
39901
 
 
39902
int main (void)
 
39903
{
 
39904
return localtime_r ();
 
39905
 ;
 
39906
 return 0;
 
39907
}
 
39908
 
 
39909
_ACEOF
 
39910
rm -f conftest.$ac_objext conftest$ac_exeext
 
39911
if { (ac_try="$ac_link"
 
39912
case "(($ac_try" in
 
39913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
39914
  *) ac_try_echo=$ac_try;;
 
39915
esac
 
39916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
39917
  (eval "$ac_link") 2>conftest.er1
 
39918
  ac_status=$?
 
39919
  grep -v '^ *+' conftest.er1 >conftest.err
 
39920
  rm -f conftest.er1
 
39921
  cat conftest.err >&5
 
39922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39923
  (exit $ac_status); } && {
 
39924
         test -z "$ac_c_werror_flag" ||
 
39925
         test ! -s conftest.err
 
39926
       } && test -s conftest$ac_exeext &&
 
39927
       $as_test_x conftest$ac_exeext; then
 
39928
 
 
39929
    { echo "$as_me:$LINENO: result: yes" >&5
 
39930
echo "${ECHO_T}yes" >&6; }
 
39931
    tst_links_localtime_r="yes"
 
39932
 
 
39933
else
 
39934
  echo "$as_me: failed program was:" >&5
 
39935
sed 's/^/| /' conftest.$ac_ext >&5
 
39936
 
 
39937
 
 
39938
    { echo "$as_me:$LINENO: result: no" >&5
 
39939
echo "${ECHO_T}no" >&6; }
 
39940
    tst_links_localtime_r="no"
 
39941
 
 
39942
fi
 
39943
 
 
39944
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
39945
      conftest$ac_exeext conftest.$ac_ext
 
39946
  #
 
39947
  if test "$tst_links_localtime_r" = "yes"; then
 
39948
    { echo "$as_me:$LINENO: checking if localtime_r is prototyped" >&5
 
39949
echo $ECHO_N "checking if localtime_r is prototyped... $ECHO_C" >&6; }
 
39950
    cat >conftest.$ac_ext <<_ACEOF
 
39951
/* confdefs.h.  */
 
39952
_ACEOF
 
39953
cat confdefs.h >>conftest.$ac_ext
 
39954
cat >>conftest.$ac_ext <<_ACEOF
 
39955
/* end confdefs.h.  */
 
39956
 
 
39957
      $curl_includes_time
 
39958
 
 
39959
_ACEOF
 
39960
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
39961
  $EGREP "localtime_r" >/dev/null 2>&1; then
 
39962
 
 
39963
      { echo "$as_me:$LINENO: result: yes" >&5
 
39964
echo "${ECHO_T}yes" >&6; }
 
39965
      tst_proto_localtime_r="yes"
 
39966
 
 
39967
else
 
39968
 
 
39969
      { echo "$as_me:$LINENO: result: no" >&5
 
39970
echo "${ECHO_T}no" >&6; }
 
39971
      tst_proto_localtime_r="no"
 
39972
 
 
39973
fi
 
39974
rm -f conftest*
 
39975
 
 
39976
  fi
 
39977
  #
 
39978
  if test "$tst_proto_localtime_r" = "yes"; then
 
39979
    { echo "$as_me:$LINENO: checking if localtime_r is compilable" >&5
 
39980
echo $ECHO_N "checking if localtime_r is compilable... $ECHO_C" >&6; }
 
39981
    cat >conftest.$ac_ext <<_ACEOF
 
39982
 
 
39983
      /* confdefs.h.  */
 
39984
_ACEOF
 
39985
cat confdefs.h >>conftest.$ac_ext
 
39986
cat >>conftest.$ac_ext <<_ACEOF
 
39987
/* end confdefs.h.  */
 
39988
 
 
39989
        $curl_includes_time
 
39990
 
 
39991
int main (void)
 
39992
{
 
39993
 
 
39994
        if(0 != localtime_r(0, 0))
 
39995
          return 1;
 
39996
 
 
39997
 ;
 
39998
 return 0;
 
39999
}
 
40000
 
 
40001
_ACEOF
 
40002
rm -f conftest.$ac_objext
 
40003
if { (ac_try="$ac_compile"
 
40004
case "(($ac_try" in
 
40005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40006
  *) ac_try_echo=$ac_try;;
 
40007
esac
 
40008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40009
  (eval "$ac_compile") 2>conftest.er1
 
40010
  ac_status=$?
 
40011
  grep -v '^ *+' conftest.er1 >conftest.err
 
40012
  rm -f conftest.er1
 
40013
  cat conftest.err >&5
 
40014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40015
  (exit $ac_status); } && {
 
40016
         test -z "$ac_c_werror_flag" ||
 
40017
         test ! -s conftest.err
 
40018
       } && test -s conftest.$ac_objext; then
 
40019
 
 
40020
      { echo "$as_me:$LINENO: result: yes" >&5
 
40021
echo "${ECHO_T}yes" >&6; }
 
40022
      tst_compi_localtime_r="yes"
 
40023
 
 
40024
else
 
40025
  echo "$as_me: failed program was:" >&5
 
40026
sed 's/^/| /' conftest.$ac_ext >&5
 
40027
 
 
40028
 
 
40029
      { echo "$as_me:$LINENO: result: no" >&5
 
40030
echo "${ECHO_T}no" >&6; }
 
40031
      tst_compi_localtime_r="no"
 
40032
 
 
40033
fi
 
40034
 
 
40035
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40036
  fi
 
40037
  #
 
40038
    if test "x$cross_compiling" != "xyes" &&
 
40039
    test "$tst_compi_localtime_r" = "yes"; then
 
40040
    { echo "$as_me:$LINENO: checking if localtime_r seems to work" >&5
 
40041
echo $ECHO_N "checking if localtime_r seems to work... $ECHO_C" >&6; }
 
40042
    if test "$cross_compiling" = yes; then
 
40043
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
40044
See \`config.log' for more details." >&5
 
40045
echo "$as_me: error: cannot run test program while cross compiling
 
40046
See \`config.log' for more details." >&2;}
 
40047
   { (exit 1); exit 1; }; }
 
40048
else
 
40049
  cat >conftest.$ac_ext <<_ACEOF
 
40050
 
 
40051
      /* confdefs.h.  */
 
40052
_ACEOF
 
40053
cat confdefs.h >>conftest.$ac_ext
 
40054
cat >>conftest.$ac_ext <<_ACEOF
 
40055
/* end confdefs.h.  */
 
40056
 
 
40057
        $curl_includes_stdlib
 
40058
        $curl_includes_time
 
40059
 
 
40060
int main (void)
 
40061
{
 
40062
 
 
40063
        time_t clock = 1170352587;
 
40064
        struct tm *tmp = 0;
 
40065
        struct tm result;
 
40066
        tmp = localtime_r(&clock, &result);
 
40067
        if(tmp)
 
40068
          exit(0);
 
40069
        else
 
40070
          exit(1);
 
40071
 
 
40072
 ;
 
40073
 return 0;
 
40074
}
 
40075
 
 
40076
_ACEOF
 
40077
rm -f conftest$ac_exeext
 
40078
if { (ac_try="$ac_link"
 
40079
case "(($ac_try" in
 
40080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40081
  *) ac_try_echo=$ac_try;;
 
40082
esac
 
40083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40084
  (eval "$ac_link") 2>&5
 
40085
  ac_status=$?
 
40086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40087
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
40088
  { (case "(($ac_try" in
 
40089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40090
  *) ac_try_echo=$ac_try;;
 
40091
esac
 
40092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40093
  (eval "$ac_try") 2>&5
 
40094
  ac_status=$?
 
40095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40096
  (exit $ac_status); }; }; then
 
40097
 
 
40098
      { echo "$as_me:$LINENO: result: yes" >&5
 
40099
echo "${ECHO_T}yes" >&6; }
 
40100
      tst_works_localtime_r="yes"
 
40101
 
 
40102
else
 
40103
  echo "$as_me: program exited with status $ac_status" >&5
 
40104
echo "$as_me: failed program was:" >&5
 
40105
sed 's/^/| /' conftest.$ac_ext >&5
 
40106
 
 
40107
( exit $ac_status )
 
40108
 
 
40109
      { echo "$as_me:$LINENO: result: no" >&5
 
40110
echo "${ECHO_T}no" >&6; }
 
40111
      tst_works_localtime_r="no"
 
40112
 
 
40113
fi
 
40114
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
40115
fi
 
40116
 
 
40117
 
 
40118
  fi
 
40119
  #
 
40120
  if test "$tst_compi_localtime_r" = "yes" &&
 
40121
    test "$tst_works_localtime_r" != "no"; then
 
40122
    { echo "$as_me:$LINENO: checking if localtime_r usage allowed" >&5
 
40123
echo $ECHO_N "checking if localtime_r usage allowed... $ECHO_C" >&6; }
 
40124
    if test "x$curl_disallow_localtime_r" != "xyes"; then
 
40125
      { echo "$as_me:$LINENO: result: yes" >&5
 
40126
echo "${ECHO_T}yes" >&6; }
 
40127
      tst_allow_localtime_r="yes"
 
40128
    else
 
40129
      { echo "$as_me:$LINENO: result: no" >&5
 
40130
echo "${ECHO_T}no" >&6; }
 
40131
      tst_allow_localtime_r="no"
 
40132
    fi
 
40133
  fi
 
40134
  #
 
40135
  { echo "$as_me:$LINENO: checking if localtime_r might be used" >&5
 
40136
echo $ECHO_N "checking if localtime_r might be used... $ECHO_C" >&6; }
 
40137
  if test "$tst_links_localtime_r" = "yes" &&
 
40138
     test "$tst_proto_localtime_r" = "yes" &&
 
40139
     test "$tst_compi_localtime_r" = "yes" &&
 
40140
     test "$tst_allow_localtime_r" = "yes" &&
 
40141
     test "$tst_works_localtime_r" != "no"; then
 
40142
    { echo "$as_me:$LINENO: result: yes" >&5
 
40143
echo "${ECHO_T}yes" >&6; }
 
40144
 
 
40145
cat >>confdefs.h <<_ACEOF
 
40146
#define HAVE_LOCALTIME_R 1
 
40147
_ACEOF
 
40148
 
 
40149
    ac_cv_func_localtime_r="yes"
 
40150
  else
 
40151
    { echo "$as_me:$LINENO: result: no" >&5
 
40152
echo "${ECHO_T}no" >&6; }
 
40153
    ac_cv_func_localtime_r="no"
 
40154
  fi
 
40155
 
 
40156
 
 
40157
curl_includes_poll="\
 
40158
/* includes start */
 
40159
#ifdef HAVE_SYS_TYPES_H
 
40160
#  include <sys/types.h>
 
40161
#endif
 
40162
#ifdef HAVE_POLL_H
 
40163
#  include <poll.h>
 
40164
#endif
 
40165
#ifdef HAVE_SYS_POLL_H
 
40166
#  include <sys/poll.h>
 
40167
#endif
 
40168
/* includes end */"
 
40169
 
 
40170
 
 
40171
 
 
40172
for ac_header in sys/types.h poll.h sys/poll.h
 
40173
do
 
40174
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
40175
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
40176
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
40177
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
40178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40179
else
 
40180
  cat >conftest.$ac_ext <<_ACEOF
 
40181
/* confdefs.h.  */
 
40182
_ACEOF
 
40183
cat confdefs.h >>conftest.$ac_ext
 
40184
cat >>conftest.$ac_ext <<_ACEOF
 
40185
/* end confdefs.h.  */
 
40186
$curl_includes_poll
 
40187
 
 
40188
#include <$ac_header>
 
40189
_ACEOF
 
40190
rm -f conftest.$ac_objext
 
40191
if { (ac_try="$ac_compile"
 
40192
case "(($ac_try" in
 
40193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40194
  *) ac_try_echo=$ac_try;;
 
40195
esac
 
40196
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40197
  (eval "$ac_compile") 2>conftest.er1
 
40198
  ac_status=$?
 
40199
  grep -v '^ *+' conftest.er1 >conftest.err
 
40200
  rm -f conftest.er1
 
40201
  cat conftest.err >&5
 
40202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40203
  (exit $ac_status); } && {
 
40204
         test -z "$ac_c_werror_flag" ||
 
40205
         test ! -s conftest.err
 
40206
       } && test -s conftest.$ac_objext; then
 
40207
  eval "$as_ac_Header=yes"
 
40208
else
 
40209
  echo "$as_me: failed program was:" >&5
 
40210
sed 's/^/| /' conftest.$ac_ext >&5
 
40211
 
 
40212
        eval "$as_ac_Header=no"
 
40213
fi
 
40214
 
 
40215
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40216
fi
 
40217
ac_res=`eval echo '${'$as_ac_Header'}'`
 
40218
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
40219
echo "${ECHO_T}$ac_res" >&6; }
 
40220
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
40221
  cat >>confdefs.h <<_ACEOF
 
40222
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
40223
_ACEOF
 
40224
 
 
40225
fi
 
40226
 
 
40227
done
 
40228
 
 
40229
 
 
40230
 
 
40231
      #
 
40232
  tst_links_poll="unknown"
 
40233
  tst_proto_poll="unknown"
 
40234
  tst_compi_poll="unknown"
 
40235
  tst_works_poll="unknown"
 
40236
  tst_allow_poll="unknown"
 
40237
  #
 
40238
  case $host_os in
 
40239
    darwin*)
 
40240
            curl_disallow_poll="yes"
 
40241
      ;;
 
40242
  esac
 
40243
  #
 
40244
  { echo "$as_me:$LINENO: checking if poll can be linked" >&5
 
40245
echo $ECHO_N "checking if poll can be linked... $ECHO_C" >&6; }
 
40246
  cat >conftest.$ac_ext <<_ACEOF
 
40247
 
 
40248
    /* confdefs.h.  */
 
40249
_ACEOF
 
40250
cat confdefs.h >>conftest.$ac_ext
 
40251
cat >>conftest.$ac_ext <<_ACEOF
 
40252
/* end confdefs.h.  */
 
40253
 
 
40254
      $curl_includes_poll
 
40255
 
 
40256
int main (void)
 
40257
{
 
40258
 
 
40259
      if(0 != poll(0, 0, 0))
 
40260
        return 1;
 
40261
 
 
40262
 ;
 
40263
 return 0;
 
40264
}
 
40265
 
 
40266
_ACEOF
 
40267
rm -f conftest.$ac_objext conftest$ac_exeext
 
40268
if { (ac_try="$ac_link"
 
40269
case "(($ac_try" in
 
40270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40271
  *) ac_try_echo=$ac_try;;
 
40272
esac
 
40273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40274
  (eval "$ac_link") 2>conftest.er1
 
40275
  ac_status=$?
 
40276
  grep -v '^ *+' conftest.er1 >conftest.err
 
40277
  rm -f conftest.er1
 
40278
  cat conftest.err >&5
 
40279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40280
  (exit $ac_status); } && {
 
40281
         test -z "$ac_c_werror_flag" ||
 
40282
         test ! -s conftest.err
 
40283
       } && test -s conftest$ac_exeext &&
 
40284
       $as_test_x conftest$ac_exeext; then
 
40285
 
 
40286
    { echo "$as_me:$LINENO: result: yes" >&5
 
40287
echo "${ECHO_T}yes" >&6; }
 
40288
    tst_links_poll="yes"
 
40289
 
 
40290
else
 
40291
  echo "$as_me: failed program was:" >&5
 
40292
sed 's/^/| /' conftest.$ac_ext >&5
 
40293
 
 
40294
 
 
40295
    { echo "$as_me:$LINENO: result: no" >&5
 
40296
echo "${ECHO_T}no" >&6; }
 
40297
    tst_links_poll="no"
 
40298
 
 
40299
fi
 
40300
 
 
40301
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
40302
      conftest$ac_exeext conftest.$ac_ext
 
40303
  #
 
40304
  if test "$tst_links_poll" = "yes"; then
 
40305
    { echo "$as_me:$LINENO: checking if poll is prototyped" >&5
 
40306
echo $ECHO_N "checking if poll is prototyped... $ECHO_C" >&6; }
 
40307
    cat >conftest.$ac_ext <<_ACEOF
 
40308
/* confdefs.h.  */
 
40309
_ACEOF
 
40310
cat confdefs.h >>conftest.$ac_ext
 
40311
cat >>conftest.$ac_ext <<_ACEOF
 
40312
/* end confdefs.h.  */
 
40313
 
 
40314
      $curl_includes_poll
 
40315
 
 
40316
_ACEOF
 
40317
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
40318
  $EGREP "poll" >/dev/null 2>&1; then
 
40319
 
 
40320
      { echo "$as_me:$LINENO: result: yes" >&5
 
40321
echo "${ECHO_T}yes" >&6; }
 
40322
      tst_proto_poll="yes"
 
40323
 
 
40324
else
 
40325
 
 
40326
      { echo "$as_me:$LINENO: result: no" >&5
 
40327
echo "${ECHO_T}no" >&6; }
 
40328
      tst_proto_poll="no"
 
40329
 
 
40330
fi
 
40331
rm -f conftest*
 
40332
 
 
40333
  fi
 
40334
  #
 
40335
  if test "$tst_proto_poll" = "yes"; then
 
40336
    { echo "$as_me:$LINENO: checking if poll is compilable" >&5
 
40337
echo $ECHO_N "checking if poll is compilable... $ECHO_C" >&6; }
 
40338
    cat >conftest.$ac_ext <<_ACEOF
 
40339
 
 
40340
      /* confdefs.h.  */
 
40341
_ACEOF
 
40342
cat confdefs.h >>conftest.$ac_ext
 
40343
cat >>conftest.$ac_ext <<_ACEOF
 
40344
/* end confdefs.h.  */
 
40345
 
 
40346
        $curl_includes_poll
 
40347
 
 
40348
int main (void)
 
40349
{
 
40350
 
 
40351
        if(0 != poll(0, 0, 0))
 
40352
          return 1;
 
40353
 
 
40354
 ;
 
40355
 return 0;
 
40356
}
 
40357
 
 
40358
_ACEOF
 
40359
rm -f conftest.$ac_objext
 
40360
if { (ac_try="$ac_compile"
 
40361
case "(($ac_try" in
 
40362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40363
  *) ac_try_echo=$ac_try;;
 
40364
esac
 
40365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40366
  (eval "$ac_compile") 2>conftest.er1
 
40367
  ac_status=$?
 
40368
  grep -v '^ *+' conftest.er1 >conftest.err
 
40369
  rm -f conftest.er1
 
40370
  cat conftest.err >&5
 
40371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40372
  (exit $ac_status); } && {
 
40373
         test -z "$ac_c_werror_flag" ||
 
40374
         test ! -s conftest.err
 
40375
       } && test -s conftest.$ac_objext; then
 
40376
 
 
40377
      { echo "$as_me:$LINENO: result: yes" >&5
 
40378
echo "${ECHO_T}yes" >&6; }
 
40379
      tst_compi_poll="yes"
 
40380
 
 
40381
else
 
40382
  echo "$as_me: failed program was:" >&5
 
40383
sed 's/^/| /' conftest.$ac_ext >&5
 
40384
 
 
40385
 
 
40386
      { echo "$as_me:$LINENO: result: no" >&5
 
40387
echo "${ECHO_T}no" >&6; }
 
40388
      tst_compi_poll="no"
 
40389
 
 
40390
fi
 
40391
 
 
40392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40393
  fi
 
40394
  #
 
40395
    if test "x$cross_compiling" != "xyes" &&
 
40396
    test "$tst_compi_poll" = "yes"; then
 
40397
    { echo "$as_me:$LINENO: checking if poll seems to work" >&5
 
40398
echo $ECHO_N "checking if poll seems to work... $ECHO_C" >&6; }
 
40399
    if test "$cross_compiling" = yes; then
 
40400
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
40401
See \`config.log' for more details." >&5
 
40402
echo "$as_me: error: cannot run test program while cross compiling
 
40403
See \`config.log' for more details." >&2;}
 
40404
   { (exit 1); exit 1; }; }
 
40405
else
 
40406
  cat >conftest.$ac_ext <<_ACEOF
 
40407
 
 
40408
      /* confdefs.h.  */
 
40409
_ACEOF
 
40410
cat confdefs.h >>conftest.$ac_ext
 
40411
cat >>conftest.$ac_ext <<_ACEOF
 
40412
/* end confdefs.h.  */
 
40413
 
 
40414
        $curl_includes_stdlib
 
40415
        $curl_includes_poll
 
40416
 
 
40417
int main (void)
 
40418
{
 
40419
 
 
40420
        if(0 != poll(0, 0, 10))
 
40421
          exit(1); /* fail */
 
40422
        else
 
40423
          exit(0);
 
40424
 
 
40425
 ;
 
40426
 return 0;
 
40427
}
 
40428
 
 
40429
_ACEOF
 
40430
rm -f conftest$ac_exeext
 
40431
if { (ac_try="$ac_link"
 
40432
case "(($ac_try" in
 
40433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40434
  *) ac_try_echo=$ac_try;;
 
40435
esac
 
40436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40437
  (eval "$ac_link") 2>&5
 
40438
  ac_status=$?
 
40439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40440
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
40441
  { (case "(($ac_try" in
 
40442
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40443
  *) ac_try_echo=$ac_try;;
 
40444
esac
 
40445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40446
  (eval "$ac_try") 2>&5
 
40447
  ac_status=$?
 
40448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40449
  (exit $ac_status); }; }; then
 
40450
 
 
40451
      { echo "$as_me:$LINENO: result: yes" >&5
 
40452
echo "${ECHO_T}yes" >&6; }
 
40453
      tst_works_poll="yes"
 
40454
 
 
40455
else
 
40456
  echo "$as_me: program exited with status $ac_status" >&5
 
40457
echo "$as_me: failed program was:" >&5
 
40458
sed 's/^/| /' conftest.$ac_ext >&5
 
40459
 
 
40460
( exit $ac_status )
 
40461
 
 
40462
      { echo "$as_me:$LINENO: result: no" >&5
 
40463
echo "${ECHO_T}no" >&6; }
 
40464
      tst_works_poll="no"
 
40465
 
 
40466
fi
 
40467
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
40468
fi
 
40469
 
 
40470
 
 
40471
  fi
 
40472
  #
 
40473
  if test "$tst_compi_poll" = "yes" &&
 
40474
    test "$tst_works_poll" != "no"; then
 
40475
    { echo "$as_me:$LINENO: checking if poll usage allowed" >&5
 
40476
echo $ECHO_N "checking if poll usage allowed... $ECHO_C" >&6; }
 
40477
    if test "x$curl_disallow_poll" != "xyes"; then
 
40478
      { echo "$as_me:$LINENO: result: yes" >&5
 
40479
echo "${ECHO_T}yes" >&6; }
 
40480
      tst_allow_poll="yes"
 
40481
    else
 
40482
      { echo "$as_me:$LINENO: result: no" >&5
 
40483
echo "${ECHO_T}no" >&6; }
 
40484
      tst_allow_poll="no"
 
40485
    fi
 
40486
  fi
 
40487
  #
 
40488
  { echo "$as_me:$LINENO: checking if poll might be used" >&5
 
40489
echo $ECHO_N "checking if poll might be used... $ECHO_C" >&6; }
 
40490
  if test "$tst_links_poll" = "yes" &&
 
40491
     test "$tst_proto_poll" = "yes" &&
 
40492
     test "$tst_compi_poll" = "yes" &&
 
40493
     test "$tst_allow_poll" = "yes" &&
 
40494
     test "$tst_works_poll" != "no"; then
 
40495
    { echo "$as_me:$LINENO: result: yes" >&5
 
40496
echo "${ECHO_T}yes" >&6; }
 
40497
 
 
40498
cat >>confdefs.h <<_ACEOF
 
40499
#define HAVE_POLL 1
 
40500
_ACEOF
 
40501
 
 
40502
 
 
40503
cat >>confdefs.h <<_ACEOF
 
40504
#define HAVE_POLL_FINE 1
 
40505
_ACEOF
 
40506
 
 
40507
    ac_cv_func_poll="yes"
 
40508
  else
 
40509
    { echo "$as_me:$LINENO: result: no" >&5
 
40510
echo "${ECHO_T}no" >&6; }
 
40511
    ac_cv_func_poll="no"
 
40512
  fi
 
40513
 
 
40514
 
 
40515
      #
 
40516
  tst_links_setsockopt="unknown"
 
40517
  tst_proto_setsockopt="unknown"
 
40518
  tst_compi_setsockopt="unknown"
 
40519
  tst_allow_setsockopt="unknown"
 
40520
  #
 
40521
  { echo "$as_me:$LINENO: checking if setsockopt can be linked" >&5
 
40522
echo $ECHO_N "checking if setsockopt can be linked... $ECHO_C" >&6; }
 
40523
  cat >conftest.$ac_ext <<_ACEOF
 
40524
 
 
40525
    /* confdefs.h.  */
 
40526
_ACEOF
 
40527
cat confdefs.h >>conftest.$ac_ext
 
40528
cat >>conftest.$ac_ext <<_ACEOF
 
40529
/* end confdefs.h.  */
 
40530
 
 
40531
      $curl_includes_winsock2
 
40532
      $curl_includes_sys_socket
 
40533
 
 
40534
int main (void)
 
40535
{
 
40536
 
 
40537
      if(0 != setsockopt(0, 0, 0, 0, 0))
 
40538
        return 1;
 
40539
 
 
40540
 ;
 
40541
 return 0;
 
40542
}
 
40543
 
 
40544
_ACEOF
 
40545
rm -f conftest.$ac_objext conftest$ac_exeext
 
40546
if { (ac_try="$ac_link"
 
40547
case "(($ac_try" in
 
40548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40549
  *) ac_try_echo=$ac_try;;
 
40550
esac
 
40551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40552
  (eval "$ac_link") 2>conftest.er1
 
40553
  ac_status=$?
 
40554
  grep -v '^ *+' conftest.er1 >conftest.err
 
40555
  rm -f conftest.er1
 
40556
  cat conftest.err >&5
 
40557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40558
  (exit $ac_status); } && {
 
40559
         test -z "$ac_c_werror_flag" ||
 
40560
         test ! -s conftest.err
 
40561
       } && test -s conftest$ac_exeext &&
 
40562
       $as_test_x conftest$ac_exeext; then
 
40563
 
 
40564
    { echo "$as_me:$LINENO: result: yes" >&5
 
40565
echo "${ECHO_T}yes" >&6; }
 
40566
    tst_links_setsockopt="yes"
 
40567
 
 
40568
else
 
40569
  echo "$as_me: failed program was:" >&5
 
40570
sed 's/^/| /' conftest.$ac_ext >&5
 
40571
 
 
40572
 
 
40573
    { echo "$as_me:$LINENO: result: no" >&5
 
40574
echo "${ECHO_T}no" >&6; }
 
40575
    tst_links_setsockopt="no"
 
40576
 
 
40577
fi
 
40578
 
 
40579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
40580
      conftest$ac_exeext conftest.$ac_ext
 
40581
  #
 
40582
  if test "$tst_links_setsockopt" = "yes"; then
 
40583
    { echo "$as_me:$LINENO: checking if setsockopt is prototyped" >&5
 
40584
echo $ECHO_N "checking if setsockopt is prototyped... $ECHO_C" >&6; }
 
40585
    cat >conftest.$ac_ext <<_ACEOF
 
40586
/* confdefs.h.  */
 
40587
_ACEOF
 
40588
cat confdefs.h >>conftest.$ac_ext
 
40589
cat >>conftest.$ac_ext <<_ACEOF
 
40590
/* end confdefs.h.  */
 
40591
 
 
40592
      $curl_includes_winsock2
 
40593
      $curl_includes_sys_socket
 
40594
 
 
40595
_ACEOF
 
40596
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
40597
  $EGREP "setsockopt" >/dev/null 2>&1; then
 
40598
 
 
40599
      { echo "$as_me:$LINENO: result: yes" >&5
 
40600
echo "${ECHO_T}yes" >&6; }
 
40601
      tst_proto_setsockopt="yes"
 
40602
 
 
40603
else
 
40604
 
 
40605
      { echo "$as_me:$LINENO: result: no" >&5
 
40606
echo "${ECHO_T}no" >&6; }
 
40607
      tst_proto_setsockopt="no"
 
40608
 
 
40609
fi
 
40610
rm -f conftest*
 
40611
 
 
40612
  fi
 
40613
  #
 
40614
  if test "$tst_proto_setsockopt" = "yes"; then
 
40615
    { echo "$as_me:$LINENO: checking if setsockopt is compilable" >&5
 
40616
echo $ECHO_N "checking if setsockopt is compilable... $ECHO_C" >&6; }
 
40617
    cat >conftest.$ac_ext <<_ACEOF
 
40618
 
 
40619
      /* confdefs.h.  */
 
40620
_ACEOF
 
40621
cat confdefs.h >>conftest.$ac_ext
 
40622
cat >>conftest.$ac_ext <<_ACEOF
 
40623
/* end confdefs.h.  */
 
40624
 
 
40625
        $curl_includes_winsock2
 
40626
        $curl_includes_sys_socket
 
40627
 
 
40628
int main (void)
 
40629
{
 
40630
 
 
40631
        if(0 != setsockopt(0, 0, 0, 0, 0))
 
40632
          return 1;
 
40633
 
 
40634
 ;
 
40635
 return 0;
 
40636
}
 
40637
 
 
40638
_ACEOF
 
40639
rm -f conftest.$ac_objext
 
40640
if { (ac_try="$ac_compile"
 
40641
case "(($ac_try" in
 
40642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40643
  *) ac_try_echo=$ac_try;;
 
40644
esac
 
40645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40646
  (eval "$ac_compile") 2>conftest.er1
 
40647
  ac_status=$?
 
40648
  grep -v '^ *+' conftest.er1 >conftest.err
 
40649
  rm -f conftest.er1
 
40650
  cat conftest.err >&5
 
40651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40652
  (exit $ac_status); } && {
 
40653
         test -z "$ac_c_werror_flag" ||
 
40654
         test ! -s conftest.err
 
40655
       } && test -s conftest.$ac_objext; then
 
40656
 
 
40657
      { echo "$as_me:$LINENO: result: yes" >&5
 
40658
echo "${ECHO_T}yes" >&6; }
 
40659
      tst_compi_setsockopt="yes"
 
40660
 
 
40661
else
 
40662
  echo "$as_me: failed program was:" >&5
 
40663
sed 's/^/| /' conftest.$ac_ext >&5
 
40664
 
 
40665
 
 
40666
      { echo "$as_me:$LINENO: result: no" >&5
 
40667
echo "${ECHO_T}no" >&6; }
 
40668
      tst_compi_setsockopt="no"
 
40669
 
 
40670
fi
 
40671
 
 
40672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40673
  fi
 
40674
  #
 
40675
  if test "$tst_compi_setsockopt" = "yes"; then
 
40676
    { echo "$as_me:$LINENO: checking if setsockopt usage allowed" >&5
 
40677
echo $ECHO_N "checking if setsockopt usage allowed... $ECHO_C" >&6; }
 
40678
    if test "x$curl_disallow_setsockopt" != "xyes"; then
 
40679
      { echo "$as_me:$LINENO: result: yes" >&5
 
40680
echo "${ECHO_T}yes" >&6; }
 
40681
      tst_allow_setsockopt="yes"
 
40682
    else
 
40683
      { echo "$as_me:$LINENO: result: no" >&5
 
40684
echo "${ECHO_T}no" >&6; }
 
40685
      tst_allow_setsockopt="no"
 
40686
    fi
 
40687
  fi
 
40688
  #
 
40689
  { echo "$as_me:$LINENO: checking if setsockopt might be used" >&5
 
40690
echo $ECHO_N "checking if setsockopt might be used... $ECHO_C" >&6; }
 
40691
  if test "$tst_links_setsockopt" = "yes" &&
 
40692
     test "$tst_proto_setsockopt" = "yes" &&
 
40693
     test "$tst_compi_setsockopt" = "yes" &&
 
40694
     test "$tst_allow_setsockopt" = "yes"; then
 
40695
    { echo "$as_me:$LINENO: result: yes" >&5
 
40696
echo "${ECHO_T}yes" >&6; }
 
40697
 
 
40698
cat >>confdefs.h <<_ACEOF
 
40699
#define HAVE_SETSOCKOPT 1
 
40700
_ACEOF
 
40701
 
 
40702
    ac_cv_func_setsockopt="yes"
 
40703
 
 
40704
  #
 
40705
  tst_compi_setsockopt_so_nonblock="unknown"
 
40706
  tst_allow_setsockopt_so_nonblock="unknown"
 
40707
  #
 
40708
  if test "$ac_cv_func_setsockopt" = "yes"; then
 
40709
    { echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK is compilable" >&5
 
40710
echo $ECHO_N "checking if setsockopt SO_NONBLOCK is compilable... $ECHO_C" >&6; }
 
40711
    cat >conftest.$ac_ext <<_ACEOF
 
40712
 
 
40713
      /* confdefs.h.  */
 
40714
_ACEOF
 
40715
cat confdefs.h >>conftest.$ac_ext
 
40716
cat >>conftest.$ac_ext <<_ACEOF
 
40717
/* end confdefs.h.  */
 
40718
 
 
40719
        $curl_includes_winsock2
 
40720
        $curl_includes_sys_socket
 
40721
 
 
40722
int main (void)
 
40723
{
 
40724
 
 
40725
        if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
 
40726
          return 1;
 
40727
 
 
40728
 ;
 
40729
 return 0;
 
40730
}
 
40731
 
 
40732
_ACEOF
 
40733
rm -f conftest.$ac_objext
 
40734
if { (ac_try="$ac_compile"
 
40735
case "(($ac_try" in
 
40736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40737
  *) ac_try_echo=$ac_try;;
 
40738
esac
 
40739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40740
  (eval "$ac_compile") 2>conftest.er1
 
40741
  ac_status=$?
 
40742
  grep -v '^ *+' conftest.er1 >conftest.err
 
40743
  rm -f conftest.er1
 
40744
  cat conftest.err >&5
 
40745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40746
  (exit $ac_status); } && {
 
40747
         test -z "$ac_c_werror_flag" ||
 
40748
         test ! -s conftest.err
 
40749
       } && test -s conftest.$ac_objext; then
 
40750
 
 
40751
      { echo "$as_me:$LINENO: result: yes" >&5
 
40752
echo "${ECHO_T}yes" >&6; }
 
40753
      tst_compi_setsockopt_so_nonblock="yes"
 
40754
 
 
40755
else
 
40756
  echo "$as_me: failed program was:" >&5
 
40757
sed 's/^/| /' conftest.$ac_ext >&5
 
40758
 
 
40759
 
 
40760
      { echo "$as_me:$LINENO: result: no" >&5
 
40761
echo "${ECHO_T}no" >&6; }
 
40762
      tst_compi_setsockopt_so_nonblock="no"
 
40763
 
 
40764
fi
 
40765
 
 
40766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40767
  fi
 
40768
  #
 
40769
  if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
 
40770
    { echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK usage allowed" >&5
 
40771
echo $ECHO_N "checking if setsockopt SO_NONBLOCK usage allowed... $ECHO_C" >&6; }
 
40772
    if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
 
40773
      { echo "$as_me:$LINENO: result: yes" >&5
 
40774
echo "${ECHO_T}yes" >&6; }
 
40775
      tst_allow_setsockopt_so_nonblock="yes"
 
40776
    else
 
40777
      { echo "$as_me:$LINENO: result: no" >&5
 
40778
echo "${ECHO_T}no" >&6; }
 
40779
      tst_allow_setsockopt_so_nonblock="no"
 
40780
    fi
 
40781
  fi
 
40782
  #
 
40783
  { echo "$as_me:$LINENO: checking if setsockopt SO_NONBLOCK might be used" >&5
 
40784
echo $ECHO_N "checking if setsockopt SO_NONBLOCK might be used... $ECHO_C" >&6; }
 
40785
  if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
 
40786
     test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
 
40787
    { echo "$as_me:$LINENO: result: yes" >&5
 
40788
echo "${ECHO_T}yes" >&6; }
 
40789
 
 
40790
cat >>confdefs.h <<_ACEOF
 
40791
#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
 
40792
_ACEOF
 
40793
 
 
40794
    ac_cv_func_setsockopt_so_nonblock="yes"
 
40795
  else
 
40796
    { echo "$as_me:$LINENO: result: no" >&5
 
40797
echo "${ECHO_T}no" >&6; }
 
40798
    ac_cv_func_setsockopt_so_nonblock="no"
 
40799
  fi
 
40800
 
 
40801
  else
 
40802
    { echo "$as_me:$LINENO: result: no" >&5
 
40803
echo "${ECHO_T}no" >&6; }
 
40804
    ac_cv_func_setsockopt="no"
 
40805
  fi
 
40806
 
 
40807
 
 
40808
curl_includes_signal="\
 
40809
/* includes start */
 
40810
#ifdef HAVE_SYS_TYPES_H
 
40811
#  include <sys/types.h>
 
40812
#endif
 
40813
#ifdef HAVE_SIGNAL_H
 
40814
#  include <signal.h>
 
40815
#endif
 
40816
/* includes end */"
 
40817
 
 
40818
 
 
40819
for ac_header in sys/types.h signal.h
 
40820
do
 
40821
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
40822
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
40823
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
40824
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
40825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40826
else
 
40827
  cat >conftest.$ac_ext <<_ACEOF
 
40828
/* confdefs.h.  */
 
40829
_ACEOF
 
40830
cat confdefs.h >>conftest.$ac_ext
 
40831
cat >>conftest.$ac_ext <<_ACEOF
 
40832
/* end confdefs.h.  */
 
40833
$curl_includes_signal
 
40834
 
 
40835
#include <$ac_header>
 
40836
_ACEOF
 
40837
rm -f conftest.$ac_objext
 
40838
if { (ac_try="$ac_compile"
 
40839
case "(($ac_try" in
 
40840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40841
  *) ac_try_echo=$ac_try;;
 
40842
esac
 
40843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40844
  (eval "$ac_compile") 2>conftest.er1
 
40845
  ac_status=$?
 
40846
  grep -v '^ *+' conftest.er1 >conftest.err
 
40847
  rm -f conftest.er1
 
40848
  cat conftest.err >&5
 
40849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40850
  (exit $ac_status); } && {
 
40851
         test -z "$ac_c_werror_flag" ||
 
40852
         test ! -s conftest.err
 
40853
       } && test -s conftest.$ac_objext; then
 
40854
  eval "$as_ac_Header=yes"
 
40855
else
 
40856
  echo "$as_me: failed program was:" >&5
 
40857
sed 's/^/| /' conftest.$ac_ext >&5
 
40858
 
 
40859
        eval "$as_ac_Header=no"
 
40860
fi
 
40861
 
 
40862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
40863
fi
 
40864
ac_res=`eval echo '${'$as_ac_Header'}'`
 
40865
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
40866
echo "${ECHO_T}$ac_res" >&6; }
 
40867
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
40868
  cat >>confdefs.h <<_ACEOF
 
40869
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
40870
_ACEOF
 
40871
 
 
40872
fi
 
40873
 
 
40874
done
 
40875
 
 
40876
 
 
40877
 
 
40878
    #
 
40879
  tst_links_sigaction="unknown"
 
40880
  tst_proto_sigaction="unknown"
 
40881
  tst_compi_sigaction="unknown"
 
40882
  tst_allow_sigaction="unknown"
 
40883
  #
 
40884
  { echo "$as_me:$LINENO: checking if sigaction can be linked" >&5
 
40885
echo $ECHO_N "checking if sigaction can be linked... $ECHO_C" >&6; }
 
40886
  cat >conftest.$ac_ext <<_ACEOF
 
40887
 
 
40888
    /* confdefs.h.  */
 
40889
_ACEOF
 
40890
cat confdefs.h >>conftest.$ac_ext
 
40891
cat >>conftest.$ac_ext <<_ACEOF
 
40892
/* end confdefs.h.  */
 
40893
 
 
40894
#define sigaction innocuous_sigaction
 
40895
#ifdef __STDC__
 
40896
# include <limits.h>
 
40897
#else
 
40898
# include <assert.h>
 
40899
#endif
 
40900
#undef sigaction
 
40901
#ifdef __cplusplus
 
40902
extern "C"
 
40903
#endif
 
40904
char sigaction ();
 
40905
#if defined __stub_sigaction || defined __stub___sigaction
 
40906
choke me
 
40907
#endif
 
40908
 
 
40909
int main (void)
 
40910
{
 
40911
return sigaction ();
 
40912
 ;
 
40913
 return 0;
 
40914
}
 
40915
 
 
40916
_ACEOF
 
40917
rm -f conftest.$ac_objext conftest$ac_exeext
 
40918
if { (ac_try="$ac_link"
 
40919
case "(($ac_try" in
 
40920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
40921
  *) ac_try_echo=$ac_try;;
 
40922
esac
 
40923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
40924
  (eval "$ac_link") 2>conftest.er1
 
40925
  ac_status=$?
 
40926
  grep -v '^ *+' conftest.er1 >conftest.err
 
40927
  rm -f conftest.er1
 
40928
  cat conftest.err >&5
 
40929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40930
  (exit $ac_status); } && {
 
40931
         test -z "$ac_c_werror_flag" ||
 
40932
         test ! -s conftest.err
 
40933
       } && test -s conftest$ac_exeext &&
 
40934
       $as_test_x conftest$ac_exeext; then
 
40935
 
 
40936
    { echo "$as_me:$LINENO: result: yes" >&5
 
40937
echo "${ECHO_T}yes" >&6; }
 
40938
    tst_links_sigaction="yes"
 
40939
 
 
40940
else
 
40941
  echo "$as_me: failed program was:" >&5
 
40942
sed 's/^/| /' conftest.$ac_ext >&5
 
40943
 
 
40944
 
 
40945
    { echo "$as_me:$LINENO: result: no" >&5
 
40946
echo "${ECHO_T}no" >&6; }
 
40947
    tst_links_sigaction="no"
 
40948
 
 
40949
fi
 
40950
 
 
40951
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
40952
      conftest$ac_exeext conftest.$ac_ext
 
40953
  #
 
40954
  if test "$tst_links_sigaction" = "yes"; then
 
40955
    { echo "$as_me:$LINENO: checking if sigaction is prototyped" >&5
 
40956
echo $ECHO_N "checking if sigaction is prototyped... $ECHO_C" >&6; }
 
40957
    cat >conftest.$ac_ext <<_ACEOF
 
40958
/* confdefs.h.  */
 
40959
_ACEOF
 
40960
cat confdefs.h >>conftest.$ac_ext
 
40961
cat >>conftest.$ac_ext <<_ACEOF
 
40962
/* end confdefs.h.  */
 
40963
 
 
40964
      $curl_includes_signal
 
40965
 
 
40966
_ACEOF
 
40967
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
40968
  $EGREP "sigaction" >/dev/null 2>&1; then
 
40969
 
 
40970
      { echo "$as_me:$LINENO: result: yes" >&5
 
40971
echo "${ECHO_T}yes" >&6; }
 
40972
      tst_proto_sigaction="yes"
 
40973
 
 
40974
else
 
40975
 
 
40976
      { echo "$as_me:$LINENO: result: no" >&5
 
40977
echo "${ECHO_T}no" >&6; }
 
40978
      tst_proto_sigaction="no"
 
40979
 
 
40980
fi
 
40981
rm -f conftest*
 
40982
 
 
40983
  fi
 
40984
  #
 
40985
  if test "$tst_proto_sigaction" = "yes"; then
 
40986
    { echo "$as_me:$LINENO: checking if sigaction is compilable" >&5
 
40987
echo $ECHO_N "checking if sigaction is compilable... $ECHO_C" >&6; }
 
40988
    cat >conftest.$ac_ext <<_ACEOF
 
40989
 
 
40990
      /* confdefs.h.  */
 
40991
_ACEOF
 
40992
cat confdefs.h >>conftest.$ac_ext
 
40993
cat >>conftest.$ac_ext <<_ACEOF
 
40994
/* end confdefs.h.  */
 
40995
 
 
40996
        $curl_includes_signal
 
40997
 
 
40998
int main (void)
 
40999
{
 
41000
 
 
41001
        if(0 != sigaction(0, 0, 0))
 
41002
          return 1;
 
41003
 
 
41004
 ;
 
41005
 return 0;
 
41006
}
 
41007
 
 
41008
_ACEOF
 
41009
rm -f conftest.$ac_objext
 
41010
if { (ac_try="$ac_compile"
 
41011
case "(($ac_try" in
 
41012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41013
  *) ac_try_echo=$ac_try;;
 
41014
esac
 
41015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41016
  (eval "$ac_compile") 2>conftest.er1
 
41017
  ac_status=$?
 
41018
  grep -v '^ *+' conftest.er1 >conftest.err
 
41019
  rm -f conftest.er1
 
41020
  cat conftest.err >&5
 
41021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41022
  (exit $ac_status); } && {
 
41023
         test -z "$ac_c_werror_flag" ||
 
41024
         test ! -s conftest.err
 
41025
       } && test -s conftest.$ac_objext; then
 
41026
 
 
41027
      { echo "$as_me:$LINENO: result: yes" >&5
 
41028
echo "${ECHO_T}yes" >&6; }
 
41029
      tst_compi_sigaction="yes"
 
41030
 
 
41031
else
 
41032
  echo "$as_me: failed program was:" >&5
 
41033
sed 's/^/| /' conftest.$ac_ext >&5
 
41034
 
 
41035
 
 
41036
      { echo "$as_me:$LINENO: result: no" >&5
 
41037
echo "${ECHO_T}no" >&6; }
 
41038
      tst_compi_sigaction="no"
 
41039
 
 
41040
fi
 
41041
 
 
41042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41043
  fi
 
41044
  #
 
41045
  if test "$tst_compi_sigaction" = "yes"; then
 
41046
    { echo "$as_me:$LINENO: checking if sigaction usage allowed" >&5
 
41047
echo $ECHO_N "checking if sigaction usage allowed... $ECHO_C" >&6; }
 
41048
    if test "x$curl_disallow_sigaction" != "xyes"; then
 
41049
      { echo "$as_me:$LINENO: result: yes" >&5
 
41050
echo "${ECHO_T}yes" >&6; }
 
41051
      tst_allow_sigaction="yes"
 
41052
    else
 
41053
      { echo "$as_me:$LINENO: result: no" >&5
 
41054
echo "${ECHO_T}no" >&6; }
 
41055
      tst_allow_sigaction="no"
 
41056
    fi
 
41057
  fi
 
41058
  #
 
41059
  { echo "$as_me:$LINENO: checking if sigaction might be used" >&5
 
41060
echo $ECHO_N "checking if sigaction might be used... $ECHO_C" >&6; }
 
41061
  if test "$tst_links_sigaction" = "yes" &&
 
41062
     test "$tst_proto_sigaction" = "yes" &&
 
41063
     test "$tst_compi_sigaction" = "yes" &&
 
41064
     test "$tst_allow_sigaction" = "yes"; then
 
41065
    { echo "$as_me:$LINENO: result: yes" >&5
 
41066
echo "${ECHO_T}yes" >&6; }
 
41067
 
 
41068
cat >>confdefs.h <<_ACEOF
 
41069
#define HAVE_SIGACTION 1
 
41070
_ACEOF
 
41071
 
 
41072
    ac_cv_func_sigaction="yes"
 
41073
  else
 
41074
    { echo "$as_me:$LINENO: result: no" >&5
 
41075
echo "${ECHO_T}no" >&6; }
 
41076
    ac_cv_func_sigaction="no"
 
41077
  fi
 
41078
 
 
41079
 
 
41080
    #
 
41081
  tst_links_siginterrupt="unknown"
 
41082
  tst_proto_siginterrupt="unknown"
 
41083
  tst_compi_siginterrupt="unknown"
 
41084
  tst_allow_siginterrupt="unknown"
 
41085
  #
 
41086
  { echo "$as_me:$LINENO: checking if siginterrupt can be linked" >&5
 
41087
echo $ECHO_N "checking if siginterrupt can be linked... $ECHO_C" >&6; }
 
41088
  cat >conftest.$ac_ext <<_ACEOF
 
41089
 
 
41090
    /* confdefs.h.  */
 
41091
_ACEOF
 
41092
cat confdefs.h >>conftest.$ac_ext
 
41093
cat >>conftest.$ac_ext <<_ACEOF
 
41094
/* end confdefs.h.  */
 
41095
 
 
41096
#define siginterrupt innocuous_siginterrupt
 
41097
#ifdef __STDC__
 
41098
# include <limits.h>
 
41099
#else
 
41100
# include <assert.h>
 
41101
#endif
 
41102
#undef siginterrupt
 
41103
#ifdef __cplusplus
 
41104
extern "C"
 
41105
#endif
 
41106
char siginterrupt ();
 
41107
#if defined __stub_siginterrupt || defined __stub___siginterrupt
 
41108
choke me
 
41109
#endif
 
41110
 
 
41111
int main (void)
 
41112
{
 
41113
return siginterrupt ();
 
41114
 ;
 
41115
 return 0;
 
41116
}
 
41117
 
 
41118
_ACEOF
 
41119
rm -f conftest.$ac_objext conftest$ac_exeext
 
41120
if { (ac_try="$ac_link"
 
41121
case "(($ac_try" in
 
41122
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41123
  *) ac_try_echo=$ac_try;;
 
41124
esac
 
41125
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41126
  (eval "$ac_link") 2>conftest.er1
 
41127
  ac_status=$?
 
41128
  grep -v '^ *+' conftest.er1 >conftest.err
 
41129
  rm -f conftest.er1
 
41130
  cat conftest.err >&5
 
41131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41132
  (exit $ac_status); } && {
 
41133
         test -z "$ac_c_werror_flag" ||
 
41134
         test ! -s conftest.err
 
41135
       } && test -s conftest$ac_exeext &&
 
41136
       $as_test_x conftest$ac_exeext; then
 
41137
 
 
41138
    { echo "$as_me:$LINENO: result: yes" >&5
 
41139
echo "${ECHO_T}yes" >&6; }
 
41140
    tst_links_siginterrupt="yes"
 
41141
 
 
41142
else
 
41143
  echo "$as_me: failed program was:" >&5
 
41144
sed 's/^/| /' conftest.$ac_ext >&5
 
41145
 
 
41146
 
 
41147
    { echo "$as_me:$LINENO: result: no" >&5
 
41148
echo "${ECHO_T}no" >&6; }
 
41149
    tst_links_siginterrupt="no"
 
41150
 
 
41151
fi
 
41152
 
 
41153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
41154
      conftest$ac_exeext conftest.$ac_ext
 
41155
  #
 
41156
  if test "$tst_links_siginterrupt" = "yes"; then
 
41157
    { echo "$as_me:$LINENO: checking if siginterrupt is prototyped" >&5
 
41158
echo $ECHO_N "checking if siginterrupt is prototyped... $ECHO_C" >&6; }
 
41159
    cat >conftest.$ac_ext <<_ACEOF
 
41160
/* confdefs.h.  */
 
41161
_ACEOF
 
41162
cat confdefs.h >>conftest.$ac_ext
 
41163
cat >>conftest.$ac_ext <<_ACEOF
 
41164
/* end confdefs.h.  */
 
41165
 
 
41166
      $curl_includes_signal
 
41167
 
 
41168
_ACEOF
 
41169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41170
  $EGREP "siginterrupt" >/dev/null 2>&1; then
 
41171
 
 
41172
      { echo "$as_me:$LINENO: result: yes" >&5
 
41173
echo "${ECHO_T}yes" >&6; }
 
41174
      tst_proto_siginterrupt="yes"
 
41175
 
 
41176
else
 
41177
 
 
41178
      { echo "$as_me:$LINENO: result: no" >&5
 
41179
echo "${ECHO_T}no" >&6; }
 
41180
      tst_proto_siginterrupt="no"
 
41181
 
 
41182
fi
 
41183
rm -f conftest*
 
41184
 
 
41185
  fi
 
41186
  #
 
41187
  if test "$tst_proto_siginterrupt" = "yes"; then
 
41188
    { echo "$as_me:$LINENO: checking if siginterrupt is compilable" >&5
 
41189
echo $ECHO_N "checking if siginterrupt is compilable... $ECHO_C" >&6; }
 
41190
    cat >conftest.$ac_ext <<_ACEOF
 
41191
 
 
41192
      /* confdefs.h.  */
 
41193
_ACEOF
 
41194
cat confdefs.h >>conftest.$ac_ext
 
41195
cat >>conftest.$ac_ext <<_ACEOF
 
41196
/* end confdefs.h.  */
 
41197
 
 
41198
        $curl_includes_signal
 
41199
 
 
41200
int main (void)
 
41201
{
 
41202
 
 
41203
        if(0 != siginterrupt(0, 0))
 
41204
          return 1;
 
41205
 
 
41206
 ;
 
41207
 return 0;
 
41208
}
 
41209
 
 
41210
_ACEOF
 
41211
rm -f conftest.$ac_objext
 
41212
if { (ac_try="$ac_compile"
 
41213
case "(($ac_try" in
 
41214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41215
  *) ac_try_echo=$ac_try;;
 
41216
esac
 
41217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41218
  (eval "$ac_compile") 2>conftest.er1
 
41219
  ac_status=$?
 
41220
  grep -v '^ *+' conftest.er1 >conftest.err
 
41221
  rm -f conftest.er1
 
41222
  cat conftest.err >&5
 
41223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41224
  (exit $ac_status); } && {
 
41225
         test -z "$ac_c_werror_flag" ||
 
41226
         test ! -s conftest.err
 
41227
       } && test -s conftest.$ac_objext; then
 
41228
 
 
41229
      { echo "$as_me:$LINENO: result: yes" >&5
 
41230
echo "${ECHO_T}yes" >&6; }
 
41231
      tst_compi_siginterrupt="yes"
 
41232
 
 
41233
else
 
41234
  echo "$as_me: failed program was:" >&5
 
41235
sed 's/^/| /' conftest.$ac_ext >&5
 
41236
 
 
41237
 
 
41238
      { echo "$as_me:$LINENO: result: no" >&5
 
41239
echo "${ECHO_T}no" >&6; }
 
41240
      tst_compi_siginterrupt="no"
 
41241
 
 
41242
fi
 
41243
 
 
41244
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41245
  fi
 
41246
  #
 
41247
  if test "$tst_compi_siginterrupt" = "yes"; then
 
41248
    { echo "$as_me:$LINENO: checking if siginterrupt usage allowed" >&5
 
41249
echo $ECHO_N "checking if siginterrupt usage allowed... $ECHO_C" >&6; }
 
41250
    if test "x$curl_disallow_siginterrupt" != "xyes"; then
 
41251
      { echo "$as_me:$LINENO: result: yes" >&5
 
41252
echo "${ECHO_T}yes" >&6; }
 
41253
      tst_allow_siginterrupt="yes"
 
41254
    else
 
41255
      { echo "$as_me:$LINENO: result: no" >&5
 
41256
echo "${ECHO_T}no" >&6; }
 
41257
      tst_allow_siginterrupt="no"
 
41258
    fi
 
41259
  fi
 
41260
  #
 
41261
  { echo "$as_me:$LINENO: checking if siginterrupt might be used" >&5
 
41262
echo $ECHO_N "checking if siginterrupt might be used... $ECHO_C" >&6; }
 
41263
  if test "$tst_links_siginterrupt" = "yes" &&
 
41264
     test "$tst_proto_siginterrupt" = "yes" &&
 
41265
     test "$tst_compi_siginterrupt" = "yes" &&
 
41266
     test "$tst_allow_siginterrupt" = "yes"; then
 
41267
    { echo "$as_me:$LINENO: result: yes" >&5
 
41268
echo "${ECHO_T}yes" >&6; }
 
41269
 
 
41270
cat >>confdefs.h <<_ACEOF
 
41271
#define HAVE_SIGINTERRUPT 1
 
41272
_ACEOF
 
41273
 
 
41274
    ac_cv_func_siginterrupt="yes"
 
41275
  else
 
41276
    { echo "$as_me:$LINENO: result: no" >&5
 
41277
echo "${ECHO_T}no" >&6; }
 
41278
    ac_cv_func_siginterrupt="no"
 
41279
  fi
 
41280
 
 
41281
 
 
41282
    #
 
41283
  tst_links_signal="unknown"
 
41284
  tst_proto_signal="unknown"
 
41285
  tst_compi_signal="unknown"
 
41286
  tst_allow_signal="unknown"
 
41287
  #
 
41288
  { echo "$as_me:$LINENO: checking if signal can be linked" >&5
 
41289
echo $ECHO_N "checking if signal can be linked... $ECHO_C" >&6; }
 
41290
  cat >conftest.$ac_ext <<_ACEOF
 
41291
 
 
41292
    /* confdefs.h.  */
 
41293
_ACEOF
 
41294
cat confdefs.h >>conftest.$ac_ext
 
41295
cat >>conftest.$ac_ext <<_ACEOF
 
41296
/* end confdefs.h.  */
 
41297
 
 
41298
#define signal innocuous_signal
 
41299
#ifdef __STDC__
 
41300
# include <limits.h>
 
41301
#else
 
41302
# include <assert.h>
 
41303
#endif
 
41304
#undef signal
 
41305
#ifdef __cplusplus
 
41306
extern "C"
 
41307
#endif
 
41308
char signal ();
 
41309
#if defined __stub_signal || defined __stub___signal
 
41310
choke me
 
41311
#endif
 
41312
 
 
41313
int main (void)
 
41314
{
 
41315
return signal ();
 
41316
 ;
 
41317
 return 0;
 
41318
}
 
41319
 
 
41320
_ACEOF
 
41321
rm -f conftest.$ac_objext conftest$ac_exeext
 
41322
if { (ac_try="$ac_link"
 
41323
case "(($ac_try" in
 
41324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41325
  *) ac_try_echo=$ac_try;;
 
41326
esac
 
41327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41328
  (eval "$ac_link") 2>conftest.er1
 
41329
  ac_status=$?
 
41330
  grep -v '^ *+' conftest.er1 >conftest.err
 
41331
  rm -f conftest.er1
 
41332
  cat conftest.err >&5
 
41333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41334
  (exit $ac_status); } && {
 
41335
         test -z "$ac_c_werror_flag" ||
 
41336
         test ! -s conftest.err
 
41337
       } && test -s conftest$ac_exeext &&
 
41338
       $as_test_x conftest$ac_exeext; then
 
41339
 
 
41340
    { echo "$as_me:$LINENO: result: yes" >&5
 
41341
echo "${ECHO_T}yes" >&6; }
 
41342
    tst_links_signal="yes"
 
41343
 
 
41344
else
 
41345
  echo "$as_me: failed program was:" >&5
 
41346
sed 's/^/| /' conftest.$ac_ext >&5
 
41347
 
 
41348
 
 
41349
    { echo "$as_me:$LINENO: result: no" >&5
 
41350
echo "${ECHO_T}no" >&6; }
 
41351
    tst_links_signal="no"
 
41352
 
 
41353
fi
 
41354
 
 
41355
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
41356
      conftest$ac_exeext conftest.$ac_ext
 
41357
  #
 
41358
  if test "$tst_links_signal" = "yes"; then
 
41359
    { echo "$as_me:$LINENO: checking if signal is prototyped" >&5
 
41360
echo $ECHO_N "checking if signal is prototyped... $ECHO_C" >&6; }
 
41361
    cat >conftest.$ac_ext <<_ACEOF
 
41362
/* confdefs.h.  */
 
41363
_ACEOF
 
41364
cat confdefs.h >>conftest.$ac_ext
 
41365
cat >>conftest.$ac_ext <<_ACEOF
 
41366
/* end confdefs.h.  */
 
41367
 
 
41368
      $curl_includes_signal
 
41369
 
 
41370
_ACEOF
 
41371
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41372
  $EGREP "signal" >/dev/null 2>&1; then
 
41373
 
 
41374
      { echo "$as_me:$LINENO: result: yes" >&5
 
41375
echo "${ECHO_T}yes" >&6; }
 
41376
      tst_proto_signal="yes"
 
41377
 
 
41378
else
 
41379
 
 
41380
      { echo "$as_me:$LINENO: result: no" >&5
 
41381
echo "${ECHO_T}no" >&6; }
 
41382
      tst_proto_signal="no"
 
41383
 
 
41384
fi
 
41385
rm -f conftest*
 
41386
 
 
41387
  fi
 
41388
  #
 
41389
  if test "$tst_proto_signal" = "yes"; then
 
41390
    { echo "$as_me:$LINENO: checking if signal is compilable" >&5
 
41391
echo $ECHO_N "checking if signal is compilable... $ECHO_C" >&6; }
 
41392
    cat >conftest.$ac_ext <<_ACEOF
 
41393
 
 
41394
      /* confdefs.h.  */
 
41395
_ACEOF
 
41396
cat confdefs.h >>conftest.$ac_ext
 
41397
cat >>conftest.$ac_ext <<_ACEOF
 
41398
/* end confdefs.h.  */
 
41399
 
 
41400
        $curl_includes_signal
 
41401
 
 
41402
int main (void)
 
41403
{
 
41404
 
 
41405
        if(0 != signal(0, 0))
 
41406
          return 1;
 
41407
 
 
41408
 ;
 
41409
 return 0;
 
41410
}
 
41411
 
 
41412
_ACEOF
 
41413
rm -f conftest.$ac_objext
 
41414
if { (ac_try="$ac_compile"
 
41415
case "(($ac_try" in
 
41416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41417
  *) ac_try_echo=$ac_try;;
 
41418
esac
 
41419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41420
  (eval "$ac_compile") 2>conftest.er1
 
41421
  ac_status=$?
 
41422
  grep -v '^ *+' conftest.er1 >conftest.err
 
41423
  rm -f conftest.er1
 
41424
  cat conftest.err >&5
 
41425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41426
  (exit $ac_status); } && {
 
41427
         test -z "$ac_c_werror_flag" ||
 
41428
         test ! -s conftest.err
 
41429
       } && test -s conftest.$ac_objext; then
 
41430
 
 
41431
      { echo "$as_me:$LINENO: result: yes" >&5
 
41432
echo "${ECHO_T}yes" >&6; }
 
41433
      tst_compi_signal="yes"
 
41434
 
 
41435
else
 
41436
  echo "$as_me: failed program was:" >&5
 
41437
sed 's/^/| /' conftest.$ac_ext >&5
 
41438
 
 
41439
 
 
41440
      { echo "$as_me:$LINENO: result: no" >&5
 
41441
echo "${ECHO_T}no" >&6; }
 
41442
      tst_compi_signal="no"
 
41443
 
 
41444
fi
 
41445
 
 
41446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41447
  fi
 
41448
  #
 
41449
  if test "$tst_compi_signal" = "yes"; then
 
41450
    { echo "$as_me:$LINENO: checking if signal usage allowed" >&5
 
41451
echo $ECHO_N "checking if signal usage allowed... $ECHO_C" >&6; }
 
41452
    if test "x$curl_disallow_signal" != "xyes"; then
 
41453
      { echo "$as_me:$LINENO: result: yes" >&5
 
41454
echo "${ECHO_T}yes" >&6; }
 
41455
      tst_allow_signal="yes"
 
41456
    else
 
41457
      { echo "$as_me:$LINENO: result: no" >&5
 
41458
echo "${ECHO_T}no" >&6; }
 
41459
      tst_allow_signal="no"
 
41460
    fi
 
41461
  fi
 
41462
  #
 
41463
  { echo "$as_me:$LINENO: checking if signal might be used" >&5
 
41464
echo $ECHO_N "checking if signal might be used... $ECHO_C" >&6; }
 
41465
  if test "$tst_links_signal" = "yes" &&
 
41466
     test "$tst_proto_signal" = "yes" &&
 
41467
     test "$tst_compi_signal" = "yes" &&
 
41468
     test "$tst_allow_signal" = "yes"; then
 
41469
    { echo "$as_me:$LINENO: result: yes" >&5
 
41470
echo "${ECHO_T}yes" >&6; }
 
41471
 
 
41472
cat >>confdefs.h <<_ACEOF
 
41473
#define HAVE_SIGNAL 1
 
41474
_ACEOF
 
41475
 
 
41476
    ac_cv_func_signal="yes"
 
41477
  else
 
41478
    { echo "$as_me:$LINENO: result: no" >&5
 
41479
echo "${ECHO_T}no" >&6; }
 
41480
    ac_cv_func_signal="no"
 
41481
  fi
 
41482
 
 
41483
 
 
41484
curl_includes_setjmp="\
 
41485
/* includes start */
 
41486
#ifdef HAVE_SYS_TYPES_H
 
41487
#  include <sys/types.h>
 
41488
#endif
 
41489
#ifdef HAVE_SETJMP_H
 
41490
#  include <setjmp.h>
 
41491
#endif
 
41492
/* includes end */"
 
41493
 
 
41494
 
 
41495
for ac_header in sys/types.h setjmp.h
 
41496
do
 
41497
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
41498
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
41499
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
41500
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
41501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
41502
else
 
41503
  cat >conftest.$ac_ext <<_ACEOF
 
41504
/* confdefs.h.  */
 
41505
_ACEOF
 
41506
cat confdefs.h >>conftest.$ac_ext
 
41507
cat >>conftest.$ac_ext <<_ACEOF
 
41508
/* end confdefs.h.  */
 
41509
$curl_includes_setjmp
 
41510
 
 
41511
#include <$ac_header>
 
41512
_ACEOF
 
41513
rm -f conftest.$ac_objext
 
41514
if { (ac_try="$ac_compile"
 
41515
case "(($ac_try" in
 
41516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41517
  *) ac_try_echo=$ac_try;;
 
41518
esac
 
41519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41520
  (eval "$ac_compile") 2>conftest.er1
 
41521
  ac_status=$?
 
41522
  grep -v '^ *+' conftest.er1 >conftest.err
 
41523
  rm -f conftest.er1
 
41524
  cat conftest.err >&5
 
41525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41526
  (exit $ac_status); } && {
 
41527
         test -z "$ac_c_werror_flag" ||
 
41528
         test ! -s conftest.err
 
41529
       } && test -s conftest.$ac_objext; then
 
41530
  eval "$as_ac_Header=yes"
 
41531
else
 
41532
  echo "$as_me: failed program was:" >&5
 
41533
sed 's/^/| /' conftest.$ac_ext >&5
 
41534
 
 
41535
        eval "$as_ac_Header=no"
 
41536
fi
 
41537
 
 
41538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41539
fi
 
41540
ac_res=`eval echo '${'$as_ac_Header'}'`
 
41541
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
41542
echo "${ECHO_T}$ac_res" >&6; }
 
41543
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
41544
  cat >>confdefs.h <<_ACEOF
 
41545
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
41546
_ACEOF
 
41547
 
 
41548
fi
 
41549
 
 
41550
done
 
41551
 
 
41552
 
 
41553
 
 
41554
    #
 
41555
  tst_links_sigsetjmp="unknown"
 
41556
  tst_macro_sigsetjmp="unknown"
 
41557
  tst_proto_sigsetjmp="unknown"
 
41558
  tst_compi_sigsetjmp="unknown"
 
41559
  tst_allow_sigsetjmp="unknown"
 
41560
  #
 
41561
  { echo "$as_me:$LINENO: checking if sigsetjmp can be linked" >&5
 
41562
echo $ECHO_N "checking if sigsetjmp can be linked... $ECHO_C" >&6; }
 
41563
  cat >conftest.$ac_ext <<_ACEOF
 
41564
 
 
41565
    /* confdefs.h.  */
 
41566
_ACEOF
 
41567
cat confdefs.h >>conftest.$ac_ext
 
41568
cat >>conftest.$ac_ext <<_ACEOF
 
41569
/* end confdefs.h.  */
 
41570
 
 
41571
#define sigsetjmp innocuous_sigsetjmp
 
41572
#ifdef __STDC__
 
41573
# include <limits.h>
 
41574
#else
 
41575
# include <assert.h>
 
41576
#endif
 
41577
#undef sigsetjmp
 
41578
#ifdef __cplusplus
 
41579
extern "C"
 
41580
#endif
 
41581
char sigsetjmp ();
 
41582
#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
 
41583
choke me
 
41584
#endif
 
41585
 
 
41586
int main (void)
 
41587
{
 
41588
return sigsetjmp ();
 
41589
 ;
 
41590
 return 0;
 
41591
}
 
41592
 
 
41593
_ACEOF
 
41594
rm -f conftest.$ac_objext conftest$ac_exeext
 
41595
if { (ac_try="$ac_link"
 
41596
case "(($ac_try" in
 
41597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41598
  *) ac_try_echo=$ac_try;;
 
41599
esac
 
41600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41601
  (eval "$ac_link") 2>conftest.er1
 
41602
  ac_status=$?
 
41603
  grep -v '^ *+' conftest.er1 >conftest.err
 
41604
  rm -f conftest.er1
 
41605
  cat conftest.err >&5
 
41606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41607
  (exit $ac_status); } && {
 
41608
         test -z "$ac_c_werror_flag" ||
 
41609
         test ! -s conftest.err
 
41610
       } && test -s conftest$ac_exeext &&
 
41611
       $as_test_x conftest$ac_exeext; then
 
41612
 
 
41613
    { echo "$as_me:$LINENO: result: yes" >&5
 
41614
echo "${ECHO_T}yes" >&6; }
 
41615
    tst_links_sigsetjmp="yes"
 
41616
 
 
41617
else
 
41618
  echo "$as_me: failed program was:" >&5
 
41619
sed 's/^/| /' conftest.$ac_ext >&5
 
41620
 
 
41621
 
 
41622
    { echo "$as_me:$LINENO: result: no" >&5
 
41623
echo "${ECHO_T}no" >&6; }
 
41624
    tst_links_sigsetjmp="no"
 
41625
 
 
41626
fi
 
41627
 
 
41628
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
41629
      conftest$ac_exeext conftest.$ac_ext
 
41630
  #
 
41631
  if test "$tst_links_sigsetjmp" = "no"; then
 
41632
    { echo "$as_me:$LINENO: checking if sigsetjmp seems a macro" >&5
 
41633
echo $ECHO_N "checking if sigsetjmp seems a macro... $ECHO_C" >&6; }
 
41634
    cat >conftest.$ac_ext <<_ACEOF
 
41635
 
 
41636
      /* confdefs.h.  */
 
41637
_ACEOF
 
41638
cat confdefs.h >>conftest.$ac_ext
 
41639
cat >>conftest.$ac_ext <<_ACEOF
 
41640
/* end confdefs.h.  */
 
41641
 
 
41642
        $curl_includes_setjmp
 
41643
 
 
41644
int main (void)
 
41645
{
 
41646
 
 
41647
        sigjmp_buf env;
 
41648
        if(0 != sigsetjmp(env, 0))
 
41649
          return 1;
 
41650
 
 
41651
 ;
 
41652
 return 0;
 
41653
}
 
41654
 
 
41655
_ACEOF
 
41656
rm -f conftest.$ac_objext conftest$ac_exeext
 
41657
if { (ac_try="$ac_link"
 
41658
case "(($ac_try" in
 
41659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41660
  *) ac_try_echo=$ac_try;;
 
41661
esac
 
41662
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41663
  (eval "$ac_link") 2>conftest.er1
 
41664
  ac_status=$?
 
41665
  grep -v '^ *+' conftest.er1 >conftest.err
 
41666
  rm -f conftest.er1
 
41667
  cat conftest.err >&5
 
41668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41669
  (exit $ac_status); } && {
 
41670
         test -z "$ac_c_werror_flag" ||
 
41671
         test ! -s conftest.err
 
41672
       } && test -s conftest$ac_exeext &&
 
41673
       $as_test_x conftest$ac_exeext; then
 
41674
 
 
41675
      { echo "$as_me:$LINENO: result: yes" >&5
 
41676
echo "${ECHO_T}yes" >&6; }
 
41677
      tst_macro_sigsetjmp="yes"
 
41678
 
 
41679
else
 
41680
  echo "$as_me: failed program was:" >&5
 
41681
sed 's/^/| /' conftest.$ac_ext >&5
 
41682
 
 
41683
 
 
41684
      { echo "$as_me:$LINENO: result: no" >&5
 
41685
echo "${ECHO_T}no" >&6; }
 
41686
      tst_macro_sigsetjmp="no"
 
41687
 
 
41688
fi
 
41689
 
 
41690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
41691
      conftest$ac_exeext conftest.$ac_ext
 
41692
  fi
 
41693
  #
 
41694
  if test "$tst_links_sigsetjmp" = "yes"; then
 
41695
    { echo "$as_me:$LINENO: checking if sigsetjmp is prototyped" >&5
 
41696
echo $ECHO_N "checking if sigsetjmp is prototyped... $ECHO_C" >&6; }
 
41697
    cat >conftest.$ac_ext <<_ACEOF
 
41698
/* confdefs.h.  */
 
41699
_ACEOF
 
41700
cat confdefs.h >>conftest.$ac_ext
 
41701
cat >>conftest.$ac_ext <<_ACEOF
 
41702
/* end confdefs.h.  */
 
41703
 
 
41704
      $curl_includes_setjmp
 
41705
 
 
41706
_ACEOF
 
41707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41708
  $EGREP "sigsetjmp" >/dev/null 2>&1; then
 
41709
 
 
41710
      { echo "$as_me:$LINENO: result: yes" >&5
 
41711
echo "${ECHO_T}yes" >&6; }
 
41712
      tst_proto_sigsetjmp="yes"
 
41713
 
 
41714
else
 
41715
 
 
41716
      { echo "$as_me:$LINENO: result: no" >&5
 
41717
echo "${ECHO_T}no" >&6; }
 
41718
      tst_proto_sigsetjmp="no"
 
41719
 
 
41720
fi
 
41721
rm -f conftest*
 
41722
 
 
41723
  fi
 
41724
  #
 
41725
  if test "$tst_proto_sigsetjmp" = "yes" ||
 
41726
     test "$tst_macro_sigsetjmp" = "yes"; then
 
41727
    { echo "$as_me:$LINENO: checking if sigsetjmp is compilable" >&5
 
41728
echo $ECHO_N "checking if sigsetjmp is compilable... $ECHO_C" >&6; }
 
41729
    cat >conftest.$ac_ext <<_ACEOF
 
41730
 
 
41731
      /* confdefs.h.  */
 
41732
_ACEOF
 
41733
cat confdefs.h >>conftest.$ac_ext
 
41734
cat >>conftest.$ac_ext <<_ACEOF
 
41735
/* end confdefs.h.  */
 
41736
 
 
41737
        $curl_includes_setjmp
 
41738
 
 
41739
int main (void)
 
41740
{
 
41741
 
 
41742
        sigjmp_buf env;
 
41743
        if(0 != sigsetjmp(env, 0))
 
41744
          return 1;
 
41745
 
 
41746
 ;
 
41747
 return 0;
 
41748
}
 
41749
 
 
41750
_ACEOF
 
41751
rm -f conftest.$ac_objext
 
41752
if { (ac_try="$ac_compile"
 
41753
case "(($ac_try" in
 
41754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41755
  *) ac_try_echo=$ac_try;;
 
41756
esac
 
41757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41758
  (eval "$ac_compile") 2>conftest.er1
 
41759
  ac_status=$?
 
41760
  grep -v '^ *+' conftest.er1 >conftest.err
 
41761
  rm -f conftest.er1
 
41762
  cat conftest.err >&5
 
41763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41764
  (exit $ac_status); } && {
 
41765
         test -z "$ac_c_werror_flag" ||
 
41766
         test ! -s conftest.err
 
41767
       } && test -s conftest.$ac_objext; then
 
41768
 
 
41769
      { echo "$as_me:$LINENO: result: yes" >&5
 
41770
echo "${ECHO_T}yes" >&6; }
 
41771
      tst_compi_sigsetjmp="yes"
 
41772
 
 
41773
else
 
41774
  echo "$as_me: failed program was:" >&5
 
41775
sed 's/^/| /' conftest.$ac_ext >&5
 
41776
 
 
41777
 
 
41778
      { echo "$as_me:$LINENO: result: no" >&5
 
41779
echo "${ECHO_T}no" >&6; }
 
41780
      tst_compi_sigsetjmp="no"
 
41781
 
 
41782
fi
 
41783
 
 
41784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41785
  fi
 
41786
  #
 
41787
  if test "$tst_compi_sigsetjmp" = "yes"; then
 
41788
    { echo "$as_me:$LINENO: checking if sigsetjmp usage allowed" >&5
 
41789
echo $ECHO_N "checking if sigsetjmp usage allowed... $ECHO_C" >&6; }
 
41790
    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
 
41791
      { echo "$as_me:$LINENO: result: yes" >&5
 
41792
echo "${ECHO_T}yes" >&6; }
 
41793
      tst_allow_sigsetjmp="yes"
 
41794
    else
 
41795
      { echo "$as_me:$LINENO: result: no" >&5
 
41796
echo "${ECHO_T}no" >&6; }
 
41797
      tst_allow_sigsetjmp="no"
 
41798
    fi
 
41799
  fi
 
41800
  #
 
41801
  { echo "$as_me:$LINENO: checking if sigsetjmp might be used" >&5
 
41802
echo $ECHO_N "checking if sigsetjmp might be used... $ECHO_C" >&6; }
 
41803
  if (test "$tst_proto_sigsetjmp" = "yes" ||
 
41804
      test "$tst_macro_sigsetjmp" = "yes") &&
 
41805
     test "$tst_compi_sigsetjmp" = "yes" &&
 
41806
     test "$tst_allow_sigsetjmp" = "yes"; then
 
41807
    { echo "$as_me:$LINENO: result: yes" >&5
 
41808
echo "${ECHO_T}yes" >&6; }
 
41809
 
 
41810
cat >>confdefs.h <<_ACEOF
 
41811
#define HAVE_SIGSETJMP 1
 
41812
_ACEOF
 
41813
 
 
41814
    ac_cv_func_sigsetjmp="yes"
 
41815
  else
 
41816
    { echo "$as_me:$LINENO: result: no" >&5
 
41817
echo "${ECHO_T}no" >&6; }
 
41818
    ac_cv_func_sigsetjmp="no"
 
41819
  fi
 
41820
 
 
41821
 
 
41822
    #
 
41823
  tst_links_strcasecmp="unknown"
 
41824
  tst_proto_strcasecmp="unknown"
 
41825
  tst_compi_strcasecmp="unknown"
 
41826
  tst_allow_strcasecmp="unknown"
 
41827
  #
 
41828
  { echo "$as_me:$LINENO: checking if strcasecmp can be linked" >&5
 
41829
echo $ECHO_N "checking if strcasecmp can be linked... $ECHO_C" >&6; }
 
41830
  cat >conftest.$ac_ext <<_ACEOF
 
41831
 
 
41832
    /* confdefs.h.  */
 
41833
_ACEOF
 
41834
cat confdefs.h >>conftest.$ac_ext
 
41835
cat >>conftest.$ac_ext <<_ACEOF
 
41836
/* end confdefs.h.  */
 
41837
 
 
41838
#define strcasecmp innocuous_strcasecmp
 
41839
#ifdef __STDC__
 
41840
# include <limits.h>
 
41841
#else
 
41842
# include <assert.h>
 
41843
#endif
 
41844
#undef strcasecmp
 
41845
#ifdef __cplusplus
 
41846
extern "C"
 
41847
#endif
 
41848
char strcasecmp ();
 
41849
#if defined __stub_strcasecmp || defined __stub___strcasecmp
 
41850
choke me
 
41851
#endif
 
41852
 
 
41853
int main (void)
 
41854
{
 
41855
return strcasecmp ();
 
41856
 ;
 
41857
 return 0;
 
41858
}
 
41859
 
 
41860
_ACEOF
 
41861
rm -f conftest.$ac_objext conftest$ac_exeext
 
41862
if { (ac_try="$ac_link"
 
41863
case "(($ac_try" in
 
41864
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41865
  *) ac_try_echo=$ac_try;;
 
41866
esac
 
41867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41868
  (eval "$ac_link") 2>conftest.er1
 
41869
  ac_status=$?
 
41870
  grep -v '^ *+' conftest.er1 >conftest.err
 
41871
  rm -f conftest.er1
 
41872
  cat conftest.err >&5
 
41873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41874
  (exit $ac_status); } && {
 
41875
         test -z "$ac_c_werror_flag" ||
 
41876
         test ! -s conftest.err
 
41877
       } && test -s conftest$ac_exeext &&
 
41878
       $as_test_x conftest$ac_exeext; then
 
41879
 
 
41880
    { echo "$as_me:$LINENO: result: yes" >&5
 
41881
echo "${ECHO_T}yes" >&6; }
 
41882
    tst_links_strcasecmp="yes"
 
41883
 
 
41884
else
 
41885
  echo "$as_me: failed program was:" >&5
 
41886
sed 's/^/| /' conftest.$ac_ext >&5
 
41887
 
 
41888
 
 
41889
    { echo "$as_me:$LINENO: result: no" >&5
 
41890
echo "${ECHO_T}no" >&6; }
 
41891
    tst_links_strcasecmp="no"
 
41892
 
 
41893
fi
 
41894
 
 
41895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
41896
      conftest$ac_exeext conftest.$ac_ext
 
41897
  #
 
41898
  if test "$tst_links_strcasecmp" = "yes"; then
 
41899
    { echo "$as_me:$LINENO: checking if strcasecmp is prototyped" >&5
 
41900
echo $ECHO_N "checking if strcasecmp is prototyped... $ECHO_C" >&6; }
 
41901
    cat >conftest.$ac_ext <<_ACEOF
 
41902
/* confdefs.h.  */
 
41903
_ACEOF
 
41904
cat confdefs.h >>conftest.$ac_ext
 
41905
cat >>conftest.$ac_ext <<_ACEOF
 
41906
/* end confdefs.h.  */
 
41907
 
 
41908
      $curl_includes_string
 
41909
 
 
41910
_ACEOF
 
41911
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
41912
  $EGREP "strcasecmp" >/dev/null 2>&1; then
 
41913
 
 
41914
      { echo "$as_me:$LINENO: result: yes" >&5
 
41915
echo "${ECHO_T}yes" >&6; }
 
41916
      tst_proto_strcasecmp="yes"
 
41917
 
 
41918
else
 
41919
 
 
41920
      { echo "$as_me:$LINENO: result: no" >&5
 
41921
echo "${ECHO_T}no" >&6; }
 
41922
      tst_proto_strcasecmp="no"
 
41923
 
 
41924
fi
 
41925
rm -f conftest*
 
41926
 
 
41927
  fi
 
41928
  #
 
41929
  if test "$tst_proto_strcasecmp" = "yes"; then
 
41930
    { echo "$as_me:$LINENO: checking if strcasecmp is compilable" >&5
 
41931
echo $ECHO_N "checking if strcasecmp is compilable... $ECHO_C" >&6; }
 
41932
    cat >conftest.$ac_ext <<_ACEOF
 
41933
 
 
41934
      /* confdefs.h.  */
 
41935
_ACEOF
 
41936
cat confdefs.h >>conftest.$ac_ext
 
41937
cat >>conftest.$ac_ext <<_ACEOF
 
41938
/* end confdefs.h.  */
 
41939
 
 
41940
        $curl_includes_string
 
41941
 
 
41942
int main (void)
 
41943
{
 
41944
 
 
41945
        if(0 != strcasecmp(0, 0))
 
41946
          return 1;
 
41947
 
 
41948
 ;
 
41949
 return 0;
 
41950
}
 
41951
 
 
41952
_ACEOF
 
41953
rm -f conftest.$ac_objext
 
41954
if { (ac_try="$ac_compile"
 
41955
case "(($ac_try" in
 
41956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
41957
  *) ac_try_echo=$ac_try;;
 
41958
esac
 
41959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
41960
  (eval "$ac_compile") 2>conftest.er1
 
41961
  ac_status=$?
 
41962
  grep -v '^ *+' conftest.er1 >conftest.err
 
41963
  rm -f conftest.er1
 
41964
  cat conftest.err >&5
 
41965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
41966
  (exit $ac_status); } && {
 
41967
         test -z "$ac_c_werror_flag" ||
 
41968
         test ! -s conftest.err
 
41969
       } && test -s conftest.$ac_objext; then
 
41970
 
 
41971
      { echo "$as_me:$LINENO: result: yes" >&5
 
41972
echo "${ECHO_T}yes" >&6; }
 
41973
      tst_compi_strcasecmp="yes"
 
41974
 
 
41975
else
 
41976
  echo "$as_me: failed program was:" >&5
 
41977
sed 's/^/| /' conftest.$ac_ext >&5
 
41978
 
 
41979
 
 
41980
      { echo "$as_me:$LINENO: result: no" >&5
 
41981
echo "${ECHO_T}no" >&6; }
 
41982
      tst_compi_strcasecmp="no"
 
41983
 
 
41984
fi
 
41985
 
 
41986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
41987
  fi
 
41988
  #
 
41989
  if test "$tst_compi_strcasecmp" = "yes"; then
 
41990
    { echo "$as_me:$LINENO: checking if strcasecmp usage allowed" >&5
 
41991
echo $ECHO_N "checking if strcasecmp usage allowed... $ECHO_C" >&6; }
 
41992
    if test "x$curl_disallow_strcasecmp" != "xyes"; then
 
41993
      { echo "$as_me:$LINENO: result: yes" >&5
 
41994
echo "${ECHO_T}yes" >&6; }
 
41995
      tst_allow_strcasecmp="yes"
 
41996
    else
 
41997
      { echo "$as_me:$LINENO: result: no" >&5
 
41998
echo "${ECHO_T}no" >&6; }
 
41999
      tst_allow_strcasecmp="no"
 
42000
    fi
 
42001
  fi
 
42002
  #
 
42003
  { echo "$as_me:$LINENO: checking if strcasecmp might be used" >&5
 
42004
echo $ECHO_N "checking if strcasecmp might be used... $ECHO_C" >&6; }
 
42005
  if test "$tst_links_strcasecmp" = "yes" &&
 
42006
     test "$tst_proto_strcasecmp" = "yes" &&
 
42007
     test "$tst_compi_strcasecmp" = "yes" &&
 
42008
     test "$tst_allow_strcasecmp" = "yes"; then
 
42009
    { echo "$as_me:$LINENO: result: yes" >&5
 
42010
echo "${ECHO_T}yes" >&6; }
 
42011
 
 
42012
cat >>confdefs.h <<_ACEOF
 
42013
#define HAVE_STRCASECMP 1
 
42014
_ACEOF
 
42015
 
 
42016
    ac_cv_func_strcasecmp="yes"
 
42017
  else
 
42018
    { echo "$as_me:$LINENO: result: no" >&5
 
42019
echo "${ECHO_T}no" >&6; }
 
42020
    ac_cv_func_strcasecmp="no"
 
42021
  fi
 
42022
 
 
42023
 
 
42024
    #
 
42025
  tst_links_strcasestr="unknown"
 
42026
  tst_proto_strcasestr="unknown"
 
42027
  tst_compi_strcasestr="unknown"
 
42028
  tst_allow_strcasestr="unknown"
 
42029
  #
 
42030
  { echo "$as_me:$LINENO: checking if strcasestr can be linked" >&5
 
42031
echo $ECHO_N "checking if strcasestr can be linked... $ECHO_C" >&6; }
 
42032
  cat >conftest.$ac_ext <<_ACEOF
 
42033
 
 
42034
    /* confdefs.h.  */
 
42035
_ACEOF
 
42036
cat confdefs.h >>conftest.$ac_ext
 
42037
cat >>conftest.$ac_ext <<_ACEOF
 
42038
/* end confdefs.h.  */
 
42039
 
 
42040
#define strcasestr innocuous_strcasestr
 
42041
#ifdef __STDC__
 
42042
# include <limits.h>
 
42043
#else
 
42044
# include <assert.h>
 
42045
#endif
 
42046
#undef strcasestr
 
42047
#ifdef __cplusplus
 
42048
extern "C"
 
42049
#endif
 
42050
char strcasestr ();
 
42051
#if defined __stub_strcasestr || defined __stub___strcasestr
 
42052
choke me
 
42053
#endif
 
42054
 
 
42055
int main (void)
 
42056
{
 
42057
return strcasestr ();
 
42058
 ;
 
42059
 return 0;
 
42060
}
 
42061
 
 
42062
_ACEOF
 
42063
rm -f conftest.$ac_objext conftest$ac_exeext
 
42064
if { (ac_try="$ac_link"
 
42065
case "(($ac_try" in
 
42066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42067
  *) ac_try_echo=$ac_try;;
 
42068
esac
 
42069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42070
  (eval "$ac_link") 2>conftest.er1
 
42071
  ac_status=$?
 
42072
  grep -v '^ *+' conftest.er1 >conftest.err
 
42073
  rm -f conftest.er1
 
42074
  cat conftest.err >&5
 
42075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42076
  (exit $ac_status); } && {
 
42077
         test -z "$ac_c_werror_flag" ||
 
42078
         test ! -s conftest.err
 
42079
       } && test -s conftest$ac_exeext &&
 
42080
       $as_test_x conftest$ac_exeext; then
 
42081
 
 
42082
    { echo "$as_me:$LINENO: result: yes" >&5
 
42083
echo "${ECHO_T}yes" >&6; }
 
42084
    tst_links_strcasestr="yes"
 
42085
 
 
42086
else
 
42087
  echo "$as_me: failed program was:" >&5
 
42088
sed 's/^/| /' conftest.$ac_ext >&5
 
42089
 
 
42090
 
 
42091
    { echo "$as_me:$LINENO: result: no" >&5
 
42092
echo "${ECHO_T}no" >&6; }
 
42093
    tst_links_strcasestr="no"
 
42094
 
 
42095
fi
 
42096
 
 
42097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
42098
      conftest$ac_exeext conftest.$ac_ext
 
42099
  #
 
42100
  if test "$tst_links_strcasestr" = "yes"; then
 
42101
    { echo "$as_me:$LINENO: checking if strcasestr is prototyped" >&5
 
42102
echo $ECHO_N "checking if strcasestr is prototyped... $ECHO_C" >&6; }
 
42103
    cat >conftest.$ac_ext <<_ACEOF
 
42104
/* confdefs.h.  */
 
42105
_ACEOF
 
42106
cat confdefs.h >>conftest.$ac_ext
 
42107
cat >>conftest.$ac_ext <<_ACEOF
 
42108
/* end confdefs.h.  */
 
42109
 
 
42110
      $curl_includes_string
 
42111
 
 
42112
_ACEOF
 
42113
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
42114
  $EGREP "strcasestr" >/dev/null 2>&1; then
 
42115
 
 
42116
      { echo "$as_me:$LINENO: result: yes" >&5
 
42117
echo "${ECHO_T}yes" >&6; }
 
42118
      tst_proto_strcasestr="yes"
 
42119
 
 
42120
else
 
42121
 
 
42122
      { echo "$as_me:$LINENO: result: no" >&5
 
42123
echo "${ECHO_T}no" >&6; }
 
42124
      tst_proto_strcasestr="no"
 
42125
 
 
42126
fi
 
42127
rm -f conftest*
 
42128
 
 
42129
  fi
 
42130
  #
 
42131
  if test "$tst_proto_strcasestr" = "yes"; then
 
42132
    { echo "$as_me:$LINENO: checking if strcasestr is compilable" >&5
 
42133
echo $ECHO_N "checking if strcasestr is compilable... $ECHO_C" >&6; }
 
42134
    cat >conftest.$ac_ext <<_ACEOF
 
42135
 
 
42136
      /* confdefs.h.  */
 
42137
_ACEOF
 
42138
cat confdefs.h >>conftest.$ac_ext
 
42139
cat >>conftest.$ac_ext <<_ACEOF
 
42140
/* end confdefs.h.  */
 
42141
 
 
42142
        $curl_includes_string
 
42143
 
 
42144
int main (void)
 
42145
{
 
42146
 
 
42147
        if(0 != strcasestr(0, 0))
 
42148
          return 1;
 
42149
 
 
42150
 ;
 
42151
 return 0;
 
42152
}
 
42153
 
 
42154
_ACEOF
 
42155
rm -f conftest.$ac_objext
 
42156
if { (ac_try="$ac_compile"
 
42157
case "(($ac_try" in
 
42158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42159
  *) ac_try_echo=$ac_try;;
 
42160
esac
 
42161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42162
  (eval "$ac_compile") 2>conftest.er1
 
42163
  ac_status=$?
 
42164
  grep -v '^ *+' conftest.er1 >conftest.err
 
42165
  rm -f conftest.er1
 
42166
  cat conftest.err >&5
 
42167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42168
  (exit $ac_status); } && {
 
42169
         test -z "$ac_c_werror_flag" ||
 
42170
         test ! -s conftest.err
 
42171
       } && test -s conftest.$ac_objext; then
 
42172
 
 
42173
      { echo "$as_me:$LINENO: result: yes" >&5
 
42174
echo "${ECHO_T}yes" >&6; }
 
42175
      tst_compi_strcasestr="yes"
 
42176
 
 
42177
else
 
42178
  echo "$as_me: failed program was:" >&5
 
42179
sed 's/^/| /' conftest.$ac_ext >&5
 
42180
 
 
42181
 
 
42182
      { echo "$as_me:$LINENO: result: no" >&5
 
42183
echo "${ECHO_T}no" >&6; }
 
42184
      tst_compi_strcasestr="no"
 
42185
 
 
42186
fi
 
42187
 
 
42188
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
42189
  fi
 
42190
  #
 
42191
  if test "$tst_compi_strcasestr" = "yes"; then
 
42192
    { echo "$as_me:$LINENO: checking if strcasestr usage allowed" >&5
 
42193
echo $ECHO_N "checking if strcasestr usage allowed... $ECHO_C" >&6; }
 
42194
    if test "x$curl_disallow_strcasestr" != "xyes"; then
 
42195
      { echo "$as_me:$LINENO: result: yes" >&5
 
42196
echo "${ECHO_T}yes" >&6; }
 
42197
      tst_allow_strcasestr="yes"
 
42198
    else
 
42199
      { echo "$as_me:$LINENO: result: no" >&5
 
42200
echo "${ECHO_T}no" >&6; }
 
42201
      tst_allow_strcasestr="no"
 
42202
    fi
 
42203
  fi
 
42204
  #
 
42205
  { echo "$as_me:$LINENO: checking if strcasestr might be used" >&5
 
42206
echo $ECHO_N "checking if strcasestr might be used... $ECHO_C" >&6; }
 
42207
  if test "$tst_links_strcasestr" = "yes" &&
 
42208
     test "$tst_proto_strcasestr" = "yes" &&
 
42209
     test "$tst_compi_strcasestr" = "yes" &&
 
42210
     test "$tst_allow_strcasestr" = "yes"; then
 
42211
    { echo "$as_me:$LINENO: result: yes" >&5
 
42212
echo "${ECHO_T}yes" >&6; }
 
42213
 
 
42214
cat >>confdefs.h <<_ACEOF
 
42215
#define HAVE_STRCASESTR 1
 
42216
_ACEOF
 
42217
 
 
42218
    ac_cv_func_strcasestr="yes"
 
42219
  else
 
42220
    { echo "$as_me:$LINENO: result: no" >&5
 
42221
echo "${ECHO_T}no" >&6; }
 
42222
    ac_cv_func_strcasestr="no"
 
42223
  fi
 
42224
 
 
42225
 
 
42226
    #
 
42227
  tst_links_strcmpi="unknown"
 
42228
  tst_proto_strcmpi="unknown"
 
42229
  tst_compi_strcmpi="unknown"
 
42230
  tst_allow_strcmpi="unknown"
 
42231
  #
 
42232
  { echo "$as_me:$LINENO: checking if strcmpi can be linked" >&5
 
42233
echo $ECHO_N "checking if strcmpi can be linked... $ECHO_C" >&6; }
 
42234
  cat >conftest.$ac_ext <<_ACEOF
 
42235
 
 
42236
    /* confdefs.h.  */
 
42237
_ACEOF
 
42238
cat confdefs.h >>conftest.$ac_ext
 
42239
cat >>conftest.$ac_ext <<_ACEOF
 
42240
/* end confdefs.h.  */
 
42241
 
 
42242
#define strcmpi innocuous_strcmpi
 
42243
#ifdef __STDC__
 
42244
# include <limits.h>
 
42245
#else
 
42246
# include <assert.h>
 
42247
#endif
 
42248
#undef strcmpi
 
42249
#ifdef __cplusplus
 
42250
extern "C"
 
42251
#endif
 
42252
char strcmpi ();
 
42253
#if defined __stub_strcmpi || defined __stub___strcmpi
 
42254
choke me
 
42255
#endif
 
42256
 
 
42257
int main (void)
 
42258
{
 
42259
return strcmpi ();
 
42260
 ;
 
42261
 return 0;
 
42262
}
 
42263
 
 
42264
_ACEOF
 
42265
rm -f conftest.$ac_objext conftest$ac_exeext
 
42266
if { (ac_try="$ac_link"
 
42267
case "(($ac_try" in
 
42268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42269
  *) ac_try_echo=$ac_try;;
 
42270
esac
 
42271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42272
  (eval "$ac_link") 2>conftest.er1
 
42273
  ac_status=$?
 
42274
  grep -v '^ *+' conftest.er1 >conftest.err
 
42275
  rm -f conftest.er1
 
42276
  cat conftest.err >&5
 
42277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42278
  (exit $ac_status); } && {
 
42279
         test -z "$ac_c_werror_flag" ||
 
42280
         test ! -s conftest.err
 
42281
       } && test -s conftest$ac_exeext &&
 
42282
       $as_test_x conftest$ac_exeext; then
 
42283
 
 
42284
    { echo "$as_me:$LINENO: result: yes" >&5
 
42285
echo "${ECHO_T}yes" >&6; }
 
42286
    tst_links_strcmpi="yes"
 
42287
 
 
42288
else
 
42289
  echo "$as_me: failed program was:" >&5
 
42290
sed 's/^/| /' conftest.$ac_ext >&5
 
42291
 
 
42292
 
 
42293
    { echo "$as_me:$LINENO: result: no" >&5
 
42294
echo "${ECHO_T}no" >&6; }
 
42295
    tst_links_strcmpi="no"
 
42296
 
 
42297
fi
 
42298
 
 
42299
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
42300
      conftest$ac_exeext conftest.$ac_ext
 
42301
  #
 
42302
  if test "$tst_links_strcmpi" = "yes"; then
 
42303
    { echo "$as_me:$LINENO: checking if strcmpi is prototyped" >&5
 
42304
echo $ECHO_N "checking if strcmpi is prototyped... $ECHO_C" >&6; }
 
42305
    cat >conftest.$ac_ext <<_ACEOF
 
42306
/* confdefs.h.  */
 
42307
_ACEOF
 
42308
cat confdefs.h >>conftest.$ac_ext
 
42309
cat >>conftest.$ac_ext <<_ACEOF
 
42310
/* end confdefs.h.  */
 
42311
 
 
42312
      $curl_includes_string
 
42313
 
 
42314
_ACEOF
 
42315
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
42316
  $EGREP "strcmpi" >/dev/null 2>&1; then
 
42317
 
 
42318
      { echo "$as_me:$LINENO: result: yes" >&5
 
42319
echo "${ECHO_T}yes" >&6; }
 
42320
      tst_proto_strcmpi="yes"
 
42321
 
 
42322
else
 
42323
 
 
42324
      { echo "$as_me:$LINENO: result: no" >&5
 
42325
echo "${ECHO_T}no" >&6; }
 
42326
      tst_proto_strcmpi="no"
 
42327
 
 
42328
fi
 
42329
rm -f conftest*
 
42330
 
 
42331
  fi
 
42332
  #
 
42333
  if test "$tst_proto_strcmpi" = "yes"; then
 
42334
    { echo "$as_me:$LINENO: checking if strcmpi is compilable" >&5
 
42335
echo $ECHO_N "checking if strcmpi is compilable... $ECHO_C" >&6; }
 
42336
    cat >conftest.$ac_ext <<_ACEOF
 
42337
 
 
42338
      /* confdefs.h.  */
 
42339
_ACEOF
 
42340
cat confdefs.h >>conftest.$ac_ext
 
42341
cat >>conftest.$ac_ext <<_ACEOF
 
42342
/* end confdefs.h.  */
 
42343
 
 
42344
        $curl_includes_string
 
42345
 
 
42346
int main (void)
 
42347
{
 
42348
 
 
42349
        if(0 != strcmpi(0, 0))
 
42350
          return 1;
 
42351
 
 
42352
 ;
 
42353
 return 0;
 
42354
}
 
42355
 
 
42356
_ACEOF
 
42357
rm -f conftest.$ac_objext
 
42358
if { (ac_try="$ac_compile"
 
42359
case "(($ac_try" in
 
42360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42361
  *) ac_try_echo=$ac_try;;
 
42362
esac
 
42363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42364
  (eval "$ac_compile") 2>conftest.er1
 
42365
  ac_status=$?
 
42366
  grep -v '^ *+' conftest.er1 >conftest.err
 
42367
  rm -f conftest.er1
 
42368
  cat conftest.err >&5
 
42369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42370
  (exit $ac_status); } && {
 
42371
         test -z "$ac_c_werror_flag" ||
 
42372
         test ! -s conftest.err
 
42373
       } && test -s conftest.$ac_objext; then
 
42374
 
 
42375
      { echo "$as_me:$LINENO: result: yes" >&5
 
42376
echo "${ECHO_T}yes" >&6; }
 
42377
      tst_compi_strcmpi="yes"
 
42378
 
 
42379
else
 
42380
  echo "$as_me: failed program was:" >&5
 
42381
sed 's/^/| /' conftest.$ac_ext >&5
 
42382
 
 
42383
 
 
42384
      { echo "$as_me:$LINENO: result: no" >&5
 
42385
echo "${ECHO_T}no" >&6; }
 
42386
      tst_compi_strcmpi="no"
 
42387
 
 
42388
fi
 
42389
 
 
42390
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
42391
  fi
 
42392
  #
 
42393
  if test "$tst_compi_strcmpi" = "yes"; then
 
42394
    { echo "$as_me:$LINENO: checking if strcmpi usage allowed" >&5
 
42395
echo $ECHO_N "checking if strcmpi usage allowed... $ECHO_C" >&6; }
 
42396
    if test "x$curl_disallow_strcmpi" != "xyes"; then
 
42397
      { echo "$as_me:$LINENO: result: yes" >&5
 
42398
echo "${ECHO_T}yes" >&6; }
 
42399
      tst_allow_strcmpi="yes"
 
42400
    else
 
42401
      { echo "$as_me:$LINENO: result: no" >&5
 
42402
echo "${ECHO_T}no" >&6; }
 
42403
      tst_allow_strcmpi="no"
 
42404
    fi
 
42405
  fi
 
42406
  #
 
42407
  { echo "$as_me:$LINENO: checking if strcmpi might be used" >&5
 
42408
echo $ECHO_N "checking if strcmpi might be used... $ECHO_C" >&6; }
 
42409
  if test "$tst_links_strcmpi" = "yes" &&
 
42410
     test "$tst_proto_strcmpi" = "yes" &&
 
42411
     test "$tst_compi_strcmpi" = "yes" &&
 
42412
     test "$tst_allow_strcmpi" = "yes"; then
 
42413
    { echo "$as_me:$LINENO: result: yes" >&5
 
42414
echo "${ECHO_T}yes" >&6; }
 
42415
 
 
42416
cat >>confdefs.h <<_ACEOF
 
42417
#define HAVE_STRCMPI 1
 
42418
_ACEOF
 
42419
 
 
42420
    ac_cv_func_strcmpi="yes"
 
42421
  else
 
42422
    { echo "$as_me:$LINENO: result: no" >&5
 
42423
echo "${ECHO_T}no" >&6; }
 
42424
    ac_cv_func_strcmpi="no"
 
42425
  fi
 
42426
 
 
42427
 
 
42428
    #
 
42429
  tst_links_strdup="unknown"
 
42430
  tst_proto_strdup="unknown"
 
42431
  tst_compi_strdup="unknown"
 
42432
  tst_allow_strdup="unknown"
 
42433
  #
 
42434
  { echo "$as_me:$LINENO: checking if strdup can be linked" >&5
 
42435
echo $ECHO_N "checking if strdup can be linked... $ECHO_C" >&6; }
 
42436
  cat >conftest.$ac_ext <<_ACEOF
 
42437
 
 
42438
    /* confdefs.h.  */
 
42439
_ACEOF
 
42440
cat confdefs.h >>conftest.$ac_ext
 
42441
cat >>conftest.$ac_ext <<_ACEOF
 
42442
/* end confdefs.h.  */
 
42443
 
 
42444
#define strdup innocuous_strdup
 
42445
#ifdef __STDC__
 
42446
# include <limits.h>
 
42447
#else
 
42448
# include <assert.h>
 
42449
#endif
 
42450
#undef strdup
 
42451
#ifdef __cplusplus
 
42452
extern "C"
 
42453
#endif
 
42454
char strdup ();
 
42455
#if defined __stub_strdup || defined __stub___strdup
 
42456
choke me
 
42457
#endif
 
42458
 
 
42459
int main (void)
 
42460
{
 
42461
return strdup ();
 
42462
 ;
 
42463
 return 0;
 
42464
}
 
42465
 
 
42466
_ACEOF
 
42467
rm -f conftest.$ac_objext conftest$ac_exeext
 
42468
if { (ac_try="$ac_link"
 
42469
case "(($ac_try" in
 
42470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42471
  *) ac_try_echo=$ac_try;;
 
42472
esac
 
42473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42474
  (eval "$ac_link") 2>conftest.er1
 
42475
  ac_status=$?
 
42476
  grep -v '^ *+' conftest.er1 >conftest.err
 
42477
  rm -f conftest.er1
 
42478
  cat conftest.err >&5
 
42479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42480
  (exit $ac_status); } && {
 
42481
         test -z "$ac_c_werror_flag" ||
 
42482
         test ! -s conftest.err
 
42483
       } && test -s conftest$ac_exeext &&
 
42484
       $as_test_x conftest$ac_exeext; then
 
42485
 
 
42486
    { echo "$as_me:$LINENO: result: yes" >&5
 
42487
echo "${ECHO_T}yes" >&6; }
 
42488
    tst_links_strdup="yes"
 
42489
 
 
42490
else
 
42491
  echo "$as_me: failed program was:" >&5
 
42492
sed 's/^/| /' conftest.$ac_ext >&5
 
42493
 
 
42494
 
 
42495
    { echo "$as_me:$LINENO: result: no" >&5
 
42496
echo "${ECHO_T}no" >&6; }
 
42497
    tst_links_strdup="no"
 
42498
 
 
42499
fi
 
42500
 
 
42501
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
42502
      conftest$ac_exeext conftest.$ac_ext
 
42503
  #
 
42504
  if test "$tst_links_strdup" = "yes"; then
 
42505
    { echo "$as_me:$LINENO: checking if strdup is prototyped" >&5
 
42506
echo $ECHO_N "checking if strdup is prototyped... $ECHO_C" >&6; }
 
42507
    cat >conftest.$ac_ext <<_ACEOF
 
42508
/* confdefs.h.  */
 
42509
_ACEOF
 
42510
cat confdefs.h >>conftest.$ac_ext
 
42511
cat >>conftest.$ac_ext <<_ACEOF
 
42512
/* end confdefs.h.  */
 
42513
 
 
42514
      $curl_includes_string
 
42515
 
 
42516
_ACEOF
 
42517
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
42518
  $EGREP "strdup" >/dev/null 2>&1; then
 
42519
 
 
42520
      { echo "$as_me:$LINENO: result: yes" >&5
 
42521
echo "${ECHO_T}yes" >&6; }
 
42522
      tst_proto_strdup="yes"
 
42523
 
 
42524
else
 
42525
 
 
42526
      { echo "$as_me:$LINENO: result: no" >&5
 
42527
echo "${ECHO_T}no" >&6; }
 
42528
      tst_proto_strdup="no"
 
42529
 
 
42530
fi
 
42531
rm -f conftest*
 
42532
 
 
42533
  fi
 
42534
  #
 
42535
  if test "$tst_proto_strdup" = "yes"; then
 
42536
    { echo "$as_me:$LINENO: checking if strdup is compilable" >&5
 
42537
echo $ECHO_N "checking if strdup is compilable... $ECHO_C" >&6; }
 
42538
    cat >conftest.$ac_ext <<_ACEOF
 
42539
 
 
42540
      /* confdefs.h.  */
 
42541
_ACEOF
 
42542
cat confdefs.h >>conftest.$ac_ext
 
42543
cat >>conftest.$ac_ext <<_ACEOF
 
42544
/* end confdefs.h.  */
 
42545
 
 
42546
        $curl_includes_string
 
42547
 
 
42548
int main (void)
 
42549
{
 
42550
 
 
42551
        if(0 != strdup(0))
 
42552
          return 1;
 
42553
 
 
42554
 ;
 
42555
 return 0;
 
42556
}
 
42557
 
 
42558
_ACEOF
 
42559
rm -f conftest.$ac_objext
 
42560
if { (ac_try="$ac_compile"
 
42561
case "(($ac_try" in
 
42562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42563
  *) ac_try_echo=$ac_try;;
 
42564
esac
 
42565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42566
  (eval "$ac_compile") 2>conftest.er1
 
42567
  ac_status=$?
 
42568
  grep -v '^ *+' conftest.er1 >conftest.err
 
42569
  rm -f conftest.er1
 
42570
  cat conftest.err >&5
 
42571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42572
  (exit $ac_status); } && {
 
42573
         test -z "$ac_c_werror_flag" ||
 
42574
         test ! -s conftest.err
 
42575
       } && test -s conftest.$ac_objext; then
 
42576
 
 
42577
      { echo "$as_me:$LINENO: result: yes" >&5
 
42578
echo "${ECHO_T}yes" >&6; }
 
42579
      tst_compi_strdup="yes"
 
42580
 
 
42581
else
 
42582
  echo "$as_me: failed program was:" >&5
 
42583
sed 's/^/| /' conftest.$ac_ext >&5
 
42584
 
 
42585
 
 
42586
      { echo "$as_me:$LINENO: result: no" >&5
 
42587
echo "${ECHO_T}no" >&6; }
 
42588
      tst_compi_strdup="no"
 
42589
 
 
42590
fi
 
42591
 
 
42592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
42593
  fi
 
42594
  #
 
42595
  if test "$tst_compi_strdup" = "yes"; then
 
42596
    { echo "$as_me:$LINENO: checking if strdup usage allowed" >&5
 
42597
echo $ECHO_N "checking if strdup usage allowed... $ECHO_C" >&6; }
 
42598
    if test "x$curl_disallow_strdup" != "xyes"; then
 
42599
      { echo "$as_me:$LINENO: result: yes" >&5
 
42600
echo "${ECHO_T}yes" >&6; }
 
42601
      tst_allow_strdup="yes"
 
42602
    else
 
42603
      { echo "$as_me:$LINENO: result: no" >&5
 
42604
echo "${ECHO_T}no" >&6; }
 
42605
      tst_allow_strdup="no"
 
42606
    fi
 
42607
  fi
 
42608
  #
 
42609
  { echo "$as_me:$LINENO: checking if strdup might be used" >&5
 
42610
echo $ECHO_N "checking if strdup might be used... $ECHO_C" >&6; }
 
42611
  if test "$tst_links_strdup" = "yes" &&
 
42612
     test "$tst_proto_strdup" = "yes" &&
 
42613
     test "$tst_compi_strdup" = "yes" &&
 
42614
     test "$tst_allow_strdup" = "yes"; then
 
42615
    { echo "$as_me:$LINENO: result: yes" >&5
 
42616
echo "${ECHO_T}yes" >&6; }
 
42617
 
 
42618
cat >>confdefs.h <<_ACEOF
 
42619
#define HAVE_STRDUP 1
 
42620
_ACEOF
 
42621
 
 
42622
    ac_cv_func_strdup="yes"
 
42623
  else
 
42624
    { echo "$as_me:$LINENO: result: no" >&5
 
42625
echo "${ECHO_T}no" >&6; }
 
42626
    ac_cv_func_strdup="no"
 
42627
  fi
 
42628
 
 
42629
 
 
42630
      #
 
42631
  tst_links_strerror_r="unknown"
 
42632
  tst_proto_strerror_r="unknown"
 
42633
  tst_compi_strerror_r="unknown"
 
42634
  tst_glibc_strerror_r="unknown"
 
42635
  tst_posix_strerror_r="unknown"
 
42636
  tst_allow_strerror_r="unknown"
 
42637
  tst_works_glibc_strerror_r="unknown"
 
42638
  tst_works_posix_strerror_r="unknown"
 
42639
  tst_glibc_strerror_r_type_arg3="unknown"
 
42640
  tst_posix_strerror_r_type_arg3="unknown"
 
42641
  #
 
42642
  { echo "$as_me:$LINENO: checking if strerror_r can be linked" >&5
 
42643
echo $ECHO_N "checking if strerror_r can be linked... $ECHO_C" >&6; }
 
42644
  cat >conftest.$ac_ext <<_ACEOF
 
42645
 
 
42646
    /* confdefs.h.  */
 
42647
_ACEOF
 
42648
cat confdefs.h >>conftest.$ac_ext
 
42649
cat >>conftest.$ac_ext <<_ACEOF
 
42650
/* end confdefs.h.  */
 
42651
 
 
42652
#define strerror_r innocuous_strerror_r
 
42653
#ifdef __STDC__
 
42654
# include <limits.h>
 
42655
#else
 
42656
# include <assert.h>
 
42657
#endif
 
42658
#undef strerror_r
 
42659
#ifdef __cplusplus
 
42660
extern "C"
 
42661
#endif
 
42662
char strerror_r ();
 
42663
#if defined __stub_strerror_r || defined __stub___strerror_r
 
42664
choke me
 
42665
#endif
 
42666
 
 
42667
int main (void)
 
42668
{
 
42669
return strerror_r ();
 
42670
 ;
 
42671
 return 0;
 
42672
}
 
42673
 
 
42674
_ACEOF
 
42675
rm -f conftest.$ac_objext conftest$ac_exeext
 
42676
if { (ac_try="$ac_link"
 
42677
case "(($ac_try" in
 
42678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42679
  *) ac_try_echo=$ac_try;;
 
42680
esac
 
42681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42682
  (eval "$ac_link") 2>conftest.er1
 
42683
  ac_status=$?
 
42684
  grep -v '^ *+' conftest.er1 >conftest.err
 
42685
  rm -f conftest.er1
 
42686
  cat conftest.err >&5
 
42687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42688
  (exit $ac_status); } && {
 
42689
         test -z "$ac_c_werror_flag" ||
 
42690
         test ! -s conftest.err
 
42691
       } && test -s conftest$ac_exeext &&
 
42692
       $as_test_x conftest$ac_exeext; then
 
42693
 
 
42694
    { echo "$as_me:$LINENO: result: yes" >&5
 
42695
echo "${ECHO_T}yes" >&6; }
 
42696
    tst_links_strerror_r="yes"
 
42697
 
 
42698
else
 
42699
  echo "$as_me: failed program was:" >&5
 
42700
sed 's/^/| /' conftest.$ac_ext >&5
 
42701
 
 
42702
 
 
42703
    { echo "$as_me:$LINENO: result: no" >&5
 
42704
echo "${ECHO_T}no" >&6; }
 
42705
    tst_links_strerror_r="no"
 
42706
 
 
42707
fi
 
42708
 
 
42709
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
42710
      conftest$ac_exeext conftest.$ac_ext
 
42711
  #
 
42712
  if test "$tst_links_strerror_r" = "yes"; then
 
42713
    { echo "$as_me:$LINENO: checking if strerror_r is prototyped" >&5
 
42714
echo $ECHO_N "checking if strerror_r is prototyped... $ECHO_C" >&6; }
 
42715
    cat >conftest.$ac_ext <<_ACEOF
 
42716
/* confdefs.h.  */
 
42717
_ACEOF
 
42718
cat confdefs.h >>conftest.$ac_ext
 
42719
cat >>conftest.$ac_ext <<_ACEOF
 
42720
/* end confdefs.h.  */
 
42721
 
 
42722
      $curl_includes_string
 
42723
 
 
42724
_ACEOF
 
42725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
42726
  $EGREP "strerror_r" >/dev/null 2>&1; then
 
42727
 
 
42728
      { echo "$as_me:$LINENO: result: yes" >&5
 
42729
echo "${ECHO_T}yes" >&6; }
 
42730
      tst_proto_strerror_r="yes"
 
42731
 
 
42732
else
 
42733
 
 
42734
      { echo "$as_me:$LINENO: result: no" >&5
 
42735
echo "${ECHO_T}no" >&6; }
 
42736
      tst_proto_strerror_r="no"
 
42737
 
 
42738
fi
 
42739
rm -f conftest*
 
42740
 
 
42741
  fi
 
42742
  #
 
42743
  if test "$tst_proto_strerror_r" = "yes"; then
 
42744
    { echo "$as_me:$LINENO: checking if strerror_r is compilable" >&5
 
42745
echo $ECHO_N "checking if strerror_r is compilable... $ECHO_C" >&6; }
 
42746
    cat >conftest.$ac_ext <<_ACEOF
 
42747
 
 
42748
      /* confdefs.h.  */
 
42749
_ACEOF
 
42750
cat confdefs.h >>conftest.$ac_ext
 
42751
cat >>conftest.$ac_ext <<_ACEOF
 
42752
/* end confdefs.h.  */
 
42753
 
 
42754
        $curl_includes_string
 
42755
 
 
42756
int main (void)
 
42757
{
 
42758
 
 
42759
        if(0 != strerror_r(0, 0, 0))
 
42760
          return 1;
 
42761
 
 
42762
 ;
 
42763
 return 0;
 
42764
}
 
42765
 
 
42766
_ACEOF
 
42767
rm -f conftest.$ac_objext
 
42768
if { (ac_try="$ac_compile"
 
42769
case "(($ac_try" in
 
42770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42771
  *) ac_try_echo=$ac_try;;
 
42772
esac
 
42773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42774
  (eval "$ac_compile") 2>conftest.er1
 
42775
  ac_status=$?
 
42776
  grep -v '^ *+' conftest.er1 >conftest.err
 
42777
  rm -f conftest.er1
 
42778
  cat conftest.err >&5
 
42779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42780
  (exit $ac_status); } && {
 
42781
         test -z "$ac_c_werror_flag" ||
 
42782
         test ! -s conftest.err
 
42783
       } && test -s conftest.$ac_objext; then
 
42784
 
 
42785
      { echo "$as_me:$LINENO: result: yes" >&5
 
42786
echo "${ECHO_T}yes" >&6; }
 
42787
      tst_compi_strerror_r="yes"
 
42788
 
 
42789
else
 
42790
  echo "$as_me: failed program was:" >&5
 
42791
sed 's/^/| /' conftest.$ac_ext >&5
 
42792
 
 
42793
 
 
42794
      { echo "$as_me:$LINENO: result: no" >&5
 
42795
echo "${ECHO_T}no" >&6; }
 
42796
      tst_compi_strerror_r="no"
 
42797
 
 
42798
fi
 
42799
 
 
42800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
42801
  fi
 
42802
  #
 
42803
  if test "$tst_compi_strerror_r" = "yes"; then
 
42804
    { echo "$as_me:$LINENO: checking if strerror_r is glibc like" >&5
 
42805
echo $ECHO_N "checking if strerror_r is glibc like... $ECHO_C" >&6; }
 
42806
    tst_glibc_strerror_r_type_arg3="unknown"
 
42807
    for arg3 in 'size_t' 'int' 'unsigned int'; do
 
42808
      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
 
42809
        cat >conftest.$ac_ext <<_ACEOF
 
42810
 
 
42811
          /* confdefs.h.  */
 
42812
_ACEOF
 
42813
cat confdefs.h >>conftest.$ac_ext
 
42814
cat >>conftest.$ac_ext <<_ACEOF
 
42815
/* end confdefs.h.  */
 
42816
 
 
42817
            $curl_includes_string
 
42818
 
 
42819
int main (void)
 
42820
{
 
42821
 
 
42822
            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
 
42823
            if(0 != strerror_r(0, 0, 0))
 
42824
              return 1;
 
42825
 
 
42826
 ;
 
42827
 return 0;
 
42828
}
 
42829
 
 
42830
_ACEOF
 
42831
rm -f conftest.$ac_objext
 
42832
if { (ac_try="$ac_compile"
 
42833
case "(($ac_try" in
 
42834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42835
  *) ac_try_echo=$ac_try;;
 
42836
esac
 
42837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42838
  (eval "$ac_compile") 2>conftest.er1
 
42839
  ac_status=$?
 
42840
  grep -v '^ *+' conftest.er1 >conftest.err
 
42841
  rm -f conftest.er1
 
42842
  cat conftest.err >&5
 
42843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42844
  (exit $ac_status); } && {
 
42845
         test -z "$ac_c_werror_flag" ||
 
42846
         test ! -s conftest.err
 
42847
       } && test -s conftest.$ac_objext; then
 
42848
 
 
42849
          tst_glibc_strerror_r_type_arg3="$arg3"
 
42850
 
 
42851
else
 
42852
  echo "$as_me: failed program was:" >&5
 
42853
sed 's/^/| /' conftest.$ac_ext >&5
 
42854
 
 
42855
 
 
42856
fi
 
42857
 
 
42858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
42859
      fi
 
42860
    done
 
42861
    case "$tst_glibc_strerror_r_type_arg3" in
 
42862
      unknown)
 
42863
        { echo "$as_me:$LINENO: result: no" >&5
 
42864
echo "${ECHO_T}no" >&6; }
 
42865
        tst_glibc_strerror_r="no"
 
42866
        ;;
 
42867
      *)
 
42868
        { echo "$as_me:$LINENO: result: yes" >&5
 
42869
echo "${ECHO_T}yes" >&6; }
 
42870
        tst_glibc_strerror_r="yes"
 
42871
        ;;
 
42872
    esac
 
42873
  fi
 
42874
  #
 
42875
    if test "x$cross_compiling" != "xyes" &&
 
42876
    test "$tst_glibc_strerror_r" = "yes"; then
 
42877
    { echo "$as_me:$LINENO: checking if strerror_r seems to work" >&5
 
42878
echo $ECHO_N "checking if strerror_r seems to work... $ECHO_C" >&6; }
 
42879
    if test "$cross_compiling" = yes; then
 
42880
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
42881
See \`config.log' for more details." >&5
 
42882
echo "$as_me: error: cannot run test program while cross compiling
 
42883
See \`config.log' for more details." >&2;}
 
42884
   { (exit 1); exit 1; }; }
 
42885
else
 
42886
  cat >conftest.$ac_ext <<_ACEOF
 
42887
 
 
42888
      /* confdefs.h.  */
 
42889
_ACEOF
 
42890
cat confdefs.h >>conftest.$ac_ext
 
42891
cat >>conftest.$ac_ext <<_ACEOF
 
42892
/* end confdefs.h.  */
 
42893
 
 
42894
        $curl_includes_stdlib
 
42895
        $curl_includes_string
 
42896
#       include <errno.h>
 
42897
 
 
42898
int main (void)
 
42899
{
 
42900
 
 
42901
        char buffer[1024];
 
42902
        char *string = 0;
 
42903
        buffer[0] = '\0';
 
42904
        string = strerror_r(EACCES, buffer, sizeof(buffer));
 
42905
        if(!string)
 
42906
          exit(1); /* fail */
 
42907
        if(!string[0])
 
42908
          exit(1); /* fail */
 
42909
        else
 
42910
          exit(0);
 
42911
 
 
42912
 ;
 
42913
 return 0;
 
42914
}
 
42915
 
 
42916
_ACEOF
 
42917
rm -f conftest$ac_exeext
 
42918
if { (ac_try="$ac_link"
 
42919
case "(($ac_try" in
 
42920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42921
  *) ac_try_echo=$ac_try;;
 
42922
esac
 
42923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42924
  (eval "$ac_link") 2>&5
 
42925
  ac_status=$?
 
42926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42927
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
42928
  { (case "(($ac_try" in
 
42929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42930
  *) ac_try_echo=$ac_try;;
 
42931
esac
 
42932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42933
  (eval "$ac_try") 2>&5
 
42934
  ac_status=$?
 
42935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
42936
  (exit $ac_status); }; }; then
 
42937
 
 
42938
      { echo "$as_me:$LINENO: result: yes" >&5
 
42939
echo "${ECHO_T}yes" >&6; }
 
42940
      tst_works_glibc_strerror_r="yes"
 
42941
 
 
42942
else
 
42943
  echo "$as_me: program exited with status $ac_status" >&5
 
42944
echo "$as_me: failed program was:" >&5
 
42945
sed 's/^/| /' conftest.$ac_ext >&5
 
42946
 
 
42947
( exit $ac_status )
 
42948
 
 
42949
      { echo "$as_me:$LINENO: result: no" >&5
 
42950
echo "${ECHO_T}no" >&6; }
 
42951
      tst_works_glibc_strerror_r="no"
 
42952
 
 
42953
fi
 
42954
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
42955
fi
 
42956
 
 
42957
 
 
42958
  fi
 
42959
  #
 
42960
  if test "$tst_compi_strerror_r" = "yes" &&
 
42961
    test "$tst_works_glibc_strerror_r" != "yes"; then
 
42962
    { echo "$as_me:$LINENO: checking if strerror_r is POSIX like" >&5
 
42963
echo $ECHO_N "checking if strerror_r is POSIX like... $ECHO_C" >&6; }
 
42964
    tst_posix_strerror_r_type_arg3="unknown"
 
42965
    for arg3 in 'size_t' 'int' 'unsigned int'; do
 
42966
      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
 
42967
        cat >conftest.$ac_ext <<_ACEOF
 
42968
 
 
42969
          /* confdefs.h.  */
 
42970
_ACEOF
 
42971
cat confdefs.h >>conftest.$ac_ext
 
42972
cat >>conftest.$ac_ext <<_ACEOF
 
42973
/* end confdefs.h.  */
 
42974
 
 
42975
            $curl_includes_string
 
42976
 
 
42977
int main (void)
 
42978
{
 
42979
 
 
42980
            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
 
42981
            if(0 != strerror_r(0, 0, 0))
 
42982
              return 1;
 
42983
 
 
42984
 ;
 
42985
 return 0;
 
42986
}
 
42987
 
 
42988
_ACEOF
 
42989
rm -f conftest.$ac_objext
 
42990
if { (ac_try="$ac_compile"
 
42991
case "(($ac_try" in
 
42992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
42993
  *) ac_try_echo=$ac_try;;
 
42994
esac
 
42995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
42996
  (eval "$ac_compile") 2>conftest.er1
 
42997
  ac_status=$?
 
42998
  grep -v '^ *+' conftest.er1 >conftest.err
 
42999
  rm -f conftest.er1
 
43000
  cat conftest.err >&5
 
43001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43002
  (exit $ac_status); } && {
 
43003
         test -z "$ac_c_werror_flag" ||
 
43004
         test ! -s conftest.err
 
43005
       } && test -s conftest.$ac_objext; then
 
43006
 
 
43007
          tst_posix_strerror_r_type_arg3="$arg3"
 
43008
 
 
43009
else
 
43010
  echo "$as_me: failed program was:" >&5
 
43011
sed 's/^/| /' conftest.$ac_ext >&5
 
43012
 
 
43013
 
 
43014
fi
 
43015
 
 
43016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
43017
      fi
 
43018
    done
 
43019
    case "$tst_posix_strerror_r_type_arg3" in
 
43020
      unknown)
 
43021
        { echo "$as_me:$LINENO: result: no" >&5
 
43022
echo "${ECHO_T}no" >&6; }
 
43023
        tst_posix_strerror_r="no"
 
43024
        ;;
 
43025
      *)
 
43026
        { echo "$as_me:$LINENO: result: yes" >&5
 
43027
echo "${ECHO_T}yes" >&6; }
 
43028
        tst_posix_strerror_r="yes"
 
43029
        ;;
 
43030
    esac
 
43031
  fi
 
43032
  #
 
43033
    if test "x$cross_compiling" != "xyes" &&
 
43034
    test "$tst_posix_strerror_r" = "yes"; then
 
43035
    { echo "$as_me:$LINENO: checking if strerror_r seems to work" >&5
 
43036
echo $ECHO_N "checking if strerror_r seems to work... $ECHO_C" >&6; }
 
43037
    if test "$cross_compiling" = yes; then
 
43038
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
43039
See \`config.log' for more details." >&5
 
43040
echo "$as_me: error: cannot run test program while cross compiling
 
43041
See \`config.log' for more details." >&2;}
 
43042
   { (exit 1); exit 1; }; }
 
43043
else
 
43044
  cat >conftest.$ac_ext <<_ACEOF
 
43045
 
 
43046
      /* confdefs.h.  */
 
43047
_ACEOF
 
43048
cat confdefs.h >>conftest.$ac_ext
 
43049
cat >>conftest.$ac_ext <<_ACEOF
 
43050
/* end confdefs.h.  */
 
43051
 
 
43052
        $curl_includes_stdlib
 
43053
        $curl_includes_string
 
43054
#       include <errno.h>
 
43055
 
 
43056
int main (void)
 
43057
{
 
43058
 
 
43059
        char buffer[1024];
 
43060
        int error = 1;
 
43061
        buffer[0] = '\0';
 
43062
        error = strerror_r(EACCES, buffer, sizeof(buffer));
 
43063
        if(error)
 
43064
          exit(1); /* fail */
 
43065
        if(buffer[0] == '\0')
 
43066
          exit(1); /* fail */
 
43067
        else
 
43068
          exit(0);
 
43069
 
 
43070
 ;
 
43071
 return 0;
 
43072
}
 
43073
 
 
43074
_ACEOF
 
43075
rm -f conftest$ac_exeext
 
43076
if { (ac_try="$ac_link"
 
43077
case "(($ac_try" in
 
43078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43079
  *) ac_try_echo=$ac_try;;
 
43080
esac
 
43081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43082
  (eval "$ac_link") 2>&5
 
43083
  ac_status=$?
 
43084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43085
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
43086
  { (case "(($ac_try" in
 
43087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43088
  *) ac_try_echo=$ac_try;;
 
43089
esac
 
43090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43091
  (eval "$ac_try") 2>&5
 
43092
  ac_status=$?
 
43093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43094
  (exit $ac_status); }; }; then
 
43095
 
 
43096
      { echo "$as_me:$LINENO: result: yes" >&5
 
43097
echo "${ECHO_T}yes" >&6; }
 
43098
      tst_works_posix_strerror_r="yes"
 
43099
 
 
43100
else
 
43101
  echo "$as_me: program exited with status $ac_status" >&5
 
43102
echo "$as_me: failed program was:" >&5
 
43103
sed 's/^/| /' conftest.$ac_ext >&5
 
43104
 
 
43105
( exit $ac_status )
 
43106
 
 
43107
      { echo "$as_me:$LINENO: result: no" >&5
 
43108
echo "${ECHO_T}no" >&6; }
 
43109
      tst_works_posix_strerror_r="no"
 
43110
 
 
43111
fi
 
43112
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
43113
fi
 
43114
 
 
43115
 
 
43116
  fi
 
43117
  #
 
43118
  if test "$tst_works_glibc_strerror_r" = "yes"; then
 
43119
    tst_posix_strerror_r="no"
 
43120
  fi
 
43121
  if test "$tst_works_posix_strerror_r" = "yes"; then
 
43122
    tst_glibc_strerror_r="no"
 
43123
  fi
 
43124
  if test "$tst_glibc_strerror_r" = "yes" &&
 
43125
    test "$tst_works_glibc_strerror_r" != "no" &&
 
43126
    test "$tst_posix_strerror_r" != "yes"; then
 
43127
    tst_allow_strerror_r="check"
 
43128
  fi
 
43129
  if test "$tst_posix_strerror_r" = "yes" &&
 
43130
    test "$tst_works_posix_strerror_r" != "no" &&
 
43131
    test "$tst_glibc_strerror_r" != "yes"; then
 
43132
    tst_allow_strerror_r="check"
 
43133
  fi
 
43134
  if test "$tst_allow_strerror_r" = "check"; then
 
43135
    { echo "$as_me:$LINENO: checking if strerror_r usage allowed" >&5
 
43136
echo $ECHO_N "checking if strerror_r usage allowed... $ECHO_C" >&6; }
 
43137
    if test "x$curl_disallow_strerror_r" != "xyes"; then
 
43138
      { echo "$as_me:$LINENO: result: yes" >&5
 
43139
echo "${ECHO_T}yes" >&6; }
 
43140
      tst_allow_strerror_r="yes"
 
43141
    else
 
43142
      { echo "$as_me:$LINENO: result: no" >&5
 
43143
echo "${ECHO_T}no" >&6; }
 
43144
      tst_allow_strerror_r="no"
 
43145
    fi
 
43146
  fi
 
43147
  #
 
43148
  { echo "$as_me:$LINENO: checking if strerror_r might be used" >&5
 
43149
echo $ECHO_N "checking if strerror_r might be used... $ECHO_C" >&6; }
 
43150
  if test "$tst_links_strerror_r" = "yes" &&
 
43151
     test "$tst_proto_strerror_r" = "yes" &&
 
43152
     test "$tst_compi_strerror_r" = "yes" &&
 
43153
     test "$tst_allow_strerror_r" = "yes"; then
 
43154
    { echo "$as_me:$LINENO: result: yes" >&5
 
43155
echo "${ECHO_T}yes" >&6; }
 
43156
    if test "$tst_glibc_strerror_r" = "yes"; then
 
43157
 
 
43158
cat >>confdefs.h <<_ACEOF
 
43159
#define HAVE_STRERROR_R 1
 
43160
_ACEOF
 
43161
 
 
43162
 
 
43163
cat >>confdefs.h <<_ACEOF
 
43164
#define HAVE_GLIBC_STRERROR_R 1
 
43165
_ACEOF
 
43166
 
 
43167
 
 
43168
cat >>confdefs.h <<_ACEOF
 
43169
#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
 
43170
_ACEOF
 
43171
 
 
43172
    fi
 
43173
    if test "$tst_posix_strerror_r" = "yes"; then
 
43174
 
 
43175
cat >>confdefs.h <<_ACEOF
 
43176
#define HAVE_STRERROR_R 1
 
43177
_ACEOF
 
43178
 
 
43179
 
 
43180
cat >>confdefs.h <<_ACEOF
 
43181
#define HAVE_POSIX_STRERROR_R 1
 
43182
_ACEOF
 
43183
 
 
43184
 
 
43185
cat >>confdefs.h <<_ACEOF
 
43186
#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
 
43187
_ACEOF
 
43188
 
 
43189
    fi
 
43190
    ac_cv_func_strerror_r="yes"
 
43191
  else
 
43192
    { echo "$as_me:$LINENO: result: no" >&5
 
43193
echo "${ECHO_T}no" >&6; }
 
43194
    ac_cv_func_strerror_r="no"
 
43195
  fi
 
43196
  #
 
43197
  if test "$tst_compi_strerror_r" = "yes" &&
 
43198
     test "$tst_allow_strerror_r" = "unknown"; then
 
43199
    { echo "$as_me:$LINENO: WARNING: cannot determine strerror_r() style: edit lib/config.h manually." >&5
 
43200
echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/config.h manually." >&2;}
 
43201
  fi
 
43202
  #
 
43203
 
 
43204
 
 
43205
    #
 
43206
  tst_links_stricmp="unknown"
 
43207
  tst_proto_stricmp="unknown"
 
43208
  tst_compi_stricmp="unknown"
 
43209
  tst_allow_stricmp="unknown"
 
43210
  #
 
43211
  { echo "$as_me:$LINENO: checking if stricmp can be linked" >&5
 
43212
echo $ECHO_N "checking if stricmp can be linked... $ECHO_C" >&6; }
 
43213
  cat >conftest.$ac_ext <<_ACEOF
 
43214
 
 
43215
    /* confdefs.h.  */
 
43216
_ACEOF
 
43217
cat confdefs.h >>conftest.$ac_ext
 
43218
cat >>conftest.$ac_ext <<_ACEOF
 
43219
/* end confdefs.h.  */
 
43220
 
 
43221
#define stricmp innocuous_stricmp
 
43222
#ifdef __STDC__
 
43223
# include <limits.h>
 
43224
#else
 
43225
# include <assert.h>
 
43226
#endif
 
43227
#undef stricmp
 
43228
#ifdef __cplusplus
 
43229
extern "C"
 
43230
#endif
 
43231
char stricmp ();
 
43232
#if defined __stub_stricmp || defined __stub___stricmp
 
43233
choke me
 
43234
#endif
 
43235
 
 
43236
int main (void)
 
43237
{
 
43238
return stricmp ();
 
43239
 ;
 
43240
 return 0;
 
43241
}
 
43242
 
 
43243
_ACEOF
 
43244
rm -f conftest.$ac_objext conftest$ac_exeext
 
43245
if { (ac_try="$ac_link"
 
43246
case "(($ac_try" in
 
43247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43248
  *) ac_try_echo=$ac_try;;
 
43249
esac
 
43250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43251
  (eval "$ac_link") 2>conftest.er1
 
43252
  ac_status=$?
 
43253
  grep -v '^ *+' conftest.er1 >conftest.err
 
43254
  rm -f conftest.er1
 
43255
  cat conftest.err >&5
 
43256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43257
  (exit $ac_status); } && {
 
43258
         test -z "$ac_c_werror_flag" ||
 
43259
         test ! -s conftest.err
 
43260
       } && test -s conftest$ac_exeext &&
 
43261
       $as_test_x conftest$ac_exeext; then
 
43262
 
 
43263
    { echo "$as_me:$LINENO: result: yes" >&5
 
43264
echo "${ECHO_T}yes" >&6; }
 
43265
    tst_links_stricmp="yes"
 
43266
 
 
43267
else
 
43268
  echo "$as_me: failed program was:" >&5
 
43269
sed 's/^/| /' conftest.$ac_ext >&5
 
43270
 
 
43271
 
 
43272
    { echo "$as_me:$LINENO: result: no" >&5
 
43273
echo "${ECHO_T}no" >&6; }
 
43274
    tst_links_stricmp="no"
 
43275
 
 
43276
fi
 
43277
 
 
43278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
43279
      conftest$ac_exeext conftest.$ac_ext
 
43280
  #
 
43281
  if test "$tst_links_stricmp" = "yes"; then
 
43282
    { echo "$as_me:$LINENO: checking if stricmp is prototyped" >&5
 
43283
echo $ECHO_N "checking if stricmp is prototyped... $ECHO_C" >&6; }
 
43284
    cat >conftest.$ac_ext <<_ACEOF
 
43285
/* confdefs.h.  */
 
43286
_ACEOF
 
43287
cat confdefs.h >>conftest.$ac_ext
 
43288
cat >>conftest.$ac_ext <<_ACEOF
 
43289
/* end confdefs.h.  */
 
43290
 
 
43291
      $curl_includes_string
 
43292
 
 
43293
_ACEOF
 
43294
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
43295
  $EGREP "stricmp" >/dev/null 2>&1; then
 
43296
 
 
43297
      { echo "$as_me:$LINENO: result: yes" >&5
 
43298
echo "${ECHO_T}yes" >&6; }
 
43299
      tst_proto_stricmp="yes"
 
43300
 
 
43301
else
 
43302
 
 
43303
      { echo "$as_me:$LINENO: result: no" >&5
 
43304
echo "${ECHO_T}no" >&6; }
 
43305
      tst_proto_stricmp="no"
 
43306
 
 
43307
fi
 
43308
rm -f conftest*
 
43309
 
 
43310
  fi
 
43311
  #
 
43312
  if test "$tst_proto_stricmp" = "yes"; then
 
43313
    { echo "$as_me:$LINENO: checking if stricmp is compilable" >&5
 
43314
echo $ECHO_N "checking if stricmp is compilable... $ECHO_C" >&6; }
 
43315
    cat >conftest.$ac_ext <<_ACEOF
 
43316
 
 
43317
      /* confdefs.h.  */
 
43318
_ACEOF
 
43319
cat confdefs.h >>conftest.$ac_ext
 
43320
cat >>conftest.$ac_ext <<_ACEOF
 
43321
/* end confdefs.h.  */
 
43322
 
 
43323
        $curl_includes_string
 
43324
 
 
43325
int main (void)
 
43326
{
 
43327
 
 
43328
        if(0 != stricmp(0, 0))
 
43329
          return 1;
 
43330
 
 
43331
 ;
 
43332
 return 0;
 
43333
}
 
43334
 
 
43335
_ACEOF
 
43336
rm -f conftest.$ac_objext
 
43337
if { (ac_try="$ac_compile"
 
43338
case "(($ac_try" in
 
43339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43340
  *) ac_try_echo=$ac_try;;
 
43341
esac
 
43342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43343
  (eval "$ac_compile") 2>conftest.er1
 
43344
  ac_status=$?
 
43345
  grep -v '^ *+' conftest.er1 >conftest.err
 
43346
  rm -f conftest.er1
 
43347
  cat conftest.err >&5
 
43348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43349
  (exit $ac_status); } && {
 
43350
         test -z "$ac_c_werror_flag" ||
 
43351
         test ! -s conftest.err
 
43352
       } && test -s conftest.$ac_objext; then
 
43353
 
 
43354
      { echo "$as_me:$LINENO: result: yes" >&5
 
43355
echo "${ECHO_T}yes" >&6; }
 
43356
      tst_compi_stricmp="yes"
 
43357
 
 
43358
else
 
43359
  echo "$as_me: failed program was:" >&5
 
43360
sed 's/^/| /' conftest.$ac_ext >&5
 
43361
 
 
43362
 
 
43363
      { echo "$as_me:$LINENO: result: no" >&5
 
43364
echo "${ECHO_T}no" >&6; }
 
43365
      tst_compi_stricmp="no"
 
43366
 
 
43367
fi
 
43368
 
 
43369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
43370
  fi
 
43371
  #
 
43372
  if test "$tst_compi_stricmp" = "yes"; then
 
43373
    { echo "$as_me:$LINENO: checking if stricmp usage allowed" >&5
 
43374
echo $ECHO_N "checking if stricmp usage allowed... $ECHO_C" >&6; }
 
43375
    if test "x$curl_disallow_stricmp" != "xyes"; then
 
43376
      { echo "$as_me:$LINENO: result: yes" >&5
 
43377
echo "${ECHO_T}yes" >&6; }
 
43378
      tst_allow_stricmp="yes"
 
43379
    else
 
43380
      { echo "$as_me:$LINENO: result: no" >&5
 
43381
echo "${ECHO_T}no" >&6; }
 
43382
      tst_allow_stricmp="no"
 
43383
    fi
 
43384
  fi
 
43385
  #
 
43386
  { echo "$as_me:$LINENO: checking if stricmp might be used" >&5
 
43387
echo $ECHO_N "checking if stricmp might be used... $ECHO_C" >&6; }
 
43388
  if test "$tst_links_stricmp" = "yes" &&
 
43389
     test "$tst_proto_stricmp" = "yes" &&
 
43390
     test "$tst_compi_stricmp" = "yes" &&
 
43391
     test "$tst_allow_stricmp" = "yes"; then
 
43392
    { echo "$as_me:$LINENO: result: yes" >&5
 
43393
echo "${ECHO_T}yes" >&6; }
 
43394
 
 
43395
cat >>confdefs.h <<_ACEOF
 
43396
#define HAVE_STRICMP 1
 
43397
_ACEOF
 
43398
 
 
43399
    ac_cv_func_stricmp="yes"
 
43400
  else
 
43401
    { echo "$as_me:$LINENO: result: no" >&5
 
43402
echo "${ECHO_T}no" >&6; }
 
43403
    ac_cv_func_stricmp="no"
 
43404
  fi
 
43405
 
 
43406
 
 
43407
    #
 
43408
  tst_links_strlcat="unknown"
 
43409
  tst_proto_strlcat="unknown"
 
43410
  tst_compi_strlcat="unknown"
 
43411
  tst_allow_strlcat="unknown"
 
43412
  #
 
43413
  { echo "$as_me:$LINENO: checking if strlcat can be linked" >&5
 
43414
echo $ECHO_N "checking if strlcat can be linked... $ECHO_C" >&6; }
 
43415
  cat >conftest.$ac_ext <<_ACEOF
 
43416
 
 
43417
    /* confdefs.h.  */
 
43418
_ACEOF
 
43419
cat confdefs.h >>conftest.$ac_ext
 
43420
cat >>conftest.$ac_ext <<_ACEOF
 
43421
/* end confdefs.h.  */
 
43422
 
 
43423
#define strlcat innocuous_strlcat
 
43424
#ifdef __STDC__
 
43425
# include <limits.h>
 
43426
#else
 
43427
# include <assert.h>
 
43428
#endif
 
43429
#undef strlcat
 
43430
#ifdef __cplusplus
 
43431
extern "C"
 
43432
#endif
 
43433
char strlcat ();
 
43434
#if defined __stub_strlcat || defined __stub___strlcat
 
43435
choke me
 
43436
#endif
 
43437
 
 
43438
int main (void)
 
43439
{
 
43440
return strlcat ();
 
43441
 ;
 
43442
 return 0;
 
43443
}
 
43444
 
 
43445
_ACEOF
 
43446
rm -f conftest.$ac_objext conftest$ac_exeext
 
43447
if { (ac_try="$ac_link"
 
43448
case "(($ac_try" in
 
43449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43450
  *) ac_try_echo=$ac_try;;
 
43451
esac
 
43452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43453
  (eval "$ac_link") 2>conftest.er1
 
43454
  ac_status=$?
 
43455
  grep -v '^ *+' conftest.er1 >conftest.err
 
43456
  rm -f conftest.er1
 
43457
  cat conftest.err >&5
 
43458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43459
  (exit $ac_status); } && {
 
43460
         test -z "$ac_c_werror_flag" ||
 
43461
         test ! -s conftest.err
 
43462
       } && test -s conftest$ac_exeext &&
 
43463
       $as_test_x conftest$ac_exeext; then
 
43464
 
 
43465
    { echo "$as_me:$LINENO: result: yes" >&5
 
43466
echo "${ECHO_T}yes" >&6; }
 
43467
    tst_links_strlcat="yes"
 
43468
 
 
43469
else
 
43470
  echo "$as_me: failed program was:" >&5
 
43471
sed 's/^/| /' conftest.$ac_ext >&5
 
43472
 
 
43473
 
 
43474
    { echo "$as_me:$LINENO: result: no" >&5
 
43475
echo "${ECHO_T}no" >&6; }
 
43476
    tst_links_strlcat="no"
 
43477
 
 
43478
fi
 
43479
 
 
43480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
43481
      conftest$ac_exeext conftest.$ac_ext
 
43482
  #
 
43483
  if test "$tst_links_strlcat" = "yes"; then
 
43484
    { echo "$as_me:$LINENO: checking if strlcat is prototyped" >&5
 
43485
echo $ECHO_N "checking if strlcat is prototyped... $ECHO_C" >&6; }
 
43486
    cat >conftest.$ac_ext <<_ACEOF
 
43487
/* confdefs.h.  */
 
43488
_ACEOF
 
43489
cat confdefs.h >>conftest.$ac_ext
 
43490
cat >>conftest.$ac_ext <<_ACEOF
 
43491
/* end confdefs.h.  */
 
43492
 
 
43493
      $curl_includes_string
 
43494
 
 
43495
_ACEOF
 
43496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
43497
  $EGREP "strlcat" >/dev/null 2>&1; then
 
43498
 
 
43499
      { echo "$as_me:$LINENO: result: yes" >&5
 
43500
echo "${ECHO_T}yes" >&6; }
 
43501
      tst_proto_strlcat="yes"
 
43502
 
 
43503
else
 
43504
 
 
43505
      { echo "$as_me:$LINENO: result: no" >&5
 
43506
echo "${ECHO_T}no" >&6; }
 
43507
      tst_proto_strlcat="no"
 
43508
 
 
43509
fi
 
43510
rm -f conftest*
 
43511
 
 
43512
  fi
 
43513
  #
 
43514
  if test "$tst_proto_strlcat" = "yes"; then
 
43515
    { echo "$as_me:$LINENO: checking if strlcat is compilable" >&5
 
43516
echo $ECHO_N "checking if strlcat is compilable... $ECHO_C" >&6; }
 
43517
    cat >conftest.$ac_ext <<_ACEOF
 
43518
 
 
43519
      /* confdefs.h.  */
 
43520
_ACEOF
 
43521
cat confdefs.h >>conftest.$ac_ext
 
43522
cat >>conftest.$ac_ext <<_ACEOF
 
43523
/* end confdefs.h.  */
 
43524
 
 
43525
        $curl_includes_string
 
43526
 
 
43527
int main (void)
 
43528
{
 
43529
 
 
43530
        if(0 != strlcat(0, 0, 0))
 
43531
          return 1;
 
43532
 
 
43533
 ;
 
43534
 return 0;
 
43535
}
 
43536
 
 
43537
_ACEOF
 
43538
rm -f conftest.$ac_objext
 
43539
if { (ac_try="$ac_compile"
 
43540
case "(($ac_try" in
 
43541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43542
  *) ac_try_echo=$ac_try;;
 
43543
esac
 
43544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43545
  (eval "$ac_compile") 2>conftest.er1
 
43546
  ac_status=$?
 
43547
  grep -v '^ *+' conftest.er1 >conftest.err
 
43548
  rm -f conftest.er1
 
43549
  cat conftest.err >&5
 
43550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43551
  (exit $ac_status); } && {
 
43552
         test -z "$ac_c_werror_flag" ||
 
43553
         test ! -s conftest.err
 
43554
       } && test -s conftest.$ac_objext; then
 
43555
 
 
43556
      { echo "$as_me:$LINENO: result: yes" >&5
 
43557
echo "${ECHO_T}yes" >&6; }
 
43558
      tst_compi_strlcat="yes"
 
43559
 
 
43560
else
 
43561
  echo "$as_me: failed program was:" >&5
 
43562
sed 's/^/| /' conftest.$ac_ext >&5
 
43563
 
 
43564
 
 
43565
      { echo "$as_me:$LINENO: result: no" >&5
 
43566
echo "${ECHO_T}no" >&6; }
 
43567
      tst_compi_strlcat="no"
 
43568
 
 
43569
fi
 
43570
 
 
43571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
43572
  fi
 
43573
  #
 
43574
  if test "$tst_compi_strlcat" = "yes"; then
 
43575
    { echo "$as_me:$LINENO: checking if strlcat usage allowed" >&5
 
43576
echo $ECHO_N "checking if strlcat usage allowed... $ECHO_C" >&6; }
 
43577
    if test "x$curl_disallow_strlcat" != "xyes"; then
 
43578
      { echo "$as_me:$LINENO: result: yes" >&5
 
43579
echo "${ECHO_T}yes" >&6; }
 
43580
      tst_allow_strlcat="yes"
 
43581
    else
 
43582
      { echo "$as_me:$LINENO: result: no" >&5
 
43583
echo "${ECHO_T}no" >&6; }
 
43584
      tst_allow_strlcat="no"
 
43585
    fi
 
43586
  fi
 
43587
  #
 
43588
  { echo "$as_me:$LINENO: checking if strlcat might be used" >&5
 
43589
echo $ECHO_N "checking if strlcat might be used... $ECHO_C" >&6; }
 
43590
  if test "$tst_links_strlcat" = "yes" &&
 
43591
     test "$tst_proto_strlcat" = "yes" &&
 
43592
     test "$tst_compi_strlcat" = "yes" &&
 
43593
     test "$tst_allow_strlcat" = "yes"; then
 
43594
    { echo "$as_me:$LINENO: result: yes" >&5
 
43595
echo "${ECHO_T}yes" >&6; }
 
43596
 
 
43597
cat >>confdefs.h <<_ACEOF
 
43598
#define HAVE_STRLCAT 1
 
43599
_ACEOF
 
43600
 
 
43601
    ac_cv_func_strlcat="yes"
 
43602
  else
 
43603
    { echo "$as_me:$LINENO: result: no" >&5
 
43604
echo "${ECHO_T}no" >&6; }
 
43605
    ac_cv_func_strlcat="no"
 
43606
  fi
 
43607
 
 
43608
 
 
43609
    #
 
43610
  tst_links_strncasecmp="unknown"
 
43611
  tst_proto_strncasecmp="unknown"
 
43612
  tst_compi_strncasecmp="unknown"
 
43613
  tst_allow_strncasecmp="unknown"
 
43614
  #
 
43615
  { echo "$as_me:$LINENO: checking if strncasecmp can be linked" >&5
 
43616
echo $ECHO_N "checking if strncasecmp can be linked... $ECHO_C" >&6; }
 
43617
  cat >conftest.$ac_ext <<_ACEOF
 
43618
 
 
43619
    /* confdefs.h.  */
 
43620
_ACEOF
 
43621
cat confdefs.h >>conftest.$ac_ext
 
43622
cat >>conftest.$ac_ext <<_ACEOF
 
43623
/* end confdefs.h.  */
 
43624
 
 
43625
#define strncasecmp innocuous_strncasecmp
 
43626
#ifdef __STDC__
 
43627
# include <limits.h>
 
43628
#else
 
43629
# include <assert.h>
 
43630
#endif
 
43631
#undef strncasecmp
 
43632
#ifdef __cplusplus
 
43633
extern "C"
 
43634
#endif
 
43635
char strncasecmp ();
 
43636
#if defined __stub_strncasecmp || defined __stub___strncasecmp
 
43637
choke me
 
43638
#endif
 
43639
 
 
43640
int main (void)
 
43641
{
 
43642
return strncasecmp ();
 
43643
 ;
 
43644
 return 0;
 
43645
}
 
43646
 
 
43647
_ACEOF
 
43648
rm -f conftest.$ac_objext conftest$ac_exeext
 
43649
if { (ac_try="$ac_link"
 
43650
case "(($ac_try" in
 
43651
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43652
  *) ac_try_echo=$ac_try;;
 
43653
esac
 
43654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43655
  (eval "$ac_link") 2>conftest.er1
 
43656
  ac_status=$?
 
43657
  grep -v '^ *+' conftest.er1 >conftest.err
 
43658
  rm -f conftest.er1
 
43659
  cat conftest.err >&5
 
43660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43661
  (exit $ac_status); } && {
 
43662
         test -z "$ac_c_werror_flag" ||
 
43663
         test ! -s conftest.err
 
43664
       } && test -s conftest$ac_exeext &&
 
43665
       $as_test_x conftest$ac_exeext; then
 
43666
 
 
43667
    { echo "$as_me:$LINENO: result: yes" >&5
 
43668
echo "${ECHO_T}yes" >&6; }
 
43669
    tst_links_strncasecmp="yes"
 
43670
 
 
43671
else
 
43672
  echo "$as_me: failed program was:" >&5
 
43673
sed 's/^/| /' conftest.$ac_ext >&5
 
43674
 
 
43675
 
 
43676
    { echo "$as_me:$LINENO: result: no" >&5
 
43677
echo "${ECHO_T}no" >&6; }
 
43678
    tst_links_strncasecmp="no"
 
43679
 
 
43680
fi
 
43681
 
 
43682
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
43683
      conftest$ac_exeext conftest.$ac_ext
 
43684
  #
 
43685
  if test "$tst_links_strncasecmp" = "yes"; then
 
43686
    { echo "$as_me:$LINENO: checking if strncasecmp is prototyped" >&5
 
43687
echo $ECHO_N "checking if strncasecmp is prototyped... $ECHO_C" >&6; }
 
43688
    cat >conftest.$ac_ext <<_ACEOF
 
43689
/* confdefs.h.  */
 
43690
_ACEOF
 
43691
cat confdefs.h >>conftest.$ac_ext
 
43692
cat >>conftest.$ac_ext <<_ACEOF
 
43693
/* end confdefs.h.  */
 
43694
 
 
43695
      $curl_includes_string
 
43696
 
 
43697
_ACEOF
 
43698
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
43699
  $EGREP "strncasecmp" >/dev/null 2>&1; then
 
43700
 
 
43701
      { echo "$as_me:$LINENO: result: yes" >&5
 
43702
echo "${ECHO_T}yes" >&6; }
 
43703
      tst_proto_strncasecmp="yes"
 
43704
 
 
43705
else
 
43706
 
 
43707
      { echo "$as_me:$LINENO: result: no" >&5
 
43708
echo "${ECHO_T}no" >&6; }
 
43709
      tst_proto_strncasecmp="no"
 
43710
 
 
43711
fi
 
43712
rm -f conftest*
 
43713
 
 
43714
  fi
 
43715
  #
 
43716
  if test "$tst_proto_strncasecmp" = "yes"; then
 
43717
    { echo "$as_me:$LINENO: checking if strncasecmp is compilable" >&5
 
43718
echo $ECHO_N "checking if strncasecmp is compilable... $ECHO_C" >&6; }
 
43719
    cat >conftest.$ac_ext <<_ACEOF
 
43720
 
 
43721
      /* confdefs.h.  */
 
43722
_ACEOF
 
43723
cat confdefs.h >>conftest.$ac_ext
 
43724
cat >>conftest.$ac_ext <<_ACEOF
 
43725
/* end confdefs.h.  */
 
43726
 
 
43727
        $curl_includes_string
 
43728
 
 
43729
int main (void)
 
43730
{
 
43731
 
 
43732
        if(0 != strncasecmp(0, 0, 0))
 
43733
          return 1;
 
43734
 
 
43735
 ;
 
43736
 return 0;
 
43737
}
 
43738
 
 
43739
_ACEOF
 
43740
rm -f conftest.$ac_objext
 
43741
if { (ac_try="$ac_compile"
 
43742
case "(($ac_try" in
 
43743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43744
  *) ac_try_echo=$ac_try;;
 
43745
esac
 
43746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43747
  (eval "$ac_compile") 2>conftest.er1
 
43748
  ac_status=$?
 
43749
  grep -v '^ *+' conftest.er1 >conftest.err
 
43750
  rm -f conftest.er1
 
43751
  cat conftest.err >&5
 
43752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43753
  (exit $ac_status); } && {
 
43754
         test -z "$ac_c_werror_flag" ||
 
43755
         test ! -s conftest.err
 
43756
       } && test -s conftest.$ac_objext; then
 
43757
 
 
43758
      { echo "$as_me:$LINENO: result: yes" >&5
 
43759
echo "${ECHO_T}yes" >&6; }
 
43760
      tst_compi_strncasecmp="yes"
 
43761
 
 
43762
else
 
43763
  echo "$as_me: failed program was:" >&5
 
43764
sed 's/^/| /' conftest.$ac_ext >&5
 
43765
 
 
43766
 
 
43767
      { echo "$as_me:$LINENO: result: no" >&5
 
43768
echo "${ECHO_T}no" >&6; }
 
43769
      tst_compi_strncasecmp="no"
 
43770
 
 
43771
fi
 
43772
 
 
43773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
43774
  fi
 
43775
  #
 
43776
  if test "$tst_compi_strncasecmp" = "yes"; then
 
43777
    { echo "$as_me:$LINENO: checking if strncasecmp usage allowed" >&5
 
43778
echo $ECHO_N "checking if strncasecmp usage allowed... $ECHO_C" >&6; }
 
43779
    if test "x$curl_disallow_strncasecmp" != "xyes"; then
 
43780
      { echo "$as_me:$LINENO: result: yes" >&5
 
43781
echo "${ECHO_T}yes" >&6; }
 
43782
      tst_allow_strncasecmp="yes"
 
43783
    else
 
43784
      { echo "$as_me:$LINENO: result: no" >&5
 
43785
echo "${ECHO_T}no" >&6; }
 
43786
      tst_allow_strncasecmp="no"
 
43787
    fi
 
43788
  fi
 
43789
  #
 
43790
  { echo "$as_me:$LINENO: checking if strncasecmp might be used" >&5
 
43791
echo $ECHO_N "checking if strncasecmp might be used... $ECHO_C" >&6; }
 
43792
  if test "$tst_links_strncasecmp" = "yes" &&
 
43793
     test "$tst_proto_strncasecmp" = "yes" &&
 
43794
     test "$tst_compi_strncasecmp" = "yes" &&
 
43795
     test "$tst_allow_strncasecmp" = "yes"; then
 
43796
    { echo "$as_me:$LINENO: result: yes" >&5
 
43797
echo "${ECHO_T}yes" >&6; }
 
43798
 
 
43799
cat >>confdefs.h <<_ACEOF
 
43800
#define HAVE_STRNCASECMP 1
 
43801
_ACEOF
 
43802
 
 
43803
    ac_cv_func_strncasecmp="yes"
 
43804
  else
 
43805
    { echo "$as_me:$LINENO: result: no" >&5
 
43806
echo "${ECHO_T}no" >&6; }
 
43807
    ac_cv_func_strncasecmp="no"
 
43808
  fi
 
43809
 
 
43810
 
 
43811
    #
 
43812
  tst_links_strncmpi="unknown"
 
43813
  tst_proto_strncmpi="unknown"
 
43814
  tst_compi_strncmpi="unknown"
 
43815
  tst_allow_strncmpi="unknown"
 
43816
  #
 
43817
  { echo "$as_me:$LINENO: checking if strncmpi can be linked" >&5
 
43818
echo $ECHO_N "checking if strncmpi can be linked... $ECHO_C" >&6; }
 
43819
  cat >conftest.$ac_ext <<_ACEOF
 
43820
 
 
43821
    /* confdefs.h.  */
 
43822
_ACEOF
 
43823
cat confdefs.h >>conftest.$ac_ext
 
43824
cat >>conftest.$ac_ext <<_ACEOF
 
43825
/* end confdefs.h.  */
 
43826
 
 
43827
#define strncmpi innocuous_strncmpi
 
43828
#ifdef __STDC__
 
43829
# include <limits.h>
 
43830
#else
 
43831
# include <assert.h>
 
43832
#endif
 
43833
#undef strncmpi
 
43834
#ifdef __cplusplus
 
43835
extern "C"
 
43836
#endif
 
43837
char strncmpi ();
 
43838
#if defined __stub_strncmpi || defined __stub___strncmpi
 
43839
choke me
 
43840
#endif
 
43841
 
 
43842
int main (void)
 
43843
{
 
43844
return strncmpi ();
 
43845
 ;
 
43846
 return 0;
 
43847
}
 
43848
 
 
43849
_ACEOF
 
43850
rm -f conftest.$ac_objext conftest$ac_exeext
 
43851
if { (ac_try="$ac_link"
 
43852
case "(($ac_try" in
 
43853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43854
  *) ac_try_echo=$ac_try;;
 
43855
esac
 
43856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43857
  (eval "$ac_link") 2>conftest.er1
 
43858
  ac_status=$?
 
43859
  grep -v '^ *+' conftest.er1 >conftest.err
 
43860
  rm -f conftest.er1
 
43861
  cat conftest.err >&5
 
43862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43863
  (exit $ac_status); } && {
 
43864
         test -z "$ac_c_werror_flag" ||
 
43865
         test ! -s conftest.err
 
43866
       } && test -s conftest$ac_exeext &&
 
43867
       $as_test_x conftest$ac_exeext; then
 
43868
 
 
43869
    { echo "$as_me:$LINENO: result: yes" >&5
 
43870
echo "${ECHO_T}yes" >&6; }
 
43871
    tst_links_strncmpi="yes"
 
43872
 
 
43873
else
 
43874
  echo "$as_me: failed program was:" >&5
 
43875
sed 's/^/| /' conftest.$ac_ext >&5
 
43876
 
 
43877
 
 
43878
    { echo "$as_me:$LINENO: result: no" >&5
 
43879
echo "${ECHO_T}no" >&6; }
 
43880
    tst_links_strncmpi="no"
 
43881
 
 
43882
fi
 
43883
 
 
43884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
43885
      conftest$ac_exeext conftest.$ac_ext
 
43886
  #
 
43887
  if test "$tst_links_strncmpi" = "yes"; then
 
43888
    { echo "$as_me:$LINENO: checking if strncmpi is prototyped" >&5
 
43889
echo $ECHO_N "checking if strncmpi is prototyped... $ECHO_C" >&6; }
 
43890
    cat >conftest.$ac_ext <<_ACEOF
 
43891
/* confdefs.h.  */
 
43892
_ACEOF
 
43893
cat confdefs.h >>conftest.$ac_ext
 
43894
cat >>conftest.$ac_ext <<_ACEOF
 
43895
/* end confdefs.h.  */
 
43896
 
 
43897
      $curl_includes_string
 
43898
 
 
43899
_ACEOF
 
43900
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
43901
  $EGREP "strncmpi" >/dev/null 2>&1; then
 
43902
 
 
43903
      { echo "$as_me:$LINENO: result: yes" >&5
 
43904
echo "${ECHO_T}yes" >&6; }
 
43905
      tst_proto_strncmpi="yes"
 
43906
 
 
43907
else
 
43908
 
 
43909
      { echo "$as_me:$LINENO: result: no" >&5
 
43910
echo "${ECHO_T}no" >&6; }
 
43911
      tst_proto_strncmpi="no"
 
43912
 
 
43913
fi
 
43914
rm -f conftest*
 
43915
 
 
43916
  fi
 
43917
  #
 
43918
  if test "$tst_proto_strncmpi" = "yes"; then
 
43919
    { echo "$as_me:$LINENO: checking if strncmpi is compilable" >&5
 
43920
echo $ECHO_N "checking if strncmpi is compilable... $ECHO_C" >&6; }
 
43921
    cat >conftest.$ac_ext <<_ACEOF
 
43922
 
 
43923
      /* confdefs.h.  */
 
43924
_ACEOF
 
43925
cat confdefs.h >>conftest.$ac_ext
 
43926
cat >>conftest.$ac_ext <<_ACEOF
 
43927
/* end confdefs.h.  */
 
43928
 
 
43929
        $curl_includes_string
 
43930
 
 
43931
int main (void)
 
43932
{
 
43933
 
 
43934
        if(0 != strncmpi(0, 0))
 
43935
          return 1;
 
43936
 
 
43937
 ;
 
43938
 return 0;
 
43939
}
 
43940
 
 
43941
_ACEOF
 
43942
rm -f conftest.$ac_objext
 
43943
if { (ac_try="$ac_compile"
 
43944
case "(($ac_try" in
 
43945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
43946
  *) ac_try_echo=$ac_try;;
 
43947
esac
 
43948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
43949
  (eval "$ac_compile") 2>conftest.er1
 
43950
  ac_status=$?
 
43951
  grep -v '^ *+' conftest.er1 >conftest.err
 
43952
  rm -f conftest.er1
 
43953
  cat conftest.err >&5
 
43954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
43955
  (exit $ac_status); } && {
 
43956
         test -z "$ac_c_werror_flag" ||
 
43957
         test ! -s conftest.err
 
43958
       } && test -s conftest.$ac_objext; then
 
43959
 
 
43960
      { echo "$as_me:$LINENO: result: yes" >&5
 
43961
echo "${ECHO_T}yes" >&6; }
 
43962
      tst_compi_strncmpi="yes"
 
43963
 
 
43964
else
 
43965
  echo "$as_me: failed program was:" >&5
 
43966
sed 's/^/| /' conftest.$ac_ext >&5
 
43967
 
 
43968
 
 
43969
      { echo "$as_me:$LINENO: result: no" >&5
 
43970
echo "${ECHO_T}no" >&6; }
 
43971
      tst_compi_strncmpi="no"
 
43972
 
 
43973
fi
 
43974
 
 
43975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
43976
  fi
 
43977
  #
 
43978
  if test "$tst_compi_strncmpi" = "yes"; then
 
43979
    { echo "$as_me:$LINENO: checking if strncmpi usage allowed" >&5
 
43980
echo $ECHO_N "checking if strncmpi usage allowed... $ECHO_C" >&6; }
 
43981
    if test "x$curl_disallow_strncmpi" != "xyes"; then
 
43982
      { echo "$as_me:$LINENO: result: yes" >&5
 
43983
echo "${ECHO_T}yes" >&6; }
 
43984
      tst_allow_strncmpi="yes"
 
43985
    else
 
43986
      { echo "$as_me:$LINENO: result: no" >&5
 
43987
echo "${ECHO_T}no" >&6; }
 
43988
      tst_allow_strncmpi="no"
 
43989
    fi
 
43990
  fi
 
43991
  #
 
43992
  { echo "$as_me:$LINENO: checking if strncmpi might be used" >&5
 
43993
echo $ECHO_N "checking if strncmpi might be used... $ECHO_C" >&6; }
 
43994
  if test "$tst_links_strncmpi" = "yes" &&
 
43995
     test "$tst_proto_strncmpi" = "yes" &&
 
43996
     test "$tst_compi_strncmpi" = "yes" &&
 
43997
     test "$tst_allow_strncmpi" = "yes"; then
 
43998
    { echo "$as_me:$LINENO: result: yes" >&5
 
43999
echo "${ECHO_T}yes" >&6; }
 
44000
 
 
44001
cat >>confdefs.h <<_ACEOF
 
44002
#define HAVE_STRNCMPI 1
 
44003
_ACEOF
 
44004
 
 
44005
    ac_cv_func_strncmpi="yes"
 
44006
  else
 
44007
    { echo "$as_me:$LINENO: result: no" >&5
 
44008
echo "${ECHO_T}no" >&6; }
 
44009
    ac_cv_func_strncmpi="no"
 
44010
  fi
 
44011
 
 
44012
 
 
44013
    #
 
44014
  tst_links_strnicmp="unknown"
 
44015
  tst_proto_strnicmp="unknown"
 
44016
  tst_compi_strnicmp="unknown"
 
44017
  tst_allow_strnicmp="unknown"
 
44018
  #
 
44019
  { echo "$as_me:$LINENO: checking if strnicmp can be linked" >&5
 
44020
echo $ECHO_N "checking if strnicmp can be linked... $ECHO_C" >&6; }
 
44021
  cat >conftest.$ac_ext <<_ACEOF
 
44022
 
 
44023
    /* confdefs.h.  */
 
44024
_ACEOF
 
44025
cat confdefs.h >>conftest.$ac_ext
 
44026
cat >>conftest.$ac_ext <<_ACEOF
 
44027
/* end confdefs.h.  */
 
44028
 
 
44029
#define strnicmp innocuous_strnicmp
 
44030
#ifdef __STDC__
 
44031
# include <limits.h>
 
44032
#else
 
44033
# include <assert.h>
 
44034
#endif
 
44035
#undef strnicmp
 
44036
#ifdef __cplusplus
 
44037
extern "C"
 
44038
#endif
 
44039
char strnicmp ();
 
44040
#if defined __stub_strnicmp || defined __stub___strnicmp
 
44041
choke me
 
44042
#endif
 
44043
 
 
44044
int main (void)
 
44045
{
 
44046
return strnicmp ();
 
44047
 ;
 
44048
 return 0;
 
44049
}
 
44050
 
 
44051
_ACEOF
 
44052
rm -f conftest.$ac_objext conftest$ac_exeext
 
44053
if { (ac_try="$ac_link"
 
44054
case "(($ac_try" in
 
44055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44056
  *) ac_try_echo=$ac_try;;
 
44057
esac
 
44058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44059
  (eval "$ac_link") 2>conftest.er1
 
44060
  ac_status=$?
 
44061
  grep -v '^ *+' conftest.er1 >conftest.err
 
44062
  rm -f conftest.er1
 
44063
  cat conftest.err >&5
 
44064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44065
  (exit $ac_status); } && {
 
44066
         test -z "$ac_c_werror_flag" ||
 
44067
         test ! -s conftest.err
 
44068
       } && test -s conftest$ac_exeext &&
 
44069
       $as_test_x conftest$ac_exeext; then
 
44070
 
 
44071
    { echo "$as_me:$LINENO: result: yes" >&5
 
44072
echo "${ECHO_T}yes" >&6; }
 
44073
    tst_links_strnicmp="yes"
 
44074
 
 
44075
else
 
44076
  echo "$as_me: failed program was:" >&5
 
44077
sed 's/^/| /' conftest.$ac_ext >&5
 
44078
 
 
44079
 
 
44080
    { echo "$as_me:$LINENO: result: no" >&5
 
44081
echo "${ECHO_T}no" >&6; }
 
44082
    tst_links_strnicmp="no"
 
44083
 
 
44084
fi
 
44085
 
 
44086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
44087
      conftest$ac_exeext conftest.$ac_ext
 
44088
  #
 
44089
  if test "$tst_links_strnicmp" = "yes"; then
 
44090
    { echo "$as_me:$LINENO: checking if strnicmp is prototyped" >&5
 
44091
echo $ECHO_N "checking if strnicmp is prototyped... $ECHO_C" >&6; }
 
44092
    cat >conftest.$ac_ext <<_ACEOF
 
44093
/* confdefs.h.  */
 
44094
_ACEOF
 
44095
cat confdefs.h >>conftest.$ac_ext
 
44096
cat >>conftest.$ac_ext <<_ACEOF
 
44097
/* end confdefs.h.  */
 
44098
 
 
44099
      $curl_includes_string
 
44100
 
 
44101
_ACEOF
 
44102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
44103
  $EGREP "strnicmp" >/dev/null 2>&1; then
 
44104
 
 
44105
      { echo "$as_me:$LINENO: result: yes" >&5
 
44106
echo "${ECHO_T}yes" >&6; }
 
44107
      tst_proto_strnicmp="yes"
 
44108
 
 
44109
else
 
44110
 
 
44111
      { echo "$as_me:$LINENO: result: no" >&5
 
44112
echo "${ECHO_T}no" >&6; }
 
44113
      tst_proto_strnicmp="no"
 
44114
 
 
44115
fi
 
44116
rm -f conftest*
 
44117
 
 
44118
  fi
 
44119
  #
 
44120
  if test "$tst_proto_strnicmp" = "yes"; then
 
44121
    { echo "$as_me:$LINENO: checking if strnicmp is compilable" >&5
 
44122
echo $ECHO_N "checking if strnicmp is compilable... $ECHO_C" >&6; }
 
44123
    cat >conftest.$ac_ext <<_ACEOF
 
44124
 
 
44125
      /* confdefs.h.  */
 
44126
_ACEOF
 
44127
cat confdefs.h >>conftest.$ac_ext
 
44128
cat >>conftest.$ac_ext <<_ACEOF
 
44129
/* end confdefs.h.  */
 
44130
 
 
44131
        $curl_includes_string
 
44132
 
 
44133
int main (void)
 
44134
{
 
44135
 
 
44136
        if(0 != strnicmp(0, 0))
 
44137
          return 1;
 
44138
 
 
44139
 ;
 
44140
 return 0;
 
44141
}
 
44142
 
 
44143
_ACEOF
 
44144
rm -f conftest.$ac_objext
 
44145
if { (ac_try="$ac_compile"
 
44146
case "(($ac_try" in
 
44147
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44148
  *) ac_try_echo=$ac_try;;
 
44149
esac
 
44150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44151
  (eval "$ac_compile") 2>conftest.er1
 
44152
  ac_status=$?
 
44153
  grep -v '^ *+' conftest.er1 >conftest.err
 
44154
  rm -f conftest.er1
 
44155
  cat conftest.err >&5
 
44156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44157
  (exit $ac_status); } && {
 
44158
         test -z "$ac_c_werror_flag" ||
 
44159
         test ! -s conftest.err
 
44160
       } && test -s conftest.$ac_objext; then
 
44161
 
 
44162
      { echo "$as_me:$LINENO: result: yes" >&5
 
44163
echo "${ECHO_T}yes" >&6; }
 
44164
      tst_compi_strnicmp="yes"
 
44165
 
 
44166
else
 
44167
  echo "$as_me: failed program was:" >&5
 
44168
sed 's/^/| /' conftest.$ac_ext >&5
 
44169
 
 
44170
 
 
44171
      { echo "$as_me:$LINENO: result: no" >&5
 
44172
echo "${ECHO_T}no" >&6; }
 
44173
      tst_compi_strnicmp="no"
 
44174
 
 
44175
fi
 
44176
 
 
44177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
44178
  fi
 
44179
  #
 
44180
  if test "$tst_compi_strnicmp" = "yes"; then
 
44181
    { echo "$as_me:$LINENO: checking if strnicmp usage allowed" >&5
 
44182
echo $ECHO_N "checking if strnicmp usage allowed... $ECHO_C" >&6; }
 
44183
    if test "x$curl_disallow_strnicmp" != "xyes"; then
 
44184
      { echo "$as_me:$LINENO: result: yes" >&5
 
44185
echo "${ECHO_T}yes" >&6; }
 
44186
      tst_allow_strnicmp="yes"
 
44187
    else
 
44188
      { echo "$as_me:$LINENO: result: no" >&5
 
44189
echo "${ECHO_T}no" >&6; }
 
44190
      tst_allow_strnicmp="no"
 
44191
    fi
 
44192
  fi
 
44193
  #
 
44194
  { echo "$as_me:$LINENO: checking if strnicmp might be used" >&5
 
44195
echo $ECHO_N "checking if strnicmp might be used... $ECHO_C" >&6; }
 
44196
  if test "$tst_links_strnicmp" = "yes" &&
 
44197
     test "$tst_proto_strnicmp" = "yes" &&
 
44198
     test "$tst_compi_strnicmp" = "yes" &&
 
44199
     test "$tst_allow_strnicmp" = "yes"; then
 
44200
    { echo "$as_me:$LINENO: result: yes" >&5
 
44201
echo "${ECHO_T}yes" >&6; }
 
44202
 
 
44203
cat >>confdefs.h <<_ACEOF
 
44204
#define HAVE_STRNICMP 1
 
44205
_ACEOF
 
44206
 
 
44207
    ac_cv_func_strnicmp="yes"
 
44208
  else
 
44209
    { echo "$as_me:$LINENO: result: no" >&5
 
44210
echo "${ECHO_T}no" >&6; }
 
44211
    ac_cv_func_strnicmp="no"
 
44212
  fi
 
44213
 
 
44214
 
 
44215
    #
 
44216
  tst_links_strstr="unknown"
 
44217
  tst_proto_strstr="unknown"
 
44218
  tst_compi_strstr="unknown"
 
44219
  tst_allow_strstr="unknown"
 
44220
  #
 
44221
  { echo "$as_me:$LINENO: checking if strstr can be linked" >&5
 
44222
echo $ECHO_N "checking if strstr can be linked... $ECHO_C" >&6; }
 
44223
  cat >conftest.$ac_ext <<_ACEOF
 
44224
 
 
44225
    /* confdefs.h.  */
 
44226
_ACEOF
 
44227
cat confdefs.h >>conftest.$ac_ext
 
44228
cat >>conftest.$ac_ext <<_ACEOF
 
44229
/* end confdefs.h.  */
 
44230
 
 
44231
#define strstr innocuous_strstr
 
44232
#ifdef __STDC__
 
44233
# include <limits.h>
 
44234
#else
 
44235
# include <assert.h>
 
44236
#endif
 
44237
#undef strstr
 
44238
#ifdef __cplusplus
 
44239
extern "C"
 
44240
#endif
 
44241
char strstr ();
 
44242
#if defined __stub_strstr || defined __stub___strstr
 
44243
choke me
 
44244
#endif
 
44245
 
 
44246
int main (void)
 
44247
{
 
44248
return strstr ();
 
44249
 ;
 
44250
 return 0;
 
44251
}
 
44252
 
 
44253
_ACEOF
 
44254
rm -f conftest.$ac_objext conftest$ac_exeext
 
44255
if { (ac_try="$ac_link"
 
44256
case "(($ac_try" in
 
44257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44258
  *) ac_try_echo=$ac_try;;
 
44259
esac
 
44260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44261
  (eval "$ac_link") 2>conftest.er1
 
44262
  ac_status=$?
 
44263
  grep -v '^ *+' conftest.er1 >conftest.err
 
44264
  rm -f conftest.er1
 
44265
  cat conftest.err >&5
 
44266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44267
  (exit $ac_status); } && {
 
44268
         test -z "$ac_c_werror_flag" ||
 
44269
         test ! -s conftest.err
 
44270
       } && test -s conftest$ac_exeext &&
 
44271
       $as_test_x conftest$ac_exeext; then
 
44272
 
 
44273
    { echo "$as_me:$LINENO: result: yes" >&5
 
44274
echo "${ECHO_T}yes" >&6; }
 
44275
    tst_links_strstr="yes"
 
44276
 
 
44277
else
 
44278
  echo "$as_me: failed program was:" >&5
 
44279
sed 's/^/| /' conftest.$ac_ext >&5
 
44280
 
 
44281
 
 
44282
    { echo "$as_me:$LINENO: result: no" >&5
 
44283
echo "${ECHO_T}no" >&6; }
 
44284
    tst_links_strstr="no"
 
44285
 
 
44286
fi
 
44287
 
 
44288
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
44289
      conftest$ac_exeext conftest.$ac_ext
 
44290
  #
 
44291
  if test "$tst_links_strstr" = "yes"; then
 
44292
    { echo "$as_me:$LINENO: checking if strstr is prototyped" >&5
 
44293
echo $ECHO_N "checking if strstr is prototyped... $ECHO_C" >&6; }
 
44294
    cat >conftest.$ac_ext <<_ACEOF
 
44295
/* confdefs.h.  */
 
44296
_ACEOF
 
44297
cat confdefs.h >>conftest.$ac_ext
 
44298
cat >>conftest.$ac_ext <<_ACEOF
 
44299
/* end confdefs.h.  */
 
44300
 
 
44301
      $curl_includes_string
 
44302
 
 
44303
_ACEOF
 
44304
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
44305
  $EGREP "strstr" >/dev/null 2>&1; then
 
44306
 
 
44307
      { echo "$as_me:$LINENO: result: yes" >&5
 
44308
echo "${ECHO_T}yes" >&6; }
 
44309
      tst_proto_strstr="yes"
 
44310
 
 
44311
else
 
44312
 
 
44313
      { echo "$as_me:$LINENO: result: no" >&5
 
44314
echo "${ECHO_T}no" >&6; }
 
44315
      tst_proto_strstr="no"
 
44316
 
 
44317
fi
 
44318
rm -f conftest*
 
44319
 
 
44320
  fi
 
44321
  #
 
44322
  if test "$tst_proto_strstr" = "yes"; then
 
44323
    { echo "$as_me:$LINENO: checking if strstr is compilable" >&5
 
44324
echo $ECHO_N "checking if strstr is compilable... $ECHO_C" >&6; }
 
44325
    cat >conftest.$ac_ext <<_ACEOF
 
44326
 
 
44327
      /* confdefs.h.  */
 
44328
_ACEOF
 
44329
cat confdefs.h >>conftest.$ac_ext
 
44330
cat >>conftest.$ac_ext <<_ACEOF
 
44331
/* end confdefs.h.  */
 
44332
 
 
44333
        $curl_includes_string
 
44334
 
 
44335
int main (void)
 
44336
{
 
44337
 
 
44338
        if(0 != strstr(0, 0))
 
44339
          return 1;
 
44340
 
 
44341
 ;
 
44342
 return 0;
 
44343
}
 
44344
 
 
44345
_ACEOF
 
44346
rm -f conftest.$ac_objext
 
44347
if { (ac_try="$ac_compile"
 
44348
case "(($ac_try" in
 
44349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44350
  *) ac_try_echo=$ac_try;;
 
44351
esac
 
44352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44353
  (eval "$ac_compile") 2>conftest.er1
 
44354
  ac_status=$?
 
44355
  grep -v '^ *+' conftest.er1 >conftest.err
 
44356
  rm -f conftest.er1
 
44357
  cat conftest.err >&5
 
44358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44359
  (exit $ac_status); } && {
 
44360
         test -z "$ac_c_werror_flag" ||
 
44361
         test ! -s conftest.err
 
44362
       } && test -s conftest.$ac_objext; then
 
44363
 
 
44364
      { echo "$as_me:$LINENO: result: yes" >&5
 
44365
echo "${ECHO_T}yes" >&6; }
 
44366
      tst_compi_strstr="yes"
 
44367
 
 
44368
else
 
44369
  echo "$as_me: failed program was:" >&5
 
44370
sed 's/^/| /' conftest.$ac_ext >&5
 
44371
 
 
44372
 
 
44373
      { echo "$as_me:$LINENO: result: no" >&5
 
44374
echo "${ECHO_T}no" >&6; }
 
44375
      tst_compi_strstr="no"
 
44376
 
 
44377
fi
 
44378
 
 
44379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
44380
  fi
 
44381
  #
 
44382
  if test "$tst_compi_strstr" = "yes"; then
 
44383
    { echo "$as_me:$LINENO: checking if strstr usage allowed" >&5
 
44384
echo $ECHO_N "checking if strstr usage allowed... $ECHO_C" >&6; }
 
44385
    if test "x$curl_disallow_strstr" != "xyes"; then
 
44386
      { echo "$as_me:$LINENO: result: yes" >&5
 
44387
echo "${ECHO_T}yes" >&6; }
 
44388
      tst_allow_strstr="yes"
 
44389
    else
 
44390
      { echo "$as_me:$LINENO: result: no" >&5
 
44391
echo "${ECHO_T}no" >&6; }
 
44392
      tst_allow_strstr="no"
 
44393
    fi
 
44394
  fi
 
44395
  #
 
44396
  { echo "$as_me:$LINENO: checking if strstr might be used" >&5
 
44397
echo $ECHO_N "checking if strstr might be used... $ECHO_C" >&6; }
 
44398
  if test "$tst_links_strstr" = "yes" &&
 
44399
     test "$tst_proto_strstr" = "yes" &&
 
44400
     test "$tst_compi_strstr" = "yes" &&
 
44401
     test "$tst_allow_strstr" = "yes"; then
 
44402
    { echo "$as_me:$LINENO: result: yes" >&5
 
44403
echo "${ECHO_T}yes" >&6; }
 
44404
 
 
44405
cat >>confdefs.h <<_ACEOF
 
44406
#define HAVE_STRSTR 1
 
44407
_ACEOF
 
44408
 
 
44409
    ac_cv_func_strstr="yes"
 
44410
  else
 
44411
    { echo "$as_me:$LINENO: result: no" >&5
 
44412
echo "${ECHO_T}no" >&6; }
 
44413
    ac_cv_func_strstr="no"
 
44414
  fi
 
44415
 
 
44416
 
 
44417
    #
 
44418
  tst_links_strtok_r="unknown"
 
44419
  tst_proto_strtok_r="unknown"
 
44420
  tst_compi_strtok_r="unknown"
 
44421
  tst_allow_strtok_r="unknown"
 
44422
  #
 
44423
  { echo "$as_me:$LINENO: checking if strtok_r can be linked" >&5
 
44424
echo $ECHO_N "checking if strtok_r can be linked... $ECHO_C" >&6; }
 
44425
  cat >conftest.$ac_ext <<_ACEOF
 
44426
 
 
44427
    /* confdefs.h.  */
 
44428
_ACEOF
 
44429
cat confdefs.h >>conftest.$ac_ext
 
44430
cat >>conftest.$ac_ext <<_ACEOF
 
44431
/* end confdefs.h.  */
 
44432
 
 
44433
#define strtok_r innocuous_strtok_r
 
44434
#ifdef __STDC__
 
44435
# include <limits.h>
 
44436
#else
 
44437
# include <assert.h>
 
44438
#endif
 
44439
#undef strtok_r
 
44440
#ifdef __cplusplus
 
44441
extern "C"
 
44442
#endif
 
44443
char strtok_r ();
 
44444
#if defined __stub_strtok_r || defined __stub___strtok_r
 
44445
choke me
 
44446
#endif
 
44447
 
 
44448
int main (void)
 
44449
{
 
44450
return strtok_r ();
 
44451
 ;
 
44452
 return 0;
 
44453
}
 
44454
 
 
44455
_ACEOF
 
44456
rm -f conftest.$ac_objext conftest$ac_exeext
 
44457
if { (ac_try="$ac_link"
 
44458
case "(($ac_try" in
 
44459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44460
  *) ac_try_echo=$ac_try;;
 
44461
esac
 
44462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44463
  (eval "$ac_link") 2>conftest.er1
 
44464
  ac_status=$?
 
44465
  grep -v '^ *+' conftest.er1 >conftest.err
 
44466
  rm -f conftest.er1
 
44467
  cat conftest.err >&5
 
44468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44469
  (exit $ac_status); } && {
 
44470
         test -z "$ac_c_werror_flag" ||
 
44471
         test ! -s conftest.err
 
44472
       } && test -s conftest$ac_exeext &&
 
44473
       $as_test_x conftest$ac_exeext; then
 
44474
 
 
44475
    { echo "$as_me:$LINENO: result: yes" >&5
 
44476
echo "${ECHO_T}yes" >&6; }
 
44477
    tst_links_strtok_r="yes"
 
44478
 
 
44479
else
 
44480
  echo "$as_me: failed program was:" >&5
 
44481
sed 's/^/| /' conftest.$ac_ext >&5
 
44482
 
 
44483
 
 
44484
    { echo "$as_me:$LINENO: result: no" >&5
 
44485
echo "${ECHO_T}no" >&6; }
 
44486
    tst_links_strtok_r="no"
 
44487
 
 
44488
fi
 
44489
 
 
44490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
44491
      conftest$ac_exeext conftest.$ac_ext
 
44492
  #
 
44493
  if test "$tst_links_strtok_r" = "yes"; then
 
44494
    { echo "$as_me:$LINENO: checking if strtok_r is prototyped" >&5
 
44495
echo $ECHO_N "checking if strtok_r is prototyped... $ECHO_C" >&6; }
 
44496
    cat >conftest.$ac_ext <<_ACEOF
 
44497
/* confdefs.h.  */
 
44498
_ACEOF
 
44499
cat confdefs.h >>conftest.$ac_ext
 
44500
cat >>conftest.$ac_ext <<_ACEOF
 
44501
/* end confdefs.h.  */
 
44502
 
 
44503
      $curl_includes_string
 
44504
 
 
44505
_ACEOF
 
44506
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
44507
  $EGREP "strtok_r" >/dev/null 2>&1; then
 
44508
 
 
44509
      { echo "$as_me:$LINENO: result: yes" >&5
 
44510
echo "${ECHO_T}yes" >&6; }
 
44511
      tst_proto_strtok_r="yes"
 
44512
 
 
44513
else
 
44514
 
 
44515
      { echo "$as_me:$LINENO: result: no" >&5
 
44516
echo "${ECHO_T}no" >&6; }
 
44517
      tst_proto_strtok_r="no"
 
44518
 
 
44519
fi
 
44520
rm -f conftest*
 
44521
 
 
44522
  fi
 
44523
  #
 
44524
  if test "$tst_proto_strtok_r" = "yes"; then
 
44525
    { echo "$as_me:$LINENO: checking if strtok_r is compilable" >&5
 
44526
echo $ECHO_N "checking if strtok_r is compilable... $ECHO_C" >&6; }
 
44527
    cat >conftest.$ac_ext <<_ACEOF
 
44528
 
 
44529
      /* confdefs.h.  */
 
44530
_ACEOF
 
44531
cat confdefs.h >>conftest.$ac_ext
 
44532
cat >>conftest.$ac_ext <<_ACEOF
 
44533
/* end confdefs.h.  */
 
44534
 
 
44535
        $curl_includes_string
 
44536
 
 
44537
int main (void)
 
44538
{
 
44539
 
 
44540
        if(0 != strtok_r(0, 0, 0))
 
44541
          return 1;
 
44542
 
 
44543
 ;
 
44544
 return 0;
 
44545
}
 
44546
 
 
44547
_ACEOF
 
44548
rm -f conftest.$ac_objext
 
44549
if { (ac_try="$ac_compile"
 
44550
case "(($ac_try" in
 
44551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44552
  *) ac_try_echo=$ac_try;;
 
44553
esac
 
44554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44555
  (eval "$ac_compile") 2>conftest.er1
 
44556
  ac_status=$?
 
44557
  grep -v '^ *+' conftest.er1 >conftest.err
 
44558
  rm -f conftest.er1
 
44559
  cat conftest.err >&5
 
44560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44561
  (exit $ac_status); } && {
 
44562
         test -z "$ac_c_werror_flag" ||
 
44563
         test ! -s conftest.err
 
44564
       } && test -s conftest.$ac_objext; then
 
44565
 
 
44566
      { echo "$as_me:$LINENO: result: yes" >&5
 
44567
echo "${ECHO_T}yes" >&6; }
 
44568
      tst_compi_strtok_r="yes"
 
44569
 
 
44570
else
 
44571
  echo "$as_me: failed program was:" >&5
 
44572
sed 's/^/| /' conftest.$ac_ext >&5
 
44573
 
 
44574
 
 
44575
      { echo "$as_me:$LINENO: result: no" >&5
 
44576
echo "${ECHO_T}no" >&6; }
 
44577
      tst_compi_strtok_r="no"
 
44578
 
 
44579
fi
 
44580
 
 
44581
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
44582
  fi
 
44583
  #
 
44584
  if test "$tst_compi_strtok_r" = "yes"; then
 
44585
    { echo "$as_me:$LINENO: checking if strtok_r usage allowed" >&5
 
44586
echo $ECHO_N "checking if strtok_r usage allowed... $ECHO_C" >&6; }
 
44587
    if test "x$curl_disallow_strtok_r" != "xyes"; then
 
44588
      { echo "$as_me:$LINENO: result: yes" >&5
 
44589
echo "${ECHO_T}yes" >&6; }
 
44590
      tst_allow_strtok_r="yes"
 
44591
    else
 
44592
      { echo "$as_me:$LINENO: result: no" >&5
 
44593
echo "${ECHO_T}no" >&6; }
 
44594
      tst_allow_strtok_r="no"
 
44595
    fi
 
44596
  fi
 
44597
  #
 
44598
  { echo "$as_me:$LINENO: checking if strtok_r might be used" >&5
 
44599
echo $ECHO_N "checking if strtok_r might be used... $ECHO_C" >&6; }
 
44600
  if test "$tst_links_strtok_r" = "yes" &&
 
44601
     test "$tst_proto_strtok_r" = "yes" &&
 
44602
     test "$tst_compi_strtok_r" = "yes" &&
 
44603
     test "$tst_allow_strtok_r" = "yes"; then
 
44604
    { echo "$as_me:$LINENO: result: yes" >&5
 
44605
echo "${ECHO_T}yes" >&6; }
 
44606
 
 
44607
cat >>confdefs.h <<_ACEOF
 
44608
#define HAVE_STRTOK_R 1
 
44609
_ACEOF
 
44610
 
 
44611
    ac_cv_func_strtok_r="yes"
 
44612
  else
 
44613
    { echo "$as_me:$LINENO: result: no" >&5
 
44614
echo "${ECHO_T}no" >&6; }
 
44615
    ac_cv_func_strtok_r="no"
 
44616
  fi
 
44617
 
 
44618
 
 
44619
    #
 
44620
  tst_links_strtoll="unknown"
 
44621
  tst_proto_strtoll="unknown"
 
44622
  tst_compi_strtoll="unknown"
 
44623
  tst_allow_strtoll="unknown"
 
44624
  #
 
44625
  { echo "$as_me:$LINENO: checking if strtoll can be linked" >&5
 
44626
echo $ECHO_N "checking if strtoll can be linked... $ECHO_C" >&6; }
 
44627
  cat >conftest.$ac_ext <<_ACEOF
 
44628
 
 
44629
    /* confdefs.h.  */
 
44630
_ACEOF
 
44631
cat confdefs.h >>conftest.$ac_ext
 
44632
cat >>conftest.$ac_ext <<_ACEOF
 
44633
/* end confdefs.h.  */
 
44634
 
 
44635
#define strtoll innocuous_strtoll
 
44636
#ifdef __STDC__
 
44637
# include <limits.h>
 
44638
#else
 
44639
# include <assert.h>
 
44640
#endif
 
44641
#undef strtoll
 
44642
#ifdef __cplusplus
 
44643
extern "C"
 
44644
#endif
 
44645
char strtoll ();
 
44646
#if defined __stub_strtoll || defined __stub___strtoll
 
44647
choke me
 
44648
#endif
 
44649
 
 
44650
int main (void)
 
44651
{
 
44652
return strtoll ();
 
44653
 ;
 
44654
 return 0;
 
44655
}
 
44656
 
 
44657
_ACEOF
 
44658
rm -f conftest.$ac_objext conftest$ac_exeext
 
44659
if { (ac_try="$ac_link"
 
44660
case "(($ac_try" in
 
44661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44662
  *) ac_try_echo=$ac_try;;
 
44663
esac
 
44664
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44665
  (eval "$ac_link") 2>conftest.er1
 
44666
  ac_status=$?
 
44667
  grep -v '^ *+' conftest.er1 >conftest.err
 
44668
  rm -f conftest.er1
 
44669
  cat conftest.err >&5
 
44670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44671
  (exit $ac_status); } && {
 
44672
         test -z "$ac_c_werror_flag" ||
 
44673
         test ! -s conftest.err
 
44674
       } && test -s conftest$ac_exeext &&
 
44675
       $as_test_x conftest$ac_exeext; then
 
44676
 
 
44677
    { echo "$as_me:$LINENO: result: yes" >&5
 
44678
echo "${ECHO_T}yes" >&6; }
 
44679
    tst_links_strtoll="yes"
 
44680
 
 
44681
else
 
44682
  echo "$as_me: failed program was:" >&5
 
44683
sed 's/^/| /' conftest.$ac_ext >&5
 
44684
 
 
44685
 
 
44686
    { echo "$as_me:$LINENO: result: no" >&5
 
44687
echo "${ECHO_T}no" >&6; }
 
44688
    tst_links_strtoll="no"
 
44689
 
 
44690
fi
 
44691
 
 
44692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
44693
      conftest$ac_exeext conftest.$ac_ext
 
44694
  #
 
44695
  if test "$tst_links_strtoll" = "yes"; then
 
44696
    { echo "$as_me:$LINENO: checking if strtoll is prototyped" >&5
 
44697
echo $ECHO_N "checking if strtoll is prototyped... $ECHO_C" >&6; }
 
44698
    cat >conftest.$ac_ext <<_ACEOF
 
44699
/* confdefs.h.  */
 
44700
_ACEOF
 
44701
cat confdefs.h >>conftest.$ac_ext
 
44702
cat >>conftest.$ac_ext <<_ACEOF
 
44703
/* end confdefs.h.  */
 
44704
 
 
44705
      $curl_includes_stdlib
 
44706
 
 
44707
_ACEOF
 
44708
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
44709
  $EGREP "strtoll" >/dev/null 2>&1; then
 
44710
 
 
44711
      { echo "$as_me:$LINENO: result: yes" >&5
 
44712
echo "${ECHO_T}yes" >&6; }
 
44713
      tst_proto_strtoll="yes"
 
44714
 
 
44715
else
 
44716
 
 
44717
      { echo "$as_me:$LINENO: result: no" >&5
 
44718
echo "${ECHO_T}no" >&6; }
 
44719
      tst_proto_strtoll="no"
 
44720
 
 
44721
fi
 
44722
rm -f conftest*
 
44723
 
 
44724
  fi
 
44725
  #
 
44726
  if test "$tst_proto_strtoll" = "yes"; then
 
44727
    { echo "$as_me:$LINENO: checking if strtoll is compilable" >&5
 
44728
echo $ECHO_N "checking if strtoll is compilable... $ECHO_C" >&6; }
 
44729
    cat >conftest.$ac_ext <<_ACEOF
 
44730
 
 
44731
      /* confdefs.h.  */
 
44732
_ACEOF
 
44733
cat confdefs.h >>conftest.$ac_ext
 
44734
cat >>conftest.$ac_ext <<_ACEOF
 
44735
/* end confdefs.h.  */
 
44736
 
 
44737
        $curl_includes_stdlib
 
44738
 
 
44739
int main (void)
 
44740
{
 
44741
 
 
44742
        if(0 != strtoll(0, 0, 0))
 
44743
          return 1;
 
44744
 
 
44745
 ;
 
44746
 return 0;
 
44747
}
 
44748
 
 
44749
_ACEOF
 
44750
rm -f conftest.$ac_objext
 
44751
if { (ac_try="$ac_compile"
 
44752
case "(($ac_try" in
 
44753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44754
  *) ac_try_echo=$ac_try;;
 
44755
esac
 
44756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44757
  (eval "$ac_compile") 2>conftest.er1
 
44758
  ac_status=$?
 
44759
  grep -v '^ *+' conftest.er1 >conftest.err
 
44760
  rm -f conftest.er1
 
44761
  cat conftest.err >&5
 
44762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44763
  (exit $ac_status); } && {
 
44764
         test -z "$ac_c_werror_flag" ||
 
44765
         test ! -s conftest.err
 
44766
       } && test -s conftest.$ac_objext; then
 
44767
 
 
44768
      { echo "$as_me:$LINENO: result: yes" >&5
 
44769
echo "${ECHO_T}yes" >&6; }
 
44770
      tst_compi_strtoll="yes"
 
44771
 
 
44772
else
 
44773
  echo "$as_me: failed program was:" >&5
 
44774
sed 's/^/| /' conftest.$ac_ext >&5
 
44775
 
 
44776
 
 
44777
      { echo "$as_me:$LINENO: result: no" >&5
 
44778
echo "${ECHO_T}no" >&6; }
 
44779
      tst_compi_strtoll="no"
 
44780
 
 
44781
fi
 
44782
 
 
44783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
44784
  fi
 
44785
  #
 
44786
  if test "$tst_compi_strtoll" = "yes"; then
 
44787
    { echo "$as_me:$LINENO: checking if strtoll usage allowed" >&5
 
44788
echo $ECHO_N "checking if strtoll usage allowed... $ECHO_C" >&6; }
 
44789
    if test "x$curl_disallow_strtoll" != "xyes"; then
 
44790
      { echo "$as_me:$LINENO: result: yes" >&5
 
44791
echo "${ECHO_T}yes" >&6; }
 
44792
      tst_allow_strtoll="yes"
 
44793
    else
 
44794
      { echo "$as_me:$LINENO: result: no" >&5
 
44795
echo "${ECHO_T}no" >&6; }
 
44796
      tst_allow_strtoll="no"
 
44797
    fi
 
44798
  fi
 
44799
  #
 
44800
  { echo "$as_me:$LINENO: checking if strtoll might be used" >&5
 
44801
echo $ECHO_N "checking if strtoll might be used... $ECHO_C" >&6; }
 
44802
  if test "$tst_links_strtoll" = "yes" &&
 
44803
     test "$tst_proto_strtoll" = "yes" &&
 
44804
     test "$tst_compi_strtoll" = "yes" &&
 
44805
     test "$tst_allow_strtoll" = "yes"; then
 
44806
    { echo "$as_me:$LINENO: result: yes" >&5
 
44807
echo "${ECHO_T}yes" >&6; }
 
44808
 
 
44809
cat >>confdefs.h <<_ACEOF
 
44810
#define HAVE_STRTOLL 1
 
44811
_ACEOF
 
44812
 
 
44813
    ac_cv_func_strtoll="yes"
 
44814
  else
 
44815
    { echo "$as_me:$LINENO: result: no" >&5
 
44816
echo "${ECHO_T}no" >&6; }
 
44817
    ac_cv_func_strtoll="no"
 
44818
  fi
 
44819
 
 
44820
 
 
44821
curl_includes_sys_uio="\
 
44822
/* includes start */
 
44823
#ifdef HAVE_SYS_TYPES_H
 
44824
#  include <sys/types.h>
 
44825
#endif
 
44826
#ifdef HAVE_SYS_UIO_H
 
44827
#  include <sys/uio.h>
 
44828
#endif
 
44829
/* includes end */"
 
44830
 
 
44831
 
 
44832
for ac_header in sys/types.h sys/uio.h
 
44833
do
 
44834
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
44835
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
44836
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
44837
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
44838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
44839
else
 
44840
  cat >conftest.$ac_ext <<_ACEOF
 
44841
/* confdefs.h.  */
 
44842
_ACEOF
 
44843
cat confdefs.h >>conftest.$ac_ext
 
44844
cat >>conftest.$ac_ext <<_ACEOF
 
44845
/* end confdefs.h.  */
 
44846
$curl_includes_sys_uio
 
44847
 
 
44848
#include <$ac_header>
 
44849
_ACEOF
 
44850
rm -f conftest.$ac_objext
 
44851
if { (ac_try="$ac_compile"
 
44852
case "(($ac_try" in
 
44853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44854
  *) ac_try_echo=$ac_try;;
 
44855
esac
 
44856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44857
  (eval "$ac_compile") 2>conftest.er1
 
44858
  ac_status=$?
 
44859
  grep -v '^ *+' conftest.er1 >conftest.err
 
44860
  rm -f conftest.er1
 
44861
  cat conftest.err >&5
 
44862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44863
  (exit $ac_status); } && {
 
44864
         test -z "$ac_c_werror_flag" ||
 
44865
         test ! -s conftest.err
 
44866
       } && test -s conftest.$ac_objext; then
 
44867
  eval "$as_ac_Header=yes"
 
44868
else
 
44869
  echo "$as_me: failed program was:" >&5
 
44870
sed 's/^/| /' conftest.$ac_ext >&5
 
44871
 
 
44872
        eval "$as_ac_Header=no"
 
44873
fi
 
44874
 
 
44875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
44876
fi
 
44877
ac_res=`eval echo '${'$as_ac_Header'}'`
 
44878
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
44879
echo "${ECHO_T}$ac_res" >&6; }
 
44880
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
44881
  cat >>confdefs.h <<_ACEOF
 
44882
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
44883
_ACEOF
 
44884
 
 
44885
fi
 
44886
 
 
44887
done
 
44888
 
 
44889
 
 
44890
 
 
44891
    #
 
44892
  tst_links_writev="unknown"
 
44893
  tst_proto_writev="unknown"
 
44894
  tst_compi_writev="unknown"
 
44895
  tst_allow_writev="unknown"
 
44896
  #
 
44897
  { echo "$as_me:$LINENO: checking if writev can be linked" >&5
 
44898
echo $ECHO_N "checking if writev can be linked... $ECHO_C" >&6; }
 
44899
  cat >conftest.$ac_ext <<_ACEOF
 
44900
 
 
44901
    /* confdefs.h.  */
 
44902
_ACEOF
 
44903
cat confdefs.h >>conftest.$ac_ext
 
44904
cat >>conftest.$ac_ext <<_ACEOF
 
44905
/* end confdefs.h.  */
 
44906
 
 
44907
#define writev innocuous_writev
 
44908
#ifdef __STDC__
 
44909
# include <limits.h>
 
44910
#else
 
44911
# include <assert.h>
 
44912
#endif
 
44913
#undef writev
 
44914
#ifdef __cplusplus
 
44915
extern "C"
 
44916
#endif
 
44917
char writev ();
 
44918
#if defined __stub_writev || defined __stub___writev
 
44919
choke me
 
44920
#endif
 
44921
 
 
44922
int main (void)
 
44923
{
 
44924
return writev ();
 
44925
 ;
 
44926
 return 0;
 
44927
}
 
44928
 
 
44929
_ACEOF
 
44930
rm -f conftest.$ac_objext conftest$ac_exeext
 
44931
if { (ac_try="$ac_link"
 
44932
case "(($ac_try" in
 
44933
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
44934
  *) ac_try_echo=$ac_try;;
 
44935
esac
 
44936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
44937
  (eval "$ac_link") 2>conftest.er1
 
44938
  ac_status=$?
 
44939
  grep -v '^ *+' conftest.er1 >conftest.err
 
44940
  rm -f conftest.er1
 
44941
  cat conftest.err >&5
 
44942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
44943
  (exit $ac_status); } && {
 
44944
         test -z "$ac_c_werror_flag" ||
 
44945
         test ! -s conftest.err
 
44946
       } && test -s conftest$ac_exeext &&
 
44947
       $as_test_x conftest$ac_exeext; then
 
44948
 
 
44949
    { echo "$as_me:$LINENO: result: yes" >&5
 
44950
echo "${ECHO_T}yes" >&6; }
 
44951
    tst_links_writev="yes"
 
44952
 
 
44953
else
 
44954
  echo "$as_me: failed program was:" >&5
 
44955
sed 's/^/| /' conftest.$ac_ext >&5
 
44956
 
 
44957
 
 
44958
    { echo "$as_me:$LINENO: result: no" >&5
 
44959
echo "${ECHO_T}no" >&6; }
 
44960
    tst_links_writev="no"
 
44961
 
 
44962
fi
 
44963
 
 
44964
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
44965
      conftest$ac_exeext conftest.$ac_ext
 
44966
  #
 
44967
  if test "$tst_links_writev" = "yes"; then
 
44968
    { echo "$as_me:$LINENO: checking if writev is prototyped" >&5
 
44969
echo $ECHO_N "checking if writev is prototyped... $ECHO_C" >&6; }
 
44970
    cat >conftest.$ac_ext <<_ACEOF
 
44971
/* confdefs.h.  */
 
44972
_ACEOF
 
44973
cat confdefs.h >>conftest.$ac_ext
 
44974
cat >>conftest.$ac_ext <<_ACEOF
 
44975
/* end confdefs.h.  */
 
44976
 
 
44977
      $curl_includes_sys_uio
 
44978
 
 
44979
_ACEOF
 
44980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
44981
  $EGREP "writev" >/dev/null 2>&1; then
 
44982
 
 
44983
      { echo "$as_me:$LINENO: result: yes" >&5
 
44984
echo "${ECHO_T}yes" >&6; }
 
44985
      tst_proto_writev="yes"
 
44986
 
 
44987
else
 
44988
 
 
44989
      { echo "$as_me:$LINENO: result: no" >&5
 
44990
echo "${ECHO_T}no" >&6; }
 
44991
      tst_proto_writev="no"
 
44992
 
 
44993
fi
 
44994
rm -f conftest*
 
44995
 
 
44996
  fi
 
44997
  #
 
44998
  if test "$tst_proto_writev" = "yes"; then
 
44999
    { echo "$as_me:$LINENO: checking if writev is compilable" >&5
 
45000
echo $ECHO_N "checking if writev is compilable... $ECHO_C" >&6; }
 
45001
    cat >conftest.$ac_ext <<_ACEOF
 
45002
 
 
45003
      /* confdefs.h.  */
 
45004
_ACEOF
 
45005
cat confdefs.h >>conftest.$ac_ext
 
45006
cat >>conftest.$ac_ext <<_ACEOF
 
45007
/* end confdefs.h.  */
 
45008
 
 
45009
        $curl_includes_sys_uio
 
45010
 
 
45011
int main (void)
 
45012
{
 
45013
 
 
45014
        if(0 != writev(0, 0, 0))
 
45015
          return 1;
 
45016
 
 
45017
 ;
 
45018
 return 0;
 
45019
}
 
45020
 
 
45021
_ACEOF
 
45022
rm -f conftest.$ac_objext
 
45023
if { (ac_try="$ac_compile"
 
45024
case "(($ac_try" in
 
45025
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
45026
  *) ac_try_echo=$ac_try;;
 
45027
esac
 
45028
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
45029
  (eval "$ac_compile") 2>conftest.er1
 
45030
  ac_status=$?
 
45031
  grep -v '^ *+' conftest.er1 >conftest.err
 
45032
  rm -f conftest.er1
 
45033
  cat conftest.err >&5
 
45034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
45035
  (exit $ac_status); } && {
 
45036
         test -z "$ac_c_werror_flag" ||
 
45037
         test ! -s conftest.err
 
45038
       } && test -s conftest.$ac_objext; then
 
45039
 
 
45040
      { echo "$as_me:$LINENO: result: yes" >&5
 
45041
echo "${ECHO_T}yes" >&6; }
 
45042
      tst_compi_writev="yes"
 
45043
 
 
45044
else
 
45045
  echo "$as_me: failed program was:" >&5
 
45046
sed 's/^/| /' conftest.$ac_ext >&5
 
45047
 
 
45048
 
 
45049
      { echo "$as_me:$LINENO: result: no" >&5
 
45050
echo "${ECHO_T}no" >&6; }
 
45051
      tst_compi_writev="no"
 
45052
 
 
45053
fi
 
45054
 
 
45055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
45056
  fi
 
45057
  #
 
45058
  if test "$tst_compi_writev" = "yes"; then
 
45059
    { echo "$as_me:$LINENO: checking if writev usage allowed" >&5
 
45060
echo $ECHO_N "checking if writev usage allowed... $ECHO_C" >&6; }
 
45061
    if test "x$curl_disallow_writev" != "xyes"; then
 
45062
      { echo "$as_me:$LINENO: result: yes" >&5
 
45063
echo "${ECHO_T}yes" >&6; }
 
45064
      tst_allow_writev="yes"
 
45065
    else
 
45066
      { echo "$as_me:$LINENO: result: no" >&5
 
45067
echo "${ECHO_T}no" >&6; }
 
45068
      tst_allow_writev="no"
 
45069
    fi
 
45070
  fi
 
45071
  #
 
45072
  { echo "$as_me:$LINENO: checking if writev might be used" >&5
 
45073
echo $ECHO_N "checking if writev might be used... $ECHO_C" >&6; }
 
45074
  if test "$tst_links_writev" = "yes" &&
 
45075
     test "$tst_proto_writev" = "yes" &&
 
45076
     test "$tst_compi_writev" = "yes" &&
 
45077
     test "$tst_allow_writev" = "yes"; then
 
45078
    { echo "$as_me:$LINENO: result: yes" >&5
 
45079
echo "${ECHO_T}yes" >&6; }
 
45080
 
 
45081
cat >>confdefs.h <<_ACEOF
 
45082
#define HAVE_WRITEV 1
 
45083
_ACEOF
 
45084
 
 
45085
    ac_cv_func_writev="yes"
 
45086
  else
 
45087
    { echo "$as_me:$LINENO: result: no" >&5
 
45088
echo "${ECHO_T}no" >&6; }
 
45089
    ac_cv_func_writev="no"
 
45090
  fi
 
45091
 
 
45092
 
 
45093
 
37269
45094
case $host in
37270
45095
  *msdosdjgpp)
37271
45096
     ac_cv_func_pipe=no
37294
45119
 
37295
45120
 
37296
45121
 
37297
 
 
37298
 
 
37299
 
 
37300
 
 
37301
 
 
37302
 
 
37303
 
 
37304
 
 
37305
 
 
37306
 
 
37307
 
 
37308
 
 
37309
 
 
37310
 
 
37311
 
 
37312
 
 
37313
 
 
37314
 
for ac_func in strtoll \
37315
 
                socket \
37316
 
                strdup \
37317
 
                strstr \
37318
 
                strcasestr \
37319
 
                strtok_r \
37320
 
                uname \
37321
 
                strcasecmp \
37322
 
                stricmp \
37323
 
                strcmpi \
37324
 
                gethostbyaddr \
37325
 
                gettimeofday \
37326
 
                inet_addr \
37327
 
                inet_ntoa \
37328
 
                inet_pton \
37329
 
                perror \
37330
 
                closesocket \
37331
 
                siginterrupt \
37332
 
                sigaction \
37333
 
                signal \
37334
 
                getpass_r \
37335
 
                strlcat \
37336
 
                getpwuid \
37337
 
                geteuid \
37338
 
                getppid \
37339
 
                utime \
37340
 
                sigsetjmp \
37341
 
                basename \
37342
 
                setlocale \
37343
 
                ftruncate \
37344
 
                pipe \
37345
 
                poll \
37346
 
                getprotobyname \
37347
 
                getrlimit \
37348
 
                setrlimit \
37349
 
                fork \
37350
 
                setmode
 
45122
for ac_func in basename \
 
45123
  closesocket \
 
45124
  fork \
 
45125
  geteuid \
 
45126
  getpass_r \
 
45127
  getppid \
 
45128
  getprotobyname \
 
45129
  getpwuid \
 
45130
  getrlimit \
 
45131
  gettimeofday \
 
45132
  inet_addr \
 
45133
  perror \
 
45134
  pipe \
 
45135
  setlocale \
 
45136
  setmode \
 
45137
  setrlimit \
 
45138
  socket \
 
45139
  uname \
 
45140
  utime
 
45141
 
37351
45142
do
37352
45143
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37353
45144
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
37361
45152
cat confdefs.h >>conftest.$ac_ext
37362
45153
cat >>conftest.$ac_ext <<_ACEOF
37363
45154
/* end confdefs.h.  */
37364
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37365
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
45155
 
37366
45156
#define $ac_func innocuous_$ac_func
37367
 
 
37368
 
/* System header to define __stub macros and hopefully few prototypes,
37369
 
    which can conflict with char $ac_func (); below.
37370
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371
 
    <limits.h> exists even on freestanding compilers.  */
37372
 
 
37373
45157
#ifdef __STDC__
37374
45158
# include <limits.h>
37375
45159
#else
37376
45160
# include <assert.h>
37377
45161
#endif
37378
 
 
37379
45162
#undef $ac_func
37380
 
 
37381
 
/* Override any GCC internal prototype to avoid an error.
37382
 
   Use char because int might match the return type of a GCC
37383
 
   builtin and then its argument prototype would still apply.  */
37384
45163
#ifdef __cplusplus
37385
45164
extern "C"
37386
45165
#endif
37387
45166
char $ac_func ();
37388
 
/* The GNU C library defines this for functions which it implements
37389
 
    to always fail with ENOSYS.  Some functions are actually named
37390
 
    something starting with __ and the normal name is an alias.  */
37391
45167
#if defined __stub_$ac_func || defined __stub___$ac_func
37392
45168
choke me
37393
45169
#endif
37394
45170
 
37395
 
int
37396
 
main ()
 
45171
int main (void)
37397
45172
{
37398
45173
return $ac_func ();
37399
 
  ;
37400
 
  return 0;
 
45174
 ;
 
45175
 return 0;
37401
45176
}
37402
45177
_ACEOF
37403
45178
rm -f conftest.$ac_objext conftest$ac_exeext
37437
45212
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37438
45213
_ACEOF
37439
45214
 
 
45215
 
37440
45216
else
 
45217
 
37441
45218
  func="$ac_func"
37442
 
eval skipcheck=\$skipcheck_$func
37443
 
if test "x$skipcheck" != "xyes"; then
37444
 
  { echo "$as_me:$LINENO: checking deeper for $func" >&5
 
45219
  eval skipcheck=\$skipcheck_$func
 
45220
  if test "x$skipcheck" != "xyes"; then
 
45221
    { echo "$as_me:$LINENO: checking deeper for $func" >&5
37445
45222
echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6; }
37446
 
  cat >conftest.$ac_ext <<_ACEOF
37447
 
/* confdefs.h.  */
 
45223
    cat >conftest.$ac_ext <<_ACEOF
 
45224
 
 
45225
      /* confdefs.h.  */
37448
45226
_ACEOF
37449
45227
cat confdefs.h >>conftest.$ac_ext
37450
45228
cat >>conftest.$ac_ext <<_ACEOF
37451
45229
/* end confdefs.h.  */
37452
45230
 
37453
 
int
37454
 
main ()
 
45231
 
 
45232
int main (void)
37455
45233
{
37456
 
 $func ();
37457
 
  ;
37458
 
  return 0;
 
45234
 
 
45235
        $func ();
 
45236
 
 
45237
 ;
 
45238
 return 0;
37459
45239
}
 
45240
 
37460
45241
_ACEOF
37461
45242
rm -f conftest.$ac_objext conftest$ac_exeext
37462
45243
if { (ac_try="$ac_link"
37476
45257
         test ! -s conftest.err
37477
45258
       } && test -s conftest$ac_exeext &&
37478
45259
       $as_test_x conftest$ac_exeext; then
37479
 
  { echo "$as_me:$LINENO: result: yes!" >&5
37480
 
echo "${ECHO_T}yes!" >&6; }
37481
 
               eval "ac_cv_func_$func=yes"
37482
 
               def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
 
45260
 
 
45261
      { echo "$as_me:$LINENO: result: yes" >&5
 
45262
echo "${ECHO_T}yes" >&6; }
 
45263
      eval "ac_cv_func_$func=yes"
37483
45264
 
37484
45265
cat >>confdefs.h <<_ACEOF
37485
 
#define $def 1
 
45266
#define `echo "HAVE_$func" | $as_tr_cpp` 1
37486
45267
_ACEOF
37487
45268
 
 
45269
 
37488
45270
else
37489
45271
  echo "$as_me: failed program was:" >&5
37490
45272
sed 's/^/| /' conftest.$ac_ext >&5
37491
45273
 
37492
 
        { echo "$as_me:$LINENO: result: but still no" >&5
 
45274
 
 
45275
      { echo "$as_me:$LINENO: result: but still no" >&5
37493
45276
echo "${ECHO_T}but still no" >&6; }
37494
45277
 
37495
45278
fi
37496
45279
 
37497
45280
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37498
45281
      conftest$ac_exeext conftest.$ac_ext
37499
 
fi
 
45282
  fi
37500
45283
 
37501
45284
fi
37502
45285
done
37503
45286
 
37504
45287
 
37505
 
if test "$ac_cv_func_sigsetjmp" != "yes"; then
37506
 
  { echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
37507
 
echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6; }
37508
 
  cat >conftest.$ac_ext <<_ACEOF
37509
 
 
37510
 
    /* confdefs.h.  */
37511
 
_ACEOF
37512
 
cat confdefs.h >>conftest.$ac_ext
37513
 
cat >>conftest.$ac_ext <<_ACEOF
37514
 
/* end confdefs.h.  */
37515
 
 
37516
 
#include <setjmp.h>
37517
 
 
37518
 
int
37519
 
main ()
37520
 
{
37521
 
 
37522
 
      sigjmp_buf jmpenv;
37523
 
      sigsetjmp(jmpenv, 1);
37524
 
 
37525
 
  ;
37526
 
  return 0;
37527
 
}
37528
 
 
37529
 
_ACEOF
37530
 
rm -f conftest.$ac_objext conftest$ac_exeext
37531
 
if { (ac_try="$ac_link"
37532
 
case "(($ac_try" in
37533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37534
 
  *) ac_try_echo=$ac_try;;
37535
 
esac
37536
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37537
 
  (eval "$ac_link") 2>conftest.er1
37538
 
  ac_status=$?
37539
 
  grep -v '^ *+' conftest.er1 >conftest.err
37540
 
  rm -f conftest.er1
37541
 
  cat conftest.err >&5
37542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543
 
  (exit $ac_status); } && {
37544
 
         test -z "$ac_c_werror_flag" ||
37545
 
         test ! -s conftest.err
37546
 
       } && test -s conftest$ac_exeext &&
37547
 
       $as_test_x conftest$ac_exeext; then
37548
 
 
37549
 
    { echo "$as_me:$LINENO: result: yes" >&5
37550
 
echo "${ECHO_T}yes" >&6; }
37551
 
 
37552
 
cat >>confdefs.h <<\_ACEOF
37553
 
#define HAVE_SIGSETJMP 1
37554
 
_ACEOF
37555
 
 
37556
 
 
37557
 
else
37558
 
  echo "$as_me: failed program was:" >&5
37559
 
sed 's/^/| /' conftest.$ac_ext >&5
37560
 
 
37561
 
 
37562
 
    { echo "$as_me:$LINENO: result: no" >&5
37563
 
echo "${ECHO_T}no" >&6; }
37564
 
 
37565
 
fi
37566
 
 
37567
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37568
 
      conftest$ac_exeext conftest.$ac_ext
37569
 
fi
37570
45288
 
37571
45289
{ echo "$as_me:$LINENO: checking whether basename is declared" >&5
37572
45290
echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
37590
45308
#endif
37591
45309
 
37592
45310
 
37593
 
int
37594
 
main ()
 
45311
int main (void)
37595
45312
{
37596
45313
#ifndef basename
37597
45314
  (void) basename;
37598
45315
#endif
37599
45316
 
37600
 
  ;
37601
 
  return 0;
 
45317
 ;
 
45318
 return 0;
37602
45319
}
37603
45320
_ACEOF
37604
45321
rm -f conftest.$ac_objext
37641
45358
fi
37642
45359
 
37643
45360
 
37644
 
{ echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
37645
 
echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6; }
37646
 
if test "${ac_cv_have_decl_inet_pton+set}" = set; then
37647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
37648
 
else
37649
 
  cat >conftest.$ac_ext <<_ACEOF
37650
 
/* confdefs.h.  */
37651
 
_ACEOF
37652
 
cat confdefs.h >>conftest.$ac_ext
37653
 
cat >>conftest.$ac_ext <<_ACEOF
37654
 
/* end confdefs.h.  */
37655
 
 
37656
 
#ifdef HAVE_ARPA_INET_H
37657
 
#include <arpa/inet.h>
37658
 
#endif
37659
 
 
37660
 
 
37661
 
 
37662
 
int
37663
 
main ()
37664
 
{
37665
 
#ifndef inet_pton
37666
 
  (void) inet_pton;
37667
 
#endif
37668
 
 
37669
 
  ;
37670
 
  return 0;
37671
 
}
37672
 
_ACEOF
37673
 
rm -f conftest.$ac_objext
37674
 
if { (ac_try="$ac_compile"
37675
 
case "(($ac_try" in
37676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677
 
  *) ac_try_echo=$ac_try;;
37678
 
esac
37679
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680
 
  (eval "$ac_compile") 2>conftest.er1
37681
 
  ac_status=$?
37682
 
  grep -v '^ *+' conftest.er1 >conftest.err
37683
 
  rm -f conftest.er1
37684
 
  cat conftest.err >&5
37685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686
 
  (exit $ac_status); } && {
37687
 
         test -z "$ac_c_werror_flag" ||
37688
 
         test ! -s conftest.err
37689
 
       } && test -s conftest.$ac_objext; then
37690
 
  ac_cv_have_decl_inet_pton=yes
37691
 
else
37692
 
  echo "$as_me: failed program was:" >&5
37693
 
sed 's/^/| /' conftest.$ac_ext >&5
37694
 
 
37695
 
        ac_cv_have_decl_inet_pton=no
37696
 
fi
37697
 
 
37698
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37699
 
fi
37700
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
37701
 
echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6; }
37702
 
if test $ac_cv_have_decl_inet_pton = yes; then
37703
 
  :
37704
 
else
37705
 
 
37706
 
cat >>confdefs.h <<\_ACEOF
37707
 
#define HAVE_NO_INET_PTON_PROTO 1
37708
 
_ACEOF
37709
 
 
37710
 
fi
37711
 
 
37712
45361
 
37713
45362
 
37714
45363
 
37868
45517
cat confdefs.h >>conftest.$ac_ext
37869
45518
cat >>conftest.$ac_ext <<_ACEOF
37870
45519
/* end confdefs.h.  */
37871
 
/* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
37872
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
45520
 
37873
45521
#define getnameinfo innocuous_getnameinfo
37874
 
 
37875
 
/* System header to define __stub macros and hopefully few prototypes,
37876
 
    which can conflict with char getnameinfo (); below.
37877
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37878
 
    <limits.h> exists even on freestanding compilers.  */
37879
 
 
37880
45522
#ifdef __STDC__
37881
45523
# include <limits.h>
37882
45524
#else
37883
45525
# include <assert.h>
37884
45526
#endif
37885
 
 
37886
45527
#undef getnameinfo
37887
 
 
37888
 
/* Override any GCC internal prototype to avoid an error.
37889
 
   Use char because int might match the return type of a GCC
37890
 
   builtin and then its argument prototype would still apply.  */
37891
45528
#ifdef __cplusplus
37892
45529
extern "C"
37893
45530
#endif
37894
45531
char getnameinfo ();
37895
 
/* The GNU C library defines this for functions which it implements
37896
 
    to always fail with ENOSYS.  Some functions are actually named
37897
 
    something starting with __ and the normal name is an alias.  */
37898
45532
#if defined __stub_getnameinfo || defined __stub___getnameinfo
37899
45533
choke me
37900
45534
#endif
37901
45535
 
37902
 
int
37903
 
main ()
 
45536
int main (void)
37904
45537
{
37905
45538
return getnameinfo ();
37906
 
  ;
37907
 
  return 0;
 
45539
 ;
 
45540
 return 0;
37908
45541
}
37909
45542
 
37910
45543
_ACEOF
37957
45590
/* end confdefs.h.  */
37958
45591
 
37959
45592
 
37960
 
int
37961
 
main ()
 
45593
int main (void)
37962
45594
{
37963
45595
 
37964
45596
        getnameinfo();
37965
45597
 
37966
 
  ;
37967
 
  return 0;
 
45598
 ;
 
45599
 return 0;
37968
45600
}
37969
45601
 
37970
45602
_ACEOF
38041
45673
#endif
38042
45674
#endif
38043
45675
 
38044
 
int
38045
 
main ()
 
45676
int main (void)
38046
45677
{
38047
45678
 
38048
45679
        getnameinfo(0, 0, 0, 0, 0, 0, 0);
38049
45680
 
38050
 
  ;
38051
 
  return 0;
 
45681
 ;
 
45682
 return 0;
38052
45683
}
38053
45684
 
38054
45685
_ACEOF
38102
45733
        for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38103
45734
          for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38104
45735
            for gni_arg7 in 'int' 'unsigned int'; do
38105
 
              cat >conftest.$ac_ext <<_ACEOF
 
45736
              if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
 
45737
                cat >conftest.$ac_ext <<_ACEOF
38106
45738
 
38107
 
                /* confdefs.h.  */
 
45739
                  /* confdefs.h.  */
38108
45740
_ACEOF
38109
45741
cat confdefs.h >>conftest.$ac_ext
38110
45742
cat >>conftest.$ac_ext <<_ACEOF
38139
45771
#endif
38140
45772
#define GNICALLCONV
38141
45773
#endif
38142
 
                  extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38143
 
                                         char *, $gni_arg46,
38144
 
                                         char *, $gni_arg46,
38145
 
                                         $gni_arg7);
 
45774
                    extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
 
45775
                                           char *, $gni_arg46,
 
45776
                                           char *, $gni_arg46,
 
45777
                                           $gni_arg7);
38146
45778
 
38147
 
int
38148
 
main ()
 
45779
int main (void)
38149
45780
{
38150
45781
 
38151
 
                  $gni_arg2 salen=0;
38152
 
                  $gni_arg46 hostlen=0;
38153
 
                  $gni_arg46 servlen=0;
38154
 
                  $gni_arg7 flags=0;
38155
 
                  int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
 
45782
                    $gni_arg2 salen=0;
 
45783
                    $gni_arg46 hostlen=0;
 
45784
                    $gni_arg46 servlen=0;
 
45785
                    $gni_arg7 flags=0;
 
45786
                    int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38156
45787
 
38157
 
  ;
38158
 
  return 0;
 
45788
 ;
 
45789
 return 0;
38159
45790
}
38160
45791
 
38161
45792
_ACEOF
38177
45808
         test ! -s conftest.err
38178
45809
       } && test -s conftest.$ac_objext; then
38179
45810
 
38180
 
                 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38181
 
                 break 4
 
45811
                  curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38182
45812
 
38183
45813
else
38184
45814
  echo "$as_me: failed program was:" >&5
38188
45818
fi
38189
45819
 
38190
45820
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
45821
              fi
38191
45822
            done
38192
45823
          done
38193
45824
        done
38195
45826
 
38196
45827
fi
38197
45828
{ echo "$as_me:$LINENO: result: $curl_cv_func_getnameinfo_args" >&5
38198
 
echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC_CACHE_CHECK
 
45829
echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38199
45830
    if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38200
45831
      { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38201
45832
echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38276
45907
 
38277
45908
 
38278
45909
if test "$ipv6" = "yes"; then
38279
 
 
38280
 
  { echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
38281
 
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
38282
 
if test "${ac_cv_working_getaddrinfo+set}" = set; then
38283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
38284
 
else
38285
 
 
38286
 
  if test "$cross_compiling" = yes; then
38287
 
 
38288
 
  ac_cv_working_getaddrinfo="yes"
38289
 
 
38290
 
else
38291
 
  cat >conftest.$ac_ext <<_ACEOF
38292
 
/* confdefs.h.  */
38293
 
_ACEOF
38294
 
cat confdefs.h >>conftest.$ac_ext
38295
 
cat >>conftest.$ac_ext <<_ACEOF
38296
 
/* end confdefs.h.  */
38297
 
 
38298
 
#include <netdb.h>
38299
 
#include <sys/types.h>
38300
 
#include <sys/socket.h>
38301
 
 
38302
 
int main(void)
38303
 
{
38304
 
    struct addrinfo hints, *ai;
38305
 
    int error;
38306
 
 
38307
 
    memset(&hints, 0, sizeof(hints));
38308
 
    hints.ai_flags = AI_NUMERICHOST;
38309
 
    hints.ai_family = AF_UNSPEC;
38310
 
    hints.ai_socktype = SOCK_STREAM;
38311
 
    error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
38312
 
    if (error) {
38313
 
        return 1;
38314
 
    }
38315
 
    return 0;
38316
 
}
38317
 
 
38318
 
_ACEOF
38319
 
rm -f conftest$ac_exeext
38320
 
if { (ac_try="$ac_link"
38321
 
case "(($ac_try" in
38322
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38323
 
  *) ac_try_echo=$ac_try;;
38324
 
esac
38325
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38326
 
  (eval "$ac_link") 2>&5
38327
 
  ac_status=$?
38328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38329
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38330
 
  { (case "(($ac_try" in
38331
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38332
 
  *) ac_try_echo=$ac_try;;
38333
 
esac
38334
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38335
 
  (eval "$ac_try") 2>&5
38336
 
  ac_status=$?
38337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338
 
  (exit $ac_status); }; }; then
38339
 
 
38340
 
  ac_cv_working_getaddrinfo="yes"
38341
 
 
38342
 
else
38343
 
  echo "$as_me: program exited with status $ac_status" >&5
38344
 
echo "$as_me: failed program was:" >&5
38345
 
sed 's/^/| /' conftest.$ac_ext >&5
38346
 
 
38347
 
( exit $ac_status )
38348
 
 
38349
 
  ac_cv_working_getaddrinfo="no"
38350
 
 
38351
 
fi
38352
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38353
 
fi
38354
 
 
38355
 
 
38356
 
fi
38357
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
38358
 
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
38359
 
if test "$ac_cv_working_getaddrinfo" = "yes"; then
38360
 
 
38361
 
cat >>confdefs.h <<\_ACEOF
38362
 
#define HAVE_GETADDRINFO 1
38363
 
_ACEOF
38364
 
 
 
45910
  if test "$ac_cv_func_getaddrinfo" = "yes"; then
38365
45911
 
38366
45912
cat >>confdefs.h <<\_ACEOF
38367
45913
#define ENABLE_IPV6 1
38368
45914
_ACEOF
38369
45915
 
38370
 
 
38371
 
  IPV6_ENABLED=1
38372
 
 
38373
 
fi
38374
 
 
 
45916
    IPV6_ENABLED=1
 
45917
 
 
45918
  fi
38375
45919
 
38376
45920
 
38377
45921
 
38547
46091
#include <sys/socket.h>
38548
46092
#include <netdb.h>
38549
46093
 
38550
 
int
38551
 
main ()
 
46094
int main (void)
38552
46095
{
38553
46096
 
38554
46097
          unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38555
46098
 
38556
 
  ;
38557
 
  return 0;
 
46099
 ;
 
46100
 return 0;
38558
46101
}
38559
46102
 
38560
46103
_ACEOF
38587
46130
 
38588
46131
fi
38589
46132
 
38590
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC_COMPILE_IFELSE
 
46133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38591
46134
 
38592
46135
else
38593
46136
  cat >conftest.$ac_ext <<_ACEOF
38598
46141
cat >>conftest.$ac_ext <<_ACEOF
38599
46142
/* end confdefs.h.  */
38600
46143
 
 
46144
#ifdef HAVE_STDLIB_H
 
46145
#include <stdlib.h>
 
46146
#endif
38601
46147
#ifdef HAVE_STDIO_H
38602
46148
#include <stdio.h>
38603
46149
#endif
38617
46163
#include <arpa/inet.h>
38618
46164
#endif
38619
46165
 
38620
 
int
38621
 
main ()
 
46166
int main (void)
38622
46167
{
38623
46168
 
38624
46169
#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38652
46197
        return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38653
46198
#endif
38654
46199
 
38655
 
  ;
38656
 
  return 0;
38657
 
} # AC_LANG_PROGRAM
 
46200
 ;
 
46201
 return 0;
 
46202
} # AC-LANG-PROGRAM
38658
46203
 
38659
46204
_ACEOF
38660
46205
rm -f conftest$ac_exeext
38695
46240
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38696
46241
fi
38697
46242
 
38698
 
 # AC_RUN_IFELSE
 
46243
 # AC-RUN-IFELSE
38699
46244
 
38700
46245
fi
38701
46246
{ echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
38702
 
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC_CACHE_CHECK
 
46247
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38703
46248
  case "$ac_cv_working_ni_withscopeid" in
38704
46249
    yes)
38705
46250
 
38712
46257
 
38713
46258
fi
38714
46259
 
38715
 
{ echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
38716
 
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
38717
 
disable_poll=no
38718
 
case $host in
38719
 
  *-*-darwin*)
38720
 
    disable_poll="yes";
38721
 
    ;;
38722
 
  *)
38723
 
    ;;
38724
 
esac
38725
 
{ echo "$as_me:$LINENO: result: $disable_poll" >&5
38726
 
echo "${ECHO_T}$disable_poll" >&6; }
38727
 
 
38728
 
if test "$disable_poll" = "no"; then
38729
 
 
38730
 
      if test "$ac_cv_func_poll" = "yes"; then
38731
 
    { echo "$as_me:$LINENO: checking if poll works with NULL inputs" >&5
38732
 
echo $ECHO_N "checking if poll works with NULL inputs... $ECHO_C" >&6; }
38733
 
    if test "$cross_compiling" = yes; then
38734
 
  { echo "$as_me:$LINENO: result: cross-compiling assumes yes" >&5
38735
 
echo "${ECHO_T}cross-compiling assumes yes" >&6; }
38736
 
 
38737
 
cat >>confdefs.h <<\_ACEOF
38738
 
#define HAVE_POLL_FINE 1
38739
 
_ACEOF
38740
 
 
38741
 
 
38742
 
else
38743
 
  cat >conftest.$ac_ext <<_ACEOF
38744
 
 
38745
 
#ifdef HAVE_SYS_POLL_H
38746
 
#include <sys/poll.h>
38747
 
#elif defined(HAVE_POLL_H)
38748
 
#include <poll.h>
38749
 
#endif
38750
 
 
38751
 
  int main(void)
38752
 
  {
38753
 
    /* make this return 0 == timeout since there's nothing to read from */
38754
 
    return poll((void *)0, 0, 10 /*ms*/);
38755
 
  }
38756
 
 
38757
 
_ACEOF
38758
 
rm -f conftest$ac_exeext
38759
 
if { (ac_try="$ac_link"
38760
 
case "(($ac_try" in
38761
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38762
 
  *) ac_try_echo=$ac_try;;
38763
 
esac
38764
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38765
 
  (eval "$ac_link") 2>&5
38766
 
  ac_status=$?
38767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38769
 
  { (case "(($ac_try" in
38770
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771
 
  *) ac_try_echo=$ac_try;;
38772
 
esac
38773
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774
 
  (eval "$ac_try") 2>&5
38775
 
  ac_status=$?
38776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38777
 
  (exit $ac_status); }; }; then
38778
 
  { echo "$as_me:$LINENO: result: yes" >&5
38779
 
echo "${ECHO_T}yes" >&6; }
38780
 
 
38781
 
cat >>confdefs.h <<\_ACEOF
38782
 
#define HAVE_POLL_FINE 1
38783
 
_ACEOF
38784
 
 
38785
 
else
38786
 
  echo "$as_me: program exited with status $ac_status" >&5
38787
 
echo "$as_me: failed program was:" >&5
38788
 
sed 's/^/| /' conftest.$ac_ext >&5
38789
 
 
38790
 
( exit $ac_status )
38791
 
{ echo "$as_me:$LINENO: result: no" >&5
38792
 
echo "${ECHO_T}no" >&6; }
38793
 
fi
38794
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38795
 
fi
38796
 
 
38797
 
   fi fi
 
46260
 
 
46261
    { echo "$as_me:$LINENO: checking whether to enable non-blocking communications" >&5
 
46262
echo $ECHO_N "checking whether to enable non-blocking communications... $ECHO_C" >&6; }
 
46263
  OPT_NONBLOCKING="default"
 
46264
  # Check whether --enable-nonblocking was given.
 
46265
if test "${enable_nonblocking+set}" = set; then
 
46266
  enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
 
46267
fi
 
46268
 
 
46269
  case "$OPT_NONBLOCKING" in
 
46270
    no)
 
46271
            want_nonblocking="no"
 
46272
      ;;
 
46273
    default)
 
46274
            want_nonblocking="yes"
 
46275
      ;;
 
46276
    *)
 
46277
            want_nonblocking="yes"
 
46278
      ;;
 
46279
  esac
 
46280
  { echo "$as_me:$LINENO: result: $want_nonblocking" >&5
 
46281
echo "${ECHO_T}$want_nonblocking" >&6; }
 
46282
 
 
46283
 
 
46284
              #
 
46285
  tst_method="unknown"
 
46286
  if test "$want_nonblocking" = "yes"; then
 
46287
    { echo "$as_me:$LINENO: checking how to set a socket into non-blocking mode" >&5
 
46288
echo $ECHO_N "checking how to set a socket into non-blocking mode... $ECHO_C" >&6; }
 
46289
    if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
 
46290
      tst_method="fcntl O_NONBLOCK"
 
46291
    elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
 
46292
      tst_method="ioctl FIONBIO"
 
46293
    elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
 
46294
      tst_method="ioctlsocket FIONBIO"
 
46295
    elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
 
46296
      tst_method="IoctlSocket FIONBIO"
 
46297
    elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
 
46298
      tst_method="setsockopt SO_NONBLOCK"
 
46299
    fi
 
46300
    { echo "$as_me:$LINENO: result: $tst_method" >&5
 
46301
echo "${ECHO_T}$tst_method" >&6; }
 
46302
    if test "$tst_method" = "unknown"; then
 
46303
      { echo "$as_me:$LINENO: WARNING: cannot determine non-blocking socket method." >&5
 
46304
echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
 
46305
    fi
 
46306
  fi
 
46307
  if test "$tst_method" = "unknown"; then
 
46308
 
 
46309
cat >>confdefs.h <<_ACEOF
 
46310
#define USE_BLOCKING_SOCKETS 1
 
46311
_ACEOF
 
46312
 
 
46313
    { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled." >&5
 
46314
echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
 
46315
  fi
 
46316
 
 
46317
 
38798
46318
 
38799
46319
# Extract the first word of "perl", so it can be a program name with args.
38800
46320
set dummy perl; ac_word=$2
39004
46524
             void curl_docalloc() { }
39005
46525
             void curl_socket() { }
39006
46526
 
39007
 
int
39008
 
main ()
 
46527
int main (void)
39009
46528
{
39010
46529
 
39011
46530
             ares_channel channel;
39012
46531
             ares_cancel(channel); /* added in 1.2.0 */
39013
46532
             ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
39014
46533
 
39015
 
  ;
39016
 
  return 0;
 
46534
 ;
 
46535
 return 0;
39017
46536
}
39018
46537
 
39019
46538
_ACEOF
39126
46645
fi
39127
46646
 
39128
46647
 
39129
 
{ echo "$as_me:$LINENO: checking whether to enable debug options" >&5
39130
 
echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6; }
39131
 
# Check whether --enable-debug was given.
39132
 
if test "${enable_debug+set}" = set; then
39133
 
  enableval=$enable_debug;  case "$enableval" in
39134
 
  no)
39135
 
       { echo "$as_me:$LINENO: result: no" >&5
39136
 
echo "${ECHO_T}no" >&6; }
39137
 
       ;;
39138
 
  *)   { echo "$as_me:$LINENO: result: yes" >&5
39139
 
echo "${ECHO_T}yes" >&6; }
39140
 
 
39141
 
    CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
39142
 
    CFLAGS="$CFLAGS -g"
39143
 
 
39144
 
 
39145
 
    if test "z$ICC" = "z"; then
39146
 
 
39147
 
    ICC="no"
39148
 
    { echo "$as_me:$LINENO: checking for icc in use" >&5
39149
 
echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
39150
 
    if test "$GCC" = "yes"; then
39151
 
              cat >conftest.$ac_ext <<_ACEOF
39152
 
/* confdefs.h.  */
39153
 
_ACEOF
39154
 
cat confdefs.h >>conftest.$ac_ext
39155
 
cat >>conftest.$ac_ext <<_ACEOF
39156
 
/* end confdefs.h.  */
39157
 
__INTEL_COMPILER
39158
 
_ACEOF
39159
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39160
 
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
39161
 
                    ICC="no"
39162
 
else
39163
 
           ICC="yes"
39164
 
         { echo "$as_me:$LINENO: result: yes" >&5
39165
 
echo "${ECHO_T}yes" >&6; }
39166
 
 
39167
 
 
39168
 
fi
39169
 
rm -f conftest*
39170
 
 
39171
 
    fi
39172
 
    if test "$ICC" = "no"; then
39173
 
        # this is not ICC
39174
 
        { echo "$as_me:$LINENO: result: no" >&5
39175
 
echo "${ECHO_T}no" >&6; }
39176
 
    fi
39177
 
 
39178
 
    fi
39179
 
 
39180
 
    if test "$GCC" = "yes"; then
39181
 
 
39182
 
              { echo "$as_me:$LINENO: checking gcc version" >&5
39183
 
echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
39184
 
       gccver=`$CC -dumpversion`
39185
 
       num1=`echo $gccver | cut -d . -f1`
39186
 
       num2=`echo $gccver | cut -d . -f2`
39187
 
       gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
39188
 
       { echo "$as_me:$LINENO: result: $gccver" >&5
39189
 
echo "${ECHO_T}$gccver" >&6; }
39190
 
 
39191
 
       if test "$ICC" = "yes"; then
39192
 
 
39193
 
 
39194
 
         WARN="-wd279,269,981,1418,1419"
39195
 
 
39196
 
         if test "$gccnum" -gt "600"; then
39197
 
                        WARN="-Wall $WARN"
39198
 
         fi
39199
 
       else                   WARN="-W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs -Winline -Wmissing-prototypes"
39200
 
 
39201
 
 
39202
 
         if test "$gccnum" -ge "207"; then
39203
 
                      WARN="$WARN -Wmissing-declarations"
39204
 
         fi
39205
 
 
39206
 
         if test "$gccnum" -gt "295"; then
39207
 
                                            WARN="$WARN -Wundef -Wno-long-long -Wsign-compare -Wshadow -Wno-multichar"
39208
 
         fi
39209
 
 
39210
 
         if test "$gccnum" -ge "296"; then
39211
 
                      WARN="$WARN -Wfloat-equal"
39212
 
         fi
39213
 
 
39214
 
         if test "$gccnum" -gt "296"; then
39215
 
                      WARN="$WARN -Wno-format-nonliteral"
39216
 
         fi
39217
 
 
39218
 
 
39219
 
         if test "$gccnum" -ge "303"; then
39220
 
                      WARN="$WARN -Wendif-labels -Wstrict-prototypes"
39221
 
         fi
39222
 
 
39223
 
         if test "$gccnum" -ge "304"; then
39224
 
           # try these on gcc 3.4
39225
 
           WARN="$WARN -Wdeclaration-after-statement"
39226
 
         fi
39227
 
 
39228
 
         for flag in $CPPFLAGS; do
39229
 
           case "$flag" in
39230
 
            -I*)
39231
 
                                                        add=`echo $flag | sed 's/^-I/-isystem /g'`
39232
 
              WARN="$WARN $add"
39233
 
              ;;
39234
 
           esac
39235
 
         done
39236
 
 
39237
 
       fi
39238
 
       CFLAGS="$CFLAGS $WARN"
39239
 
 
39240
 
      { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
39241
 
echo "$as_me: Added this set of compiler options: $WARN" >&6;}
39242
 
 
39243
 
    else
39244
 
      { echo "$as_me:$LINENO: Added no extra compiler options" >&5
39245
 
echo "$as_me: Added no extra compiler options" >&6;}
39246
 
 
39247
 
    fi
39248
 
        NEWFLAGS=""
39249
 
    for flag in $CFLAGS; do
39250
 
      case "$flag" in
39251
 
      -O*)
39252
 
                ;;
39253
 
      *)
39254
 
        NEWFLAGS="$NEWFLAGS $flag"
39255
 
        ;;
39256
 
      esac
39257
 
    done
39258
 
    CFLAGS=$NEWFLAGS
39259
 
 
39260
 
 
39261
 
       ;;
39262
 
  esac
39263
 
 
39264
 
else
39265
 
  { echo "$as_me:$LINENO: result: no" >&5
39266
 
echo "${ECHO_T}no" >&6; }
39267
 
 
39268
 
fi
39269
 
 
39270
 
 
39271
46648
{ echo "$as_me:$LINENO: checking whether to enable cryptographic authentication methods" >&5
39272
46649
echo $ECHO_N "checking whether to enable cryptographic authentication methods... $ECHO_C" >&6; }
39273
46650
# Check whether --enable-crypto-auth was given.
39379
46756
fi
39380
46757
 
39381
46758
 
 
46759
 
 
46760
{ echo "$as_me:$LINENO: checking whether to enforce SONAME bump" >&5
 
46761
echo $ECHO_N "checking whether to enforce SONAME bump... $ECHO_C" >&6; }
 
46762
# Check whether --enable-soname-bump was given.
 
46763
if test "${enable_soname_bump+set}" = set; then
 
46764
  enableval=$enable_soname_bump;  case "$enableval" in
 
46765
  yes)   { echo "$as_me:$LINENO: result: yes" >&5
 
46766
echo "${ECHO_T}yes" >&6; }
 
46767
         soname_bump=yes
 
46768
         ;;
 
46769
  *)
 
46770
         { echo "$as_me:$LINENO: result: no" >&5
 
46771
echo "${ECHO_T}no" >&6; }
 
46772
         ;;
 
46773
  esac
 
46774
else
 
46775
  { echo "$as_me:$LINENO: result: $soname_bump" >&5
 
46776
echo "${ECHO_T}$soname_bump" >&6; }
 
46777
 
 
46778
fi
 
46779
 
 
46780
 
 
46781
 
 
46782
if test x$soname_bump = xyes; then
 
46783
  SONAME_BUMP_TRUE=
 
46784
  SONAME_BUMP_FALSE='#'
 
46785
else
 
46786
  SONAME_BUMP_TRUE='#'
 
46787
  SONAME_BUMP_FALSE=
 
46788
fi
 
46789
 
 
46790
 
 
46791
 
39382
46792
if test ! -z "$winsock_LIB"; then
39383
46793
 
39384
46794
 
39404
46814
fi
39405
46815
 
39406
46816
 
 
46817
 
 
46818
if test "x$USE_SSLEAY" = "x1"; then
 
46819
  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
 
46820
elif test -n "$SSL_ENABLED"; then
 
46821
  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
 
46822
fi
 
46823
if test "@KRB4_ENABLED@" = "x1"; then
 
46824
  SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
 
46825
fi
 
46826
if test "x$IPV6_ENABLED" = "x1"; then
 
46827
  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
 
46828
fi
 
46829
if test "x$HAVE_LIBZ" = "x1"; then
 
46830
  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
 
46831
fi
 
46832
if test "x$HAVE_ARES" = "x1"; then
 
46833
  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
 
46834
fi
 
46835
if test "x$IDN_ENABLED" = "x1"; then
 
46836
  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
 
46837
fi
 
46838
if test "x$USE_WINDOWS_SSPI" = "x1"; then
 
46839
  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
 
46840
fi
 
46841
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" -o "x$GNUTLS_ENABLED" = "x1"; then
 
46842
  SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
 
46843
fi
 
46844
 
 
46845
 
 
46846
 
 
46847
if test "x$CURL_DISABLE_HTTP" != "x1"; then
 
46848
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
 
46849
  if test "x$SSL_ENABLED" = "x1"; then
 
46850
    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
 
46851
  fi
 
46852
fi
 
46853
if test "x$CURL_DISABLE_FTP" != "x1"; then
 
46854
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
 
46855
  if test "x$SSL_ENABLED" = "x1"; then
 
46856
    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
 
46857
  fi
 
46858
fi
 
46859
if test "x$CURL_DISABLE_FILE" != "x1"; then
 
46860
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
 
46861
fi
 
46862
if test "x$CURL_DISABLE_TELNET" != "x1"; then
 
46863
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
 
46864
fi
 
46865
if test "x$CURL_DISABLE_LDAP" != "x1"; then
 
46866
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
 
46867
fi
 
46868
if test "x$CURL_DISABLE_LDAPS" != "x1"; then
 
46869
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
 
46870
fi
 
46871
if test "x$CURL_DISABLE_DICT" != "x1"; then
 
46872
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
 
46873
fi
 
46874
if test "x$CURL_DISABLE_TFTP" != "x1"; then
 
46875
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
 
46876
fi
 
46877
if test "x$USE_LIBSSH2" = "x1"; then
 
46878
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
 
46879
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
 
46880
fi
 
46881
 
 
46882
 
 
46883
 
 
46884
 
 
46885
squeeze CFLAGS
 
46886
squeeze CPPFLAGS
 
46887
squeeze DEFS
 
46888
squeeze LDFLAGS
 
46889
squeeze LIBS
 
46890
 
 
46891
squeeze CURL_LIBS
 
46892
squeeze LIBCURL_LIBS
 
46893
squeeze TEST_SERVER_LIBS
 
46894
 
39407
46895
ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
39408
46896
 
39409
46897
cat >confcache <<\_ACEOF
39523
47011
Usually this means the macro was only invoked conditionally." >&2;}
39524
47012
   { (exit 1); exit 1; }; }
39525
47013
fi
39526
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39527
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39528
 
Usually this means the macro was only invoked conditionally." >&5
39529
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39530
 
Usually this means the macro was only invoked conditionally." >&2;}
39531
 
   { (exit 1); exit 1; }; }
39532
 
fi
39533
47014
if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
39534
47015
  { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
39535
47016
Usually this means the macro was only invoked conditionally." >&5
39572
47053
Usually this means the macro was only invoked conditionally." >&2;}
39573
47054
   { (exit 1); exit 1; }; }
39574
47055
fi
 
47056
if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
 
47057
  { { echo "$as_me:$LINENO: error: conditional \"SONAME_BUMP\" was never defined.
 
47058
Usually this means the macro was only invoked conditionally." >&5
 
47059
echo "$as_me: error: conditional \"SONAME_BUMP\" was never defined.
 
47060
Usually this means the macro was only invoked conditionally." >&2;}
 
47061
   { (exit 1); exit 1; }; }
 
47062
fi
39575
47063
if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39576
47064
  { { echo "$as_me:$LINENO: error: conditional \"CROSSCOMPILING\" was never defined.
39577
47065
Usually this means the macro was only invoked conditionally." >&5
39630
47118
as_cr_digits='0123456789'
39631
47119
as_cr_alnum=$as_cr_Letters$as_cr_digits
39632
47120
 
39633
 
# The user is always right.
39634
 
if test "${PATH_SEPARATOR+set}" != set; then
39635
 
  echo "#! /bin/sh" >conf$$.sh
39636
 
  echo  "exit 0"   >>conf$$.sh
39637
 
  chmod +x conf$$.sh
39638
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39639
 
    PATH_SEPARATOR=';'
39640
 
  else
39641
 
    PATH_SEPARATOR=:
39642
 
  fi
39643
 
  rm -f conf$$.sh
39644
 
fi
39645
47121
 
39646
47122
# Support unset when possible.
39647
47123
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40037
47513
#
40038
47514
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40039
47515
 
 
47516
 
 
47517
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
47518
# if CDPATH is set.
 
47519
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
47520
 
 
47521
sed_quote_subst='$sed_quote_subst'
 
47522
double_quote_subst='$double_quote_subst'
 
47523
delay_variable_subst='$delay_variable_subst'
 
47524
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
47525
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
47526
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
47527
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
47528
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
47529
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
47530
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
47531
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
47532
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
47533
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
47534
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
47535
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
47536
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
47537
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
47538
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
47539
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
47540
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
47541
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
47542
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
47543
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
47544
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
47545
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
47546
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
47547
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
47548
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
47549
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
47550
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
47551
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
47552
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
47553
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
47554
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47555
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
47556
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
47557
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
47558
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
47559
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
47560
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
47561
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47562
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47563
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47564
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
47565
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
47566
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
47567
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
47568
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
47569
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
47570
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"`'
 
47571
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"`'
 
47572
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
47573
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
47574
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
47575
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
47576
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
47577
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
47578
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
47579
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
47580
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
47581
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
47582
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
47583
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
47584
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
47585
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
47586
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
47587
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
47588
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47589
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47590
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
47591
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
47592
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47593
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47594
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
47595
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47596
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47597
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47598
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47599
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47600
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47601
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
47602
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
47603
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
47604
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47605
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
47606
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
47607
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
47608
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
47609
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
47610
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
47611
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
47612
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
47613
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
47614
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
47615
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
47616
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47617
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
47618
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
47619
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47620
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47621
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
47622
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
47623
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
47624
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
47625
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
47626
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
47627
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
47628
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47629
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47630
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47631
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47632
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47633
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
47634
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
47635
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
47636
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47637
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
47638
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
47639
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
47640
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
47641
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
47642
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
47643
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
47644
 
 
47645
LTCC='$LTCC'
 
47646
LTCFLAGS='$LTCFLAGS'
 
47647
compiler='$compiler_DEFAULT'
 
47648
 
 
47649
# Quote evaled strings.
 
47650
for var in SED \
 
47651
GREP \
 
47652
EGREP \
 
47653
FGREP \
 
47654
LD \
 
47655
NM \
 
47656
LN_S \
 
47657
lt_SP2NL \
 
47658
lt_NL2SP \
 
47659
reload_flag \
 
47660
deplibs_check_method \
 
47661
file_magic_cmd \
 
47662
AR \
 
47663
AR_FLAGS \
 
47664
STRIP \
 
47665
RANLIB \
 
47666
CC \
 
47667
CFLAGS \
 
47668
compiler \
 
47669
lt_cv_sys_global_symbol_pipe \
 
47670
lt_cv_sys_global_symbol_to_cdecl \
 
47671
lt_cv_sys_global_symbol_to_c_name_address \
 
47672
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
47673
SHELL \
 
47674
ECHO \
 
47675
lt_prog_compiler_no_builtin_flag \
 
47676
lt_prog_compiler_wl \
 
47677
lt_prog_compiler_pic \
 
47678
lt_prog_compiler_static \
 
47679
lt_cv_prog_compiler_c_o \
 
47680
need_locks \
 
47681
DSYMUTIL \
 
47682
NMEDIT \
 
47683
LIPO \
 
47684
OTOOL \
 
47685
OTOOL64 \
 
47686
shrext_cmds \
 
47687
export_dynamic_flag_spec \
 
47688
whole_archive_flag_spec \
 
47689
compiler_needs_object \
 
47690
with_gnu_ld \
 
47691
allow_undefined_flag \
 
47692
no_undefined_flag \
 
47693
hardcode_libdir_flag_spec \
 
47694
hardcode_libdir_flag_spec_ld \
 
47695
hardcode_libdir_separator \
 
47696
fix_srcfile_path \
 
47697
exclude_expsyms \
 
47698
include_expsyms \
 
47699
file_list_spec \
 
47700
variables_saved_for_relink \
 
47701
libname_spec \
 
47702
library_names_spec \
 
47703
soname_spec \
 
47704
finish_eval \
 
47705
old_striplib \
 
47706
striplib; do
 
47707
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
47708
    *[\\\\\\\`\\"\\\$]*)
 
47709
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
47710
      ;;
 
47711
    *)
 
47712
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
47713
      ;;
 
47714
    esac
 
47715
done
 
47716
 
 
47717
# Double-quote double-evaled strings.
 
47718
for var in reload_cmds \
 
47719
old_postinstall_cmds \
 
47720
old_postuninstall_cmds \
 
47721
old_archive_cmds \
 
47722
extract_expsyms_cmds \
 
47723
old_archive_from_new_cmds \
 
47724
old_archive_from_expsyms_cmds \
 
47725
archive_cmds \
 
47726
archive_expsym_cmds \
 
47727
module_cmds \
 
47728
module_expsym_cmds \
 
47729
export_symbols_cmds \
 
47730
prelink_cmds \
 
47731
postinstall_cmds \
 
47732
postuninstall_cmds \
 
47733
finish_cmds \
 
47734
sys_lib_search_path_spec \
 
47735
sys_lib_dlsearch_path_spec; do
 
47736
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
47737
    *[\\\\\\\`\\"\\\$]*)
 
47738
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
47739
      ;;
 
47740
    *)
 
47741
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
47742
      ;;
 
47743
    esac
 
47744
done
 
47745
 
 
47746
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
47747
case \$lt_ECHO in
 
47748
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
47749
  ;;
 
47750
esac
 
47751
 
 
47752
ac_aux_dir='$ac_aux_dir'
 
47753
xsi_shell='$xsi_shell'
 
47754
lt_shell_append='$lt_shell_append'
 
47755
 
 
47756
# See if we are running on zsh, and set the options which allow our
 
47757
# commands through without removal of \ escapes INIT.
 
47758
if test -n "\${ZSH_VERSION+set}" ; then
 
47759
   setopt NO_GLOB_SUBST
 
47760
fi
 
47761
 
 
47762
 
 
47763
    PACKAGE='$PACKAGE'
 
47764
    VERSION='$VERSION'
 
47765
    TIMESTAMP='$TIMESTAMP'
 
47766
    RM='$RM'
 
47767
    ofile='$ofile'
 
47768
 
 
47769
 
 
47770
 
 
47771
 
40040
47772
_ACEOF
40041
47773
 
40042
47774
cat >>$CONFIG_STATUS <<\_ACEOF
40047
47779
  case $ac_config_target in
40048
47780
    "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
40049
47781
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
47782
    "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40050
47783
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
47784
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40051
47785
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40052
47786
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40053
47787
    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40139
47873
ac_delim='%!_!# '
40140
47874
for ac_last_try in false false false false false :; do
40141
47875
  cat >conf$$subs.sed <<_ACEOF
 
47876
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
47877
PATH!$PATH$ac_delim
40142
47878
SHELL!$SHELL$ac_delim
40143
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40144
47879
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40145
47880
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40146
47881
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40180
47915
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
40181
47916
MAINT!$MAINT$ac_delim
40182
47917
SED!$SED$ac_delim
 
47918
GREP!$GREP$ac_delim
 
47919
EGREP!$EGREP$ac_delim
40183
47920
AR!$AR$ac_delim
40184
47921
libext!$libext$ac_delim
40185
47922
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40232
47969
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40233
47970
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40234
47971
CPP!$CPP$ac_delim
40235
 
GREP!$GREP$ac_delim
40236
 
EGREP!$EGREP$ac_delim
40237
 
LN_S!$LN_S$ac_delim
40238
 
ECHO!$ECHO$ac_delim
 
47972
AS!$AS$ac_delim
40239
47973
_ACEOF
40240
47974
 
40241
47975
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40277
48011
ac_delim='%!_!# '
40278
48012
for ac_last_try in false false false false false :; do
40279
48013
  cat >conf$$subs.sed <<_ACEOF
 
48014
DLLTOOL!$DLLTOOL$ac_delim
 
48015
OBJDUMP!$OBJDUMP$ac_delim
 
48016
LIBTOOL!$LIBTOOL$ac_delim
 
48017
FGREP!$FGREP$ac_delim
 
48018
LD!$LD$ac_delim
 
48019
DUMPBIN!$DUMPBIN$ac_delim
 
48020
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
48021
NM!$NM$ac_delim
 
48022
LN_S!$LN_S$ac_delim
40280
48023
RANLIB!$RANLIB$ac_delim
 
48024
lt_ECHO!$lt_ECHO$ac_delim
40281
48025
DSYMUTIL!$DSYMUTIL$ac_delim
40282
48026
NMEDIT!$NMEDIT$ac_delim
40283
 
DLLTOOL!$DLLTOOL$ac_delim
40284
 
AS!$AS$ac_delim
40285
 
OBJDUMP!$OBJDUMP$ac_delim
40286
 
LIBTOOL!$LIBTOOL$ac_delim
 
48027
LIPO!$LIPO$ac_delim
 
48028
OTOOL!$OTOOL$ac_delim
 
48029
OTOOL64!$OTOOL64$ac_delim
40287
48030
NO_UNDEFINED_TRUE!$NO_UNDEFINED_TRUE$ac_delim
40288
48031
NO_UNDEFINED_FALSE!$NO_UNDEFINED_FALSE$ac_delim
40289
48032
MIMPURE_TRUE!$MIMPURE_TRUE$ac_delim
40296
48039
CURL_DISABLE_FILE!$CURL_DISABLE_FILE$ac_delim
40297
48040
CURL_DISABLE_LDAP!$CURL_DISABLE_LDAP$ac_delim
40298
48041
CURL_DISABLE_LDAPS!$CURL_DISABLE_LDAPS$ac_delim
 
48042
CURL_DISABLE_PROXY!$CURL_DISABLE_PROXY$ac_delim
40299
48043
CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
40300
48044
CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
40301
48045
CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
40311
48055
HAVE_PK11_CREATEGENERICOBJECT!$HAVE_PK11_CREATEGENERICOBJECT$ac_delim
40312
48056
USE_NSS!$USE_NSS$ac_delim
40313
48057
SSL_ENABLED!$SSL_ENABLED$ac_delim
 
48058
CURL_CA_BUNDLE!$CURL_CA_BUNDLE$ac_delim
40314
48059
IDN_ENABLED!$IDN_ENABLED$ac_delim
40315
48060
IPV6_ENABLED!$IPV6_ENABLED$ac_delim
40316
48061
PERL!$PERL$ac_delim
40321
48066
HAVE_ARES!$HAVE_ARES$ac_delim
40322
48067
subdirs!$subdirs$ac_delim
40323
48068
USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
 
48069
SONAME_BUMP_TRUE!$SONAME_BUMP_TRUE$ac_delim
 
48070
SONAME_BUMP_FALSE!$SONAME_BUMP_FALSE$ac_delim
40324
48071
LIBCURL_LIBS!$LIBCURL_LIBS$ac_delim
40325
48072
CURL_LIBS!$CURL_LIBS$ac_delim
40326
48073
TEST_SERVER_LIBS!$TEST_SERVER_LIBS$ac_delim
40327
48074
CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
40328
48075
CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
 
48076
SUPPORT_FEATURES!$SUPPORT_FEATURES$ac_delim
 
48077
SUPPORT_PROTOCOLS!$SUPPORT_PROTOCOLS$ac_delim
40329
48078
LIBOBJS!$LIBOBJS$ac_delim
40330
48079
LTLIBOBJS!$LTLIBOBJS$ac_delim
40331
48080
_ACEOF
40332
48081
 
40333
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
 
48082
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
40334
48083
    break
40335
48084
  elif $ac_last_try; then
40336
48085
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40889
48638
  done
40890
48639
done
40891
48640
 ;;
 
48641
    "libtool":C)
 
48642
 
 
48643
    # See if we are running on zsh, and set the options which allow our
 
48644
    # commands through without removal of \ escapes.
 
48645
    if test -n "${ZSH_VERSION+set}" ; then
 
48646
      setopt NO_GLOB_SUBST
 
48647
    fi
 
48648
 
 
48649
    cfgfile="${ofile}T"
 
48650
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
48651
    $RM "$cfgfile"
 
48652
 
 
48653
    cat <<_LT_EOF >> "$cfgfile"
 
48654
#! $SHELL
 
48655
 
 
48656
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
48657
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
48658
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
48659
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
48660
#
 
48661
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
48662
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
48663
#   Written by Gordon Matzigkeit, 1996
 
48664
#
 
48665
#   This file is part of GNU Libtool.
 
48666
#
 
48667
# GNU Libtool is free software; you can redistribute it and/or
 
48668
# modify it under the terms of the GNU General Public License as
 
48669
# published by the Free Software Foundation; either version 2 of
 
48670
# the License, or (at your option) any later version.
 
48671
#
 
48672
# As a special exception to the GNU General Public License,
 
48673
# if you distribute this file as part of a program or library that
 
48674
# is built using GNU Libtool, you may include this file under the
 
48675
# same distribution terms that you use for the rest of that program.
 
48676
#
 
48677
# GNU Libtool is distributed in the hope that it will be useful,
 
48678
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
48679
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
48680
# GNU General Public License for more details.
 
48681
#
 
48682
# You should have received a copy of the GNU General Public License
 
48683
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
48684
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
48685
# obtained by writing to the Free Software Foundation, Inc.,
 
48686
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
48687
 
 
48688
 
 
48689
# The names of the tagged configurations supported by this script.
 
48690
available_tags=""
 
48691
 
 
48692
# ### BEGIN LIBTOOL CONFIG
 
48693
 
 
48694
# Assembler program.
 
48695
AS=$AS
 
48696
 
 
48697
# DLL creation program.
 
48698
DLLTOOL=$DLLTOOL
 
48699
 
 
48700
# Object dumper program.
 
48701
OBJDUMP=$OBJDUMP
 
48702
 
 
48703
# Which release of libtool.m4 was used?
 
48704
macro_version=$macro_version
 
48705
macro_revision=$macro_revision
 
48706
 
 
48707
# Whether or not to build shared libraries.
 
48708
build_libtool_libs=$enable_shared
 
48709
 
 
48710
# Whether or not to build static libraries.
 
48711
build_old_libs=$enable_static
 
48712
 
 
48713
# What type of objects to build.
 
48714
pic_mode=$pic_mode
 
48715
 
 
48716
# Whether or not to optimize for fast installation.
 
48717
fast_install=$enable_fast_install
 
48718
 
 
48719
# The host system.
 
48720
host_alias=$host_alias
 
48721
host=$host
 
48722
host_os=$host_os
 
48723
 
 
48724
# The build system.
 
48725
build_alias=$build_alias
 
48726
build=$build
 
48727
build_os=$build_os
 
48728
 
 
48729
# A sed program that does not truncate output.
 
48730
SED=$lt_SED
 
48731
 
 
48732
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
48733
Xsed="\$SED -e 1s/^X//"
 
48734
 
 
48735
# A grep program that handles long lines.
 
48736
GREP=$lt_GREP
 
48737
 
 
48738
# An ERE matcher.
 
48739
EGREP=$lt_EGREP
 
48740
 
 
48741
# A literal string matcher.
 
48742
FGREP=$lt_FGREP
 
48743
 
 
48744
# A BSD- or MS-compatible name lister.
 
48745
NM=$lt_NM
 
48746
 
 
48747
# Whether we need soft or hard links.
 
48748
LN_S=$lt_LN_S
 
48749
 
 
48750
# What is the maximum length of a command?
 
48751
max_cmd_len=$max_cmd_len
 
48752
 
 
48753
# Object file suffix (normally "o").
 
48754
objext=$ac_objext
 
48755
 
 
48756
# Executable file suffix (normally "").
 
48757
exeext=$exeext
 
48758
 
 
48759
# whether the shell understands "unset".
 
48760
lt_unset=$lt_unset
 
48761
 
 
48762
# turn spaces into newlines.
 
48763
SP2NL=$lt_lt_SP2NL
 
48764
 
 
48765
# turn newlines into spaces.
 
48766
NL2SP=$lt_lt_NL2SP
 
48767
 
 
48768
# How to create reloadable object files.
 
48769
reload_flag=$lt_reload_flag
 
48770
reload_cmds=$lt_reload_cmds
 
48771
 
 
48772
# Method to check whether dependent libraries are shared objects.
 
48773
deplibs_check_method=$lt_deplibs_check_method
 
48774
 
 
48775
# Command to use when deplibs_check_method == "file_magic".
 
48776
file_magic_cmd=$lt_file_magic_cmd
 
48777
 
 
48778
# The archiver.
 
48779
AR=$lt_AR
 
48780
AR_FLAGS=$lt_AR_FLAGS
 
48781
 
 
48782
# A symbol stripping program.
 
48783
STRIP=$lt_STRIP
 
48784
 
 
48785
# Commands used to install an old-style archive.
 
48786
RANLIB=$lt_RANLIB
 
48787
old_postinstall_cmds=$lt_old_postinstall_cmds
 
48788
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
48789
 
 
48790
# A C compiler.
 
48791
LTCC=$lt_CC
 
48792
 
 
48793
# LTCC compiler flags.
 
48794
LTCFLAGS=$lt_CFLAGS
 
48795
 
 
48796
# Take the output of nm and produce a listing of raw symbols and C names.
 
48797
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
48798
 
 
48799
# Transform the output of nm in a proper C declaration.
 
48800
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
48801
 
 
48802
# Transform the output of nm in a C name address pair.
 
48803
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
48804
 
 
48805
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
48806
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
48807
 
 
48808
# The name of the directory that contains temporary libtool files.
 
48809
objdir=$objdir
 
48810
 
 
48811
# Shell to use when invoking shell scripts.
 
48812
SHELL=$lt_SHELL
 
48813
 
 
48814
# An echo program that does not interpret backslashes.
 
48815
ECHO=$lt_ECHO
 
48816
 
 
48817
# Used to examine libraries when file_magic_cmd begins with "file".
 
48818
MAGIC_CMD=$MAGIC_CMD
 
48819
 
 
48820
# Must we lock files when doing compilation?
 
48821
need_locks=$lt_need_locks
 
48822
 
 
48823
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
48824
DSYMUTIL=$lt_DSYMUTIL
 
48825
 
 
48826
# Tool to change global to local symbols on Mac OS X.
 
48827
NMEDIT=$lt_NMEDIT
 
48828
 
 
48829
# Tool to manipulate fat objects and archives on Mac OS X.
 
48830
LIPO=$lt_LIPO
 
48831
 
 
48832
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
48833
OTOOL=$lt_OTOOL
 
48834
 
 
48835
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
48836
OTOOL64=$lt_OTOOL64
 
48837
 
 
48838
# Old archive suffix (normally "a").
 
48839
libext=$libext
 
48840
 
 
48841
# Shared library suffix (normally ".so").
 
48842
shrext_cmds=$lt_shrext_cmds
 
48843
 
 
48844
# The commands to extract the exported symbol list from a shared archive.
 
48845
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
48846
 
 
48847
# Variables whose values should be saved in libtool wrapper scripts and
 
48848
# restored at link time.
 
48849
variables_saved_for_relink=$lt_variables_saved_for_relink
 
48850
 
 
48851
# Do we need the "lib" prefix for modules?
 
48852
need_lib_prefix=$need_lib_prefix
 
48853
 
 
48854
# Do we need a version for libraries?
 
48855
need_version=$need_version
 
48856
 
 
48857
# Library versioning type.
 
48858
version_type=$version_type
 
48859
 
 
48860
# Shared library runtime path variable.
 
48861
runpath_var=$runpath_var
 
48862
 
 
48863
# Shared library path variable.
 
48864
shlibpath_var=$shlibpath_var
 
48865
 
 
48866
# Is shlibpath searched before the hard-coded library search path?
 
48867
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
48868
 
 
48869
# Format of library name prefix.
 
48870
libname_spec=$lt_libname_spec
 
48871
 
 
48872
# List of archive names.  First name is the real one, the rest are links.
 
48873
# The last name is the one that the linker finds with -lNAME
 
48874
library_names_spec=$lt_library_names_spec
 
48875
 
 
48876
# The coded name of the library, if different from the real name.
 
48877
soname_spec=$lt_soname_spec
 
48878
 
 
48879
# Command to use after installation of a shared archive.
 
48880
postinstall_cmds=$lt_postinstall_cmds
 
48881
 
 
48882
# Command to use after uninstallation of a shared archive.
 
48883
postuninstall_cmds=$lt_postuninstall_cmds
 
48884
 
 
48885
# Commands used to finish a libtool library installation in a directory.
 
48886
finish_cmds=$lt_finish_cmds
 
48887
 
 
48888
# As "finish_cmds", except a single script fragment to be evaled but
 
48889
# not shown.
 
48890
finish_eval=$lt_finish_eval
 
48891
 
 
48892
# Whether we should hardcode library paths into libraries.
 
48893
hardcode_into_libs=$hardcode_into_libs
 
48894
 
 
48895
# Compile-time system search path for libraries.
 
48896
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
48897
 
 
48898
# Run-time system search path for libraries.
 
48899
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
48900
 
 
48901
# Whether dlopen is supported.
 
48902
dlopen_support=$enable_dlopen
 
48903
 
 
48904
# Whether dlopen of programs is supported.
 
48905
dlopen_self=$enable_dlopen_self
 
48906
 
 
48907
# Whether dlopen of statically linked programs is supported.
 
48908
dlopen_self_static=$enable_dlopen_self_static
 
48909
 
 
48910
# Commands to strip libraries.
 
48911
old_striplib=$lt_old_striplib
 
48912
striplib=$lt_striplib
 
48913
 
 
48914
 
 
48915
# The linker used to build libraries.
 
48916
LD=$lt_LD
 
48917
 
 
48918
# Commands used to build an old-style archive.
 
48919
old_archive_cmds=$lt_old_archive_cmds
 
48920
 
 
48921
# A language specific compiler.
 
48922
CC=$lt_compiler
 
48923
 
 
48924
# Is the compiler the GNU compiler?
 
48925
with_gcc=$GCC
 
48926
 
 
48927
# Compiler flag to turn off builtin functions.
 
48928
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
48929
 
 
48930
# How to pass a linker flag through the compiler.
 
48931
wl=$lt_lt_prog_compiler_wl
 
48932
 
 
48933
# Additional compiler flags for building library objects.
 
48934
pic_flag=$lt_lt_prog_compiler_pic
 
48935
 
 
48936
# Compiler flag to prevent dynamic linking.
 
48937
link_static_flag=$lt_lt_prog_compiler_static
 
48938
 
 
48939
# Does compiler simultaneously support -c and -o options?
 
48940
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
48941
 
 
48942
# Whether or not to add -lc for building shared libraries.
 
48943
build_libtool_need_lc=$archive_cmds_need_lc
 
48944
 
 
48945
# Whether or not to disallow shared libs when runtime libs are static.
 
48946
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
48947
 
 
48948
# Compiler flag to allow reflexive dlopens.
 
48949
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
48950
 
 
48951
# Compiler flag to generate shared objects directly from archives.
 
48952
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
48953
 
 
48954
# Whether the compiler copes with passing no objects directly.
 
48955
compiler_needs_object=$lt_compiler_needs_object
 
48956
 
 
48957
# Create an old-style archive from a shared archive.
 
48958
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
48959
 
 
48960
# Create a temporary old-style archive to link instead of a shared archive.
 
48961
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
48962
 
 
48963
# Commands used to build a shared archive.
 
48964
archive_cmds=$lt_archive_cmds
 
48965
archive_expsym_cmds=$lt_archive_expsym_cmds
 
48966
 
 
48967
# Commands used to build a loadable module if different from building
 
48968
# a shared archive.
 
48969
module_cmds=$lt_module_cmds
 
48970
module_expsym_cmds=$lt_module_expsym_cmds
 
48971
 
 
48972
# Whether we are building with GNU ld or not.
 
48973
with_gnu_ld=$lt_with_gnu_ld
 
48974
 
 
48975
# Flag that allows shared libraries with undefined symbols to be built.
 
48976
allow_undefined_flag=$lt_allow_undefined_flag
 
48977
 
 
48978
# Flag that enforces no undefined symbols.
 
48979
no_undefined_flag=$lt_no_undefined_flag
 
48980
 
 
48981
# Flag to hardcode \$libdir into a binary during linking.
 
48982
# This must work even if \$libdir does not exist
 
48983
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
48984
 
 
48985
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
48986
# during linking.  This must work even if \$libdir does not exist.
 
48987
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
48988
 
 
48989
# Whether we need a single "-rpath" flag with a separated argument.
 
48990
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
48991
 
 
48992
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
48993
# DIR into the resulting binary.
 
48994
hardcode_direct=$hardcode_direct
 
48995
 
 
48996
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
48997
# DIR into the resulting binary and the resulting library dependency is
 
48998
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
48999
# library is relocated.
 
49000
hardcode_direct_absolute=$hardcode_direct_absolute
 
49001
 
 
49002
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
49003
# into the resulting binary.
 
49004
hardcode_minus_L=$hardcode_minus_L
 
49005
 
 
49006
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
49007
# into the resulting binary.
 
49008
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
49009
 
 
49010
# Set to "yes" if building a shared library automatically hardcodes DIR
 
49011
# into the library and all subsequent libraries and executables linked
 
49012
# against it.
 
49013
hardcode_automatic=$hardcode_automatic
 
49014
 
 
49015
# Set to yes if linker adds runtime paths of dependent libraries
 
49016
# to runtime path list.
 
49017
inherit_rpath=$inherit_rpath
 
49018
 
 
49019
# Whether libtool must link a program against all its dependency libraries.
 
49020
link_all_deplibs=$link_all_deplibs
 
49021
 
 
49022
# Fix the shell variable \$srcfile for the compiler.
 
49023
fix_srcfile_path=$lt_fix_srcfile_path
 
49024
 
 
49025
# Set to "yes" if exported symbols are required.
 
49026
always_export_symbols=$always_export_symbols
 
49027
 
 
49028
# The commands to list exported symbols.
 
49029
export_symbols_cmds=$lt_export_symbols_cmds
 
49030
 
 
49031
# Symbols that should not be listed in the preloaded symbols.
 
49032
exclude_expsyms=$lt_exclude_expsyms
 
49033
 
 
49034
# Symbols that must always be exported.
 
49035
include_expsyms=$lt_include_expsyms
 
49036
 
 
49037
# Commands necessary for linking programs (against libraries) with templates.
 
49038
prelink_cmds=$lt_prelink_cmds
 
49039
 
 
49040
# Specify filename containing input files.
 
49041
file_list_spec=$lt_file_list_spec
 
49042
 
 
49043
# How to hardcode a shared library path into an executable.
 
49044
hardcode_action=$hardcode_action
 
49045
 
 
49046
# ### END LIBTOOL CONFIG
 
49047
 
 
49048
_LT_EOF
 
49049
 
 
49050
  case $host_os in
 
49051
  aix3*)
 
49052
    cat <<\_LT_EOF >> "$cfgfile"
 
49053
# AIX sometimes has problems with the GCC collect2 program.  For some
 
49054
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
49055
# vanish in a puff of smoke.
 
49056
if test "X${COLLECT_NAMES+set}" != Xset; then
 
49057
  COLLECT_NAMES=
 
49058
  export COLLECT_NAMES
 
49059
fi
 
49060
_LT_EOF
 
49061
    ;;
 
49062
  esac
 
49063
 
 
49064
 
 
49065
ltmain="$ac_aux_dir/ltmain.sh"
 
49066
 
 
49067
 
 
49068
  # We use sed instead of cat because bash on DJGPP gets confused if
 
49069
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
49070
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
49071
  # is reportedly fixed, but why not run on old versions too?
 
49072
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
49073
    || (rm -f "$cfgfile"; exit 1)
 
49074
 
 
49075
  case $xsi_shell in
 
49076
  yes)
 
49077
    cat << \_LT_EOF >> "$cfgfile"
 
49078
 
 
49079
# func_dirname file append nondir_replacement
 
49080
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
49081
# otherwise set result to NONDIR_REPLACEMENT.
 
49082
func_dirname ()
 
49083
{
 
49084
  case ${1} in
 
49085
    */*) func_dirname_result="${1%/*}${2}" ;;
 
49086
    *  ) func_dirname_result="${3}" ;;
 
49087
  esac
 
49088
}
 
49089
 
 
49090
# func_basename file
 
49091
func_basename ()
 
49092
{
 
49093
  func_basename_result="${1##*/}"
 
49094
}
 
49095
 
 
49096
# func_dirname_and_basename file append nondir_replacement
 
49097
# perform func_basename and func_dirname in a single function
 
49098
# call:
 
49099
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
49100
#             add APPEND to the result, otherwise set result
 
49101
#             to NONDIR_REPLACEMENT.
 
49102
#             value returned in "$func_dirname_result"
 
49103
#   basename: Compute filename of FILE.
 
49104
#             value retuned in "$func_basename_result"
 
49105
# Implementation must be kept synchronized with func_dirname
 
49106
# and func_basename. For efficiency, we do not delegate to
 
49107
# those functions but instead duplicate the functionality here.
 
49108
func_dirname_and_basename ()
 
49109
{
 
49110
  case ${1} in
 
49111
    */*) func_dirname_result="${1%/*}${2}" ;;
 
49112
    *  ) func_dirname_result="${3}" ;;
 
49113
  esac
 
49114
  func_basename_result="${1##*/}"
 
49115
}
 
49116
 
 
49117
# func_stripname prefix suffix name
 
49118
# strip PREFIX and SUFFIX off of NAME.
 
49119
# PREFIX and SUFFIX must not contain globbing or regex special
 
49120
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
49121
# dot (in which case that matches only a dot).
 
49122
func_stripname ()
 
49123
{
 
49124
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
49125
  # positional parameters, so assign one to ordinary parameter first.
 
49126
  func_stripname_result=${3}
 
49127
  func_stripname_result=${func_stripname_result#"${1}"}
 
49128
  func_stripname_result=${func_stripname_result%"${2}"}
 
49129
}
 
49130
 
 
49131
# func_opt_split
 
49132
func_opt_split ()
 
49133
{
 
49134
  func_opt_split_opt=${1%%=*}
 
49135
  func_opt_split_arg=${1#*=}
 
49136
}
 
49137
 
 
49138
# func_lo2o object
 
49139
func_lo2o ()
 
49140
{
 
49141
  case ${1} in
 
49142
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
49143
    *)    func_lo2o_result=${1} ;;
 
49144
  esac
 
49145
}
 
49146
 
 
49147
# func_xform libobj-or-source
 
49148
func_xform ()
 
49149
{
 
49150
  func_xform_result=${1%.*}.lo
 
49151
}
 
49152
 
 
49153
# func_arith arithmetic-term...
 
49154
func_arith ()
 
49155
{
 
49156
  func_arith_result=$(( $* ))
 
49157
}
 
49158
 
 
49159
# func_len string
 
49160
# STRING may not start with a hyphen.
 
49161
func_len ()
 
49162
{
 
49163
  func_len_result=${#1}
 
49164
}
 
49165
 
 
49166
_LT_EOF
 
49167
    ;;
 
49168
  *) # Bourne compatible functions.
 
49169
    cat << \_LT_EOF >> "$cfgfile"
 
49170
 
 
49171
# func_dirname file append nondir_replacement
 
49172
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
49173
# otherwise set result to NONDIR_REPLACEMENT.
 
49174
func_dirname ()
 
49175
{
 
49176
  # Extract subdirectory from the argument.
 
49177
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
49178
  if test "X$func_dirname_result" = "X${1}"; then
 
49179
    func_dirname_result="${3}"
 
49180
  else
 
49181
    func_dirname_result="$func_dirname_result${2}"
 
49182
  fi
 
49183
}
 
49184
 
 
49185
# func_basename file
 
49186
func_basename ()
 
49187
{
 
49188
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
49189
}
 
49190
 
 
49191
 
 
49192
# func_stripname prefix suffix name
 
49193
# strip PREFIX and SUFFIX off of NAME.
 
49194
# PREFIX and SUFFIX must not contain globbing or regex special
 
49195
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
49196
# dot (in which case that matches only a dot).
 
49197
# func_strip_suffix prefix name
 
49198
func_stripname ()
 
49199
{
 
49200
  case ${2} in
 
49201
    .*) func_stripname_result=`$ECHO "X${3}" \
 
49202
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
49203
    *)  func_stripname_result=`$ECHO "X${3}" \
 
49204
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
49205
  esac
 
49206
}
 
49207
 
 
49208
# sed scripts:
 
49209
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
49210
my_sed_long_arg='1s/^-[^=]*=//'
 
49211
 
 
49212
# func_opt_split
 
49213
func_opt_split ()
 
49214
{
 
49215
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
49216
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
49217
}
 
49218
 
 
49219
# func_lo2o object
 
49220
func_lo2o ()
 
49221
{
 
49222
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
49223
}
 
49224
 
 
49225
# func_xform libobj-or-source
 
49226
func_xform ()
 
49227
{
 
49228
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
49229
}
 
49230
 
 
49231
# func_arith arithmetic-term...
 
49232
func_arith ()
 
49233
{
 
49234
  func_arith_result=`expr "$@"`
 
49235
}
 
49236
 
 
49237
# func_len string
 
49238
# STRING may not start with a hyphen.
 
49239
func_len ()
 
49240
{
 
49241
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
49242
}
 
49243
 
 
49244
_LT_EOF
 
49245
esac
 
49246
 
 
49247
case $lt_shell_append in
 
49248
  yes)
 
49249
    cat << \_LT_EOF >> "$cfgfile"
 
49250
 
 
49251
# func_append var value
 
49252
# Append VALUE to the end of shell variable VAR.
 
49253
func_append ()
 
49254
{
 
49255
  eval "$1+=\$2"
 
49256
}
 
49257
_LT_EOF
 
49258
    ;;
 
49259
  *)
 
49260
    cat << \_LT_EOF >> "$cfgfile"
 
49261
 
 
49262
# func_append var value
 
49263
# Append VALUE to the end of shell variable VAR.
 
49264
func_append ()
 
49265
{
 
49266
  eval "$1=\$$1\$2"
 
49267
}
 
49268
 
 
49269
_LT_EOF
 
49270
    ;;
 
49271
  esac
 
49272
 
 
49273
 
 
49274
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
49275
    || (rm -f "$cfgfile"; exit 1)
 
49276
 
 
49277
  mv -f "$cfgfile" "$ofile" ||
 
49278
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
49279
  chmod +x "$ofile"
 
49280
 
 
49281
 ;;
40892
49282
 
40893
49283
  esac
40894
49284
done # for ac_tag
41150
49540
  LDAP support:    ${curl_ldap_msg}
41151
49541
  LDAPS support:   ${curl_ldaps_msg}
41152
49542
" >&6;}
 
49543
 
 
49544
if test "x$soname_bump" = "xyes"; then
 
49545
 
 
49546
cat <<EOM
 
49547
  SONAME bump:     yes - WARNING: this library will be built with the SONAME
 
49548
                   number bumped due to (a detected) ABI breakage.
 
49549
                   See lib/README.curl_off_t for details on this.
 
49550
EOM
 
49551
 
 
49552
fi
 
49553