diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-23 17:56:20 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-23 17:56:20 -0800 |
commit | a7d759201fb53a5d632a0d178908da0248ff9cc1 (patch) | |
tree | cfd5b630324f2470039469d5962346a1c62d3f70 | |
parent | 65e6e1ac4913e82778db75f23fbd05667c23db1f (diff) | |
download | txr-a7d759201fb53a5d632a0d178908da0248ff9cc1.tar.gz txr-a7d759201fb53a5d632a0d178908da0248ff9cc1.tar.bz2 txr-a7d759201fb53a5d632a0d178908da0248ff9cc1.zip |
* configure: Bugfix in parsing configuration variables
which contain the = character.
* Makefile (conftest.o): Pass full CFLAGS to configuration test
builds. If some flags don't work with the compiler, this should
be caught.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | configure | 8 |
3 files changed, 13 insertions, 6 deletions
@@ -1,5 +1,14 @@ 2009-11-23 Kaz Kylheku <kkylheku@gmail.com> + * configure: Bugfix in parsing configuration variables + which contain the = character. + + * Makefile (conftest.o): Pass full CFLAGS to configuration test + builds. If some flags don't work with the compiler, this should + be caught. + +2009-11-23 Kaz Kylheku <kkylheku@gmail.com> + * Makefile (CFLAGS): Added -I. so current directory is first in the include search path. This is needed for finding generated header files, when building in a separate directory. @@ -109,8 +109,6 @@ config.make: conftest: conftest.c $(CC) -o $@ $^ -conftest.o: CFLAGS := $(LANG_FLAGS) - conftest.o: conftest.c conftest.syms: conftest.o @@ -54,12 +54,12 @@ while [ $# -gt 0 ] ; do val= ;; --*=* ) - var=${1%=*} + var=${1%%=*} var=${var#--} val=${1#*=} ;; --*= ) - var=${1%=*} + var=${1%%=*} var=${var#--} val= ;; --* ) @@ -67,11 +67,11 @@ while [ $# -gt 0 ] ; do val=y ;; *=* ) - var=${1%=*} + var=${1%%=*} val=${1#*=} ;; *= ) - var=${1%=*} + var=${1%%=*} val= ;; * ) |