git-svn: trunk@3653
aCaB authored on 2008/02/19 05:50:19... | ... |
@@ -1,9 +1,13 @@ |
1 |
+Mon Feb 18 20:48:41 CET 2008 (acab) |
|
2 |
+----------------------------------- |
|
3 |
+ * configure: make fpu endianess manually configurable |
|
4 |
+ |
|
1 | 5 |
Mon Feb 18 19:45:06 EET 2008 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav/textnorm.c: initialiaze each field |
4 | 8 |
scanners.c: decrease limit on scanscript |
5 | 9 |
|
6 |
-Mon Feb 18 12:39:39 CET 2008 /acab) |
|
10 |
+Mon Feb 18 12:39:39 CET 2008 (acab) |
|
7 | 11 |
----------------------------------- |
8 | 12 |
* libclamav/nsis: Use system zconf.h to allow building on HPUX |
9 | 13 |
|
... | ... |
@@ -1525,6 +1525,7 @@ Optional Packages: |
1525 | 1525 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1526 | 1526 |
--with-pic try to use only PIC/non-PIC objects [default=use |
1527 | 1527 |
both] |
1528 |
+ --with-fpu-words-bigendian=(yes/no/auto) specify FPU endianess (default=auto) |
|
1528 | 1529 |
--with-iconv supports iconv() (default=auto) |
1529 | 1530 |
--with-zlib=DIR path to directory containing zlib library (default= |
1530 | 1531 |
/usr/local or /usr if not found in /usr/local) |
... | ... |
@@ -4763,7 +4764,7 @@ ia64-*-hpux*) |
4763 | 4763 |
;; |
4764 | 4764 |
*-*-irix6*) |
4765 | 4765 |
# Find out which ABI we are using. |
4766 |
- echo '#line 4766 "configure"' > conftest.$ac_ext |
|
4766 |
+ echo '#line 4767 "configure"' > conftest.$ac_ext |
|
4767 | 4767 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4768 | 4768 |
(eval $ac_compile) 2>&5 |
4769 | 4769 |
ac_status=$? |
... | ... |
@@ -6853,11 +6854,11 @@ else |
6853 | 6853 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6854 | 6854 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6855 | 6855 |
-e 's:$: $lt_compiler_flag:'` |
6856 |
- (eval echo "\"\$as_me:6856: $lt_compile\"" >&5) |
|
6856 |
+ (eval echo "\"\$as_me:6857: $lt_compile\"" >&5) |
|
6857 | 6857 |
(eval "$lt_compile" 2>conftest.err) |
6858 | 6858 |
ac_status=$? |
6859 | 6859 |
cat conftest.err >&5 |
6860 |
- echo "$as_me:6860: \$? = $ac_status" >&5 |
|
6860 |
+ echo "$as_me:6861: \$? = $ac_status" >&5 |
|
6861 | 6861 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
6862 | 6862 |
# The compiler can only warn and ignore the option if not recognized |
6863 | 6863 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -7143,11 +7144,11 @@ else |
7143 | 7143 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7144 | 7144 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7145 | 7145 |
-e 's:$: $lt_compiler_flag:'` |
7146 |
- (eval echo "\"\$as_me:7146: $lt_compile\"" >&5) |
|
7146 |
+ (eval echo "\"\$as_me:7147: $lt_compile\"" >&5) |
|
7147 | 7147 |
(eval "$lt_compile" 2>conftest.err) |
7148 | 7148 |
ac_status=$? |
7149 | 7149 |
cat conftest.err >&5 |
7150 |
- echo "$as_me:7150: \$? = $ac_status" >&5 |
|
7150 |
+ echo "$as_me:7151: \$? = $ac_status" >&5 |
|
7151 | 7151 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7152 | 7152 |
# The compiler can only warn and ignore the option if not recognized |
7153 | 7153 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -7247,11 +7248,11 @@ else |
7247 | 7247 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7248 | 7248 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7249 | 7249 |
-e 's:$: $lt_compiler_flag:'` |
7250 |
- (eval echo "\"\$as_me:7250: $lt_compile\"" >&5) |
|
7250 |
+ (eval echo "\"\$as_me:7251: $lt_compile\"" >&5) |
|
7251 | 7251 |
(eval "$lt_compile" 2>out/conftest.err) |
7252 | 7252 |
ac_status=$? |
7253 | 7253 |
cat out/conftest.err >&5 |
7254 |
- echo "$as_me:7254: \$? = $ac_status" >&5 |
|
7254 |
+ echo "$as_me:7255: \$? = $ac_status" >&5 |
|
7255 | 7255 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7256 | 7256 |
then |
7257 | 7257 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -9624,7 +9625,7 @@ else |
9624 | 9624 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9625 | 9625 |
lt_status=$lt_dlunknown |
9626 | 9626 |
cat > conftest.$ac_ext <<EOF |
9627 |
-#line 9627 "configure" |
|
9627 |
+#line 9628 "configure" |
|
9628 | 9628 |
#include "confdefs.h" |
9629 | 9629 |
|
9630 | 9630 |
#if HAVE_DLFCN_H |
... | ... |
@@ -9724,7 +9725,7 @@ else |
9724 | 9724 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9725 | 9725 |
lt_status=$lt_dlunknown |
9726 | 9726 |
cat > conftest.$ac_ext <<EOF |
9727 |
-#line 9727 "configure" |
|
9727 |
+#line 9728 "configure" |
|
9728 | 9728 |
#include "confdefs.h" |
9729 | 9729 |
|
9730 | 9730 |
#if HAVE_DLFCN_H |
... | ... |
@@ -10822,7 +10823,17 @@ echo $ECHO_N "checking whether FPU byte ordering is bigendian... $ECHO_C" >&6; } |
10822 | 10822 |
if test "${ac_cv_c_fpu_bigendian+set}" = set; then |
10823 | 10823 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10824 | 10824 |
else |
10825 |
- ac_cv_c_fpu_bigendian=unknown |
|
10825 |
+ ac_cv_c_fpu_bigendian=auto |
|
10826 |
+ |
|
10827 |
+# Check whether --with-fpu-words-bigendian was given. |
|
10828 |
+if test "${with_fpu_words_bigendian+set}" = set; then |
|
10829 |
+ withval=$with_fpu_words_bigendian; ac_cv_c_fpu_bigendian=$with_fpu_words_bigendian |
|
10830 |
+else |
|
10831 |
+ ac_cv_c_fpu_bigendian=auto |
|
10832 |
+fi |
|
10833 |
+ |
|
10834 |
+ |
|
10835 |
+if test $ac_cv_c_fpu_bigendian = auto; then |
|
10826 | 10836 |
cat >conftest.$ac_ext <<_ACEOF |
10827 | 10837 |
/* confdefs.h. */ |
10828 | 10838 |
_ACEOF |
... | ... |
@@ -10865,6 +10876,9 @@ fi |
10865 | 10865 |
|
10866 | 10866 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10867 | 10867 |
fi |
10868 |
+ |
|
10869 |
+ |
|
10870 |
+fi |
|
10868 | 10871 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_fpu_bigendian" >&5 |
10869 | 10872 |
echo "${ECHO_T}$ac_cv_c_fpu_bigendian" >&6; } |
10870 | 10873 |
case $ac_cv_c_fpu_bigendian in |
... | ... |
@@ -592,7 +592,12 @@ dnl FPU_WORDS_BIGENDIAN undefined when endianes cannot be determined |
592 | 592 |
|
593 | 593 |
AC_DEFUN([AC_C_FPU_BIGENDIAN], |
594 | 594 |
[AC_CACHE_CHECK([whether FPU byte ordering is bigendian], [ac_cv_c_fpu_bigendian], |
595 |
-[ac_cv_c_fpu_bigendian=unknown |
|
595 |
+[ac_cv_c_fpu_bigendian=auto |
|
596 |
+AC_ARG_WITH(fpu-words-bigendian, |
|
597 |
+[ --with-fpu-words-bigendian=(yes/no/auto) specify FPU endianess (default=auto)], |
|
598 |
+ac_cv_c_fpu_bigendian=$with_fpu_words_bigendian, ac_cv_c_fpu_bigendian=auto) |
|
599 |
+ |
|
600 |
+if test $ac_cv_c_fpu_bigendian = auto; then |
|
596 | 601 |
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[double d = 3815911171354501045744583353695226502220105394563506259449467213186125718792664588210662403287568710818873279842508553551908601408568128557088985172985437412593385138085986771664896.0;]])],[ |
597 | 602 |
if ${GREP-grep} emmeelle conftest.$ac_objext >/dev/null 2>&1 ; then |
598 | 603 |
ac_cv_c_fpu_bigendian=yes |
... | ... |
@@ -600,7 +605,10 @@ fi |
600 | 600 |
if ${GREP-grep} elleemme conftest.$ac_objext >/dev/null 2>&1 ; then |
601 | 601 |
ac_cv_c_fpu_bigendian=no |
602 | 602 |
fi |
603 |
-])]) |
|
603 |
+]) |
|
604 |
+fi |
|
605 |
+ |
|
606 |
+]) |
|
604 | 607 |
case $ac_cv_c_fpu_bigendian in |
605 | 608 |
yes) |
606 | 609 |
AC_DEFINE([FPU_WORDS_BIGENDIAN], 1, [FPU byte ordering is big endian]) |