diff options
author | Akim Demaille <akim@epita.fr> | 1999-09-23 09:59:57 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 1999-09-23 09:59:57 +0000 |
commit | c46a290e31917833e73a6ac23e1ea01168a8cb66 (patch) | |
tree | 40665a6339408e762a6cb27b472902df12ec4021 | |
parent | 76906a83b0e061190b2541e996ef3424858beb51 (diff) | |
download | autoconf-c46a290e31917833e73a6ac23e1ea01168a8cb66.tar.gz |
1999-09-23 Akim Demaille <akim@epita.fr>
* NEWS: Document AC_ARG_VAR.
* acspecific.m4 (AC_C_LONG_DOUBLE): Avoid a needed execution by
using a pure compilation test. Excellent for cross compilation.
From Kaveh R. Ghazi.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | acspecific.m4 | 6 | ||||
-rw-r--r-- | lib/autoconf/specific.m4 | 6 |
4 files changed, 18 insertions, 7 deletions
@@ -1,3 +1,11 @@ +1999-09-23 Akim Demaille <akim@epita.fr> + + * NEWS: Document AC_ARG_VAR. + + * acspecific.m4 (AC_C_LONG_DOUBLE): Avoid a needed execution by + using a pure compilation test. Excellent for cross compilation. + From Kaveh R. Ghazi. + 1999-09-22 Akim Demaille <akim@epita.fr> * install.texi: Give emore details on envvar handling. @@ -11,6 +11,8 @@ Major changes in release 2.15: - AC_HELP_STRING To format an Autoconf macro's help string so that it looks pretty when the user executes `configure --help'. + - AC_ARG_VAR + Document and ask for the registration of an envvar. * Environment variables are kept when reconfiguring. The previous scheme to set envvar before running configure was ENV=VAL ./configure @@ -18,7 +20,8 @@ Major changes in release 2.15: it was run, therefore --recheck was run in an inconsistent environment. Now, one runs ./configure ENV=VAR - and the --recheck works correctly. + and the --recheck works correctly. Variable declared with AC_ARG_VAR + are also preserved. * Support for automatically determining a Fortran 77 compilers name-mangling scheme. New CPP macros F77_FUNC and F77_FUNC_ are provided to wrap C/C++ identifiers, thus making it easier and more diff --git a/acspecific.m4 b/acspecific.m4 index 8045651a..27f4cb28 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1978,11 +1978,11 @@ AC_DEFUN(AC_C_LONG_DOUBLE, [if test "$GCC" = yes; then ac_cv_c_long_double=yes else -AC_TRY_RUN([int main() { -/* The Stardent Vistra knows sizeof(long double), but does not support it. */ +AC_TRY_COMPILE(, +[/* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ -exit(sizeof(long double) < sizeof(double)); }], +switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;], ac_cv_c_long_double=yes, ac_cv_c_long_double=no) fi]) if test $ac_cv_c_long_double = yes; then diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 8045651a..27f4cb28 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1978,11 +1978,11 @@ AC_DEFUN(AC_C_LONG_DOUBLE, [if test "$GCC" = yes; then ac_cv_c_long_double=yes else -AC_TRY_RUN([int main() { -/* The Stardent Vistra knows sizeof(long double), but does not support it. */ +AC_TRY_COMPILE(, +[/* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ -exit(sizeof(long double) < sizeof(double)); }], +switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;], ac_cv_c_long_double=yes, ac_cv_c_long_double=no) fi]) if test $ac_cv_c_long_double = yes; then |