Skip to content

Commit d0c1bbd

Browse files
committed
Rename AC_PROG_LD* macros to PGAC_PROG_LD*. This avoids clashes with the
macros provided by the real libtool, when other packages borrow some macros from PostgreSQL, as in the case of the ODBC driver.
1 parent 7f72fd8 commit d0c1bbd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config/libtool.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
# ... bunch of stuff removed here ...
3030

31-
# AC_PROG_LD - find the path to the GNU or non-GNU linker
32-
AC_DEFUN([AC_PROG_LD],
31+
# PGAC_PROG_LD - find the path to the GNU or non-GNU linker
32+
AC_DEFUN([PGAC_PROG_LD],
3333
[AC_ARG_WITH(gnu-ld,
3434
[ --with-gnu-ld assume the C compiler uses GNU ld [[default=no]]],
3535
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
@@ -102,10 +102,10 @@ else
102102
AC_MSG_RESULT(no)
103103
fi
104104
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
105-
AC_PROG_LD_GNU
105+
PGAC_PROG_LD_GNU
106106
])
107107

108-
AC_DEFUN([AC_PROG_LD_GNU],
108+
AC_DEFUN([PGAC_PROG_LD_GNU],
109109
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
110110
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
111111
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.367 2004/07/14 17:55:09 petere Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.368 2004/07/17 18:53:56 petere Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -525,7 +525,7 @@ AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS])
525525
AC_PROG_AWK
526526
PGAC_PATH_FLEX
527527
AC_PROG_LN_S
528-
AC_PROG_LD
528+
PGAC_PROG_LD
529529
AC_SUBST(LD)
530530
AC_SUBST(with_gnu_ld)
531531
case $host_os in sysv5*)

0 commit comments

Comments
 (0)