2
## Author(s): Rohan Shirwaikar
3
## Contact: xsb-contact@cs.sunysb.edu
5
## Copyright (C) The Research Foundation of SUNY, 2004
7
## XSB is free software; you can redistribute it and/or modify it under the
8
## terms of the GNU Library General Public License as published by the Free
9
## Software Foundation; either version 2 of the License, or (at your option)
12
## XSB is distributed in the hope that it will be useful, but WITHOUT ANY
13
## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
## FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for
17
## You should have received a copy of the GNU Library General Public License
18
## along with XSB; if not, write to the Free Software Foundation,
19
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
## $Id: configure.in,v 1.2 2005/03/06 00:29:02 kifer Exp $
25
dnl Autoconf script for xpath
26
dnl To rebuild the `configure' script from this, execute the command
28
dnl in the directory containing this script.
34
AC_INIT(xpathconfig.P)
39
# strip the last two directories and possibly trailing slashes
40
topdir=`echo "${build_dir}" | sed 's,/[[^/]][[^/]]*/*/[[^/]][[^/]]*/*$,,'`
43
# Tell where the autoconf scripts are
44
AC_CONFIG_AUX_DIR($topdir/build)
46
dnl Check configuration for a Unix variant
48
- You did not tell me what kind of host system you want to configure.
49
- I will attempt to guess the kind of system this is.
53
configuration=$host_alias
56
# make sure new files are readable
65
pkg_src_dir=$build_dir/cc
66
pkg_libxml_include_dir=$pkg_src_dir/libxml
67
pkg_bin_dir=$pkg_src_dir/bin
68
xmllib_ccflags=" -I$pkg_libxml_include_dir -I$pkg_src_dir "
69
ldflags=" -L$pkg_bin_dir -lxml2 -lz -liconv -lm "
72
xpath_config_prog="./xml2-config" # we keep our own copy for Unix
74
if test "$exec_prefix" != "NONE" ; then
75
exec_prefix_option="--exec-prefix=$exec_prefix"
77
if test "$prefix" != "NONE" ; then
78
prefix_option="--prefix=$prefix"
81
xmllib_ccflags=`sh $xpath_config_prog $exec_prefix_option $prefix_option --cflags`
82
ldflags="`sh $xpath_config_prog $exec_prefix_option $prefix_option --libs`"
86
ccflags="$xmllib_ccflags"
87
if test "$xmllib_ccflags" != "ERROR" && test "$ldflags" != "ERROR" ; then
99
echo " Xpath support: $support"
100
if test "$support" = "yes"; then
102
Xpath C flags: $ccflags
103
Xpath loader flags: $ldflags
107
) | tee Installation_summary
109
AC_OUTPUT([xpath_init.P:xpath_init.in])