Ignore:
Timestamp:
Oct 19, 2006, 11:21:00 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add checks for getopt / getopt_long.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r1198 r1207  
    6666  [  --enable-doc            build documentation (needs doxygen and LaTeX)])
    6767
    68 AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h)
     68AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h)
    6969AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons)
    7070AC_CHECK_FUNCS(usleep gettimeofday)
     71
     72AC_CHECK_FUNCS(getopt_long,
     73 [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
     74 [AC_CHECK_LIB(gnugetopt, getopt_long,
     75   [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     76    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
     77AC_SUBST(GETOPT_LIBS)
    7178
    7279AC_MSG_CHECKING(for Sleep)
Note: See TracChangeset for help on using the changeset viewer.