Auto merged

2004/03/10 09:20:50+00:00 cantab.net!aia21
Use AC_GNU_SOURCE instead of doing it manually.

(Logical change 1.309)
edge.strict_endians
cantab.net!aia21 2004-03-10 09:21:53 +00:00
parent 728eff0614
commit e325efce76
2 changed files with 39 additions and 44 deletions

72
configure vendored
View File

@ -2113,14 +2113,6 @@ else
fi
# Enable GNU extensions on systems that have them.
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
# For djgpp support. (Note: This needs to be before AC_PROG_CC.)
case "$target" in
*-*-*djgpp)
@ -3795,7 +3787,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3798 "configure"' > conftest.$ac_ext
echo '#line 3790 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -5292,7 +5284,7 @@ fi
# Provide some information about the compiler.
echo "$as_me:5295:" \
echo "$as_me:5287:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@ -6297,11 +6289,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6300: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6292: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6304: \$? = $ac_status" >&5
echo "$as_me:6296: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -6529,11 +6521,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6532: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6536: \$? = $ac_status" >&5
echo "$as_me:6528: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -6596,11 +6588,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6599: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6591: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:6603: \$? = $ac_status" >&5
echo "$as_me:6595: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -8615,7 +8607,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 8618 "configure"
#line 8610 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -8713,7 +8705,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 8716 "configure"
#line 8708 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -10845,11 +10837,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:10848: $lt_compile\"" >&5)
(eval echo "\"\$as_me:10840: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:10852: \$? = $ac_status" >&5
echo "$as_me:10844: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -10912,11 +10904,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:10915: $lt_compile\"" >&5)
(eval echo "\"\$as_me:10907: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:10919: \$? = $ac_status" >&5
echo "$as_me:10911: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -12162,7 +12154,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 12165 "configure"
#line 12157 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -12260,7 +12252,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 12263 "configure"
#line 12255 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -13082,11 +13074,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13085: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13077: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:13089: \$? = $ac_status" >&5
echo "$as_me:13081: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -13149,11 +13141,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13152: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13144: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:13156: \$? = $ac_status" >&5
echo "$as_me:13148: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -15096,11 +15088,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15099: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15091: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:15103: \$? = $ac_status" >&5
echo "$as_me:15095: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -15328,11 +15320,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15331: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15323: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:15335: \$? = $ac_status" >&5
echo "$as_me:15327: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -15395,11 +15387,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15398: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:15402: \$? = $ac_status" >&5
echo "$as_me:15394: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -17414,7 +17406,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 17417 "configure"
#line 17409 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -17512,7 +17504,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 17515 "configure"
#line 17507 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -18518,6 +18510,14 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Use GNU extensions if available.(AIA)
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
# Enable large file support.
# Check whether --enable-largefile or --disable-largefile was given.

View File

@ -84,14 +84,6 @@ AC_ARG_ENABLE(really-static,
)
AM_CONDITIONAL(REALLYSTATIC, test "$enable_really_static" = yes)
# Enable GNU extensions on systems that have them.
AH_VERBATIM([_GNU_SOURCE],
[/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif])
AC_DEFINE(_GNU_SOURCE)
# For djgpp support. (Note: This needs to be before AC_PROG_CC.)
case "$target" in
*-*-*djgpp)
@ -108,6 +100,9 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
# Use GNU extensions if available.(AIA)
AC_GNU_SOURCE
# Enable large file support.
AC_SYS_LARGEFILE