1 dnl ######################################################################
2 dnl find if "extern char *optarg" exists in headers
3 AC_DEFUN([AMU_EXTERN_OPTARG],
5 AC_CACHE_CHECK(if external definition for optarg[] exists,
8 # try to compile program that uses the variable
13 #endif /* HAVE_STDIO_H */
16 #endif /* HAVE_UNISTD_H */
19 #endif /* HAVE_STDLIB_H */
20 #ifdef HAVE_SYS_ERRNO_H
21 # include <sys/errno.h>
22 #endif /* HAVE_SYS_ERRNO_H */
25 #endif /* HAVE_ERRNO_H */
29 ], ac_cv_extern_optarg=yes, ac_cv_extern_optarg=no)
31 if test "$ac_cv_extern_optarg" = yes
33 AC_DEFINE(HAVE_EXTERN_OPTARG)
36 dnl ======================================================================