Use $PATH_SEPARATOR like the rest of the autoconf code, instead of

hardwiring IFS=: when searching paths.
REL8_0_STABLE
Tom Lane 21 years ago
parent baace400c7
commit 3a6f1313b5
  1. 6
      config/programs.m4
  2. 10024
      configure
  3. 6
      configure.in

@ -1,4 +1,4 @@
# $PostgreSQL: pgsql/config/programs.m4,v 1.14 2004/05/19 22:12:30 momjian Exp $ # $PostgreSQL: pgsql/config/programs.m4,v 1.15 2004/09/02 15:39:55 tgl Exp $
# PGAC_PATH_FLEX # PGAC_PATH_FLEX
@ -14,8 +14,9 @@ if test -n "$FLEX"; then
pgac_cv_path_flex=$FLEX pgac_cv_path_flex=$FLEX
else else
pgac_save_IFS=$IFS pgac_save_IFS=$IFS
IFS=: IFS=$PATH_SEPARATOR
for pgac_dir in $PATH; do for pgac_dir in $PATH; do
IFS=$pgac_save_IFS
if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
pgac_dir=`pwd` pgac_dir=`pwd`
fi fi
@ -37,7 +38,6 @@ else
fi fi
done done
done done
IFS=$pgac_save_IFS
rm -f conftest.l rm -f conftest.l
: ${pgac_cv_path_flex=no} : ${pgac_cv_path_flex=no}
fi fi

10024
configure vendored

File diff suppressed because it is too large Load Diff

@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.374 2004/08/31 04:08:33 pgsql Exp $ dnl $PostgreSQL: pgsql/configure.in,v 1.375 2004/09/02 15:39:56 tgl Exp $
dnl dnl
dnl Developers, please strive to achieve this order: dnl Developers, please strive to achieve this order:
dnl dnl
@ -326,7 +326,7 @@ PGAC_ARG_BOOL(enable, cassert, no, [ --enable-cassert enable assertion c
# Include directories # Include directories
# #
ac_save_IFS=$IFS ac_save_IFS=$IFS
IFS="${IFS}:" IFS="${IFS}${PATH_SEPARATOR}"
# SRCH_INC comes from the template file # SRCH_INC comes from the template file
for dir in $with_includes $SRCH_INC; do for dir in $with_includes $SRCH_INC; do
if test -d "$dir"; then if test -d "$dir"; then
@ -343,7 +343,7 @@ AC_SUBST(INCLUDES)
# Library directories # Library directories
# #
ac_save_IFS=$IFS ac_save_IFS=$IFS
IFS="${IFS}:" IFS="${IFS}${PATH_SEPARATOR}"
# LIBRARY_DIRS comes from command line, SRCH_LIB from template file. # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
for dir in $LIBRARY_DIRS $SRCH_LIB; do for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then if test -d "$dir"; then

Loading…
Cancel
Save