autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] A better (?) _AC_EXEEXT


From: Akim Demaille
Subject: Re: [PATCH] A better (?) _AC_EXEEXT
Date: 11 Oct 2000 13:37:31 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Lars" == Lars J Aas <address@hidden> writes:

Lars> Note that the above described "-e" option is a completely
Lars> different option from the "-ef" option.  When finding the
Lars> exeext, I also believe it is unproblematic to do so on the build
Lars> system, regardless of whether you cross-compile or not...  The
Lars> question still remains; is the "-ef" option universally
Lars> supported?

Thanks Lars, I completely missed this point.  I really read `-ef' as
`-e -f', which makes no sense anyway :)

Now with your remark in mind, given the snippet which uses it

+  if test conftest -ef conftest.exe; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi

I think it is OK to use it, since the fall back is TRT.  The only
problem is with error messages from test, so I'd propose:

+  if (test conftest -ef conftest.exe) >/dev/null 2>&1; then
+    # Prefer .exe over empty suffix.
+    ac_cv_exeext=.exe
+  else
+    ac_cv_exeext=
+  fi



reply via email to

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