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

Contents of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33 - (hide annotations) (download)
Wed Mar 9 07:34:30 2005 UTC (9 years, 7 months ago) by ferringb
File MIME type: text/plain
File size: 1889 byte(s)
correct symbols.h building when libdir !+ "/lib"

1 ferringb 2 AC_PREREQ(2.59)
2     AC_INIT(sandbox, 1.1, dev-portage@gentoo.org)
3     AM_INIT_AUTOMAKE
4 ferringb 16 AC_CONFIG_HEADER([config.h])
5 ferringb 2
6     # Checks for programs.
7     AC_PROG_CC
8 azarah 29 AC_ISC_POSIX
9     AC_PROG_INSTALL
10     AC_PROG_MAKE_SET
11     AC_PROG_AWK
12    
13 vapier 21 AC_ENABLE_SHARED
14     AC_DISABLE_STATIC
15 ferringb 2 AC_PROG_LIBTOOL
16    
17     AC_PREFIX_DEFAULT([/usr])
18 azarah 29
19 ferringb 2 # Checks for libraries.
20     # Checks for header files.
21     AC_FUNC_ALLOCA
22     AC_HEADER_DIRENT
23     AC_HEADER_STDC
24     AC_HEADER_SYS_WAIT
25 vapier 21 AC_CHECK_HEADERS([ \
26     fcntl.h limits.h memory.h stddef.h \
27     stdlib.h string.h strings.h sys/file.h \
28     sys/param.h sys/time.h unistd.h utime.h \
29     ])
30 ferringb 2
31     # Checks for typedefs, structures, and compiler characteristics.
32     AC_C_CONST
33     AC_TYPE_UID_T
34     AC_TYPE_MODE_T
35     AC_TYPE_SIZE_T
36     AC_CHECK_TYPES([ptrdiff_t])
37    
38     # Checks for library functions.
39     AC_FUNC_CHOWN
40     AC_FUNC_FORK
41     AC_FUNC_LSTAT
42     AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
43     AC_FUNC_MALLOC
44     AC_FUNC_REALLOC
45     AC_TYPE_SIGNAL
46     AC_FUNC_STAT
47 vapier 21 AC_CHECK_FUNCS([ \
48     bzero ftruncate getcwd lchown memmove \
49     mempcpy memset mkdir pathconf realpath \
50     rmdir setenv strcasecmp strchr strdup \
51     strerror strndup strrchr strspn strstr \
52     ])
53 ferringb 2
54 vapier 23 dnl
55     dnl FIXME: the following needs to be made portable
56     dnl
57    
58     dnl when using libc5, (f)trucate's offset argument type is size_t with
59     dnl libc5, but it's off_t with libc6 (glibc2).
60     AC_MSG_CHECKING(truncate argument type)
61     if grep -q 'truncate.*size_t' /usr/include/unistd.h ; then
62     AC_MSG_RESULT(size_t)
63     AC_DEFINE(TRUNCATE_T, size_t, [truncate arg type])
64     else
65     AC_MSG_RESULT(off_t)
66     AC_DEFINE(TRUNCATE_T, off_t, [truncate arg type])
67     fi
68    
69     AC_MSG_CHECKING(Checking libc version)
70     echo "int main(void) { return 0; }" > libctest.c
71     gcc -Wall -o libctest libctest.c
72 azarah 29 LIBC_VERSION=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | ${AWK} '{print $1}'`
73 ferringb 33 LIBC_PATH=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | ${AWK} '{print $3}'`
74 vapier 23 rm -f libctest
75     AC_SUBST(LIBC_VERSION)
76 ferringb 33 AC_SUBST(LIBC_PATH)
77 vapier 23 AC_MSG_RESULT(${LIBC_VERSION})
78    
79 vapier 21 AC_OUTPUT([Makefile])

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20