Conflicts:
configure
... | ... |
@@ -523,6 +523,28 @@ |
523 | 523 |
/* use syslog */ |
524 | 524 |
#undef USE_SYSLOG |
525 | 525 |
|
526 |
+/* Enable extensions on AIX 3, Interix. */ |
|
527 |
+#ifndef _ALL_SOURCE |
|
528 |
+# undef _ALL_SOURCE |
|
529 |
+#endif |
|
530 |
+/* Enable GNU extensions on systems that have them. */ |
|
531 |
+#ifndef _GNU_SOURCE |
|
532 |
+# undef _GNU_SOURCE |
|
533 |
+#endif |
|
534 |
+/* Enable threading extensions on Solaris. */ |
|
535 |
+#ifndef _POSIX_PTHREAD_SEMANTICS |
|
536 |
+# undef _POSIX_PTHREAD_SEMANTICS |
|
537 |
+#endif |
|
538 |
+/* Enable extensions on HP NonStop. */ |
|
539 |
+#ifndef _TANDEM_SOURCE |
|
540 |
+# undef _TANDEM_SOURCE |
|
541 |
+#endif |
|
542 |
+/* Enable general extensions on Solaris. */ |
|
543 |
+#ifndef __EXTENSIONS__ |
|
544 |
+# undef __EXTENSIONS__ |
|
545 |
+#endif |
|
546 |
+ |
|
547 |
+ |
|
526 | 548 |
/* Version number of package */ |
527 | 549 |
#undef VERSION |
528 | 550 |
|
... | ... |
@@ -544,9 +566,19 @@ |
544 | 544 |
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ |
545 | 545 |
#undef _LARGEFILE_SOURCE |
546 | 546 |
|
547 |
+/* Define to 1 if on MINIX. */ |
|
548 |
+#undef _MINIX |
|
549 |
+ |
|
550 |
+/* Define to 2 if the system does not provide POSIX.1 features except with |
|
551 |
+ this defined. */ |
|
552 |
+#undef _POSIX_1_SOURCE |
|
553 |
+ |
|
547 | 554 |
/* POSIX compatibility */ |
548 | 555 |
#undef _POSIX_PII_SOCKET |
549 | 556 |
|
557 |
+/* Define to 1 if you need to in order for `stat' and other things to work. */ |
|
558 |
+#undef _POSIX_SOURCE |
|
559 |
+ |
|
550 | 560 |
/* thread safe */ |
551 | 561 |
#undef _REENTRANT |
552 | 562 |
|
... | ... |
@@ -22,6 +22,10 @@ |
22 | 22 |
#include "clamav-config.h" |
23 | 23 |
#endif |
24 | 24 |
|
25 |
+#if defined(C_SOLARIS) |
|
26 |
+#define __EXTENSIONS__ |
|
27 |
+#endif |
|
28 |
+ |
|
25 | 29 |
/* must be first because it may define _XOPEN_SOURCE */ |
26 | 30 |
#include "shared/fdpassing.h" |
27 | 31 |
#include <stdio.h> |
... | ... |
@@ -41,6 +45,7 @@ |
41 | 41 |
#ifndef _WIN32 |
42 | 42 |
#include <arpa/inet.h> |
43 | 43 |
#include <sys/socket.h> |
44 |
+#include <netdb.h> |
|
44 | 45 |
#endif |
45 | 46 |
|
46 | 47 |
#include <openssl/ssl.h> |
... | ... |
@@ -198,6 +198,7 @@ test -x / || exit 1" |
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,8 +206,7 @@ test -x / || exit 1" |
205 | 205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
206 | 206 |
PATH=/empty FPATH=/empty; export PATH FPATH |
207 | 207 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
208 |
- || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
|
209 |
-test \$(( 1 + 1 )) = 2 || exit 1" |
|
208 |
+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
|
210 | 209 |
if (eval "$as_required") 2>/dev/null; then : |
211 | 210 |
as_have_required=yes |
212 | 211 |
else |
... | ... |
@@ -740,7 +740,6 @@ INCLTDL |
740 | 740 |
LTDLINCL |
741 | 741 |
LTDLDEPS |
742 | 742 |
LIBLTDL |
743 |
-CPP |
|
744 | 743 |
OTOOL64 |
745 | 744 |
OTOOL |
746 | 745 |
LIPO |
... | ... |
@@ -758,9 +757,12 @@ ac_ct_DUMPBIN |
758 | 758 |
DUMPBIN |
759 | 759 |
LD |
760 | 760 |
FGREP |
761 |
+SED |
|
762 |
+LIBTOOL |
|
763 |
+LIBCLAMAV_VERSION |
|
761 | 764 |
EGREP |
762 | 765 |
GREP |
763 |
-SED |
|
766 |
+CPP |
|
764 | 767 |
am__fastdepCC_FALSE |
765 | 768 |
am__fastdepCC_TRUE |
766 | 769 |
CCDEPMODE |
... | ... |
@@ -778,8 +780,6 @@ CPPFLAGS |
778 | 778 |
LDFLAGS |
779 | 779 |
CFLAGS |
780 | 780 |
CC |
781 |
-LIBTOOL |
|
782 |
-LIBCLAMAV_VERSION |
|
783 | 781 |
AM_BACKSLASH |
784 | 782 |
AM_DEFAULT_VERBOSITY |
785 | 783 |
AM_DEFAULT_V |
... | ... |
@@ -861,11 +861,11 @@ ac_subst_files='' |
861 | 861 |
ac_user_opts=' |
862 | 862 |
enable_option_checking |
863 | 863 |
enable_silent_rules |
864 |
+enable_dependency_tracking |
|
864 | 865 |
enable_static |
865 | 866 |
enable_shared |
866 | 867 |
with_pic |
867 | 868 |
enable_fast_install |
868 |
-enable_dependency_tracking |
|
869 | 869 |
with_gnu_ld |
870 | 870 |
with_sysroot |
871 | 871 |
enable_libtool_lock |
... | ... |
@@ -1548,12 +1548,12 @@ Optional Features: |
1548 | 1548 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1549 | 1549 |
--enable-silent-rules less verbose build output (undo: `make V=1') |
1550 | 1550 |
--disable-silent-rules verbose build output (undo: `make V=0') |
1551 |
+ --disable-dependency-tracking speeds up one-time build |
|
1552 |
+ --enable-dependency-tracking do not reject slow dependency extractors |
|
1551 | 1553 |
--enable-static[=PKGS] build static libraries [default=no] |
1552 | 1554 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1553 | 1555 |
--enable-fast-install[=PKGS] |
1554 | 1556 |
optimize for fast installation [default=yes] |
1555 |
- --disable-dependency-tracking speeds up one-time build |
|
1556 |
- --enable-dependency-tracking do not reject slow dependency extractors |
|
1557 | 1557 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1558 | 1558 |
--enable-ltdl-install install libltdl |
1559 | 1559 |
--disable-gcc-vcheck do not check for buggy gcc version |
... | ... |
@@ -1754,21 +1754,20 @@ fi |
1754 | 1754 |
|
1755 | 1755 |
} # ac_fn_c_try_compile |
1756 | 1756 |
|
1757 |
-# ac_fn_c_try_link LINENO |
|
1758 |
-# ----------------------- |
|
1759 |
-# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1760 |
-ac_fn_c_try_link () |
|
1757 |
+# ac_fn_c_try_cpp LINENO |
|
1758 |
+# ---------------------- |
|
1759 |
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1760 |
+ac_fn_c_try_cpp () |
|
1761 | 1761 |
{ |
1762 | 1762 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1763 |
- rm -f conftest.$ac_objext conftest$ac_exeext |
|
1764 |
- if { { ac_try="$ac_link" |
|
1763 |
+ if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1765 | 1764 |
case "(($ac_try" in |
1766 | 1765 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1767 | 1766 |
*) ac_try_echo=$ac_try;; |
1768 | 1767 |
esac |
1769 | 1768 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1770 | 1769 |
$as_echo "$ac_try_echo"; } >&5 |
1771 |
- (eval "$ac_link") 2>conftest.err |
|
1770 |
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1772 | 1771 |
ac_status=$? |
1773 | 1772 |
if test -s conftest.err; then |
1774 | 1773 |
grep -v '^ *+' conftest.err >conftest.er1 |
... | ... |
@@ -1776,97 +1775,112 @@ $as_echo "$ac_try_echo"; } >&5 |
1776 | 1776 |
mv -f conftest.er1 conftest.err |
1777 | 1777 |
fi |
1778 | 1778 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1779 |
- test $ac_status = 0; } && { |
|
1780 |
- test -z "$ac_c_werror_flag" || |
|
1779 |
+ test $ac_status = 0; } > conftest.i && { |
|
1780 |
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1781 | 1781 |
test ! -s conftest.err |
1782 |
- } && test -s conftest$ac_exeext && { |
|
1783 |
- test "$cross_compiling" = yes || |
|
1784 |
- test -x conftest$ac_exeext |
|
1785 | 1782 |
}; then : |
1786 | 1783 |
ac_retval=0 |
1787 | 1784 |
else |
1788 | 1785 |
$as_echo "$as_me: failed program was:" >&5 |
1789 | 1786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1790 | 1787 |
|
1791 |
- ac_retval=1 |
|
1788 |
+ ac_retval=1 |
|
1792 | 1789 |
fi |
1793 |
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1794 |
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1795 |
- # interfere with the next link command; also delete a directory that is |
|
1796 |
- # left behind by Apple's compiler. We do this before executing the actions. |
|
1797 |
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1798 | 1790 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1799 | 1791 |
as_fn_set_status $ac_retval |
1800 | 1792 |
|
1801 |
-} # ac_fn_c_try_link |
|
1793 |
+} # ac_fn_c_try_cpp |
|
1802 | 1794 |
|
1803 |
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1795 |
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
1804 | 1796 |
# ------------------------------------------------------- |
1805 |
-# Tests whether HEADER exists and can be compiled using the include files in |
|
1806 |
-# INCLUDES, setting the cache variable VAR accordingly. |
|
1807 |
-ac_fn_c_check_header_compile () |
|
1797 |
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
1798 |
+# the include files in INCLUDES and setting the cache variable VAR |
|
1799 |
+# accordingly. |
|
1800 |
+ac_fn_c_check_header_mongrel () |
|
1808 | 1801 |
{ |
1809 | 1802 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1803 |
+ if eval \${$3+:} false; then : |
|
1810 | 1804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1811 | 1805 |
$as_echo_n "checking for $2... " >&6; } |
1812 | 1806 |
if eval \${$3+:} false; then : |
1813 | 1807 |
$as_echo_n "(cached) " >&6 |
1808 |
+fi |
|
1809 |
+eval ac_res=\$$3 |
|
1810 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1811 |
+$as_echo "$ac_res" >&6; } |
|
1814 | 1812 |
else |
1815 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1813 |
+ # Is the header compilable? |
|
1814 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
1815 |
+$as_echo_n "checking $2 usability... " >&6; } |
|
1816 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1816 | 1817 |
/* end confdefs.h. */ |
1817 | 1818 |
$4 |
1818 | 1819 |
#include <$2> |
1819 | 1820 |
_ACEOF |
1820 | 1821 |
if ac_fn_c_try_compile "$LINENO"; then : |
1821 |
- eval "$3=yes" |
|
1822 |
+ ac_header_compiler=yes |
|
1822 | 1823 |
else |
1823 |
- eval "$3=no" |
|
1824 |
+ ac_header_compiler=no |
|
1824 | 1825 |
fi |
1825 | 1826 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1826 |
-fi |
|
1827 |
-eval ac_res=\$$3 |
|
1828 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1829 |
-$as_echo "$ac_res" >&6; } |
|
1830 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1827 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
1828 |
+$as_echo "$ac_header_compiler" >&6; } |
|
1831 | 1829 |
|
1832 |
-} # ac_fn_c_check_header_compile |
|
1830 |
+# Is the header present? |
|
1831 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
1832 |
+$as_echo_n "checking $2 presence... " >&6; } |
|
1833 |
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1834 |
+/* end confdefs.h. */ |
|
1835 |
+#include <$2> |
|
1836 |
+_ACEOF |
|
1837 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
|
1838 |
+ ac_header_preproc=yes |
|
1839 |
+else |
|
1840 |
+ ac_header_preproc=no |
|
1841 |
+fi |
|
1842 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
|
1843 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
1844 |
+$as_echo "$ac_header_preproc" >&6; } |
|
1833 | 1845 |
|
1834 |
-# ac_fn_c_try_cpp LINENO |
|
1835 |
-# ---------------------- |
|
1836 |
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1837 |
-ac_fn_c_try_cpp () |
|
1838 |
-{ |
|
1839 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1840 |
- if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1841 |
-case "(($ac_try" in |
|
1842 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1843 |
- *) ac_try_echo=$ac_try;; |
|
1846 |
+# So? What about this header? |
|
1847 |
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
1848 |
+ yes:no: ) |
|
1849 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
1850 |
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
1851 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1852 |
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1853 |
+ ;; |
|
1854 |
+ no:yes:* ) |
|
1855 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
1856 |
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
1857 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
1858 |
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
1859 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
1860 |
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
1861 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
1862 |
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
1863 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1864 |
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1865 |
+( $as_echo "## -------------------------------------- ## |
|
1866 |
+## Report this to http://bugs.clamav.net/ ## |
|
1867 |
+## -------------------------------------- ##" |
|
1868 |
+ ) | sed "s/^/$as_me: WARNING: /" >&2 |
|
1869 |
+ ;; |
|
1844 | 1870 |
esac |
1845 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1846 |
-$as_echo "$ac_try_echo"; } >&5 |
|
1847 |
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1848 |
- ac_status=$? |
|
1849 |
- if test -s conftest.err; then |
|
1850 |
- grep -v '^ *+' conftest.err >conftest.er1 |
|
1851 |
- cat conftest.er1 >&5 |
|
1852 |
- mv -f conftest.er1 conftest.err |
|
1853 |
- fi |
|
1854 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1855 |
- test $ac_status = 0; } > conftest.i && { |
|
1856 |
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1857 |
- test ! -s conftest.err |
|
1858 |
- }; then : |
|
1859 |
- ac_retval=0 |
|
1871 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1872 |
+$as_echo_n "checking for $2... " >&6; } |
|
1873 |
+if eval \${$3+:} false; then : |
|
1874 |
+ $as_echo_n "(cached) " >&6 |
|
1860 | 1875 |
else |
1861 |
- $as_echo "$as_me: failed program was:" >&5 |
|
1862 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
1863 |
- |
|
1864 |
- ac_retval=1 |
|
1876 |
+ eval "$3=\$ac_header_compiler" |
|
1877 |
+fi |
|
1878 |
+eval ac_res=\$$3 |
|
1879 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1880 |
+$as_echo "$ac_res" >&6; } |
|
1865 | 1881 |
fi |
1866 | 1882 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1867 |
- as_fn_set_status $ac_retval |
|
1868 | 1883 |
|
1869 |
-} # ac_fn_c_try_cpp |
|
1884 |
+} # ac_fn_c_check_header_mongrel |
|
1870 | 1885 |
|
1871 | 1886 |
# ac_fn_c_try_run LINENO |
1872 | 1887 |
# ---------------------- |
... | ... |
@@ -1910,6 +1924,83 @@ fi |
1910 | 1910 |
|
1911 | 1911 |
} # ac_fn_c_try_run |
1912 | 1912 |
|
1913 |
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1914 |
+# ------------------------------------------------------- |
|
1915 |
+# Tests whether HEADER exists and can be compiled using the include files in |
|
1916 |
+# INCLUDES, setting the cache variable VAR accordingly. |
|
1917 |
+ac_fn_c_check_header_compile () |
|
1918 |
+{ |
|
1919 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1920 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1921 |
+$as_echo_n "checking for $2... " >&6; } |
|
1922 |
+if eval \${$3+:} false; then : |
|
1923 |
+ $as_echo_n "(cached) " >&6 |
|
1924 |
+else |
|
1925 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1926 |
+/* end confdefs.h. */ |
|
1927 |
+$4 |
|
1928 |
+#include <$2> |
|
1929 |
+_ACEOF |
|
1930 |
+if ac_fn_c_try_compile "$LINENO"; then : |
|
1931 |
+ eval "$3=yes" |
|
1932 |
+else |
|
1933 |
+ eval "$3=no" |
|
1934 |
+fi |
|
1935 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1936 |
+fi |
|
1937 |
+eval ac_res=\$$3 |
|
1938 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1939 |
+$as_echo "$ac_res" >&6; } |
|
1940 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1941 |
+ |
|
1942 |
+} # ac_fn_c_check_header_compile |
|
1943 |
+ |
|
1944 |
+# ac_fn_c_try_link LINENO |
|
1945 |
+# ----------------------- |
|
1946 |
+# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1947 |
+ac_fn_c_try_link () |
|
1948 |
+{ |
|
1949 |
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1950 |
+ rm -f conftest.$ac_objext conftest$ac_exeext |
|
1951 |
+ if { { ac_try="$ac_link" |
|
1952 |
+case "(($ac_try" in |
|
1953 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1954 |
+ *) ac_try_echo=$ac_try;; |
|
1955 |
+esac |
|
1956 |
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1957 |
+$as_echo "$ac_try_echo"; } >&5 |
|
1958 |
+ (eval "$ac_link") 2>conftest.err |
|
1959 |
+ ac_status=$? |
|
1960 |
+ if test -s conftest.err; then |
|
1961 |
+ grep -v '^ *+' conftest.err >conftest.er1 |
|
1962 |
+ cat conftest.er1 >&5 |
|
1963 |
+ mv -f conftest.er1 conftest.err |
|
1964 |
+ fi |
|
1965 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1966 |
+ test $ac_status = 0; } && { |
|
1967 |
+ test -z "$ac_c_werror_flag" || |
|
1968 |
+ test ! -s conftest.err |
|
1969 |
+ } && test -s conftest$ac_exeext && { |
|
1970 |
+ test "$cross_compiling" = yes || |
|
1971 |
+ test -x conftest$ac_exeext |
|
1972 |
+ }; then : |
|
1973 |
+ ac_retval=0 |
|
1974 |
+else |
|
1975 |
+ $as_echo "$as_me: failed program was:" >&5 |
|
1976 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
1977 |
+ |
|
1978 |
+ ac_retval=1 |
|
1979 |
+fi |
|
1980 |
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1981 |
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1982 |
+ # interfere with the next link command; also delete a directory that is |
|
1983 |
+ # left behind by Apple's compiler. We do this before executing the actions. |
|
1984 |
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1985 |
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1986 |
+ as_fn_set_status $ac_retval |
|
1987 |
+ |
|
1988 |
+} # ac_fn_c_try_link |
|
1989 |
+ |
|
1913 | 1990 |
# ac_fn_c_check_func LINENO FUNC VAR |
1914 | 1991 |
# ---------------------------------- |
1915 | 1992 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
... | ... |
@@ -2076,97 +2167,6 @@ $as_echo "$ac_res" >&6; } |
2076 | 2076 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2077 | 2077 |
|
2078 | 2078 |
} # ac_fn_c_check_type |
2079 |
- |
|
2080 |
-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
2081 |
-# ------------------------------------------------------- |
|
2082 |
-# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
2083 |
-# the include files in INCLUDES and setting the cache variable VAR |
|
2084 |
-# accordingly. |
|
2085 |
-ac_fn_c_check_header_mongrel () |
|
2086 |
-{ |
|
2087 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2088 |
- if eval \${$3+:} false; then : |
|
2089 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2090 |
-$as_echo_n "checking for $2... " >&6; } |
|
2091 |
-if eval \${$3+:} false; then : |
|
2092 |
- $as_echo_n "(cached) " >&6 |
|
2093 |
-fi |
|
2094 |
-eval ac_res=\$$3 |
|
2095 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2096 |
-$as_echo "$ac_res" >&6; } |
|
2097 |
-else |
|
2098 |
- # Is the header compilable? |
|
2099 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
2100 |
-$as_echo_n "checking $2 usability... " >&6; } |
|
2101 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2102 |
-/* end confdefs.h. */ |
|
2103 |
-$4 |
|
2104 |
-#include <$2> |
|
2105 |
-_ACEOF |
|
2106 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
2107 |
- ac_header_compiler=yes |
|
2108 |
-else |
|
2109 |
- ac_header_compiler=no |
|
2110 |
-fi |
|
2111 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2112 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
2113 |
-$as_echo "$ac_header_compiler" >&6; } |
|
2114 |
- |
|
2115 |
-# Is the header present? |
|
2116 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
2117 |
-$as_echo_n "checking $2 presence... " >&6; } |
|
2118 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2119 |
-/* end confdefs.h. */ |
|
2120 |
-#include <$2> |
|
2121 |
-_ACEOF |
|
2122 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
2123 |
- ac_header_preproc=yes |
|
2124 |
-else |
|
2125 |
- ac_header_preproc=no |
|
2126 |
-fi |
|
2127 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
2128 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
2129 |
-$as_echo "$ac_header_preproc" >&6; } |
|
2130 |
- |
|
2131 |
-# So? What about this header? |
|
2132 |
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
2133 |
- yes:no: ) |
|
2134 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
2135 |
-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
2136 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2137 |
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2138 |
- ;; |
|
2139 |
- no:yes:* ) |
|
2140 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
2141 |
-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
2142 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
2143 |
-$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
2144 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
2145 |
-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
2146 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
2147 |
-$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
2148 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2149 |
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2150 |
-( $as_echo "## -------------------------------------- ## |
|
2151 |
-## Report this to http://bugs.clamav.net/ ## |
|
2152 |
-## -------------------------------------- ##" |
|
2153 |
- ) | sed "s/^/$as_me: WARNING: /" >&2 |
|
2154 |
- ;; |
|
2155 |
-esac |
|
2156 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2157 |
-$as_echo_n "checking for $2... " >&6; } |
|
2158 |
-if eval \${$3+:} false; then : |
|
2159 |
- $as_echo_n "(cached) " >&6 |
|
2160 |
-else |
|
2161 |
- eval "$3=\$ac_header_compiler" |
|
2162 |
-fi |
|
2163 |
-eval ac_res=\$$3 |
|
2164 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2165 |
-$as_echo "$ac_res" >&6; } |
|
2166 |
-fi |
|
2167 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
2168 |
- |
|
2169 |
-} # ac_fn_c_check_header_mongrel |
|
2170 | 2079 |
cat >config.log <<_ACEOF |
2171 | 2080 |
This file contains any messages produced by compilers while |
2172 | 2081 |
running configure, to aid debugging if configure makes a mistake. |
... | ... |
@@ -3447,140 +3447,6 @@ AM_BACKSLASH='\' |
3447 | 3447 |
|
3448 | 3448 |
$as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h |
3449 | 3449 |
|
3450 |
- |
|
3451 |
-VERSION="devel-`date +%Y%m%d`" |
|
3452 |
- |
|
3453 |
-LC_CURRENT=7 |
|
3454 |
-LC_REVISION=21 |
|
3455 |
-LC_AGE=1 |
|
3456 |
-LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE" |
|
3457 |
- |
|
3458 |
- |
|
3459 |
- |
|
3460 |
-cat >>confdefs.h <<_ACEOF |
|
3461 |
-#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION" |
|
3462 |
-_ACEOF |
|
3463 |
- |
|
3464 |
- |
|
3465 |
- |
|
3466 |
-cat >>confdefs.h <<_ACEOF |
|
3467 |
-#define LIBCLAMAV_MAJORVER $major |
|
3468 |
-_ACEOF |
|
3469 |
- |
|
3470 |
- |
|
3471 |
- |
|
3472 |
-cat >>confdefs.h <<_ACEOF |
|
3473 |
-#define VERSION "$VERSION" |
|
3474 |
-_ACEOF |
|
3475 |
- |
|
3476 |
- |
|
3477 |
-cat >>confdefs.h <<_ACEOF |
|
3478 |
-#define VERSION_SUFFIX "$VERSION_SUFFIX" |
|
3479 |
-_ACEOF |
|
3480 |
- |
|
3481 |
- |
|
3482 |
- |
|
3483 |
- |
|
3484 |
- |
|
3485 |
- |
|
3486 |
- |
|
3487 |
- |
|
3488 |
- |
|
3489 |
- |
|
3490 |
-case `pwd` in |
|
3491 |
- *\ * | *\ *) |
|
3492 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
|
3493 |
-$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
|
3494 |
-esac |
|
3495 |
- |
|
3496 |
- |
|
3497 |
- |
|
3498 |
-macro_version='2.4.2' |
|
3499 |
-macro_revision='1.3337' |
|
3500 |
- |
|
3501 |
- |
|
3502 |
- |
|
3503 |
- |
|
3504 |
- |
|
3505 |
- |
|
3506 |
- |
|
3507 |
- |
|
3508 |
- |
|
3509 |
- |
|
3510 |
- |
|
3511 |
- |
|
3512 |
- |
|
3513 |
-ltmain="$ac_aux_dir/ltmain.sh" |
|
3514 |
- |
|
3515 |
-# Backslashify metacharacters that are still active within |
|
3516 |
-# double-quoted strings. |
|
3517 |
-sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
|
3518 |
- |
|
3519 |
-# Same as above, but do not quote variable references. |
|
3520 |
-double_quote_subst='s/\(["`\\]\)/\\\1/g' |
|
3521 |
- |
|
3522 |
-# Sed substitution to delay expansion of an escaped shell variable in a |
|
3523 |
-# double_quote_subst'ed string. |
|
3524 |
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
3525 |
- |
|
3526 |
-# Sed substitution to delay expansion of an escaped single quote. |
|
3527 |
-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
3528 |
- |
|
3529 |
-# Sed substitution to avoid accidental globbing in evaled expressions |
|
3530 |
-no_glob_subst='s/\*/\\\*/g' |
|
3531 |
- |
|
3532 |
-ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
3533 |
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
|
3534 |
-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
|
3535 |
- |
|
3536 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
|
3537 |
-$as_echo_n "checking how to print strings... " >&6; } |
|
3538 |
-# Test print first, because it will be a builtin if present. |
|
3539 |
-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
|
3540 |
- test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
3541 |
- ECHO='print -r --' |
|
3542 |
-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
3543 |
- ECHO='printf %s\n' |
|
3544 |
-else |
|
3545 |
- # Use this function as a fallback that always works. |
|
3546 |
- func_fallback_echo () |
|
3547 |
- { |
|
3548 |
- eval 'cat <<_LTECHO_EOF |
|
3549 |
-$1 |
|
3550 |
-_LTECHO_EOF' |
|
3551 |
- } |
|
3552 |
- ECHO='func_fallback_echo' |
|
3553 |
-fi |
|
3554 |
- |
|
3555 |
-# func_echo_all arg... |
|
3556 |
-# Invoke $ECHO with all args, space-separated. |
|
3557 |
-func_echo_all () |
|
3558 |
-{ |
|
3559 |
- $ECHO "" |
|
3560 |
-} |
|
3561 |
- |
|
3562 |
-case "$ECHO" in |
|
3563 |
- printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
|
3564 |
-$as_echo "printf" >&6; } ;; |
|
3565 |
- print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
|
3566 |
-$as_echo "print -r" >&6; } ;; |
|
3567 |
- *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
|
3568 |
-$as_echo "cat" >&6; } ;; |
|
3569 |
-esac |
|
3570 |
- |
|
3571 |
- |
|
3572 |
- |
|
3573 |
- |
|
3574 |
- |
|
3575 |
- |
|
3576 |
- |
|
3577 |
- |
|
3578 |
- |
|
3579 |
- |
|
3580 |
- |
|
3581 |
- |
|
3582 |
- |
|
3583 |
- |
|
3584 | 3450 |
DEPDIR="${am__leading_dot}deps" |
3585 | 3451 |
|
3586 | 3452 |
ac_config_commands="$ac_config_commands depfiles" |
... | ... |
@@ -4561,86 +4427,143 @@ else |
4561 | 4561 |
fi |
4562 | 4562 |
|
4563 | 4563 |
|
4564 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
|
4565 |
-$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
4566 |
-if ${ac_cv_path_SED+:} false; then : |
|
4564 |
+ |
|
4565 |
+ac_ext=c |
|
4566 |
+ac_cpp='$CPP $CPPFLAGS' |
|
4567 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4568 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4569 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4570 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
4571 |
+$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
4572 |
+# On Suns, sometimes $CPP names a directory. |
|
4573 |
+if test -n "$CPP" && test -d "$CPP"; then |
|
4574 |
+ CPP= |
|
4575 |
+fi |
|
4576 |
+if test -z "$CPP"; then |
|
4577 |
+ if ${ac_cv_prog_CPP+:} false; then : |
|
4567 | 4578 |
$as_echo_n "(cached) " >&6 |
4568 | 4579 |
else |
4569 |
- ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
4570 |
- for ac_i in 1 2 3 4 5 6 7; do |
|
4571 |
- ac_script="$ac_script$as_nl$ac_script" |
|
4572 |
- done |
|
4573 |
- echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
4574 |
- { ac_script=; unset ac_script;} |
|
4575 |
- if test -z "$SED"; then |
|
4576 |
- ac_path_SED_found=false |
|
4577 |
- # Loop through the user's path and test for each of PROGNAME-LIST |
|
4578 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4579 |
-for as_dir in $PATH |
|
4580 |
+ # Double quotes because CPP needs to be expanded |
|
4581 |
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
4582 |
+ do |
|
4583 |
+ ac_preproc_ok=false |
|
4584 |
+for ac_c_preproc_warn_flag in '' yes |
|
4580 | 4585 |
do |
4581 |
- IFS=$as_save_IFS |
|
4582 |
- test -z "$as_dir" && as_dir=. |
|
4583 |
- for ac_prog in sed gsed; do |
|
4584 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
|
4585 |
- ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
4586 |
- as_fn_executable_p "$ac_path_SED" || continue |
|
4587 |
-# Check for GNU ac_path_SED and select it if it is found. |
|
4588 |
- # Check for GNU $ac_path_SED |
|
4589 |
-case `"$ac_path_SED" --version 2>&1` in |
|
4590 |
-*GNU*) |
|
4591 |
- ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
4592 |
-*) |
|
4593 |
- ac_count=0 |
|
4594 |
- $as_echo_n 0123456789 >"conftest.in" |
|
4595 |
- while : |
|
4596 |
- do |
|
4597 |
- cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4598 |
- mv "conftest.tmp" "conftest.in" |
|
4599 |
- cp "conftest.in" "conftest.nl" |
|
4600 |
- $as_echo '' >> "conftest.nl" |
|
4601 |
- "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4602 |
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4603 |
- as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4604 |
- if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
4605 |
- # Best one so far, save it but keep looking for a better one |
|
4606 |
- ac_cv_path_SED="$ac_path_SED" |
|
4607 |
- ac_path_SED_max=$ac_count |
|
4608 |
- fi |
|
4609 |
- # 10*(2^10) chars as input seems more than enough |
|
4610 |
- test $ac_count -gt 10 && break |
|
4611 |
- done |
|
4612 |
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4613 |
-esac |
|
4586 |
+ # Use a header file that comes with gcc, so configuring glibc |
|
4587 |
+ # with a fresh cross-compiler works. |
|
4588 |
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4589 |
+ # <limits.h> exists even on freestanding compilers. |
|
4590 |
+ # On the NeXT, cc -E runs the code through the compiler's parser, |
|
4591 |
+ # not just through cpp. "Syntax error" is here to catch this case. |
|
4592 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4593 |
+/* end confdefs.h. */ |
|
4594 |
+#ifdef __STDC__ |
|
4595 |
+# include <limits.h> |
|
4596 |
+#else |
|
4597 |
+# include <assert.h> |
|
4598 |
+#endif |
|
4599 |
+ Syntax error |
|
4600 |
+_ACEOF |
|
4601 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
|
4614 | 4602 |
|
4615 |
- $ac_path_SED_found && break 3 |
|
4616 |
- done |
|
4617 |
- done |
|
4618 |
- done |
|
4619 |
-IFS=$as_save_IFS |
|
4620 |
- if test -z "$ac_cv_path_SED"; then |
|
4621 |
- as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
|
4622 |
- fi |
|
4623 | 4603 |
else |
4624 |
- ac_cv_path_SED=$SED |
|
4604 |
+ # Broken: fails on valid input. |
|
4605 |
+continue |
|
4625 | 4606 |
fi |
4607 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
|
4626 | 4608 |
|
4609 |
+ # OK, works on sane cases. Now check whether nonexistent headers |
|
4610 |
+ # can be detected and how. |
|
4611 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4612 |
+/* end confdefs.h. */ |
|
4613 |
+#include <ac_nonexistent.h> |
|
4614 |
+_ACEOF |
|
4615 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
|
4616 |
+ # Broken: success on invalid input. |
|
4617 |
+continue |
|
4618 |
+else |
|
4619 |
+ # Passes both tests. |
|
4620 |
+ac_preproc_ok=: |
|
4621 |
+break |
|
4627 | 4622 |
fi |
4628 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
|
4629 |
-$as_echo "$ac_cv_path_SED" >&6; } |
|
4630 |
- SED="$ac_cv_path_SED" |
|
4631 |
- rm -f conftest.sed |
|
4632 |
- |
|
4633 |
-test -z "$SED" && SED=sed |
|
4634 |
-Xsed="$SED -e 1s/^X//" |
|
4635 |
- |
|
4623 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
|
4636 | 4624 |
|
4625 |
+done |
|
4626 |
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4627 |
+rm -f conftest.i conftest.err conftest.$ac_ext |
|
4628 |
+if $ac_preproc_ok; then : |
|
4629 |
+ break |
|
4630 |
+fi |
|
4637 | 4631 |
|
4632 |
+ done |
|
4633 |
+ ac_cv_prog_CPP=$CPP |
|
4638 | 4634 |
|
4635 |
+fi |
|
4636 |
+ CPP=$ac_cv_prog_CPP |
|
4637 |
+else |
|
4638 |
+ ac_cv_prog_CPP=$CPP |
|
4639 |
+fi |
|
4640 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
4641 |
+$as_echo "$CPP" >&6; } |
|
4642 |
+ac_preproc_ok=false |
|
4643 |
+for ac_c_preproc_warn_flag in '' yes |
|
4644 |
+do |
|
4645 |
+ # Use a header file that comes with gcc, so configuring glibc |
|
4646 |
+ # with a fresh cross-compiler works. |
|
4647 |
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4648 |
+ # <limits.h> exists even on freestanding compilers. |
|
4649 |
+ # On the NeXT, cc -E runs the code through the compiler's parser, |
|
4650 |
+ # not just through cpp. "Syntax error" is here to catch this case. |
|
4651 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4652 |
+/* end confdefs.h. */ |
|
4653 |
+#ifdef __STDC__ |
|
4654 |
+# include <limits.h> |
|
4655 |
+#else |
|
4656 |
+# include <assert.h> |
|
4657 |
+#endif |
|
4658 |
+ Syntax error |
|
4659 |
+_ACEOF |
|
4660 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
|
4639 | 4661 |
|
4662 |
+else |
|
4663 |
+ # Broken: fails on valid input. |
|
4664 |
+continue |
|
4665 |
+fi |
|
4666 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
|
4640 | 4667 |
|
4668 |
+ # OK, works on sane cases. Now check whether nonexistent headers |
|
4669 |
+ # can be detected and how. |
|
4670 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4671 |
+/* end confdefs.h. */ |
|
4672 |
+#include <ac_nonexistent.h> |
|
4673 |
+_ACEOF |
|
4674 |
+if ac_fn_c_try_cpp "$LINENO"; then : |
|
4675 |
+ # Broken: success on invalid input. |
|
4676 |
+continue |
|
4677 |
+else |
|
4678 |
+ # Passes both tests. |
|
4679 |
+ac_preproc_ok=: |
|
4680 |
+break |
|
4681 |
+fi |
|
4682 |
+rm -f conftest.err conftest.i conftest.$ac_ext |
|
4641 | 4683 |
|
4684 |
+done |
|
4685 |
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4686 |
+rm -f conftest.i conftest.err conftest.$ac_ext |
|
4687 |
+if $ac_preproc_ok; then : |
|
4642 | 4688 |
|
4689 |
+else |
|
4690 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
4691 |
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4692 |
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
4693 |
+See \`config.log' for more details" "$LINENO" 5; } |
|
4694 |
+fi |
|
4643 | 4695 |
|
4696 |
+ac_ext=c |
|
4697 |
+ac_cpp='$CPP $CPPFLAGS' |
|
4698 |
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4699 |
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4700 |
+ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4644 | 4701 |
|
4645 | 4702 |
|
4646 | 4703 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
... | ... |
@@ -4773,6 +4696,412 @@ $as_echo "$ac_cv_path_EGREP" >&6; } |
4773 | 4773 |
EGREP="$ac_cv_path_EGREP" |
4774 | 4774 |
|
4775 | 4775 |
|
4776 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
4777 |
+$as_echo_n "checking for ANSI C header files... " >&6; } |
|
4778 |
+if ${ac_cv_header_stdc+:} false; then : |
|
4779 |
+ $as_echo_n "(cached) " >&6 |
|
4780 |
+else |
|
4781 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4782 |
+/* end confdefs.h. */ |
|
4783 |
+#include <stdlib.h> |
|
4784 |
+#include <stdarg.h> |
|
4785 |
+#include <string.h> |
|
4786 |
+#include <float.h> |
|
4787 |
+ |
|
4788 |
+int |
|
4789 |
+main () |
|
4790 |
+{ |
|
4791 |
+ |
|
4792 |
+ ; |
|
4793 |
+ return 0; |
|
4794 |
+} |
|
4795 |
+_ACEOF |
|
4796 |
+if ac_fn_c_try_compile "$LINENO"; then : |
|
4797 |
+ ac_cv_header_stdc=yes |
|
4798 |
+else |
|
4799 |
+ ac_cv_header_stdc=no |
|
4800 |
+fi |
|
4801 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4802 |
+ |
|
4803 |
+if test $ac_cv_header_stdc = yes; then |
|
4804 |
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
4805 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4806 |
+/* end confdefs.h. */ |
|
4807 |
+#include <string.h> |
|
4808 |
+ |
|
4809 |
+_ACEOF |
|
4810 |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4811 |
+ $EGREP "memchr" >/dev/null 2>&1; then : |
|
4812 |
+ |
|
4813 |
+else |
|
4814 |
+ ac_cv_header_stdc=no |
|
4815 |
+fi |
|
4816 |
+rm -f conftest* |
|
4817 |
+ |
|
4818 |
+fi |
|
4819 |
+ |
|
4820 |
+if test $ac_cv_header_stdc = yes; then |
|
4821 |
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
4822 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4823 |
+/* end confdefs.h. */ |
|
4824 |
+#include <stdlib.h> |
|
4825 |
+ |
|
4826 |
+_ACEOF |
|
4827 |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4828 |
+ $EGREP "free" >/dev/null 2>&1; then : |
|
4829 |
+ |
|
4830 |
+else |
|
4831 |
+ ac_cv_header_stdc=no |
|
4832 |
+fi |
|
4833 |
+rm -f conftest* |
|
4834 |
+ |
|
4835 |
+fi |
|
4836 |
+ |
|
4837 |
+if test $ac_cv_header_stdc = yes; then |
|
4838 |
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
4839 |
+ if test "$cross_compiling" = yes; then : |
|
4840 |
+ : |
|
4841 |
+else |
|
4842 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4843 |
+/* end confdefs.h. */ |
|
4844 |
+#include <ctype.h> |
|
4845 |
+#include <stdlib.h> |
|
4846 |
+#if ((' ' & 0x0FF) == 0x020) |
|
4847 |
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
4848 |
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
4849 |
+#else |
|
4850 |
+# define ISLOWER(c) \ |
|
4851 |
+ (('a' <= (c) && (c) <= 'i') \ |
|
4852 |
+ || ('j' <= (c) && (c) <= 'r') \ |
|
4853 |
+ || ('s' <= (c) && (c) <= 'z')) |
|
4854 |
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
4855 |
+#endif |
|
4856 |
+ |
|
4857 |
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
4858 |
+int |
|
4859 |
+main () |
|
4860 |
+{ |
|
4861 |
+ int i; |
|
4862 |
+ for (i = 0; i < 256; i++) |
|
4863 |
+ if (XOR (islower (i), ISLOWER (i)) |
|
4864 |
+ || toupper (i) != TOUPPER (i)) |
|
4865 |
+ return 2; |
|
4866 |
+ return 0; |
|
4867 |
+} |
|
4868 |
+_ACEOF |
|
4869 |
+if ac_fn_c_try_run "$LINENO"; then : |
|
4870 |
+ |
|
4871 |
+else |
|
4872 |
+ ac_cv_header_stdc=no |
|
4873 |
+fi |
|
4874 |
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4875 |
+ conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4876 |
+fi |
|
4877 |
+ |
|
4878 |
+fi |
|
4879 |
+fi |
|
4880 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
4881 |
+$as_echo "$ac_cv_header_stdc" >&6; } |
|
4882 |
+if test $ac_cv_header_stdc = yes; then |
|
4883 |
+ |
|
4884 |
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
4885 |
+ |
|
4886 |
+fi |
|
4887 |
+ |
|
4888 |
+# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
4889 |
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
4890 |
+ inttypes.h stdint.h unistd.h |
|
4891 |
+do : |
|
4892 |
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
4893 |
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
4894 |
+" |
|
4895 |
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4896 |
+ cat >>confdefs.h <<_ACEOF |
|
4897 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
4898 |
+_ACEOF |
|
4899 |
+ |
|
4900 |
+fi |
|
4901 |
+ |
|
4902 |
+done |
|
4903 |
+ |
|
4904 |
+ |
|
4905 |
+ |
|
4906 |
+ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
|
4907 |
+if test "x$ac_cv_header_minix_config_h" = xyes; then : |
|
4908 |
+ MINIX=yes |
|
4909 |
+else |
|
4910 |
+ MINIX= |
|
4911 |
+fi |
|
4912 |
+ |
|
4913 |
+ |
|
4914 |
+ if test "$MINIX" = yes; then |
|
4915 |
+ |
|
4916 |
+$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
|
4917 |
+ |
|
4918 |
+ |
|
4919 |
+$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
4920 |
+ |
|
4921 |
+ |
|
4922 |
+$as_echo "#define _MINIX 1" >>confdefs.h |
|
4923 |
+ |
|
4924 |
+ fi |
|
4925 |
+ |
|
4926 |
+ |
|
4927 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
|
4928 |
+$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
|
4929 |
+if ${ac_cv_safe_to_define___extensions__+:} false; then : |
|
4930 |
+ $as_echo_n "(cached) " >&6 |
|
4931 |
+else |
|
4932 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4933 |
+/* end confdefs.h. */ |
|
4934 |
+ |
|
4935 |
+# define __EXTENSIONS__ 1 |
|
4936 |
+ $ac_includes_default |
|
4937 |
+int |
|
4938 |
+main () |
|
4939 |
+{ |
|
4940 |
+ |
|
4941 |
+ ; |
|
4942 |
+ return 0; |
|
4943 |
+} |
|
4944 |
+_ACEOF |
|
4945 |
+if ac_fn_c_try_compile "$LINENO"; then : |
|
4946 |
+ ac_cv_safe_to_define___extensions__=yes |
|
4947 |
+else |
|
4948 |
+ ac_cv_safe_to_define___extensions__=no |
|
4949 |
+fi |
|
4950 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4951 |
+fi |
|
4952 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
|
4953 |
+$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
|
4954 |
+ test $ac_cv_safe_to_define___extensions__ = yes && |
|
4955 |
+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
4956 |
+ |
|
4957 |
+ $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
|
4958 |
+ |
|
4959 |
+ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
|
4960 |
+ |
|
4961 |
+ $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
4962 |
+ |
|
4963 |
+ $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
4964 |
+ |
|
4965 |
+ |
|
4966 |
+ |
|
4967 |
+VERSION="devel-`date +%Y%m%d`" |
|
4968 |
+ |
|
4969 |
+LC_CURRENT=7 |
|
4970 |
+LC_REVISION=21 |
|
4971 |
+LC_AGE=1 |
|
4972 |
+LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE" |
|
4973 |
+ |
|
4974 |
+ |
|
4975 |
+ |
|
4976 |
+cat >>confdefs.h <<_ACEOF |
|
4977 |
+#define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION" |
|
4978 |
+_ACEOF |
|
4979 |
+ |
|
4980 |
+ |
|
4981 |
+ |
|
4982 |
+cat >>confdefs.h <<_ACEOF |
|
4983 |
+#define LIBCLAMAV_MAJORVER $major |
|
4984 |
+_ACEOF |
|
4985 |
+ |
|
4986 |
+ |
|
4987 |
+ |
|
4988 |
+cat >>confdefs.h <<_ACEOF |
|
4989 |
+#define VERSION "$VERSION" |
|
4990 |
+_ACEOF |
|
4991 |
+ |
|
4992 |
+ |
|
4993 |
+cat >>confdefs.h <<_ACEOF |
|
4994 |
+#define VERSION_SUFFIX "$VERSION_SUFFIX" |
|
4995 |
+_ACEOF |
|
4996 |
+ |
|
4997 |
+ |
|
4998 |
+ |
|
4999 |
+ |
|
5000 |
+ |
|
5001 |
+ |
|
5002 |
+ |
|
5003 |
+ |
|
5004 |
+ |
|
5005 |
+ |
|
5006 |
+case `pwd` in |
|
5007 |
+ *\ * | *\ *) |
|
5008 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
|
5009 |
+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
|
5010 |
+esac |
|
5011 |
+ |
|
5012 |
+ |
|
5013 |
+ |
|
5014 |
+macro_version='2.4.2' |
|
5015 |
+macro_revision='1.3337' |
|
5016 |
+ |
|
5017 |
+ |
|
5018 |
+ |
|
5019 |
+ |
|
5020 |
+ |
|
5021 |
+ |
|
5022 |
+ |
|
5023 |
+ |
|
5024 |
+ |
|
5025 |
+ |
|
5026 |
+ |
|
5027 |
+ |
|
5028 |
+ |
|
5029 |
+ltmain="$ac_aux_dir/ltmain.sh" |
|
5030 |
+ |
|
5031 |
+# Backslashify metacharacters that are still active within |
|
5032 |
+# double-quoted strings. |
|
5033 |
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
|
5034 |
+ |
|
5035 |
+# Same as above, but do not quote variable references. |
|
5036 |
+double_quote_subst='s/\(["`\\]\)/\\\1/g' |
|
5037 |
+ |
|
5038 |
+# Sed substitution to delay expansion of an escaped shell variable in a |
|
5039 |
+# double_quote_subst'ed string. |
|
5040 |
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
5041 |
+ |
|
5042 |
+# Sed substitution to delay expansion of an escaped single quote. |
|
5043 |
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
5044 |
+ |
|
5045 |
+# Sed substitution to avoid accidental globbing in evaled expressions |
|
5046 |
+no_glob_subst='s/\*/\\\*/g' |
|
5047 |
+ |
|
5048 |
+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
5049 |
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
|
5050 |
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
|
5051 |
+ |
|
5052 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
|
5053 |
+$as_echo_n "checking how to print strings... " >&6; } |
|
5054 |
+# Test print first, because it will be a builtin if present. |
|
5055 |
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
|
5056 |
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
5057 |
+ ECHO='print -r --' |
|
5058 |
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
5059 |
+ ECHO='printf %s\n' |
|
5060 |
+else |
|
5061 |
+ # Use this function as a fallback that always works. |
|
5062 |
+ func_fallback_echo () |
|
5063 |
+ { |
|
5064 |
+ eval 'cat <<_LTECHO_EOF |
|
5065 |
+$1 |
|
5066 |
+_LTECHO_EOF' |
|
5067 |
+ } |
|
5068 |
+ ECHO='func_fallback_echo' |
|
5069 |
+fi |
|
5070 |
+ |
|
5071 |
+# func_echo_all arg... |
|
5072 |
+# Invoke $ECHO with all args, space-separated. |
|
5073 |
+func_echo_all () |
|
5074 |
+{ |
|
5075 |
+ $ECHO "" |
|
5076 |
+} |
|
5077 |
+ |
|
5078 |
+case "$ECHO" in |
|
5079 |
+ printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
|
5080 |
+$as_echo "printf" >&6; } ;; |
|
5081 |
+ print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
|
5082 |
+$as_echo "print -r" >&6; } ;; |
|
5083 |
+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
|
5084 |
+$as_echo "cat" >&6; } ;; |
|
5085 |
+esac |
|
5086 |
+ |
|
5087 |
+ |
|
5088 |
+ |
|
5089 |
+ |
|
5090 |
+ |
|
5091 |
+ |
|
5092 |
+ |
|
5093 |
+ |
|
5094 |
+ |
|
5095 |
+ |
|
5096 |
+ |
|
5097 |
+ |
|
5098 |
+ |
|
5099 |
+ |
|
5100 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
|
5101 |
+$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
5102 |
+if ${ac_cv_path_SED+:} false; then : |
|
5103 |
+ $as_echo_n "(cached) " >&6 |
|
5104 |
+else |
|
5105 |
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
5106 |
+ for ac_i in 1 2 3 4 5 6 7; do |
|
5107 |
+ ac_script="$ac_script$as_nl$ac_script" |
|
5108 |
+ done |
|
5109 |
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
5110 |
+ { ac_script=; unset ac_script;} |
|
5111 |
+ if test -z "$SED"; then |
|
5112 |
+ ac_path_SED_found=false |
|
5113 |
+ # Loop through the user's path and test for each of PROGNAME-LIST |
|
5114 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5115 |
+for as_dir in $PATH |
|
5116 |
+do |
|
5117 |
+ IFS=$as_save_IFS |
|
5118 |
+ test -z "$as_dir" && as_dir=. |
|
5119 |
+ for ac_prog in sed gsed; do |
|
5120 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
|
5121 |
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
5122 |
+ as_fn_executable_p "$ac_path_SED" || continue |
|
5123 |
+# Check for GNU ac_path_SED and select it if it is found. |
|
5124 |
+ # Check for GNU $ac_path_SED |
|
5125 |
+case `"$ac_path_SED" --version 2>&1` in |
|
5126 |
+*GNU*) |
|
5127 |
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
5128 |
+*) |
|
5129 |
+ ac_count=0 |
|
5130 |
+ $as_echo_n 0123456789 >"conftest.in" |
|
5131 |
+ while : |
|
5132 |
+ do |
|
5133 |
+ cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
5134 |
+ mv "conftest.tmp" "conftest.in" |
|
5135 |
+ cp "conftest.in" "conftest.nl" |
|
5136 |
+ $as_echo '' >> "conftest.nl" |
|
5137 |
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
5138 |
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
5139 |
+ as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
5140 |
+ if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
5141 |
+ # Best one so far, save it but keep looking for a better one |
|
5142 |
+ ac_cv_path_SED="$ac_path_SED" |
|
5143 |
+ ac_path_SED_max=$ac_count |
|
5144 |
+ fi |
|
5145 |
+ # 10*(2^10) chars as input seems more than enough |
|
5146 |
+ test $ac_count -gt 10 && break |
|
5147 |
+ done |
|
5148 |
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
5149 |
+esac |
|
5150 |
+ |
|
5151 |
+ $ac_path_SED_found && break 3 |
|
5152 |
+ done |
|
5153 |
+ done |
|
5154 |
+ done |
|
5155 |
+IFS=$as_save_IFS |
|
5156 |
+ if test -z "$ac_cv_path_SED"; then |
|
5157 |
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
|
5158 |
+ fi |
|
5159 |
+else |
|
5160 |
+ ac_cv_path_SED=$SED |
|
5161 |
+fi |
|
5162 |
+ |
|
5163 |
+fi |
|
5164 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
|
5165 |
+$as_echo "$ac_cv_path_SED" >&6; } |
|
5166 |
+ SED="$ac_cv_path_SED" |
|
5167 |
+ rm -f conftest.sed |
|
5168 |
+ |
|
5169 |
+test -z "$SED" && SED=sed |
|
5170 |
+Xsed="$SED -e 1s/^X//" |
|
5171 |
+ |
|
5172 |
+ |
|
5173 |
+ |
|
5174 |
+ |
|
5175 |
+ |
|
5176 |
+ |
|
5177 |
+ |
|
5178 |
+ |
|
5179 |
+ |
|
5180 |
+ |
|
5181 |
+ |
|
4776 | 5182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4777 | 5183 |
$as_echo_n "checking for fgrep... " >&6; } |
4778 | 5184 |
if ${ac_cv_path_FGREP+:} false; then : |
... | ... |
@@ -5983,7 +6312,6 @@ test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5983 | 5983 |
|
5984 | 5984 |
|
5985 | 5985 |
|
5986 |
- |
|
5987 | 5986 |
if test -n "$ac_tool_prefix"; then |
5988 | 5987 |
for ac_prog in ar |
5989 | 5988 |
do |
... | ... |
@@ -7700,273 +8028,6 @@ $as_echo "$lt_cv_ld_force_load" >&6; } |
7700 | 7700 |
;; |
7701 | 7701 |
esac |
7702 | 7702 |
|
7703 |
-ac_ext=c |
|
7704 |
-ac_cpp='$CPP $CPPFLAGS' |
|
7705 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7706 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7707 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7708 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
7709 |
-$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
7710 |
-# On Suns, sometimes $CPP names a directory. |
|
7711 |
-if test -n "$CPP" && test -d "$CPP"; then |
|
7712 |
- CPP= |
|
7713 |
-fi |
|
7714 |
-if test -z "$CPP"; then |
|
7715 |
- if ${ac_cv_prog_CPP+:} false; then : |
|
7716 |
- $as_echo_n "(cached) " >&6 |
|
7717 |
-else |
|
7718 |
- # Double quotes because CPP needs to be expanded |
|
7719 |
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
7720 |
- do |
|
7721 |
- ac_preproc_ok=false |
|
7722 |
-for ac_c_preproc_warn_flag in '' yes |
|
7723 |
-do |
|
7724 |
- # Use a header file that comes with gcc, so configuring glibc |
|
7725 |
- # with a fresh cross-compiler works. |
|
7726 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
7727 |
- # <limits.h> exists even on freestanding compilers. |
|
7728 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
|
7729 |
- # not just through cpp. "Syntax error" is here to catch this case. |
|
7730 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7731 |
-/* end confdefs.h. */ |
|
7732 |
-#ifdef __STDC__ |
|
7733 |
-# include <limits.h> |
|
7734 |
-#else |
|
7735 |
-# include <assert.h> |
|
7736 |
-#endif |
|
7737 |
- Syntax error |
|
7738 |
-_ACEOF |
|
7739 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
7740 |
- |
|
7741 |
-else |
|
7742 |
- # Broken: fails on valid input. |
|
7743 |
-continue |
|
7744 |
-fi |
|
7745 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
7746 |
- |
|
7747 |
- # OK, works on sane cases. Now check whether nonexistent headers |
|
7748 |
- # can be detected and how. |
|
7749 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7750 |
-/* end confdefs.h. */ |
|
7751 |
-#include <ac_nonexistent.h> |
|
7752 |
-_ACEOF |
|
7753 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
7754 |
- # Broken: success on invalid input. |
|
7755 |
-continue |
|
7756 |
-else |
|
7757 |
- # Passes both tests. |
|
7758 |
-ac_preproc_ok=: |
|
7759 |
-break |
|
7760 |
-fi |
|
7761 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
7762 |
- |
|
7763 |
-done |
|
7764 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
7765 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
|
7766 |
-if $ac_preproc_ok; then : |
|
7767 |
- break |
|
7768 |
-fi |
|
7769 |
- |
|
7770 |
- done |
|
7771 |
- ac_cv_prog_CPP=$CPP |
|
7772 |
- |
|
7773 |
-fi |
|
7774 |
- CPP=$ac_cv_prog_CPP |
|
7775 |
-else |
|
7776 |
- ac_cv_prog_CPP=$CPP |
|
7777 |
-fi |
|
7778 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
7779 |
-$as_echo "$CPP" >&6; } |
|
7780 |
-ac_preproc_ok=false |
|
7781 |
-for ac_c_preproc_warn_flag in '' yes |
|
7782 |
-do |
|
7783 |
- # Use a header file that comes with gcc, so configuring glibc |
|
7784 |
- # with a fresh cross-compiler works. |
|
7785 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
7786 |
- # <limits.h> exists even on freestanding compilers. |
|
7787 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
|
7788 |
- # not just through cpp. "Syntax error" is here to catch this case. |
|
7789 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7790 |
-/* end confdefs.h. */ |
|
7791 |
-#ifdef __STDC__ |
|
7792 |
-# include <limits.h> |
|
7793 |
-#else |
|
7794 |
-# include <assert.h> |
|
7795 |
-#endif |
|
7796 |
- Syntax error |
|
7797 |
-_ACEOF |
|
7798 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
7799 |
- |
|
7800 |
-else |
|
7801 |
- # Broken: fails on valid input. |
|
7802 |
-continue |
|
7803 |
-fi |
|
7804 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
7805 |
- |
|
7806 |
- # OK, works on sane cases. Now check whether nonexistent headers |
|
7807 |
- # can be detected and how. |
|
7808 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7809 |
-/* end confdefs.h. */ |
|
7810 |
-#include <ac_nonexistent.h> |
|
7811 |
-_ACEOF |
|
7812 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
7813 |
- # Broken: success on invalid input. |
|
7814 |
-continue |
|
7815 |
-else |
|
7816 |
- # Passes both tests. |
|
7817 |
-ac_preproc_ok=: |
|
7818 |
-break |
|
7819 |
-fi |
|
7820 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
7821 |
- |
|
7822 |
-done |
|
7823 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
7824 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
|
7825 |
-if $ac_preproc_ok; then : |
|
7826 |
- |
|
7827 |
-else |
|
7828 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
7829 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
7830 |
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
7831 |
-See \`config.log' for more details" "$LINENO" 5; } |
|
7832 |
-fi |
|
7833 |
- |
|
7834 |
-ac_ext=c |
|
7835 |
-ac_cpp='$CPP $CPPFLAGS' |
|
7836 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7837 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7838 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7839 |
- |
|
7840 |
- |
|
7841 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
7842 |
-$as_echo_n "checking for ANSI C header files... " >&6; } |
|
7843 |
-if ${ac_cv_header_stdc+:} false; then : |
|
7844 |
- $as_echo_n "(cached) " >&6 |
|
7845 |
-else |
|
7846 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7847 |
-/* end confdefs.h. */ |
|
7848 |
-#include <stdlib.h> |
|
7849 |
-#include <stdarg.h> |
|
7850 |
-#include <string.h> |
|
7851 |
-#include <float.h> |
|
7852 |
- |
|
7853 |
-int |
|
7854 |
-main () |
|
7855 |
-{ |
|
7856 |
- |
|
7857 |
- ; |
|
7858 |
- return 0; |
|
7859 |
-} |
|
7860 |
-_ACEOF |
|
7861 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
7862 |
- ac_cv_header_stdc=yes |
|
7863 |
-else |
|
7864 |
- ac_cv_header_stdc=no |
|
7865 |
-fi |
|
7866 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7867 |
- |
|
7868 |
-if test $ac_cv_header_stdc = yes; then |
|
7869 |
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
7870 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7871 |
-/* end confdefs.h. */ |
|
7872 |
-#include <string.h> |
|
7873 |
- |
|
7874 |
-_ACEOF |
|
7875 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7876 |
- $EGREP "memchr" >/dev/null 2>&1; then : |
|
7877 |
- |
|
7878 |
-else |
|
7879 |
- ac_cv_header_stdc=no |
|
7880 |
-fi |
|
7881 |
-rm -f conftest* |
|
7882 |
- |
|
7883 |
-fi |
|
7884 |
- |
|
7885 |
-if test $ac_cv_header_stdc = yes; then |
|
7886 |
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
7887 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7888 |
-/* end confdefs.h. */ |
|
7889 |
-#include <stdlib.h> |
|
7890 |
- |
|
7891 |
-_ACEOF |
|
7892 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7893 |
- $EGREP "free" >/dev/null 2>&1; then : |
|
7894 |
- |
|
7895 |
-else |
|
7896 |
- ac_cv_header_stdc=no |
|
7897 |
-fi |
|
7898 |
-rm -f conftest* |
|
7899 |
- |
|
7900 |
-fi |
|
7901 |
- |
|
7902 |
-if test $ac_cv_header_stdc = yes; then |
|
7903 |
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
7904 |
- if test "$cross_compiling" = yes; then : |
|
7905 |
- : |
|
7906 |
-else |
|
7907 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7908 |
-/* end confdefs.h. */ |
|
7909 |
-#include <ctype.h> |
|
7910 |
-#include <stdlib.h> |
|
7911 |
-#if ((' ' & 0x0FF) == 0x020) |
|
7912 |
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
7913 |
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
7914 |
-#else |
|
7915 |
-# define ISLOWER(c) \ |
|
7916 |
- (('a' <= (c) && (c) <= 'i') \ |
|
7917 |
- || ('j' <= (c) && (c) <= 'r') \ |
|
7918 |
- || ('s' <= (c) && (c) <= 'z')) |
|
7919 |
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
7920 |
-#endif |
|
7921 |
- |
|
7922 |
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
7923 |
-int |
|
7924 |
-main () |
|
7925 |
-{ |
|
7926 |
- int i; |
|
7927 |
- for (i = 0; i < 256; i++) |
|
7928 |
- if (XOR (islower (i), ISLOWER (i)) |
|
7929 |
- || toupper (i) != TOUPPER (i)) |
|
7930 |
- return 2; |
|
7931 |
- return 0; |
|
7932 |
-} |
|
7933 |
-_ACEOF |
|
7934 |
-if ac_fn_c_try_run "$LINENO"; then : |
|
7935 |
- |
|
7936 |
-else |
|
7937 |
- ac_cv_header_stdc=no |
|
7938 |
-fi |
|
7939 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
7940 |
- conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
7941 |
-fi |
|
7942 |
- |
|
7943 |
-fi |
|
7944 |
-fi |
|
7945 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
7946 |
-$as_echo "$ac_cv_header_stdc" >&6; } |
|
7947 |
-if test $ac_cv_header_stdc = yes; then |
|
7948 |
- |
|
7949 |
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
7950 |
- |
|
7951 |
-fi |
|
7952 |
- |
|
7953 |
-# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
7954 |
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
7955 |
- inttypes.h stdint.h unistd.h |
|
7956 |
-do : |
|
7957 |
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
7958 |
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
7959 |
-" |
|
7960 |
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
7961 |
- cat >>confdefs.h <<_ACEOF |
|
7962 |
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
7963 |
-_ACEOF |
|
7964 |
- |
|
7965 |
-fi |
|
7966 |
- |
|
7967 |
-done |
|
7968 |
- |
|
7969 |
- |
|
7970 | 7703 |
for ac_header in dlfcn.h |
7971 | 7704 |
do : |
7972 | 7705 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
... | ... |
@@ -40,6 +40,7 @@ AM_SILENT_RULES([yes]) |
40 | 40 |
dnl we told automake to not define these, since we want to include |
41 | 41 |
dnl the date in the version |
42 | 42 |
AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) |
43 |
+AC_USE_SYSTEM_EXTENSIONS |
|
43 | 44 |
|
44 | 45 |
m4_include([m4/reorganization/version.m4]) |
45 | 46 |
|