Ignore:
Timestamp:
Sep 21, 2006, 6:59:23 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Check for <getopt.h> and getopt_long.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r1056 r1074  
    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)
    70 AC_CHECK_FUNCS(usleep gettimeofday)
     70AC_CHECK_FUNCS(usleep gettimeofday getopt_long)
    7171
    7272AC_MSG_CHECKING(for Sleep)
     
    8787  AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],
    8888 [AC_MSG_RESULT(no)])
     89
     90AC_CHECK_FUNCS(getopt_long,
     91 [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
     92 [AC_CHECK_LIB(gnugetopt, getopt_long,
     93   [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     94    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
    8995
    9096AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
     
    228234
    229235AC_SUBST(MATH_LIBS)
     236AC_SUBST(GETOPT_LIBS)
    230237AC_SUBST(CACA_LIBS)
    231238
Note: See TracChangeset for help on using the changeset viewer.