This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:552: checking for gcc configure:665: checking whether the C compiler (gcc ) works configure:681: gcc -o conftest conftest.c 1>&5 configure:707: checking whether the C compiler (gcc ) is a cross-compiler configure:712: checking whether we are using GNU C configure:721: gcc -E conftest.c configure:740: checking whether gcc accepts -g configure:772: checking how to run the C preprocessor configure:793: gcc -E conftest.c >/dev/null 2>conftest.out configure:853: checking whether gcc needs -traditional configure:860: sgtty.h: No such file or directory (ENOENT) configure:878: termio.h: No such file or directory (ENOENT) configure:899: checking whether make sets ${MAKE} configure:928: checking for ranlib configure:986: checking for a BSD compatible install configure:1039: checking for POSIXized ISC configure:1061: checking for working const configure:1115: gcc -c -g -O2 conftest.c 1>&5 configure:1138: checking for makeflags variable configure:1174: checking if you want to see long compiling messages configure:1333: checking for ANSI C header files configure:1346: gcc -E conftest.c >/dev/null 2>conftest.out configure:1413: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1437: checking for inline configure:1451: gcc -c -g -O2 conftest.c 1>&5 configure:1477: checking for off_t configure:1510: checking for size_t configure:1545: checking for working alloca.h configure:1557: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1551: alloca.h: No such file or directory (ENOENT) configure: failed program was: #line 1550 "configure" #include "confdefs.h" #include int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } configure:1578: checking for alloca configure:1611: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1780: checking for unistd.h configure:1790: gcc -E conftest.c >/dev/null 2>conftest.out configure:1819: checking for getpagesize configure:1847: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1872: checking for working mmap configure:2020: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:1992: `MAP_PRIVATE' undeclared (first use in this function) configure:1992: (Each undeclared identifier is reported only once configure:1992: for each function it appears in.) configure:1992: `MAP_FIXED' undeclared (first use in this function) configure:1992: warning: comparison between pointer and integer configure: failed program was: #line 1880 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the filesystem buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propogated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #include /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef HAVE_UNISTD_H # include # endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ #ifdef __cplusplus extern "C" { void *malloc(unsigned); } #else char *malloc(); #endif int main() { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize(); /* * First, make a file with some known garbage in it. */ data = malloc(pagesize); if (!data) exit(1); for (i = 0; i < pagesize; ++i) *(data + i) = rand(); umask(0); fd = creat("conftestmmap", 0600); if (fd < 0) exit(1); if (write(fd, data, pagesize) != pagesize) exit(1); close(fd); /* * Next, try to mmap the file at a fixed address which * already has something else allocated at it. If we can, * also make sure that we see the same garbage. */ fd = open("conftestmmap", O_RDWR); if (fd < 0) exit(1); data2 = malloc(2 * pagesize); if (!data2) exit(1); data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) exit(1); /* * Finally, make sure that changes to the mapped area * do not percolate back to the file as seen by read(). * (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = malloc(pagesize); if (!data3) exit(1); if (read(fd, data3, pagesize) != pagesize) exit(1); for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) exit(1); close(fd); unlink("conftestmmap"); exit(0); } configure:2053: checking for argz.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2059: argz.h: No such file or directory (ENOENT) configure: failed program was: #line 2058 "configure" #include "confdefs.h" #include configure:2053: checking for limits.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2053: checking for locale.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2053: checking for nl_types.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2059: nl_types.h: No such file or directory (ENOENT) configure: failed program was: #line 2058 "configure" #include "confdefs.h" #include configure:2053: checking for malloc.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2053: checking for string.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2053: checking for unistd.h configure:2053: checking for sys/param.h configure:2063: gcc -E conftest.c >/dev/null 2>conftest.out configure:2093: checking for getcwd configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for munmap configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\ccJt5mSg.o: In function `main': conftest.c:2115: undefined reference to `munmap' configure: failed program was: #line 2098 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char munmap(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char munmap(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_munmap) || defined (__stub___munmap) choke me #else munmap(); #endif ; return 0; } configure:2093: checking for putenv configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for setenv configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for setlocale configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for strchr configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for strcasecmp configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for strdup configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2093: checking for __argz_count configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\cczUAd81.o: In function `main': conftest.c:2115: undefined reference to `__argz_count' configure: failed program was: #line 2098 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __argz_count(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __argz_count(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___argz_count) || defined (__stub_____argz_count) choke me #else __argz_count(); #endif ; return 0; } configure:2093: checking for __argz_stringify configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\ccJX7hGZ.o: In function `main': conftest.c:2115: undefined reference to `__argz_stringify' configure: failed program was: #line 2098 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __argz_stringify(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __argz_stringify(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___argz_stringify) || defined (__stub_____argz_stringify) choke me #else __argz_stringify(); #endif ; return 0; } configure:2093: checking for __argz_next configure:2121: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\ccUaXVsY.o: In function `main': conftest.c:2115: undefined reference to `__argz_next' configure: failed program was: #line 2098 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __argz_next(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __argz_next(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___argz_next) || defined (__stub_____argz_next) choke me #else __argz_next(); #endif ; return 0; } configure:2150: checking for stpcpy configure:2178: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2212: checking for LC_MESSAGES configure:2224: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:2221: `LC_MESSAGES' undeclared (first use in this function) configure:2221: (Each undeclared identifier is reported only once configure:2221: for each function it appears in.) configure: failed program was: #line 2217 "configure" #include "confdefs.h" #include int main() { return LC_MESSAGES ; return 0; } configure:2245: checking whether NLS is requested configure:3290: checking if -lm needed for math functions configure:3306: gcc -o conftest -g -O2 conftest.c 1>&5 configure:3328: checking if you want to link with dbmalloc for testing configure:3390: checking if you want to link with dmalloc for testing configure:3971: checking for initscr configure:3999: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\ccciQEqy.o: In function `main': conftest.c:3993: undefined reference to `initscr' configure: failed program was: #line 3976 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_initscr) || defined (__stub___initscr) choke me #else initscr(); #endif ; return 0; } configure:4173: checking for tgoto configure:4201: gcc -o conftest -g -O2 conftest.c 1>&5 f:/djgpp/tmp\ccEc2Bcv.o: In function `main': conftest.c:4195: undefined reference to `tgoto' configure: failed program was: #line 4178 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char tgoto(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgoto(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_tgoto) || defined (__stub___tgoto) choke me #else tgoto(); #endif ; return 0; } configure:4222: checking for tgoto in -ltermcap configure:4241: gcc -o conftest -g -O2 conftest.c -ltermcap 1>&5 f:/djgpp/bin/ld.exe: cannot find -ltermcap configure: failed program was: #line 4230 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgoto(); int main() { tgoto() ; return 0; } configure:4222: checking for tgoto in -ltermlib configure:4241: gcc -o conftest -g -O2 conftest.c -ltermlib 1>&5 f:/djgpp/bin/ld.exe: cannot find -ltermlib configure: failed program was: #line 4230 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgoto(); int main() { tgoto() ; return 0; } configure:4222: checking for tgoto in -lunknown configure:4241: gcc -o conftest -g -O2 conftest.c -lunknown 1>&5 f:/djgpp/bin/ld.exe: cannot find -lunknown configure: failed program was: #line 4230 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char tgoto(); int main() { tgoto() ; return 0; } configure:4271: checking for initscr in -lcursesX configure:4290: gcc -o conftest -g -O2 conftest.c -lcursesX 1>&5 f:/djgpp/bin/ld.exe: cannot find -lcursesX configure: failed program was: #line 4279 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { initscr() ; return 0; } configure:4271: checking for initscr in -lcurses configure:4290: gcc -o conftest -g -O2 conftest.c -lcurses 1>&5 f:/djgpp/bin/ld.exe: cannot find -lcurses configure: failed program was: #line 4279 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { initscr() ; return 0; } configure:4271: checking for initscr in -lncurses configure:4290: gcc -o conftest -g -O2 conftest.c -lncurses 1>&5 f:/djgpp/bin/ld.exe: cannot find -lncurses configure: failed program was: #line 4279 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { initscr() ; return 0; } configure:4271: checking for initscr in -lxcurses configure:4290: gcc -o conftest -g -O2 conftest.c -lxcurses 1>&5 f:/djgpp/bin/ld.exe: cannot find -lxcurses configure: failed program was: #line 4279 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { initscr() ; return 0; } configure:4271: checking for initscr in -ljcurses configure:4290: gcc -o conftest -g -O2 conftest.c -ljcurses 1>&5 f:/djgpp/bin/ld.exe: cannot find -ljcurses configure: failed program was: #line 4279 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char initscr(); int main() { initscr() ; return 0; } configure:4271: checking for initscr in -lpdcurses configure:4290: gcc -o conftest -g -O2 conftest.c -lpdcurses 1>&5 configure:4316: checking if we can link with pdcurses library configure:4325: gcc -o conftest -g -O2 conftest.c -lpdcurses 1>&5 configure:4459: checking for ANSI C header files configure:4566: checking for unistd.h configure:4604: checking return type of signal handlers configure:4626: gcc -c -g -O2 conftest.c 1>&5 configure:4649: checking for strcasecmp configure:4703: checking for start_color configure:4731: gcc -o conftest -g -O2 conftest.c -lpdcurses 1>&5 configure:4761: gcc -o conftest -g -O2 conftest.c -lpdcurses 1>&5