@@ -15964,97 +15964,6 @@ if test "$ac_res" != no; then
15964
15964
fi
15965
15965
15966
15966
15967
- { $as_echo "$as_me:$LINENO: checking CXXFLAGS for maximum warnings" >&5
15968
- $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
15969
- if test "${ac_cv_cxxflags_warn_all+set}" = set; then
15970
- $as_echo_n "(cached) " >&6
15971
- else
15972
- ac_cv_cxxflags_warn_all="no, unknown"
15973
-
15974
- ac_ext=cpp
15975
- ac_cpp='$CXXCPP $CPPFLAGS'
15976
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15977
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15978
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15979
-
15980
- ac_save_CXXFLAGS="$CXXFLAGS"
15981
- for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
15982
- do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15983
- cat >conftest.$ac_ext <<_ACEOF
15984
- /* confdefs.h. */
15985
- _ACEOF
15986
- cat confdefs.h >>conftest.$ac_ext
15987
- cat >>conftest.$ac_ext <<_ACEOF
15988
- /* end confdefs.h. */
15989
-
15990
- int
15991
- main ()
15992
- {
15993
- return 0;
15994
- ;
15995
- return 0;
15996
- }
15997
- _ACEOF
15998
- rm -f conftest.$ac_objext
15999
- if { (ac_try="$ac_compile"
16000
- case "(($ac_try" in
16001
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002
- *) ac_try_echo=$ac_try;;
16003
- esac
16004
- eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16005
- $as_echo "$ac_try_echo") >&5
16006
- (eval "$ac_compile") 2>conftest.er1
16007
- ac_status=$?
16008
- grep -v '^ *+' conftest.er1 >conftest.err
16009
- rm -f conftest.er1
16010
- cat conftest.err >&5
16011
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012
- (exit $ac_status); } && {
16013
- test -z "$ac_cxx_werror_flag" ||
16014
- test ! -s conftest.err
16015
- } && test -s conftest.$ac_objext; then
16016
- ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16017
- else
16018
- $as_echo "$as_me: failed program was:" >&5
16019
- sed 's/^/| /' conftest.$ac_ext >&5
16020
-
16021
-
16022
- fi
16023
-
16024
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025
- done
16026
- CXXFLAGS="$ac_save_CXXFLAGS"
16027
- ac_ext=cpp
16028
- ac_cpp='$CXXCPP $CPPFLAGS'
16029
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16032
-
16033
-
16034
- fi
16035
- { $as_echo "$as_me:$LINENO: result: $ac_cv_cxxflags_warn_all" >&5
16036
- $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16037
- case ".$ac_cv_cxxflags_warn_all" in
16038
- .ok|.ok,*) ;;
16039
- .|.no|.no,*)
16040
- ;;
16041
- *)
16042
- if echo " $CXXFLAGS " | grep " $ac_cv_cxxflags_warn_all " 2>&1 >/dev/null
16043
- then { ($as_echo "$as_me:$LINENO: : CXXFLAGS does contain \$ac_cv_cxxflags_warn_all") >&5
16044
- (: CXXFLAGS does contain $ac_cv_cxxflags_warn_all) 2>&5
16045
- ac_status=$?
16046
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047
- (exit $ac_status); }
16048
- else { ($as_echo "$as_me:$LINENO: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\"") >&5
16049
- (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16050
- ac_status=$?
16051
- $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052
- (exit $ac_status); }
16053
- CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16054
- fi
16055
- ;;
16056
- esac
16057
-
16058
15967
16059
15968
16060
15969
{ $as_echo "$as_me:$LINENO: checking the C++ compiler vendor" >&5
@@ -16300,6 +16209,101 @@ $as_echo "$ac_cv_cxx_compiler_vendor" >&6; }
16300
16209
16301
16210
16302
16211
16212
+ if test "x$enable_warnings" = "xyes"; then
16213
+ { $as_echo "$as_me:$LINENO: checking CXXFLAGS for maximum warnings" >&5
16214
+ $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16215
+ if test "${ac_cv_cxxflags_warn_all+set}" = set; then
16216
+ $as_echo_n "(cached) " >&6
16217
+ else
16218
+ ac_cv_cxxflags_warn_all="no, unknown"
16219
+
16220
+ ac_ext=cpp
16221
+ ac_cpp='$CXXCPP $CPPFLAGS'
16222
+ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16225
+
16226
+ ac_save_CXXFLAGS="$CXXFLAGS"
16227
+ for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16228
+ do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16229
+ cat >conftest.$ac_ext <<_ACEOF
16230
+ /* confdefs.h. */
16231
+ _ACEOF
16232
+ cat confdefs.h >>conftest.$ac_ext
16233
+ cat >>conftest.$ac_ext <<_ACEOF
16234
+ /* end confdefs.h. */
16235
+
16236
+ int
16237
+ main ()
16238
+ {
16239
+ return 0;
16240
+ ;
16241
+ return 0;
16242
+ }
16243
+ _ACEOF
16244
+ rm -f conftest.$ac_objext
16245
+ if { (ac_try="$ac_compile"
16246
+ case "(($ac_try" in
16247
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248
+ *) ac_try_echo=$ac_try;;
16249
+ esac
16250
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16251
+ $as_echo "$ac_try_echo") >&5
16252
+ (eval "$ac_compile") 2>conftest.er1
16253
+ ac_status=$?
16254
+ grep -v '^ *+' conftest.er1 >conftest.err
16255
+ rm -f conftest.er1
16256
+ cat conftest.err >&5
16257
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258
+ (exit $ac_status); } && {
16259
+ test -z "$ac_cxx_werror_flag" ||
16260
+ test ! -s conftest.err
16261
+ } && test -s conftest.$ac_objext; then
16262
+ ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16263
+ else
16264
+ $as_echo "$as_me: failed program was:" >&5
16265
+ sed 's/^/| /' conftest.$ac_ext >&5
16266
+
16267
+
16268
+ fi
16269
+
16270
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271
+ done
16272
+ CXXFLAGS="$ac_save_CXXFLAGS"
16273
+ ac_ext=cpp
16274
+ ac_cpp='$CXXCPP $CPPFLAGS'
16275
+ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16276
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16277
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16278
+
16279
+
16280
+ fi
16281
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_cxxflags_warn_all" >&5
16282
+ $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16283
+ case ".$ac_cv_cxxflags_warn_all" in
16284
+ .ok|.ok,*) ;;
16285
+ .|.no|.no,*)
16286
+ ;;
16287
+ *)
16288
+ if echo " $CXXFLAGS " | grep " $ac_cv_cxxflags_warn_all " 2>&1 >/dev/null
16289
+ then { ($as_echo "$as_me:$LINENO: : CXXFLAGS does contain \$ac_cv_cxxflags_warn_all") >&5
16290
+ (: CXXFLAGS does contain $ac_cv_cxxflags_warn_all) 2>&5
16291
+ ac_status=$?
16292
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293
+ (exit $ac_status); }
16294
+ else { ($as_echo "$as_me:$LINENO: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\"") >&5
16295
+ (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16296
+ ac_status=$?
16297
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298
+ (exit $ac_status); }
16299
+ CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16300
+ fi
16301
+ ;;
16302
+ esac
16303
+
16304
+ fi
16305
+
16306
+
16303
16307
case $ac_cxx_compiler_vendor in
16304
16308
gnu) if test "x$enable_warnings" = "xyes"; then
16305
16309
{ $as_echo "$as_me:$LINENO: checking CXXFLAGS for gcc -Wextra" >&5
@@ -21568,7 +21572,14 @@ _ACEOF
21568
21572
21569
21573
# Check whether --enable-threads was given.
21570
21574
if test "${enable_threads+set}" = set; then
21571
- enableval=$enable_threads;
21575
+ enableval=$enable_threads; case "${enableval}" in
21576
+ yes) : ;;
21577
+ no) : ;;
21578
+ *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-threads" >&5
21579
+ $as_echo "$as_me: error: bad value ${enableval} for --enable-threads" >&2;}
21580
+ { (exit 1); exit 1; }; } ;;
21581
+ esac
21582
+
21572
21583
else
21573
21584
enable_threads=yes
21574
21585
fi
0 commit comments