Ignore:
Timestamp:
Mar 11, 2008, 3:56:14 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Add getopt and getopt_long support to genethumb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r2228 r2258  
    2626AC_C_INLINE
    2727
    28 AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h)
     28AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h getopt.h)
     29
     30ac_cv_have_getopt_long="no"
     31AC_CHECK_FUNCS(getopt_long,
     32 [ac_cv_have_getopt_long="yes"],
     33 [AC_CHECK_LIB(gnugetopt, getopt_long,
     34   [ac_cv_have_getopt_long="yes"
     35    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
     36if test "$ac_cv_have_getopt_long" != "no"; then
     37  AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)
     38fi
     39AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
     40AC_SUBST(GETOPT_LIBS)
    2941
    3042# Optimizations
Note: See TracChangeset for help on using the changeset viewer.