aboutsummaryrefslogtreecommitdiffstats
path: root/configure
blob: ebd9bc8a3209fe9f42882a45fd04a7f8be404c9e (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
#! /bin/sh
# This is the configure script for Voluntocracy software projects,
# hosted at "http://people.csail.mit.edu/jaffer".  Parts are taken
# from a configure script generated by GNU Autoconf 2.63.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
#
# I place the rest in the public domain.
# Author: Aubrey Jaffer (2010)

# The "config.status" produced by this script differs from GNU
# conventions in that the value of every *dir variable has a trailing
# slash (/).

# Extract the PACKAGE_NAME, PACKAGE_TARNAME, and PACKAGE_VERSION from
# "version.txi", which is built by the project Makefile.
if test ! -f version.txi; then
    make version.txi
fi
version_txi=`cat version.txi | sed 1q`
mywd=`pwd`

PACKAGE_NAME=`expr "X$version_txi" : 'X@set \([A-Z]*\)VERSION .*' | tr '[A-Z]' '[a-z]'`
PACKAGE_TARNAME=`expr "X$mywd" : '.*/\([A-Za-z]*\)'`
if echo "$PACKAGE_TARNAME" | grep -iq "$PACKAGE_NAME"; then
    if ! echo "$PACKAGE_NAME" | grep -iq "$PACKAGE_TARNAME"; then
	PACKAGE_TARNAME=$PACKAGE_NAME
    fi
fi
PACKAGE_VERSION=`expr "X$version_txi" : '.*VERSION \([0-9a-z]*\)'`
PACKAGE_STRING="$PACKAGE_TARNAME $PACKAGE_VERSION"
PACKAGE_BUGREPORT="$PACKAGE_TARNAME-discuss@gnu.org"

CONFIG_STATUS="config.status"
ac_default_prefix=/usr/local/
ac_init_version=false
srcdir=`pwd`
silent=
no_create=

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
prefix=$ac_default_prefix
exec_prefix='${prefix}'
bindir='${exec_prefix}bin/'
sbindir='${exec_prefix}sbin/'
libexecdir='${exec_prefix}libexec/'
datarootdir='${prefix}share/'
datadir='${datarootdir}'
sysconfdir='${prefix}etc/'
sharedstatedir='${prefix}com/'
localstatedir='${prefix}var/'
includedir='${prefix}include/'
oldincludedir='/usr/include/'
docdir='${datarootdir}doc/${PACKAGE_TARNAME}/'
infodir='${datarootdir}info/'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}lib/'
localedir='${datarootdir}locale/'
mandir='${datarootdir}man/'
snapdir='${srcdir}'
distdir='${srcdir}'

ac_subst_vars='PACKAGE_NAME
PACKAGE_TARNAME
PACKAGE_VERSION
PACKAGE_STRING
PACKAGE_BUGREPORT
srcdir
prefix
exec_prefix
bindir
sbindir
libexecdir
datarootdir
datadir
sysconfdir
sharedstatedir
localstatedir
includedir
oldincludedir
docdir
infodir
htmldir
dvidir
pdfdir
psdir
libdir
localedir
mandir
distdir
snapdir'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *)	ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  # Handling of the options.
  -version | --version | -V)
    ac_init_version=: ;;

  -bindir | --bindir)
    ac_prev=bindir ;;
  -bindir=* | --bindir=*)
    bindir=$ac_optarg ;;

  -datadir | --datadir)
    ac_prev=datadir ;;
  -datadir=* | --datadir=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=*)
    datarootdir=$ac_optarg ;;

  -distdir | --distdir)
    ac_prev=distdir ;;
  -distdir=* | --distdir=*)
    distdir=$ac_optarg ;;

  -docdir | --docdir)
    ac_prev=docdir ;;
  -docdir=* | --docdir=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=*)
    dvidir=$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | -exec_prefix)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | -exec_prefix=*)
    exec_prefix=$ac_optarg ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;

  -htmldir | --htmldir)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir)
    ac_prev=includedir ;;
  -includedir=* | --includedir=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir)
    ac_prev=infodir ;;
  -infodir=* | --infodir=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir)
    ac_prev=libdir ;;
  -libdir=* | --libdir=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir)
    ac_prev=localedir ;;
  -localedir=* | --localedir=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir)
    ac_prev=mandir ;;
  -mandir=* | --mandir=*)
    mandir=$ac_optarg ;;

  -no-create | --no-create | -n)
    no_create=yes ;;

  -oldincludedir | --oldincludedir)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix)
    ac_prev=prefix ;;
  -prefix=* | --prefix=*)
    prefix=$ac_optarg ;;

  -pdfdir | --pdfdir)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir)
    ac_prev=psdir ;;
  -psdir=* | --psdir=*)
    psdir=$ac_optarg ;;

  -snapdir | --snapdir)
    ac_prev=snapdir ;;
  -snapdir=* | --snapdir=*)
    snapdir=$ac_optarg ;;

  -q | -quiet | --quiet | --q | -silent | --silent)
    silent=yes ;;

  -sbindir | --sbindir)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=*)
    sharedstatedir=$ac_optarg ;;

  -srcdir | --srcdir)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=*)
    sysconfdir=$ac_optarg ;;

  *) { echo "error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;
  esac
  shift
done

# Now take action based on given options.

if test "$ac_init_help" = "long"; then

    cat <<_ACEOF
\`configure' configures $PACKAGE_STRING installation.

Usage: $0 [OPTION]...

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print configuration
  -n, --no-create         do not create output file
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/$PACKAGE_TARNAME]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

  --snapdir=DIR           development snapshot destination [configure dir]
  --distdir=DIR           release distribution destination [configure dir]
_ACEOF

exit
fi

if $ac_init_version; then
    echo "$PACKAGE_NAME configure $PACKAGE_VERSION"
    exit
fi

# Check all directory arguments for consistency.
for ac_var in srcdir exec_prefix prefix bindir sbindir libexecdir \
    datarootdir datadir sysconfdir sharedstatedir localstatedir \
    includedir oldincludedir docdir infodir htmldir dvidir pdfdir \
    psdir libdir localedir mandir snapdir distdir
do
    eval ac_val=\$$ac_var
    # Assure trailing slashes.
    case $ac_val in
	*[}/] ) ;;
	* )
	ac_val="$ac_val""/"
	eval $ac_var=\$ac_val;;
    esac
    # Be sure to have absolute directory names.
    case $ac_val in
	[\\/$]* | ?:[\\/]* ) continue;;
	* )
	    case $ac_var in
		*prefix | *srcdir | *snapdir | *distdir) continue;;
	    esac;;
    esac
    { echo "error: expected an absolute directory name for --$ac_var: $ac_val" >&2
	{ (exit 1); exit 1; }; }
done

if test "$no_create" != yes; then
    echo "#! /bin/cat
# Generated by configure for $PACKAGE_NAME $PACKAGE_VERSION.
# This file ($CONFIG_STATUS) is included by the ($PACKAGE_TARNAME) Makefile.
" > $CONFIG_STATUS
    for ac_var in $ac_subst_vars
    do
	eval ac_val=\$$ac_var
	echo "$ac_var=$ac_val" >> $CONFIG_STATUS
    done
    chmod +x $CONFIG_STATUS
    if test "$silent" != yes; then cat $CONFIG_STATUS; fi
else
    if test "$silent" != yes; then
	echo "This is the $CONFIG_STATUS file which would have been created:
# Generated by configure for $PACKAGE_NAME $PACKAGE_VERSION.
# This file is included by the Makefile.
"
	for ac_var in $ac_subst_vars
	do
	    eval ac_val=\$$ac_var
	    echo "$ac_var=$ac_val"
	done
    fi
fi