Revision 15620,
1.1 KB
checked in by ghudson, 24 years ago
(diff) |
Add ATHTOOLROOT support.
|
Line | |
---|
1 | AC_INIT(ghttp.h) |
---|
2 | |
---|
3 | AC_DIVERT_PUSH(AC_DIVERSION_NOTICE) |
---|
4 | GHTTP_MAJOR_VERSION=1 |
---|
5 | GHTTP_MINOR_VERSION=0 |
---|
6 | GHTTP_MICRO_VERSION=9 |
---|
7 | GHTTP_VERSION=$GHTTP_MAJOR_VERSION.$GHTTP_MINOR_VERSION.$GHTTP_MICRO_VERSION |
---|
8 | AC_DIVERT_POP() |
---|
9 | |
---|
10 | AC_SUBST(GHTTP_MAJOR_VERSION) |
---|
11 | AC_SUBST(GHTTP_MINOR_VERSION) |
---|
12 | AC_SUBST(GHTTP_MICRO_VERSION) |
---|
13 | AC_SUBST(GHTTP_VERSION) |
---|
14 | |
---|
15 | VERSION=$GHTTP_VERSION |
---|
16 | |
---|
17 | AC_DEFINE_UNQUOTED(GHTTP_MAJOR_VERSION, $GHTTP_MAJOR_VERSION) |
---|
18 | AC_DEFINE_UNQUOTED(GHTTP_MINOR_VERSION, $GHTTP_MINOR_VERSION) |
---|
19 | AC_DEFINE_UNQUOTED(GHTTP_MICRO_VERSION, $GHTTP_MICRO_VERSION) |
---|
20 | |
---|
21 | AM_INIT_AUTOMAKE(libghttp, $VERSION) |
---|
22 | |
---|
23 | GHTTP_LIBDIR='-L$$ATHTOOLROOT${libdir}' |
---|
24 | GHTTP_INCLUDEDIR='-I$$ATHTOOLROOT${includedir}' |
---|
25 | GHTTP_LIBS="-lghttp" |
---|
26 | |
---|
27 | AM_MAINTAINER_MODE |
---|
28 | |
---|
29 | AC_ISC_POSIX |
---|
30 | AC_PROG_CC |
---|
31 | AC_STDC_HEADERS |
---|
32 | AC_ARG_PROGRAM |
---|
33 | AM_PROG_LIBTOOL |
---|
34 | |
---|
35 | AC_CANONICAL_HOST |
---|
36 | case $host in |
---|
37 | *-*-solaris*) |
---|
38 | GHTTP_LIBDIR="${GHTTP_LIBDIR} -R${libdir}" |
---|
39 | GHTTP_LIBS="${GHTTP_LIBS} -lsocket -lnsl" |
---|
40 | ;; |
---|
41 | esac |
---|
42 | |
---|
43 | AC_SUBST(GHTTP_LIBDIR) |
---|
44 | AC_SUBST(GHTTP_LIBS) |
---|
45 | AC_SUBST(GHTTP_INCLUDEDIR) |
---|
46 | AC_SUBST(CFLAGS) |
---|
47 | AC_SUBST(CPPFLAGS) |
---|
48 | AC_SUBST(LDFLAGS) |
---|
49 | |
---|
50 | AC_OUTPUT([ |
---|
51 | libghttp.spec |
---|
52 | Makefile]) |
---|
Note: See
TracBrowser
for help on using the repository browser.