autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solaris -R check fails


From: Pavel Roskin
Subject: Re: Solaris -R check fails
Date: Mon, 30 Oct 2000 12:26:43 -0500 (EST)

Hello, Bob!

> checking for X... libraries /usr/openwin/lib, headers  /usr/openwin/include
> checking whether -R must be followed by a space... cat: cannot open conftest.c
> cat: cannot open conftest.c
> neither works

Well, it appears that AC_LINK_IFELSE doesn't have a good default for the
empty first argument. I don't know whether AC_LINK_IFELSE should be fixed
or the way how it's called in AC_PATH_XTRA:

AC_LINK_IFELSE([], ac_R_nospace=yes, ac_R_nospace=no)

But since AC_LINK_IFELSE with the first empty argument is broken it's
probably better to fix it anyway.

ChangeLog:
        * acgeneral.m4 (_AC_LINK_IFELSE): Always create the test source.
        Default to AC_LANG_PROGRAM() if the first argument is empty.

________________________
Index: acgeneral.m4
--- acgeneral.m4        Mon Oct 30 09:39:35 2000
+++ acgeneral.m4        Mon Oct 30 12:19:45 2000
@@ -3422,7 +3422,7 @@
 # Try to link PROGRAM.
 # This macro can be used during the selection of a compiler.
 define([_AC_LINK_IFELSE],
-[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+[AC_LANG_CONFTEST([m4_default([$1], [AC_LANG_PROGRAM()])])
 rm -f conftest.$ac_objext conftest$ac_exeext
 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   m4_default([$2], :)
________________________

Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]