Skip to content

Commit 122e879

Browse files
committed
Simplify configure.ac and makefile.am files
Remove unnecessary cruft, that was only making things harder to read.
1 parent 82b32d0 commit 122e879

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

configure.ac

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,8 @@ AC_ARG_WITH([apxs],
3131
[AC_PATH_PROGS(APXS, [apxs2 apxs])])
3232
AS_IF([test "x${APXS}" != "x" -a -x "${APXS}"],
3333
[AC_MSG_NOTICE([apxs found at $APXS])
34-
APXS_CPPFLAGS=`${APXS} -q CFLAGS`
35-
AC_SUBST(APXS_CPPFLAGS)
36-
APXS_LDFLAGS=`${APXS} -q LDFLAGS_SHLIB`
37-
AC_SUBST(APXS_LDFLAGS)
38-
APXS_LIBS=`${APXS} -q LIBS_SHLIB`
39-
AC_SUBST(APXS_LIBS)
40-
APXS_INCLUDES=-I`${APXS} -q INCLUDEDIR`
41-
AC_SUBST(APXS_INCLUDES)
42-
APXS_CPPFLAGS_SHLIB=`${APXS} -q CFLAGS_SHLIB`
43-
AC_SUBST(APXS_CPPFLAGS_SHLIB)
44-
APXS_LD_SHLIB=`${APXS} -q LD_SHLIB`
45-
AC_SUBST(APXS_LD_SHLIB)
4634
APXS_LIBEXECDIR=`${APXS} -q LIBEXECDIR`
47-
AC_SUBST(APXS_LIBEXECDIR)
48-
APXS_SYSCONFDIR=`${APXS} -q SYSCONFDIR`
49-
AC_SUBST(APXS_SYSCONFDIR)
50-
APXS_PREFIX=`${APXS} -q PREFIX`
51-
AC_SUBST(APXS_PREFIX)],
35+
AC_SUBST(APXS_LIBEXECDIR)],
5236
[AC_MSG_FAILURE(["apxs not found. Use --with-apxs"])])
5337

5438
AC_ARG_WITH([apr],
@@ -81,6 +65,9 @@ AC_CHECK_FUNCS(gss_store_cred_into)
8165
AC_SUBST([GSSAPI_CFLAGS])
8266
AC_SUBST([GSSAPI_LIBS])
8367

68+
CFLAGS="`${APXS} -q CFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} -I`${APXS} -q INCLUDEDIR` -I`${APR} --includes`"
69+
LIBS="`${APR} --link-libtool --libs` ${GSSAPI_LIBS}"
70+
8471
AC_CONFIG_FILES([Makefile src/Makefile])
8572

8673
AC_OUTPUT

src/Makefile.am

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
1-
MAG_CFLAGS = @APR_CPPFLAGS@ @APXS_CPPFLAGS@ @APXS_CPPFLAGS_SHLIB@
2-
MAG_INCLUDES = @INCLTDL@ @APR_INCLUDES@ @APXS_INCLUDES@
3-
MAG_LIBS = @LIBLTDL@ @APR_LDFLAGS@ @APXS_LDFLAGS@ @APXS_LIBS@ @APXS_LD_SHLIB@
4-
MAG_LIBEXECDIR = @APXS_LIBEXECDIR@
1+
all-local:
2+
@APXS@ -c ${LIBS} ${CFLAGS} mod_auth_gssapi.c
53

6-
if HAVE_GCC
7-
MAG_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
8-
-Wcast-qual -Wcast-align -Wwrite-strings \
9-
-Werror-implicit-function-declaration \
10-
-fno-strict-aliasing
11-
endif
12-
13-
lib_LTLIBRARIES = mod_auth_gssapi.la
14-
15-
mod_auth_gssapi_la_LDFLAGS = -module
16-
17-
mod_auth_gssapi.la: mod_auth_gssapi.c
18-
@APXS@ -c ${LIBS} -Wc,"${MAG_CFLAGS} ${MAG_INCLUDES}" -Wl,"${MAG_LIBS}" mod_auth_gssapi.c
19-
20-
install: mod_auth_gssapi.la
21-
if test ! -d ${MAG_LIBEXECDIR}; then mkdir -p ${MAG_LIBEXECDIR}; fi
22-
@APXS@ -i -S LIBEXECDIR=${MAG_LIBEXECDIR} mod_auth_gssapi.la
4+
install-exec-local:
5+
if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi
6+
@APXS@ -i -S LIBEXECDIR=${APXS_LIBEXECDIR} mod_auth_gssapi.la
237

248
clean-local:
259
rm -f mod_auth_gssapi.slo mod_auth_gssapi.la mod_auth_gssapi.lo .libs

0 commit comments

Comments
 (0)