|
|
@@ -91,11 +91,16 @@ AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h end |
|
|
|
AC_CHECK_FUNCS(signal ioctl snprintf vsnprintf getenv putenv strcasecmp htons) |
|
|
|
AC_CHECK_FUNCS(usleep gettimeofday) |
|
|
|
|
|
|
|
ac_cv_have_getopt_long="no" |
|
|
|
AC_CHECK_FUNCS(getopt_long, |
|
|
|
[AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)], |
|
|
|
[ac_cv_have_getopt_long="yes"], |
|
|
|
[AC_CHECK_LIB(gnugetopt, getopt_long, |
|
|
|
[AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.) |
|
|
|
[ac_cv_have_getopt_long="yes" |
|
|
|
GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])]) |
|
|
|
if test "$ac_cv_have_getopt_long" != "no"; then |
|
|
|
AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.) |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no") |
|
|
|
AC_SUBST(GETOPT_LIBS) |
|
|
|
|
|
|
|
AC_MSG_CHECKING(for Sleep) |
|
|
|