~ubuntu-branches/ubuntu/maverick/globus-core/maverick

« back to all changes in this revision

Viewing changes to .pc/globus-core-helpstring.patch/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Mattias Ellert
  • Date: 2010-06-04 04:43:29 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100604044329-lqbxy6je6l1m517l
Tags: 5.16-2
Converting to package format 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_REVISION($Revision: 1.51 $)
 
2
AC_INIT(Makefile.am)
 
3
AC_CONFIG_AUX_DIR(config)
 
4
 
 
5
if test "x$GPT_LOCATION" = "x"; then
 
6
    GPT_LOCATION=/usr
 
7
fi
 
8
 
 
9
ac_default_prefix=${GLOBUS_LOCATION:-$ac_default_prefix}
 
10
 
 
11
AC_GNU_SOURCE
 
12
 
 
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)
 
16
SAVED_CC="$CC"
 
17
SAVED_CFLAGS="$CFLAGS"
 
18
 
 
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
 
21
unset OBJECT_MODE
 
22
 
 
23
# Call init macros
 
24
 
 
25
GPT_INIT
 
26
AM_INIT_AUTOMAKE($GPT_NAME, $GPT_VERSION,0)
 
27
AM_MAINTAINER_MODE
 
28
AM_CONFIG_HEADER(globus_config.h:globus_config.h.in)
 
29
 
 
30
AC_ARG_WITH(
 
31
    flavor,
 
32
    [  --with-flavor                 Globus flavor string],
 
33
    [globus_cv_flavor="$withval"],
 
34
    [globus_cv_flavor="notset"])
 
35
 
 
36
 
 
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!])
 
41
fi
 
42
  
 
43
AC_ARG_WITH([setupdir],
 
44
AC_HELP_STRING([--with-setupdir=DIR],
 
45
[setup installation directory [[PREFIX/setup/globus]]]),
 
46
[
 
47
    if test x$withval = "xno" -o x$withval = "xyes" ; then
 
48
        AC_MSG_ERROR([--with-setupdir requires an argument])
 
49
    fi
 
50
    setupdir=$withval
 
51
],
 
52
[
 
53
    setupdir='${prefix}/setup/globus'
 
54
])
 
55
AC_SUBST(setupdir)
 
56
 
 
57
AC_ARG_WITH([testdir],
 
58
AC_HELP_STRING([--with-testdir=DIR],
 
59
[test installation directory [[PREFIX/test/PACKAGE]]]),
 
60
[
 
61
    if test x$withval = "xno" -o x$withval = "xyes" ; then
 
62
        AC_MSG_ERROR([--with-testdir requires an argument])
 
63
    fi
 
64
    testdir=$withval
 
65
],
 
66
[
 
67
    testdir='${prefix}/test/${PACKAGE}'
 
68
])
 
69
AC_SUBST(testdir)
 
70
 
 
71
AC_ARG_WITH([flavorincludedir],
 
72
AC_HELP_STRING([--with-flavorincludedir=DIR],
 
73
[flavored header installation directory [[INCLUDEDIR/FLAVOR]]]),
 
74
[
 
75
    if test x$withval = "xno" -o x$withval = "xyes" ; then
 
76
        AC_MSG_ERROR([--with-flavorincludedir requires an argument])
 
77
    fi
 
78
    flavorincludedir=$withval
 
79
],
 
80
[
 
81
    flavorincludedir='${includedir}/${GLOBUS_FLAVOR_NAME}'
 
82
])
 
83
AC_SUBST(flavorincludedir)
 
84
 
 
85
AC_ARG_WITH([perlmoduledir],
 
86
AC_HELP_STRING([--with-perlmoduledir=DIR],
 
87
[perl module directory [[PREFIX/lib/perl]]]),
 
88
[
 
89
    if test x$withval = "xno" -o x$withval = "xyes" ; then
 
90
        AC_MSG_ERROR([--with-perlmoduledir requires an argument])
 
91
    fi
 
92
    perlmoduledir=$withval
 
93
],
 
94
[
 
95
    perlmoduledir='${prefix}/lib/perl'
 
96
])
 
97
AC_SUBST(perlmoduledir)
 
98
 
 
99
AC_ARG_WITH([doxygendir],
 
100
AC_HELP_STRING([--with-doxygendir=DIR],
 
101
[doxygen installation directory [[DATADIR/doxygen]]]),
 
102
[
 
103
    if test x$withval = "xno" -o x$withval = "xyes" ; then
 
104
        AC_MSG_ERROR([--with-doxygendir requires an argument])
 
105
    fi
 
106
    doxygendir=$withval
 
107
],
 
108
[
 
109
    doxygendir='${datadir}/doxygen'
 
110
])
 
111
AC_SUBST(doxygendir)
 
112
 
 
113
AC_ARG_WITH([newgpt],
 
114
AC_HELP_STRING([--with-newgpt], [Use installation paths from new GPT]),
 
115
[
 
116
    if test x$withval = "xno" ; then
 
117
        aclocaldir='${datadir}/globus_aclocal'
 
118
        pkgdir='${sysconfdir}/globus_packages/${PACKAGE}'
 
119
        flavordir='${sysconfdir}/globus_core'
 
120
    else
 
121
        aclocaldir='${datadir}/globus/aclocal'
 
122
        pkgdir='${datadir}/globus/packages/${PACKAGE}'
 
123
        flavordir='${datadir}/globus/flavors'
 
124
    fi
 
125
],
 
126
[
 
127
    aclocaldir='${datadir}/globus_aclocal'
 
128
    pkgdir='${sysconfdir}/globus_packages/${PACKAGE}'
 
129
    flavordir='${sysconfdir}/globus_core'
 
130
])
 
131
AC_SUBST(aclocaldir)
 
132
AC_SUBST(pkgdir)
 
133
AC_SUBST(flavordir)
 
134
 
 
135
GLOBUS_FLAVOR_NAME=$globus_cv_flavor
 
136
AC_SUBST(GLOBUS_FLAVOR_NAME)
 
137
 
 
138
LAC_COMPILERS
 
139
LAC_TARGET_ARCH
 
140
AC_SYS_LARGEFILE
 
141
CHECK_HEADERS
 
142
CHECK_FUNCS
 
143
CHECK_FOR_TIMESPEC
 
144
CHECK_FOR_IOVEC
 
145
CHECK_FOR_ATEXIT
 
146
CHECK_FOR_MEMMOVE
 
147
CHECK_SIZES
 
148
 
 
149
if test "X$GPT_LINKTYPE" = "Xstatic"; then
 
150
    AC_DEFINE(BUILD_STATIC_ONLY)
 
151
fi
 
152
 
 
153
dnl define FILELIST_FILE variable
 
154
FILELIST_FILE=`pwd`;
 
155
FILELIST_FILE="$FILELIST_FILE/pkgdata/master.filelist"
 
156
AC_SUBST(FILELIST_FILE)
 
157
 
 
158
dnl go look for perl
 
159
if test "x$PERL" = "x"; then
 
160
        AC_PATH_PROG(PERL,perl)
 
161
fi
 
162
 
 
163
 
 
164
AC_ARG_ENABLE(internal-doc,
 
165
[  --enable-am-depends          Enable automake dependency caching.
 
166
                                (Requires gcc, developers only)],
 
167
[
 
168
        if test "X$GCC" = "Xyes"; then
 
169
                AUTOMAKE_OPTS=""
 
170
        else
 
171
                AUTOMAKE_OPTS="no-dependencies"
 
172
        fi
 
173
],
 
174
[
 
175
        AUTOMAKE_OPTS="no-dependencies"
 
176
])
 
177
 
 
178
AC_SUBST(AUTOMAKE_OPTS)
 
179
 
 
180
 
 
181
AM_PROG_LIBTOOL
 
182
mv ./libtool libtool-$GLOBUS_FLAVOR_NAME
 
183
 
 
184
dnl
 
185
dnl Output selected thread package
 
186
dnl
 
187
GLOBUS_THREADS=$lac_cv_threads_type
 
188
if test "$GLOBUS_THREADS" = "no" ; then
 
189
    GLOBUS_THREADS=none
 
190
fi
 
191
 
 
192
AC_SUBST(GLOBUS_THREADS)
 
193
 
 
194
dnl Automake is using these for executables somehow
 
195
AC_OBJEXT
 
196
AC_EXEEXT
 
197
 
 
198
dnl Save the flavor metadata
 
199
CONFIG_PARAMETERS="$ac_configure_args"
 
200
AC_SUBST(CONFIG_PARAMETERS)
 
201
 
 
202
ISGCC=$ac_cv_prog_gcc
 
203
AC_SUBST(ISGCC)
 
204
 
 
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
 
208
    LD="$lt_cv_path_LD"
 
209
    AC_SUBST(LD)
 
210
fi
 
211
 
 
212
AC_OUTPUT(Makefile
 
213
        scripts/globus-build-env-$GLOBUS_FLAVOR_NAME.sh:scripts/globus-build-env.sh.in
 
214
        scripts/globus-build-env-noflavor.sh
 
215
        scripts/Makefile
 
216
        aclocal/Makefile
 
217
        aclocal/automake_config
 
218
        config/Makefile
 
219
        doxygen/Makefile
 
220
        pkgdata/Makefile
 
221
        pkgdata/pkg_data_src.gpt
 
222
        pkgdata/build-parameters
 
223
        )
 
224