43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
--- a/configure 2010-07-04 10:04:47.000000000 +0530
|
|
+++ b/configure 2010-07-04 10:04:41.000000000 +0530
|
|
@@ -5,7 +5,8 @@
|
|
CXX="g++"
|
|
enable_lcms="no"
|
|
enable_openmp="no"
|
|
-CFLAGS="-O4 -I. -w $CFLAGS"
|
|
+CFLAGS_DEFAULT="-O4 -w"
|
|
+CFLAGS_ADD="-I."
|
|
LDFLAGS=
|
|
DESTDIR=""
|
|
PREFIX="/usr/local"
|
|
@@ -121,14 +122,14 @@
|
|
if [ "$enable_lcms" = "yes" ]; then
|
|
echo "yes"
|
|
check_lib lcms cmsErrorAction $lcms_libs
|
|
- CFLAGS="$CFLAGS -DUSE_LCMS -I$lcms_headers"
|
|
+ CFLAGS_DEFAULT="$CFLAGS_DEFAULT -DUSE_LCMS -I$lcms_headers"
|
|
else
|
|
echo "no"
|
|
fi
|
|
|
|
printf "Enable openmp support... "
|
|
if [ "$enable_openmp" = "yes" ]; then
|
|
- CFLAGS="$CFLAGS -fopenmp"
|
|
+ CFLAGS_DEFAULT="$CFLAGS_DEFAULT -fopenmp"
|
|
echo "yes"
|
|
else
|
|
echo "no"
|
|
@@ -141,7 +142,11 @@
|
|
|
|
echo "CC = $CC" >> Makefile
|
|
echo "CXX = $CXX" >> Makefile
|
|
-echo "CFLAGS = $CFLAGS" >> Makefile
|
|
+if [ -z "$CFLAGS" ]; then
|
|
+ echo "CFLAGS = $CFLAGS_ADD $CFLAGS_DEFAULT" >> Makefile
|
|
+else
|
|
+ echo "CFLAGS = $CFLAGS_ADD $CFLAGS" >> Makefile
|
|
+fi
|
|
echo "CXXFLAGS = \$(CFLAGS)" >> Makefile
|
|
echo "LDFLAGS = $LDFLAGS" >> Makefile
|
|
echo "DESTDIR = $DESTDIR" >> Makefile
|