diff options
author | Stef Walter <stef@memberwebs.com> | 2005-09-07 23:18:02 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-09-07 23:18:02 +0000 |
commit | 2eb956b5dbe9aeb2009ec04422fd096d34ccf10b (patch) | |
tree | ffda931c13138727b8f81a68c033a3fc632f365d /acsite.m4 | |
parent | 02d40ef5c7a97e1fbaddb32d62341b396f4a0297 (diff) |
Commit some old changes
Diffstat (limited to 'acsite.m4')
-rw-r--r-- | acsite.m4 | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -198,3 +198,33 @@ fi AC_LANG_RESTORE ])dnl ACX_PTHREAD + + + +AC_DEFUN(AC_CHECK_GLOBAL, +[ +for ac_global in $1 +do + ac_tr_global=HAVE_`echo $ac_global | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + AC_MSG_CHECKING([for global variable ${ac_global}]) + AC_CACHE_VAL(ac_cv_global_$ac_global, + [ + AC_TRY_LINK(dnl + [/* no includes */], + [ extern long int $ac_global; exit((int)$ac_global)], + eval "ac_cv_global_${ac_global}=yes", + eval "ac_cv_global_${ac_global}=no" + ) + ] + ) + if eval "test \"`echo '$ac_cv_global_'$ac_global`\" = yes"; then + AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED($ac_tr_global,1,Define if the global variable $ac_global is available) + else + AC_MSG_RESULT(no) + fi +done +]) + + + |