diff --git a/configure b/configure index ccda0f96c..3a37d9558 100755 --- a/configure +++ b/configure @@ -674,6 +674,13 @@ HARDEN_LDFLAGS HARDEN_CFLAGS MKPASSWDLIBS IRCDLIBS +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC PKGCONFIG GUNZIP GMAKE @@ -683,13 +690,6 @@ OPENSSLPATH TOUCH CP RM -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC BUILDDIR target_alias host_alias @@ -2592,6 +2592,365 @@ cat >>confdefs.h <<_ACEOF _ACEOF +# Extract the first word of "rm", so it can be a program name with args. +set dummy rm; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_RM+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $RM in + [\\/]* | ?:[\\/]*) + ac_cv_path_RM="$RM" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +RM=$ac_cv_path_RM +if test -n "$RM"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 +$as_echo "$RM" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "cp", so it can be a program name with args. +set dummy cp; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_CP+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $CP in + [\\/]* | ?:[\\/]*) + ac_cv_path_CP="$CP" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +CP=$ac_cv_path_CP +if test -n "$CP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 +$as_echo "$CP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "touch", so it can be a program name with args. +set dummy touch; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_TOUCH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $TOUCH in + [\\/]* | ?:[\\/]*) + ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +TOUCH=$ac_cv_path_TOUCH +if test -n "$TOUCH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 +$as_echo "$TOUCH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "openssl", so it can be a program name with args. +set dummy openssl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_OPENSSLPATH+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $OPENSSLPATH in + [\\/]* | ?:[\\/]*) + ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +OPENSSLPATH=$ac_cv_path_OPENSSLPATH +if test -n "$OPENSSLPATH"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5 +$as_echo "$OPENSSLPATH" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "install", so it can be a program name with args. +set dummy install; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_INSTALL+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $INSTALL in + [\\/]* | ?:[\\/]*) + ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INSTALL=$ac_cv_path_INSTALL +if test -n "$INSTALL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmake", so it can be a program name with args. +set dummy gmake; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MAKER+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MAKER"; then + ac_cv_prog_MAKER="$MAKER" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MAKER="gmake" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" +fi +fi +MAKER=$ac_cv_prog_MAKER +if test -n "$MAKER"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5 +$as_echo "$MAKER" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmake", so it can be a program name with args. +set dummy gmake; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GMAKE+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GMAKE in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GMAKE=$ac_cv_path_GMAKE +if test -n "$GMAKE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5 +$as_echo "$GMAKE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gunzip", so it can be a program name with args. +set dummy gunzip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_GUNZIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $GUNZIP in + [\\/]* | ?:[\\/]*) + ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +GUNZIP=$ac_cv_path_GUNZIP +if test -n "$GUNZIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 +$as_echo "$GUNZIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKGCONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKGCONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKGCONFIG=$ac_cv_path_PKGCONFIG +if test -n "$PKGCONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 +$as_echo "$PKGCONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3381,572 +3740,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$ac_cv_c_compiler_gnu" = "yes"; then -CFLAGS="$CFLAGS -funsigned-char" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a working -pipe" >&5 -$as_echo_n "checking if gcc has a working -pipe... " >&6; } -if ${ac_cv_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -pipe" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_pipe="yes" -else - ac_cv_pipe="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe" >&5 -$as_echo "$ac_cv_pipe" >&6; } -if test "$ac_cv_pipe" = "yes"; then -CFLAGS="-pipe $CFLAGS" -fi -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -fno-strict-aliasing" >&5 -$as_echo_n "checking if the compiler has a working -fno-strict-aliasing... " >&6; } -if ${ac_cv_nsa+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -fno-strict-aliasing" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_nsa="yes" -else - ac_cv_nsa="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nsa" >&5 -$as_echo "$ac_cv_nsa" >&6; } -if test "$ac_cv_nsa" = "yes"; then -CFLAGS="$CFLAGS -fno-strict-aliasing" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-pointer-sign" >&5 -$as_echo_n "checking if the compiler has a working -Wno-pointer-sign... " >&6; } -if ${ac_cv_nps+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-pointer-sign" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_nps="yes" -else - ac_cv_nps="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nps" >&5 -$as_echo "$ac_cv_nps" >&6; } -if test "$ac_cv_nps" = "yes"; then -CFLAGS="$CFLAGS -Wno-pointer-sign" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-invalid-source-encoding" >&5 -$as_echo_n "checking if the compiler has a working -Wno-invalid-source-encoding... " >&6; } -if ${ac_cv_nise+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-invalid-source-encoding" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_nise="yes" -else - ac_cv_nise="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nise" >&5 -$as_echo "$ac_cv_nise" >&6; } -if test "$ac_cv_nise" = "yes"; then -CFLAGS="$CFLAGS -Wno-invalid-source-encoding" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-zero-length" >&5 -$as_echo_n "checking if the compiler has a working -Wno-format-zero-length... " >&6; } -if ${ac_cv_nfzl+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-format-zero-length" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_nfzl="yes" -else - ac_cv_nfzl="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nfzl" >&5 -$as_echo "$ac_cv_nfzl" >&6; } -if test "$ac_cv_nfzl" = "yes"; then -CFLAGS="$CFLAGS -Wno-format-zero-length" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler has a working -Wno-format-truncation" >&5 -$as_echo_n "checking if the compiler has a working -Wno-format-truncation... " >&6; } -if ${ac_cv_nft+:} false; then : - $as_echo_n "(cached) " >&6 -else - - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-format-truncation -Werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_nft="yes" -else - ac_cv_nft="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_cflags" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nft" >&5 -$as_echo "$ac_cv_nft" >&6; } -if test "$ac_cv_nft" = "yes"; then -CFLAGS="$CFLAGS -Wno-format-truncation" -fi - -# Extract the first word of "rm", so it can be a program name with args. -set dummy rm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_RM+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $RM in - [\\/]* | ?:[\\/]*) - ac_cv_path_RM="$RM" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -RM=$ac_cv_path_RM -if test -n "$RM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 -$as_echo "$RM" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "cp", so it can be a program name with args. -set dummy cp; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_CP+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $CP in - [\\/]* | ?:[\\/]*) - ac_cv_path_CP="$CP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -CP=$ac_cv_path_CP -if test -n "$CP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 -$as_echo "$CP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "touch", so it can be a program name with args. -set dummy touch; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TOUCH+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TOUCH in - [\\/]* | ?:[\\/]*) - ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -TOUCH=$ac_cv_path_TOUCH -if test -n "$TOUCH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 -$as_echo "$TOUCH" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "openssl", so it can be a program name with args. -set dummy openssl; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_OPENSSLPATH+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $OPENSSLPATH in - [\\/]* | ?:[\\/]*) - ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -OPENSSLPATH=$ac_cv_path_OPENSSLPATH -if test -n "$OPENSSLPATH"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5 -$as_echo "$OPENSSLPATH" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "install", so it can be a program name with args. -set dummy install; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_INSTALL+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $INSTALL in - [\\/]* | ?:[\\/]*) - ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -INSTALL=$ac_cv_path_INSTALL -if test -n "$INSTALL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "gmake", so it can be a program name with args. -set dummy gmake; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MAKER+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MAKER"; then - ac_cv_prog_MAKER="$MAKER" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_MAKER="gmake" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" -fi -fi -MAKER=$ac_cv_prog_MAKER -if test -n "$MAKER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5 -$as_echo "$MAKER" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "gmake", so it can be a program name with args. -set dummy gmake; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GMAKE+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GMAKE in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -GMAKE=$ac_cv_path_GMAKE -if test -n "$GMAKE"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5 -$as_echo "$GMAKE" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "gunzip", so it can be a program name with args. -set dummy gunzip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_GUNZIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $GUNZIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -GUNZIP=$ac_cv_path_GUNZIP -if test -n "$GUNZIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 -$as_echo "$GUNZIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PKGCONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKGCONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -PKGCONFIG=$ac_cv_path_PKGCONFIG -if test -n "$PKGCONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 -$as_echo "$PKGCONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5 $as_echo_n "checking for crypt in -ldescrypt... " >&6; } @@ -4950,6 +4743,1326 @@ CC="$saved_CC" CXX="$saved_CXX" LD="$saved_LD" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5 +$as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; } +if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -fno-strict-aliasing" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___fno_strict_aliasing=yes +else + ax_cv_check_cflags__Werror___fno_strict_aliasing=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5 +$as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; } +if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5 +$as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; } +if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -fno-strict-aliasing" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___fno_strict_aliasing=yes +else + ax_cv_check_cflags__Werror___fno_strict_aliasing=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5 +$as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; } +if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then : + CFLAGS="$CFLAGS -fno-strict-aliasing" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +CFLAGS="$CFLAGS -funsigned-char" + + +CFLAGS="$CFLAGS -Wall" + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5 +$as_echo_n "checking whether C compiler accepts -Wextra... " >&6; } +if ${ax_cv_check_cflags__Werror___Wextra+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wextra" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wextra=yes +else + ax_cv_check_cflags__Werror___Wextra=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5 +$as_echo_n "checking whether C compiler accepts -Wextra... " >&6; } +if ${ax_cv_check_cflags__Werror___Wextra+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wextra" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wextra=yes +else + ax_cv_check_cflags__Werror___Wextra=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then : + CFLAGS="$CFLAGS -Wextra" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5 +$as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; } +if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Waggregate-return" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Waggregate_return=yes +else + ax_cv_check_cflags__Werror___Waggregate_return=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; } +if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5 +$as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; } +if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Waggregate-return" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Waggregate_return=yes +else + ax_cv_check_cflags__Werror___Waggregate_return=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; } +if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then : + CFLAGS="$CFLAGS -Waggregate-return" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5 +$as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; } +if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wduplicated-cond" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wduplicated_cond=yes +else + ax_cv_check_cflags__Werror___Wduplicated_cond=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5 +$as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; } +if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wduplicated-cond" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wduplicated_cond=yes +else + ax_cv_check_cflags__Werror___Wduplicated_cond=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then : + CFLAGS="$CFLAGS -Wduplicated-cond" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5 +$as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; } +if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wduplicated-branches" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wduplicated_branches=yes +else + ax_cv_check_cflags__Werror___Wduplicated_branches=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5 +$as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; } +if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wduplicated-branches" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wduplicated_branches=yes +else + ax_cv_check_cflags__Werror___Wduplicated_branches=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then : + CFLAGS="$CFLAGS -Wduplicated-branches" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-pointer-sign" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-pointer-sign... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_pointer_sign+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-pointer-sign" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_pointer_sign=yes +else + ax_cv_check_cflags__Werror___Wno_pointer_sign=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_pointer_sign" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_pointer_sign" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_pointer_sign" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-pointer-sign" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-pointer-sign... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_pointer_sign+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-pointer-sign" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_pointer_sign=yes +else + ax_cv_check_cflags__Werror___Wno_pointer_sign=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_pointer_sign" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_pointer_sign" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_pointer_sign" = xyes; then : + CFLAGS="$CFLAGS -Wno-pointer-sign" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-invalid-source-encoding" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-invalid-source-encoding... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_invalid_source_encoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-invalid-source-encoding" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_invalid_source_encoding=yes +else + ax_cv_check_cflags__Werror___Wno_invalid_source_encoding=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-invalid-source-encoding" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-invalid-source-encoding... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_invalid_source_encoding+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-invalid-source-encoding" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_invalid_source_encoding=yes +else + ax_cv_check_cflags__Werror___Wno_invalid_source_encoding=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_invalid_source_encoding" = xyes; then : + CFLAGS="$CFLAGS -Wno-invalid-source-encoding" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-zero-length" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-format-zero-length... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_format_zero_length+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-format-zero-length" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_format_zero_length=yes +else + ax_cv_check_cflags__Werror___Wno_format_zero_length=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_format_zero_length" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_format_zero_length" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_format_zero_length" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-zero-length" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-format-zero-length... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_format_zero_length+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-format-zero-length" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_format_zero_length=yes +else + ax_cv_check_cflags__Werror___Wno_format_zero_length=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_format_zero_length" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_format_zero_length" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_format_zero_length" = xyes; then : + CFLAGS="$CFLAGS -Wno-format-zero-length" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-truncation" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-format-truncation... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_format_truncation+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-format-truncation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_format_truncation=yes +else + ax_cv_check_cflags__Werror___Wno_format_truncation=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_format_truncation" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_format_truncation" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_format_truncation" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-truncation" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-format-truncation... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_format_truncation+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-format-truncation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_format_truncation=yes +else + ax_cv_check_cflags__Werror___Wno_format_truncation=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_format_truncation" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_format_truncation" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_format_truncation" = xyes; then : + CFLAGS="$CFLAGS -Wno-format-truncation" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-unused... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_unused+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-unused" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_unused=yes +else + ax_cv_check_cflags__Werror___Wno_unused=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_unused" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_unused" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_unused" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-unused... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_unused+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-unused" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_unused=yes +else + ax_cv_check_cflags__Werror___Wno_unused=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_unused" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_unused" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_unused" = xyes; then : + CFLAGS="$CFLAGS -Wno-unused" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-parameter" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-unused-parameter... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_unused_parameter+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-unused-parameter" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_unused_parameter=yes +else + ax_cv_check_cflags__Werror___Wno_unused_parameter=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_unused_parameter" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_unused_parameter" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_unused_parameter" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-unused-parameter" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-unused-parameter... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_unused_parameter+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-unused-parameter" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_unused_parameter=yes +else + ax_cv_check_cflags__Werror___Wno_unused_parameter=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_unused_parameter" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_unused_parameter" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_unused_parameter" = xyes; then : + CFLAGS="$CFLAGS -Wno-unused-parameter" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-char-subscripts" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-char-subscripts... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_char_subscripts+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-char-subscripts" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_char_subscripts=yes +else + ax_cv_check_cflags__Werror___Wno_char_subscripts=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_char_subscripts" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_char_subscripts" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_char_subscripts" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-char-subscripts" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-char-subscripts... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_char_subscripts+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-char-subscripts" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_char_subscripts=yes +else + ax_cv_check_cflags__Werror___Wno_char_subscripts=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_char_subscripts" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_char_subscripts" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_char_subscripts" = xyes; then : + CFLAGS="$CFLAGS -Wno-char-subscripts" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-sign-compare" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-sign-compare... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_sign_compare+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-sign-compare" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_sign_compare=yes +else + ax_cv_check_cflags__Werror___Wno_sign_compare=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_sign_compare" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_sign_compare" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_sign_compare" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-sign-compare" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-sign-compare... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_sign_compare+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-sign-compare" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_sign_compare=yes +else + ax_cv_check_cflags__Werror___Wno_sign_compare=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_sign_compare" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_sign_compare" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_sign_compare" = xyes; then : + CFLAGS="$CFLAGS -Wno-sign-compare" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-address" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-address... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_address+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-address" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_address=yes +else + ax_cv_check_cflags__Werror___Wno_address=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_address" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_address" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_address" = xyes; then : + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-address" >&5 +$as_echo_n "checking whether C compiler accepts -Wno-address... " >&6; } +if ${ax_cv_check_cflags__Werror___Wno_address+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wno-address" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags__Werror___Wno_address=yes +else + ax_cv_check_cflags__Werror___Wno_address=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wno_address" >&5 +$as_echo "$ax_cv_check_cflags__Werror___Wno_address" >&6; } +if test x"$ax_cv_check_cflags__Werror___Wno_address" = xyes; then : + CFLAGS="$CFLAGS -Wno-address" +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +else + : +fi + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5 diff --git a/configure.ac b/configure.ac index f27a04236..9d525ee13 100644 --- a/configure.ac +++ b/configure.ac @@ -45,79 +45,6 @@ AC_DEFINE_UNQUOTED([UNREAL_VERSION_MINOR], [$UNREAL_VERSION_MINOR], [Minor versi UNREAL_VERSION_SUFFIX=["-dev"] AC_DEFINE_UNQUOTED([UNREAL_VERSION_SUFFIX], ["$UNREAL_VERSION_SUFFIX"], [Version suffix such as a beta marker or release candidate marker. (e.g.: -rcX for unrealircd-3.2.9-rcX)]) -AC_PROG_CC -if test "$ac_cv_prog_gcc" = "yes"; then -CFLAGS="$CFLAGS -funsigned-char" -AC_CACHE_CHECK(if gcc has a working -pipe, ac_cv_pipe, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -pipe" - AC_TRY_COMPILE(,, ac_cv_pipe="yes", ac_cv_pipe="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_pipe" = "yes"; then -CFLAGS="-pipe $CFLAGS" -fi -fi - -dnl UnrealIRCd might not be strict-aliasing safe at this time -AC_CACHE_CHECK(if the compiler has a working -fno-strict-aliasing, ac_cv_nsa, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -fno-strict-aliasing" - AC_TRY_COMPILE(,, ac_cv_nsa="yes", ac_cv_nsa="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_nsa" = "yes"; then -CFLAGS="$CFLAGS -fno-strict-aliasing" -fi - -dnl Pointer signedness warnings are really a pain and 99.9% of the time -dnl they are of absolutely no use whatsoever. IMO the person who decided -dnl to enable this without -Wall should be shot on sight. -AC_CACHE_CHECK(if the compiler has a working -Wno-pointer-sign, ac_cv_nps, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-pointer-sign" - AC_TRY_COMPILE(,, ac_cv_nps="yes", ac_cv_nps="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_nps" = "yes"; then -CFLAGS="$CFLAGS -Wno-pointer-sign" -fi - -dnl This is purely for charsys.c... I like it so we can easily read -dnl this for non-utf8. We can remove it once we ditch non-utf8 some day -dnl of course, or decide to ignore me and encode them. -AC_CACHE_CHECK(if the compiler has a working -Wno-invalid-source-encoding, ac_cv_nise, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-invalid-source-encoding" - AC_TRY_COMPILE(,, ac_cv_nise="yes", ac_cv_nise="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_nise" = "yes"; then -CFLAGS="$CFLAGS -Wno-invalid-source-encoding" -fi - -dnl Pffff.. -AC_CACHE_CHECK(if the compiler has a working -Wno-format-zero-length, ac_cv_nfzl, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-format-zero-length" - AC_TRY_COMPILE(,, ac_cv_nfzl="yes", ac_cv_nfzl="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_nfzl" = "yes"; then -CFLAGS="$CFLAGS -Wno-format-zero-length" -fi - -dnl More and more and more.... -AC_CACHE_CHECK(if the compiler has a working -Wno-format-truncation, ac_cv_nft, [ - save_cflags="$CFLAGS" - CFLAGS="$CFLAGS -Wno-format-truncation -Werror" - AC_TRY_COMPILE(,, ac_cv_nft="yes", ac_cv_nft="no") - CFLAGS="$save_cflags" -]) -if test "$ac_cv_nft" = "yes"; then -CFLAGS="$CFLAGS -Wno-format-truncation" -fi - AC_PATH_PROG(RM,rm) AC_PATH_PROG(CP,cp) AC_PATH_PROG(TOUCH,touch) @@ -224,6 +151,68 @@ CXX="$saved_CXX" LD="$saved_LD" dnl HARDENING END +dnl UnrealIRCd might not be strict-aliasing safe at this time +check_cc_cxx_flag([-fno-strict-aliasing], [CFLAGS="$CFLAGS -fno-strict-aliasing"]) + +dnl Previously -funsigned-char was in a config check. It would always +dnl be enabled with gcc and clang. We now unconditionally enable it, +dnl skipping the check. This will cause an error if someone uses a +dnl non-gcc/non-clang compiler that does not support -funsigned-char +dnl which is good. After all, we really depend on it. +dnl UnrealIRCd should never be compiled without char being unsigned. +CFLAGS="$CFLAGS -funsigned-char" + +dnl Compiler -W checks... + +dnl We should be able to turn this on unconditionally: +CFLAGS="$CFLAGS -Wall" + +dnl More warnings (if the compiler supports it): +check_cc_cxx_flag([-Wextra], [CFLAGS="$CFLAGS -Wextra"]) +check_cc_cxx_flag([-Waggregate-return], [CFLAGS="$CFLAGS -Waggregate-return"]) +dnl The following few are more experimental, if they have false positives we'll have +dnl to disable them: +dnl Can't use this, too bad: check_cc_cxx_flag([-Wlogical-op], [CFLAGS="$CFLAGS -Wlogical-op"]) +check_cc_cxx_flag([-Wduplicated-cond], [CFLAGS="$CFLAGS -Wduplicated-cond"]) +check_cc_cxx_flag([-Wduplicated-branches], [CFLAGS="$CFLAGS -Wduplicated-branches"]) + +dnl And now to filter out certain warnings: + +dnl Pointer signedness warnings are really a pain and 99.9% of the time +dnl they are of absolutely no use whatsoever. IMO the person who decided +dnl to enable this without -Wall should be shot on sight. +check_cc_cxx_flag([-Wno-pointer-sign], [CFLAGS="$CFLAGS -Wno-pointer-sign"]) + +dnl This is purely for charsys.c... I like it so we can easily read +dnl this for non-utf8. We can remove it once we ditch non-utf8 some day +dnl of course, or decide to ignore me and encode them. +check_cc_cxx_flag([-Wno-invalid-source-encoding], [CFLAGS="$CFLAGS -Wno-invalid-source-encoding"]) + +check_cc_cxx_flag([-Wno-format-zero-length], [CFLAGS="$CFLAGS -Wno-format-zero-length"]) + +check_cc_cxx_flag([-Wno-format-truncation], [CFLAGS="$CFLAGS -Wno-format-truncation"]) + +dnl While it can be useful to occasionally to compile with warnings about +dnl unused variables and parameters, we often 'think ahead' when coding things +dnl so they may be useless now but not later. Similarly, for variables, we +dnl don't always care about a variable that may still be present in a build +dnl without DEBUGMODE. Unused variables are optimized out anyway. +check_cc_cxx_flag([-Wno-unused], [CFLAGS="$CFLAGS -Wno-unused"]) +check_cc_cxx_flag([-Wno-unused-parameter], [CFLAGS="$CFLAGS -Wno-unused-parameter"]) + +dnl We use this and this warning is meaningless since 'char' is always unsigned +dnl in UnrealIRCd compiles (-funsigned-char). +check_cc_cxx_flag([-Wno-char-subscripts], [CFLAGS="$CFLAGS -Wno-char-subscripts"]) + +check_cc_cxx_flag([-Wno-sign-compare], [CFLAGS="$CFLAGS -Wno-sign-compare"]) + +dnl This one fails with ircstrdup(var, staticstring) +dnl Shame we have to turn it off completely... +check_cc_cxx_flag([-Wno-address], [CFLAGS="$CFLAGS -Wno-address"]) + +dnl End of -W... compiler checks. + + dnl module checking based on Hyb7's module checking code AC_DEFUN([AC_ENABLE_DYN], [ diff --git a/src/channel.c b/src/channel.c index 567d0ec9d..f7f55f244 100644 --- a/src/channel.c +++ b/src/channel.c @@ -80,7 +80,7 @@ aCtab cFlagTab[] = { {MODE_BAN, 'b', 1, 1}, {MODE_EXCEPT, 'e', 1, 1}, /* exception ban */ {MODE_INVEX, 'I', 1, 1}, /* invite-only exception */ - {0x0, 0x0, 0x0} + {0x0, 0x0, 0x0, 0x0} }; char cmodestring[512]; diff --git a/src/dbuf.c b/src/dbuf.c index aa64525db..f2ca71244 100644 --- a/src/dbuf.c +++ b/src/dbuf.c @@ -169,7 +169,7 @@ int dbuf_getmsg(dbuf *dyn, char *buf) } else switch (phase) { - case 0: phase = 1; + case 0: phase = 1; /* FALLTHROUGH */ case 1: if (line_bytes++ < BUFSIZE - 2) *buf++ = c; break; diff --git a/src/modules/chanmodes/floodprot.c b/src/modules/chanmodes/floodprot.c index 0ad78298c..a9cced4bc 100644 --- a/src/modules/chanmodes/floodprot.c +++ b/src/modules/chanmodes/floodprot.c @@ -502,7 +502,7 @@ invalidsyntax: return EX_DENY; } - /* falltrough -- should not be used */ + /* fallthrough -- should not be used */ return EX_DENY; } diff --git a/src/modules/chanmodes/link.c b/src/modules/chanmodes/link.c index 789498c45..b8939e63c 100644 --- a/src/modules/chanmodes/link.c +++ b/src/modules/chanmodes/link.c @@ -107,7 +107,7 @@ int cmodeL_is_ok(aClient *sptr, aChannel *chptr, char mode, char *para, int type return EX_ALLOW; } - /* falltrough -- should not be used */ + /* fallthrough -- should not be used */ return EX_DENY; } diff --git a/src/modules/m_chghost.c b/src/modules/m_chghost.c index 4058a7123..cc2eade70 100644 --- a/src/modules/m_chghost.c +++ b/src/modules/m_chghost.c @@ -32,6 +32,7 @@ ModuleHeader MOD_HEADER(m_chghost) "4.2", /* Version */ "/chghost", /* Short description of module */ "3.2-b8-1", + NULL }; MOD_INIT(m_chghost) diff --git a/src/modules/m_mode.c b/src/modules/m_mode.c index 40cc187e8..e031c0305 100644 --- a/src/modules/m_mode.c +++ b/src/modules/m_mode.c @@ -821,6 +821,7 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param, if (!is_halfop(cptr, chptr)) /* htrig will take care of halfop override notices */ opermode = 1; } + goto process_listmode; case MODE_CHANPROT: REQUIRE_PARAMETER() /* not uline, not server, not chanowner, not an samode, not -a'ing yourself... */ @@ -835,12 +836,13 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param, if (!is_halfop(cptr, chptr)) /* htrig will take care of halfop override notices */ opermode = 1; } - + goto process_listmode; case MODE_HALFOP: case MODE_CHANOP: case MODE_VOICE: REQUIRE_PARAMETER() +process_listmode: if (!(who = find_chasing(cptr, param, &chasing))) break; if (!who->user) @@ -1656,6 +1658,7 @@ CMD_FUNC(_m_umode) set_snomask(sptr, parv[3]); goto def; } + break; case 'o': case 'O': if(sptr->from->flags & FLAGS_QUARANTINE) diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c index 3a8394868..43f213d35 100644 --- a/src/modules/m_tkl.c +++ b/src/modules/m_tkl.c @@ -3052,7 +3052,7 @@ static int comp_with_mask(void *addr, void *dest, u_int mask) if (memcmp(addr, dest, mask / 8) == 0) { int n = mask / 8; - int m = ((-1) << (8 - (mask % 8))); + int m = (0xffff << (8 - (mask % 8))); if (mask % 8 == 0 || (((u_char *) addr)[n] & m) == (((u_char *) dest)[n] & m)) { return (1); diff --git a/src/modules/webirc.c b/src/modules/webirc.c index 33d4875df..20afada39 100644 --- a/src/modules/webirc.c +++ b/src/modules/webirc.c @@ -474,7 +474,7 @@ int webirc_local_pass(aClient *sptr, char *password) return dowebirc(sptr, ip, host, NULL); } - /* falltrough if not in webirc block.. */ + /* fallthrough if not in webirc block.. */ } return 0; /* not webirc */ diff --git a/src/parse.c b/src/parse.c index 6fc1d84a8..b15af533b 100644 --- a/src/parse.c +++ b/src/parse.c @@ -69,7 +69,7 @@ aClient *find_client(char *name, aClient *cptr) return hash_find_client(name, NULL); } -aClient inline *find_nickserv(char *name, aClient *cptr) +aClient *find_nickserv(char *name, aClient *cptr) { if (name) cptr = hash_find_nickserver(name, cptr); @@ -91,7 +91,7 @@ aClient inline *find_nickserv(char *name, aClient *cptr) ** the old. 'name' is now assumed to be a null terminated ** string. */ -aClient inline *find_server(char *name, aClient *cptr) +aClient *find_server(char *name, aClient *cptr) { if (name) { @@ -105,7 +105,7 @@ aClient inline *find_server(char *name, aClient *cptr) } -aClient inline *find_name(char *name, aClient *cptr) +aClient *find_name(char *name, aClient *cptr) { aClient *c2ptr = cptr; diff --git a/src/s_bsd.c b/src/s_bsd.c index e54c56ad4..d7509c41a 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -1341,7 +1341,7 @@ void read_packet(int fd, int revents, void *data) if (length <= 0) { - if (length < 0 && (ERRNO == P_EWOULDBLOCK || ERRNO == P_EAGAIN || ERRNO == P_EINTR)) + if (length < 0 && ((ERRNO == P_EWOULDBLOCK) || (ERRNO == P_EAGAIN) || (ERRNO == P_EINTR))) return; if (IsServer(cptr) || cptr->serv) /* server or outgoing connection */ diff --git a/src/s_misc.c b/src/s_misc.c index ef5971adf..26f832602 100644 --- a/src/s_misc.c +++ b/src/s_misc.c @@ -114,7 +114,7 @@ SpamfilterTargetTable spamfiltertargettable[] = { { SPAMF_USER, 'u', "user", "NICK" }, { SPAMF_AWAY, 'a', "away", "AWAY" }, { SPAMF_TOPIC, 't', "topic", "TOPIC" }, - { 0, 0, 0 } + { 0, 0, 0, 0 } }; diff --git a/src/socket.c b/src/socket.c index 00a09b8e7..a589ce75f 100644 --- a/src/socket.c +++ b/src/socket.c @@ -92,6 +92,7 @@ int deliver_it(aClient *cptr, char *str, int len, int *want_read) case SSL_ERROR_SSL: if (ERRNO == P_EAGAIN) break; + /* FALLTHROUGH */ default: return -1; /* hm.. why was this 0?? we have an error! */ }