base
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
dnl ********************************************************************
|
||||
dnl
|
||||
dnl mod_dav_pgsql (DASL) for apache 2.X
|
||||
dnl CopyRight(C) 2005 SolutionBox Inc. All Rights reserved.
|
||||
dnl Author : sean kim (sean@solutionbox.co.kr)
|
||||
dnl
|
||||
dnl $Id: configure.in,v 1.1.1.2 2006/09/06 06:49:14 sean Exp $
|
||||
dnl
|
||||
dnl Redistribution and use in source and binary forms, with or with out
|
||||
dnl modification, are not permitted in outside of SolutionBox Inc.
|
||||
dnl
|
||||
dnl ******************************************************************/
|
||||
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_INIT(mod_dav_repos.c)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
dnl Checks for header files.
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_TYPE_SIZE_T
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_FUNCS(socket)
|
||||
|
||||
|
||||
AC_DEFUN([APACHE_DIR],[
|
||||
|
||||
AC_ARG_WITH(apache,
|
||||
[ --with-apache[=DIR] Apache server directory ],,
|
||||
[with_apache="no"])
|
||||
AC_MSG_CHECKING(for Apache directiry)
|
||||
|
||||
if test "$with_apache" = "no"; then
|
||||
AC_MSG_ERROR( You need to specify the apache directory using --with-apache)
|
||||
else
|
||||
if test -r $with_apache/bin/apxs; then
|
||||
apache_dir=$with_apache
|
||||
AC_MSG_RESULT(APACHE found!)
|
||||
else
|
||||
AC_MSG_ERROR( $with_apache/bin/apxs not found)
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([PGSQL_DIR],[
|
||||
AC_ARG_WITH(pgsql,
|
||||
[ --with-pgsql[=DIR] pgsql directory ],,
|
||||
[with_pgsql="no"])
|
||||
AC_MSG_CHECKING(for PGSQL directiry)
|
||||
|
||||
if test "$with_pgsql" = "no"; then
|
||||
pgsql_dir=/usr/local
|
||||
else
|
||||
pgsql_dir=$with_pgsql
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
AC_DEFUN([CHECK_DEBUG],[
|
||||
AC_ARG_WITH(debug,
|
||||
[ --with-debug Set DEBUG],,
|
||||
[DEBUG="no"])
|
||||
|
||||
if test "$DEBUG" = "no"; then
|
||||
DEBUG=
|
||||
else
|
||||
DEBUG=-DDEBUG
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
VERSION="1.0.2-SB"
|
||||
APACHE_DIR
|
||||
PGSQL_DIR
|
||||
CHECK_DEBUG
|
||||
|
||||
AC_SUBST(apache_dir)
|
||||
AC_SUBST(pgsql_dir)
|
||||
AC_SUBST(VERSION)
|
||||
AC_SUBST(DEBUG)
|
||||
AC_OUTPUT(Makefile)
|
||||
Reference in New Issue
Block a user