From: Niels Möller Date: Tue, 2 Mar 2004 16:20:42 +0000 (+0100) Subject: Added workaround to get the correct $(EXEEXT)='' X-Git-Tag: nettle_1.10_release_20040305~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d388d9258c508caa08974033b9dc6f9766a99153;p=thirdparty%2Fnettle.git Added workaround to get the correct $(EXEEXT)='' when compiling with rntcl. Rev: src/nettle/ChangeLog:1.261 Rev: src/nettle/configure.ac:1.36 --- diff --git a/ChangeLog b/ChangeLog index 37e884f9..b062a2de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-02 Niels Möller + + * configure.ac: Added workaround to get the correct $(EXEEXT)='' + when compiling with rntcl. + 2004-03-02 Niels Möller * testsuite/Makefile.am (noinst_PROGRAMS): Put test program list diff --git a/configure.ac b/configure.ac index e3e56b9a..5c22814a 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,20 @@ LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \ # Checks for programs. AC_PROG_CC + +# When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks +# up the foo.exe and sets exeext to .exe. That is correct for cygwin, +# which has some kind of magic link from foo to foo.exe, but not for +# rntcl. A better check for the cygwin case would check if the +# contents of foo and foo.exe are equal; in the rntcl case, foo is a +# sh script, and foo.exe is a windows executable. + +if "x$CC" = xrntcl ; then + AC_MSG_NOTICE([Compiling with rntcl; clearing exeext]) + ac_exeext='' + ac_cv_exeext='' +fi + AC_PROG_MAKE_SET AC_PROG_RANLIB AM_PROG_CC_STDC