Make configure fail if deriving the constants fails
authorIan Lynagh <igloo@earth.li>
Tue, 16 Jun 2009 18:30:05 +0000 (18:30 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 16 Jun 2009 18:30:05 +0000 (18:30 +0000)
configure.ac

index 428e151..e16352b 100644 (file)
@@ -76,8 +76,8 @@ dnl * Generate the header cbits/GmpDerivedConstants.h
 dnl--------------------------------------------------------------------
 
 AC_MSG_NOTICE([generating GmpDerivedConstants.h])
 dnl--------------------------------------------------------------------
 
 AC_MSG_NOTICE([generating GmpDerivedConstants.h])
-${CC} $CFLAGS cbits/mkGmpDerivedConstants.c -o cbits/mkGmpDerivedConstants
-cbits/mkGmpDerivedConstants > cbits/GmpDerivedConstants.h
+${CC} $CFLAGS cbits/mkGmpDerivedConstants.c -o cbits/mkGmpDerivedConstants || exit 1
+{ cbits/mkGmpDerivedConstants > cbits/GmpDerivedConstants.h; } || exit 1
 rm cbits/mkGmpDerivedConstants
 
 AC_OUTPUT
 rm cbits/mkGmpDerivedConstants
 
 AC_OUTPUT