-
Notifications
You must be signed in to change notification settings - Fork 25
/
configure.ac
102 lines (82 loc) · 2.6 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
define([RDF_EDITOR_VERSION], [esyscmd([./gen_version.sh | sed -e 's/_git.*//' | tr -d '\n'])])
AC_INIT([rdf-editor], [RDF_EDITOR_VERSION], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
# --------------------------------------------------------------
# Save configuration for later reuse
# --------------------------------------------------------------
echo creating config.nice
rm -f config.nice
cat >config.nice<<CONFIG_NICE_EOF
#!${SHELL-/bin/sh}
#
# Created by configure for $PACKAGE_STRING
#
# Environment
CONFIG_NICE_EOF
for var in SHELL CFLAGS CXXFLAGS CPPFLAGS LDFLAGS INCLUDES LIBS CC CXX
do
eval val=\$$var
if test -n "$val"
then
echo "$var=\"$val\"; export $var" >> config.nice
fi
done
echo "" >> config.nice
echo ${SHELL} "\"$0\" \\" >> config.nice
eval "set -- $ac_configure_args"
for arg
do
echo "\"$arg\" \\" >> config.nice
done
echo '"$@"' >> config.nice
chmod +x config.nice
# --------------------------------------------------------------
# Check for python (vadpacker)
# --------------------------------------------------------------
AM_PATH_PYTHON([2.7])
# --------------------------------------------------------------
# Check for vadpacker as distributed with Virtuoso
# Allow a manual override
# --------------------------------------------------------------
AC_ARG_WITH(
[vadpacker],
[AS_HELP_STRING(
[--with-vadpacker=DIR],
[Specify the full path to the vadpacker script to use. If not provided configure will search the PATH.])],
[
case "$withval" in
yes|no)
vadpacker_dir=$srcdir/vadpacker
;;
*)
vadpacker_dir="$withval"
;;
esac
],[vadpacker_dir=$srcdir/vadpacker])
abs_vadpacker_dir=`cd "$vadpacker_dir" && pwd`
AC_PATH_PROG([VADPACKER], [vadpacker.py], notfound, ["$abs_vadpacker_dir:$PATH"])
if test "x$VADPACKER" = "xnotfound"; then
AC_MSG_ERROR([cannot find vadpacker.py. Consider using --with-vadpacker=DIR])
fi
# --------------------------------------------------------------
# Allow to specify the installation vad dir
# --------------------------------------------------------------
AC_ARG_WITH(
[vaddir],
[AS_HELP_STRING(
[--with-vaddir=PATH],
[Specify the full path to where the vad packages should be installed. Defaults to DATADIR/virtuoso/vad.])],
[vaddir=${withval}],
[vaddir=$datadir/virtuoso/vad])
# Make all required variables available
AC_SUBST([vaddir])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
echo ""
echo "Configuration results:"
echo "----------------------"
echo "VAD version: $PACKAGE_VERSION"
echo "Python: $PYTHON ($PYTHON_VERSION)"
echo "Vadpacker: $VADPACKER"
echo ""