1
AC_REVISION($Revision: 1.51 $)
3
AC_CONFIG_AUX_DIR(config)
5
if test "x$GPT_LOCATION" = "x"; then
9
ac_default_prefix=${GLOBUS_LOCATION:-$ac_default_prefix}
13
# save CC and CFLAGS, so AC_PROG_CC can detect and use a compiler
14
# up to the point where we want to pick a compiler based on the
15
# flavor (see config/accompiler.m4)
17
SAVED_CFLAGS="$CFLAGS"
19
# AIX: we don't want OBJECT_MODE to affect the compiler detection
20
# if gcc is found and OBJECT_MODE=64, things will likely fail
26
AM_INIT_AUTOMAKE($GPT_NAME, $GPT_VERSION,0)
28
AM_CONFIG_HEADER(globus_config.h:globus_config.h.in)
32
[ --with-flavor Globus flavor string],
33
[globus_cv_flavor="$withval"],
34
[globus_cv_flavor="notset"])
37
if test "$globus_cv_flavor" = "notset" \
38
-o "$globus_cv_flavor" = "no" \
39
-o "$globus_cv_flavor" = "yes" ; then
40
AC_MSG_ERROR([A flavor description string must be specified!])
43
AC_ARG_WITH([setupdir],
44
AC_HELP_STRING([--with-setupdir=DIR],
45
[setup installation directory [[PREFIX/setup/globus]]]),
47
if test x$withval = "xno" -o x$withval = "xyes" ; then
48
AC_MSG_ERROR([--with-setupdir requires an argument])
53
setupdir='${prefix}/setup/globus'
57
AC_ARG_WITH([testdir],
58
AC_HELP_STRING([--with-testdir=DIR],
59
[test installation directory [[PREFIX/test/PACKAGE]]]),
61
if test x$withval = "xno" -o x$withval = "xyes" ; then
62
AC_MSG_ERROR([--with-testdir requires an argument])
67
testdir='${prefix}/test/${PACKAGE}'
71
AC_ARG_WITH([flavorincludedir],
72
AC_HELP_STRING([--with-flavorincludedir=DIR],
73
[flavored header installation directory [[INCLUDEDIR/FLAVOR]]]),
75
if test x$withval = "xno" -o x$withval = "xyes" ; then
76
AC_MSG_ERROR([--with-flavorincludedir requires an argument])
78
flavorincludedir=$withval
81
flavorincludedir='${includedir}/${GLOBUS_FLAVOR_NAME}'
83
AC_SUBST(flavorincludedir)
85
AC_ARG_WITH([perlmoduledir],
86
AC_HELP_STRING([--with-perlmoduledir=DIR],
87
[perl module directory [[PREFIX/lib/perl]]]),
89
if test x$withval = "xno" -o x$withval = "xyes" ; then
90
AC_MSG_ERROR([--with-perlmoduledir requires an argument])
92
perlmoduledir=$withval
95
perlmoduledir='${prefix}/lib/perl'
97
AC_SUBST(perlmoduledir)
99
AC_ARG_WITH([doxygendir],
100
AC_HELP_STRING([--with-doxygendir=DIR],
101
[doxygen installation directory [[DATADIR/doxygen]]]),
103
if test x$withval = "xno" -o x$withval = "xyes" ; then
104
AC_MSG_ERROR([--with-doxygendir requires an argument])
109
doxygendir='${datadir}/doxygen'
113
AC_ARG_WITH([newgpt],
114
AC_HELP_STRING([--with-newgpt], [Use installation paths from new GPT]),
116
if test x$withval = "xno" ; then
117
aclocaldir='${datadir}/globus_aclocal'
118
pkgdir='${sysconfdir}/globus_packages/${PACKAGE}'
119
flavordir='${sysconfdir}/globus_core'
121
aclocaldir='${datadir}/globus/aclocal'
122
pkgdir='${datadir}/globus/packages/${PACKAGE}'
123
flavordir='${datadir}/globus/flavors'
127
aclocaldir='${datadir}/globus_aclocal'
128
pkgdir='${sysconfdir}/globus_packages/${PACKAGE}'
129
flavordir='${sysconfdir}/globus_core'
135
GLOBUS_FLAVOR_NAME=$globus_cv_flavor
136
AC_SUBST(GLOBUS_FLAVOR_NAME)
149
if test "X$GPT_LINKTYPE" = "Xstatic"; then
150
AC_DEFINE(BUILD_STATIC_ONLY)
153
dnl define FILELIST_FILE variable
155
FILELIST_FILE="$FILELIST_FILE/pkgdata/master.filelist"
156
AC_SUBST(FILELIST_FILE)
159
if test "x$PERL" = "x"; then
160
AC_PATH_PROG(PERL,perl)
164
AC_ARG_ENABLE(internal-doc,
165
[ --enable-am-depends Enable automake dependency caching.
166
(Requires gcc, developers only)],
168
if test "X$GCC" = "Xyes"; then
171
AUTOMAKE_OPTS="no-dependencies"
175
AUTOMAKE_OPTS="no-dependencies"
178
AC_SUBST(AUTOMAKE_OPTS)
182
mv ./libtool libtool-$GLOBUS_FLAVOR_NAME
185
dnl Output selected thread package
187
GLOBUS_THREADS=$lac_cv_threads_type
188
if test "$GLOBUS_THREADS" = "no" ; then
192
AC_SUBST(GLOBUS_THREADS)
194
dnl Automake is using these for executables somehow
198
dnl Save the flavor metadata
199
CONFIG_PARAMETERS="$ac_configure_args"
200
AC_SUBST(CONFIG_PARAMETERS)
202
ISGCC=$ac_cv_prog_gcc
205
dnl Another hack - set LD to whatever libtool picked up, so that
206
dnl it can be registered in build-parameters
207
if test "x-$lt_cv_path_LD" != "x-"; then
213
scripts/globus-build-env-$GLOBUS_FLAVOR_NAME.sh:scripts/globus-build-env.sh.in
214
scripts/globus-build-env-noflavor.sh
217
aclocal/automake_config
221
pkgdata/pkg_data_src.gpt
222
pkgdata/build-parameters