Ignore:
Timestamp:
Apr 19, 2008, 2:42:50 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove #include <stdint.h> etc. from "common.h". Instead, make sure that <cucul.h> will provide the C99 types, even if libcaca has been installed.
  • Rename what's left of "common.h" to "stubs.h".
  • Remove all references to erroneous <inttypes.h> from source files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2265 r2299  
    8888  [  --enable-zzuf           use zzuf for fuzzing tests (autodetected)])
    8989
    90 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 getopt.h dlfcn.h termios.h)
     90AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h)
    9191AC_CHECK_FUNCS(signal ioctl snprintf vsnprintf getenv putenv strcasecmp htons)
    9292AC_CHECK_FUNCS(usleep gettimeofday)
     
    324324AC_SUBST(GL_LIBS)
    325325
     326# How to get the C99 types. See cucul/cucul_types.h.in for details about
     327# the CUCUL_TYPES variable
     328if test "${ac_cv_my_have_vga}" = "yes"; then
     329  CUCUL_TYPES=0
     330else
     331  AC_CHECK_HEADERS(stdint.h,
     332    [CUCUL_TYPES=1],
     333    [AC_CHECK_HEADERS(inttypes.h,
     334      [CUCUL_TYPES=2],
     335      [CUCUL_TYPES=0])])
     336fi
     337AC_SUBST(CUCUL_TYPES)
     338
    326339# Optimizations
    327340CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
     
    463476])
    464477AC_CONFIG_FILES([
     478  cucul/cucul_types.h
    465479  cucul/cucul.pc
    466480  caca/caca.pc
Note: See TracChangeset for help on using the changeset viewer.