~ubuntu-branches/ubuntu/lucid/camomile/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Le Gall
  • Date: 2005-12-03 01:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20051203011855-qzvwlld1xyqnl62t
Tags: upstream-0.6.3
ImportĀ upstreamĀ versionĀ 0.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
--enable-debug  put debugging information to bytecode. [default YES]"
 
16
ac_help="$ac_help
 
17
--enable-profile        put profiling information to nativecode. [default NO]"
 
18
 
 
19
# Initialize some variables set by options.
 
20
# The variables have the same names as the options, with
 
21
# dashes changed to underlines.
 
22
build=NONE
 
23
cache_file=./config.cache
 
24
exec_prefix=NONE
 
25
host=NONE
 
26
no_create=
 
27
nonopt=NONE
 
28
no_recursion=
 
29
prefix=NONE
 
30
program_prefix=NONE
 
31
program_suffix=NONE
 
32
program_transform_name=s,x,x,
 
33
silent=
 
34
site=
 
35
srcdir=
 
36
target=NONE
 
37
verbose=
 
38
x_includes=NONE
 
39
x_libraries=NONE
 
40
bindir='${exec_prefix}/bin'
 
41
sbindir='${exec_prefix}/sbin'
 
42
libexecdir='${exec_prefix}/libexec'
 
43
datadir='${prefix}/share'
 
44
sysconfdir='${prefix}/etc'
 
45
sharedstatedir='${prefix}/com'
 
46
localstatedir='${prefix}/var'
 
47
libdir='${exec_prefix}/lib'
 
48
includedir='${prefix}/include'
 
49
oldincludedir='/usr/include'
 
50
infodir='${prefix}/info'
 
51
mandir='${prefix}/man'
 
52
 
 
53
# Initialize some other variables.
 
54
subdirs=
 
55
MFLAGS= MAKEFLAGS=
 
56
SHELL=${CONFIG_SHELL-/bin/sh}
 
57
# Maximum number of lines to put in a shell here document.
 
58
ac_max_here_lines=12
 
59
 
 
60
ac_prev=
 
61
for ac_option
 
62
do
 
63
 
 
64
  # If the previous option needs an argument, assign it.
 
65
  if test -n "$ac_prev"; then
 
66
    eval "$ac_prev=\$ac_option"
 
67
    ac_prev=
 
68
    continue
 
69
  fi
 
70
 
 
71
  case "$ac_option" in
 
72
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
73
  *) ac_optarg= ;;
 
74
  esac
 
75
 
 
76
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
77
 
 
78
  case "$ac_option" in
 
79
 
 
80
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
81
    ac_prev=bindir ;;
 
82
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
83
    bindir="$ac_optarg" ;;
 
84
 
 
85
  -build | --build | --buil | --bui | --bu)
 
86
    ac_prev=build ;;
 
87
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
88
    build="$ac_optarg" ;;
 
89
 
 
90
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
91
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
92
    ac_prev=cache_file ;;
 
93
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
94
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
95
    cache_file="$ac_optarg" ;;
 
96
 
 
97
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
98
    ac_prev=datadir ;;
 
99
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
100
  | --da=*)
 
101
    datadir="$ac_optarg" ;;
 
102
 
 
103
  -disable-* | --disable-*)
 
104
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
105
    # Reject names that are not valid shell variable names.
 
106
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
107
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
108
    fi
 
109
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
110
    eval "enable_${ac_feature}=no" ;;
 
111
 
 
112
  -enable-* | --enable-*)
 
113
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
114
    # Reject names that are not valid shell variable names.
 
115
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
116
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
117
    fi
 
118
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
119
    case "$ac_option" in
 
120
      *=*) ;;
 
121
      *) ac_optarg=yes ;;
 
122
    esac
 
123
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
124
 
 
125
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
126
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
127
  | --exec | --exe | --ex)
 
128
    ac_prev=exec_prefix ;;
 
129
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
130
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
131
  | --exec=* | --exe=* | --ex=*)
 
132
    exec_prefix="$ac_optarg" ;;
 
133
 
 
134
  -gas | --gas | --ga | --g)
 
135
    # Obsolete; use --with-gas.
 
136
    with_gas=yes ;;
 
137
 
 
138
  -help | --help | --hel | --he)
 
139
    # Omit some internal or obsolete options to make the list less imposing.
 
140
    # This message is too long to be a string in the A/UX 3.1 sh.
 
141
    cat << EOF
 
142
Usage: configure [options] [host]
 
143
Options: [defaults in brackets after descriptions]
 
144
Configuration:
 
145
  --cache-file=FILE       cache test results in FILE
 
146
  --help                  print this message
 
147
  --no-create             do not create output files
 
148
  --quiet, --silent       do not print \`checking...' messages
 
149
  --version               print the version of autoconf that created configure
 
150
Directory and file names:
 
151
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
152
                          [$ac_default_prefix]
 
153
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
154
                          [same as prefix]
 
155
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
156
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
157
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
158
  --datadir=DIR           read-only architecture-independent data in DIR
 
159
                          [PREFIX/share]
 
160
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
161
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
162
                          [PREFIX/com]
 
163
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
164
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
165
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
166
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
167
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
168
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
169
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
170
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
171
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
172
  --program-transform-name=PROGRAM
 
173
                          run sed PROGRAM on installed program names
 
174
EOF
 
175
    cat << EOF
 
176
Host type:
 
177
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
178
  --host=HOST             configure for HOST [guessed]
 
179
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
180
Features and packages:
 
181
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
182
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
183
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
184
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
185
  --x-includes=DIR        X include files are in DIR
 
186
  --x-libraries=DIR       X library files are in DIR
 
187
EOF
 
188
    if test -n "$ac_help"; then
 
189
      echo "--enable and --with options recognized:$ac_help"
 
190
    fi
 
191
    exit 0 ;;
 
192
 
 
193
  -host | --host | --hos | --ho)
 
194
    ac_prev=host ;;
 
195
  -host=* | --host=* | --hos=* | --ho=*)
 
196
    host="$ac_optarg" ;;
 
197
 
 
198
  -includedir | --includedir | --includedi | --included | --include \
 
199
  | --includ | --inclu | --incl | --inc)
 
200
    ac_prev=includedir ;;
 
201
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
202
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
203
    includedir="$ac_optarg" ;;
 
204
 
 
205
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
206
    ac_prev=infodir ;;
 
207
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
208
    infodir="$ac_optarg" ;;
 
209
 
 
210
  -libdir | --libdir | --libdi | --libd)
 
211
    ac_prev=libdir ;;
 
212
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
213
    libdir="$ac_optarg" ;;
 
214
 
 
215
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
216
  | --libexe | --libex | --libe)
 
217
    ac_prev=libexecdir ;;
 
218
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
219
  | --libexe=* | --libex=* | --libe=*)
 
220
    libexecdir="$ac_optarg" ;;
 
221
 
 
222
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
223
  | --localstate | --localstat | --localsta | --localst \
 
224
  | --locals | --local | --loca | --loc | --lo)
 
225
    ac_prev=localstatedir ;;
 
226
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
227
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
228
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
229
    localstatedir="$ac_optarg" ;;
 
230
 
 
231
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
232
    ac_prev=mandir ;;
 
233
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
234
    mandir="$ac_optarg" ;;
 
235
 
 
236
  -nfp | --nfp | --nf)
 
237
    # Obsolete; use --without-fp.
 
238
    with_fp=no ;;
 
239
 
 
240
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
241
  | --no-cr | --no-c)
 
242
    no_create=yes ;;
 
243
 
 
244
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
245
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
246
    no_recursion=yes ;;
 
247
 
 
248
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
249
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
250
  | --oldin | --oldi | --old | --ol | --o)
 
251
    ac_prev=oldincludedir ;;
 
252
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
253
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
254
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
255
    oldincludedir="$ac_optarg" ;;
 
256
 
 
257
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
258
    ac_prev=prefix ;;
 
259
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
260
    prefix="$ac_optarg" ;;
 
261
 
 
262
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
263
  | --program-pre | --program-pr | --program-p)
 
264
    ac_prev=program_prefix ;;
 
265
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
266
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
267
    program_prefix="$ac_optarg" ;;
 
268
 
 
269
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
270
  | --program-suf | --program-su | --program-s)
 
271
    ac_prev=program_suffix ;;
 
272
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
273
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
274
    program_suffix="$ac_optarg" ;;
 
275
 
 
276
  -program-transform-name | --program-transform-name \
 
277
  | --program-transform-nam | --program-transform-na \
 
278
  | --program-transform-n | --program-transform- \
 
279
  | --program-transform | --program-transfor \
 
280
  | --program-transfo | --program-transf \
 
281
  | --program-trans | --program-tran \
 
282
  | --progr-tra | --program-tr | --program-t)
 
283
    ac_prev=program_transform_name ;;
 
284
  -program-transform-name=* | --program-transform-name=* \
 
285
  | --program-transform-nam=* | --program-transform-na=* \
 
286
  | --program-transform-n=* | --program-transform-=* \
 
287
  | --program-transform=* | --program-transfor=* \
 
288
  | --program-transfo=* | --program-transf=* \
 
289
  | --program-trans=* | --program-tran=* \
 
290
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
291
    program_transform_name="$ac_optarg" ;;
 
292
 
 
293
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
294
  | -silent | --silent | --silen | --sile | --sil)
 
295
    silent=yes ;;
 
296
 
 
297
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
298
    ac_prev=sbindir ;;
 
299
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
300
  | --sbi=* | --sb=*)
 
301
    sbindir="$ac_optarg" ;;
 
302
 
 
303
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
304
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
305
  | --sharedst | --shareds | --shared | --share | --shar \
 
306
  | --sha | --sh)
 
307
    ac_prev=sharedstatedir ;;
 
308
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
309
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
310
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
311
  | --sha=* | --sh=*)
 
312
    sharedstatedir="$ac_optarg" ;;
 
313
 
 
314
  -site | --site | --sit)
 
315
    ac_prev=site ;;
 
316
  -site=* | --site=* | --sit=*)
 
317
    site="$ac_optarg" ;;
 
318
 
 
319
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
320
    ac_prev=srcdir ;;
 
321
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
322
    srcdir="$ac_optarg" ;;
 
323
 
 
324
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
325
  | --syscon | --sysco | --sysc | --sys | --sy)
 
326
    ac_prev=sysconfdir ;;
 
327
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
328
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
329
    sysconfdir="$ac_optarg" ;;
 
330
 
 
331
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
332
    ac_prev=target ;;
 
333
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
334
    target="$ac_optarg" ;;
 
335
 
 
336
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
337
    verbose=yes ;;
 
338
 
 
339
  -version | --version | --versio | --versi | --vers)
 
340
    echo "configure generated by autoconf version 2.13"
 
341
    exit 0 ;;
 
342
 
 
343
  -with-* | --with-*)
 
344
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
345
    # Reject names that are not valid shell variable names.
 
346
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
347
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
348
    fi
 
349
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
350
    case "$ac_option" in
 
351
      *=*) ;;
 
352
      *) ac_optarg=yes ;;
 
353
    esac
 
354
    eval "with_${ac_package}='$ac_optarg'" ;;
 
355
 
 
356
  -without-* | --without-*)
 
357
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
358
    # Reject names that are not valid shell variable names.
 
359
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
360
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
361
    fi
 
362
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
363
    eval "with_${ac_package}=no" ;;
 
364
 
 
365
  --x)
 
366
    # Obsolete; use --with-x.
 
367
    with_x=yes ;;
 
368
 
 
369
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
370
  | --x-incl | --x-inc | --x-in | --x-i)
 
371
    ac_prev=x_includes ;;
 
372
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
373
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
374
    x_includes="$ac_optarg" ;;
 
375
 
 
376
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
377
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
378
    ac_prev=x_libraries ;;
 
379
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
380
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
381
    x_libraries="$ac_optarg" ;;
 
382
 
 
383
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
384
    ;;
 
385
 
 
386
  *)
 
387
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
388
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
389
    fi
 
390
    if test "x$nonopt" != xNONE; then
 
391
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
392
    fi
 
393
    nonopt="$ac_option"
 
394
    ;;
 
395
 
 
396
  esac
 
397
done
 
398
 
 
399
if test -n "$ac_prev"; then
 
400
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
401
fi
 
402
 
 
403
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
404
 
 
405
# File descriptor usage:
 
406
# 0 standard input
 
407
# 1 file creation
 
408
# 2 errors and warnings
 
409
# 3 some systems may open it to /dev/tty
 
410
# 4 used on the Kubota Titan
 
411
# 6 checking for... messages and results
 
412
# 5 compiler messages saved in config.log
 
413
if test "$silent" = yes; then
 
414
  exec 6>/dev/null
 
415
else
 
416
  exec 6>&1
 
417
fi
 
418
exec 5>./config.log
 
419
 
 
420
echo "\
 
421
This file contains any messages produced by compilers while
 
422
running configure, to aid debugging if configure makes a mistake.
 
423
" 1>&5
 
424
 
 
425
# Strip out --no-create and --no-recursion so they do not pile up.
 
426
# Also quote any args containing shell metacharacters.
 
427
ac_configure_args=
 
428
for ac_arg
 
429
do
 
430
  case "$ac_arg" in
 
431
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
432
  | --no-cr | --no-c) ;;
 
433
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
434
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
435
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
436
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
437
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
438
  esac
 
439
done
 
440
 
 
441
# NLS nuisances.
 
442
# Only set these to C if already set.  These must not be set unconditionally
 
443
# because not all systems understand e.g. LANG=C (notably SCO).
 
444
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
445
# Non-C LC_CTYPE values break the ctype check.
 
446
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
447
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
448
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
449
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
450
 
 
451
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
452
rm -rf conftest* confdefs.h
 
453
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
454
echo > confdefs.h
 
455
 
 
456
# A filename unique to this package, relative to the directory that
 
457
# configure is in, which we can look for to find out if srcdir is correct.
 
458
ac_unique_file=public/uChar.mli
 
459
 
 
460
# Find the source files, if location was not specified.
 
461
if test -z "$srcdir"; then
 
462
  ac_srcdir_defaulted=yes
 
463
  # Try the directory containing this script, then its parent.
 
464
  ac_prog=$0
 
465
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
466
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
467
  srcdir=$ac_confdir
 
468
  if test ! -r $srcdir/$ac_unique_file; then
 
469
    srcdir=..
 
470
  fi
 
471
else
 
472
  ac_srcdir_defaulted=no
 
473
fi
 
474
if test ! -r $srcdir/$ac_unique_file; then
 
475
  if test "$ac_srcdir_defaulted" = yes; then
 
476
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
477
  else
 
478
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
479
  fi
 
480
fi
 
481
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
482
 
 
483
# Prefer explicitly selected file to automatically selected ones.
 
484
if test -z "$CONFIG_SITE"; then
 
485
  if test "x$prefix" != xNONE; then
 
486
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
487
  else
 
488
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
489
  fi
 
490
fi
 
491
for ac_site_file in $CONFIG_SITE; do
 
492
  if test -r "$ac_site_file"; then
 
493
    echo "loading site script $ac_site_file"
 
494
    . "$ac_site_file"
 
495
  fi
 
496
done
 
497
 
 
498
if test -r "$cache_file"; then
 
499
  echo "loading cache $cache_file"
 
500
  . $cache_file
 
501
else
 
502
  echo "creating cache $cache_file"
 
503
  > $cache_file
 
504
fi
 
505
 
 
506
ac_ext=c
 
507
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
508
ac_cpp='$CPP $CPPFLAGS'
 
509
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
510
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
511
cross_compiling=$ac_cv_prog_cc_cross
 
512
 
 
513
ac_exeext=
 
514
ac_objext=o
 
515
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
516
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
517
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
518
    ac_n= ac_c='
 
519
' ac_t='        '
 
520
  else
 
521
    ac_n=-n ac_c= ac_t=
 
522
  fi
 
523
else
 
524
  ac_n= ac_c='\c' ac_t=
 
525
fi
 
526
 
 
527
 
 
528
 
 
529
# Debug and Profiling
 
530
 
 
531
# Check whether --enable-debug or --disable-debug was given.
 
532
if test "${enable_debug+set}" = set; then
 
533
  enableval="$enable_debug"
 
534
  debug=$enableval
 
535
else
 
536
  debug=yes
 
537
fi
 
538
 
 
539
              
 
540
if test "$debug" = yes ; then DEBUG=-g; else DEBUG=; fi
 
541
 
 
542
# Check whether --enable-profile or --disable-profile was given.
 
543
if test "${enable_profile+set}" = set; then
 
544
  enableval="$enable_profile"
 
545
  profile=$enableval
 
546
else
 
547
  profile=no
 
548
fi
 
549
 
 
550
 
 
551
if test "$profile" = yes ; then PROFILE=-p; else PROFILE=; fi
 
552
 
 
553
# Check for Ocaml compilers
 
554
 
 
555
# we first look for ocamlc in the path; if not present, we fail
 
556
# Extract the first word of "ocamlc", so it can be a program name with args.
 
557
set dummy ocamlc; ac_word=$2
 
558
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
559
echo "configure:560: checking for $ac_word" >&5
 
560
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLC'+set}'`\" = set"; then
 
561
  echo $ac_n "(cached) $ac_c" 1>&6
 
562
else
 
563
  if test -n "$OCAMLC"; then
 
564
  ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
 
565
else
 
566
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
567
  ac_dummy="$PATH"
 
568
  for ac_dir in $ac_dummy; do
 
569
    test -z "$ac_dir" && ac_dir=.
 
570
    if test -f $ac_dir/$ac_word; then
 
571
      ac_cv_prog_OCAMLC="ocamlc"
 
572
      break
 
573
    fi
 
574
  done
 
575
  IFS="$ac_save_ifs"
 
576
  test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
 
577
fi
 
578
fi
 
579
OCAMLC="$ac_cv_prog_OCAMLC"
 
580
if test -n "$OCAMLC"; then
 
581
  echo "$ac_t""$OCAMLC" 1>&6
 
582
else
 
583
  echo "$ac_t""no" 1>&6
 
584
fi
 
585
 
 
586
if test "$OCAMLC" = no ; then
 
587
        { echo "configure: error: Cannot find ocamlc." 1>&2; exit 1; }
 
588
fi
 
589
 
 
590
# we extract Ocaml version number and library path
 
591
OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
 
592
echo "ocaml version is $OCAMLVERSION"
 
593
OCAMLLIB=`$OCAMLC -v | tail -1 | cut -f 4 -d " "`
 
594
echo "ocaml library path is $OCAMLLIB"
 
595
 
 
596
# then we look for ocamlopt; if not present, we issue a warning
 
597
# if the version is not the same, we also discard it
 
598
# we set OCAMLBEST to "opt" or "byte", whether ocamlopt is available or not
 
599
# Extract the first word of "ocamlopt", so it can be a program name with args.
 
600
set dummy ocamlopt; ac_word=$2
 
601
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
602
echo "configure:603: checking for $ac_word" >&5
 
603
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLOPT'+set}'`\" = set"; then
 
604
  echo $ac_n "(cached) $ac_c" 1>&6
 
605
else
 
606
  if test -n "$OCAMLOPT"; then
 
607
  ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
 
608
else
 
609
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
610
  ac_dummy="$PATH"
 
611
  for ac_dir in $ac_dummy; do
 
612
    test -z "$ac_dir" && ac_dir=.
 
613
    if test -f $ac_dir/$ac_word; then
 
614
      ac_cv_prog_OCAMLOPT="ocamlopt"
 
615
      break
 
616
    fi
 
617
  done
 
618
  IFS="$ac_save_ifs"
 
619
  test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
 
620
fi
 
621
fi
 
622
OCAMLOPT="$ac_cv_prog_OCAMLOPT"
 
623
if test -n "$OCAMLOPT"; then
 
624
  echo "$ac_t""$OCAMLOPT" 1>&6
 
625
else
 
626
  echo "$ac_t""no" 1>&6
 
627
fi
 
628
 
 
629
OCAMLBEST=byte
 
630
if test "$OCAMLOPT" = no ; then
 
631
        echo "configure: warning: Cannot find ocamlopt; bytecode compilation only." 1>&2
 
632
else
 
633
        echo $ac_n "checking ocamlopt version""... $ac_c" 1>&6
 
634
echo "configure:635: checking ocamlopt version" >&5
 
635
        TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
 
636
        if test "$TMPVERSION" != "$OCAMLVERSION" ; then
 
637
            echo "$ac_t""differs from ocamlc; ocamlopt discarded." 1>&6
 
638
            OCAMLOPT=no
 
639
        else
 
640
            echo "$ac_t""ok" 1>&6
 
641
            OCAMLBEST=opt
 
642
        fi
 
643
fi
 
644
 
 
645
# checking for ocamlc.opt
 
646
# Extract the first word of "ocamlc.opt", so it can be a program name with args.
 
647
set dummy ocamlc.opt; ac_word=$2
 
648
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
649
echo "configure:650: checking for $ac_word" >&5
 
650
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLCDOTOPT'+set}'`\" = set"; then
 
651
  echo $ac_n "(cached) $ac_c" 1>&6
 
652
else
 
653
  if test -n "$OCAMLCDOTOPT"; then
 
654
  ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
 
655
else
 
656
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
657
  ac_dummy="$PATH"
 
658
  for ac_dir in $ac_dummy; do
 
659
    test -z "$ac_dir" && ac_dir=.
 
660
    if test -f $ac_dir/$ac_word; then
 
661
      ac_cv_prog_OCAMLCDOTOPT="ocamlc.opt"
 
662
      break
 
663
    fi
 
664
  done
 
665
  IFS="$ac_save_ifs"
 
666
  test -z "$ac_cv_prog_OCAMLCDOTOPT" && ac_cv_prog_OCAMLCDOTOPT="no"
 
667
fi
 
668
fi
 
669
OCAMLCDOTOPT="$ac_cv_prog_OCAMLCDOTOPT"
 
670
if test -n "$OCAMLCDOTOPT"; then
 
671
  echo "$ac_t""$OCAMLCDOTOPT" 1>&6
 
672
else
 
673
  echo "$ac_t""no" 1>&6
 
674
fi
 
675
 
 
676
if test "$OCAMLCDOTOPT" != no ; then
 
677
        echo $ac_n "checking ocamlc.opt version""... $ac_c" 1>&6
 
678
echo "configure:679: checking ocamlc.opt version" >&5
 
679
        TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
 
680
        if test "$TMPVERSION" != "$OCAMLVERSION" ; then
 
681
            echo "$ac_t""differs from ocamlc; ocamlc.opt discarded." 1>&6
 
682
        else
 
683
            echo "$ac_t""ok" 1>&6
 
684
            OCAMLC=$OCAMLCDOTOPT
 
685
        fi
 
686
fi
 
687
 
 
688
# checking for ocamlopt.opt
 
689
if test "$OCAMLOPT" != no ; then
 
690
    # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
 
691
set dummy ocamlopt.opt; ac_word=$2
 
692
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
693
echo "configure:694: checking for $ac_word" >&5
 
694
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLOPTDOTOPT'+set}'`\" = set"; then
 
695
  echo $ac_n "(cached) $ac_c" 1>&6
 
696
else
 
697
  if test -n "$OCAMLOPTDOTOPT"; then
 
698
  ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
 
699
else
 
700
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
701
  ac_dummy="$PATH"
 
702
  for ac_dir in $ac_dummy; do
 
703
    test -z "$ac_dir" && ac_dir=.
 
704
    if test -f $ac_dir/$ac_word; then
 
705
      ac_cv_prog_OCAMLOPTDOTOPT="ocamlopt.opt"
 
706
      break
 
707
    fi
 
708
  done
 
709
  IFS="$ac_save_ifs"
 
710
  test -z "$ac_cv_prog_OCAMLOPTDOTOPT" && ac_cv_prog_OCAMLOPTDOTOPT="no"
 
711
fi
 
712
fi
 
713
OCAMLOPTDOTOPT="$ac_cv_prog_OCAMLOPTDOTOPT"
 
714
if test -n "$OCAMLOPTDOTOPT"; then
 
715
  echo "$ac_t""$OCAMLOPTDOTOPT" 1>&6
 
716
else
 
717
  echo "$ac_t""no" 1>&6
 
718
fi
 
719
 
 
720
    if test "$OCAMLOPTDOTOPT" != no ; then
 
721
        echo $ac_n "checking ocamlc.opt version""... $ac_c" 1>&6
 
722
echo "configure:723: checking ocamlc.opt version" >&5
 
723
        TMPVER=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
 
724
        if test "$TMPVER" != "$OCAMLVERSION" ; then
 
725
            echo "$ac_t""differs from ocamlc; ocamlopt.opt discarded." 1>&6
 
726
        else
 
727
            echo "$ac_t""ok" 1>&6
 
728
            OCAMLOPT=$OCAMLOPTDOTOPT
 
729
        fi
 
730
    fi
 
731
fi
 
732
 
 
733
# ocamldep, ocamllex and ocamlyacc should also be present in the path
 
734
# Extract the first word of "ocamldep", so it can be a program name with args.
 
735
set dummy ocamldep; ac_word=$2
 
736
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
737
echo "configure:738: checking for $ac_word" >&5
 
738
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLDEP'+set}'`\" = set"; then
 
739
  echo $ac_n "(cached) $ac_c" 1>&6
 
740
else
 
741
  if test -n "$OCAMLDEP"; then
 
742
  ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
 
743
else
 
744
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
745
  ac_dummy="$PATH"
 
746
  for ac_dir in $ac_dummy; do
 
747
    test -z "$ac_dir" && ac_dir=.
 
748
    if test -f $ac_dir/$ac_word; then
 
749
      ac_cv_prog_OCAMLDEP="ocamldep"
 
750
      break
 
751
    fi
 
752
  done
 
753
  IFS="$ac_save_ifs"
 
754
  test -z "$ac_cv_prog_OCAMLDEP" && ac_cv_prog_OCAMLDEP="no"
 
755
fi
 
756
fi
 
757
OCAMLDEP="$ac_cv_prog_OCAMLDEP"
 
758
if test -n "$OCAMLDEP"; then
 
759
  echo "$ac_t""$OCAMLDEP" 1>&6
 
760
else
 
761
  echo "$ac_t""no" 1>&6
 
762
fi
 
763
 
 
764
if test "$OCAMLDEP" = no ; then
 
765
        { echo "configure: error: Cannot find ocamldep." 1>&2; exit 1; }
 
766
fi
 
767
 
 
768
# Extract the first word of "ocamllex", so it can be a program name with args.
 
769
set dummy ocamllex; ac_word=$2
 
770
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
771
echo "configure:772: checking for $ac_word" >&5
 
772
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLLEX'+set}'`\" = set"; then
 
773
  echo $ac_n "(cached) $ac_c" 1>&6
 
774
else
 
775
  if test -n "$OCAMLLEX"; then
 
776
  ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
 
777
else
 
778
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
779
  ac_dummy="$PATH"
 
780
  for ac_dir in $ac_dummy; do
 
781
    test -z "$ac_dir" && ac_dir=.
 
782
    if test -f $ac_dir/$ac_word; then
 
783
      ac_cv_prog_OCAMLLEX="ocamllex"
 
784
      break
 
785
    fi
 
786
  done
 
787
  IFS="$ac_save_ifs"
 
788
  test -z "$ac_cv_prog_OCAMLLEX" && ac_cv_prog_OCAMLLEX="no"
 
789
fi
 
790
fi
 
791
OCAMLLEX="$ac_cv_prog_OCAMLLEX"
 
792
if test -n "$OCAMLLEX"; then
 
793
  echo "$ac_t""$OCAMLLEX" 1>&6
 
794
else
 
795
  echo "$ac_t""no" 1>&6
 
796
fi
 
797
 
 
798
if test "$OCAMLLEX" = no ; then
 
799
    { echo "configure: error: Cannot find ocamllex." 1>&2; exit 1; }
 
800
else
 
801
    # Extract the first word of "ocamllex.opt", so it can be a program name with args.
 
802
set dummy ocamllex.opt; ac_word=$2
 
803
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
804
echo "configure:805: checking for $ac_word" >&5
 
805
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLLEXDOTOPT'+set}'`\" = set"; then
 
806
  echo $ac_n "(cached) $ac_c" 1>&6
 
807
else
 
808
  if test -n "$OCAMLLEXDOTOPT"; then
 
809
  ac_cv_prog_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test.
 
810
else
 
811
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
812
  ac_dummy="$PATH"
 
813
  for ac_dir in $ac_dummy; do
 
814
    test -z "$ac_dir" && ac_dir=.
 
815
    if test -f $ac_dir/$ac_word; then
 
816
      ac_cv_prog_OCAMLLEXDOTOPT="ocamllex.opt"
 
817
      break
 
818
    fi
 
819
  done
 
820
  IFS="$ac_save_ifs"
 
821
  test -z "$ac_cv_prog_OCAMLLEXDOTOPT" && ac_cv_prog_OCAMLLEXDOTOPT="no"
 
822
fi
 
823
fi
 
824
OCAMLLEXDOTOPT="$ac_cv_prog_OCAMLLEXDOTOPT"
 
825
if test -n "$OCAMLLEXDOTOPT"; then
 
826
  echo "$ac_t""$OCAMLLEXDOTOPT" 1>&6
 
827
else
 
828
  echo "$ac_t""no" 1>&6
 
829
fi
 
830
 
 
831
    if test "$OCAMLLEXDOTOPT" != no ; then
 
832
        OCAMLLEX=$OCAMLLEXDOTOPT
 
833
    fi
 
834
fi
 
835
 
 
836
# Extract the first word of "ocamlyacc", so it can be a program name with args.
 
837
set dummy ocamlyacc; ac_word=$2
 
838
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
839
echo "configure:840: checking for $ac_word" >&5
 
840
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLYACC'+set}'`\" = set"; then
 
841
  echo $ac_n "(cached) $ac_c" 1>&6
 
842
else
 
843
  if test -n "$OCAMLYACC"; then
 
844
  ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
 
845
else
 
846
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
847
  ac_dummy="$PATH"
 
848
  for ac_dir in $ac_dummy; do
 
849
    test -z "$ac_dir" && ac_dir=.
 
850
    if test -f $ac_dir/$ac_word; then
 
851
      ac_cv_prog_OCAMLYACC="ocamlyacc"
 
852
      break
 
853
    fi
 
854
  done
 
855
  IFS="$ac_save_ifs"
 
856
  test -z "$ac_cv_prog_OCAMLYACC" && ac_cv_prog_OCAMLYACC="no"
 
857
fi
 
858
fi
 
859
OCAMLYACC="$ac_cv_prog_OCAMLYACC"
 
860
if test -n "$OCAMLYACC"; then
 
861
  echo "$ac_t""$OCAMLYACC" 1>&6
 
862
else
 
863
  echo "$ac_t""no" 1>&6
 
864
fi
 
865
 
 
866
if test "$OCAMLYACC" = no ; then
 
867
        { echo "configure: error: Cannot find ocamlyacc." 1>&2; exit 1; }
 
868
fi
 
869
 
 
870
# Extract the first word of "ocamlweb", so it can be a program name with args.
 
871
set dummy ocamlweb; ac_word=$2
 
872
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
873
echo "configure:874: checking for $ac_word" >&5
 
874
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLWEB'+set}'`\" = set"; then
 
875
  echo $ac_n "(cached) $ac_c" 1>&6
 
876
else
 
877
  if test -n "$OCAMLWEB"; then
 
878
  ac_cv_prog_OCAMLWEB="$OCAMLWEB" # Let the user override the test.
 
879
else
 
880
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
881
  ac_dummy="$PATH"
 
882
  for ac_dir in $ac_dummy; do
 
883
    test -z "$ac_dir" && ac_dir=.
 
884
    if test -f $ac_dir/$ac_word; then
 
885
      ac_cv_prog_OCAMLWEB="ocamlweb"
 
886
      break
 
887
    fi
 
888
  done
 
889
  IFS="$ac_save_ifs"
 
890
  test -z "$ac_cv_prog_OCAMLWEB" && ac_cv_prog_OCAMLWEB="true"
 
891
fi
 
892
fi
 
893
OCAMLWEB="$ac_cv_prog_OCAMLWEB"
 
894
if test -n "$OCAMLWEB"; then
 
895
  echo "$ac_t""$OCAMLWEB" 1>&6
 
896
else
 
897
  echo "$ac_t""no" 1>&6
 
898
fi
 
899
 
 
900
 
 
901
# Extract the first word of "camlp4o", so it can be a program name with args.
 
902
set dummy camlp4o; ac_word=$2
 
903
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
904
echo "configure:905: checking for $ac_word" >&5
 
905
if eval "test \"`echo '$''{'ac_cv_prog_CAMLP4O'+set}'`\" = set"; then
 
906
  echo $ac_n "(cached) $ac_c" 1>&6
 
907
else
 
908
  if test -n "$CAMLP4O"; then
 
909
  ac_cv_prog_CAMLP4O="$CAMLP4O" # Let the user override the test.
 
910
else
 
911
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
912
  ac_dummy="$PATH"
 
913
  for ac_dir in $ac_dummy; do
 
914
    test -z "$ac_dir" && ac_dir=.
 
915
    if test -f $ac_dir/$ac_word; then
 
916
      ac_cv_prog_CAMLP4O="camlp4o"
 
917
      break
 
918
    fi
 
919
  done
 
920
  IFS="$ac_save_ifs"
 
921
  test -z "$ac_cv_prog_CAMLP4O" && ac_cv_prog_CAMLP4O="no"
 
922
fi
 
923
fi
 
924
CAMLP4O="$ac_cv_prog_CAMLP4O"
 
925
if test -n "$CAMLP4O"; then
 
926
  echo "$ac_t""$CAMLP4O" 1>&6
 
927
else
 
928
  echo "$ac_t""no" 1>&6
 
929
fi
 
930
 
 
931
if test "$CAMLP4O" = no ; then
 
932
        { echo "configure: error: Cannot find camlp4o." 1>&2; exit 1; }
 
933
fi
 
934
 
 
935
# Extract the first word of "ocamlfind", so it can be a program name with args.
 
936
set dummy ocamlfind; ac_word=$2
 
937
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
938
echo "configure:939: checking for $ac_word" >&5
 
939
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLINSTALL'+set}'`\" = set"; then
 
940
  echo $ac_n "(cached) $ac_c" 1>&6
 
941
else
 
942
  if test -n "$OCAMLINSTALL"; then
 
943
  ac_cv_prog_OCAMLINSTALL="$OCAMLINSTALL" # Let the user override the test.
 
944
else
 
945
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
946
  ac_dummy="$PATH"
 
947
  for ac_dir in $ac_dummy; do
 
948
    test -z "$ac_dir" && ac_dir=.
 
949
    if test -f $ac_dir/$ac_word; then
 
950
      ac_cv_prog_OCAMLINSTALL="install-with-ocamlfind"
 
951
      break
 
952
    fi
 
953
  done
 
954
  IFS="$ac_save_ifs"
 
955
  test -z "$ac_cv_prog_OCAMLINSTALL" && ac_cv_prog_OCAMLINSTALL="install-without-ocamlfind"
 
956
fi
 
957
fi
 
958
OCAMLINSTALL="$ac_cv_prog_OCAMLINSTALL"
 
959
if test -n "$OCAMLINSTALL"; then
 
960
  echo "$ac_t""$OCAMLINSTALL" 1>&6
 
961
else
 
962
  echo "$ac_t""no" 1>&6
 
963
fi
 
964
 
 
965
 
 
966
# Extract the first word of "ocamldoc", so it can be a program name with args.
 
967
set dummy ocamldoc; ac_word=$2
 
968
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
969
echo "configure:970: checking for $ac_word" >&5
 
970
if eval "test \"`echo '$''{'ac_cv_prog_OCAMLDOC'+set}'`\" = set"; then
 
971
  echo $ac_n "(cached) $ac_c" 1>&6
 
972
else
 
973
  if test -n "$OCAMLDOC"; then
 
974
  ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
 
975
else
 
976
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
977
  ac_dummy="$PATH"
 
978
  for ac_dir in $ac_dummy; do
 
979
    test -z "$ac_dir" && ac_dir=.
 
980
    if test -f $ac_dir/$ac_word; then
 
981
      ac_cv_prog_OCAMLDOC="ocamldoc"
 
982
      break
 
983
    fi
 
984
  done
 
985
  IFS="$ac_save_ifs"
 
986
  test -z "$ac_cv_prog_OCAMLDOC" && ac_cv_prog_OCAMLDOC="false"
 
987
fi
 
988
fi
 
989
OCAMLDOC="$ac_cv_prog_OCAMLDOC"
 
990
if test -n "$OCAMLDOC"; then
 
991
  echo "$ac_t""$OCAMLDOC" 1>&6
 
992
else
 
993
  echo "$ac_t""no" 1>&6
 
994
fi
 
995
 
 
996
if test "$OCAMLDOC" = false; then
 
997
   echo "configure: warning: Cannot find ocamldoc." 1>&2
 
998
fi
 
999
 
 
1000
# substitutions to perform
 
1001
 
 
1002
 
 
1003
 
 
1004
 
 
1005
 
 
1006
 
 
1007
 
 
1008
 
 
1009
 
 
1010
 
 
1011
 
 
1012
 
 
1013
 
 
1014
 
 
1015
 
 
1016
 
 
1017
# Finally create the Makefile from Makefile.in
 
1018
trap '' 1 2 15
 
1019
cat > confcache <<\EOF
 
1020
# This file is a shell script that caches the results of configure
 
1021
# tests run on this system so they can be shared between configure
 
1022
# scripts and configure runs.  It is not useful on other systems.
 
1023
# If it contains results you don't want to keep, you may remove or edit it.
 
1024
#
 
1025
# By default, configure uses ./config.cache as the cache file,
 
1026
# creating it if it does not exist already.  You can give configure
 
1027
# the --cache-file=FILE option to use a different cache file; that is
 
1028
# what configure does when it calls configure scripts in
 
1029
# subdirectories, so they share the cache.
 
1030
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1031
# config.status only pays attention to the cache file if you give it the
 
1032
# --recheck option to rerun configure.
 
1033
#
 
1034
EOF
 
1035
# The following way of writing the cache mishandles newlines in values,
 
1036
# but we know of no workaround that is simple, portable, and efficient.
 
1037
# So, don't put newlines in cache variables' values.
 
1038
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1039
# and sets the high bit in the cache file unless we assign to the vars.
 
1040
(set) 2>&1 |
 
1041
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1042
  *ac_space=\ *)
 
1043
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1044
    # turns \\\\ into \\, and sed turns \\ into \).
 
1045
    sed -n \
 
1046
      -e "s/'/'\\\\''/g" \
 
1047
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1048
    ;;
 
1049
  *)
 
1050
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1051
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1052
    ;;
 
1053
  esac >> confcache
 
1054
if cmp -s $cache_file confcache; then
 
1055
  :
 
1056
else
 
1057
  if test -w $cache_file; then
 
1058
    echo "updating cache $cache_file"
 
1059
    cat confcache > $cache_file
 
1060
  else
 
1061
    echo "not updating unwritable cache $cache_file"
 
1062
  fi
 
1063
fi
 
1064
rm -f confcache
 
1065
 
 
1066
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1067
 
 
1068
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1069
# Let make expand exec_prefix.
 
1070
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1071
 
 
1072
# Any assignment to VPATH causes Sun make to only execute
 
1073
# the first set of double-colon rules, so remove it if not needed.
 
1074
# If there is a colon in the path, we need to keep it.
 
1075
if test "x$srcdir" = x.; then
 
1076
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1077
fi
 
1078
 
 
1079
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1080
 
 
1081
# Transform confdefs.h into DEFS.
 
1082
# Protect against shell expansion while executing Makefile rules.
 
1083
# Protect against Makefile macro expansion.
 
1084
cat > conftest.defs <<\EOF
 
1085
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
 
1086
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
 
1087
s%\[%\\&%g
 
1088
s%\]%\\&%g
 
1089
s%\$%$$%g
 
1090
EOF
 
1091
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
 
1092
rm -f conftest.defs
 
1093
 
 
1094
 
 
1095
# Without the "./", some shells look in PATH for config.status.
 
1096
: ${CONFIG_STATUS=./config.status}
 
1097
 
 
1098
echo creating $CONFIG_STATUS
 
1099
rm -f $CONFIG_STATUS
 
1100
cat > $CONFIG_STATUS <<EOF
 
1101
#! /bin/sh
 
1102
# Generated automatically by configure.
 
1103
# Run this file to recreate the current configuration.
 
1104
# This directory was configured as follows,
 
1105
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1106
#
 
1107
# $0 $ac_configure_args
 
1108
#
 
1109
# Compiler output produced by configure, useful for debugging
 
1110
# configure, is in ./config.log if it exists.
 
1111
 
 
1112
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1113
for ac_option
 
1114
do
 
1115
  case "\$ac_option" in
 
1116
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1117
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1118
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1119
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1120
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1121
    exit 0 ;;
 
1122
  -help | --help | --hel | --he | --h)
 
1123
    echo "\$ac_cs_usage"; exit 0 ;;
 
1124
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1125
  esac
 
1126
done
 
1127
 
 
1128
ac_given_srcdir=$srcdir
 
1129
 
 
1130
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1131
EOF
 
1132
cat >> $CONFIG_STATUS <<EOF
 
1133
 
 
1134
# Protect against being on the right side of a sed subst in config.status.
 
1135
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1136
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1137
$ac_vpsub
 
1138
$extrasub
 
1139
s%@SHELL@%$SHELL%g
 
1140
s%@CFLAGS@%$CFLAGS%g
 
1141
s%@CPPFLAGS@%$CPPFLAGS%g
 
1142
s%@CXXFLAGS@%$CXXFLAGS%g
 
1143
s%@FFLAGS@%$FFLAGS%g
 
1144
s%@DEFS@%$DEFS%g
 
1145
s%@LDFLAGS@%$LDFLAGS%g
 
1146
s%@LIBS@%$LIBS%g
 
1147
s%@exec_prefix@%$exec_prefix%g
 
1148
s%@prefix@%$prefix%g
 
1149
s%@program_transform_name@%$program_transform_name%g
 
1150
s%@bindir@%$bindir%g
 
1151
s%@sbindir@%$sbindir%g
 
1152
s%@libexecdir@%$libexecdir%g
 
1153
s%@datadir@%$datadir%g
 
1154
s%@sysconfdir@%$sysconfdir%g
 
1155
s%@sharedstatedir@%$sharedstatedir%g
 
1156
s%@localstatedir@%$localstatedir%g
 
1157
s%@libdir@%$libdir%g
 
1158
s%@includedir@%$includedir%g
 
1159
s%@oldincludedir@%$oldincludedir%g
 
1160
s%@infodir@%$infodir%g
 
1161
s%@mandir@%$mandir%g
 
1162
s%@OCAMLC@%$OCAMLC%g
 
1163
s%@OCAMLOPT@%$OCAMLOPT%g
 
1164
s%@OCAMLCDOTOPT@%$OCAMLCDOTOPT%g
 
1165
s%@OCAMLOPTDOTOPT@%$OCAMLOPTDOTOPT%g
 
1166
s%@OCAMLDEP@%$OCAMLDEP%g
 
1167
s%@OCAMLLEX@%$OCAMLLEX%g
 
1168
s%@OCAMLLEXDOTOPT@%$OCAMLLEXDOTOPT%g
 
1169
s%@OCAMLYACC@%$OCAMLYACC%g
 
1170
s%@OCAMLWEB@%$OCAMLWEB%g
 
1171
s%@CAMLP4O@%$CAMLP4O%g
 
1172
s%@OCAMLINSTALL@%$OCAMLINSTALL%g
 
1173
s%@OCAMLDOC@%$OCAMLDOC%g
 
1174
s%@OCAMLMKLIB@%$OCAMLMKLIB%g
 
1175
s%@OCAMLBEST@%$OCAMLBEST%g
 
1176
s%@OCAMLVERSION@%$OCAMLVERSION%g
 
1177
s%@OCAMLLIB@%$OCAMLLIB%g
 
1178
s%@DEBUG@%$DEBUG%g
 
1179
s%@PROFILE@%$PROFILE%g
 
1180
 
 
1181
CEOF
 
1182
EOF
 
1183
 
 
1184
cat >> $CONFIG_STATUS <<\EOF
 
1185
 
 
1186
# Split the substitutions into bite-sized pieces for seds with
 
1187
# small command number limits, like on Digital OSF/1 and HP-UX.
 
1188
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
1189
ac_file=1 # Number of current file.
 
1190
ac_beg=1 # First line for current file.
 
1191
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
1192
ac_more_lines=:
 
1193
ac_sed_cmds=""
 
1194
while $ac_more_lines; do
 
1195
  if test $ac_beg -gt 1; then
 
1196
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
1197
  else
 
1198
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
1199
  fi
 
1200
  if test ! -s conftest.s$ac_file; then
 
1201
    ac_more_lines=false
 
1202
    rm -f conftest.s$ac_file
 
1203
  else
 
1204
    if test -z "$ac_sed_cmds"; then
 
1205
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
1206
    else
 
1207
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
1208
    fi
 
1209
    ac_file=`expr $ac_file + 1`
 
1210
    ac_beg=$ac_end
 
1211
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
1212
  fi
 
1213
done
 
1214
if test -z "$ac_sed_cmds"; then
 
1215
  ac_sed_cmds=cat
 
1216
fi
 
1217
EOF
 
1218
 
 
1219
cat >> $CONFIG_STATUS <<EOF
 
1220
 
 
1221
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
 
1222
EOF
 
1223
cat >> $CONFIG_STATUS <<\EOF
 
1224
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
1225
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1226
  case "$ac_file" in
 
1227
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1228
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1229
  *) ac_file_in="${ac_file}.in" ;;
 
1230
  esac
 
1231
 
 
1232
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
1233
 
 
1234
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
1235
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1236
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1237
    # The file is in a subdirectory.
 
1238
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1239
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
1240
    # A "../" for each directory in $ac_dir_suffix.
 
1241
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
1242
  else
 
1243
    ac_dir_suffix= ac_dots=
 
1244
  fi
 
1245
 
 
1246
  case "$ac_given_srcdir" in
 
1247
  .)  srcdir=.
 
1248
      if test -z "$ac_dots"; then top_srcdir=.
 
1249
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
1250
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
1251
  *) # Relative path.
 
1252
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
1253
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
1254
  esac
 
1255
 
 
1256
 
 
1257
  echo creating "$ac_file"
 
1258
  rm -f "$ac_file"
 
1259
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
1260
  case "$ac_file" in
 
1261
  *Makefile*) ac_comsub="1i\\
 
1262
# $configure_input" ;;
 
1263
  *) ac_comsub= ;;
 
1264
  esac
 
1265
 
 
1266
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1267
  sed -e "$ac_comsub
 
1268
s%@configure_input@%$configure_input%g
 
1269
s%@srcdir@%$srcdir%g
 
1270
s%@top_srcdir@%$top_srcdir%g
 
1271
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
1272
fi; done
 
1273
rm -f conftest.s*
 
1274
 
 
1275
EOF
 
1276
cat >> $CONFIG_STATUS <<EOF
 
1277
 
 
1278
EOF
 
1279
cat >> $CONFIG_STATUS <<\EOF
 
1280
test -f camomileconfig.ml && rm camomileconfig.ml
 
1281
exit 0
 
1282
EOF
 
1283
chmod +x $CONFIG_STATUS
 
1284
rm -fr confdefs* $ac_clean_files
 
1285
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
1286
 
 
1287
chmod a-w Makefile