diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-12-12 22:38:46 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-12-12 22:38:46 -0800 |
commit | ccf6c78422c227778c5e6103413849803aa7b158 (patch) | |
tree | 56cf2d5881ea42d72900f93b3efc9249dacf2574 | |
parent | 8e493b2eaf671e962a55e13c17bf42c51a3fd2bd (diff) | |
download | txr-ccf6c78422c227778c5e6103413849803aa7b158.tar.gz txr-ccf6c78422c227778c5e6103413849803aa7b158.tar.bz2 txr-ccf6c78422c227778c5e6103413849803aa7b158.zip |
* configure (config_flags): Variable removed. This was more trouble than it
was worth, and only solved problems caused by not checking that the test
program was made all the way to an executable.
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | configure | 14 |
2 files changed, 15 insertions, 5 deletions
@@ -1,5 +1,11 @@ 2013-12-12 Kaz Kylheku <kaz@kylheku.com> + * configure (config_flags): Variable removed. This was more trouble than it + was worth, and only solved problems caused by not checking that the test + program was made all the way to an executable. + +2013-12-12 Kaz Kylheku <kaz@kylheku.com> + * configure: Fix warnings in test cases for HAVE_FORK_STUFF and HAVE_DAEMON. @@ -84,7 +84,6 @@ opt_flags=-O2 lang_flags='-ansi -D_XOPEN_SOURCE=2' diag_flags='-Wall -Wmissing-prototypes -Wstrict-prototypes' debug_flags=-g -config_flags=' -Werror' # special: used only during configure inline= platform_flags= remove_flags= @@ -591,7 +590,7 @@ NM := $nm OPT_FLAGS := $opt_flags LANG_FLAGS := $lang_flags -DIAG_FLAGS := $diag_flags$config_flags +DIAG_FLAGS := $diag_flags DBG_FLAGS := $debug_flags PLATFORM_FLAGS := $platform_flags REMOVE_FLAGS := $remove_flags @@ -1046,7 +1045,7 @@ $inline int func(void) } ! rm -f conftest2 - if ! $make conftest2 > conftest.err 2>&1 ; then + if ! $make conftest2 > conftest.err 2>&1 || ! [ -x conftest2 ] ; then continue fi break @@ -1161,9 +1160,14 @@ cat > conftest.c <<! #include <sys/stat.h> struct stat s; + +int main(void) +{ + return 0; +} ! rm -f conftest -if ! $make conftest.o > conftest.err 2>&1; then +if ! $make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then printf "no\n" else printf "yes\n" @@ -1533,7 +1537,7 @@ fi # printf "Regenerating config.make ... " -config_flags= + if [ -n "$need_svid_source" ] ; then lang_flags="$lang_flags -D_SVID_SOURCE" fi |