2466
2471
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2469
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2470
# We used to keeping the `.' as first argument, in order to
2471
# allow $(mkdir_p) to be used without argument. As in
2472
# $(mkdir_p) $(somedir)
2473
# where $(somedir) is conditionally defined. However this is wrong
2475
# 1. if the package is installed by a user who cannot write `.'
2476
# make install will fail,
2477
# 2. the above comment should most certainly read
2478
# $(mkdir_p) $(DESTDIR)$(somedir)
2479
# so it does not work when $(somedir) is undefined and
2480
# $(DESTDIR) is not.
2481
# To support the latter case, we have to write
2482
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2483
# so the `.' trick is pointless.
2484
mkdir_p='mkdir -p --'
2474
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2475
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2476
if test -z "$MKDIR_P"; then
2477
if test "${ac_cv_path_mkdir+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2486
# On NextStep and OpenStep, the `mkdir' command does not
2487
# recognize any option. It will interpret all options as
2488
# directories to create, and then abort because `.' already
2490
for d in ./-p ./--version;
2492
test -d $d && rmdir $d
2494
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2495
if test -f "$ac_aux_dir/mkinstalldirs"; then
2496
mkdir_p='$(mkinstalldirs)'
2480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2484
test -z "$as_dir" && as_dir=.
2485
for ac_prog in mkdir gmkdir; do
2486
for ac_exec_ext in '' $ac_executable_extensions; do
2487
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2488
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2489
'mkdir (GNU coreutils) '* | \
2490
'mkdir (coreutils) '* | \
2491
'mkdir (fileutils) '4.1*)
2492
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2502
if test "${ac_cv_path_mkdir+set}" = set; then
2503
MKDIR_P="$ac_cv_path_mkdir -p"
2498
mkdir_p='$(install_sh) -d'
2505
# As a last resort, use the slow shell script. Don't cache a
2506
# value for MKDIR_P within a source directory, because that will
2507
# break other packages using the cache if that directory is
2508
# removed, or if the value is a relative name.
2509
test -d ./--version && rmdir ./--version
2510
MKDIR_P="$ac_install_sh -d"
2513
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2514
echo "${ECHO_T}$MKDIR_P" >&6; }
2518
[\\/$]* | ?:[\\/]*) ;;
2519
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2502
2522
for ac_prog in gawk mawk nawk awk
19998
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.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 regex.h limits.h sys/filio.h sys/uio.h termios.h iconv.h stdbool.h pwd.h grp.h
19992
# Check whether --enable-gcc-vcheck was given.
19993
if test "${enable_gcc_vcheck+set}" = set; then
19994
enableval=$enable_gcc_vcheck; gcc_check=$enableval
20000
msg_gcc_check="use --disable-gcc-vcheck to disable this check. Before reporting any bugs check with a supported version of gcc"
20002
if test "$gcc_check" = "yes"; then
20003
if test "x$ac_compiler_gnu" = "xyes"; then
20004
{ echo "$as_me:$LINENO: checking for a supported version of gcc" >&5
20005
echo $ECHO_N "checking for a supported version of gcc... $ECHO_C" >&6; }
20006
gcc_version=`${CC} -dumpversion`
20007
case "${gcc_version}" in
20009
{ echo "$as_me:$LINENO: result: no (${gcc_version})" >&5
20010
echo "${ECHO_T}no (${gcc_version})" >&6; }
20011
{ { echo "$as_me:$LINENO: error: gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" >&5
20012
echo "$as_me: error: gcc 4.1.0 is known to incorrectly compile upx.c. Upgrade your compiler to at least 4.1.1/4.1.2)" >&2;}
20013
{ (exit 1); exit 1; }; }
20016
{ echo "$as_me:$LINENO: result: ok (${gcc_version})" >&5
20017
echo "${ECHO_T}ok (${gcc_version})" >&6; }
20024
{ echo "$as_me:$LINENO: checking for gcc bug PR27603" >&5
20025
echo $ECHO_N "checking for gcc bug PR27603... $ECHO_C" >&6; }
20026
if test "$cross_compiling" = yes; then
20027
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20028
See \`config.log' for more details." >&5
20029
echo "$as_me: error: cannot run test program while cross compiling
20030
See \`config.log' for more details." >&2;}
20031
{ (exit 1); exit 1; }; }
20033
cat >conftest.$ac_ext <<_ACEOF
20036
cat confdefs.h >>conftest.$ac_ext
20037
cat >>conftest.$ac_ext <<_ACEOF
20038
/* end confdefs.h. */
20040
/* (C) Richard Guenther */
20047
for (j = 0; j < 6; j++)
20049
if ((unsigned)j - 3 <= 1)
20051
a = 1000 * (6 - j);
20057
rm -f conftest$ac_exeext
20058
if { (ac_try="$ac_link"
20059
case "(($ac_try" in
20060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061
*) ac_try_echo=$ac_try;;
20063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064
(eval "$ac_link") 2>&5
20066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20068
{ (case "(($ac_try" in
20069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070
*) ac_try_echo=$ac_try;;
20072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073
(eval "$ac_try") 2>&5
20075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076
(exit $ac_status); }; }; then
20077
{ echo "$as_me:$LINENO: result: ok, bug not present" >&5
20078
echo "${ECHO_T}ok, bug not present" >&6; }
20080
echo "$as_me: program exited with status $ac_status" >&5
20081
echo "$as_me: failed program was:" >&5
20082
sed 's/^/| /' conftest.$ac_ext >&5
20084
( exit $ac_status )
20085
{ { echo "$as_me:$LINENO: error: your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" >&5
20086
echo "$as_me: error: your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603" >&2;}
20087
{ (exit 1); exit 1; }; }
20089
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20094
{ echo "$as_me:$LINENO: checking for gcc bug PR28045" >&5
20095
echo $ECHO_N "checking for gcc bug PR28045... $ECHO_C" >&6; }
20096
if test "$cross_compiling" = yes; then
20097
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20098
See \`config.log' for more details." >&5
20099
echo "$as_me: error: cannot run test program while cross compiling
20100
See \`config.log' for more details." >&2;}
20101
{ (exit 1); exit 1; }; }
20103
cat >conftest.$ac_ext <<_ACEOF
20106
cat confdefs.h >>conftest.$ac_ext
20107
cat >>conftest.$ac_ext <<_ACEOF
20108
/* end confdefs.h. */
20110
/* (C) Andrew Pinski */
20111
extern void abort(void);
20114
unsigned int bits : 1;
20115
signed long val : ((sizeof(long) * 8) - 1);
20117
int Fnegate (struct a b)
20119
if ((-((long)b.val)) <= ((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))
20120
&& (-((long)b.val)) >= (-(((long) ((1UL << ((sizeof(long) * 8) - 2)) -1UL))) - 1))
20126
struct a b = {1, 1};
20132
rm -f conftest$ac_exeext
20133
if { (ac_try="$ac_link"
20134
case "(($ac_try" in
20135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136
*) ac_try_echo=$ac_try;;
20138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139
(eval "$ac_link") 2>&5
20141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143
{ (case "(($ac_try" in
20144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145
*) ac_try_echo=$ac_try;;
20147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148
(eval "$ac_try") 2>&5
20150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151
(exit $ac_status); }; }; then
20152
{ echo "$as_me:$LINENO: result: ok, bug not present" >&5
20153
echo "${ECHO_T}ok, bug not present" >&6; }
20155
echo "$as_me: program exited with status $ac_status" >&5
20156
echo "$as_me: failed program was:" >&5
20157
sed 's/^/| /' conftest.$ac_ext >&5
20159
( exit $ac_status )
20160
{ { echo "$as_me:$LINENO: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" >&5
20161
echo "$as_me: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045" >&2;}
20162
{ (exit 1); exit 1; }; }
20164
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169
{ echo "$as_me:$LINENO: checking for gcc bug PR26763-2" >&5
20170
echo $ECHO_N "checking for gcc bug PR26763-2... $ECHO_C" >&6; }
20171
if test "$cross_compiling" = yes; then
20172
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20173
See \`config.log' for more details." >&5
20174
echo "$as_me: error: cannot run test program while cross compiling
20175
See \`config.log' for more details." >&2;}
20176
{ (exit 1); exit 1; }; }
20178
cat >conftest.$ac_ext <<_ACEOF
20181
cat confdefs.h >>conftest.$ac_ext
20182
cat >>conftest.$ac_ext <<_ACEOF
20183
/* end confdefs.h. */
20185
/* (C) Richard Guenther */
20186
extern void abort(void);
20188
int try (char *a, int d)
20197
if (try (bla + 50, -1))
20204
rm -f conftest$ac_exeext
20205
if { (ac_try="$ac_link"
20206
case "(($ac_try" in
20207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208
*) ac_try_echo=$ac_try;;
20210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211
(eval "$ac_link") 2>&5
20213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215
{ (case "(($ac_try" in
20216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217
*) ac_try_echo=$ac_try;;
20219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220
(eval "$ac_try") 2>&5
20222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223
(exit $ac_status); }; }; then
20224
{ echo "$as_me:$LINENO: result: ok, bug not present" >&5
20225
echo "${ECHO_T}ok, bug not present" >&6; }
20227
echo "$as_me: program exited with status $ac_status" >&5
20228
echo "$as_me: failed program was:" >&5
20229
sed 's/^/| /' conftest.$ac_ext >&5
20231
( exit $ac_status )
20232
{ { echo "$as_me:$LINENO: error: your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" >&5
20233
echo "$as_me: error: your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763" >&2;}
20234
{ (exit 1); exit 1; }; }
20236
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20241
{ echo "$as_me:$LINENO: checking for valid code generation of CLI_ISCONTAINED" >&5
20242
echo $ECHO_N "checking for valid code generation of CLI_ISCONTAINED... $ECHO_C" >&6; }
20243
if test "$cross_compiling" = yes; then
20244
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20245
See \`config.log' for more details." >&5
20246
echo "$as_me: error: cannot run test program while cross compiling
20247
See \`config.log' for more details." >&2;}
20248
{ (exit 1); exit 1; }; }
20250
cat >conftest.$ac_ext <<_ACEOF
20253
cat confdefs.h >>conftest.$ac_ext
20254
cat >>conftest.$ac_ext <<_ACEOF
20255
/* end confdefs.h. */
20260
unsigned long dsize;
20261
unsigned long dcur;
20262
unsigned long backsize;
20263
signed long unp_offset;
20265
{(char*)0xf78ab008, 0x2e000, 1, 4, 0xfffff9f3},
20266
{(char*)0xb7af1008, 0x2e000, 1, 4, 0xfffff9f3}
20269
extern void abort(void);
20271
#define CLI_ISCONTAINED(bb, bb_size, sb, sb_size) \
20272
(bb_size > 0 && sb_size > 0 && sb_size <= bb_size \
20273
&& sb >= bb && sb + sb_size <= bb + bb_size && sb + sb_size > bb)
20278
for(i=0;i<sizeof(values)/sizeof(values[0]);i++) {
20279
struct v* v= &values[i];
20280
char* dst = v->dst;
20281
unsigned long* dsize = &v->dsize;
20282
unsigned long dcur = v->dcur;
20283
unsigned long backsize = v->backsize-1;
20284
signed long unp_offset = v->unp_offset;
20286
if(!CLI_ISCONTAINED(dst, *dsize, dst+dcur+unp_offset, backsize) ||
20287
!CLI_ISCONTAINED(dst, *dsize,dst+dcur,backsize) || unp_offset >= 0) {
20296
rm -f conftest$ac_exeext
20297
if { (ac_try="$ac_link"
20298
case "(($ac_try" in
20299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300
*) ac_try_echo=$ac_try;;
20302
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303
(eval "$ac_link") 2>&5
20305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20307
{ (case "(($ac_try" in
20308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309
*) ac_try_echo=$ac_try;;
20311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312
(eval "$ac_try") 2>&5
20314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315
(exit $ac_status); }; }; then
20316
{ echo "$as_me:$LINENO: result: ok, bug not present" >&5
20317
echo "${ECHO_T}ok, bug not present" >&6; }
20319
echo "$as_me: program exited with status $ac_status" >&5
20320
echo "$as_me: failed program was:" >&5
20321
sed 's/^/| /' conftest.$ac_ext >&5
20323
( exit $ac_status )
20324
{ { echo "$as_me:$LINENO: error: your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&5
20325
echo "$as_me: error: your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670" >&2;}
20326
{ (exit 1); exit 1; }; }
20328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358
for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.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 iconv.h stdbool.h pwd.h grp.h
20000
20360
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20001
20361
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22130
# Check whether --enable-ncore was given.
22131
if test "${enable_ncore+set}" = set; then
22132
enableval=$enable_ncore; want_ncore=$enableval
22138
if test "$want_ncore" = "auto"
22140
{ echo "$as_me:$LINENO: checking for sn_sigscan_initdb in -lsn_sigscan" >&5
22141
echo $ECHO_N "checking for sn_sigscan_initdb in -lsn_sigscan... $ECHO_C" >&6; }
22142
if test "${ac_cv_lib_sn_sigscan_sn_sigscan_initdb+set}" = set; then
22143
echo $ECHO_N "(cached) $ECHO_C" >&6
22145
ac_check_lib_save_LIBS=$LIBS
22146
LIBS="-lsn_sigscan $LIBS"
22147
cat >conftest.$ac_ext <<_ACEOF
22150
cat confdefs.h >>conftest.$ac_ext
22151
cat >>conftest.$ac_ext <<_ACEOF
22152
/* end confdefs.h. */
22154
/* Override any GCC internal prototype to avoid an error.
22155
Use char because int might match the return type of a GCC
22156
builtin and then its argument prototype would still apply. */
22160
char sn_sigscan_initdb ();
22164
return sn_sigscan_initdb ();
22169
rm -f conftest.$ac_objext conftest$ac_exeext
22170
if { (ac_try="$ac_link"
22171
case "(($ac_try" in
22172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173
*) ac_try_echo=$ac_try;;
22175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176
(eval "$ac_link") 2>conftest.er1
22178
grep -v '^ *+' conftest.er1 >conftest.err
22180
cat conftest.err >&5
22181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182
(exit $ac_status); } && {
22183
test -z "$ac_c_werror_flag" ||
22184
test ! -s conftest.err
22185
} && test -s conftest$ac_exeext &&
22186
$as_test_x conftest$ac_exeext; then
22187
ac_cv_lib_sn_sigscan_sn_sigscan_initdb=yes
22189
echo "$as_me: failed program was:" >&5
22190
sed 's/^/| /' conftest.$ac_ext >&5
22192
ac_cv_lib_sn_sigscan_sn_sigscan_initdb=no
22195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22196
conftest$ac_exeext conftest.$ac_ext
22197
LIBS=$ac_check_lib_save_LIBS
22199
{ echo "$as_me:$LINENO: result: $ac_cv_lib_sn_sigscan_sn_sigscan_initdb" >&5
22200
echo "${ECHO_T}$ac_cv_lib_sn_sigscan_sn_sigscan_initdb" >&6; }
22201
if test $ac_cv_lib_sn_sigscan_sn_sigscan_initdb = yes; then
22205
if test "$have_sigscan" = "yes"; then
22210
if test "$want_ncore" = "yes"
22212
if test "${ac_cv_header_dlfcn_h+set}" = set; then
22213
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
22214
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
22215
if test "${ac_cv_header_dlfcn_h+set}" = set; then
22216
echo $ECHO_N "(cached) $ECHO_C" >&6
22218
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
22219
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
22221
# Is the header compilable?
22222
{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
22223
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
22224
cat >conftest.$ac_ext <<_ACEOF
22227
cat confdefs.h >>conftest.$ac_ext
22228
cat >>conftest.$ac_ext <<_ACEOF
22229
/* end confdefs.h. */
22230
$ac_includes_default
22233
rm -f conftest.$ac_objext
22234
if { (ac_try="$ac_compile"
22235
case "(($ac_try" in
22236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237
*) ac_try_echo=$ac_try;;
22239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240
(eval "$ac_compile") 2>conftest.er1
22242
grep -v '^ *+' conftest.er1 >conftest.err
22244
cat conftest.err >&5
22245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246
(exit $ac_status); } && {
22247
test -z "$ac_c_werror_flag" ||
22248
test ! -s conftest.err
22249
} && test -s conftest.$ac_objext; then
22250
ac_header_compiler=yes
22252
echo "$as_me: failed program was:" >&5
22253
sed 's/^/| /' conftest.$ac_ext >&5
22255
ac_header_compiler=no
22258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22260
echo "${ECHO_T}$ac_header_compiler" >&6; }
22262
# Is the header present?
22263
{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
22264
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
22265
cat >conftest.$ac_ext <<_ACEOF
22268
cat confdefs.h >>conftest.$ac_ext
22269
cat >>conftest.$ac_ext <<_ACEOF
22270
/* end confdefs.h. */
22273
if { (ac_try="$ac_cpp conftest.$ac_ext"
22274
case "(($ac_try" in
22275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276
*) ac_try_echo=$ac_try;;
22278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22281
grep -v '^ *+' conftest.er1 >conftest.err
22283
cat conftest.err >&5
22284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285
(exit $ac_status); } >/dev/null && {
22286
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22287
test ! -s conftest.err
22289
ac_header_preproc=yes
22291
echo "$as_me: failed program was:" >&5
22292
sed 's/^/| /' conftest.$ac_ext >&5
22294
ac_header_preproc=no
22297
rm -f conftest.err conftest.$ac_ext
22298
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22299
echo "${ECHO_T}$ac_header_preproc" >&6; }
22301
# So? What about this header?
22302
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22304
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
22305
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22306
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
22307
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
22308
ac_header_preproc=yes
22311
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
22312
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
22313
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
22314
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
22315
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
22316
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
22317
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
22318
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
22319
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
22320
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
22321
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
22322
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
22326
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
22327
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
22328
if test "${ac_cv_header_dlfcn_h+set}" = set; then
22329
echo $ECHO_N "(cached) $ECHO_C" >&6
22331
ac_cv_header_dlfcn_h=$ac_header_preproc
22333
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
22334
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
22337
if test $ac_cv_header_dlfcn_h = yes; then
22338
LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -ldl" ;
22339
cat >>confdefs.h <<\_ACEOF
22340
#define HAVE_NCORE 1
22344
{ echo "$as_me:$LINENO: WARNING: ****** NodalCore support disabled (no support for dlopen)" >&5
22345
echo "$as_me: WARNING: ****** NodalCore support disabled (no support for dlopen)" >&2;}
22488
# Check whether --enable-unrar was given.
22489
if test "${enable_unrar+set}" = set; then
22490
enableval=$enable_unrar; want_unrar=$enableval
22351
22496
# Check whether --enable-dns was given.
22352
22497
if test "${enable_dns+set}" = set; then
26168
26326
{ echo "$as_me:$LINENO: result: $have_signed_rightshift_extended" >&5
26169
26327
echo "${ECHO_T}$have_signed_rightshift_extended" >&6; };
26172
ac_config_files="$ac_config_files libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
26329
{ echo "$as_me:$LINENO: checking whether FPU byte ordering is bigendian" >&5
26330
echo $ECHO_N "checking whether FPU byte ordering is bigendian... $ECHO_C" >&6; }
26331
if test "${ac_cv_c_fpu_bigendian+set}" = set; then
26332
echo $ECHO_N "(cached) $ECHO_C" >&6
26334
ac_cv_c_fpu_bigendian=unknown
26335
cat >conftest.$ac_ext <<_ACEOF
26338
cat confdefs.h >>conftest.$ac_ext
26339
cat >>conftest.$ac_ext <<_ACEOF
26340
/* end confdefs.h. */
26341
double d = 3815911171354501045744583353695226502220105394563506259449467213186125718792664588210662403287568710818873279842508553551908601408568128557088985172985437412593385138085986771664896.0;
26343
rm -f conftest.$ac_objext
26344
if { (ac_try="$ac_compile"
26345
case "(($ac_try" in
26346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347
*) ac_try_echo=$ac_try;;
26349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350
(eval "$ac_compile") 2>conftest.er1
26352
grep -v '^ *+' conftest.er1 >conftest.err
26354
cat conftest.err >&5
26355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356
(exit $ac_status); } && {
26357
test -z "$ac_c_werror_flag" ||
26358
test ! -s conftest.err
26359
} && test -s conftest.$ac_objext; then
26361
if grep emmeelle conftest.$ac_objext >/dev/null 2>&1 ; then
26362
ac_cv_c_fpu_bigendian=yes
26364
if grep elleemme conftest.$ac_objext >/dev/null 2>&1 ; then
26365
ac_cv_c_fpu_bigendian=no
26369
echo "$as_me: failed program was:" >&5
26370
sed 's/^/| /' conftest.$ac_ext >&5
26375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26377
{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_bigendian" >&5
26378
echo "${ECHO_T}$ac_cv_c_fpu_bigendian" >&6; }
26379
case $ac_cv_c_fpu_bigendian in
26382
cat >>confdefs.h <<\_ACEOF
26383
#define FPU_WORDS_BIGENDIAN 1
26389
cat >>confdefs.h <<\_ACEOF
26390
#define FPU_WORDS_BIGENDIAN 0
26395
{ echo "$as_me:$LINENO: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&5
26396
echo "$as_me: WARNING: Unable to determine FPU endianess, some features may not be available in this build" >&2;}
26400
ac_config_files="$ac_config_files libclamunrar/Makefile libclamunrar_iface/Makefile libclamav/Makefile clamscan/Makefile database/Makefile docs/Makefile clamd/Makefile clamdscan/Makefile clamav-milter/Makefile freshclam/Makefile sigtool/Makefile clamconf/Makefile etc/Makefile Makefile clamav-config libclamav.pc docs/man/clamav-milter.8 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"
26174
26402
cat >confcache <<\_ACEOF
26175
26403
# This file is a shell script that caches the results of configure