summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-12-01 10:47:26 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-12-13 08:08:56 +0100
commit380fa4705127fefb3d12e356ffd9e51ce0ad5358 (patch)
treee8d5ccb04a9d90caf451b84e1cb84a706c881149 /configure.ac
parent7bc7e74e4e1b7cfa88c07e42e5e3cc9b8d469b6f (diff)
Preserve client-specified CFLAGS for DG/UX
* configure.ac (CFLAGS, CXXFLAGS): Preserve C/C++ flags passed by client (DG/UX only); remove code duplication (put common flags to "dgux_spec_opts" variable).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 94b76d1..88c46a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -503,12 +503,12 @@ AC_CHECK_HEADER(sys/dg_sys_info.h,
## :GOTCHA: we do not check anything but sys/dg_sys_info.h
if test $ac_is_dgux = yes; then
+ dgux_spec_opts="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
+ CFLAGS="$dgux_spec_opts $CFLAGS"
+ CXXFLAGS="$dgux_spec_opts $CXXFLAGS"
if test "$enable_gc_debug" = "yes"; then
- CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
- CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
- else
- CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
- CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
+ CFLAGS="-g -mstandard $CFLAGS"
+ CXXFLAGS="-g -mstandard $CXXFLAGS"
fi
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)