/[path-sandbox]/trunk/configure.in
Gentoo

Diff of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 21 Revision 23
43mempcpy memset mkdir pathconf realpath \ 43mempcpy memset mkdir pathconf realpath \
44rmdir setenv strcasecmp strchr strdup \ 44rmdir setenv strcasecmp strchr strdup \
45strerror strndup strrchr strspn strstr \ 45strerror strndup strrchr strspn strstr \
46]) 46])
47 47
48dnl
49dnl FIXME: the following needs to be made portable
50dnl
51
52dnl when using libc5, (f)trucate's offset argument type is size_t with
53dnl libc5, but it's off_t with libc6 (glibc2).
54AC_MSG_CHECKING(truncate argument type)
55if grep -q 'truncate.*size_t' /usr/include/unistd.h ; then
56 AC_MSG_RESULT(size_t)
57 AC_DEFINE(TRUNCATE_T, size_t, [truncate arg type])
58else
59 AC_MSG_RESULT(off_t)
60 AC_DEFINE(TRUNCATE_T, off_t, [truncate arg type])
61fi
62
63AC_MSG_CHECKING(Checking libc version)
64echo "int main(void) { return 0; }" > libctest.c
65gcc -Wall -o libctest libctest.c
66LIBC_VERSION=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | awk '{print $1}'`
67rm -f libctest
68AC_SUBST(LIBC_VERSION)
69AC_MSG_RESULT(${LIBC_VERSION})
70
48AC_OUTPUT([Makefile]) 71AC_OUTPUT([Makefile])

Legend:
Removed from v.21  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.20