diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1998-10-29 17:57:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1998-10-29 17:57:52 +0000 |
commit | 579b72c5de07ff8a17f51a9144ea4d1538ad3028 (patch) | |
tree | 023cc1ce589137eff805207b2a64f8c127bcb1ba | |
parent | 9e38dcfd43036dfcafd2044b182fe29e07dab3d6 (diff) | |
download | postgresql-579b72c5de07ff8a17f51a9144ea4d1538ad3028.tar.gz postgresql-579b72c5de07ff8a17f51a9144ea4d1538ad3028.zip |
Run AC_PROG_GCC_TRADITIONAL only when running AC_PROG_CC,
ie, not when user specifies --with-CC. This corrects a scripting error
that I'm surprised hasn't been reported more often. Moving the macro call
to the earlier point in the script is correct anyway: if -traditional is needed,
it should get added to CFLAGS before we start using the compiler for
other tests.
-rw-r--r-- | src/configure.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure.in b/src/configure.in index 861cc77f304..eb7a23bab88 100644 --- a/src/configure.in +++ b/src/configure.in @@ -335,7 +335,10 @@ AC_ARG_WITH(CC, esac CC="$withval" ], - [ AC_PROG_CC]) + [ + AC_PROG_CC + AC_PROG_GCC_TRADITIONAL +]) if test "$CC" = "gcc" then @@ -346,11 +349,9 @@ fi AC_SUBST(CC_VERSION) CPPFLAGS="$CPPFLAGS $PGSQL_CPPFLAGS" -export CPPFLAGS echo "- setting CPPFLAGS=$CPPFLAGS" LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS" -export LDFLAGS echo "- setting LDFLAGS=$LDFLAGS" dnl Checks for programs. @@ -668,7 +669,6 @@ main() { AC_MSG_RESULT(assuming not on target machine)) dnl Checks for library functions. -AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_VPRINTF |