]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-04-11 Paul Eggert <eggert@twinsun.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 10 Apr 1999 21:31:12 +0000 (21:31 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 10 Apr 1999 21:31:12 +0000 (21:31 +0000)
* acgeneral.m4 (AC_CHECK_TYPE): Allow first argument to be a
shell variable.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index ea1c9ab8c0295ac1f8db95bcd18cdadc308fa895..d33504eae127ddf2d55d124761ee1114a14d9746 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-11  Paul Eggert  <eggert@twinsun.com>
+
+       * acgeneral.m4 (AC_CHECK_TYPE): Allow first argument to be a
+       shell variable.
+
 1999-04-11  Ben Elliston  <bje@cygnus.com>
 
        * acgeneral.m4 (AC_C_STRUCT_MEMBER): New macro.
index 7eccd9a2db0b57051a55b4d9a1e113bbfaca1960..196c4cbf9df5f5991c4d6d711a8f1a9decbd824e 100644 (file)
@@ -1998,10 +1998,12 @@ changequote([,]), [#include <sys/types.h>
 #if STDC_HEADERS
 #include <stdlib.h>
 #include <stddef.h>
-#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
-AC_MSG_RESULT($ac_cv_type_$1)
-if test $ac_cv_type_$1 = no; then
-  AC_DEFINE($1, $2)
+#endif], eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
+if eval "test \"`echo '$ac_cv_type_'$1`\" = yes"; then
+  AC_MSG_RESULT(yes)
+else
+  AC_MSG_RESULT(no)
+  AC_DEFINE_UNQUOTED($1, $2)
 fi
 ])
 
index 7eccd9a2db0b57051a55b4d9a1e113bbfaca1960..196c4cbf9df5f5991c4d6d711a8f1a9decbd824e 100644 (file)
@@ -1998,10 +1998,12 @@ changequote([,]), [#include <sys/types.h>
 #if STDC_HEADERS
 #include <stdlib.h>
 #include <stddef.h>
-#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
-AC_MSG_RESULT($ac_cv_type_$1)
-if test $ac_cv_type_$1 = no; then
-  AC_DEFINE($1, $2)
+#endif], eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
+if eval "test \"`echo '$ac_cv_type_'$1`\" = yes"; then
+  AC_MSG_RESULT(yes)
+else
+  AC_MSG_RESULT(no)
+  AC_DEFINE_UNQUOTED($1, $2)
 fi
 ])