diff options
author | Joe Orton <jorton@apache.org> | 2011-11-11 04:01:33 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2011-11-11 04:01:33 +0100 |
commit | 80765aa7fe900a47486b57204e94f5fda3fa99ad (patch) | |
tree | b9e06fe0cd72c50d051380f78ce24dced3986a83 /srclib | |
parent | Formatting, no functional change. (diff) | |
download | apache2-80765aa7fe900a47486b57204e94f5fda3fa99ad.tar.xz apache2-80765aa7fe900a47486b57204e94f5fda3fa99ad.zip |
A stab at libapreq build integration, still disabled by default.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200715 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'srclib')
-rw-r--r-- | srclib/libapreq/Makefile.in | 97 | ||||
-rw-r--r-- | srclib/libapreq/configure.in | 169 | ||||
-rw-r--r-- | srclib/libapreq/library/Makefile.in | 15 |
3 files changed, 24 insertions, 257 deletions
diff --git a/srclib/libapreq/Makefile.in b/srclib/libapreq/Makefile.in index b86e9f3680..189d1e566e 100644 --- a/srclib/libapreq/Makefile.in +++ b/srclib/libapreq/Makefile.in @@ -1,94 +1,15 @@ -# -# Top-level Makefile for APREQ -# -CPP = @CPP@ -# gets substituted into some targets -APREQ_MAJOR_VERSION=@APREQ_MAJOR_VERSION@ -APREQ_MINOR_VERSION=@APREQ_MINOR_VERSION@ -APREQ_PATCH_VERSION=@APREQ_PATCH_VERSION@ -APREQ_DOTTED_VERSION=@APREQ_DOTTED_VERSION@ -APREQ_LIBTOOL_VERSION=@APREQ_LIBTOOL_VERSION@ - -srcdir = @srcdir@ -VPATH = @srcdir@ - -INCLUDES = @APREQ_INCLUDES@ @APREQ_PRIV_INCLUDES@ @APR_INCLUDES@ -APREQ_LDFLAGS = @APREQ_LDFLAGS@ -APREQ_LIBS = @APREQ_LIBS@ - -TARGET_LIB = lib@APREQ_LIBNAME@.la -INSTALL_SUBDIRS = -EXTRA_SOURCE_DIRS = -APRUTIL_PCFILE = apr-util-$(APRUTIL_MAJOR_VERSION).pc +INSTALL_TARGETS = install-apreq-config +BUILD_SUBDIRS = library +CLEAN_SUBDIRS = library APREQ_CONFIG = apreq2-config -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ - -TARGETS = $(TARGET_LIB) apreq.exp - -# bring in rules.mk for standard functionality -@INCLUDE_RULES@ -@INCLUDE_OUTPUTS@ - -LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) -version-info $(APREQ_LIBTOOL_VERSION) $(ALL_LDFLAGS) -o $@ - -CLEAN_SUBDIRS = test -CLEAN_TARGETS = exports.c export_vars.c apreq.exp .make.dirs apreq2-config.out -DISTCLEAN_TARGETS = config.cache config.log config.status libtool \ - export_vars.sh $(APREQ_CONFIG) build/rules.mk \ - apr-util.pc build/pkg/pkginfo -EXTRACLEAN_TARGETS = configure aclocal.m4 \ - exports.c build-outputs.mk \ - build/apr_common.m4 build/find_apr.m4 build/install.sh \ - build/config.guess build/config.sub - -prefix=@prefix@ -exec_prefix=@exec_prefix@ -bindir=@bindir@ -libdir=@libdir@ -includedir=@includedir@ -top_srcdir=@abs_srcdir@ -top_blddir=@abs_builddir@ +include $(top_builddir)/build/rules.mk # Create apu-config script suitable for the install tree -apreq2-config.out: $(APREQ_CONFIG) - sed 's,^\(location=\).*$$,\1installed,' < $(APREQ_CONFIG) > $@ - -install: $(TARGET_LIB) apreq2-config.out - $(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \ - $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) - for f in $(top_srcdir)/include/*.h $(top_blddir)/include/*.h; do \ - $(INSTALL_DATA) $${f} $(DESTDIR)$(includedir); \ - done - echo $(INSTALL_DATA) apr-util.pc $(DESTDIR)$(libdir)/pkgconfig/$(APRUTIL_PCFILE) - list='$(INSTALL_SUBDIRS)'; for i in $$list; do \ - ( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \ - done - $(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir) - $(INSTALL_DATA) apreq.exp $(DESTDIR)$(libdir) - $(INSTALL) -m 755 apreq2-config.out $(DESTDIR)$(bindir)/$(APREQ_CONFIG) - -$(TARGET_LIB): $(OBJECTS) - $(LINK) @lib_target@ $(ALL_LIBS) $(APREQ_LDFLAGS) $(APREQ_LIBS) - -exports.c: $(HEADERS) - $(APR_MKEXPORT) $(HEADERS) > $@ - -export_vars.c: $(HEADERS) - $(APR_MKVAREXPORT) $(HEADERS) > $@ - -apreq.exp: exports.c export_vars.c - @echo "#! lib@APREQ_LIBNAME@.so" > $@ - @echo "* This file was AUTOGENERATED at build time." >> $@ - @echo "* Please do not edit by hand." >> $@ - $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/' >> $@ - $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@ - -dox: - doxygen $(top_srcdir)/docs/doxygen.conf +$(APREQ_CONFIG).out: $(APREQ_CONFIG) + sed 's,^\(location=\).*$$,\1installed,' < $(APREQ_CONFIG).in > $(APREQ_CONFIG) -test: check -check: $(TARGET_LIB) - cd test && $(MAKE) check +install-apreq-config: $(APREQ_CONFIG) + @$(MKINSTALLDIRS) $(DESTDIR)$(bindir) + $(INSTALL) -m 755 $(APREQ_CONFIG) $(DESTDIR)$(bindir)/$(APREQ_CONFIG) diff --git a/srclib/libapreq/configure.in b/srclib/libapreq/configure.in deleted file mode 100644 index aeb60774a5..0000000000 --- a/srclib/libapreq/configure.in +++ /dev/null @@ -1,169 +0,0 @@ -dnl -dnl Process this file with autoconf to produce a configure script -dnl - -AC_PREREQ(2.50) -AC_INIT(export_vars.sh.in) - -VERSION=2.08 -AC_SUBST(VERSION) - -AC_CONFIG_HEADER(include/apreq_config.h) -AC_CONFIG_AUX_DIR(build) - -sinclude(build/apreq-conf.m4) -sinclude(build/apreq-hints.m4) -sinclude(build/apr_common.m4) -sinclude(build/find_apr.m4) - -dnl Generate ./config.nice for reproducing runs of configure -dnl -APR_CONFIG_NICE(config.nice) - -dnl # Some initial steps for configuration. We setup the default directory -dnl # and which files are to be configured. - -dnl Absolute source/build directory -abs_srcdir=`(cd $srcdir && pwd)` -abs_builddir=`pwd` - -if test "$abs_builddir" != "$abs_srcdir"; then - USE_VPATH=1 - APREQ_CONFIG_LOCATION=build -else - APREQ_CONFIG_LOCATION=source -fi - -AC_SUBST(APREQ_CONFIG_LOCATION) - -AC_CANONICAL_SYSTEM - -AC_PROG_INSTALL - -dnl -dnl compute the top directory of the build -dnl note: this is needed for LIBTOOL and exporting the bundled Expat -dnl -top_builddir="$abs_builddir" -AC_SUBST(top_builddir) -AC_SUBST(abs_srcdir) -AC_SUBST(abs_builddir) - -dnl Initialize mkdir -p functionality. -APR_MKDIR_P_CHECK($abs_srcdir/build/mkdir.sh) - - -dnl Enable the layout handling code, then reparse the prefix-style -dnl arguments due to autoconf being a PITA. -APR_ENABLE_LAYOUT(apreq) -APR_PARSE_ARGUMENTS - -dnl load os-specific hints for apr-util -APREQ_PRELOAD - -dnl -dnl set up the compilation flags and stuff -dnl - -APREQ_INCLUDES="" -APREQ_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private" -if test -n "$USE_VPATH"; then - APREQ_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include" -fi - -dnl -dnl Find the APR includes directory and (possibly) the source (base) dir. -dnl -APREQ_FIND_APR - -dnl -dnl even though we use apr_rules.mk for building apr-util, we need -dnl to grab CC and CPP ahead of time so that apr-util config tests -dnl use the same compiler as APR; we need the same compiler options -dnl and feature test macros as well -dnl -APR_SETIFNULL(CC, `$apr_config --cc`) -APR_SETIFNULL(CPP, `$apr_config --cpp`) -APR_ADDTO(CFLAGS, `$apr_config --cflags`) -APR_ADDTO(CPPFLAGS, `$apr_config --cppflags`) - -AC_SUBST(CPP) - -dnl get our version information -get_version="$abs_srcdir/build/get-version.sh" -version_hdr="$abs_srcdir/include/apreq_version.h" -APREQ_MAJOR_VERSION="`$get_version major $version_hdr APREQ`" -APREQ_MINOR_VERSION="`$get_version minor $version_hdr APREQ`" -APREQ_PATCH_VERSION="`$get_version patch $version_hdr APREQ`" -APREQ_DOTTED_VERSION="`$get_version all $version_hdr APREQ`" - -APR_MAJOR_VERSION="`$apr_config --version | cut -f1 -d.`" -APREQ_LIBTOOL_VERSION="`expr $APREQ_MAJOR_VERSION + $APREQ_MINOR_VERSION + $APR_MAJOR_VERSION`:$APREQ_PATCH_VERSION:$APREQ_MINOR_VERSION" - -AC_SUBST(APREQ_DOTTED_VERSION) -AC_SUBST(APREQ_LIBTOOL_VERSION) -AC_SUBST(APREQ_MAJOR_VERSION) -AC_SUBST(APREQ_MINOR_VERSION) -AC_SUBST(APREQ_PATCH_VERSION) - -echo "APREQ Version: ${APREQ_DOTTED_VERSION}" - - - -so_ext=$APR_SO_EXT -lib_target=$APR_LIB_TARGET -AC_SUBST(so_ext) -AC_SUBST(lib_target) - -APREQ_LIBNAME="apreq2" -AC_SUBST(APREQ_LIBNAME) - -dnl -dnl Prep all the flags and stuff for compilation and export to other builds -dnl -APR_ADDTO(APREQ_LIBS, [$APR_LIBS]) - -AC_SUBST(APREQ_EXPORT_LIBS) -AC_SUBST(APREQ_PRIV_INCLUDES) -AC_SUBST(APREQ_INCLUDES) -AC_SUBST(APREQ_LDFLAGS) -AC_SUBST(APREQ_LIBS) -AC_SUBST(LDFLAGS) - -dnl copy apr's rules.mk into our build directory. -if test ! -d ./build; then - $mkdir_p build -fi -cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk - -dnl -dnl BSD/OS (BSDi) needs to use a different include syntax in the Makefiles -dnl -case "$host_alias" in -*bsdi* | BSD/OS) - # Check whether they've installed GNU make - if make --version > /dev/null 2>&1; then - INCLUDE_RULES="include $abs_builddir/build/rules.mk" - INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" - else - INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\"" - INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\"" - fi - ;; -*) - INCLUDE_RULES="include $abs_builddir/build/rules.mk" - INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" - ;; -esac -AC_SUBST(INCLUDE_RULES) -AC_SUBST(INCLUDE_OUTPUTS) - -for d in include include/private; do - test -d $top_builddir/$d || mkdir $top_builddir/$d -done - -AC_CONFIG_FILES([Makefile export_vars.sh apreq2-config]) - -AC_CONFIG_COMMANDS([default], [chmod +x apreq2-config]) - -AC_OUTPUT diff --git a/srclib/libapreq/library/Makefile.in b/srclib/libapreq/library/Makefile.in new file mode 100644 index 0000000000..77db54aff0 --- /dev/null +++ b/srclib/libapreq/library/Makefile.in @@ -0,0 +1,15 @@ +TARGETS = $(LIBRARY) +OBJECTS = cookie.lo error.lo module.lo module_cgi.lo module_custom.lo \ + param.lo parser.lo parser_header.lo parser_multipart.lo \ + parser_urlencoded.lo util.lo version.lo +LIBRARY = libapreq-2.la +INSTALL_TARGETS = install-library + +include $(top_builddir)/build/rules.mk + +$(LIBRARY): $(OBJECTS) + $(LINK) -shared $(APREQ_LIBTOOL_VERSION) -rpath $(libdir) $(OBJECTS) $(EXTRA_LIBS) $(AP_LIBS) + +install-library: $(LIBRARY) + @$(MKINSTALLDIRS) $(DESTDIR)$(libdir) + $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY) |