X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=config%2Flibtool.m4;h=f6e426dbdf106c8621dd79c56c7c959906c29c9b;hb=2082b3745a7165d10788d55c5b6c609a8d39d729;hp=de4bd25637caeb01bd548be947b0779f205f166e;hpb=3daa17173b32c712e6ccdac0f5385b131e351742;p=postgresql diff --git a/config/libtool.m4 b/config/libtool.m4 index de4bd25637..f6e426dbdf 100644 --- a/config/libtool.m4 +++ b/config/libtool.m4 @@ -28,16 +28,16 @@ # ... bunch of stuff removed here ... -# AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN(AC_PROG_LD, +# PGAC_PROG_LD - find the path to the GNU or non-GNU linker +AC_DEFUN([PGAC_PROG_LD], [AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +[ --with-gnu-ld assume the C compiler uses GNU ld [[default=no]]], test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl dnl ###not for PostgreSQL### AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld -if test "$ac_cv_prog_gcc" = yes; then +if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in @@ -102,10 +102,10 @@ else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_PROG_LD_GNU +PGAC_PROG_LD_GNU ]) -AC_DEFUN(AC_PROG_LD_GNU, +AC_DEFUN([PGAC_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LD -v 2>&1 &5; then