From ff03fe7e41e2e0a2dbe5efdf1d9ecb08151c3d36 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 3 Feb 2006 01:29:39 +1000 Subject: [PATCH] Make autoconf detection for have__nl_msg_cat_cntr slightly more robust darcs-hash:20060202152939-ac50b-9b38585f8c1d1855d08cc7fd1a75e51ff54a9b0e.gz --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d104c7dae..1268ec1ed 100644 --- a/configure.ac +++ b/configure.ac @@ -212,7 +212,7 @@ AC_TRY_LINK([#if HAVE_LIBINTL_H] [#include ] [#endif], [extern int _nl_msg_cat_cntr;] -[int tmp = _nl_msg_cat_cntr;], have__nl_msg_cat_cntr=yes, have__nl_msg_cat_cntr=no) +[int tmp = _nl_msg_cat_cntr; exit(tmp);], have__nl_msg_cat_cntr=yes, have__nl_msg_cat_cntr=no) if test "$have__nl_msg_cat_cntr" = yes; then AC_MSG_RESULT(yes) AC_DEFINE([HAVE__NL_MSG_CAT_CNTR], [1],