diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-15 12:56:19 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-15 12:56:19 +0000 |
commit | 2938f34c9a3b46e18a99e542089a72be4623a8e6 (patch) | |
tree | 2b39aa266dc56867503f198d79ecbd2fdc3b6d87 /configure | |
parent | b961ab7bae4f984f12ce12da6c1b48ce9e43699e (diff) | |
download | mpfr-2938f34c9a3b46e18a99e542089a72be4623a8e6.tar.gz |
Added some warning flags for GCC.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@866 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 75 |
1 files changed, 39 insertions, 36 deletions
@@ -1068,11 +1068,15 @@ echo "configure:1067: checking Mach type" >&5 echo "$ac_t""$MACHTYPE" 1>&6 +if test -n "$GCC"; then + CFLAGS="$CFLAGS -Wall -Wno-implicit -Wmissing-prototypes" +fi + MISCFLAGS='$<' case $OS_TYPE in HP-UX*) echo $ac_n "checking for main in -lM""... $ac_c" 1>&6 -echo "configure:1076: checking for main in -lM" >&5 +echo "configure:1080: checking for main in -lM" >&5 ac_lib_var=`echo M'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1080,14 +1084,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lM $LIBS" cat > conftest.$ac_ext <<EOF -#line 1084 "configure" +#line 1088 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1117,7 +1121,7 @@ fi SunOS*) MISCFLAGS="trunc.c" echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:1121: checking for main in -lm" >&5 +echo "configure:1125: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1125,14 +1129,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1129 "configure" +#line 1133 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1162,7 +1166,7 @@ fi ;; Linux*) echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:1166: checking for main in -lm" >&5 +echo "configure:1170: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1170,14 +1174,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1174 "configure" +#line 1178 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1216,7 +1220,7 @@ EOF fi;; IRIX64) echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:1220: checking for main in -lm" >&5 +echo "configure:1224: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1224,14 +1228,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1228 "configure" +#line 1232 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1266,7 +1270,7 @@ fi fi;; OSF*) echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:1270: checking for main in -lm" >&5 +echo "configure:1274: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1274,14 +1278,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1278 "configure" +#line 1282 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1323,7 +1327,7 @@ EOF ;; *) echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:1327: checking for main in -lm" >&5 +echo "configure:1331: checking for main in -lm" >&5 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1331,14 +1335,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1335 "configure" +#line 1339 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1367,10 +1371,9 @@ fi ;; esac - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1374: checking how to run the C preprocessor" >&5 +echo "configure:1377: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1385,13 +1388,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 1389 "configure" +#line 1392 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1402,13 +1405,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 1406 "configure" +#line 1409 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1419,13 +1422,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 1423 "configure" +#line 1426 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1454,17 +1457,17 @@ if test "$with_gmp_include" then ac_safe=`echo "$with_gmp_include/gmp-impl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $with_gmp_include/gmp-impl.h""... $ac_c" 1>&6 -echo "configure:1458: checking for $with_gmp_include/gmp-impl.h" >&5 +echo "configure:1461: checking for $with_gmp_include/gmp-impl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1463 "configure" +#line 1466 "configure" #include "confdefs.h" #include <$with_gmp_include/gmp-impl.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1489,17 +1492,17 @@ fi else ac_safe=`echo "gmp-impl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for gmp-impl.h""... $ac_c" 1>&6 -echo "configure:1493: checking for gmp-impl.h" >&5 +echo "configure:1496: checking for gmp-impl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1498 "configure" +#line 1501 "configure" #include "confdefs.h" #include <gmp-impl.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1530,7 +1533,7 @@ fi if ` test "$with_gmp_lib" ` then echo $ac_n "checking gmp library""... $ac_c" 1>&6 -echo "configure:1534: checking gmp library" >&5 +echo "configure:1537: checking gmp library" >&5 if test -r "$with_gmp_lib/libgmp.a" then LDADD="$LDADD $with_gmp_lib/libgmp.a" @@ -1540,7 +1543,7 @@ echo "configure:1534: checking gmp library" >&5 echo "$ac_t""yes" 1>&6 else echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 -echo "configure:1544: checking for main in -lgmp" >&5 +echo "configure:1547: checking for main in -lgmp" >&5 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1548,14 +1551,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lgmp $LIBS" cat > conftest.$ac_ext <<EOF -#line 1552 "configure" +#line 1555 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else |