~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for ClamAV 0.98.1.
 
3
# Generated by GNU Autoconf 2.69 for ClamAV 0.98.4.
4
4
#
5
5
# Report bugs to <http://bugs.clamav.net/>.
6
6
#
198
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
test \$(( 1 + 1 )) = 2 || exit 1
201
202
 
202
203
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
204
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205
206
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
207
    PATH=/empty FPATH=/empty; export PATH FPATH
207
208
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
 
test \$(( 1 + 1 )) = 2 || exit 1"
 
209
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210
210
  if (eval "$as_required") 2>/dev/null; then :
211
211
  as_have_required=yes
212
212
else
592
592
# Identity of this package.
593
593
PACKAGE_NAME='ClamAV'
594
594
PACKAGE_TARNAME='clamav'
595
 
PACKAGE_VERSION='0.98.1'
596
 
PACKAGE_STRING='ClamAV 0.98.1'
 
595
PACKAGE_VERSION='0.98.4'
 
596
PACKAGE_STRING='ClamAV 0.98.4'
597
597
PACKAGE_BUGREPORT='http://bugs.clamav.net/'
598
598
PACKAGE_URL='http://www.clamav.net/'
599
599
 
643
643
am__EXEEXT_TRUE
644
644
LTLIBOBJS
645
645
LIBOBJS
 
646
ENABLE_CLAMSUBMIT_FALSE
 
647
ENABLE_CLAMSUBMIT_TRUE
 
648
SSL_LDFLAGS
 
649
SSL_LIBS
 
650
CLAMCONF_LIBS
 
651
CLAMBC_LIBS
 
652
CLAMDTOP_LIBS
 
653
THREAD_LIBS
 
654
TH_SAFE
 
655
CLAMDSCAN_LIBS
 
656
CLAMSCAN_LIBS
 
657
FRESHCLAM_LIBS
 
658
CLAMAV_MILTER_LIBS
 
659
CLAMMEM_LIBS
 
660
CLAMD_LIBS
 
661
LIBCLAMAV_LIBS
 
662
SSL_CPPFLAGS
 
663
LIBCLAMSHARED_CPPFLAGS
 
664
CLAMBC_CPPFLAGS
 
665
CLAMDTOP_CPPFLAGS
 
666
CLAMCONF_CPPFLAGS
 
667
SIGTOOL_CPPFLAGS
 
668
LIBCLAMAV_CPPFLAGS
 
669
CLAMAV_MILTER_CPPFLAGS
 
670
CLAMMEM_CPPFLAGS
 
671
CLAMD_CPPFLAGS
 
672
CLAMDSCAN_CPPFLAGS
 
673
CLAMSCAN_CPPFLAGS
 
674
FRESHCLAM_CPPFLAGS
 
675
CLAMSUBMIT_CFLAGS
 
676
CLAMSUBMIT_LIBS
646
677
subdirs
647
678
WERR_CFLAGS_MILTER
648
679
WERR_CFLAGS
657
688
HAVE_MILTER_TRUE
658
689
BUILD_CLAMD_FALSE
659
690
BUILD_CLAMD_TRUE
660
 
THREAD_LIBS
661
 
TH_SAFE
662
 
CLAMDSCAN_LIBS
663
 
FRESHCLAM_LIBS
664
 
CLAMAV_MILTER_LIBS
665
 
CLAMD_LIBS
666
 
LIBCLAMAV_LIBS
667
691
CFGDIR
668
692
DBDIR
669
 
XML_LIBS
670
 
XML_CPPFLAGS
671
693
ENABLE_UNRAR_FALSE
672
694
ENABLE_UNRAR_TRUE
673
695
HAVE_LIBBZ2_FALSE
678
700
MAINT
679
701
MAINTAINER_MODE_FALSE
680
702
MAINTAINER_MODE_TRUE
 
703
HAVE_LIBXML2_FALSE
 
704
HAVE_LIBXML2_TRUE
 
705
XML_LIBS
 
706
XML_CPPFLAGS
681
707
ENABLE_COVERAGE_FALSE
682
708
ENABLE_COVERAGE_TRUE
683
709
GENHTML
688
714
CHECK_LIBS
689
715
CHECK_CPPFLAGS
690
716
BUILD_CONFIGURE_FLAGS
691
 
GPERF
692
717
VERSIONSCRIPT_FALSE
693
718
VERSIONSCRIPT_TRUE
694
719
VERSIONSCRIPTFLAG
 
720
GPERF
695
721
LIBM
696
722
LTDLOPEN
697
723
LT_CONFIG_H
711
737
LTDLINCL
712
738
LTDLDEPS
713
739
LIBLTDL
714
 
CPP
715
740
OTOOL64
716
741
OTOOL
717
742
LIPO
723
748
AR
724
749
DLLTOOL
725
750
OBJDUMP
 
751
LN_S
726
752
NM
727
753
ac_ct_DUMPBIN
728
754
DUMPBIN
729
755
LD
730
756
FGREP
 
757
SED
 
758
LIBTOOL
 
759
LIBCLAMAV_VERSION
731
760
EGREP
732
761
GREP
733
 
SED
 
762
CPP
734
763
am__fastdepCC_FALSE
735
764
am__fastdepCC_TRUE
736
765
CCDEPMODE
748
777
LDFLAGS
749
778
CFLAGS
750
779
CC
751
 
LIBTOOL
752
 
LN_S
753
 
LIBCLAMAV_VERSION
754
780
AM_BACKSLASH
755
781
AM_DEFAULT_VERBOSITY
756
782
AM_DEFAULT_V
832
858
ac_user_opts='
833
859
enable_option_checking
834
860
enable_silent_rules
 
861
enable_dependency_tracking
835
862
enable_static
836
863
enable_shared
837
864
with_pic
838
865
enable_fast_install
839
 
enable_dependency_tracking
840
866
with_gnu_ld
841
867
with_sysroot
842
868
enable_libtool_lock
844
870
with_ltdl_include
845
871
with_ltdl_lib
846
872
enable_ltdl_install
847
 
with_fpu_words_bigendian
848
873
enable_gcc_vcheck
849
874
enable_experimental
850
875
enable_mempool
852
877
enable_rpath
853
878
with_libcheck_prefix
854
879
enable_coverage
 
880
enable_xml
 
881
with_xml
 
882
with_openssl
855
883
enable_maintainer_mode
856
884
with_zlib
857
885
enable_zlib_vcheck
858
886
enable_bzip2
859
887
with_libbz2_prefix
860
888
enable_unrar
861
 
enable_xml
862
 
with_xml
863
889
enable_getaddrinfo
864
890
enable_ipv6
865
891
enable_dns
872
898
enable_yp_check
873
899
with_user
874
900
with_group
875
 
enable_clamav
876
 
enable_debug
877
901
with_version
878
902
enable_no_cache
879
903
enable_dns_fix
887
911
enable_distcheck_werror
888
912
enable_llvm
889
913
enable_sha_collector_for_internal_use
 
914
with_libcurl
890
915
'
891
916
      ac_precious_vars='build_alias
892
917
host_alias
1438
1463
  # Omit some internal or obsolete options to make the list less imposing.
1439
1464
  # This message is too long to be a string in the A/UX 3.1 sh.
1440
1465
  cat <<_ACEOF
1441
 
\`configure' configures ClamAV 0.98.1 to adapt to many kinds of systems.
 
1466
\`configure' configures ClamAV 0.98.4 to adapt to many kinds of systems.
1442
1467
 
1443
1468
Usage: $0 [OPTION]... [VAR=VALUE]...
1444
1469
 
1509
1534
 
1510
1535
if test -n "$ac_init_help"; then
1511
1536
  case $ac_init_help in
1512
 
     short | recursive ) echo "Configuration of ClamAV 0.98.1:";;
 
1537
     short | recursive ) echo "Configuration of ClamAV 0.98.4:";;
1513
1538
   esac
1514
1539
  cat <<\_ACEOF
1515
1540
 
1519
1544
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520
1545
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1521
1546
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1547
  --disable-dependency-tracking  speeds up one-time build
 
1548
  --enable-dependency-tracking   do not reject slow dependency extractors
1522
1549
  --enable-static[=PKGS]  build static libraries [default=no]
1523
1550
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1524
1551
  --enable-fast-install[=PKGS]
1525
1552
                          optimize for fast installation [default=yes]
1526
 
  --disable-dependency-tracking  speeds up one-time build
1527
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1528
1553
  --disable-libtool-lock  avoid locking (might break parallel builds)
1529
1554
  --enable-ltdl-install   install libltdl
1530
1555
  --disable-gcc-vcheck    do not check for buggy gcc version
1533
1558
  --enable-check           Enable 'check' unit tests (default=auto)
1534
1559
  --disable-rpath         do not hardcode runtime library paths
1535
1560
  --enable-coverage       turn on test coverage [default=no]
 
1561
  --disable-xml   disable DMG and XAR support
1536
1562
  --enable-maintainer-mode enable make rules and dependencies not useful
1537
1563
                          (and sometimes confusing) to the casual installer
1538
1564
  --disable-zlib-vcheck   do not check for buggy zlib version
1539
1565
  --disable-bzip2         disable bzip2 support
1540
 
  --disable-unrar         do not build libclamunrar and libclamunrar_iface
1541
 
  --disable-xml   disable DMG and XAR support
 
1566
  --disable-unrar         don't build libclamunrar and libclamunrar_iface
1542
1567
  --disable-getaddrinfo          disable support for getaddrinfo
1543
1568
  --disable-ipv6          disable IPv6 support
1544
1569
  --disable-dns           disable support for database verification through
1546
1571
  --disable-fanotify      disable fanotify support (Linux only)
1547
1572
  --enable-milter         build clamav-milter
1548
1573
  --disable-pthreads      disable POSIX threads support
1549
 
  --disable-cr            do not link with C reentrant library (BSD)
 
1574
  --disable-cr            don't link with C reentrant library (BSD)
1550
1575
  --enable-id-check       use id utility instead of /etc/passwd parsing
1551
1576
  --enable-yp-check       use ypmatch utility instead of /etc/passwd parsing
1552
 
  --disable-clamav        disable test for clamav user/group
1553
 
  --enable-debug          enable debug code
1554
1577
  --enable-no-cache       use "Cache-Control: no-cache" in freshclam
1555
1578
  --enable-dns-fix        enable workaround for broken DNS servers (as in SpeedTouch 510)
1556
1579
  --enable-bigstack       increase thread stack size
1573
1596
  --with-included-ltdl    use the GNU ltdl sources included here
1574
1597
  --with-ltdl-include=DIR use the ltdl headers installed in DIR
1575
1598
  --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1576
 
  --with-fpu-words-bigendian=(yes/no/auto)    specify FPU endianess (default=auto)
1577
1599
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1578
1600
  --with-libcheck-prefix[=DIR]  search for libcheck in DIR/include and DIR/lib
1579
1601
  --without-libcheck-prefix     don't search for libcheck in includedir and libdir
 
1602
  --with-xml=DIR          path to directory containing libxml2 library (default=
 
1603
                          /usr/local or /usr if not found in /usr/local)
 
1604
  --with-openssl=DIR   path to directory containing openssl (default=
 
1605
    /usr/local or /usr if not found in /usr/local)
1580
1606
  --with-zlib=DIR         path to directory containing zlib library (default=
1581
1607
                          /usr/local or /usr if not found in /usr/local)
1582
1608
  --with-libbz2-prefix[=DIR]  search for libbz2 in DIR/include and DIR/lib
1583
1609
  --without-libbz2-prefix     don't search for libbz2 in includedir and libdir
1584
 
  --with-xml=DIR          path to directory containing libxml2 library (default=
1585
 
                          /usr/local or /usr if not found in /usr/local)
1586
1610
  --with-iconv supports iconv() (default=auto)
1587
1611
  --with-user=uid         name of the clamav user (default=clamav)
1588
1612
  --with-group=gid        name of the clamav group (default=clamav)
1592
1616
  --without-libncurses-prefix     don't search for libncurses in includedir and libdir
1593
1617
  --with-libpdcurses-prefix[=DIR]  search for libpdcurses in DIR/include and DIR/lib
1594
1618
  --without-libpdcurses-prefix     don't search for libpdcurses in includedir and libdir
 
1619
  --with-libcurl=DIR   path to directory containing libcurl (default=
 
1620
    /usr/local or /usr if not found in /usr/local)
1595
1621
 
1596
1622
Some influential environment variables:
1597
1623
  CC          C compiler command
1670
1696
test -n "$ac_init_help" && exit $ac_status
1671
1697
if $ac_init_version; then
1672
1698
  cat <<\_ACEOF
1673
 
ClamAV configure 0.98.1
 
1699
ClamAV configure 0.98.4
1674
1700
generated by GNU Autoconf 2.69
1675
1701
 
1676
1702
Copyright (C) 2012 Free Software Foundation, Inc.
1722
1748
 
1723
1749
} # ac_fn_c_try_compile
1724
1750
 
1725
 
# ac_fn_c_try_link LINENO
1726
 
# -----------------------
1727
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1728
 
ac_fn_c_try_link ()
1729
 
{
1730
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1732
 
  if { { ac_try="$ac_link"
1733
 
case "(($ac_try" in
1734
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
 
  *) ac_try_echo=$ac_try;;
1736
 
esac
1737
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
 
$as_echo "$ac_try_echo"; } >&5
1739
 
  (eval "$ac_link") 2>conftest.err
1740
 
  ac_status=$?
1741
 
  if test -s conftest.err; then
1742
 
    grep -v '^ *+' conftest.err >conftest.er1
1743
 
    cat conftest.er1 >&5
1744
 
    mv -f conftest.er1 conftest.err
1745
 
  fi
1746
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
 
  test $ac_status = 0; } && {
1748
 
         test -z "$ac_c_werror_flag" ||
1749
 
         test ! -s conftest.err
1750
 
       } && test -s conftest$ac_exeext && {
1751
 
         test "$cross_compiling" = yes ||
1752
 
         test -x conftest$ac_exeext
1753
 
       }; then :
1754
 
  ac_retval=0
1755
 
else
1756
 
  $as_echo "$as_me: failed program was:" >&5
1757
 
sed 's/^/| /' conftest.$ac_ext >&5
1758
 
 
1759
 
        ac_retval=1
1760
 
fi
1761
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763
 
  # interfere with the next link command; also delete a directory that is
1764
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1765
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767
 
  as_fn_set_status $ac_retval
1768
 
 
1769
 
} # ac_fn_c_try_link
1770
 
 
1771
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772
 
# -------------------------------------------------------
1773
 
# Tests whether HEADER exists and can be compiled using the include files in
1774
 
# INCLUDES, setting the cache variable VAR accordingly.
1775
 
ac_fn_c_check_header_compile ()
1776
 
{
1777
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779
 
$as_echo_n "checking for $2... " >&6; }
1780
 
if eval \${$3+:} false; then :
1781
 
  $as_echo_n "(cached) " >&6
1782
 
else
1783
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784
 
/* end confdefs.h.  */
1785
 
$4
1786
 
#include <$2>
1787
 
_ACEOF
1788
 
if ac_fn_c_try_compile "$LINENO"; then :
1789
 
  eval "$3=yes"
1790
 
else
1791
 
  eval "$3=no"
1792
 
fi
1793
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794
 
fi
1795
 
eval ac_res=\$$3
1796
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797
 
$as_echo "$ac_res" >&6; }
1798
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
 
 
1800
 
} # ac_fn_c_check_header_compile
1801
 
 
1802
1751
# ac_fn_c_try_cpp LINENO
1803
1752
# ----------------------
1804
1753
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836
1785
 
1837
1786
} # ac_fn_c_try_cpp
1838
1787
 
 
1788
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1789
# -------------------------------------------------------
 
1790
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1791
# the include files in INCLUDES and setting the cache variable VAR
 
1792
# accordingly.
 
1793
ac_fn_c_check_header_mongrel ()
 
1794
{
 
1795
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1796
  if eval \${$3+:} false; then :
 
1797
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1798
$as_echo_n "checking for $2... " >&6; }
 
1799
if eval \${$3+:} false; then :
 
1800
  $as_echo_n "(cached) " >&6
 
1801
fi
 
1802
eval ac_res=\$$3
 
1803
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1804
$as_echo "$ac_res" >&6; }
 
1805
else
 
1806
  # Is the header compilable?
 
1807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1808
$as_echo_n "checking $2 usability... " >&6; }
 
1809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1810
/* end confdefs.h.  */
 
1811
$4
 
1812
#include <$2>
 
1813
_ACEOF
 
1814
if ac_fn_c_try_compile "$LINENO"; then :
 
1815
  ac_header_compiler=yes
 
1816
else
 
1817
  ac_header_compiler=no
 
1818
fi
 
1819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1821
$as_echo "$ac_header_compiler" >&6; }
 
1822
 
 
1823
# Is the header present?
 
1824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1825
$as_echo_n "checking $2 presence... " >&6; }
 
1826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1827
/* end confdefs.h.  */
 
1828
#include <$2>
 
1829
_ACEOF
 
1830
if ac_fn_c_try_cpp "$LINENO"; then :
 
1831
  ac_header_preproc=yes
 
1832
else
 
1833
  ac_header_preproc=no
 
1834
fi
 
1835
rm -f conftest.err conftest.i conftest.$ac_ext
 
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1837
$as_echo "$ac_header_preproc" >&6; }
 
1838
 
 
1839
# So?  What about this header?
 
1840
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1841
  yes:no: )
 
1842
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1843
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1844
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1845
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1846
    ;;
 
1847
  no:yes:* )
 
1848
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1849
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1850
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1851
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1852
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1853
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1854
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1855
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1856
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1857
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1858
( $as_echo "## -------------------------------------- ##
 
1859
## Report this to http://bugs.clamav.net/ ##
 
1860
## -------------------------------------- ##"
 
1861
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1862
    ;;
 
1863
esac
 
1864
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1865
$as_echo_n "checking for $2... " >&6; }
 
1866
if eval \${$3+:} false; then :
 
1867
  $as_echo_n "(cached) " >&6
 
1868
else
 
1869
  eval "$3=\$ac_header_compiler"
 
1870
fi
 
1871
eval ac_res=\$$3
 
1872
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1873
$as_echo "$ac_res" >&6; }
 
1874
fi
 
1875
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1876
 
 
1877
} # ac_fn_c_check_header_mongrel
 
1878
 
1839
1879
# ac_fn_c_try_run LINENO
1840
1880
# ----------------------
1841
1881
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878
1918
 
1879
1919
} # ac_fn_c_try_run
1880
1920
 
 
1921
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1922
# -------------------------------------------------------
 
1923
# Tests whether HEADER exists and can be compiled using the include files in
 
1924
# INCLUDES, setting the cache variable VAR accordingly.
 
1925
ac_fn_c_check_header_compile ()
 
1926
{
 
1927
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1928
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1929
$as_echo_n "checking for $2... " >&6; }
 
1930
if eval \${$3+:} false; then :
 
1931
  $as_echo_n "(cached) " >&6
 
1932
else
 
1933
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1934
/* end confdefs.h.  */
 
1935
$4
 
1936
#include <$2>
 
1937
_ACEOF
 
1938
if ac_fn_c_try_compile "$LINENO"; then :
 
1939
  eval "$3=yes"
 
1940
else
 
1941
  eval "$3=no"
 
1942
fi
 
1943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1944
fi
 
1945
eval ac_res=\$$3
 
1946
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1947
$as_echo "$ac_res" >&6; }
 
1948
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1949
 
 
1950
} # ac_fn_c_check_header_compile
 
1951
 
 
1952
# ac_fn_c_try_link LINENO
 
1953
# -----------------------
 
1954
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1955
ac_fn_c_try_link ()
 
1956
{
 
1957
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1958
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1959
  if { { ac_try="$ac_link"
 
1960
case "(($ac_try" in
 
1961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1962
  *) ac_try_echo=$ac_try;;
 
1963
esac
 
1964
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1965
$as_echo "$ac_try_echo"; } >&5
 
1966
  (eval "$ac_link") 2>conftest.err
 
1967
  ac_status=$?
 
1968
  if test -s conftest.err; then
 
1969
    grep -v '^ *+' conftest.err >conftest.er1
 
1970
    cat conftest.er1 >&5
 
1971
    mv -f conftest.er1 conftest.err
 
1972
  fi
 
1973
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1974
  test $ac_status = 0; } && {
 
1975
         test -z "$ac_c_werror_flag" ||
 
1976
         test ! -s conftest.err
 
1977
       } && test -s conftest$ac_exeext && {
 
1978
         test "$cross_compiling" = yes ||
 
1979
         test -x conftest$ac_exeext
 
1980
       }; then :
 
1981
  ac_retval=0
 
1982
else
 
1983
  $as_echo "$as_me: failed program was:" >&5
 
1984
sed 's/^/| /' conftest.$ac_ext >&5
 
1985
 
 
1986
        ac_retval=1
 
1987
fi
 
1988
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1989
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1990
  # interfere with the next link command; also delete a directory that is
 
1991
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1992
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1993
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1994
  as_fn_set_status $ac_retval
 
1995
 
 
1996
} # ac_fn_c_try_link
 
1997
 
1881
1998
# ac_fn_c_check_func LINENO FUNC VAR
1882
1999
# ----------------------------------
1883
2000
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2044
2161
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2162
 
2046
2163
} # ac_fn_c_check_type
2047
 
 
2048
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2049
 
# -------------------------------------------------------
2050
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051
 
# the include files in INCLUDES and setting the cache variable VAR
2052
 
# accordingly.
2053
 
ac_fn_c_check_header_mongrel ()
2054
 
{
2055
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056
 
  if eval \${$3+:} false; then :
2057
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058
 
$as_echo_n "checking for $2... " >&6; }
2059
 
if eval \${$3+:} false; then :
2060
 
  $as_echo_n "(cached) " >&6
2061
 
fi
2062
 
eval ac_res=\$$3
2063
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064
 
$as_echo "$ac_res" >&6; }
2065
 
else
2066
 
  # Is the header compilable?
2067
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068
 
$as_echo_n "checking $2 usability... " >&6; }
2069
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070
 
/* end confdefs.h.  */
2071
 
$4
2072
 
#include <$2>
2073
 
_ACEOF
2074
 
if ac_fn_c_try_compile "$LINENO"; then :
2075
 
  ac_header_compiler=yes
2076
 
else
2077
 
  ac_header_compiler=no
2078
 
fi
2079
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081
 
$as_echo "$ac_header_compiler" >&6; }
2082
 
 
2083
 
# Is the header present?
2084
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085
 
$as_echo_n "checking $2 presence... " >&6; }
2086
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087
 
/* end confdefs.h.  */
2088
 
#include <$2>
2089
 
_ACEOF
2090
 
if ac_fn_c_try_cpp "$LINENO"; then :
2091
 
  ac_header_preproc=yes
2092
 
else
2093
 
  ac_header_preproc=no
2094
 
fi
2095
 
rm -f conftest.err conftest.i conftest.$ac_ext
2096
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097
 
$as_echo "$ac_header_preproc" >&6; }
2098
 
 
2099
 
# So?  What about this header?
2100
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2101
 
  yes:no: )
2102
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106
 
    ;;
2107
 
  no:yes:* )
2108
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2111
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2112
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2115
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2116
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2118
 
( $as_echo "## -------------------------------------- ##
2119
 
## Report this to http://bugs.clamav.net/ ##
2120
 
## -------------------------------------- ##"
2121
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2122
 
    ;;
2123
 
esac
2124
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125
 
$as_echo_n "checking for $2... " >&6; }
2126
 
if eval \${$3+:} false; then :
2127
 
  $as_echo_n "(cached) " >&6
2128
 
else
2129
 
  eval "$3=\$ac_header_compiler"
2130
 
fi
2131
 
eval ac_res=\$$3
2132
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
 
$as_echo "$ac_res" >&6; }
2134
 
fi
2135
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
 
 
2137
 
} # ac_fn_c_check_header_mongrel
2138
2164
cat >config.log <<_ACEOF
2139
2165
This file contains any messages produced by compilers while
2140
2166
running configure, to aid debugging if configure makes a mistake.
2141
2167
 
2142
 
It was created by ClamAV $as_me 0.98.1, which was
 
2168
It was created by ClamAV $as_me 0.98.4, which was
2143
2169
generated by GNU Autoconf 2.69.  Invocation command line was
2144
2170
 
2145
2171
  $ $0 $@
3260
3286
 
3261
3287
# Define the identity of the package.
3262
3288
 PACKAGE='clamav'
3263
 
 VERSION='0.98.1'
 
3289
 VERSION='0.98.4'
3264
3290
 
3265
3291
 
3266
3292
# Some tools Automake needs.
3415
3441
 
3416
3442
$as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h
3417
3443
 
3418
 
 
3419
 
VERSION="0.98.1"
3420
 
 
3421
 
LC_CURRENT=7
3422
 
LC_REVISION=20
3423
 
LC_AGE=1
3424
 
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
3425
 
 
3426
 
 
3427
 
for ac_prog in gawk mawk nawk awk
3428
 
do
3429
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3430
 
set dummy $ac_prog; ac_word=$2
3431
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432
 
$as_echo_n "checking for $ac_word... " >&6; }
3433
 
if ${ac_cv_prog_AWK+:} false; then :
3434
 
  $as_echo_n "(cached) " >&6
3435
 
else
3436
 
  if test -n "$AWK"; then
3437
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3438
 
else
3439
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440
 
for as_dir in $PATH
3441
 
do
3442
 
  IFS=$as_save_IFS
3443
 
  test -z "$as_dir" && as_dir=.
3444
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3445
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446
 
    ac_cv_prog_AWK="$ac_prog"
3447
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448
 
    break 2
3449
 
  fi
3450
 
done
3451
 
  done
3452
 
IFS=$as_save_IFS
3453
 
 
3454
 
fi
3455
 
fi
3456
 
AWK=$ac_cv_prog_AWK
3457
 
if test -n "$AWK"; then
3458
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3459
 
$as_echo "$AWK" >&6; }
3460
 
else
3461
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462
 
$as_echo "no" >&6; }
3463
 
fi
3464
 
 
3465
 
 
3466
 
  test -n "$AWK" && break
3467
 
done
3468
 
 
3469
 
 
3470
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3471
 
$as_echo_n "checking whether ln -s works... " >&6; }
3472
 
LN_S=$as_ln_s
3473
 
if test "$LN_S" = "ln -s"; then
3474
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475
 
$as_echo "yes" >&6; }
3476
 
else
3477
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3478
 
$as_echo "no, using $LN_S" >&6; }
3479
 
fi
3480
 
 
3481
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3482
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3483
 
set x ${MAKE-make}
3484
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3485
 
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3486
 
  $as_echo_n "(cached) " >&6
3487
 
else
3488
 
  cat >conftest.make <<\_ACEOF
3489
 
SHELL = /bin/sh
3490
 
all:
3491
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3492
 
_ACEOF
3493
 
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3494
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3495
 
  *@@@%%%=?*=@@@%%%*)
3496
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3497
 
  *)
3498
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3499
 
esac
3500
 
rm -f conftest.make
3501
 
fi
3502
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3503
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504
 
$as_echo "yes" >&6; }
3505
 
  SET_MAKE=
3506
 
else
3507
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508
 
$as_echo "no" >&6; }
3509
 
  SET_MAKE="MAKE=${MAKE-make}"
3510
 
fi
3511
 
 
3512
 
 
3513
 
 
3514
 
 
3515
 
 
3516
 
 
3517
 
 
3518
 
 
3519
 
 
3520
 
case `pwd` in
3521
 
  *\ * | *\     *)
3522
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3523
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3524
 
esac
3525
 
 
3526
 
 
3527
 
 
3528
 
macro_version='2.4.2'
3529
 
macro_revision='1.3337'
3530
 
 
3531
 
 
3532
 
 
3533
 
 
3534
 
 
3535
 
 
3536
 
 
3537
 
 
3538
 
 
3539
 
 
3540
 
 
3541
 
 
3542
 
 
3543
 
ltmain="$ac_aux_dir/ltmain.sh"
3544
 
 
3545
 
# Backslashify metacharacters that are still active within
3546
 
# double-quoted strings.
3547
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3548
 
 
3549
 
# Same as above, but do not quote variable references.
3550
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3551
 
 
3552
 
# Sed substitution to delay expansion of an escaped shell variable in a
3553
 
# double_quote_subst'ed string.
3554
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3555
 
 
3556
 
# Sed substitution to delay expansion of an escaped single quote.
3557
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3558
 
 
3559
 
# Sed substitution to avoid accidental globbing in evaled expressions
3560
 
no_glob_subst='s/\*/\\\*/g'
3561
 
 
3562
 
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3563
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3564
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3565
 
 
3566
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3567
 
$as_echo_n "checking how to print strings... " >&6; }
3568
 
# Test print first, because it will be a builtin if present.
3569
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3570
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3571
 
  ECHO='print -r --'
3572
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3573
 
  ECHO='printf %s\n'
3574
 
else
3575
 
  # Use this function as a fallback that always works.
3576
 
  func_fallback_echo ()
3577
 
  {
3578
 
    eval 'cat <<_LTECHO_EOF
3579
 
$1
3580
 
_LTECHO_EOF'
3581
 
  }
3582
 
  ECHO='func_fallback_echo'
3583
 
fi
3584
 
 
3585
 
# func_echo_all arg...
3586
 
# Invoke $ECHO with all args, space-separated.
3587
 
func_echo_all ()
3588
 
{
3589
 
    $ECHO ""
3590
 
}
3591
 
 
3592
 
case "$ECHO" in
3593
 
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3594
 
$as_echo "printf" >&6; } ;;
3595
 
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3596
 
$as_echo "print -r" >&6; } ;;
3597
 
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3598
 
$as_echo "cat" >&6; } ;;
3599
 
esac
3600
 
 
3601
 
 
3602
 
 
3603
 
 
3604
 
 
3605
 
 
3606
 
 
3607
 
 
3608
 
 
3609
 
 
3610
 
 
3611
 
 
3612
 
 
3613
 
 
3614
3444
DEPDIR="${am__leading_dot}deps"
3615
3445
 
3616
3446
ac_config_commands="$ac_config_commands depfiles"
4591
4421
fi
4592
4422
 
4593
4423
 
4594
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4595
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4596
 
if ${ac_cv_path_SED+:} false; then :
 
4424
 
 
4425
ac_ext=c
 
4426
ac_cpp='$CPP $CPPFLAGS'
 
4427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4431
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4432
# On Suns, sometimes $CPP names a directory.
 
4433
if test -n "$CPP" && test -d "$CPP"; then
 
4434
  CPP=
 
4435
fi
 
4436
if test -z "$CPP"; then
 
4437
  if ${ac_cv_prog_CPP+:} false; then :
4597
4438
  $as_echo_n "(cached) " >&6
4598
4439
else
4599
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4600
 
     for ac_i in 1 2 3 4 5 6 7; do
4601
 
       ac_script="$ac_script$as_nl$ac_script"
4602
 
     done
4603
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4604
 
     { ac_script=; unset ac_script;}
4605
 
     if test -z "$SED"; then
4606
 
  ac_path_SED_found=false
4607
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4608
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609
 
for as_dir in $PATH
 
4440
      # Double quotes because CPP needs to be expanded
 
4441
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4442
    do
 
4443
      ac_preproc_ok=false
 
4444
for ac_c_preproc_warn_flag in '' yes
4610
4445
do
4611
 
  IFS=$as_save_IFS
4612
 
  test -z "$as_dir" && as_dir=.
4613
 
    for ac_prog in sed gsed; do
4614
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4615
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4616
 
      as_fn_executable_p "$ac_path_SED" || continue
4617
 
# Check for GNU ac_path_SED and select it if it is found.
4618
 
  # Check for GNU $ac_path_SED
4619
 
case `"$ac_path_SED" --version 2>&1` in
4620
 
*GNU*)
4621
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4622
 
*)
4623
 
  ac_count=0
4624
 
  $as_echo_n 0123456789 >"conftest.in"
4625
 
  while :
4626
 
  do
4627
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4628
 
    mv "conftest.tmp" "conftest.in"
4629
 
    cp "conftest.in" "conftest.nl"
4630
 
    $as_echo '' >> "conftest.nl"
4631
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4634
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4635
 
      # Best one so far, save it but keep looking for a better one
4636
 
      ac_cv_path_SED="$ac_path_SED"
4637
 
      ac_path_SED_max=$ac_count
4638
 
    fi
4639
 
    # 10*(2^10) chars as input seems more than enough
4640
 
    test $ac_count -gt 10 && break
4641
 
  done
4642
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643
 
esac
4644
 
 
4645
 
      $ac_path_SED_found && break 3
 
4446
  # Use a header file that comes with gcc, so configuring glibc
 
4447
  # with a fresh cross-compiler works.
 
4448
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4449
  # <limits.h> exists even on freestanding compilers.
 
4450
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4451
  # not just through cpp. "Syntax error" is here to catch this case.
 
4452
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4453
/* end confdefs.h.  */
 
4454
#ifdef __STDC__
 
4455
# include <limits.h>
 
4456
#else
 
4457
# include <assert.h>
 
4458
#endif
 
4459
                     Syntax error
 
4460
_ACEOF
 
4461
if ac_fn_c_try_cpp "$LINENO"; then :
 
4462
 
 
4463
else
 
4464
  # Broken: fails on valid input.
 
4465
continue
 
4466
fi
 
4467
rm -f conftest.err conftest.i conftest.$ac_ext
 
4468
 
 
4469
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4470
  # can be detected and how.
 
4471
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4472
/* end confdefs.h.  */
 
4473
#include <ac_nonexistent.h>
 
4474
_ACEOF
 
4475
if ac_fn_c_try_cpp "$LINENO"; then :
 
4476
  # Broken: success on invalid input.
 
4477
continue
 
4478
else
 
4479
  # Passes both tests.
 
4480
ac_preproc_ok=:
 
4481
break
 
4482
fi
 
4483
rm -f conftest.err conftest.i conftest.$ac_ext
 
4484
 
 
4485
done
 
4486
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4487
rm -f conftest.i conftest.err conftest.$ac_ext
 
4488
if $ac_preproc_ok; then :
 
4489
  break
 
4490
fi
 
4491
 
4646
4492
    done
4647
 
  done
4648
 
  done
4649
 
IFS=$as_save_IFS
4650
 
  if test -z "$ac_cv_path_SED"; then
4651
 
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4652
 
  fi
4653
 
else
4654
 
  ac_cv_path_SED=$SED
4655
 
fi
4656
 
 
4657
 
fi
4658
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4659
 
$as_echo "$ac_cv_path_SED" >&6; }
4660
 
 SED="$ac_cv_path_SED"
4661
 
  rm -f conftest.sed
4662
 
 
4663
 
test -z "$SED" && SED=sed
4664
 
Xsed="$SED -e 1s/^X//"
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
 
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
 
4493
    ac_cv_prog_CPP=$CPP
 
4494
 
 
4495
fi
 
4496
  CPP=$ac_cv_prog_CPP
 
4497
else
 
4498
  ac_cv_prog_CPP=$CPP
 
4499
fi
 
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4501
$as_echo "$CPP" >&6; }
 
4502
ac_preproc_ok=false
 
4503
for ac_c_preproc_warn_flag in '' yes
 
4504
do
 
4505
  # Use a header file that comes with gcc, so configuring glibc
 
4506
  # with a fresh cross-compiler works.
 
4507
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4508
  # <limits.h> exists even on freestanding compilers.
 
4509
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4510
  # not just through cpp. "Syntax error" is here to catch this case.
 
4511
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4512
/* end confdefs.h.  */
 
4513
#ifdef __STDC__
 
4514
# include <limits.h>
 
4515
#else
 
4516
# include <assert.h>
 
4517
#endif
 
4518
                     Syntax error
 
4519
_ACEOF
 
4520
if ac_fn_c_try_cpp "$LINENO"; then :
 
4521
 
 
4522
else
 
4523
  # Broken: fails on valid input.
 
4524
continue
 
4525
fi
 
4526
rm -f conftest.err conftest.i conftest.$ac_ext
 
4527
 
 
4528
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4529
  # can be detected and how.
 
4530
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4531
/* end confdefs.h.  */
 
4532
#include <ac_nonexistent.h>
 
4533
_ACEOF
 
4534
if ac_fn_c_try_cpp "$LINENO"; then :
 
4535
  # Broken: success on invalid input.
 
4536
continue
 
4537
else
 
4538
  # Passes both tests.
 
4539
ac_preproc_ok=:
 
4540
break
 
4541
fi
 
4542
rm -f conftest.err conftest.i conftest.$ac_ext
 
4543
 
 
4544
done
 
4545
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4546
rm -f conftest.i conftest.err conftest.$ac_ext
 
4547
if $ac_preproc_ok; then :
 
4548
 
 
4549
else
 
4550
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4551
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4552
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4553
See \`config.log' for more details" "$LINENO" 5; }
 
4554
fi
 
4555
 
 
4556
ac_ext=c
 
4557
ac_cpp='$CPP $CPPFLAGS'
 
4558
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4559
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4560
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674
4561
 
4675
4562
 
4676
4563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4803
4690
 EGREP="$ac_cv_path_EGREP"
4804
4691
 
4805
4692
 
 
4693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4694
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4695
if ${ac_cv_header_stdc+:} false; then :
 
4696
  $as_echo_n "(cached) " >&6
 
4697
else
 
4698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4699
/* end confdefs.h.  */
 
4700
#include <stdlib.h>
 
4701
#include <stdarg.h>
 
4702
#include <string.h>
 
4703
#include <float.h>
 
4704
 
 
4705
int
 
4706
main ()
 
4707
{
 
4708
 
 
4709
  ;
 
4710
  return 0;
 
4711
}
 
4712
_ACEOF
 
4713
if ac_fn_c_try_compile "$LINENO"; then :
 
4714
  ac_cv_header_stdc=yes
 
4715
else
 
4716
  ac_cv_header_stdc=no
 
4717
fi
 
4718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4719
 
 
4720
if test $ac_cv_header_stdc = yes; then
 
4721
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4723
/* end confdefs.h.  */
 
4724
#include <string.h>
 
4725
 
 
4726
_ACEOF
 
4727
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4728
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4729
 
 
4730
else
 
4731
  ac_cv_header_stdc=no
 
4732
fi
 
4733
rm -f conftest*
 
4734
 
 
4735
fi
 
4736
 
 
4737
if test $ac_cv_header_stdc = yes; then
 
4738
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4739
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4740
/* end confdefs.h.  */
 
4741
#include <stdlib.h>
 
4742
 
 
4743
_ACEOF
 
4744
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4745
  $EGREP "free" >/dev/null 2>&1; then :
 
4746
 
 
4747
else
 
4748
  ac_cv_header_stdc=no
 
4749
fi
 
4750
rm -f conftest*
 
4751
 
 
4752
fi
 
4753
 
 
4754
if test $ac_cv_header_stdc = yes; then
 
4755
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4756
  if test "$cross_compiling" = yes; then :
 
4757
  :
 
4758
else
 
4759
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4760
/* end confdefs.h.  */
 
4761
#include <ctype.h>
 
4762
#include <stdlib.h>
 
4763
#if ((' ' & 0x0FF) == 0x020)
 
4764
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4765
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4766
#else
 
4767
# define ISLOWER(c) \
 
4768
                   (('a' <= (c) && (c) <= 'i') \
 
4769
                     || ('j' <= (c) && (c) <= 'r') \
 
4770
                     || ('s' <= (c) && (c) <= 'z'))
 
4771
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4772
#endif
 
4773
 
 
4774
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4775
int
 
4776
main ()
 
4777
{
 
4778
  int i;
 
4779
  for (i = 0; i < 256; i++)
 
4780
    if (XOR (islower (i), ISLOWER (i))
 
4781
        || toupper (i) != TOUPPER (i))
 
4782
      return 2;
 
4783
  return 0;
 
4784
}
 
4785
_ACEOF
 
4786
if ac_fn_c_try_run "$LINENO"; then :
 
4787
 
 
4788
else
 
4789
  ac_cv_header_stdc=no
 
4790
fi
 
4791
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4792
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4793
fi
 
4794
 
 
4795
fi
 
4796
fi
 
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4798
$as_echo "$ac_cv_header_stdc" >&6; }
 
4799
if test $ac_cv_header_stdc = yes; then
 
4800
 
 
4801
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4802
 
 
4803
fi
 
4804
 
 
4805
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4806
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4807
                  inttypes.h stdint.h unistd.h
 
4808
do :
 
4809
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4810
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4811
"
 
4812
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
4813
  cat >>confdefs.h <<_ACEOF
 
4814
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4815
_ACEOF
 
4816
 
 
4817
fi
 
4818
 
 
4819
done
 
4820
 
 
4821
 
 
4822
 
 
4823
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4824
if test "x$ac_cv_header_minix_config_h" = xyes; then :
 
4825
  MINIX=yes
 
4826
else
 
4827
  MINIX=
 
4828
fi
 
4829
 
 
4830
 
 
4831
  if test "$MINIX" = yes; then
 
4832
 
 
4833
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4834
 
 
4835
 
 
4836
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4837
 
 
4838
 
 
4839
$as_echo "#define _MINIX 1" >>confdefs.h
 
4840
 
 
4841
  fi
 
4842
 
 
4843
 
 
4844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4845
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4846
if ${ac_cv_safe_to_define___extensions__+:} false; then :
 
4847
  $as_echo_n "(cached) " >&6
 
4848
else
 
4849
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4850
/* end confdefs.h.  */
 
4851
 
 
4852
#         define __EXTENSIONS__ 1
 
4853
          $ac_includes_default
 
4854
int
 
4855
main ()
 
4856
{
 
4857
 
 
4858
  ;
 
4859
  return 0;
 
4860
}
 
4861
_ACEOF
 
4862
if ac_fn_c_try_compile "$LINENO"; then :
 
4863
  ac_cv_safe_to_define___extensions__=yes
 
4864
else
 
4865
  ac_cv_safe_to_define___extensions__=no
 
4866
fi
 
4867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4868
fi
 
4869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4870
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4871
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4872
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4873
 
 
4874
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4875
 
 
4876
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4877
 
 
4878
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4879
 
 
4880
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4881
 
 
4882
 
 
4883
 
 
4884
VERSION="0.98.4"
 
4885
 
 
4886
LC_CURRENT=7
 
4887
LC_REVISION=23
 
4888
LC_AGE=1
 
4889
LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
 
4890
 
 
4891
 
 
4892
major=`expr $LC_CURRENT - $LC_AGE`
 
4893
 
 
4894
 
 
4895
cat >>confdefs.h <<_ACEOF
 
4896
#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION"
 
4897
_ACEOF
 
4898
 
 
4899
 
 
4900
 
 
4901
cat >>confdefs.h <<_ACEOF
 
4902
#define LIBCLAMAV_MAJORVER $major
 
4903
_ACEOF
 
4904
 
 
4905
 
 
4906
 
 
4907
cat >>confdefs.h <<_ACEOF
 
4908
#define VERSION "$VERSION"
 
4909
_ACEOF
 
4910
 
 
4911
 
 
4912
cat >>confdefs.h <<_ACEOF
 
4913
#define VERSION_SUFFIX "$VERSION_SUFFIX"
 
4914
_ACEOF
 
4915
 
 
4916
 
 
4917
 
 
4918
 
 
4919
 
 
4920
 
 
4921
 
 
4922
 
 
4923
 
 
4924
 
 
4925
case `pwd` in
 
4926
  *\ * | *\     *)
 
4927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4928
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4929
esac
 
4930
 
 
4931
 
 
4932
 
 
4933
macro_version='2.4.2'
 
4934
macro_revision='1.3337'
 
4935
 
 
4936
 
 
4937
 
 
4938
 
 
4939
 
 
4940
 
 
4941
 
 
4942
 
 
4943
 
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
ltmain="$ac_aux_dir/ltmain.sh"
 
4949
 
 
4950
# Backslashify metacharacters that are still active within
 
4951
# double-quoted strings.
 
4952
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4953
 
 
4954
# Same as above, but do not quote variable references.
 
4955
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4956
 
 
4957
# Sed substitution to delay expansion of an escaped shell variable in a
 
4958
# double_quote_subst'ed string.
 
4959
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4960
 
 
4961
# Sed substitution to delay expansion of an escaped single quote.
 
4962
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4963
 
 
4964
# Sed substitution to avoid accidental globbing in evaled expressions
 
4965
no_glob_subst='s/\*/\\\*/g'
 
4966
 
 
4967
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4968
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4969
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4970
 
 
4971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4972
$as_echo_n "checking how to print strings... " >&6; }
 
4973
# Test print first, because it will be a builtin if present.
 
4974
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4975
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4976
  ECHO='print -r --'
 
4977
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4978
  ECHO='printf %s\n'
 
4979
else
 
4980
  # Use this function as a fallback that always works.
 
4981
  func_fallback_echo ()
 
4982
  {
 
4983
    eval 'cat <<_LTECHO_EOF
 
4984
$1
 
4985
_LTECHO_EOF'
 
4986
  }
 
4987
  ECHO='func_fallback_echo'
 
4988
fi
 
4989
 
 
4990
# func_echo_all arg...
 
4991
# Invoke $ECHO with all args, space-separated.
 
4992
func_echo_all ()
 
4993
{
 
4994
    $ECHO ""
 
4995
}
 
4996
 
 
4997
case "$ECHO" in
 
4998
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4999
$as_echo "printf" >&6; } ;;
 
5000
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
5001
$as_echo "print -r" >&6; } ;;
 
5002
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
5003
$as_echo "cat" >&6; } ;;
 
5004
esac
 
5005
 
 
5006
 
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
 
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
5020
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5021
if ${ac_cv_path_SED+:} false; then :
 
5022
  $as_echo_n "(cached) " >&6
 
5023
else
 
5024
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5025
     for ac_i in 1 2 3 4 5 6 7; do
 
5026
       ac_script="$ac_script$as_nl$ac_script"
 
5027
     done
 
5028
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
5029
     { ac_script=; unset ac_script;}
 
5030
     if test -z "$SED"; then
 
5031
  ac_path_SED_found=false
 
5032
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5033
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5034
for as_dir in $PATH
 
5035
do
 
5036
  IFS=$as_save_IFS
 
5037
  test -z "$as_dir" && as_dir=.
 
5038
    for ac_prog in sed gsed; do
 
5039
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5040
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5041
      as_fn_executable_p "$ac_path_SED" || continue
 
5042
# Check for GNU ac_path_SED and select it if it is found.
 
5043
  # Check for GNU $ac_path_SED
 
5044
case `"$ac_path_SED" --version 2>&1` in
 
5045
*GNU*)
 
5046
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5047
*)
 
5048
  ac_count=0
 
5049
  $as_echo_n 0123456789 >"conftest.in"
 
5050
  while :
 
5051
  do
 
5052
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5053
    mv "conftest.tmp" "conftest.in"
 
5054
    cp "conftest.in" "conftest.nl"
 
5055
    $as_echo '' >> "conftest.nl"
 
5056
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5057
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5058
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5059
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5060
      # Best one so far, save it but keep looking for a better one
 
5061
      ac_cv_path_SED="$ac_path_SED"
 
5062
      ac_path_SED_max=$ac_count
 
5063
    fi
 
5064
    # 10*(2^10) chars as input seems more than enough
 
5065
    test $ac_count -gt 10 && break
 
5066
  done
 
5067
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5068
esac
 
5069
 
 
5070
      $ac_path_SED_found && break 3
 
5071
    done
 
5072
  done
 
5073
  done
 
5074
IFS=$as_save_IFS
 
5075
  if test -z "$ac_cv_path_SED"; then
 
5076
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
5077
  fi
 
5078
else
 
5079
  ac_cv_path_SED=$SED
 
5080
fi
 
5081
 
 
5082
fi
 
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
5084
$as_echo "$ac_cv_path_SED" >&6; }
 
5085
 SED="$ac_cv_path_SED"
 
5086
  rm -f conftest.sed
 
5087
 
 
5088
test -z "$SED" && SED=sed
 
5089
Xsed="$SED -e 1s/^X//"
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
4806
5101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4807
5102
$as_echo_n "checking for fgrep... " >&6; }
4808
5103
if ${ac_cv_path_FGREP+:} false; then :
5203
5498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5204
5499
$as_echo "$lt_cv_nm_interface" >&6; }
5205
5500
 
 
5501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5502
$as_echo_n "checking whether ln -s works... " >&6; }
 
5503
LN_S=$as_ln_s
 
5504
if test "$LN_S" = "ln -s"; then
 
5505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5506
$as_echo "yes" >&6; }
 
5507
else
 
5508
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5509
$as_echo "no, using $LN_S" >&6; }
 
5510
fi
 
5511
 
5206
5512
# find the maximum length of command line arguments
5207
5513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5208
5514
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5701
6007
  fi
5702
6008
  ;;
5703
6009
 
5704
 
gnu*)
5705
 
  lt_cv_deplibs_check_method=pass_all
5706
 
  ;;
5707
 
 
5708
6010
haiku*)
5709
6011
  lt_cv_deplibs_check_method=pass_all
5710
6012
  ;;
5743
6045
  ;;
5744
6046
 
5745
6047
# This must be glibc/ELF.
5746
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6048
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5747
6049
  lt_cv_deplibs_check_method=pass_all
5748
6050
  ;;
5749
6051
 
6005
6307
 
6006
6308
 
6007
6309
 
6008
 
 
6009
6310
if test -n "$ac_tool_prefix"; then
6010
6311
  for ac_prog in ar
6011
6312
  do
7709
8010
    ;;
7710
8011
  esac
7711
8012
 
7712
 
ac_ext=c
7713
 
ac_cpp='$CPP $CPPFLAGS'
7714
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7718
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7719
 
# On Suns, sometimes $CPP names a directory.
7720
 
if test -n "$CPP" && test -d "$CPP"; then
7721
 
  CPP=
7722
 
fi
7723
 
if test -z "$CPP"; then
7724
 
  if ${ac_cv_prog_CPP+:} false; then :
7725
 
  $as_echo_n "(cached) " >&6
7726
 
else
7727
 
      # Double quotes because CPP needs to be expanded
7728
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7729
 
    do
7730
 
      ac_preproc_ok=false
7731
 
for ac_c_preproc_warn_flag in '' yes
7732
 
do
7733
 
  # Use a header file that comes with gcc, so configuring glibc
7734
 
  # with a fresh cross-compiler works.
7735
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736
 
  # <limits.h> exists even on freestanding compilers.
7737
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7738
 
  # not just through cpp. "Syntax error" is here to catch this case.
7739
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740
 
/* end confdefs.h.  */
7741
 
#ifdef __STDC__
7742
 
# include <limits.h>
7743
 
#else
7744
 
# include <assert.h>
7745
 
#endif
7746
 
                     Syntax error
7747
 
_ACEOF
7748
 
if ac_fn_c_try_cpp "$LINENO"; then :
7749
 
 
7750
 
else
7751
 
  # Broken: fails on valid input.
7752
 
continue
7753
 
fi
7754
 
rm -f conftest.err conftest.i conftest.$ac_ext
7755
 
 
7756
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7757
 
  # can be detected and how.
7758
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759
 
/* end confdefs.h.  */
7760
 
#include <ac_nonexistent.h>
7761
 
_ACEOF
7762
 
if ac_fn_c_try_cpp "$LINENO"; then :
7763
 
  # Broken: success on invalid input.
7764
 
continue
7765
 
else
7766
 
  # Passes both tests.
7767
 
ac_preproc_ok=:
7768
 
break
7769
 
fi
7770
 
rm -f conftest.err conftest.i conftest.$ac_ext
7771
 
 
7772
 
done
7773
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7774
 
rm -f conftest.i conftest.err conftest.$ac_ext
7775
 
if $ac_preproc_ok; then :
7776
 
  break
7777
 
fi
7778
 
 
7779
 
    done
7780
 
    ac_cv_prog_CPP=$CPP
7781
 
 
7782
 
fi
7783
 
  CPP=$ac_cv_prog_CPP
7784
 
else
7785
 
  ac_cv_prog_CPP=$CPP
7786
 
fi
7787
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7788
 
$as_echo "$CPP" >&6; }
7789
 
ac_preproc_ok=false
7790
 
for ac_c_preproc_warn_flag in '' yes
7791
 
do
7792
 
  # Use a header file that comes with gcc, so configuring glibc
7793
 
  # with a fresh cross-compiler works.
7794
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7795
 
  # <limits.h> exists even on freestanding compilers.
7796
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
7797
 
  # not just through cpp. "Syntax error" is here to catch this case.
7798
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799
 
/* end confdefs.h.  */
7800
 
#ifdef __STDC__
7801
 
# include <limits.h>
7802
 
#else
7803
 
# include <assert.h>
7804
 
#endif
7805
 
                     Syntax error
7806
 
_ACEOF
7807
 
if ac_fn_c_try_cpp "$LINENO"; then :
7808
 
 
7809
 
else
7810
 
  # Broken: fails on valid input.
7811
 
continue
7812
 
fi
7813
 
rm -f conftest.err conftest.i conftest.$ac_ext
7814
 
 
7815
 
  # OK, works on sane cases.  Now check whether nonexistent headers
7816
 
  # can be detected and how.
7817
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818
 
/* end confdefs.h.  */
7819
 
#include <ac_nonexistent.h>
7820
 
_ACEOF
7821
 
if ac_fn_c_try_cpp "$LINENO"; then :
7822
 
  # Broken: success on invalid input.
7823
 
continue
7824
 
else
7825
 
  # Passes both tests.
7826
 
ac_preproc_ok=:
7827
 
break
7828
 
fi
7829
 
rm -f conftest.err conftest.i conftest.$ac_ext
7830
 
 
7831
 
done
7832
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7833
 
rm -f conftest.i conftest.err conftest.$ac_ext
7834
 
if $ac_preproc_ok; then :
7835
 
 
7836
 
else
7837
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7838
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7839
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7840
 
See \`config.log' for more details" "$LINENO" 5; }
7841
 
fi
7842
 
 
7843
 
ac_ext=c
7844
 
ac_cpp='$CPP $CPPFLAGS'
7845
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
 
 
7849
 
 
7850
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7851
 
$as_echo_n "checking for ANSI C header files... " >&6; }
7852
 
if ${ac_cv_header_stdc+:} false; then :
7853
 
  $as_echo_n "(cached) " >&6
7854
 
else
7855
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856
 
/* end confdefs.h.  */
7857
 
#include <stdlib.h>
7858
 
#include <stdarg.h>
7859
 
#include <string.h>
7860
 
#include <float.h>
7861
 
 
7862
 
int
7863
 
main ()
7864
 
{
7865
 
 
7866
 
  ;
7867
 
  return 0;
7868
 
}
7869
 
_ACEOF
7870
 
if ac_fn_c_try_compile "$LINENO"; then :
7871
 
  ac_cv_header_stdc=yes
7872
 
else
7873
 
  ac_cv_header_stdc=no
7874
 
fi
7875
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876
 
 
7877
 
if test $ac_cv_header_stdc = yes; then
7878
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880
 
/* end confdefs.h.  */
7881
 
#include <string.h>
7882
 
 
7883
 
_ACEOF
7884
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7885
 
  $EGREP "memchr" >/dev/null 2>&1; then :
7886
 
 
7887
 
else
7888
 
  ac_cv_header_stdc=no
7889
 
fi
7890
 
rm -f conftest*
7891
 
 
7892
 
fi
7893
 
 
7894
 
if test $ac_cv_header_stdc = yes; then
7895
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7896
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897
 
/* end confdefs.h.  */
7898
 
#include <stdlib.h>
7899
 
 
7900
 
_ACEOF
7901
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902
 
  $EGREP "free" >/dev/null 2>&1; then :
7903
 
 
7904
 
else
7905
 
  ac_cv_header_stdc=no
7906
 
fi
7907
 
rm -f conftest*
7908
 
 
7909
 
fi
7910
 
 
7911
 
if test $ac_cv_header_stdc = yes; then
7912
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7913
 
  if test "$cross_compiling" = yes; then :
7914
 
  :
7915
 
else
7916
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917
 
/* end confdefs.h.  */
7918
 
#include <ctype.h>
7919
 
#include <stdlib.h>
7920
 
#if ((' ' & 0x0FF) == 0x020)
7921
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7922
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7923
 
#else
7924
 
# define ISLOWER(c) \
7925
 
                   (('a' <= (c) && (c) <= 'i') \
7926
 
                     || ('j' <= (c) && (c) <= 'r') \
7927
 
                     || ('s' <= (c) && (c) <= 'z'))
7928
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7929
 
#endif
7930
 
 
7931
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7932
 
int
7933
 
main ()
7934
 
{
7935
 
  int i;
7936
 
  for (i = 0; i < 256; i++)
7937
 
    if (XOR (islower (i), ISLOWER (i))
7938
 
        || toupper (i) != TOUPPER (i))
7939
 
      return 2;
7940
 
  return 0;
7941
 
}
7942
 
_ACEOF
7943
 
if ac_fn_c_try_run "$LINENO"; then :
7944
 
 
7945
 
else
7946
 
  ac_cv_header_stdc=no
7947
 
fi
7948
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7949
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7950
 
fi
7951
 
 
7952
 
fi
7953
 
fi
7954
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7955
 
$as_echo "$ac_cv_header_stdc" >&6; }
7956
 
if test $ac_cv_header_stdc = yes; then
7957
 
 
7958
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7959
 
 
7960
 
fi
7961
 
 
7962
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7963
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7964
 
                  inttypes.h stdint.h unistd.h
7965
 
do :
7966
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7967
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7968
 
"
7969
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7970
 
  cat >>confdefs.h <<_ACEOF
7971
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7972
 
_ACEOF
7973
 
 
7974
 
fi
7975
 
 
7976
 
done
7977
 
 
7978
 
 
7979
8013
for ac_header in dlfcn.h
7980
8014
do :
7981
8015
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8668
8702
      lt_prog_compiler_static='-non_shared'
8669
8703
      ;;
8670
8704
 
8671
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8705
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8672
8706
      case $cc_basename in
8673
8707
      # old Intel for x86_64 which still supported -KPIC.
8674
8708
      ecc*)
10838
10872
  esac
10839
10873
  ;;
10840
10874
 
10841
 
gnu*)
10842
 
  version_type=linux # correct to gnu/linux during the next big refactor
10843
 
  need_lib_prefix=no
10844
 
  need_version=no
10845
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10846
 
  soname_spec='${libname}${release}${shared_ext}$major'
10847
 
  shlibpath_var=LD_LIBRARY_PATH
10848
 
  shlibpath_overrides_runpath=no
10849
 
  hardcode_into_libs=yes
10850
 
  ;;
10851
 
 
10852
10875
haiku*)
10853
10876
  version_type=linux # correct to gnu/linux during the next big refactor
10854
10877
  need_lib_prefix=no
10965
10988
  ;;
10966
10989
 
10967
10990
# This must be glibc/ELF.
10968
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10991
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10969
10992
  version_type=linux # correct to gnu/linux during the next big refactor
10970
10993
  need_lib_prefix=no
10971
10994
  need_version=no
13081
13104
# Only expand once:
13082
13105
 
13083
13106
 
 
13107
 
 
13108
ac_ext=c
 
13109
ac_cpp='$CPP $CPPFLAGS'
 
13110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13113
if test -n "$ac_tool_prefix"; then
 
13114
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
13115
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
13116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13117
$as_echo_n "checking for $ac_word... " >&6; }
 
13118
if ${ac_cv_prog_CC+:} false; then :
 
13119
  $as_echo_n "(cached) " >&6
 
13120
else
 
13121
  if test -n "$CC"; then
 
13122
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13123
else
 
13124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13125
for as_dir in $PATH
 
13126
do
 
13127
  IFS=$as_save_IFS
 
13128
  test -z "$as_dir" && as_dir=.
 
13129
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13130
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13131
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
13132
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13133
    break 2
 
13134
  fi
 
13135
done
 
13136
  done
 
13137
IFS=$as_save_IFS
 
13138
 
 
13139
fi
 
13140
fi
 
13141
CC=$ac_cv_prog_CC
 
13142
if test -n "$CC"; then
 
13143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13144
$as_echo "$CC" >&6; }
 
13145
else
 
13146
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13147
$as_echo "no" >&6; }
 
13148
fi
 
13149
 
 
13150
 
 
13151
fi
 
13152
if test -z "$ac_cv_prog_CC"; then
 
13153
  ac_ct_CC=$CC
 
13154
  # Extract the first word of "gcc", so it can be a program name with args.
 
13155
set dummy gcc; ac_word=$2
 
13156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13157
$as_echo_n "checking for $ac_word... " >&6; }
 
13158
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
13159
  $as_echo_n "(cached) " >&6
 
13160
else
 
13161
  if test -n "$ac_ct_CC"; then
 
13162
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13163
else
 
13164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13165
for as_dir in $PATH
 
13166
do
 
13167
  IFS=$as_save_IFS
 
13168
  test -z "$as_dir" && as_dir=.
 
13169
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13170
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13171
    ac_cv_prog_ac_ct_CC="gcc"
 
13172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13173
    break 2
 
13174
  fi
 
13175
done
 
13176
  done
 
13177
IFS=$as_save_IFS
 
13178
 
 
13179
fi
 
13180
fi
 
13181
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13182
if test -n "$ac_ct_CC"; then
 
13183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13184
$as_echo "$ac_ct_CC" >&6; }
 
13185
else
 
13186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13187
$as_echo "no" >&6; }
 
13188
fi
 
13189
 
 
13190
  if test "x$ac_ct_CC" = x; then
 
13191
    CC=""
 
13192
  else
 
13193
    case $cross_compiling:$ac_tool_warned in
 
13194
yes:)
 
13195
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13197
ac_tool_warned=yes ;;
 
13198
esac
 
13199
    CC=$ac_ct_CC
 
13200
  fi
 
13201
else
 
13202
  CC="$ac_cv_prog_CC"
 
13203
fi
 
13204
 
 
13205
if test -z "$CC"; then
 
13206
          if test -n "$ac_tool_prefix"; then
 
13207
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
13208
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
13209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13210
$as_echo_n "checking for $ac_word... " >&6; }
 
13211
if ${ac_cv_prog_CC+:} false; then :
 
13212
  $as_echo_n "(cached) " >&6
 
13213
else
 
13214
  if test -n "$CC"; then
 
13215
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13216
else
 
13217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13218
for as_dir in $PATH
 
13219
do
 
13220
  IFS=$as_save_IFS
 
13221
  test -z "$as_dir" && as_dir=.
 
13222
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13223
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13224
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
13225
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13226
    break 2
 
13227
  fi
 
13228
done
 
13229
  done
 
13230
IFS=$as_save_IFS
 
13231
 
 
13232
fi
 
13233
fi
 
13234
CC=$ac_cv_prog_CC
 
13235
if test -n "$CC"; then
 
13236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13237
$as_echo "$CC" >&6; }
 
13238
else
 
13239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13240
$as_echo "no" >&6; }
 
13241
fi
 
13242
 
 
13243
 
 
13244
  fi
 
13245
fi
 
13246
if test -z "$CC"; then
 
13247
  # Extract the first word of "cc", so it can be a program name with args.
 
13248
set dummy cc; ac_word=$2
 
13249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13250
$as_echo_n "checking for $ac_word... " >&6; }
 
13251
if ${ac_cv_prog_CC+:} false; then :
 
13252
  $as_echo_n "(cached) " >&6
 
13253
else
 
13254
  if test -n "$CC"; then
 
13255
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13256
else
 
13257
  ac_prog_rejected=no
 
13258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13259
for as_dir in $PATH
 
13260
do
 
13261
  IFS=$as_save_IFS
 
13262
  test -z "$as_dir" && as_dir=.
 
13263
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13264
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13265
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
13266
       ac_prog_rejected=yes
 
13267
       continue
 
13268
     fi
 
13269
    ac_cv_prog_CC="cc"
 
13270
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13271
    break 2
 
13272
  fi
 
13273
done
 
13274
  done
 
13275
IFS=$as_save_IFS
 
13276
 
 
13277
if test $ac_prog_rejected = yes; then
 
13278
  # We found a bogon in the path, so make sure we never use it.
 
13279
  set dummy $ac_cv_prog_CC
 
13280
  shift
 
13281
  if test $# != 0; then
 
13282
    # We chose a different compiler from the bogus one.
 
13283
    # However, it has the same basename, so the bogon will be chosen
 
13284
    # first if we set CC to just the basename; use the full file name.
 
13285
    shift
 
13286
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
13287
  fi
 
13288
fi
 
13289
fi
 
13290
fi
 
13291
CC=$ac_cv_prog_CC
 
13292
if test -n "$CC"; then
 
13293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13294
$as_echo "$CC" >&6; }
 
13295
else
 
13296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13297
$as_echo "no" >&6; }
 
13298
fi
 
13299
 
 
13300
 
 
13301
fi
 
13302
if test -z "$CC"; then
 
13303
  if test -n "$ac_tool_prefix"; then
 
13304
  for ac_prog in cl.exe
 
13305
  do
 
13306
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
13307
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
13308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13309
$as_echo_n "checking for $ac_word... " >&6; }
 
13310
if ${ac_cv_prog_CC+:} false; then :
 
13311
  $as_echo_n "(cached) " >&6
 
13312
else
 
13313
  if test -n "$CC"; then
 
13314
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
13315
else
 
13316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13317
for as_dir in $PATH
 
13318
do
 
13319
  IFS=$as_save_IFS
 
13320
  test -z "$as_dir" && as_dir=.
 
13321
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13322
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13323
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
13324
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13325
    break 2
 
13326
  fi
 
13327
done
 
13328
  done
 
13329
IFS=$as_save_IFS
 
13330
 
 
13331
fi
 
13332
fi
 
13333
CC=$ac_cv_prog_CC
 
13334
if test -n "$CC"; then
 
13335
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
13336
$as_echo "$CC" >&6; }
 
13337
else
 
13338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13339
$as_echo "no" >&6; }
 
13340
fi
 
13341
 
 
13342
 
 
13343
    test -n "$CC" && break
 
13344
  done
 
13345
fi
 
13346
if test -z "$CC"; then
 
13347
  ac_ct_CC=$CC
 
13348
  for ac_prog in cl.exe
 
13349
do
 
13350
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13351
set dummy $ac_prog; ac_word=$2
 
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
13353
$as_echo_n "checking for $ac_word... " >&6; }
 
13354
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
13355
  $as_echo_n "(cached) " >&6
 
13356
else
 
13357
  if test -n "$ac_ct_CC"; then
 
13358
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
13359
else
 
13360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13361
for as_dir in $PATH
 
13362
do
 
13363
  IFS=$as_save_IFS
 
13364
  test -z "$as_dir" && as_dir=.
 
13365
    for ac_exec_ext in '' $ac_executable_extensions; do
 
13366
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
13367
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
13368
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13369
    break 2
 
13370
  fi
 
13371
done
 
13372
  done
 
13373
IFS=$as_save_IFS
 
13374
 
 
13375
fi
 
13376
fi
 
13377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
13378
if test -n "$ac_ct_CC"; then
 
13379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
13380
$as_echo "$ac_ct_CC" >&6; }
 
13381
else
 
13382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13383
$as_echo "no" >&6; }
 
13384
fi
 
13385
 
 
13386
 
 
13387
  test -n "$ac_ct_CC" && break
 
13388
done
 
13389
 
 
13390
  if test "x$ac_ct_CC" = x; then
 
13391
    CC=""
 
13392
  else
 
13393
    case $cross_compiling:$ac_tool_warned in
 
13394
yes:)
 
13395
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
13396
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13397
ac_tool_warned=yes ;;
 
13398
esac
 
13399
    CC=$ac_ct_CC
 
13400
  fi
 
13401
fi
 
13402
 
 
13403
fi
 
13404
 
 
13405
 
 
13406
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
13407
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
13408
as_fn_error $? "no acceptable C compiler found in \$PATH
 
13409
See \`config.log' for more details" "$LINENO" 5; }
 
13410
 
 
13411
# Provide some information about the compiler.
 
13412
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
13413
set X $ac_compile
 
13414
ac_compiler=$2
 
13415
for ac_option in --version -v -V -qversion; do
 
13416
  { { ac_try="$ac_compiler $ac_option >&5"
 
13417
case "(($ac_try" in
 
13418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13419
  *) ac_try_echo=$ac_try;;
 
13420
esac
 
13421
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
13422
$as_echo "$ac_try_echo"; } >&5
 
13423
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
13424
  ac_status=$?
 
13425
  if test -s conftest.err; then
 
13426
    sed '10a\
 
13427
... rest of stderr output deleted ...
 
13428
         10q' conftest.err >conftest.er1
 
13429
    cat conftest.er1 >&5
 
13430
  fi
 
13431
  rm -f conftest.er1 conftest.err
 
13432
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13433
  test $ac_status = 0; }
 
13434
done
 
13435
 
 
13436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
13437
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
13438
if ${ac_cv_c_compiler_gnu+:} false; then :
 
13439
  $as_echo_n "(cached) " >&6
 
13440
else
 
13441
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13442
/* end confdefs.h.  */
 
13443
 
 
13444
int
 
13445
main ()
 
13446
{
 
13447
#ifndef __GNUC__
 
13448
       choke me
 
13449
#endif
 
13450
 
 
13451
  ;
 
13452
  return 0;
 
13453
}
 
13454
_ACEOF
 
13455
if ac_fn_c_try_compile "$LINENO"; then :
 
13456
  ac_compiler_gnu=yes
 
13457
else
 
13458
  ac_compiler_gnu=no
 
13459
fi
 
13460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13461
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
13462
 
 
13463
fi
 
13464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
13465
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
13466
if test $ac_compiler_gnu = yes; then
 
13467
  GCC=yes
 
13468
else
 
13469
  GCC=
 
13470
fi
 
13471
ac_test_CFLAGS=${CFLAGS+set}
 
13472
ac_save_CFLAGS=$CFLAGS
 
13473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
13474
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
13475
if ${ac_cv_prog_cc_g+:} false; then :
 
13476
  $as_echo_n "(cached) " >&6
 
13477
else
 
13478
  ac_save_c_werror_flag=$ac_c_werror_flag
 
13479
   ac_c_werror_flag=yes
 
13480
   ac_cv_prog_cc_g=no
 
13481
   CFLAGS="-g"
 
13482
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13483
/* end confdefs.h.  */
 
13484
 
 
13485
int
 
13486
main ()
 
13487
{
 
13488
 
 
13489
  ;
 
13490
  return 0;
 
13491
}
 
13492
_ACEOF
 
13493
if ac_fn_c_try_compile "$LINENO"; then :
 
13494
  ac_cv_prog_cc_g=yes
 
13495
else
 
13496
  CFLAGS=""
 
13497
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13498
/* end confdefs.h.  */
 
13499
 
 
13500
int
 
13501
main ()
 
13502
{
 
13503
 
 
13504
  ;
 
13505
  return 0;
 
13506
}
 
13507
_ACEOF
 
13508
if ac_fn_c_try_compile "$LINENO"; then :
 
13509
 
 
13510
else
 
13511
  ac_c_werror_flag=$ac_save_c_werror_flag
 
13512
         CFLAGS="-g"
 
13513
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13514
/* end confdefs.h.  */
 
13515
 
 
13516
int
 
13517
main ()
 
13518
{
 
13519
 
 
13520
  ;
 
13521
  return 0;
 
13522
}
 
13523
_ACEOF
 
13524
if ac_fn_c_try_compile "$LINENO"; then :
 
13525
  ac_cv_prog_cc_g=yes
 
13526
fi
 
13527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13528
fi
 
13529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13530
fi
 
13531
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13532
   ac_c_werror_flag=$ac_save_c_werror_flag
 
13533
fi
 
13534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
13535
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
13536
if test "$ac_test_CFLAGS" = set; then
 
13537
  CFLAGS=$ac_save_CFLAGS
 
13538
elif test $ac_cv_prog_cc_g = yes; then
 
13539
  if test "$GCC" = yes; then
 
13540
    CFLAGS="-g -O2"
 
13541
  else
 
13542
    CFLAGS="-g"
 
13543
  fi
 
13544
else
 
13545
  if test "$GCC" = yes; then
 
13546
    CFLAGS="-O2"
 
13547
  else
 
13548
    CFLAGS=
 
13549
  fi
 
13550
fi
 
13551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
13552
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
13553
if ${ac_cv_prog_cc_c89+:} false; then :
 
13554
  $as_echo_n "(cached) " >&6
 
13555
else
 
13556
  ac_cv_prog_cc_c89=no
 
13557
ac_save_CC=$CC
 
13558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13559
/* end confdefs.h.  */
 
13560
#include <stdarg.h>
 
13561
#include <stdio.h>
 
13562
struct stat;
 
13563
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
13564
struct buf { int x; };
 
13565
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
13566
static char *e (p, i)
 
13567
     char **p;
 
13568
     int i;
 
13569
{
 
13570
  return p[i];
 
13571
}
 
13572
static char *f (char * (*g) (char **, int), char **p, ...)
 
13573
{
 
13574
  char *s;
 
13575
  va_list v;
 
13576
  va_start (v,p);
 
13577
  s = g (p, va_arg (v,int));
 
13578
  va_end (v);
 
13579
  return s;
 
13580
}
 
13581
 
 
13582
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
13583
   function prototypes and stuff, but not '\xHH' hex character constants.
 
13584
   These don't provoke an error unfortunately, instead are silently treated
 
13585
   as 'x'.  The following induces an error, until -std is added to get
 
13586
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
13587
   array size at least.  It's necessary to write '\x00'==0 to get something
 
13588
   that's true only with -std.  */
 
13589
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
13590
 
 
13591
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
13592
   inside strings and character constants.  */
 
13593
#define FOO(x) 'x'
 
13594
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
13595
 
 
13596
int test (int i, double x);
 
13597
struct s1 {int (*f) (int a);};
 
13598
struct s2 {int (*f) (double a);};
 
13599
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
13600
int argc;
 
13601
char **argv;
 
13602
int
 
13603
main ()
 
13604
{
 
13605
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
13606
  ;
 
13607
  return 0;
 
13608
}
 
13609
_ACEOF
 
13610
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
13611
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
13612
do
 
13613
  CC="$ac_save_CC $ac_arg"
 
13614
  if ac_fn_c_try_compile "$LINENO"; then :
 
13615
  ac_cv_prog_cc_c89=$ac_arg
 
13616
fi
 
13617
rm -f core conftest.err conftest.$ac_objext
 
13618
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
13619
done
 
13620
rm -f conftest.$ac_ext
 
13621
CC=$ac_save_CC
 
13622
 
 
13623
fi
 
13624
# AC_CACHE_VAL
 
13625
case "x$ac_cv_prog_cc_c89" in
 
13626
  x)
 
13627
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
13628
$as_echo "none needed" >&6; } ;;
 
13629
  xno)
 
13630
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
13631
$as_echo "unsupported" >&6; } ;;
 
13632
  *)
 
13633
    CC="$CC $ac_cv_prog_cc_c89"
 
13634
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
13635
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
13636
esac
 
13637
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
13638
 
 
13639
fi
 
13640
 
 
13641
ac_ext=c
 
13642
ac_cpp='$CPP $CPPFLAGS'
 
13643
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13644
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13645
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13646
 
 
13647
depcc="$CC"   am_compiler_list=
 
13648
 
 
13649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
13650
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
13651
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
13652
  $as_echo_n "(cached) " >&6
 
13653
else
 
13654
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
13655
  # We make a subdir and do the tests there.  Otherwise we can end up
 
13656
  # making bogus files that we don't know about and never remove.  For
 
13657
  # instance it was reported that on HP-UX the gcc test will end up
 
13658
  # making a dummy file named `D' -- because `-MD' means `put the output
 
13659
  # in D'.
 
13660
  rm -rf conftest.dir
 
13661
  mkdir conftest.dir
 
13662
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
13663
  # using a relative directory.
 
13664
  cp "$am_depcomp" conftest.dir
 
13665
  cd conftest.dir
 
13666
  # We will build objects and dependencies in a subdirectory because
 
13667
  # it helps to detect inapplicable dependency modes.  For instance
 
13668
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
13669
  # side effect of compilation, but ICC will put the dependencies in
 
13670
  # the current directory while Tru64 will put them in the object
 
13671
  # directory.
 
13672
  mkdir sub
 
13673
 
 
13674
  am_cv_CC_dependencies_compiler_type=none
 
13675
  if test "$am_compiler_list" = ""; then
 
13676
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
13677
  fi
 
13678
  am__universal=false
 
13679
  case " $depcc " in #(
 
13680
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
13681
     esac
 
13682
 
 
13683
  for depmode in $am_compiler_list; do
 
13684
    # Setup a source with many dependencies, because some compilers
 
13685
    # like to wrap large dependency lists on column 80 (with \), and
 
13686
    # we should not choose a depcomp mode which is confused by this.
 
13687
    #
 
13688
    # We need to recreate these files for each test, as the compiler may
 
13689
    # overwrite some of them when testing with obscure command lines.
 
13690
    # This happens at least with the AIX C compiler.
 
13691
    : > sub/conftest.c
 
13692
    for i in 1 2 3 4 5 6; do
 
13693
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
13694
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
13695
      # Solaris 8's {/usr,}/bin/sh.
 
13696
      touch sub/conftst$i.h
 
13697
    done
 
13698
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
13699
 
 
13700
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
13701
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
13702
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
13703
    # versions had trouble with output in subdirs
 
13704
    am__obj=sub/conftest.${OBJEXT-o}
 
13705
    am__minus_obj="-o $am__obj"
 
13706
    case $depmode in
 
13707
    gcc)
 
13708
      # This depmode causes a compiler race in universal mode.
 
13709
      test "$am__universal" = false || continue
 
13710
      ;;
 
13711
    nosideeffect)
 
13712
      # after this tag, mechanisms are not by side-effect, so they'll
 
13713
      # only be used when explicitly requested
 
13714
      if test "x$enable_dependency_tracking" = xyes; then
 
13715
        continue
 
13716
      else
 
13717
        break
 
13718
      fi
 
13719
      ;;
 
13720
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
13721
      # This compiler won't grok `-c -o', but also, the minuso test has
 
13722
      # not run yet.  These depmodes are late enough in the game, and
 
13723
      # so weak that their functioning should not be impacted.
 
13724
      am__obj=conftest.${OBJEXT-o}
 
13725
      am__minus_obj=
 
13726
      ;;
 
13727
    none) break ;;
 
13728
    esac
 
13729
    if depmode=$depmode \
 
13730
       source=sub/conftest.c object=$am__obj \
 
13731
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
13732
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
13733
         >/dev/null 2>conftest.err &&
 
13734
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
13735
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
13736
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
13737
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
13738
      # icc doesn't choke on unknown options, it will just issue warnings
 
13739
      # or remarks (even with -Werror).  So we grep stderr for any message
 
13740
      # that says an option was ignored or not supported.
 
13741
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
13742
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
13743
      # The diagnosis changed in icc 8.0:
 
13744
      #   icc: Command line remark: option '-MP' not supported
 
13745
      if (grep 'ignoring option' conftest.err ||
 
13746
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
13747
        am_cv_CC_dependencies_compiler_type=$depmode
 
13748
        break
 
13749
      fi
 
13750
    fi
 
13751
  done
 
13752
 
 
13753
  cd ..
 
13754
  rm -rf conftest.dir
 
13755
else
 
13756
  am_cv_CC_dependencies_compiler_type=none
 
13757
fi
 
13758
 
 
13759
fi
 
13760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
13761
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
13762
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
13763
 
 
13764
 if
 
13765
  test "x$enable_dependency_tracking" != xno \
 
13766
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
13767
  am__fastdepCC_TRUE=
 
13768
  am__fastdepCC_FALSE='#'
 
13769
else
 
13770
  am__fastdepCC_TRUE='#'
 
13771
  am__fastdepCC_FALSE=
 
13772
fi
 
13773
 
 
13774
 
 
13775
 
 
13776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
13777
$as_echo_n "checking whether ln -s works... " >&6; }
 
13778
LN_S=$as_ln_s
 
13779
if test "$LN_S" = "ln -s"; then
 
13780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13781
$as_echo "yes" >&6; }
 
13782
else
 
13783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
13784
$as_echo "no, using $LN_S" >&6; }
 
13785
fi
 
13786
 
 
13787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
13788
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
13789
set x ${MAKE-make}
 
13790
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
13791
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
13792
  $as_echo_n "(cached) " >&6
 
13793
else
 
13794
  cat >conftest.make <<\_ACEOF
 
13795
SHELL = /bin/sh
 
13796
all:
 
13797
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
13798
_ACEOF
 
13799
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
13800
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
13801
  *@@@%%%=?*=@@@%%%*)
 
13802
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
13803
  *)
 
13804
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
13805
esac
 
13806
rm -f conftest.make
 
13807
fi
 
13808
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
13809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13810
$as_echo "yes" >&6; }
 
13811
  SET_MAKE=
 
13812
else
 
13813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13814
$as_echo "no" >&6; }
 
13815
  SET_MAKE="MAKE=${MAKE-make}"
 
13816
fi
 
13817
 
 
13818
 
 
13819
 
 
13820
LIBM=
 
13821
case $host in
 
13822
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 
13823
  # These system don't have libm, or don't need it
 
13824
  ;;
 
13825
*-ncr-sysv4.3*)
 
13826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
 
13827
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
 
13828
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
 
13829
  $as_echo_n "(cached) " >&6
 
13830
else
 
13831
  ac_check_lib_save_LIBS=$LIBS
 
13832
LIBS="-lmw  $LIBS"
 
13833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13834
/* end confdefs.h.  */
 
13835
 
 
13836
/* Override any GCC internal prototype to avoid an error.
 
13837
   Use char because int might match the return type of a GCC
 
13838
   builtin and then its argument prototype would still apply.  */
 
13839
#ifdef __cplusplus
 
13840
extern "C"
 
13841
#endif
 
13842
char _mwvalidcheckl ();
 
13843
int
 
13844
main ()
 
13845
{
 
13846
return _mwvalidcheckl ();
 
13847
  ;
 
13848
  return 0;
 
13849
}
 
13850
_ACEOF
 
13851
if ac_fn_c_try_link "$LINENO"; then :
 
13852
  ac_cv_lib_mw__mwvalidcheckl=yes
 
13853
else
 
13854
  ac_cv_lib_mw__mwvalidcheckl=no
 
13855
fi
 
13856
rm -f core conftest.err conftest.$ac_objext \
 
13857
    conftest$ac_exeext conftest.$ac_ext
 
13858
LIBS=$ac_check_lib_save_LIBS
 
13859
fi
 
13860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
 
13861
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
 
13862
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
 
13863
  LIBM="-lmw"
 
13864
fi
 
13865
 
 
13866
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
 
13867
$as_echo_n "checking for cos in -lm... " >&6; }
 
13868
if ${ac_cv_lib_m_cos+:} false; then :
 
13869
  $as_echo_n "(cached) " >&6
 
13870
else
 
13871
  ac_check_lib_save_LIBS=$LIBS
 
13872
LIBS="-lm  $LIBS"
 
13873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13874
/* end confdefs.h.  */
 
13875
 
 
13876
/* Override any GCC internal prototype to avoid an error.
 
13877
   Use char because int might match the return type of a GCC
 
13878
   builtin and then its argument prototype would still apply.  */
 
13879
#ifdef __cplusplus
 
13880
extern "C"
 
13881
#endif
 
13882
char cos ();
 
13883
int
 
13884
main ()
 
13885
{
 
13886
return cos ();
 
13887
  ;
 
13888
  return 0;
 
13889
}
 
13890
_ACEOF
 
13891
if ac_fn_c_try_link "$LINENO"; then :
 
13892
  ac_cv_lib_m_cos=yes
 
13893
else
 
13894
  ac_cv_lib_m_cos=no
 
13895
fi
 
13896
rm -f core conftest.err conftest.$ac_objext \
 
13897
    conftest$ac_exeext conftest.$ac_ext
 
13898
LIBS=$ac_check_lib_save_LIBS
 
13899
fi
 
13900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
 
13901
$as_echo "$ac_cv_lib_m_cos" >&6; }
 
13902
if test "x$ac_cv_lib_m_cos" = xyes; then :
 
13903
  LIBM="$LIBM -lm"
 
13904
fi
 
13905
 
 
13906
  ;;
 
13907
*)
 
13908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
 
13909
$as_echo_n "checking for cos in -lm... " >&6; }
 
13910
if ${ac_cv_lib_m_cos+:} false; then :
 
13911
  $as_echo_n "(cached) " >&6
 
13912
else
 
13913
  ac_check_lib_save_LIBS=$LIBS
 
13914
LIBS="-lm  $LIBS"
 
13915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13916
/* end confdefs.h.  */
 
13917
 
 
13918
/* Override any GCC internal prototype to avoid an error.
 
13919
   Use char because int might match the return type of a GCC
 
13920
   builtin and then its argument prototype would still apply.  */
 
13921
#ifdef __cplusplus
 
13922
extern "C"
 
13923
#endif
 
13924
char cos ();
 
13925
int
 
13926
main ()
 
13927
{
 
13928
return cos ();
 
13929
  ;
 
13930
  return 0;
 
13931
}
 
13932
_ACEOF
 
13933
if ac_fn_c_try_link "$LINENO"; then :
 
13934
  ac_cv_lib_m_cos=yes
 
13935
else
 
13936
  ac_cv_lib_m_cos=no
 
13937
fi
 
13938
rm -f core conftest.err conftest.$ac_objext \
 
13939
    conftest$ac_exeext conftest.$ac_ext
 
13940
LIBS=$ac_check_lib_save_LIBS
 
13941
fi
 
13942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
 
13943
$as_echo "$ac_cv_lib_m_cos" >&6; }
 
13944
if test "x$ac_cv_lib_m_cos" = xyes; then :
 
13945
  LIBM="-lm"
 
13946
fi
 
13947
 
 
13948
  ;;
 
13949
esac
 
13950
 
 
13951
 
 
13952
 
 
13953
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h
 
13954
do :
 
13955
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13956
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
13957
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
13958
  cat >>confdefs.h <<_ACEOF
 
13959
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13960
_ACEOF
 
13961
 
 
13962
fi
 
13963
 
 
13964
done
 
13965
 
 
13966
ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
 
13967
if test "x$ac_cv_header_syslog_h" = xyes; then :
 
13968
 
 
13969
$as_echo "#define USE_SYSLOG 1" >>confdefs.h
 
13970
 
 
13971
fi
 
13972
 
 
13973
 
 
13974
 
 
13975
have_pthreads=no
 
13976
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
13977
if test "x$ac_cv_header_pthread_h" = xyes; then :
 
13978
  have_pthreads=yes
 
13979
fi
 
13980
 
 
13981
 
 
13982
if test "$have_pthreads" = "yes"; then
 
13983
 
 
13984
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
 
13985
 
 
13986
fi
 
13987
 
 
13988
 
13084
13989
ac_config_files="$ac_config_files libltdl/Makefile"
13085
13990
 
13086
13991
 
13087
 
major=`expr $LC_CURRENT - $LC_AGE`
13088
 
 
13089
 
cat >>confdefs.h <<_ACEOF
13090
 
#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION"
13091
 
_ACEOF
13092
 
 
13093
 
 
13094
 
cat >>confdefs.h <<_ACEOF
13095
 
#define LIBCLAMAV_MAJORVER $major
13096
 
_ACEOF
13097
 
 
13098
13992
 
13099
13993
$as_echo "#define SCANBUFF 131072" >>confdefs.h
13100
13994
 
13138
14032
        fi
13139
14033
 
13140
14034
 
13141
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13142
 
$as_echo_n "checking for ANSI C header files... " >&6; }
13143
 
if ${ac_cv_header_stdc+:} false; then :
13144
 
  $as_echo_n "(cached) " >&6
13145
 
else
13146
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147
 
/* end confdefs.h.  */
13148
 
#include <stdlib.h>
13149
 
#include <stdarg.h>
13150
 
#include <string.h>
13151
 
#include <float.h>
13152
 
 
13153
 
int
13154
 
main ()
13155
 
{
13156
 
 
13157
 
  ;
13158
 
  return 0;
13159
 
}
13160
 
_ACEOF
13161
 
if ac_fn_c_try_compile "$LINENO"; then :
13162
 
  ac_cv_header_stdc=yes
13163
 
else
13164
 
  ac_cv_header_stdc=no
13165
 
fi
13166
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13167
 
 
13168
 
if test $ac_cv_header_stdc = yes; then
13169
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13170
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171
 
/* end confdefs.h.  */
13172
 
#include <string.h>
13173
 
 
13174
 
_ACEOF
13175
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13176
 
  $EGREP "memchr" >/dev/null 2>&1; then :
13177
 
 
13178
 
else
13179
 
  ac_cv_header_stdc=no
13180
 
fi
13181
 
rm -f conftest*
13182
 
 
13183
 
fi
13184
 
 
13185
 
if test $ac_cv_header_stdc = yes; then
13186
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13187
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188
 
/* end confdefs.h.  */
13189
 
#include <stdlib.h>
13190
 
 
13191
 
_ACEOF
13192
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13193
 
  $EGREP "free" >/dev/null 2>&1; then :
13194
 
 
13195
 
else
13196
 
  ac_cv_header_stdc=no
13197
 
fi
13198
 
rm -f conftest*
13199
 
 
13200
 
fi
13201
 
 
13202
 
if test $ac_cv_header_stdc = yes; then
13203
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13204
 
  if test "$cross_compiling" = yes; then :
13205
 
  :
13206
 
else
13207
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208
 
/* end confdefs.h.  */
13209
 
#include <ctype.h>
13210
 
#include <stdlib.h>
13211
 
#if ((' ' & 0x0FF) == 0x020)
13212
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13213
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13214
 
#else
13215
 
# define ISLOWER(c) \
13216
 
                   (('a' <= (c) && (c) <= 'i') \
13217
 
                     || ('j' <= (c) && (c) <= 'r') \
13218
 
                     || ('s' <= (c) && (c) <= 'z'))
13219
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13220
 
#endif
13221
 
 
13222
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13223
 
int
13224
 
main ()
13225
 
{
13226
 
  int i;
13227
 
  for (i = 0; i < 256; i++)
13228
 
    if (XOR (islower (i), ISLOWER (i))
13229
 
        || toupper (i) != TOUPPER (i))
13230
 
      return 2;
13231
 
  return 0;
13232
 
}
13233
 
_ACEOF
13234
 
if ac_fn_c_try_run "$LINENO"; then :
13235
 
 
13236
 
else
13237
 
  ac_cv_header_stdc=no
13238
 
fi
13239
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13240
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13241
 
fi
13242
 
 
13243
 
fi
13244
 
fi
13245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13246
 
$as_echo "$ac_cv_header_stdc" >&6; }
13247
 
if test $ac_cv_header_stdc = yes; then
13248
 
 
13249
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13250
 
 
13251
 
fi
13252
 
 
13253
14035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13254
14036
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
13255
14037
if ${ac_cv_c_restrict+:} false; then :
13419
14201
    ;;
13420
14202
esac
13421
14203
 
13422
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU byte ordering is bigendian" >&5
13423
 
$as_echo_n "checking whether FPU byte ordering is bigendian... " >&6; }
13424
 
if ${ac_cv_c_fpu_bigendian+:} false; then :
13425
 
  $as_echo_n "(cached) " >&6
13426
 
else
13427
 
  ac_cv_c_fpu_bigendian=auto
13428
 
 
13429
 
# Check whether --with-fpu-words-bigendian was given.
13430
 
if test "${with_fpu_words_bigendian+set}" = set; then :
13431
 
  withval=$with_fpu_words_bigendian; ac_cv_c_fpu_bigendian=$with_fpu_words_bigendian
13432
 
else
13433
 
  ac_cv_c_fpu_bigendian=auto
13434
 
fi
13435
 
 
13436
 
 
13437
 
if test $ac_cv_c_fpu_bigendian = auto; then
13438
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439
 
/* end confdefs.h.  */
13440
 
double d = 3815911171354501045744583353695226502220105394563506259449467213186125718792664588210662403287568710818873279842508553551908601408568128557088985172985437412593385138085986771664896.0;
13441
 
_ACEOF
13442
 
if ac_fn_c_try_compile "$LINENO"; then :
13443
 
 
13444
 
if ${GREP-grep} emmeelle conftest.$ac_objext >/dev/null 2>&1 ; then
13445
 
        ac_cv_c_fpu_bigendian=yes
13446
 
fi
13447
 
if ${GREP-grep} elleemme conftest.$ac_objext >/dev/null 2>&1 ; then
13448
 
        ac_cv_c_fpu_bigendian=no
13449
 
fi
13450
 
if test "$ac_cv_c_bigendian" = "universal"; then
13451
 
        ac_cv_c_fpu_bigendian=universal
13452
 
fi
13453
 
 
13454
 
fi
13455
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456
 
fi
13457
 
 
13458
 
 
13459
 
fi
13460
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fpu_bigendian" >&5
13461
 
$as_echo "$ac_cv_c_fpu_bigendian" >&6; }
13462
 
have_autoitea06="no"
13463
 
case $ac_cv_c_fpu_bigendian in
13464
 
        yes)
13465
 
 
13466
 
$as_echo "#define FPU_WORDS_BIGENDIAN 1" >>confdefs.h
13467
 
 
13468
 
                have_autoitea06="yes"
13469
 
                ;;
13470
 
        no)
13471
 
 
13472
 
$as_echo "#define FPU_WORDS_BIGENDIAN 0" >>confdefs.h
13473
 
 
13474
 
                have_autoitea06="yes"
13475
 
                ;;
13476
 
        universal)
13477
 
 
13478
 
$as_echo "#define FPU_WORDS_BIGENDIAN WORDS_BIGENDIAN" >>confdefs.h
13479
 
 
13480
 
                have_autoitea06="yes"
13481
 
                ;;
13482
 
        *)
13483
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&5
13484
 
$as_echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&2;}
13485
 
esac
13486
 
 
13487
14204
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13488
14205
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13489
14206
if ${ac_cv_c_bigendian+:} false; then :
13709
14426
 esac
13710
14427
 
13711
14428
 
13712
 
LIBM=
13713
 
case $host in
13714
 
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13715
 
  # These system don't have libm, or don't need it
13716
 
  ;;
13717
 
*-ncr-sysv4.3*)
13718
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13719
 
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13720
 
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13721
 
  $as_echo_n "(cached) " >&6
13722
 
else
13723
 
  ac_check_lib_save_LIBS=$LIBS
13724
 
LIBS="-lmw  $LIBS"
13725
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726
 
/* end confdefs.h.  */
13727
 
 
13728
 
/* Override any GCC internal prototype to avoid an error.
13729
 
   Use char because int might match the return type of a GCC
13730
 
   builtin and then its argument prototype would still apply.  */
13731
 
#ifdef __cplusplus
13732
 
extern "C"
13733
 
#endif
13734
 
char _mwvalidcheckl ();
13735
 
int
13736
 
main ()
13737
 
{
13738
 
return _mwvalidcheckl ();
13739
 
  ;
13740
 
  return 0;
13741
 
}
13742
 
_ACEOF
13743
 
if ac_fn_c_try_link "$LINENO"; then :
13744
 
  ac_cv_lib_mw__mwvalidcheckl=yes
13745
 
else
13746
 
  ac_cv_lib_mw__mwvalidcheckl=no
13747
 
fi
13748
 
rm -f core conftest.err conftest.$ac_objext \
13749
 
    conftest$ac_exeext conftest.$ac_ext
13750
 
LIBS=$ac_check_lib_save_LIBS
13751
 
fi
13752
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13753
 
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13754
 
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13755
 
  LIBM="-lmw"
13756
 
fi
13757
 
 
13758
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13759
 
$as_echo_n "checking for cos in -lm... " >&6; }
13760
 
if ${ac_cv_lib_m_cos+:} false; then :
13761
 
  $as_echo_n "(cached) " >&6
13762
 
else
13763
 
  ac_check_lib_save_LIBS=$LIBS
13764
 
LIBS="-lm  $LIBS"
13765
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766
 
/* end confdefs.h.  */
13767
 
 
13768
 
/* Override any GCC internal prototype to avoid an error.
13769
 
   Use char because int might match the return type of a GCC
13770
 
   builtin and then its argument prototype would still apply.  */
13771
 
#ifdef __cplusplus
13772
 
extern "C"
13773
 
#endif
13774
 
char cos ();
13775
 
int
13776
 
main ()
13777
 
{
13778
 
return cos ();
13779
 
  ;
13780
 
  return 0;
13781
 
}
13782
 
_ACEOF
13783
 
if ac_fn_c_try_link "$LINENO"; then :
13784
 
  ac_cv_lib_m_cos=yes
13785
 
else
13786
 
  ac_cv_lib_m_cos=no
13787
 
fi
13788
 
rm -f core conftest.err conftest.$ac_objext \
13789
 
    conftest$ac_exeext conftest.$ac_ext
13790
 
LIBS=$ac_check_lib_save_LIBS
13791
 
fi
13792
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13793
 
$as_echo "$ac_cv_lib_m_cos" >&6; }
13794
 
if test "x$ac_cv_lib_m_cos" = xyes; then :
13795
 
  LIBM="$LIBM -lm"
13796
 
fi
13797
 
 
13798
 
  ;;
13799
 
*)
13800
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13801
 
$as_echo_n "checking for cos in -lm... " >&6; }
13802
 
if ${ac_cv_lib_m_cos+:} false; then :
13803
 
  $as_echo_n "(cached) " >&6
13804
 
else
13805
 
  ac_check_lib_save_LIBS=$LIBS
13806
 
LIBS="-lm  $LIBS"
13807
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808
 
/* end confdefs.h.  */
13809
 
 
13810
 
/* Override any GCC internal prototype to avoid an error.
13811
 
   Use char because int might match the return type of a GCC
13812
 
   builtin and then its argument prototype would still apply.  */
13813
 
#ifdef __cplusplus
13814
 
extern "C"
13815
 
#endif
13816
 
char cos ();
13817
 
int
13818
 
main ()
13819
 
{
13820
 
return cos ();
13821
 
  ;
13822
 
  return 0;
13823
 
}
13824
 
_ACEOF
13825
 
if ac_fn_c_try_link "$LINENO"; then :
13826
 
  ac_cv_lib_m_cos=yes
13827
 
else
13828
 
  ac_cv_lib_m_cos=no
13829
 
fi
13830
 
rm -f core conftest.err conftest.$ac_objext \
13831
 
    conftest$ac_exeext conftest.$ac_ext
13832
 
LIBS=$ac_check_lib_save_LIBS
13833
 
fi
13834
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13835
 
$as_echo "$ac_cv_lib_m_cos" >&6; }
13836
 
if test "x$ac_cv_lib_m_cos" = xyes; then :
13837
 
  LIBM="-lm"
13838
 
fi
13839
 
 
13840
 
  ;;
13841
 
esac
13842
 
 
13843
 
 
13844
 
 
13845
14429
# Check whether --enable-gcc-vcheck was given.
13846
14430
if test "${enable_gcc_vcheck+set}" = set; then :
13847
14431
  enableval=$enable_gcc_vcheck; gcc_check=$enableval
14190
14774
fi
14191
14775
 
14192
14776
 
14193
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
14194
 
$as_echo_n "checking for ld --version-script... " >&6; }
14195
 
if ${ac_cv_ld_version_script+:} false; then :
14196
 
  $as_echo_n "(cached) " >&6
14197
 
else
14198
 
    cat > conftest.c <<EOF
14199
 
void cl_symbol1(void) {}
14200
 
void cli_symbol2(void) {}
14201
 
EOF
14202
 
  cat > conftest.map <<EOF
14203
 
RELEASE
14204
 
{
14205
 
        global:
14206
 
                cl_*;
14207
 
        local:
14208
 
                *;
14209
 
};
14210
 
PRIVATE
14211
 
{
14212
 
        global:
14213
 
                cli_*;
14214
 
        local:
14215
 
                *;
14216
 
};
14217
 
EOF
14218
 
    if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared
14219
 
                                -o conftest.so conftest.c
14220
 
                                -Wl,--version-script,conftest.map
14221
 
                       1>&5'
14222
 
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14223
 
  (eval $ac_try) 2>&5
14224
 
  ac_status=$?
14225
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226
 
  test $ac_status = 0; }; };
14227
 
  then
14228
 
      VERSIONSCRIPTFLAG=--version-script
14229
 
      ac_cv_ld_version_script=yes
14230
 
  else
14231
 
                if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared
14232
 
                                -o conftest.so conftest.c
14233
 
                                -Wl,-M,conftest.map
14234
 
                        1>&5'
14235
 
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14236
 
  (eval $ac_try) 2>&5
14237
 
  ac_status=$?
14238
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239
 
  test $ac_status = 0; }; };
14240
 
        then
14241
 
                VERSIONSCRIPTFLAG=-M
14242
 
                ac_cv_ld_version_script=yes;
14243
 
        else
14244
 
                ac_cv_ld_version_script=no
14245
 
        fi
14246
 
  fi
14247
 
 rm -f conftest*
14248
 
fi
14249
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_version_script" >&5
14250
 
$as_echo "$ac_cv_ld_version_script" >&6; }
14251
 
 
14252
 
 if test "x$ac_cv_ld_version_script" = "xyes"; then
14253
 
  VERSIONSCRIPT_TRUE=
14254
 
  VERSIONSCRIPT_FALSE='#'
14255
 
else
14256
 
  VERSIONSCRIPT_TRUE='#'
14257
 
  VERSIONSCRIPT_FALSE=
14258
 
fi
14259
 
 
14260
 
 
14261
 
# it is not fatal if gperf is missing
 
14777
# It's not fatal if gperf is missing
14262
14778
 
14263
14779
GPERF=${GPERF-"${am_missing_run}gperf"}
14264
14780
 
14265
14781
 
14266
14782
 
14267
 
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h
14268
 
do :
14269
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14271
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14272
 
  cat >>confdefs.h <<_ACEOF
14273
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14274
 
_ACEOF
14275
 
 
14276
 
fi
14277
 
 
14278
 
done
14279
 
 
14280
 
ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14281
 
if test "x$ac_cv_header_syslog_h" = xyes; then :
14282
 
 
14283
 
$as_echo "#define USE_SYSLOG 1" >>confdefs.h
14284
 
 
14285
 
fi
14286
 
 
14287
 
 
14288
 
 
14289
14783
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14290
14784
if test "x$ac_cv_type_off_t" = xyes; then :
14291
14785
 
14498
14992
 
14499
14993
 
14500
14994
 
 
14995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
 
14996
$as_echo_n "checking for ld --version-script... " >&6; }
 
14997
if ${ac_cv_ld_version_script+:} false; then :
 
14998
  $as_echo_n "(cached) " >&6
 
14999
else
 
15000
    cat > conftest.c <<EOF
 
15001
void cl_symbol1(void) {}
 
15002
void cli_symbol2(void) {}
 
15003
EOF
 
15004
  cat > conftest.map <<EOF
 
15005
RELEASE
 
15006
{
 
15007
        global:
 
15008
                cl_*;
 
15009
        local:
 
15010
                *;
 
15011
};
 
15012
PRIVATE
 
15013
{
 
15014
        global:
 
15015
                cli_*;
 
15016
        local:
 
15017
                *;
 
15018
};
 
15019
EOF
 
15020
    if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared
 
15021
                                -o conftest.so conftest.c
 
15022
                                -Wl,--version-script,conftest.map
 
15023
                       1>&5'
 
15024
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
15025
  (eval $ac_try) 2>&5
 
15026
  ac_status=$?
 
15027
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15028
  test $ac_status = 0; }; };
 
15029
  then
 
15030
      VERSIONSCRIPTFLAG=--version-script
 
15031
      ac_cv_ld_version_script=yes
 
15032
  else
 
15033
                if { ac_try='${CC-cc} $CFLAGS $pic_flag $LDFLAGS -shared
 
15034
                                -o conftest.so conftest.c
 
15035
                                -Wl,-M,conftest.map
 
15036
                        1>&5'
 
15037
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
 
15038
  (eval $ac_try) 2>&5
 
15039
  ac_status=$?
 
15040
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15041
  test $ac_status = 0; }; };
 
15042
        then
 
15043
                VERSIONSCRIPTFLAG=-M
 
15044
                ac_cv_ld_version_script=yes;
 
15045
        else
 
15046
                ac_cv_ld_version_script=no
 
15047
        fi
 
15048
  fi
 
15049
 rm -f conftest*
 
15050
fi
 
15051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ld_version_script" >&5
 
15052
$as_echo "$ac_cv_ld_version_script" >&6; }
 
15053
 
 
15054
 if test "x$ac_cv_ld_version_script" = "xyes"; then
 
15055
  VERSIONSCRIPT_TRUE=
 
15056
  VERSIONSCRIPT_FALSE='#'
 
15057
else
 
15058
  VERSIONSCRIPT_TRUE='#'
 
15059
  VERSIONSCRIPT_FALSE=
 
15060
fi
 
15061
 
 
15062
 
 
15063
 
14501
15064
# Check whether --enable-experimental was given.
14502
15065
if test "${enable_experimental+set}" = set; then :
14503
15066
  enableval=$enable_experimental; enable_experimental=$enableval
14964
15527
 
14965
15528
        fi
14966
15529
 
 
15530
 
 
15531
for ac_func in enable_extended_FILE_stdio
 
15532
do :
 
15533
  ac_fn_c_check_func "$LINENO" "enable_extended_FILE_stdio" "ac_cv_func_enable_extended_FILE_stdio"
 
15534
if test "x$ac_cv_func_enable_extended_FILE_stdio" = xyes; then :
 
15535
  cat >>confdefs.h <<_ACEOF
 
15536
#define HAVE_ENABLE_EXTENDED_FILE_STDIO 1
 
15537
_ACEOF
 
15538
 
 
15539
fi
 
15540
done
 
15541
 
 
15542
 
 
15543
for ac_func in timegm
 
15544
do :
 
15545
  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
 
15546
if test "x$ac_cv_func_timegm" = xyes; then :
 
15547
  cat >>confdefs.h <<_ACEOF
 
15548
#define HAVE_TIMEGM 1
 
15549
_ACEOF
 
15550
 
 
15551
fi
 
15552
done
 
15553
 
 
15554
for ac_func in sysctlbyname
 
15555
do :
 
15556
  ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
 
15557
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
 
15558
  cat >>confdefs.h <<_ACEOF
 
15559
#define HAVE_SYSCTLBYNAME 1
 
15560
_ACEOF
 
15561
 
 
15562
fi
 
15563
done
 
15564
 
 
15565
 
14967
15566
# Check whether --enable-mempool was given.
14968
15567
if test "${enable_mempool+set}" = set; then :
14969
15568
  enableval=$enable_mempool; enable_mempool=$enableval
15005
15604
 
15006
15605
 
15007
15606
if test "$enable_check_ut" != "no" ; then
 
15607
case "$host_os" in
 
15608
    *linux*)
 
15609
        save_LDFLAGS="$LDFLAGS"
 
15610
        LDFLAGS="$LDFLAGS -pthread -Wl,--no-as-needed -lm -Wl,--as-needed -lrt"
 
15611
        ;;
 
15612
esac
 
15613
 
15008
15614
 
15009
15615
      if test "X$prefix" = "XNONE"; then
15010
15616
    acl_final_prefix="$ac_default_prefix"
15687
16293
                        LIBCHECK="$ac_cv_findlib_CHECK_libs"
15688
16294
                        LTLIBCHECK="$ac_cv_findlib_CHECK_ltlibs"
15689
16295
                        INCCHECK="$ac_cv_findlib_CHECK_inc"
15690
 
                        CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK"
 
16296
                        CHECK_CPPFLAGS="$INCCHECK"; CHECK_LIBS="$LTLIBCHECK $LDFLAGS"
15691
16297
 
15692
16298
fi
15693
16299
 
 
16300
 
 
16301
 
 
16302
case "$host_os" in
 
16303
    *linux*)
 
16304
        LDFLAGS="$save_LDFLAGS"
 
16305
        ;;
 
16306
esac
15694
16307
 
15695
16308
fi
15696
16309
 
15869
16482
fi
15870
16483
 
15871
16484
 
15872
 
have_pthreads=no
15873
 
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15874
 
if test "x$ac_cv_header_pthread_h" = xyes; then :
15875
 
  have_pthreads=yes
15876
 
fi
15877
 
 
 
16485
 
 
16486
 
 
16487
want_xml="auto"
 
16488
# Check whether --enable-xml was given.
 
16489
if test "${enable_xml+set}" = set; then :
 
16490
  enableval=$enable_xml; want_xml=$enableval
 
16491
else
 
16492
  want_xml="auto"
 
16493
fi
 
16494
 
 
16495
 
 
16496
XML_HOME=""
 
16497
if test "X$want_xml" != "Xno"; then
 
16498
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 installation" >&5
 
16499
$as_echo_n "checking for libxml2 installation... " >&6; }
 
16500
 
 
16501
# Check whether --with-xml was given.
 
16502
if test "${with_xml+set}" = set; then :
 
16503
  withval=$with_xml;
 
16504
  if test "$withval"
 
16505
  then
 
16506
    XML_HOME="$withval"
 
16507
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $XML_HOME" >&5
 
16508
$as_echo "using $XML_HOME" >&6; }
 
16509
  else
 
16510
    as_fn_error $? "cannot assign blank value to --with-xml" "$LINENO" 5
 
16511
  fi
 
16512
 
 
16513
else
 
16514
 
 
16515
  XML_HOME=/usr/local
 
16516
  if test ! -x "$XML_HOME/bin/xml2-config"
 
16517
  then
 
16518
    XML_HOME=/usr
 
16519
    if test ! -x "$XML_HOME/bin/xml2-config"
 
16520
    then
 
16521
      XML_HOME=""
 
16522
    fi
 
16523
  fi
 
16524
  if test "x$XML_HOME" != "x"; then
 
16525
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_HOME" >&5
 
16526
$as_echo "$XML_HOME" >&6; }
 
16527
  else
 
16528
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
16529
$as_echo "not found" >&6; }
 
16530
  fi
 
16531
 
 
16532
fi
 
16533
 
 
16534
fi
 
16535
 
 
16536
found_xml="no"
 
16537
XMLCONF_VERSION=""
 
16538
XML_CPPFLAGS=""
 
16539
XML_LIBS=""
 
16540
if test "x$XML_HOME" != "x"; then
 
16541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml2-config version" >&5
 
16542
$as_echo_n "checking xml2-config version... " >&6; }
 
16543
  XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`"
 
16544
  if test "x%XMLCONF_VERSION" != "x"; then
 
16545
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONF_VERSION" >&5
 
16546
$as_echo "$XMLCONF_VERSION" >&6; }
 
16547
    found_xml="yes"
 
16548
    XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`"
 
16549
    XML_LIBS="`$XML_HOME/bin/xml2-config --libs`"
 
16550
  else
 
16551
    as_fn_error $? "xml2-config failed" "$LINENO" 5
 
16552
  fi
 
16553
fi
 
16554
 
 
16555
working_xml="no"
 
16556
if test "X$found_xml" != "Xno"; then
 
16557
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlreader.h in $XML_HOME" >&5
 
16558
$as_echo_n "checking for xmlreader.h in $XML_HOME... " >&6; }
 
16559
 
 
16560
  if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then
 
16561
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
16562
$as_echo "not found" >&6; }
 
16563
  else
 
16564
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
16565
$as_echo "found" >&6; }
 
16566
    save_LIBS="$LIBS"
 
16567
    save_CPPFLAGS="$CPPFLAGS"
 
16568
    CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
 
16569
    save_LDFLAGS="$LDFLAGS"
 
16570
    LDFLAGS="$LDFLAGS $XML_LIBS"
 
16571
 
 
16572
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlTextReaderRead in -lxml2" >&5
 
16573
$as_echo_n "checking for xmlTextReaderRead in -lxml2... " >&6; }
 
16574
if ${ac_cv_lib_xml2_xmlTextReaderRead+:} false; then :
 
16575
  $as_echo_n "(cached) " >&6
 
16576
else
 
16577
  ac_check_lib_save_LIBS=$LIBS
 
16578
LIBS="-lxml2  $LIBS"
 
16579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16580
/* end confdefs.h.  */
 
16581
 
 
16582
/* Override any GCC internal prototype to avoid an error.
 
16583
   Use char because int might match the return type of a GCC
 
16584
   builtin and then its argument prototype would still apply.  */
 
16585
#ifdef __cplusplus
 
16586
extern "C"
 
16587
#endif
 
16588
char xmlTextReaderRead ();
 
16589
int
 
16590
main ()
 
16591
{
 
16592
return xmlTextReaderRead ();
 
16593
  ;
 
16594
  return 0;
 
16595
}
 
16596
_ACEOF
 
16597
if ac_fn_c_try_link "$LINENO"; then :
 
16598
  ac_cv_lib_xml2_xmlTextReaderRead=yes
 
16599
else
 
16600
  ac_cv_lib_xml2_xmlTextReaderRead=no
 
16601
fi
 
16602
rm -f core conftest.err conftest.$ac_objext \
 
16603
    conftest$ac_exeext conftest.$ac_ext
 
16604
LIBS=$ac_check_lib_save_LIBS
 
16605
fi
 
16606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlTextReaderRead" >&5
 
16607
$as_echo "$ac_cv_lib_xml2_xmlTextReaderRead" >&6; }
 
16608
if test "x$ac_cv_lib_xml2_xmlTextReaderRead" = xyes; then :
 
16609
  working_xml="yes"
 
16610
else
 
16611
  working_xml="no"
 
16612
fi
 
16613
 
 
16614
 
 
16615
    CPPFLAGS="$save_CPPFLAGS"
 
16616
    LDFLAGS="$save_LDFLAGS"
 
16617
    LIBS="$save_LIBS"
 
16618
  fi
 
16619
fi
 
16620
 
 
16621
if test "$working_xml" = "yes"; then
 
16622
 
 
16623
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
 
16624
 
 
16625
 
 
16626
 
 
16627
  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with libxml2 from $XML_HOME" >&5
 
16628
$as_echo "$as_me: Compiling and linking with libxml2 from $XML_HOME" >&6;}
 
16629
else
 
16630
  if test "$want_xml" = "yes"; then
 
16631
     as_fn_error $? "****** Please install libxml2 packages!" "$LINENO" 5
 
16632
  else
 
16633
    if test "$want_xml" != "no"; then
 
16634
      { $as_echo "$as_me:${as_lineno-$LINENO}: ****** libxml2 support unavailable" >&5
 
16635
$as_echo "$as_me: ****** libxml2 support unavailable" >&6;}
 
16636
    fi
 
16637
  fi
 
16638
  XML_CPPFLAGS=""
 
16639
  XML_LIBS=""
 
16640
 
 
16641
 
 
16642
fi
 
16643
 
 
16644
 if test "x$HAVE_LIBXML2" = "xyes"; then
 
16645
  HAVE_LIBXML2_TRUE=
 
16646
  HAVE_LIBXML2_FALSE='#'
 
16647
else
 
16648
  HAVE_LIBXML2_TRUE='#'
 
16649
  HAVE_LIBXML2_FALSE=
 
16650
fi
 
16651
 
 
16652
 
 
16653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL installation" >&5
 
16654
$as_echo_n "checking for OpenSSL installation... " >&6; }
 
16655
 
 
16656
 
 
16657
# Check whether --with-openssl was given.
 
16658
if test "${with_openssl+set}" = set; then :
 
16659
  withval=$with_openssl;
 
16660
if test "$withval"; then
 
16661
    LIBSSL_HOME="$withval"
 
16662
fi
 
16663
 
 
16664
else
 
16665
 
 
16666
LIBSSL_HOME=/usr/local
 
16667
if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
 
16668
then
 
16669
    LIBSSL_HOME=/usr
 
16670
fi
 
16671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSSL_HOME" >&5
 
16672
$as_echo "$LIBSSL_HOME" >&6; }
 
16673
 
 
16674
fi
 
16675
 
 
16676
 
 
16677
if test ! -f "$LIBSSL_HOME/include/openssl/ssl.h"
 
16678
then
 
16679
    as_fn_error $? "OpenSSL not found." "$LINENO" 5
 
16680
fi
 
16681
 
 
16682
save_LDFLAGS="$LDFLAGS"
 
16683
save_CFLAGS="$CFLAGS"
 
16684
save_LIBS="$LIBS"
 
16685
 
 
16686
SSL_LIBS="-lssl -lcrypto"
 
16687
 
 
16688
if test "$LIBSSL_HOME" != "/usr"; then
 
16689
    SSL_LDFLAGS="-L$LIBSSL_HOME/lib"
 
16690
    SSL_CPPFLAGS="-I$LIBSSL_HOME/include"
 
16691
    LDFLAGS="-L$LIBSSL_HOME/lib $SSL_LIBS"
 
16692
    CFLAGS="$SSL_CPPFLAGS"
 
16693
else
 
16694
    SSL_LDFLAGS=""
 
16695
    SSL_CPPFLAGS=""
 
16696
fi
 
16697
 
 
16698
have_ssl="no"
 
16699
have_crypto="no"
 
16700
 
 
16701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
 
16702
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
 
16703
if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
 
16704
  $as_echo_n "(cached) " >&6
 
16705
else
 
16706
  ac_check_lib_save_LIBS=$LIBS
 
16707
LIBS="-lssl -lcrypto $LIBS"
 
16708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16709
/* end confdefs.h.  */
 
16710
 
 
16711
/* Override any GCC internal prototype to avoid an error.
 
16712
   Use char because int might match the return type of a GCC
 
16713
   builtin and then its argument prototype would still apply.  */
 
16714
#ifdef __cplusplus
 
16715
extern "C"
 
16716
#endif
 
16717
char SSL_library_init ();
 
16718
int
 
16719
main ()
 
16720
{
 
16721
return SSL_library_init ();
 
16722
  ;
 
16723
  return 0;
 
16724
}
 
16725
_ACEOF
 
16726
if ac_fn_c_try_link "$LINENO"; then :
 
16727
  ac_cv_lib_ssl_SSL_library_init=yes
 
16728
else
 
16729
  ac_cv_lib_ssl_SSL_library_init=no
 
16730
fi
 
16731
rm -f core conftest.err conftest.$ac_objext \
 
16732
    conftest$ac_exeext conftest.$ac_ext
 
16733
LIBS=$ac_check_lib_save_LIBS
 
16734
fi
 
16735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
 
16736
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
 
16737
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
 
16738
  have_ssl="yes"
 
16739
else
 
16740
  as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
 
16741
fi
 
16742
 
 
16743
 
 
16744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
 
16745
$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
 
16746
if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
 
16747
  $as_echo_n "(cached) " >&6
 
16748
else
 
16749
  ac_check_lib_save_LIBS=$LIBS
 
16750
LIBS="-lcrypto  $LIBS"
 
16751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16752
/* end confdefs.h.  */
 
16753
 
 
16754
/* Override any GCC internal prototype to avoid an error.
 
16755
   Use char because int might match the return type of a GCC
 
16756
   builtin and then its argument prototype would still apply.  */
 
16757
#ifdef __cplusplus
 
16758
extern "C"
 
16759
#endif
 
16760
char EVP_EncryptInit ();
 
16761
int
 
16762
main ()
 
16763
{
 
16764
return EVP_EncryptInit ();
 
16765
  ;
 
16766
  return 0;
 
16767
}
 
16768
_ACEOF
 
16769
if ac_fn_c_try_link "$LINENO"; then :
 
16770
  ac_cv_lib_crypto_EVP_EncryptInit=yes
 
16771
else
 
16772
  ac_cv_lib_crypto_EVP_EncryptInit=no
 
16773
fi
 
16774
rm -f core conftest.err conftest.$ac_objext \
 
16775
    conftest$ac_exeext conftest.$ac_ext
 
16776
LIBS=$ac_check_lib_save_LIBS
 
16777
fi
 
16778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
 
16779
$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
 
16780
if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
 
16781
  have_crypto="yes"
 
16782
else
 
16783
  as_fn_error $? "Your OpenSSL installation is misconfigured or missing" "$LINENO" 5
 
16784
fi
 
16785
 
 
16786
 
 
16787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_new in -lssl" >&5
 
16788
$as_echo_n "checking for X509_VERIFY_PARAM_new in -lssl... " >&6; }
 
16789
if ${ac_cv_lib_ssl_X509_VERIFY_PARAM_new+:} false; then :
 
16790
  $as_echo_n "(cached) " >&6
 
16791
else
 
16792
  ac_check_lib_save_LIBS=$LIBS
 
16793
LIBS="-lssl -lcrypto $LIBS"
 
16794
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16795
/* end confdefs.h.  */
 
16796
 
 
16797
/* Override any GCC internal prototype to avoid an error.
 
16798
   Use char because int might match the return type of a GCC
 
16799
   builtin and then its argument prototype would still apply.  */
 
16800
#ifdef __cplusplus
 
16801
extern "C"
 
16802
#endif
 
16803
char X509_VERIFY_PARAM_new ();
 
16804
int
 
16805
main ()
 
16806
{
 
16807
return X509_VERIFY_PARAM_new ();
 
16808
  ;
 
16809
  return 0;
 
16810
}
 
16811
_ACEOF
 
16812
if ac_fn_c_try_link "$LINENO"; then :
 
16813
  ac_cv_lib_ssl_X509_VERIFY_PARAM_new=yes
 
16814
else
 
16815
  ac_cv_lib_ssl_X509_VERIFY_PARAM_new=no
 
16816
fi
 
16817
rm -f core conftest.err conftest.$ac_objext \
 
16818
    conftest$ac_exeext conftest.$ac_ext
 
16819
LIBS=$ac_check_lib_save_LIBS
 
16820
fi
 
16821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&5
 
16822
$as_echo "$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" >&6; }
 
16823
if test "x$ac_cv_lib_ssl_X509_VERIFY_PARAM_new" = xyes; then :
 
16824
  cat >>confdefs.h <<_ACEOF
 
16825
#define HAVE_LIBSSL 1
 
16826
_ACEOF
 
16827
 
 
16828
  LIBS="-lssl $LIBS"
 
16829
 
 
16830
else
 
16831
  as_fn_error $? "Your OpenSSL installation is missing the X509_VERIFY_PARAM function. Please upgrade to a more recent version of OpenSSL." "$LINENO" 5
 
16832
fi
 
16833
 
 
16834
 
 
16835
LDFLAGS="$save_LDFLAGS"
 
16836
CFLAGS="$save_CFLAGS"
 
16837
LIBS="$save_LIBS"
15878
16838
 
15879
16839
 
15880
16840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15899
16859
  MAINT=$MAINTAINER_MODE_TRUE
15900
16860
 
15901
16861
 
 
16862
 
15902
16863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib installation" >&5
15903
16864
$as_echo_n "checking for zlib installation... " >&6; }
15904
16865
 
15961
16922
    if test "$ZLIB_HOME" != "/usr"; then
15962
16923
        CPPFLAGS="$CPPFLAGS -I$ZLIB_HOME/include"
15963
16924
        save_LDFLAGS="$LDFLAGS"
15964
 
        LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
15965
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
 
16925
    LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib"
 
16926
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
15966
16927
$as_echo_n "checking for inflateEnd in -lz... " >&6; }
15967
16928
if ${ac_cv_lib_z_inflateEnd+:} false; then :
15968
16929
  $as_echo_n "(cached) " >&6
16146
17107
    LIBS="$save_LIBS"
16147
17108
fi
16148
17109
 
 
17110
 
16149
17111
# Check whether --enable-bzip2 was given.
16150
17112
if test "${enable_bzip2+set}" = set; then :
16151
17113
  enableval=$enable_bzip2; want_bzip2=$enableval
17006
17968
fi
17007
17969
 
17008
17970
 
17009
 
want_xml="auto"
17010
 
# Check whether --enable-xml was given.
17011
 
if test "${enable_xml+set}" = set; then :
17012
 
  enableval=$enable_xml; want_xml=$enableval
17013
 
else
17014
 
  want_xml="auto"
17015
 
fi
17016
 
 
17017
 
 
17018
 
XML_HOME=""
17019
 
if test "X$want_xml" != "Xno"; then
17020
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 installation" >&5
17021
 
$as_echo_n "checking for libxml2 installation... " >&6; }
17022
 
 
17023
 
# Check whether --with-xml was given.
17024
 
if test "${with_xml+set}" = set; then :
17025
 
  withval=$with_xml;
17026
 
  if test "$withval"
17027
 
  then
17028
 
    XML_HOME="$withval"
17029
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $XML_HOME" >&5
17030
 
$as_echo "using $XML_HOME" >&6; }
17031
 
  else
17032
 
    as_fn_error $? "cannot assign blank value to --with-xml" "$LINENO" 5
17033
 
  fi
17034
 
 
17035
 
else
17036
 
 
17037
 
  XML_HOME=/usr/local
17038
 
  if test ! -x "$XML_HOME/bin/xml2-config"
17039
 
  then
17040
 
    XML_HOME=/usr
17041
 
    if test ! -x "$XML_HOME/bin/xml2-config"
17042
 
    then
17043
 
      XML_HOME=""
17044
 
    fi
17045
 
  fi
17046
 
  if test "x$XML_HOME" != "x"; then
17047
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_HOME" >&5
17048
 
$as_echo "$XML_HOME" >&6; }
17049
 
  else
17050
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17051
 
$as_echo "not found" >&6; }
17052
 
  fi
17053
 
 
17054
 
fi
17055
 
 
17056
 
fi
17057
 
 
17058
 
found_xml="no"
17059
 
XMLCONF_VERSION=""
17060
 
XML_CPPFLAGS=""
17061
 
XML_LIBS=""
17062
 
if test "x$XML_HOME" != "x"; then
17063
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml2-config version" >&5
17064
 
$as_echo_n "checking xml2-config version... " >&6; }
17065
 
  XMLCONF_VERSION="`$XML_HOME/bin/xml2-config --version`"
17066
 
  if test "x%XMLCONF_VERSION" != "x"; then
17067
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONF_VERSION" >&5
17068
 
$as_echo "$XMLCONF_VERSION" >&6; }
17069
 
    found_xml="yes"
17070
 
    XML_CPPFLAGS="`$XML_HOME/bin/xml2-config --cflags`"
17071
 
    XML_LIBS="`$XML_HOME/bin/xml2-config --libs`"
17072
 
  else
17073
 
    as_fn_error $? "xml2-config failed" "$LINENO" 5
17074
 
  fi
17075
 
fi
17076
 
 
17077
 
working_xml="no"
17078
 
if test "X$found_xml" != "Xno"; then
17079
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlreader.h in $XML_HOME" >&5
17080
 
$as_echo_n "checking for xmlreader.h in $XML_HOME... " >&6; }
17081
 
 
17082
 
  if test ! -f "$XML_HOME/include/libxml2/libxml/xmlreader.h"; then
17083
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17084
 
$as_echo "not found" >&6; }
17085
 
  else
17086
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17087
 
$as_echo "found" >&6; }
17088
 
    save_LIBS="$LIBS"
17089
 
    save_CPPFLAGS="$CPPFLAGS"
17090
 
    CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
17091
 
    save_LDFLAGS="$LDFLAGS"
17092
 
    LDFLAGS="$LDFLAGS $XML_LIBS"
17093
 
 
17094
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlTextReaderRead in -lxml2" >&5
17095
 
$as_echo_n "checking for xmlTextReaderRead in -lxml2... " >&6; }
17096
 
if ${ac_cv_lib_xml2_xmlTextReaderRead+:} false; then :
17097
 
  $as_echo_n "(cached) " >&6
17098
 
else
17099
 
  ac_check_lib_save_LIBS=$LIBS
17100
 
LIBS="-lxml2  $LIBS"
17101
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102
 
/* end confdefs.h.  */
17103
 
 
17104
 
/* Override any GCC internal prototype to avoid an error.
17105
 
   Use char because int might match the return type of a GCC
17106
 
   builtin and then its argument prototype would still apply.  */
17107
 
#ifdef __cplusplus
17108
 
extern "C"
17109
 
#endif
17110
 
char xmlTextReaderRead ();
17111
 
int
17112
 
main ()
17113
 
{
17114
 
return xmlTextReaderRead ();
17115
 
  ;
17116
 
  return 0;
17117
 
}
17118
 
_ACEOF
17119
 
if ac_fn_c_try_link "$LINENO"; then :
17120
 
  ac_cv_lib_xml2_xmlTextReaderRead=yes
17121
 
else
17122
 
  ac_cv_lib_xml2_xmlTextReaderRead=no
17123
 
fi
17124
 
rm -f core conftest.err conftest.$ac_objext \
17125
 
    conftest$ac_exeext conftest.$ac_ext
17126
 
LIBS=$ac_check_lib_save_LIBS
17127
 
fi
17128
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlTextReaderRead" >&5
17129
 
$as_echo "$ac_cv_lib_xml2_xmlTextReaderRead" >&6; }
17130
 
if test "x$ac_cv_lib_xml2_xmlTextReaderRead" = xyes; then :
17131
 
  working_xml="yes"
17132
 
else
17133
 
  working_xml="no"
17134
 
fi
17135
 
 
17136
 
 
17137
 
    CPPFLAGS="$save_CPPFLAGS"
17138
 
    LDFLAGS="$save_LDFLAGS"
17139
 
    LIBS="$save_LIBS"
17140
 
  fi
17141
 
fi
17142
 
 
17143
 
if test "$working_xml" = "yes"; then
17144
 
 
17145
 
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
17146
 
 
17147
 
 
17148
 
 
17149
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling and linking with libxml2 from $XML_HOME" >&5
17150
 
$as_echo "$as_me: Compiling and linking with libxml2 from $XML_HOME" >&6;}
17151
 
else
17152
 
  if test "$want_xml" = "yes"; then
17153
 
     as_fn_error $? "****** Please install libxml2 packages!" "$LINENO" 5
17154
 
  else
17155
 
    if test "$want_xml" != "no"; then
17156
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: ****** libxml2 support unavailable" >&5
17157
 
$as_echo "$as_me: ****** libxml2 support unavailable" >&6;}
17158
 
    fi
17159
 
  fi
17160
 
  XML_CPPFLAGS=""
17161
 
  XML_LIBS=""
17162
 
 
17163
 
 
17164
 
fi
17165
 
 
17166
17971
# Check whether --enable-getaddrinfo was given.
17167
17972
if test "${enable_getaddrinfo+set}" = set; then :
17168
17973
  enableval=$enable_getaddrinfo; want_getaddrinfo=$enableval
17582
18387
        LIBS="$save_LIBS"
17583
18388
fi
17584
18389
 
 
18390
have_pthreads=no
 
18391
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
18392
if test "x$ac_cv_header_pthread_h" = xyes; then :
 
18393
  have_pthreads=yes
 
18394
fi
 
18395
 
 
18396
 
 
18397
 
17585
18398
# Check whether --enable-pthreads was given.
17586
18399
if test "${enable_pthreads+set}" = set; then :
17587
18400
  enableval=$enable_pthreads; have_pthreads=$enableval
17610
18423
fi
17611
18424
 
17612
18425
 
 
18426
# Check whether --enable-yp-check was given.
 
18427
if test "${enable_yp_check+set}" = set; then :
 
18428
  enableval=$enable_yp_check; use_yp=$enableval
 
18429
else
 
18430
  use_yp="no"
 
18431
fi
 
18432
 
 
18433
 
17613
18434
 
17614
18435
# Check whether --with-user was given.
17615
18436
if test "${with_user+set}" = set; then :
17639
18460
_ACEOF
17640
18461
 
17641
18462
 
17642
 
# Check whether --enable-clamav was given.
17643
 
if test "${enable_clamav+set}" = set; then :
17644
 
  enableval=$enable_clamav; test_clamav=$enableval
17645
 
else
17646
 
  test_clamav=yes
17647
 
fi
17648
 
 
17649
 
 
17650
 
# Check whether --enable-debug was given.
17651
 
if test "${enable_debug+set}" = set; then :
17652
 
  enableval=$enable_debug; enable_debug=$enableval
17653
 
else
17654
 
  enable_debug="no"
17655
 
fi
17656
 
 
17657
 
 
17658
18463
if test "$enable_debug" = "yes"; then
17659
18464
  VERSION_SUFFIX="$VERSION_SUFFIX-debug"
17660
18465
 
17687
18492
 
17688
18493
fi
17689
18494
 
 
18495
 
17690
18496
# Check whether --enable-dns-fix was given.
17691
18497
if test "${enable_dns_fix+set}" = set; then :
17692
18498
  enableval=$enable_dns_fix; enable_dnsfix=$enableval
17832
18638
        THREAD_LIBS="-lpthread"
17833
18639
        TH_SAFE="-thread-safe"
17834
18640
        if test "$want_fanotify" = "yes"; then
17835
 
            ac_fn_c_check_header_mongrel "$LINENO" "linux/fanotify.h" "ac_cv_header_linux_fanotify_h" "$ac_includes_default"
17836
 
if test "x$ac_cv_header_linux_fanotify_h" = xyes; then :
 
18641
            ac_fn_c_check_header_mongrel "$LINENO" "sys/fanotify.h" "ac_cv_header_sys_fanotify_h" "$ac_includes_default"
 
18642
if test "x$ac_cv_header_sys_fanotify_h" = xyes; then :
17837
18643
 
17838
18644
$as_echo "#define FANOTIFY 1" >>confdefs.h
17839
18645
 
18049
18855
    ;;
18050
18856
esac
18051
18857
 
18052
 
 
18053
 
 
18054
 
 
18055
 
 
18056
 
 
18057
 
 
18058
 
 
18059
 
 
18060
18858
if test "$have_milter" = "yes"; then
18061
18859
 
18062
18860
        save_LIBS="$LIBS"
18274
19072
 
18275
19073
fi
18276
19074
 
18277
 
for ac_func in enable_extended_FILE_stdio
18278
 
do :
18279
 
  ac_fn_c_check_func "$LINENO" "enable_extended_FILE_stdio" "ac_cv_func_enable_extended_FILE_stdio"
18280
 
if test "x$ac_cv_func_enable_extended_FILE_stdio" = xyes; then :
18281
 
  cat >>confdefs.h <<_ACEOF
18282
 
#define HAVE_ENABLE_EXTENDED_FILE_STDIO 1
18283
 
_ACEOF
18284
 
 
18285
 
fi
18286
 
done
18287
 
 
18288
 
 
18289
19075
 
18290
19076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r" >&5
18291
19077
$as_echo_n "checking for readdir_r... " >&6; }
18580
19366
    then
18581
19367
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18582
19368
$as_echo "no" >&6; }
18583
 
        as_fn_error $? "User $clamav_user (and/or group $clamav_group) does not exist. Please read the documentation !" "$LINENO" 5
 
19369
        as_fn_error $? "User $clamav_user (and/or group $clamav_group) doesn't exist. Please read the documentation !" "$LINENO" 5
18584
19370
    else
18585
19371
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, user $clamav_user and group $clamav_group" >&5
18586
19372
$as_echo "yes, user $clamav_user and group $clamav_group" >&6; }
19432
20218
fi
19433
20219
 
19434
20220
 
19435
 
 
19436
 
cat >>confdefs.h <<_ACEOF
19437
 
#define VERSION "$VERSION"
19438
 
_ACEOF
19439
 
 
19440
 
 
19441
 
cat >>confdefs.h <<_ACEOF
19442
 
#define VERSION_SUFFIX "$VERSION_SUFFIX"
19443
 
_ACEOF
19444
 
 
19445
 
 
19446
20221
# Check whether --enable-clamdtop was given.
19447
20222
if test "${enable_clamdtop+set}" = set; then :
19448
20223
  enableval=$enable_clamdtop; enable_clamdtop=$enableval
21114
21889
 
21115
21890
fi
21116
21891
 
21117
 
ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 docs/man/clambc.1 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1"
 
21892
 
 
21893
case "$host_os" in
 
21894
freebsd*)
 
21895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kinfo_getvmmap in -lutil" >&5
 
21896
$as_echo_n "checking for kinfo_getvmmap in -lutil... " >&6; }
 
21897
if ${ac_cv_lib_util_kinfo_getvmmap+:} false; then :
 
21898
  $as_echo_n "(cached) " >&6
 
21899
else
 
21900
  ac_check_lib_save_LIBS=$LIBS
 
21901
LIBS="-lutil  $LIBS"
 
21902
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21903
/* end confdefs.h.  */
 
21904
 
 
21905
/* Override any GCC internal prototype to avoid an error.
 
21906
   Use char because int might match the return type of a GCC
 
21907
   builtin and then its argument prototype would still apply.  */
 
21908
#ifdef __cplusplus
 
21909
extern "C"
 
21910
#endif
 
21911
char kinfo_getvmmap ();
 
21912
int
 
21913
main ()
 
21914
{
 
21915
return kinfo_getvmmap ();
 
21916
  ;
 
21917
  return 0;
 
21918
}
 
21919
_ACEOF
 
21920
if ac_fn_c_try_link "$LINENO"; then :
 
21921
  ac_cv_lib_util_kinfo_getvmmap=yes
 
21922
else
 
21923
  ac_cv_lib_util_kinfo_getvmmap=no
 
21924
fi
 
21925
rm -f core conftest.err conftest.$ac_objext \
 
21926
    conftest$ac_exeext conftest.$ac_ext
 
21927
LIBS=$ac_check_lib_save_LIBS
 
21928
fi
 
21929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_kinfo_getvmmap" >&5
 
21930
$as_echo "$ac_cv_lib_util_kinfo_getvmmap" >&6; }
 
21931
if test "x$ac_cv_lib_util_kinfo_getvmmap" = xyes; then :
 
21932
  LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lutil"
 
21933
else
 
21934
  as_fn_error $? "You are running BSD but you don't have kinfo_getvmmap in the util library. Please fix manually." "$LINENO" 5
 
21935
fi
 
21936
 
 
21937
;;
 
21938
esac
 
21939
 
 
21940
 
 
21941
have_curl="no"
 
21942
curl_msg="Please use the web interface for submitting FPs/FNs."
 
21943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl installation" >&5
 
21944
$as_echo_n "checking for libcurl installation... " >&6; }
 
21945
 
 
21946
 
 
21947
# Check whether --with-libcurl was given.
 
21948
if test "${with_libcurl+set}" = set; then :
 
21949
  withval=$with_libcurl;
 
21950
if test "$withval"; then
 
21951
    LIBCURL_HOME="$withval"
 
21952
fi
 
21953
 
 
21954
else
 
21955
 
 
21956
LIBCURL_HOME=/usr/local
 
21957
if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
 
21958
then
 
21959
    LIBCURL_HOME=/usr
 
21960
fi
 
21961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCURL_HOME" >&5
 
21962
$as_echo "$LIBCURL_HOME" >&6; }
 
21963
 
 
21964
fi
 
21965
 
 
21966
 
 
21967
if test ! -f "$LIBCURL_HOME/include/curl/curl.h"
 
21968
then
 
21969
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl not found. Please use the web interface for submitting FPs/FNs." >&5
 
21970
$as_echo "$as_me: WARNING: libcurl not found. Please use the web interface for submitting FPs/FNs." >&2;}
 
21971
else
 
21972
    if test -f "$LIBCURL_HOME/bin/curl-config"; then
 
21973
        CURL_LDFLAGS=$($LIBCURL_HOME/bin/curl-config --libs)
 
21974
        CURL_CPPFLAGS=$($LIBCURL_HOME/bin/curl-config --cflags)
 
21975
    else
 
21976
        if test "$LIBCURL_HOME" != "/usr"; then
 
21977
            CURL_LDFLAGS="-L$LIBCURL_HOME/lib -lcurl"
 
21978
            CURL_CPPFLAGS="-I$LIBCURL_HOME/include"
 
21979
        else
 
21980
            CURL_LDFLAGS="-lcurl"
 
21981
            CURL_CPPFLAGS=""
 
21982
        fi
 
21983
    fi
 
21984
 
 
21985
    save_LDFLAGS="$LDFLAGS"
 
21986
    LDFLAGS="$CURL_LDFLAGS"
 
21987
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
 
21988
$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
 
21989
if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
 
21990
  $as_echo_n "(cached) " >&6
 
21991
else
 
21992
  ac_check_lib_save_LIBS=$LIBS
 
21993
LIBS="-lcurl  $LIBS"
 
21994
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21995
/* end confdefs.h.  */
 
21996
 
 
21997
/* Override any GCC internal prototype to avoid an error.
 
21998
   Use char because int might match the return type of a GCC
 
21999
   builtin and then its argument prototype would still apply.  */
 
22000
#ifdef __cplusplus
 
22001
extern "C"
 
22002
#endif
 
22003
char curl_easy_init ();
 
22004
int
 
22005
main ()
 
22006
{
 
22007
return curl_easy_init ();
 
22008
  ;
 
22009
  return 0;
 
22010
}
 
22011
_ACEOF
 
22012
if ac_fn_c_try_link "$LINENO"; then :
 
22013
  ac_cv_lib_curl_curl_easy_init=yes
 
22014
else
 
22015
  ac_cv_lib_curl_curl_easy_init=no
 
22016
fi
 
22017
rm -f core conftest.err conftest.$ac_objext \
 
22018
    conftest$ac_exeext conftest.$ac_ext
 
22019
LIBS=$ac_check_lib_save_LIBS
 
22020
fi
 
22021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
 
22022
$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
 
22023
if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
 
22024
  curl_msg="";have_curl="yes";CLAMSUBMIT_LIBS="$CLAMSUBMIT_LIBS $CURL_LDFLAGS";CLAMSUBMIT_CFLAGS="$CLAMSUBMIT_CFLAGS $CURL_CPPFLAGS"
 
22025
else
 
22026
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs." >&5
 
22027
$as_echo "$as_me: WARNING: Your libcurl is misconfigured. Please use the web interface for submitting FPs/FNs." >&2;}
 
22028
fi
 
22029
 
 
22030
    LDFLAGS="$save_LDFLAGS"
 
22031
fi
 
22032
 
 
22033
 
 
22034
 
 
22035
 
 
22036
 
 
22037
 
 
22038
 
 
22039
 
 
22040
 
 
22041
 
 
22042
 
 
22043
 
 
22044
 
 
22045
 
 
22046
 
 
22047
 
 
22048
 
 
22049
 
 
22050
 
 
22051
 
 
22052
 
 
22053
 
 
22054
 
 
22055
 
 
22056
 
 
22057
 
 
22058
 
 
22059
 
 
22060
 
 
22061
 
 
22062
 
 
22063
 
 
22064
 
 
22065
 
 
22066
 
 
22067
 
 
22068
 if test "$have_curl" = "yes"; then
 
22069
  ENABLE_CLAMSUBMIT_TRUE=
 
22070
  ENABLE_CLAMSUBMIT_FALSE='#'
 
22071
else
 
22072
  ENABLE_CLAMSUBMIT_TRUE='#'
 
22073
  ENABLE_CLAMSUBMIT_FALSE=
 
22074
fi
 
22075
 
 
22076
 
 
22077
ac_config_files="$ac_config_files clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamsubmit/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile test/Makefile unit_tests/Makefile clamdtop/Makefile clambc/Makefile Makefile clamav-config libclamav.pc platform.h docs/man/clamav-milter.8 docs/man/clamav-milter.conf.5 docs/man/clambc.1 docs/man/clamconf.1 docs/man/clamd.8 docs/man/clamd.conf.5 docs/man/clamdscan.1 docs/man/clamscan.1 docs/man/freshclam.1 docs/man/freshclam.conf.5 docs/man/sigtool.1 docs/man/clamdtop.1 docs/man/clamsubmit.1"
 
22078
 
21118
22079
 
21119
22080
cat >confcache <<\_ACEOF
21120
22081
# This file is a shell script that caches the results of configure
21266
22227
    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
21267
22228
 
21268
22229
 
 
22230
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22231
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
22232
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22233
fi
21269
22234
 
21270
22235
if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
21271
22236
  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
21279
22244
  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
21280
22245
Usually this means the macro was only invoked conditionally." "$LINENO" 5
21281
22246
fi
 
22247
if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
 
22248
  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
 
22249
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22250
fi
21282
22251
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21283
22252
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21284
22253
Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303
22272
  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
21304
22273
Usually this means the macro was only invoked conditionally." "$LINENO" 5
21305
22274
fi
 
22275
if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
 
22276
  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
 
22277
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
22278
fi
21306
22279
 
21307
22280
: "${CONFIG_STATUS=./config.status}"
21308
22281
ac_write_fail=0
21700
22673
# report actual input values of CONFIG_FILES etc. instead of their
21701
22674
# values after options handling.
21702
22675
ac_log="
21703
 
This file was extended by ClamAV $as_me 0.98.1, which was
 
22676
This file was extended by ClamAV $as_me 0.98.4, which was
21704
22677
generated by GNU Autoconf 2.69.  Invocation command line was
21705
22678
 
21706
22679
  CONFIG_FILES    = $CONFIG_FILES
21767
22740
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21768
22741
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21769
22742
ac_cs_version="\\
21770
 
ClamAV config.status 0.98.1
 
22743
ClamAV config.status 0.98.4
21771
22744
configured by $0, generated by GNU Autoconf 2.69,
21772
22745
  with options \\"\$ac_cs_config\\"
21773
22746
 
22182
23155
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22183
23156
    "clamd/Makefile") CONFIG_FILES="$CONFIG_FILES clamd/Makefile" ;;
22184
23157
    "clamdscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamdscan/Makefile" ;;
 
23158
    "clamsubmit/Makefile") CONFIG_FILES="$CONFIG_FILES clamsubmit/Makefile" ;;
22185
23159
    "clamav-milter/Makefile") CONFIG_FILES="$CONFIG_FILES clamav-milter/Makefile" ;;
22186
23160
    "freshclam/Makefile") CONFIG_FILES="$CONFIG_FILES freshclam/Makefile" ;;
22187
23161
    "sigtool/Makefile") CONFIG_FILES="$CONFIG_FILES sigtool/Makefile" ;;
22207
23181
    "docs/man/freshclam.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.conf.5" ;;
22208
23182
    "docs/man/sigtool.1") CONFIG_FILES="$CONFIG_FILES docs/man/sigtool.1" ;;
22209
23183
    "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
 
23184
    "docs/man/clamsubmit.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamsubmit.1" ;;
22210
23185
 
22211
23186
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22212
23187
  esac
23878
24853
    ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23879
24854
 
23880
24855
 
 
24856
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24857
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
24858
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24859
fi
23881
24860
 
23882
24861
if test -z "${VERSIONSCRIPT_TRUE}" && test -z "${VERSIONSCRIPT_FALSE}"; then
23883
24862
  as_fn_error $? "conditional \"VERSIONSCRIPT\" was never defined.
23891
24870
  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
23892
24871
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23893
24872
fi
 
24873
if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
 
24874
  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
 
24875
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24876
fi
23894
24877
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23895
24878
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23896
24879
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23915
24898
  as_fn_error $? "conditional \"HAVE_CURSES\" was never defined.
23916
24899
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23917
24900
fi
 
24901
if test -z "${ENABLE_CLAMSUBMIT_TRUE}" && test -z "${ENABLE_CLAMSUBMIT_FALSE}"; then
 
24902
  as_fn_error $? "conditional \"ENABLE_CLAMSUBMIT\" was never defined.
 
24903
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
24904
fi
23918
24905
if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
23919
24906
  as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
23920
24907
Usually this means the macro was only invoked conditionally." "$LINENO" 5
24320
25307
# report actual input values of CONFIG_FILES etc. instead of their
24321
25308
# values after options handling.
24322
25309
ac_log="
24323
 
This file was extended by ClamAV $as_me 0.98.1, which was
 
25310
This file was extended by ClamAV $as_me 0.98.4, which was
24324
25311
generated by GNU Autoconf 2.69.  Invocation command line was
24325
25312
 
24326
25313
  CONFIG_FILES    = $CONFIG_FILES
24387
25374
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24388
25375
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24389
25376
ac_cs_version="\\
24390
 
ClamAV config.status 0.98.1
 
25377
ClamAV config.status 0.98.4
24391
25378
configured by $0, generated by GNU Autoconf 2.69,
24392
25379
  with options \\"\$ac_cs_config\\"
24393
25380
 
24803
25790
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24804
25791
    "clamd/Makefile") CONFIG_FILES="$CONFIG_FILES clamd/Makefile" ;;
24805
25792
    "clamdscan/Makefile") CONFIG_FILES="$CONFIG_FILES clamdscan/Makefile" ;;
 
25793
    "clamsubmit/Makefile") CONFIG_FILES="$CONFIG_FILES clamsubmit/Makefile" ;;
24806
25794
    "clamav-milter/Makefile") CONFIG_FILES="$CONFIG_FILES clamav-milter/Makefile" ;;
24807
25795
    "freshclam/Makefile") CONFIG_FILES="$CONFIG_FILES freshclam/Makefile" ;;
24808
25796
    "sigtool/Makefile") CONFIG_FILES="$CONFIG_FILES sigtool/Makefile" ;;
24828
25816
    "docs/man/freshclam.conf.5") CONFIG_FILES="$CONFIG_FILES docs/man/freshclam.conf.5" ;;
24829
25817
    "docs/man/sigtool.1") CONFIG_FILES="$CONFIG_FILES docs/man/sigtool.1" ;;
24830
25818
    "docs/man/clamdtop.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamdtop.1" ;;
 
25819
    "docs/man/clamsubmit.1") CONFIG_FILES="$CONFIG_FILES docs/man/clamsubmit.1" ;;
24831
25820
    "libclamav/Makefile") CONFIG_FILES="$CONFIG_FILES libclamav/Makefile" ;;
24832
25821
 
24833
25822
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26450
27439
fi
26451
27440
 
26452
27441
 
 
27442
 
 
27443
   $as_echo_n "              clamsubmit  : "
 
27444
   if test "x$curl_msg" = "xno"; then :
 
27445
  $as_echo "$have_curl (disabled)"
 
27446
elif test "x$curl_msg" = "xyes"; then :
 
27447
  $as_echo "$have_curl"
 
27448
elif test "x$curl_msg" = "x"; then :
 
27449
  $as_echo "$have_curl"
 
27450
else
 
27451
  $as_echo "$have_curl ($curl_msg)"
 
27452
fi
 
27453
 
 
27454
 
26453
27455
{ $as_echo "$as_me:${as_lineno-$LINENO}: Summary of engine performance features)" >&5
26454
27456
$as_echo "$as_me: Summary of engine performance features)" >&6;}
26455
27457
if test "x$enable_debug" = "xyes"; then
26516
27518
$as_echo "$as_me: Summary of engine detection features" >&6;}
26517
27519
 
26518
27520
 
26519
 
   $as_echo_n "              autoit_ea06 : "
26520
 
   if test "x" = "xno"; then :
26521
 
  $as_echo "$have_autoitea06 (disabled)"
26522
 
elif test "x" = "xyes"; then :
26523
 
  $as_echo "$have_autoitea06"
26524
 
elif test "x" = "x"; then :
26525
 
  $as_echo "$have_autoitea06"
26526
 
else
26527
 
  $as_echo "$have_autoitea06 ()"
26528
 
fi
26529
 
 
26530
 
 
26531
 
 
26532
27521
   $as_echo_n "              bzip2       : "
26533
27522
   if test "x$want_bzip2" = "xno"; then :
26534
27523
  $as_echo "$bzip_check (disabled)"