Ignore:
Timestamp:
Oct 8, 2008, 2:14:57 AM (11 years ago)
Author:
Sam Hocevar
Message:

Support C99 types on Win32 through the same hacks as in libcaca.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r2899 r2902  
    6767AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
    6868AC_SUBST(GETOPT_LIBS)
     69
     70# How to get the C99 types. See pipi/pipi_types.h.in for details about
     71# the PIPI_TYPES variable
     72if test "${ac_cv_my_have_vga}" = "yes"; then
     73  PIPI_TYPES=0
     74else
     75  AC_CHECK_HEADERS(stdint.h,
     76    [PIPI_TYPES=1],
     77    [AC_CHECK_HEADERS(inttypes.h,
     78      [PIPI_TYPES=2],
     79      [AC_CHECK_HEADERS(windows.h,
     80        [PIPI_TYPES=3],
     81        [PIPI_TYPES=0])])])
     82fi
     83AC_SUBST(PIPI_TYPES)
    6984
    7085# Optimizations
     
    175190])
    176191AC_CONFIG_FILES([
     192  pipi/pipi_types.h
    177193  pipi/pipi.pc
    178194  pipi-sharp/pipi-sharp.pc
Note: See TracChangeset for help on using the changeset viewer.