joes 2003/01/16 22:39:43
Added: . acinclude.m4 configure.in buildconf
Log:
Adding build system.
Revision Changes Path
1.1 httpd-apreq-2/acinclude.m4
Index: acinclude.m4
===================================================================
AC_DEFUN(AC_APREQ, [
AC_ARG_WITH(apache-includes,
[ --with-apache-includes where the apache header files live],
[APACHE_INCLUDES=$withval],
[APACHE_INCLUDES="/usr/local/apache/include"])
APREQ_INCLUDES="-I$APACHE_INCLUDES"
AC_SUBST(APREQ_INCLUDES)
])
AC_DEFUN(APR_ADDTO,[
if test "x$$1" = "x"; then
echo " setting $1 to \"$2\""
$1="$2"
else
apr_addto_bugger="$2"
for i in $apr_addto_bugger; do
apr_addto_duplicate="0"
for j in $$1; do
if test "x$i" = "x$j"; then
apr_addto_duplicate="1"
break
fi
done
if test $apr_addto_duplicate = "0"; then
echo " adding \"$i\" to $1"
$1="$$1 $i"
fi
done
fi
])
1.1 httpd-apreq-2/configure.in
Index: configure.in
===================================================================
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.13)
AC_INIT()
AM_INIT_AUTOMAKE(libapreq, 2.0)
AC_CONFIG_AUX_DIR(./build)
dnl Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode Turn on debugging
and compile time warnings],
[APR_ADDTO(CFLAGS,-g)
if test "$GCC" = "yes"; then
APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations])
elif test "$AIX_XLC" = "yes"; then
APR_ADDTO(CFLAGS,-qfullpath -qinitauto=FE -qwarn64 -qcheck=all)
fi
])dnl
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_APREQ
AC_OUTPUT(Makefile src/Makefile)
1.1 httpd-apreq-2/buildconf
Index: buildconf
===================================================================
#!/bin/sh
echo "removing stale config files"
touch .deps
rm -f aclocal.m4
rm -f generated_lists
rm -rf autom4te*.cache
libtool="libtoolize --automake --copy --force"
echo "running $libtool" && $libtool && \
echo "running aclocal" && aclocal && \
echo "running autoconf" && autoconf && \
echo "running automake -a -c" && automake -a -c && \
echo "buildconf successful."