|
1 | 1 | dnl Process this file with autoconf to produce a configure script.
|
2 |
| -dnl $Header: /cvsroot/pgsql/configure.in,v 1.293 2003/10/03 03:08:14 pgsql Exp $ |
| 2 | +dnl $Header: /cvsroot/pgsql/configure.in,v 1.294 2003/10/09 03:20:33 momjian Exp $ |
3 | 3 | dnl
|
4 | 4 | dnl Developers, please strive to achieve this order:
|
5 | 5 | dnl
|
@@ -238,6 +238,10 @@ AC_PROG_CC([$pgac_cc_list])
|
238 | 238 | if test "$ac_env_CFLAGS_set" = set; then
|
239 | 239 | CFLAGS=$ac_env_CFLAGS_value
|
240 | 240 | fi
|
| 241 | +# configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc |
| 242 | +if test x"$CFLAGS" = x""; then |
| 243 | +CFLAGS="-O" |
| 244 | +fi |
241 | 245 | if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
|
242 | 246 | CFLAGS="$CFLAGS -g"
|
243 | 247 | fi
|
|