Commit b15a9f63 by Ralf Wildenhues Committed by Ralf Wildenhues

configure.ac: Update gthr-default.h lazily, to avoid unneeded library rebuilds.

gcc/
	* configure.ac: Update gthr-default.h lazily, to avoid unneeded
	library rebuilds.
	* configure: Regenerate.

From-SVN: r136780
parent a6d9bc9d
2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Update gthr-default.h lazily, to avoid unneeded
library rebuilds.
* configure: Regenerate.
2008-06-13 Eric Botcazou <ebotcazou@adacore.com> 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/36520 PR middle-end/36520
......
...@@ -13253,8 +13253,12 @@ fi ...@@ -13253,8 +13253,12 @@ fi
# Make gthr-default.h if we have a thread file. # Make gthr-default.h if we have a thread file.
gthread_flags= gthread_flags=
if test $thread_file != single; then if test $thread_file != single; then
rm -f gthr-default.h echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
rm -f gthr-default.h-t
else
mv -f gthr-default.h-t gthr-default.h
fi
gthread_flags=-DHAVE_GTHR_DEFAULT gthread_flags=-DHAVE_GTHR_DEFAULT
fi fi
...@@ -14666,13 +14670,13 @@ if test "${lt_cv_nm_interface+set}" = set; then ...@@ -14666,13 +14670,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
else else
lt_cv_nm_interface="BSD nm" lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:14669: $ac_compile\"" >&5) (eval echo "\"\$as_me:14673: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err) (eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5 cat conftest.err >&5
(eval echo "\"\$as_me:14672: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval echo "\"\$as_me:14676: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5 cat conftest.err >&5
(eval echo "\"\$as_me:14675: output\"" >&5) (eval echo "\"\$as_me:14679: output\"" >&5)
cat conftest.out >&5 cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin" lt_cv_nm_interface="MS dumpbin"
...@@ -15727,7 +15731,7 @@ ia64-*-hpux*) ...@@ -15727,7 +15731,7 @@ ia64-*-hpux*)
;; ;;
*-*-irix6*) *-*-irix6*)
# Find out which ABI we are using. # Find out which ABI we are using.
echo '#line 15730 "configure"' > conftest.$ac_ext echo '#line 15734 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
...@@ -16347,11 +16351,11 @@ else ...@@ -16347,11 +16351,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16350: $lt_compile\"" >&5) (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:16354: \$? = $ac_status" >&5 echo "$as_me:16358: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -16669,11 +16673,11 @@ else ...@@ -16669,11 +16673,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16672: $lt_compile\"" >&5) (eval echo "\"\$as_me:16676: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:16676: \$? = $ac_status" >&5 echo "$as_me:16680: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
...@@ -16774,11 +16778,11 @@ else ...@@ -16774,11 +16778,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16777: $lt_compile\"" >&5) (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:16781: \$? = $ac_status" >&5 echo "$as_me:16785: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -16829,11 +16833,11 @@ else ...@@ -16829,11 +16833,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16832: $lt_compile\"" >&5) (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&5 cat out/conftest.err >&5
echo "$as_me:16836: \$? = $ac_status" >&5 echo "$as_me:16840: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
...@@ -19626,7 +19630,7 @@ else ...@@ -19626,7 +19630,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 19629 "configure" #line 19633 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -19726,7 +19730,7 @@ else ...@@ -19726,7 +19730,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 19729 "configure" #line 19733 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
......
...@@ -1368,8 +1368,12 @@ fi ...@@ -1368,8 +1368,12 @@ fi
# Make gthr-default.h if we have a thread file. # Make gthr-default.h if we have a thread file.
gthread_flags= gthread_flags=
if test $thread_file != single; then if test $thread_file != single; then
rm -f gthr-default.h echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
rm -f gthr-default.h-t
else
mv -f gthr-default.h-t gthr-default.h
fi
gthread_flags=-DHAVE_GTHR_DEFAULT gthread_flags=-DHAVE_GTHR_DEFAULT
fi fi
AC_SUBST(gthread_flags) AC_SUBST(gthread_flags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment