2002-11-15 22:57:05 +00:00
|
|
|
# configure.in for GDL2 library
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
#
|
2005-08-17 08:07:57 +00:00
|
|
|
# Copyright (C) 2002,2004,2005 Free Software Foundation, Inc.
|
2002-11-15 22:57:05 +00:00
|
|
|
#
|
|
|
|
# Written by: Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
|
|
|
#
|
|
|
|
# This file is part of the GDL2 library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
2005-08-17 08:07:57 +00:00
|
|
|
# License along with this library;
|
|
|
|
# If not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-11-15 22:57:05 +00:00
|
|
|
|
|
|
|
builtin(include, config/postgres.m4)dnl
|
|
|
|
|
|
|
|
AC_INIT
|
|
|
|
|
|
|
|
if test -z "$GNUSTEP_SYSTEM_ROOT"; then
|
|
|
|
AC_MSG_ERROR([You must run the GNUstep initialization script first!])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check for Postgres database
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
AM_PATH_PGSQL(enable_pgsql=yes, enable_pgsql=no)
|
|
|
|
if test $enable_pgsql = yes; then
|
|
|
|
EOADAPTORS="$EOADAPTORS Postgres95"
|
|
|
|
|
|
|
|
HAVE_PGSQL=1
|
|
|
|
# AC_DEFINE(HAVE_LIBXML,1,
|
|
|
|
# [Define if libxml available])
|
|
|
|
else
|
|
|
|
HAVE_PGSQL=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_SUBST(EOADAPTORS)
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Record the version
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
AC_MSG_CHECKING(for the version of GDL2 we are compiling)
|
|
|
|
if test -f "Version"; then
|
|
|
|
. ./Version
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($VERSION)
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
AC_SUBST(MAJOR_VERSION)
|
|
|
|
AC_SUBST(MINOR_VERSION)
|
|
|
|
AC_SUBST(SUBMINOR_VERSION)
|
|
|
|
AC_SUBST(GCC_VERSION)
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Write the Makefiles
|
|
|
|
#--------------------------------------------------------------------
|
2004-03-06 12:18:08 +00:00
|
|
|
AC_CONFIG_FILES([gdl2.make EOAdaptors/GNUmakefile EOAdaptors/Postgres95/GNUmakefile EOAdaptors/Postgres95/config.mak])
|
2002-11-15 22:57:05 +00:00
|
|
|
AC_OUTPUT
|