summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-18 07:40:22 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-18 07:40:22 -0800
commitefe098695573938793f33442bec70e392b78bfb1 (patch)
tree3281f141ca07e80af274f34666fa630d2254597e
parentb52ee023673f3153950b4f07b57f7ad5eb81fb7d (diff)
downloadautoconf213-efe098695573938793f33442bec70e392b78bfb1.tar.gz
autoconf213-efe098695573938793f33442bec70e392b78bfb1.tar.bz2
autoconf213-efe098695573938793f33442bec70e392b78bfb1.zip
autoconf-2.13-exit
-rw-r--r--acgeneral.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/acgeneral.m4 b/acgeneral.m4
index 69600f8..d00872f 100644
--- a/acgeneral.m4
+++ b/acgeneral.m4
@@ -1984,12 +1984,12 @@ changequote([, ])dnl
AC_MSG_CHECKING(size of $1)
AC_CACHE_VAL(AC_CV_NAME,
[AC_TRY_RUN([#include <stdio.h>
-main()
+int main()
{
FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
+ if (!f) return(1);
fprintf(f, "%d\n", sizeof($1));
- exit(0);
+ return(0);
}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl
AC_MSG_RESULT($AC_CV_NAME)
AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME)