Mercurial > dropbear
comparison configure @ 1849:d34f50b7b9fd
Add configure --enable-werror argument
This should be used instead of putting -Werror in CFLAGS
before configure, as -Werror interferes with conftests.
Update github actions to use that.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 19 Oct 2021 12:16:20 +0800 |
parents | df7bfd2f7d45 |
children | 2b3a8026a6ce |
comparison
equal
deleted
inserted
replaced
1848:84b664071c7d | 1849:d34f50b7b9fd |
---|---|
695 ac_subst_files='' | 695 ac_subst_files='' |
696 ac_user_opts=' | 696 ac_user_opts=' |
697 enable_option_checking | 697 enable_option_checking |
698 enable_static | 698 enable_static |
699 enable_harden | 699 enable_harden |
700 enable_werror | |
700 enable_largefile | 701 enable_largefile |
701 with_zlib | 702 with_zlib |
702 enable_zlib | 703 enable_zlib |
703 with_pam | 704 with_pam |
704 enable_pam | 705 enable_pam |
1352 --disable-option-checking ignore unrecognized --enable/--with options | 1353 --disable-option-checking ignore unrecognized --enable/--with options |
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1355 --enable-static Build static binaries | 1356 --enable-static Build static binaries |
1356 --disable-harden Don't set hardened build flags | 1357 --disable-harden Don't set hardened build flags |
1358 --enable-werror Set -Werror when building | |
1357 --disable-largefile omit support for large files | 1359 --disable-largefile omit support for large files |
1358 --disable-zlib Don't include zlib support | 1360 --disable-zlib Don't include zlib support |
1359 --enable-pam Try to include PAM support | 1361 --enable-pam Try to include PAM support |
1360 --disable-openpty Don't use openpty, use alternative method | 1362 --disable-openpty Don't use openpty, use alternative method |
1361 --disable-syslog Don't include syslog support | 1363 --disable-syslog Don't include syslog support |
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: Source directory Mercurial base revision $hgrev" >&5 | 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: Source directory Mercurial base revision $hgrev" >&5 |
2377 $as_echo "$as_me: Source directory Mercurial base revision $hgrev" >&6;} | 2379 $as_echo "$as_me: Source directory Mercurial base revision $hgrev" >&6;} |
2378 fi | 2380 fi |
2379 | 2381 |
2380 ORIGCFLAGS="$CFLAGS" | 2382 ORIGCFLAGS="$CFLAGS" |
2383 LATE_CFLAGS="" | |
2381 # Checks for programs. | 2384 # Checks for programs. |
2382 ac_ext=c | 2385 ac_ext=c |
2383 ac_cpp='$CPP $CPPFLAGS' | 2386 ac_cpp='$CPP $CPPFLAGS' |
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3505 } | 3508 } |
3506 | 3509 |
3507 fi | 3510 fi |
3508 | 3511 |
3512 # Check whether --enable-werror was given. | |
3513 if test "${enable_werror+set}" = set; then : | |
3514 enableval=$enable_werror; | |
3515 if test "x$enableval" = "xyes"; then | |
3516 # -Werror shouldn't be set when configure runs tests. | |
3517 # We add it to the Makefile's CFLAGS | |
3518 LATE_CFLAGS+="$LATE_CFLAGS -Werror" | |
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling -Werror" >&5 | |
3520 $as_echo "$as_me: Enabling -Werror" >&6;} | |
3521 fi | |
3522 | |
3523 fi | |
3524 | |
3525 | |
3509 # large file support is useful for scp | 3526 # large file support is useful for scp |
3510 # Check whether --enable-largefile was given. | 3527 # Check whether --enable-largefile was given. |
3511 if test "${enable_largefile+set}" = set; then : | 3528 if test "${enable_largefile+set}" = set; then : |
3512 enableval=$enable_largefile; | 3529 enableval=$enable_largefile; |
3513 fi | 3530 fi |
7437 | 7454 |
7438 if test $BUNDLED_LIBTOM = 1 ; then | 7455 if test $BUNDLED_LIBTOM = 1 ; then |
7439 (cd $srcdir; find libtomcrypt -type d) | xargs mkdir -pv | 7456 (cd $srcdir; find libtomcrypt -type d) | xargs mkdir -pv |
7440 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" | 7457 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" |
7441 fi | 7458 fi |
7459 | |
7460 # flags that should be set in Makefile but not for configure tests | |
7461 CFLAGS="$CFLAGS $LATE_CFLAGS" | |
7442 | 7462 |
7443 ac_config_headers="$ac_config_headers config.h" | 7463 ac_config_headers="$ac_config_headers config.h" |
7444 | 7464 |
7445 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES test/Makefile" | 7465 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES test/Makefile" |
7446 | 7466 |