autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_CHECK_HEADER, autoconf 2.57, includes problem


From: Bill Schottstaedt
Subject: AC_CHECK_HEADER, autoconf 2.57, includes problem
Date: Wed, 22 Jan 2003 06:01:59 -0800

My apologies if this has already been reported.

In autoconf 2.57 in AC_CHECK_HEADER, I think the gcc -E conftest
check for header usability needs to include the default includes
from the header presence test.  In my case,

        OLD_CFLAGS="$CFLAGS"
        CFLAGS="-I/usr/local/include/gtkglext-1.0 
-I/usr/local/lib/gtkglext-1.0/include $GTK_CFLAGS $CFLAGS"
        AC_CHECK_HEADER(gtk/gtkgl.h,
          [
            GL_LIBS="$GL_LIBS -lgdkglext-x11-1.0 -lgtkglext-x11-1.0"
            GL_FLAGS="$GL_FLAGS -I/usr/local/include/gtkglext-1.0 
-I/usr/local/lib/gtkglext-1.0/include"
          ],
          [
            GL_LIBS="$GL_LIBS -lgdkglext-x11-0.x -lgtkglext-x11-0.x"
            GL_FLAGS="$GL_FLAGS -I/usr/local/include/gtkglext-0.x"
          ])
        CFLAGS="$OLD_CFLAGS"

(yes I know it's ugly -- there's no config program for this library, so
I have to search for it by hand).  This gets:


checking gtk/gtkgl.h usability... yes
checking gtk/gtkgl.h presence... no
configure: WARNING: gtk/gtkgl.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: gtk/gtkgl.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to address@hidden ##
configure: WARNING:     ## ------------------------------------ ##
checking for gtk/gtkgl.h... no


config.log at the bad spot is:

configure:12407: checking gtk/gtkgl.h usability
configure:12420: gcc -c -I/usr/local/include/gtkglext-1.0 
-I/usr/local/lib/gtkglext-1.0/include   
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/Xft2  
-I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -g -O2  conftest.c  
>&5
configure:12423: $? = 0
configure:12426: test -s conftest.o
configure:12429: $? = 0
configure:12439: result: yes
configure:12443: checking gtk/gtkgl.h presence
configure:12454: gcc -E  conftest.c
configure:12523:23: gtk/gtkgl.h: No such file or directory
configure:12460: $? = 1
configure: failed program was:
| #line 12445 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "snd"
| #define PACKAGE_TARNAME "ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-6.tar.gz";
| #define PACKAGE_VERSION "6.6"
| #define PACKAGE_STRING "snd 6.6"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define STDC_HEADERS 1
| #define Float float
| #define HAVE_GSL 1
| #define GSL_VERSION "1.3"
| #define HAVE_LIBM 1
| #define HAVE_LIBC 1
| #define HAVE_LIBDL 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_SOUNDCARD_H 1
| #define HAVE_GSL_GSL_VERSION_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SETJMP_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_PWD_H 1
| #define HAVE_LADSPA_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_BYTESWAP_H 1
| #define HAVE_GNU_LIBC_VERSION_H 1
| #define TIME_WITH_SYS_TIME 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_STRINGIZE 1
| #define SIZEOF_INT 4
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 4
| #define SIZEOF_INT_P 4
| #define SIZEOF_FLOAT 4
| #define SIZEOF_VOID_P 4
| #define SIZEOF_OFF_T 8
| #define HAVE_LLONGS 1
| #define HAVE_ISNAN 1
| #define HAVE_FFTW 1
| #define RETSIGTYPE void
| #define HAVE_STRFTIME 1
| #define HAVE_GETCWD 1
| #define HAVE_STRERROR 1
| #define HAVE_READLINK 1
| #define HAVE_SETLOCALE 1
| #define HAVE_ACCESS 1
| #define HAVE_OPENDIR 1
| #define HAVE_SLEEP 1
| #define HAVE_SIGNAL 1
| #define HAVE_STRDUP 1
| #define HAVE_STATFS 1
| #define HAVE_CLOCK 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_SNPRINTF 1
| #define HAVE_MEMMOVE 1
| #define HAVE_VPRINTF 1
| #define HAVE_X 1
| #define USE_GTK 1
| #define HAVE_GL 1
| #define JUST_GL 1
| /* end confdefs.h.  */
| #include <gtk/gtkgl.h>
configure:12479: result: no
configure:12485: WARNING: gtk/gtkgl.h: accepted by the compiler, rejected by 
the preprocessor!
configure:12487: WARNING: gtk/gtkgl.h: proceeding with the preprocessor's result
configure:12515: checking for gtk/gtkgl.h
configure:12522: result: no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]