Coccinelle release 1.0.0-rc14
[bpt/coccinelle.git] / configure
CommitLineData
feec80c3
C
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d6ce1786 3# Generated by GNU Autoconf 2.68 for coccinelle 1.0.0-rc12.
feec80c3
C
4#
5# Report bugs to <cocci@diku.dk>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
34e49164 18
feec80c3
C
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
978fd7e5
C
36
37
feec80c3
C
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
97111a47 82 }
feec80c3 83fi
97111a47 84
17ba0788 85
feec80c3
C
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
34e49164 92
feec80c3
C
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
0708f913 105
feec80c3
C
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
3a314143 117
feec80c3
C
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
ca417fcf 129
feec80c3
C
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
90aeb998 135
feec80c3
C
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
90aeb998 138
feec80c3
C
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
90aeb998 161
feec80c3
C
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
90aeb998 168
feec80c3
C
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
90aeb998 183
feec80c3
C
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 # Preserve -v and -x to the replacement shell.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 case $- in # ((((
225 *v*x* | *x*v* ) as_opts=-vx ;;
226 *v* ) as_opts=-v ;;
227 *x* ) as_opts=-x ;;
228 * ) as_opts= ;;
229 esac
230 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
231fi
232
233 if test x$as_have_required = xno; then :
234 $as_echo "$0: This script requires a shell more modern than all"
235 $as_echo "$0: the shells that I found on your system."
236 if test x${ZSH_VERSION+set} = xset ; then
237 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
238 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 else
240 $as_echo "$0: Please tell bug-autoconf@gnu.org and cocci@diku.dk
241$0: about your system, including any error possibly output
242$0: before this message. Then install a modern shell, or
243$0: manually run the script under such a shell if you do
244$0: have one."
245 fi
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
993936c0 265}
feec80c3 266as_unset=as_fn_unset
993936c0 267
feec80c3
C
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373# script with STATUS, using 1 if that was 0.
374as_fn_error ()
375{
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 fi
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit $as_status
383} # as_fn_error
384
385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388else
389 as_expr=false
390fi
391
392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394else
395 as_basename=false
396fi
397
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
403
404as_me=`$as_basename -- "$0" ||
405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408$as_echo X/"$0" |
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
90aeb998
C
460}
461
feec80c3
C
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
97111a47 474
feec80c3
C
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481fi
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
496else
497 as_ln_s='cp -p'
498fi
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
97111a47 501
feec80c3
C
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
507fi
97111a47 508
feec80c3
C
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511else
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529fi
530as_executable_p=$as_test_x
531
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538as_awk_strverscmp='
539 # Use only awk features that work with 7th edition Unix awk (1978).
540 # My, what an old awk you have, Mr. Solaris!
541 END {
542 while (length(v1) && length(v2)) {
543 # Set d1 to be the next thing to compare from v1, and likewise for d2.
544 # Normally this is a single character, but if v1 and v2 contain digits,
545 # compare them as integers and fractions as strverscmp does.
546 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
547 # Split v1 and v2 into their leading digit string components d1 and d2,
548 # and advance v1 and v2 past the leading digit strings.
549 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
550 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
551 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
552 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
553 if (d1 ~ /^0/) {
554 if (d2 ~ /^0/) {
555 # Compare two fractions.
556 while (d1 ~ /^0/ && d2 ~ /^0/) {
557 d1 = substr(d1, 2); len1--
558 d2 = substr(d2, 2); len2--
559 }
560 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
561 # The two components differ in length, and the common prefix
562 # contains only leading zeros. Consider the longer to be less.
563 d1 = -len1
564 d2 = -len2
565 } else {
566 # Otherwise, compare as strings.
567 d1 = "x" d1
568 d2 = "x" d2
569 }
570 } else {
571 # A fraction is less than an integer.
572 exit 1
573 }
574 } else {
575 if (d2 ~ /^0/) {
576 # An integer is greater than a fraction.
577 exit 2
578 } else {
579 # Compare two integers.
580 d1 += 0
581 d2 += 0
582 }
583 }
97111a47 584 } else {
feec80c3
C
585 # The normal case, without worrying about digits.
586 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
587 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
97111a47 588 }
feec80c3
C
589 if (d1 < d2) exit 1
590 if (d1 > d2) exit 2
97111a47 591 }
feec80c3
C
592 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
593 # which mishandles some comparisons of empty strings to integers.
594 if (length(v2)) exit 1
595 if (length(v1)) exit 2
97111a47 596 }
feec80c3 597'
97111a47 598
feec80c3
C
599test -n "$DJDIR" || exec 7<&0 </dev/null
600exec 6>&1
97111a47 601
feec80c3
C
602# Name of the host.
603# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
604# so uname gets run too.
605ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
606
607#
608# Initializations.
609#
610ac_default_prefix=/usr/local
611ac_clean_files=
612ac_config_libobj_dir=.
613LIBOBJS=
614cross_compiling=no
615subdirs=
616MFLAGS=
617MAKEFLAGS=
34e49164 618
feec80c3
C
619# Identity of this package.
620PACKAGE_NAME='coccinelle'
621PACKAGE_TARNAME='coccinelle'
d6ce1786
C
622PACKAGE_VERSION='1.0.0-rc12'
623PACKAGE_STRING='coccinelle 1.0.0-rc12'
feec80c3
C
624PACKAGE_BUGREPORT='cocci@diku.dk'
625PACKAGE_URL='http://coccinelle.lip6.fr/'
34e49164 626
feec80c3
C
627ac_unique_file="cocci.ml"
628ac_subst_vars='LTLIBOBJS
629LIBOBJS
d6ce1786
C
630MAKETARGET_SPATCH
631SPATCHNAME
632enable_opt
feec80c3
C
633MAKETARGET_ALL
634enable_release
635SUBSTITUTED_PDFLATEX
636with_PDFLATEX
637PDFLATEX
638DYNLINK_IS_NATIVE
639FEATURE_OCAML
640FEATURE_PYTHON
641SHAREDIR
642REGEXP_FILE
643REGEXP_MODULE
644MAKE_pcre
d6ce1786 645OPTFLAGS_pcre
feec80c3
C
646enable_pcre
647GLOBAL_pcre
648OCAML_PKG_pcre
649enable_pcre_syntax
650HAVE_PCRE
651PCRE_LIBS
652PCRE_CFLAGS
653PYCOCCI_FILE
654PYCOCCI_MODULE
655MAKE_pycaml
d6ce1786 656OPTFLAGS_pycaml
feec80c3
C
657GLOBAL_pycaml
658OCAML_PKG_pycaml
659enable_python
660HAVE_PYTHON
661PYTHON_LIBS
662PYTHON_CFLAGS
d6ce1786 663PYVER_MAJOR
feec80c3
C
664SUBSTITUTED_PYTHON
665with_PYTHON
666enable_pycaml
667PYTHON
668OCAMLCOCCI_FILE
669OCAMLCOCCI_MODULE
670enable_ocaml
671SUBSTITUTED_MENHIR
672with_MENHIR
673MENHIR
d6ce1786 674OPTIMIZED_dynlink
feec80c3 675MAKE_extlib
d6ce1786 676OPTFLAGS_extlib
feec80c3
C
677enable_extlib
678GLOBAL_extlib
679OCAML_PKG_extlib
680MAKE_menhirLib
d6ce1786 681OPTFLAGS_menhirLib
feec80c3
C
682enable_menhirLib
683GLOBAL_menhirLib
684OCAML_PKG_menhirLib
685MAKE_sexplib
d6ce1786 686OPTFLAGS_sexplib
feec80c3
C
687enable_sexplib
688GLOBAL_sexplib
689OCAML_PKG_sexplib
690MAKE_camlp4
d6ce1786 691OPTFLAGS_camlp4
feec80c3
C
692enable_camlp4
693GLOBAL_camlp4
694OCAML_PKG_camlp4
695MAKE_dynlink
d6ce1786 696OPTFLAGS_dynlink
feec80c3
C
697enable_dynlink
698GLOBAL_dynlink
699OCAML_PKG_dynlink
700PATH_threads
701OCAML_PKG_threads
702PATH_str
703OCAML_PKG_str
704PATH_num
705OCAML_PKG_num
706PATH_bigarray
707OCAML_PKG_bigarray
708PATH_unix
709OCAML_PKG_unix
710PATH_camlp4
711MODULESOPT_camlp4
712MODULES_camlp4
713FLAGS_camlp4
714LOCALLIB_camlp4
715FEATURE_camlp4
716PATH_pycaml
717MODULESOPT_pycaml
718MODULES_pycaml
719FLAGS_pycaml
720LOCALLIB_pycaml
721FEATURE_pycaml
722PATH_pcre
723MODULESOPT_pcre
724MODULES_pcre
725FLAGS_pcre
726LOCALLIB_pcre
727FEATURE_pcre
728PATH_dynlink
729MODULESOPT_dynlink
730MODULES_dynlink
731FLAGS_dynlink
732LOCALLIB_dynlink
733FEATURE_dynlink
734PATH_extlib
735MODULESOPT_extlib
736MODULES_extlib
737FLAGS_extlib
738LOCALLIB_extlib
739FEATURE_extlib
740PATH_menhirLib
741MODULESOPT_menhirLib
742MODULES_menhirLib
743FLAGS_menhirLib
744LOCALLIB_menhirLib
745FEATURE_menhirLib
746PATH_sexplib
747MODULESOPT_sexplib
748MODULES_sexplib
749FLAGS_sexplib
750LOCALLIB_sexplib
751FEATURE_sexplib
752COCCI_OCAML_EXTERNAL
753RUNTIME_CAMLP4O_CMD
754RUNTIME_CAMLP4_CMD
755RUNTIME_OCAMLDEP_CMD
756RUNTIME_OCAMLOPT_CMD
757RUNTIME_OCAMLC_CMD
758RUNTIME_OCAMLFIND_CMD
759SUBSTITUTED_OCAMLFIND
760with_OCAMLFIND
761OCAMLFIND
762SUBSTITUTED_OCAMLYACC
763with_OCAMLYACC
764SUBSTITUTED_OCAMLLEX
765with_OCAMLLEX
766CAMLP4RF
767CAMLP4R
768CAMLP4PROF
769CAMLP4ORF
770CAMLP4OOF
771CAMLP4OF
772CAMLP4O
773CAMLP4BOOT
774CAMLP4
775OCAMLATLEAST311
776OCAMLATLEAST310
777OCAMLBUILD
778OCAMLDOC
779OCAMLMKLIB
780OCAMLMKTOP
781OCAMLDEP
782OCAML
783OCAMLOPTDOTOPT
784OCAMLCDOTOPT
785OCAMLBEST
786OCAMLOPT
787OCAMLLIB
788OCAMLVERSION
789OCAMLC
790SUBSTITUTED_PKG_CONFIG
791OCAMLYACC
792OCAMLLEXDOTOPT
793OCAMLLEX
794with_PKG_CONFIG
795PKG_CONFIG
d6ce1786 796PATCHELF
feec80c3
C
797PATCH
798TAR
799CPP
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
807MKDIR_P
808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811DATE
812GIT
813CONFVERSION
814COCCI_SRCDIR
815COCCI_VERSION
d6ce1786 816CONFIGURE_FLAGS
feec80c3
C
817target_alias
818host_alias
819build_alias
820LIBS
821ECHO_T
822ECHO_N
823ECHO_C
824DEFS
825mandir
826localedir
827libdir
828psdir
829pdfdir
830dvidir
831htmldir
832infodir
833docdir
834oldincludedir
835includedir
836localstatedir
837sharedstatedir
838sysconfdir
839datadir
840datarootdir
841libexecdir
842sbindir
843bindir
844program_transform_name
845prefix
846exec_prefix
847PACKAGE_URL
848PACKAGE_BUGREPORT
849PACKAGE_STRING
850PACKAGE_VERSION
851PACKAGE_TARNAME
852PACKAGE_NAME
853PATH_SEPARATOR
854SHELL
855PYVER'
856ac_subst_files=''
857ac_user_opts='
858enable_option_checking
859with_pkg_config
860with_ocamllex
861with_ocamlyacc
862with_ocamlfind
863with_runtime_ocamlfind
864with_runtime_ocamlc
865with_runtime_ocamlopt
866with_runtime_ocamldep
867with_runtime_camlp4
868with_runtime_camlp4o
869enable_dynlink
870enable_camlp4
871enable_sexplib
872enable_menhirLib
873enable_extlib
874with_menhir
875enable_ocaml
876enable_python
877with_python
878enable_pycaml
879enable_pcre_syntax
880enable_pcre
881with_pdflatex
882enable_release
d6ce1786 883enable_opt
feec80c3
C
884'
885 ac_precious_vars='PYVER
886build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894CPP
895PKG_CONFIG
896OCAMLLEX
897OCAMLYACC
898OCAMLFIND
899RUNTIME_OCAMLFIND_CMD
900RUNTIME_OCAMLC_CMD
901RUNTIME_OCAMLOPT_CMD
902RUNTIME_OCAMLDEP_CMD
903RUNTIME_CAMLP4_CMD
904RUNTIME_CAMLP4O_CMD
905COCCI_OCAML_EXTERNAL
906MENHIR
907PYTHON
908PYTHON_CFLAGS
909PYTHON_LIBS
910PCRE_CFLAGS
911PCRE_LIBS
912PDFLATEX'
34e49164 913
34e49164 914
feec80c3
C
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
34e49164 936
feec80c3
C
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
34e49164 962
feec80c3
C
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
34e49164 973
feec80c3
C
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
708f4980 979
feec80c3 980 # Accept the important Cygnus configure options, so we can diagnose typos.
708f4980 981
feec80c3
C
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
34e49164 985
feec80c3
C
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
34e49164 990
feec80c3
C
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
34e49164 995
feec80c3
C
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
34e49164 1002
feec80c3
C
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
ca417fcf 1005
feec80c3
C
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
34e49164 1010
feec80c3
C
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
34e49164 1017
feec80c3
C
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=no ;;
ca417fcf 1033
feec80c3
C
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
34e49164 1038
feec80c3
C
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
8ba84ae2 1043
feec80c3
C
1044 -enable-* | --enable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"enable_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
34e49164 1059
feec80c3
C
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
34e49164 1068
feec80c3
C
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
34e49164 1072
feec80c3
C
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
34e49164 1079
feec80c3
C
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
174d1640 1084
feec80c3
C
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
b23ff9c7 1090
feec80c3
C
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
0708f913 1097
feec80c3
C
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
993936c0 1102
feec80c3
C
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
90aeb998 1107
feec80c3
C
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257"with_$ac_useropt"
1258"*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=\$ac_optarg ;;
1263
1264 -without-* | --without-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273"with_$ac_useropt"
1274"*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=no ;;
1279
1280 --x)
1281 # Obsolete; use --with-x.
1282 with_x=yes ;;
1283
1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285 | --x-incl | --x-inc | --x-in | --x-i)
1286 ac_prev=x_includes ;;
1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289 x_includes=$ac_optarg ;;
1290
1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293 ac_prev=x_libraries ;;
1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296 x_libraries=$ac_optarg ;;
1297
1298 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299Try \`$0 --help' for more information"
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' | [0-9]* | *[!_$as_cr_alnum]* )
1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308 esac
1309 eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 ;;
1319
1320 esac
1321done
1322
1323if test -n "$ac_prev"; then
1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $? "missing argument to $ac_option"
1326fi
1327
1328if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 esac
1334fi
1335
1336# Check all directory arguments for consistency.
1337for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341do
1342 eval ac_val=\$$ac_var
1343 # Remove trailing slashes.
1344 case $ac_val in
1345 */ )
1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\$ac_val;;
1348 esac
1349 # Be sure to have absolute directory names.
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used" >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420else
1421 ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
34e49164 1447
97111a47 1448#
feec80c3 1449# Report the --help message.
97111a47 1450#
feec80c3
C
1451if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
d6ce1786 1455\`configure' configures coccinelle 1.0.0-rc12 to adapt to many kinds of systems.
97111a47 1456
feec80c3 1457Usage: $0 [OPTION]... [VAR=VALUE]...
97111a47 1458
feec80c3
C
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE. See below for descriptions of some of the useful variables.
97111a47 1461
feec80c3
C
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/coccinelle]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508_ACEOF
1509
1510 cat <<\_ACEOF
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515 case $ac_init_help in
d6ce1786 1516 short | recursive ) echo "Configuration of coccinelle 1.0.0-rc12:";;
feec80c3
C
1517 esac
1518 cat <<\_ACEOF
1519
1520Optional Features:
1521 --disable-option-checking ignore unrecognized --enable/--with options
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-dynlink enable global package dynlink (yes,no) (default:
1525 auto)
1526 --enable-camlp4 enable global package camlp4 (yes,no) (default:
1527 auto)
1528 --enable-sexplib enable global package sexplib (yes,no) (default:
1529 auto)
1530 --enable-menhirLib enable global package menhirLib (yes,no) (default:
1531 auto)
1532 --enable-extlib enable global package extlib (yes,no) (default:
1533 auto)
1534 --enable-ocaml enable ocaml scripting (default: auto)
1535 --enable-python enable python scripting (yes/no) (default: auto)
1536 --enable-pycaml enable global package pycaml (yes,no) (default:
1537 auto)
1538 --enable-pcre-syntax enable pcre regular expression syntax (default:
1539 auto)
1540 --enable-pcre enable global package pcre (yes,no) (default: auto)
1541 --enable-release build with a release configuration (yes,no, default:
1542 no)
d6ce1786 1543 --enable-opt build an optimized spatch (yes,no, default: auto)
feec80c3
C
1544
1545Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-pkg-config whether/which pkg-config to use (default: auto)
1549 --with-ocamllex whether/which ocamllex to use (default: auto)
1550 --with-ocamlyacc whether/which ocamlyacc to use (default: auto)
1551 --with-ocamlfind whether/which ocamlfind to use (default: auto)
1552 --with-runtime-ocamlfind
1553 override the runtime cmd for ocamlfind
1554 --with-runtime-ocamlc override the runtime cmd for ocamlc
1555 --with-runtime-ocamlopt override the runtime cmd for ocamlopt
1556 --with-runtime-ocamldep override the runtime cmd for ocamldep
1557 --with-runtime-camlp4 override the runtime cmd for camlp4
1558 --with-runtime-camlp4o override the runtime cmd for camlp4o
1559 --with-menhir whether/which menhir to use (default: auto)
1560 --with-python whether/which python to use (default: auto)
1561 --with-pdflatex whether/which pdflatex to use (default: auto)
1562
1563Some influential environment variables:
1564 PYVER python version
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CPP C preprocessor
1573 PKG_CONFIG path to pkg-config
1574 OCAMLLEX path to ocamllex
1575 OCAMLYACC path to ocamlyacc
1576 OCAMLFIND path to ocamlfind
1577 RUNTIME_OCAMLFIND_CMD
1578 path to ocamlfind
1579 RUNTIME_OCAMLC_CMD
1580 path to ocamlc
1581 RUNTIME_OCAMLOPT_CMD
1582 path to ocamlopt
1583 RUNTIME_OCAMLDEP_CMD
1584 path to ocamldep
1585 RUNTIME_CAMLP4_CMD
1586 path to camlp4
1587 RUNTIME_CAMLP4O_CMD
1588 path to camlp4o
1589 COCCI_OCAML_EXTERNAL
1590 path to extra ocaml packages (default: $COCCI_SRCDIR/bundles)
1591 MENHIR path to menhir
1592 PYTHON path to python when the version is determined automatically
1593 PYTHON_CFLAGS
1594 C compiler flags for PYTHON, overriding pkg-config
1595 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1596 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1597 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1598 PDFLATEX path to pdflatex
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <cocci@diku.dk>.
1604coccinelle home page: <http://coccinelle.lip6.fr/>.
1605_ACEOF
1606ac_status=$?
1607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
1615 ac_builddir=.
1616
1617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
1632
1633case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646esac
1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1662fi
1663
1664test -n "$ac_init_help" && exit $ac_status
1665if $ac_init_version; then
1666 cat <<\_ACEOF
d6ce1786 1667coccinelle configure 1.0.0-rc12
feec80c3
C
1668generated by GNU Autoconf 2.68
1669
1670Copyright (C) 2010 Free Software Foundation, Inc.
1671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
1673_ACEOF
1674 exit
1675fi
1676
1677## ------------------------ ##
1678## Autoconf initialization. ##
1679## ------------------------ ##
1680
1681# ac_fn_c_try_compile LINENO
1682# --------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_compile ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_compile
1718
1719# ac_fn_c_try_cpp LINENO
1720# ----------------------
1721# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_cpp ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_cpp
1755cat >config.log <<_ACEOF
1756This file contains any messages produced by compilers while
1757running configure, to aid debugging if configure makes a mistake.
1758
d6ce1786 1759It was created by coccinelle $as_me 1.0.0-rc12, which was
feec80c3
C
1760generated by GNU Autoconf 2.68. Invocation command line was
1761
1762 $ $0 $@
1763
1764_ACEOF
1765exec 5>>config.log
1766{
1767cat <<_ASUNAME
1768## --------- ##
1769## Platform. ##
1770## --------- ##
1771
1772hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1780
1781/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788
1789_ASUNAME
1790
1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 $as_echo "PATH: $as_dir"
1797 done
1798IFS=$as_save_IFS
1799
1800} >&5
1801
1802cat >&5 <<_ACEOF
1803
1804
1805## ----------- ##
1806## Core tests. ##
1807## ----------- ##
1808
1809_ACEOF
1810
1811
1812# Keep a trace of the command line.
1813# Strip out --no-create and --no-recursion so they do not pile up.
1814# Strip out --silent because we don't want to record it for future runs.
1815# Also quote any args containing shell meta-characters.
1816# Make two passes to allow for proper duplicate-argument suppression.
1817ac_configure_args=
1818ac_configure_args0=
1819ac_configure_args1=
1820ac_must_keep_next=false
1821for ac_pass in 1 2
1822do
1823 for ac_arg
1824 do
1825 case $ac_arg in
1826 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1828 | -silent | --silent | --silen | --sile | --sil)
1829 continue ;;
1830 *\'*)
1831 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 case $ac_pass in
1834 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1835 2)
1836 as_fn_append ac_configure_args1 " '$ac_arg'"
1837 if test $ac_must_keep_next = true; then
1838 ac_must_keep_next=false # Got value, back to normal.
1839 else
1840 case $ac_arg in
1841 *=* | --config-cache | -C | -disable-* | --disable-* \
1842 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1843 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1844 | -with-* | --with-* | -without-* | --without-* | --x)
1845 case "$ac_configure_args0 " in
1846 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1847 esac
1848 ;;
1849 -* ) ac_must_keep_next=true ;;
1850 esac
1851 fi
1852 as_fn_append ac_configure_args " '$ac_arg'"
1853 ;;
1854 esac
1855 done
1856done
1857{ ac_configure_args0=; unset ac_configure_args0;}
1858{ ac_configure_args1=; unset ac_configure_args1;}
1859
1860# When interrupted or exit'd, cleanup temporary files, and complete
1861# config.log. We remove comments because anyway the quotes in there
1862# would cause problems or look ugly.
1863# WARNING: Use '\'' to represent an apostrophe within the trap.
1864# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865trap 'exit_status=$?
1866 # Save into config.log some information that might help in debugging.
1867 {
1868 echo
1869
1870 $as_echo "## ---------------- ##
1871## Cache variables. ##
1872## ---------------- ##"
1873 echo
1874 # The following way of writing the cache mishandles newlines in values,
1875(
1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in #(
1879 *${as_nl}*)
1880 case $ac_var in #(
1881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883 esac
1884 case $ac_var in #(
1885 _ | IFS | as_nl) ;; #(
1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) { eval $ac_var=; unset $ac_var;} ;;
1888 esac ;;
1889 esac
1890 done
1891 (set) 2>&1 |
1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893 *${as_nl}ac_space=\ *)
1894 sed -n \
1895 "s/'\''/'\''\\\\'\'''\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897 ;; #(
1898 *)
1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1900 ;;
1901 esac |
1902 sort
1903)
1904 echo
1905
1906 $as_echo "## ----------------- ##
1907## Output variables. ##
1908## ----------------- ##"
1909 echo
1910 for ac_var in $ac_subst_vars
1911 do
1912 eval ac_val=\$$ac_var
1913 case $ac_val in
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 esac
1916 $as_echo "$ac_var='\''$ac_val'\''"
1917 done | sort
1918 echo
1919
1920 if test -n "$ac_subst_files"; then
1921 $as_echo "## ------------------- ##
1922## File substitutions. ##
1923## ------------------- ##"
1924 echo
1925 for ac_var in $ac_subst_files
1926 do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 $as_echo "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1934 fi
1935
1936 if test -s confdefs.h; then
1937 $as_echo "## ----------- ##
1938## confdefs.h. ##
1939## ----------- ##"
1940 echo
1941 cat confdefs.h
1942 echo
1943 fi
1944 test "$ac_signal" != 0 &&
1945 $as_echo "$as_me: caught signal $ac_signal"
1946 $as_echo "$as_me: exit $exit_status"
1947 } >&5
1948 rm -f core *.core core.conftest.* &&
1949 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950 exit $exit_status
1951' 0
1952for ac_signal in 1 2 13 15; do
1953 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1954done
1955ac_signal=0
1956
1957# confdefs.h avoids OS command line length limits that DEFS can exceed.
1958rm -f -r conftest* confdefs.h
1959
1960$as_echo "/* confdefs.h */" > confdefs.h
1961
1962# Predefined preprocessor variables.
1963
1964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_NAME "$PACKAGE_NAME"
1966_ACEOF
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970_ACEOF
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_VERSION "$PACKAGE_VERSION"
1974_ACEOF
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_STRING "$PACKAGE_STRING"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_URL "$PACKAGE_URL"
1986_ACEOF
1987
1988
1989# Let the site file select an alternate cache file if it wants to.
1990# Prefer an explicitly selected file to automatically selected ones.
1991ac_site_file1=NONE
1992ac_site_file2=NONE
1993if test -n "$CONFIG_SITE"; then
1994 # We do not want a PATH search for config.site.
1995 case $CONFIG_SITE in #((
1996 -*) ac_site_file1=./$CONFIG_SITE;;
1997 */*) ac_site_file1=$CONFIG_SITE;;
1998 *) ac_site_file1=./$CONFIG_SITE;;
1999 esac
2000elif test "x$prefix" != xNONE; then
2001 ac_site_file1=$prefix/share/config.site
2002 ac_site_file2=$prefix/etc/config.site
2003else
2004 ac_site_file1=$ac_default_prefix/share/config.site
2005 ac_site_file2=$ac_default_prefix/etc/config.site
2006fi
2007for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2008do
2009 test "x$ac_site_file" = xNONE && continue
2010 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2013 sed 's/^/| /' "$ac_site_file" >&5
2014 . "$ac_site_file" \
2015 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2017as_fn_error $? "failed to load site script $ac_site_file
2018See \`config.log' for more details" "$LINENO" 5; }
2019 fi
2020done
2021
2022if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special files
2024 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2025 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027$as_echo "$as_me: loading cache $cache_file" >&6;}
2028 case $cache_file in
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2031 esac
2032 fi
2033else
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035$as_echo "$as_me: creating cache $cache_file" >&6;}
2036 >$cache_file
2037fi
2038
2039# Check that the precious variables saved in the cache have kept the same
2040# value.
2041ac_cache_corrupted=false
2042for ac_var in $ac_precious_vars; do
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
2047 case $ac_old_set,$ac_new_set in
2048 set,)
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051 ac_cache_corrupted=: ;;
2052 ,set)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2056 ,);;
2057 *)
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2070 fi
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2075 fi;;
2076 esac
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2079 case $ac_new_val in
2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2082 esac
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2086 esac
2087 fi
2088done
2089if $ac_cache_corrupted; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2095fi
2096## -------------------- ##
2097## Main body of script. ##
2098## -------------------- ##
2099
2100ac_ext=c
2101ac_cpp='$CPP $CPPFLAGS'
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
feec80c3 2107
d6ce1786
C
2108ac_aux_dir=
2109for ac_dir in setup "$srcdir"/setup; do
2110 if test -f "$ac_dir/install-sh"; then
2111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/install-sh -c"
2113 break
2114 elif test -f "$ac_dir/install.sh"; then
2115 ac_aux_dir=$ac_dir
2116 ac_install_sh="$ac_aux_dir/install.sh -c"
2117 break
2118 elif test -f "$ac_dir/shtool"; then
2119 ac_aux_dir=$ac_dir
2120 ac_install_sh="$ac_aux_dir/shtool install -c"
2121 break
2122 fi
2123done
2124if test -z "$ac_aux_dir"; then
2125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5
2126fi
2127
2128# These three variables are undocumented and unsupported,
2129# and are intended to be withdrawn in a future Autoconf release.
2130# They can cause serious problems if a builder's source tree is in a directory
2131# whose full name contains unusual characters.
2132ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2133ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2134ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2135
2136
2137
2138CONFIGURE_FLAGS="$*"
2139
2140COCCI_VERSION="$PACKAGE_VERSION"
2141
2142COCCI_SRCDIR="$(pwd)"
feec80c3
C
2143
2144{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&5
2145$as_echo "$as_me: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&6;}
2146
2147
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: determining version suffix" >&5
2149$as_echo "$as_me: determining version suffix" >&6;}
2150
2151 if test -z "$CONFVERSION" -a -d "./.git"; then :
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: building a version from a git repository" >&5
2153$as_echo "$as_me: building a version from a git repository" >&6;}
2154 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args.
2156set dummy ${ac_tool_prefix}git; ac_word=$2
2157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2158$as_echo_n "checking for $ac_word... " >&6; }
2159if ${ac_cv_path_GIT+:} false; then :
2160 $as_echo_n "(cached) " >&6
2161else
2162 case $GIT in
2163 [\\/]* | ?:[\\/]*)
2164 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
2165 ;;
2166 *)
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2174 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
2175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2177 fi
2178done
2179 done
2180IFS=$as_save_IFS
2181
2182 ;;
2183esac
2184fi
2185GIT=$ac_cv_path_GIT
2186if test -n "$GIT"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
2188$as_echo "$GIT" >&6; }
2189else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2191$as_echo "no" >&6; }
2192fi
2193
2194
2195fi
2196if test -z "$ac_cv_path_GIT"; then
2197 ac_pt_GIT=$GIT
2198 # Extract the first word of "git", so it can be a program name with args.
2199set dummy git; ac_word=$2
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2201$as_echo_n "checking for $ac_word... " >&6; }
2202if ${ac_cv_path_ac_pt_GIT+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204else
2205 case $ac_pt_GIT in
2206 [\\/]* | ?:[\\/]*)
2207 ac_cv_path_ac_pt_GIT="$ac_pt_GIT" # Let the user override the test with a path.
2208 ;;
2209 *)
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_path_ac_pt_GIT="$as_dir/$ac_word$ac_exec_ext"
2218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221done
2222 done
2223IFS=$as_save_IFS
2224
2225 ;;
2226esac
2227fi
2228ac_pt_GIT=$ac_cv_path_ac_pt_GIT
2229if test -n "$ac_pt_GIT"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIT" >&5
2231$as_echo "$ac_pt_GIT" >&6; }
2232else
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234$as_echo "no" >&6; }
2235fi
2236
2237 if test "x$ac_pt_GIT" = x; then
2238 GIT=""
2239 else
2240 case $cross_compiling:$ac_tool_warned in
2241yes:)
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2244ac_tool_warned=yes ;;
2245esac
2246 GIT=$ac_pt_GIT
2247 fi
2248else
2249 GIT="$ac_cv_path_GIT"
2250fi
2251
2252 if test -n "$GIT"; then :
2253 CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"`
2254
2255fi
2256
2257fi
2258
2259 if test -z "$CONFVERSION"; then :
2260 if test -n "$ac_tool_prefix"; then
2261 # Extract the first word of "${ac_tool_prefix}date", so it can be a program name with args.
2262set dummy ${ac_tool_prefix}date; ac_word=$2
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2264$as_echo_n "checking for $ac_word... " >&6; }
2265if ${ac_cv_path_DATE+:} false; then :
2266 $as_echo_n "(cached) " >&6
2267else
2268 case $DATE in
2269 [\\/]* | ?:[\\/]*)
2270 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
2271 ;;
2272 *)
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 break 2
2283 fi
2284done
2285 done
2286IFS=$as_save_IFS
2287
2288 ;;
2289esac
2290fi
2291DATE=$ac_cv_path_DATE
2292if test -n "$DATE"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
2294$as_echo "$DATE" >&6; }
2295else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297$as_echo "no" >&6; }
2298fi
2299
2300
2301fi
2302if test -z "$ac_cv_path_DATE"; then
2303 ac_pt_DATE=$DATE
2304 # Extract the first word of "date", so it can be a program name with args.
2305set dummy date; ac_word=$2
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2307$as_echo_n "checking for $ac_word... " >&6; }
2308if ${ac_cv_path_ac_pt_DATE+:} false; then :
2309 $as_echo_n "(cached) " >&6
2310else
2311 case $ac_pt_DATE in
2312 [\\/]* | ?:[\\/]*)
2313 ac_cv_path_ac_pt_DATE="$ac_pt_DATE" # Let the user override the test with a path.
2314 ;;
2315 *)
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_path_ac_pt_DATE="$as_dir/$ac_word$ac_exec_ext"
2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327done
2328 done
2329IFS=$as_save_IFS
2330
2331 ;;
2332esac
2333fi
2334ac_pt_DATE=$ac_cv_path_ac_pt_DATE
2335if test -n "$ac_pt_DATE"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DATE" >&5
2337$as_echo "$ac_pt_DATE" >&6; }
2338else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343 if test "x$ac_pt_DATE" = x; then
2344 DATE=""
2345 else
2346 case $cross_compiling:$ac_tool_warned in
2347yes:)
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350ac_tool_warned=yes ;;
2351esac
2352 DATE=$ac_pt_DATE
2353 fi
2354else
2355 DATE="$ac_cv_path_DATE"
2356fi
2357
2358 if test -n "$DATE"; then :
2359 CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"`
2360
2361fi
2362
2363fi
2364
2365 if test -z "$CONFVERSION"; then :
2366 CONFVERSION=unknown
2367
2368fi
2369
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: version suffix set to $CONFVERSION" >&5
2371$as_echo "$as_me: version suffix set to $CONFVERSION" >&6;}
2372
2373
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses pkg-config m4 macros" >&5
2375$as_echo "$as_me: this configure program uses pkg-config m4 macros" >&6;}
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&5
2377$as_echo "$as_me: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&6;}
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses custom m4 macros (see setup/cocci.m4)" >&5
2379$as_echo "$as_me: this configure program uses custom m4 macros (see setup/cocci.m4)" >&6;}
2380{ $as_echo "$as_me:${as_lineno-$LINENO}: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&5
2381$as_echo "$as_me: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&6;}
2382
2383
2384
2385
2386
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic tools" >&5
2388$as_echo "$as_me: verifying basic tools" >&6;}
2389
feec80c3
C
2390# Find a good install program. We prefer a C program (faster),
2391# so one script is as good as another. But avoid the broken or
2392# incompatible versions:
2393# SysV /etc/install, /usr/sbin/install
2394# SunOS /usr/etc/install
2395# IRIX /sbin/install
2396# AIX /bin/install
2397# AmigaOS /C/install, which installs bootblocks on floppy discs
2398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2399# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2401# OS/2's system install, which has a completely different semantic
2402# ./install, which can be erroneously created by make from ./install.sh.
2403# Reject install programs that cannot install multiple files.
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2405$as_echo_n "checking for a BSD-compatible install... " >&6; }
2406if test -z "$INSTALL"; then
2407if ${ac_cv_path_install+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 # Account for people who put trailing slashes in PATH elements.
2416case $as_dir/ in #((
2417 ./ | .// | /[cC]/* | \
2418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2419 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2420 /usr/ucb/* ) ;;
2421 *)
2422 # OSF1 and SCO ODT 3.0 have their own names for install.
2423 # Don't use installbsd from OSF since it installs stuff as root
2424 # by default.
2425 for ac_prog in ginstall scoinst install; do
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2428 if test $ac_prog = install &&
2429 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430 # AIX install. It has an incompatible calling convention.
2431 :
2432 elif test $ac_prog = install &&
2433 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434 # program-specific install script used by HP pwplus--don't use.
2435 :
2436 else
2437 rm -rf conftest.one conftest.two conftest.dir
2438 echo one > conftest.one
2439 echo two > conftest.two
2440 mkdir conftest.dir
2441 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2442 test -s conftest.one && test -s conftest.two &&
2443 test -s conftest.dir/conftest.one &&
2444 test -s conftest.dir/conftest.two
2445 then
2446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2447 break 3
2448 fi
2449 fi
2450 fi
2451 done
2452 done
2453 ;;
2454esac
2455
2456 done
2457IFS=$as_save_IFS
2458
2459rm -rf conftest.one conftest.two conftest.dir
2460
2461fi
2462 if test "${ac_cv_path_install+set}" = set; then
2463 INSTALL=$ac_cv_path_install
2464 else
2465 # As a last resort, use the slow shell script. Don't cache a
2466 # value for INSTALL within a source directory, because that will
2467 # break other packages using the cache if that directory is
2468 # removed, or if the value is a relative name.
2469 INSTALL=$ac_install_sh
2470 fi
2471fi
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2473$as_echo "$INSTALL" >&6; }
2474
2475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2476# It thinks the first close brace ends the variable substitution.
2477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2478
2479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2480
2481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2482
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2484$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2485if test -z "$MKDIR_P"; then
2486 if ${ac_cv_path_mkdir+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_prog in mkdir gmkdir; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2497 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2498 'mkdir (GNU coreutils) '* | \
2499 'mkdir (coreutils) '* | \
2500 'mkdir (fileutils) '4.1*)
2501 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2502 break 3;;
2503 esac
2504 done
2505 done
2506 done
2507IFS=$as_save_IFS
2508
2509fi
2510
2511 test -d ./--version && rmdir ./--version
2512 if test "${ac_cv_path_mkdir+set}" = set; then
2513 MKDIR_P="$ac_cv_path_mkdir -p"
2514 else
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for MKDIR_P within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 MKDIR_P="$ac_install_sh -d"
2520 fi
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2523$as_echo "$MKDIR_P" >&6; }
2524
2525ac_ext=c
2526ac_cpp='$CPP $CPPFLAGS'
2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}gcc; ac_word=$2
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if ${ac_cv_prog_CC+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553 done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561$as_echo "$CC" >&6; }
2562else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_CC"; then
2570 ac_ct_CC=$CC
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572set dummy gcc; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_ac_ct_CC+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="gcc"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593 done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599if test -n "$ac_ct_CC"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2601$as_echo "$ac_ct_CC" >&6; }
2602else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607 if test "x$ac_ct_CC" = x; then
2608 CC=""
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616 CC=$ac_ct_CC
2617 fi
2618else
2619 CC="$ac_cv_prog_CC"
2620fi
2621
2622if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2625set dummy ${ac_tool_prefix}cc; ac_word=$2
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627$as_echo_n "checking for $ac_word... " >&6; }
2628if ${ac_cv_prog_CC+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="${ac_tool_prefix}cc"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645done
2646 done
2647IFS=$as_save_IFS
2648
2649fi
2650fi
2651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654$as_echo "$CC" >&6; }
2655else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657$as_echo "no" >&6; }
2658fi
2659
2660
2661 fi
2662fi
2663if test -z "$CC"; then
2664 # Extract the first word of "cc", so it can be a program name with args.
2665set dummy cc; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_CC+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674 ac_prog_rejected=no
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2683 ac_prog_rejected=yes
2684 continue
2685 fi
2686 ac_cv_prog_CC="cc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691 done
2692IFS=$as_save_IFS
2693
2694if test $ac_prog_rejected = yes; then
2695 # We found a bogon in the path, so make sure we never use it.
2696 set dummy $ac_cv_prog_CC
2697 shift
2698 if test $# != 0; then
2699 # We chose a different compiler from the bogus one.
2700 # However, it has the same basename, so the bogon will be chosen
2701 # first if we set CC to just the basename; use the full file name.
2702 shift
2703 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2704 fi
2705fi
2706fi
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711$as_echo "$CC" >&6; }
2712else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714$as_echo "no" >&6; }
2715fi
2716
2717
2718fi
2719if test -z "$CC"; then
2720 if test -n "$ac_tool_prefix"; then
2721 for ac_prog in cl.exe
2722 do
2723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745 done
2746IFS=$as_save_IFS
2747
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753$as_echo "$CC" >&6; }
2754else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
2758
2759
2760 test -n "$CC" && break
2761 done
2762fi
2763if test -z "$CC"; then
2764 ac_ct_CC=$CC
2765 for ac_prog in cl.exe
2766do
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768set dummy $ac_prog; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if ${ac_cv_prog_ac_ct_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_ac_ct_CC="$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795if test -n "$ac_ct_CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2797$as_echo "$ac_ct_CC" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804 test -n "$ac_ct_CC" && break
2805done
2806
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816 CC=$ac_ct_CC
2817 fi
2818fi
2819
2820fi
2821
2822
2823test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825as_fn_error $? "no acceptable C compiler found in \$PATH
2826See \`config.log' for more details" "$LINENO" 5; }
2827
2828# Provide some information about the compiler.
2829$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2830set X $ac_compile
2831ac_compiler=$2
2832for ac_option in --version -v -V -qversion; do
2833 { { ac_try="$ac_compiler $ac_option >&5"
2834case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837esac
2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839$as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2841 ac_status=$?
2842 if test -s conftest.err; then
2843 sed '10a\
2844... rest of stderr output deleted ...
2845 10q' conftest.err >conftest.er1
2846 cat conftest.er1 >&5
2847 fi
2848 rm -f conftest.er1 conftest.err
2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851done
2852
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855
2856int
2857main ()
2858{
2859
2860 ;
2861 return 0;
97111a47 2862}
feec80c3
C
2863_ACEOF
2864ac_clean_files_save=$ac_clean_files
2865ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2866# Try to create an executable without -o first, disregard a.out.
2867# It will help us diagnose broken compilers, and finding out an intuition
2868# of exeext.
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2870$as_echo_n "checking whether the C compiler works... " >&6; }
2871ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
97111a47 2872
feec80c3
C
2873# The possible output files:
2874ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875
2876ac_rmfiles=
2877for ac_file in $ac_files
2878do
2879 case $ac_file in
2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2881 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2882 esac
2883done
2884rm -f $ac_rmfiles
2885
2886if { { ac_try="$ac_link_default"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link_default") 2>&5
2894 ac_status=$?
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }; then :
2897 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2898# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2899# in a Makefile. We should not override ac_cv_exeext if it was cached,
2900# so that the user can short-circuit this test for compilers unknown to
2901# Autoconf.
2902for ac_file in $ac_files ''
2903do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907 ;;
2908 [ab].out )
2909 # We found the default executable, but exeext='' is most
2910 # certainly right.
2911 break;;
2912 *.* )
2913 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2914 then :; else
2915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916 fi
2917 # We set ac_cv_exeext here because the later test for it is not
2918 # safe: cross compilers may not add the suffix if given an `-o'
2919 # argument, so we may need to know it at that point already.
2920 # Even if this section looks crufty: it has the advantage of
2921 # actually working.
2922 break;;
2923 * )
2924 break;;
2925 esac
2926done
2927test "$ac_cv_exeext" = no && ac_cv_exeext=
2928
2929else
2930 ac_file=''
2931fi
2932if test -z "$ac_file"; then :
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935$as_echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error 77 "C compiler cannot create executables
2941See \`config.log' for more details" "$LINENO" 5; }
2942else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944$as_echo "yes" >&6; }
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947$as_echo_n "checking for C compiler default output file name... " >&6; }
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2949$as_echo "$ac_file" >&6; }
2950ac_exeext=$ac_cv_exeext
2951
2952rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2953ac_clean_files=$ac_clean_files_save
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2955$as_echo_n "checking for suffix of executables... " >&6; }
2956if { { ac_try="$ac_link"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962$as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_link") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; then :
2967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2969# work properly (i.e., refer to `conftest.exe'), while it won't with
2970# `rm'.
2971for ac_file in conftest.exe conftest conftest.*; do
2972 test -f "$ac_file" || continue
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 break;;
2977 * ) break;;
2978 esac
2979done
2980else
2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details" "$LINENO" 5; }
2985fi
2986rm -f conftest conftest$ac_cv_exeext
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2988$as_echo "$ac_cv_exeext" >&6; }
2989
2990rm -f conftest.$ac_ext
2991EXEEXT=$ac_cv_exeext
2992ac_exeext=$EXEEXT
2993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994/* end confdefs.h. */
2995#include <stdio.h>
2996int
2997main ()
2998{
2999FILE *f = fopen ("conftest.out", "w");
3000 return ferror (f) || fclose (f) != 0;
3001
3002 ;
3003 return 0;
17ba0788 3004}
feec80c3
C
3005_ACEOF
3006ac_clean_files="$ac_clean_files conftest.out"
3007# Check that the compiler produces executables we can run. If not, either
3008# the compiler is broken, or we cross compile.
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3010$as_echo_n "checking whether we are cross compiling... " >&6; }
3011if test "$cross_compiling" != yes; then
3012 { { ac_try="$ac_link"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link") 2>&5
3020 ac_status=$?
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }
3023 if { ac_try='./conftest$ac_cv_exeext'
3024 { { case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }; }; then
3034 cross_compiling=no
3035 else
3036 if test "$cross_compiling" = maybe; then
3037 cross_compiling=yes
3038 else
3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041as_fn_error $? "cannot run C compiled programs.
3042If you meant to cross compile, use \`--host'.
3043See \`config.log' for more details" "$LINENO" 5; }
3044 fi
3045 fi
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3048$as_echo "$cross_compiling" >&6; }
3049
3050rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3051ac_clean_files=$ac_clean_files_save
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3053$as_echo_n "checking for suffix of object files... " >&6; }
3054if ${ac_cv_objext+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056else
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h. */
174d1640 3059
feec80c3
C
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
ca417fcf 3066}
feec80c3
C
3067_ACEOF
3068rm -f conftest.o conftest.obj
3069if { { ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_compile") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 for ac_file in conftest.o conftest.obj conftest.*; do
3081 test -f "$ac_file" || continue;
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3085 break;;
3086 esac
3087done
3088else
3089 $as_echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error $? "cannot compute suffix of object files: cannot compile
3095See \`config.log' for more details" "$LINENO" 5; }
3096fi
3097rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3100$as_echo "$ac_cv_objext" >&6; }
3101OBJEXT=$ac_cv_objext
3102ac_objext=$OBJEXT
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3104$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3105if ${ac_cv_c_compiler_gnu+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107else
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110
3111int
3112main ()
3113{
3114#ifndef __GNUC__
3115 choke me
3116#endif
3117
3118 ;
3119 return 0;
ca417fcf 3120}
feec80c3
C
3121_ACEOF
3122if ac_fn_c_try_compile "$LINENO"; then :
3123 ac_compiler_gnu=yes
3124else
3125 ac_compiler_gnu=no
3126fi
3127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3132$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3133if test $ac_compiler_gnu = yes; then
3134 GCC=yes
3135else
3136 GCC=
3137fi
3138ac_test_CFLAGS=${CFLAGS+set}
3139ac_save_CFLAGS=$CFLAGS
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3141$as_echo_n "checking whether $CC accepts -g... " >&6; }
3142if ${ac_cv_prog_cc_g+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 ac_save_c_werror_flag=$ac_c_werror_flag
3146 ac_c_werror_flag=yes
3147 ac_cv_prog_cc_g=no
3148 CFLAGS="-g"
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160if ac_fn_c_try_compile "$LINENO"; then :
3161 ac_cv_prog_cc_g=yes
3162else
3163 CFLAGS=""
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176
3177else
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3179 CFLAGS="-g"
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192 ac_cv_prog_cc_g=yes
3193fi
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3202$as_echo "$ac_cv_prog_cc_g" >&6; }
3203if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
3208 else
3209 CFLAGS="-g"
3210 fi
3211else
3212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
3214 else
3215 CFLAGS=
3216 fi
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3219$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220if ${ac_cv_prog_cc_c89+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222else
3223 ac_cv_prog_cc_c89=no
3224ac_save_CC=$CC
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h. */
3227#include <stdarg.h>
3228#include <stdio.h>
3229#include <sys/types.h>
3230#include <sys/stat.h>
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235 char **p;
3236 int i;
3237{
3238 return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
3264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276}
3277_ACEOF
3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280do
3281 CC="$ac_save_CC $ac_arg"
3282 if ac_fn_c_try_compile "$LINENO"; then :
3283 ac_cv_prog_cc_c89=$ac_arg
3284fi
3285rm -f core conftest.err conftest.$ac_objext
3286 test "x$ac_cv_prog_cc_c89" != "xno" && break
3287done
3288rm -f conftest.$ac_ext
3289CC=$ac_save_CC
3290
3291fi
3292# AC_CACHE_VAL
3293case "x$ac_cv_prog_cc_c89" in
3294 x)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3296$as_echo "none needed" >&6; } ;;
3297 xno)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3299$as_echo "unsupported" >&6; } ;;
3300 *)
3301 CC="$CC $ac_cv_prog_cc_c89"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3303$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3304esac
3305if test "x$ac_cv_prog_cc_c89" != xno; then :
3306
3307fi
3308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3321$as_echo_n "checking how to run the C preprocessor... " >&6; }
3322# On Suns, sometimes $CPP names a directory.
3323if test -n "$CPP" && test -d "$CPP"; then
3324 CPP=
3325fi
3326if test -z "$CPP"; then
3327 if ${ac_cv_prog_CPP+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329else
3330 # Double quotes because CPP needs to be expanded
3331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3332 do
3333 ac_preproc_ok=false
3334for ac_c_preproc_warn_flag in '' yes
3335do
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h. */
3344#ifdef __STDC__
3345# include <limits.h>
3346#else
3347# include <assert.h>
3348#endif
3349 Syntax error
3350_ACEOF
3351if ac_fn_c_try_cpp "$LINENO"; then :
3352
3353else
3354 # Broken: fails on valid input.
3355continue
3356fi
3357rm -f conftest.err conftest.i conftest.$ac_ext
3358
3359 # OK, works on sane cases. Now check whether nonexistent headers
3360 # can be detected and how.
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363#include <ac_nonexistent.h>
3364_ACEOF
3365if ac_fn_c_try_cpp "$LINENO"; then :
3366 # Broken: success on invalid input.
3367continue
3368else
3369 # Passes both tests.
3370ac_preproc_ok=:
3371break
3372fi
3373rm -f conftest.err conftest.i conftest.$ac_ext
3374
3375done
3376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377rm -f conftest.i conftest.err conftest.$ac_ext
3378if $ac_preproc_ok; then :
3379 break
3380fi
3381
3382 done
3383 ac_cv_prog_CPP=$CPP
3384
3385fi
3386 CPP=$ac_cv_prog_CPP
3387else
3388 ac_cv_prog_CPP=$CPP
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3391$as_echo "$CPP" >&6; }
3392ac_preproc_ok=false
3393for ac_c_preproc_warn_flag in '' yes
3394do
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h. */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408 Syntax error
3409_ACEOF
3410if ac_fn_c_try_cpp "$LINENO"; then :
3411
3412else
3413 # Broken: fails on valid input.
3414continue
3415fi
3416rm -f conftest.err conftest.i conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h. */
3422#include <ac_nonexistent.h>
3423_ACEOF
3424if ac_fn_c_try_cpp "$LINENO"; then :
3425 # Broken: success on invalid input.
3426continue
3427else
3428 # Passes both tests.
3429ac_preproc_ok=:
3430break
3431fi
3432rm -f conftest.err conftest.i conftest.$ac_ext
3433
3434done
3435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436rm -f conftest.i conftest.err conftest.$ac_ext
3437if $ac_preproc_ok; then :
3438
3439else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details" "$LINENO" 5; }
3444fi
3445
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452# Extract the first word of "tar", so it can be a program name with args.
3453set dummy tar; ac_word=$2
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455$as_echo_n "checking for $ac_word... " >&6; }
3456if ${ac_cv_path_TAR+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458else
3459 case $TAR in
3460 [\\/]* | ?:[\\/]*)
3461 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3462 ;;
3463 *)
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475done
3476 done
3477IFS=$as_save_IFS
3478
3479 ;;
3480esac
3481fi
3482TAR=$ac_cv_path_TAR
3483if test -n "$TAR"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3485$as_echo "$TAR" >&6; }
3486else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492# Extract the first word of "patch", so it can be a program name with args.
3493set dummy patch; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if ${ac_cv_path_PATCH+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498else
3499 case $PATCH in
3500 [\\/]* | ?:[\\/]*)
3501 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
3502 ;;
3503 *)
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH
3506do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515done
3516 done
3517IFS=$as_save_IFS
3518
3519 ;;
3520esac
3521fi
3522PATCH=$ac_cv_path_PATCH
3523if test -n "$PATCH"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
3525$as_echo "$PATCH" >&6; }
3526else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
d6ce1786
C
3532# Extract the first word of "patchelf", so it can be a program name with args.
3533set dummy patchelf; ac_word=$2
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535$as_echo_n "checking for $ac_word... " >&6; }
3536if ${ac_cv_path_PATCHELF+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538else
3539 case $PATCHELF in
3540 [\\/]* | ?:[\\/]*)
3541 ac_cv_path_PATCHELF="$PATCHELF" # Let the user override the test with a path.
3542 ;;
3543 *)
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_path_PATCHELF="$as_dir/$ac_word$ac_exec_ext"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555done
3556 done
3557IFS=$as_save_IFS
3558
3559 ;;
3560esac
3561fi
3562PATCHELF=$ac_cv_path_PATCHELF
3563if test -n "$PATCHELF"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5
3565$as_echo "$PATCHELF" >&6; }
3566else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
feec80c3
C
3572
3573
3574
3575# Check whether --with-pkg-config was given.
3576if test "${with_pkg_config+set}" = set; then :
3577 withval=$with_pkg_config;
3578fi
3579
3580 with_PKG_CONFIG="$with_pkg_config"
3581
feec80c3
C
3582 if test -n "$with_PKG_CONFIG" -a "x$with_PKG_CONFIG" != xno -a "x$with_PKG_CONFIG" != xyes; then :
3583 PKG_CONFIG="$with_PKG_CONFIG"
3584
3585
d6ce1786
C
3586else
3587 PKG_CONFIG="pkg-config"
3588
3589
feec80c3
C
3590fi
3591
d6ce1786
C
3592 if test "x$with_PKG_CONFIG" = xno; then :
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config is disabled explicitly" >&5
3594$as_echo "$as_me: pkg-config is disabled explicitly" >&6;}
3595 PKG_CONFIG=no
3596
3597
3598else
3599 if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
feec80c3
C
3600
3601
3602if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3605set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607$as_echo_n "checking for $ac_word... " >&6; }
3608if ${ac_cv_path_PKG_CONFIG+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610else
3611 case $PKG_CONFIG in
3612 [\\/]* | ?:[\\/]*)
3613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3614 ;;
3615 *)
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617for as_dir in $PATH
3618do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627done
3628 done
3629IFS=$as_save_IFS
3630
3631 ;;
3632esac
3633fi
3634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3635if test -n "$PKG_CONFIG"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3637$as_echo "$PKG_CONFIG" >&6; }
3638else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
3641fi
3642
3643
3644fi
3645if test -z "$ac_cv_path_PKG_CONFIG"; then
3646 ac_pt_PKG_CONFIG=$PKG_CONFIG
3647 # Extract the first word of "pkg-config", so it can be a program name with args.
3648set dummy pkg-config; ac_word=$2
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650$as_echo_n "checking for $ac_word... " >&6; }
3651if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653else
3654 case $ac_pt_PKG_CONFIG in
3655 [\\/]* | ?:[\\/]*)
3656 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3657 ;;
3658 *)
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671 done
3672IFS=$as_save_IFS
3673
3674 ;;
3675esac
3676fi
3677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3678if test -n "$ac_pt_PKG_CONFIG"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3680$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3681else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683$as_echo "no" >&6; }
3684fi
3685
3686 if test "x$ac_pt_PKG_CONFIG" = x; then
3687 PKG_CONFIG=""
3688 else
3689 case $cross_compiling:$ac_tool_warned in
3690yes:)
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693ac_tool_warned=yes ;;
3694esac
3695 PKG_CONFIG=$ac_pt_PKG_CONFIG
3696 fi
3697else
3698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3699fi
3700
3701fi
3702if test -n "$PKG_CONFIG"; then
3703 _pkg_min_version=0.9.0
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3705$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708$as_echo "yes" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712 PKG_CONFIG=""
3713 fi
3714
3715fi
3716
d6ce1786 3717elif test "x$PKG_CONFIG" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
feec80c3
C
3718 # checking for ocamllex
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
3721set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723$as_echo_n "checking for $ac_word... " >&6; }
3724if ${ac_cv_path_OCAMLLEX+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726else
3727 case $OCAMLLEX in
3728 [\\/]* | ?:[\\/]*)
3729 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
3730 ;;
3731 *)
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743done
3744 done
3745IFS=$as_save_IFS
3746
3747 ;;
3748esac
3749fi
3750OCAMLLEX=$ac_cv_path_OCAMLLEX
3751if test -n "$OCAMLLEX"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
3753$as_echo "$OCAMLLEX" >&6; }
3754else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756$as_echo "no" >&6; }
3757fi
3758
3759
3760fi
3761if test -z "$ac_cv_path_OCAMLLEX"; then
3762 ac_pt_OCAMLLEX=$OCAMLLEX
3763 # Extract the first word of "ocamllex", so it can be a program name with args.
3764set dummy ocamllex; ac_word=$2
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766$as_echo_n "checking for $ac_word... " >&6; }
3767if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769else
3770 case $ac_pt_OCAMLLEX in
3771 [\\/]* | ?:[\\/]*)
3772 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
3773 ;;
3774 *)
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786done
3787 done
3788IFS=$as_save_IFS
3789
3790 ;;
3791esac
3792fi
3793ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
3794if test -n "$ac_pt_OCAMLLEX"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
3796$as_echo "$ac_pt_OCAMLLEX" >&6; }
3797else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802 if test "x$ac_pt_OCAMLLEX" = x; then
3803 OCAMLLEX="no"
3804 else
3805 case $cross_compiling:$ac_tool_warned in
3806yes:)
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809ac_tool_warned=yes ;;
3810esac
3811 OCAMLLEX=$ac_pt_OCAMLLEX
3812 fi
3813else
3814 OCAMLLEX="$ac_cv_path_OCAMLLEX"
3815fi
3816
3817 if test "$OCAMLLEX" != "no"; then
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
3820set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822$as_echo_n "checking for $ac_word... " >&6; }
3823if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825else
3826 case $OCAMLLEXDOTOPT in
3827 [\\/]* | ?:[\\/]*)
3828 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
3829 ;;
3830 *)
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842done
3843 done
3844IFS=$as_save_IFS
3845
3846 ;;
3847esac
3848fi
3849OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
3850if test -n "$OCAMLLEXDOTOPT"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
3852$as_echo "$OCAMLLEXDOTOPT" >&6; }
3853else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859fi
3860if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
3861 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
3862 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
3863set dummy ocamllex.opt; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
3866if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868else
3869 case $ac_pt_OCAMLLEXDOTOPT in
3870 [\\/]* | ?:[\\/]*)
3871 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
3872 ;;
3873 *)
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886 done
3887IFS=$as_save_IFS
3888
3889 ;;
3890esac
3891fi
3892ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
3893if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
3895$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
3896else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
3902 OCAMLLEXDOTOPT="no"
3903 else
3904 case $cross_compiling:$ac_tool_warned in
3905yes:)
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908ac_tool_warned=yes ;;
3909esac
3910 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
3911 fi
3912else
3913 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
3914fi
3915
3916 if test "$OCAMLLEXDOTOPT" != "no"; then
3917 OCAMLLEX=$OCAMLLEXDOTOPT
3918 fi
3919 fi
3920
3921
3922
d6ce1786 3923elif test "x$PKG_CONFIG" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
feec80c3
C
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
3929if ${ac_cv_path_OCAMLYACC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931else
3932 case $OCAMLYACC in
3933 [\\/]* | ?:[\\/]*)
3934 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
3935 ;;
3936 *)
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
3951
3952 ;;
3953esac
3954fi
3955OCAMLYACC=$ac_cv_path_OCAMLYACC
3956if test -n "$OCAMLYACC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
3958$as_echo "$OCAMLYACC" >&6; }
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965fi
3966if test -z "$ac_cv_path_OCAMLYACC"; then
3967 ac_pt_OCAMLYACC=$OCAMLYACC
3968 # Extract the first word of "ocamlyacc", so it can be a program name with args.
3969set dummy ocamlyacc; ac_word=$2
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971$as_echo_n "checking for $ac_word... " >&6; }
3972if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974else
3975 case $ac_pt_OCAMLYACC in
3976 [\\/]* | ?:[\\/]*)
3977 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
3978 ;;
3979 *)
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992 done
3993IFS=$as_save_IFS
3994
3995 ;;
3996esac
3997fi
3998ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
3999if test -n "$ac_pt_OCAMLYACC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
4001$as_echo "$ac_pt_OCAMLYACC" >&6; }
4002else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007 if test "x$ac_pt_OCAMLYACC" = x; then
4008 OCAMLYACC="no"
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011yes:)
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016 OCAMLYACC=$ac_pt_OCAMLYACC
4017 fi
4018else
4019 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4020fi
4021
4022
4023
4024
4025else
4026 if test -n "$ac_tool_prefix"; then
d6ce1786
C
4027 # Extract the first word of "${ac_tool_prefix}[$]PKG_CONFIG", so it can be a program name with args.
4028set dummy ${ac_tool_prefix}$PKG_CONFIG; ac_word=$2
feec80c3
C
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030$as_echo_n "checking for $ac_word... " >&6; }
4031if ${ac_cv_path_PKG_CONFIG+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033else
4034 case $PKG_CONFIG in
4035 [\\/]* | ?:[\\/]*)
4036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4037 ;;
4038 *)
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050done
4051 done
4052IFS=$as_save_IFS
4053
4054 ;;
4055esac
4056fi
4057PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4058if test -n "$PKG_CONFIG"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4060$as_echo "$PKG_CONFIG" >&6; }
4061else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067fi
4068if test -z "$ac_cv_path_PKG_CONFIG"; then
4069 ac_pt_PKG_CONFIG=$PKG_CONFIG
d6ce1786
C
4070 # Extract the first word of "[$]PKG_CONFIG", so it can be a program name with args.
4071set dummy $PKG_CONFIG; ac_word=$2
feec80c3
C
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 case $ac_pt_PKG_CONFIG in
4078 [\\/]* | ?:[\\/]*)
4079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4080 ;;
4081 *)
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093done
4094 done
4095IFS=$as_save_IFS
4096
4097 ;;
4098esac
4099fi
4100ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4101if test -n "$ac_pt_PKG_CONFIG"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4103$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4104else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107fi
4108
4109 if test "x$ac_pt_PKG_CONFIG" = x; then
4110 PKG_CONFIG=""
4111 else
4112 case $cross_compiling:$ac_tool_warned in
4113yes:)
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116ac_tool_warned=yes ;;
4117esac
4118 PKG_CONFIG=$ac_pt_PKG_CONFIG
4119 fi
4120else
4121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4122fi
4123
4124
4125fi
4126
4127
4128fi
4129
4130 if test -z "$PKG_CONFIG" -o "x$PKG_CONFIG" = xno; then :
4131 if test "x$with_PKG_CONFIG" = xyes; then :
4132 as_fn_error $? "--with=pkg-config is given explicitly but not found" "$LINENO" 5
4133
4134fi
4135
4136 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh pkg-config"; then :
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&5
4138$as_echo "$as_me: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&6;}
4139 PKG_CONFIG="$COCCI_SRCDIR/setup/fake-subst.sh pkg-config"
4140
4141 if test "xpkg-config" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
4142
4143
4144if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4147set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_path_PKG_CONFIG+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152else
4153 case $PKG_CONFIG in
4154 [\\/]* | ?:[\\/]*)
4155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4156 ;;
4157 *)
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170 done
4171IFS=$as_save_IFS
4172
4173 ;;
4174esac
4175fi
4176PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4177if test -n "$PKG_CONFIG"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4179$as_echo "$PKG_CONFIG" >&6; }
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186fi
4187if test -z "$ac_cv_path_PKG_CONFIG"; then
4188 ac_pt_PKG_CONFIG=$PKG_CONFIG
4189 # Extract the first word of "pkg-config", so it can be a program name with args.
4190set dummy pkg-config; ac_word=$2
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192$as_echo_n "checking for $ac_word... " >&6; }
4193if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195else
4196 case $ac_pt_PKG_CONFIG in
4197 [\\/]* | ?:[\\/]*)
4198 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4199 ;;
4200 *)
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212done
4213 done
4214IFS=$as_save_IFS
4215
4216 ;;
4217esac
4218fi
4219ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4220if test -n "$ac_pt_PKG_CONFIG"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4222$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4223else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225$as_echo "no" >&6; }
4226fi
4227
4228 if test "x$ac_pt_PKG_CONFIG" = x; then
4229 PKG_CONFIG=""
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232yes:)
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235ac_tool_warned=yes ;;
4236esac
4237 PKG_CONFIG=$ac_pt_PKG_CONFIG
4238 fi
4239else
4240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4241fi
4242
4243fi
4244if test -n "$PKG_CONFIG"; then
4245 _pkg_min_version=0.9.0
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4247$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250$as_echo "yes" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254 PKG_CONFIG=""
4255 fi
4256
4257fi
4258
4259elif test "xpkg-config" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
4260 # checking for ocamllex
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_path_OCAMLLEX+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 case $OCAMLLEX in
4270 [\\/]* | ?:[\\/]*)
4271 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4272 ;;
4273 *)
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285done
4286 done
4287IFS=$as_save_IFS
4288
4289 ;;
4290esac
4291fi
4292OCAMLLEX=$ac_cv_path_OCAMLLEX
4293if test -n "$OCAMLLEX"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4295$as_echo "$OCAMLLEX" >&6; }
4296else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
4299fi
4300
4301
4302fi
4303if test -z "$ac_cv_path_OCAMLLEX"; then
4304 ac_pt_OCAMLLEX=$OCAMLLEX
4305 # Extract the first word of "ocamllex", so it can be a program name with args.
4306set dummy ocamllex; ac_word=$2
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308$as_echo_n "checking for $ac_word... " >&6; }
4309if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311else
4312 case $ac_pt_OCAMLLEX in
4313 [\\/]* | ?:[\\/]*)
4314 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4315 ;;
4316 *)
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329 done
4330IFS=$as_save_IFS
4331
4332 ;;
4333esac
4334fi
4335ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4336if test -n "$ac_pt_OCAMLLEX"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4338$as_echo "$ac_pt_OCAMLLEX" >&6; }
4339else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342fi
4343
4344 if test "x$ac_pt_OCAMLLEX" = x; then
4345 OCAMLLEX="no"
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4351ac_tool_warned=yes ;;
4352esac
4353 OCAMLLEX=$ac_pt_OCAMLLEX
4354 fi
4355else
4356 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4357fi
4358
4359 if test "$OCAMLLEX" != "no"; then
4360 if test -n "$ac_tool_prefix"; then
4361 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4362set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 case $OCAMLLEXDOTOPT in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385 done
4386IFS=$as_save_IFS
4387
4388 ;;
4389esac
4390fi
4391OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
4392if test -n "$OCAMLLEXDOTOPT"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
4394$as_echo "$OCAMLLEXDOTOPT" >&6; }
4395else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
4398fi
4399
4400
4401fi
4402if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
4403 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
4404 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
4405set dummy ocamllex.opt; ac_word=$2
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 case $ac_pt_OCAMLLEXDOTOPT in
4412 [\\/]* | ?:[\\/]*)
4413 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
4414 ;;
4415 *)
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427done
4428 done
4429IFS=$as_save_IFS
4430
4431 ;;
4432esac
4433fi
4434ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
4435if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
4437$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
4438else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440$as_echo "no" >&6; }
4441fi
4442
4443 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
4444 OCAMLLEXDOTOPT="no"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447yes:)
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450ac_tool_warned=yes ;;
4451esac
4452 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
4453 fi
4454else
4455 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
4456fi
4457
4458 if test "$OCAMLLEXDOTOPT" != "no"; then
4459 OCAMLLEX=$OCAMLLEXDOTOPT
4460 fi
4461 fi
4462
4463
4464
4465elif test "xpkg-config" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
4468set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470$as_echo_n "checking for $ac_word... " >&6; }
4471if ${ac_cv_path_OCAMLYACC+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473else
4474 case $OCAMLYACC in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
4477 ;;
4478 *)
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490done
4491 done
4492IFS=$as_save_IFS
4493
4494 ;;
4495esac
4496fi
4497OCAMLYACC=$ac_cv_path_OCAMLYACC
4498if test -n "$OCAMLYACC"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
4500$as_echo "$OCAMLYACC" >&6; }
4501else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503$as_echo "no" >&6; }
4504fi
4505
4506
4507fi
4508if test -z "$ac_cv_path_OCAMLYACC"; then
4509 ac_pt_OCAMLYACC=$OCAMLYACC
4510 # Extract the first word of "ocamlyacc", so it can be a program name with args.
4511set dummy ocamlyacc; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 case $ac_pt_OCAMLYACC in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
4520 ;;
4521 *)
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533done
4534 done
4535IFS=$as_save_IFS
4536
4537 ;;
4538esac
4539fi
4540ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
4541if test -n "$ac_pt_OCAMLYACC"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
4543$as_echo "$ac_pt_OCAMLYACC" >&6; }
4544else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549 if test "x$ac_pt_OCAMLYACC" = x; then
4550 OCAMLYACC="no"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553yes:)
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556ac_tool_warned=yes ;;
4557esac
4558 OCAMLYACC=$ac_pt_OCAMLYACC
4559 fi
4560else
4561 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4562fi
4563
4564
4565
4566
4567else
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4570set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572$as_echo_n "checking for $ac_word... " >&6; }
4573if ${ac_cv_path_PKG_CONFIG+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575else
4576 case $PKG_CONFIG in
4577 [\\/]* | ?:[\\/]*)
4578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4579 ;;
4580 *)
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 break 2
4591 fi
4592done
4593 done
4594IFS=$as_save_IFS
4595
4596 ;;
4597esac
4598fi
4599PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4600if test -n "$PKG_CONFIG"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4602$as_echo "$PKG_CONFIG" >&6; }
4603else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
4607
4608
4609fi
4610if test -z "$ac_cv_path_PKG_CONFIG"; then
4611 ac_pt_PKG_CONFIG=$PKG_CONFIG
4612 # Extract the first word of "pkg-config", so it can be a program name with args.
4613set dummy pkg-config; ac_word=$2
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615$as_echo_n "checking for $ac_word... " >&6; }
4616if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618else
4619 case $ac_pt_PKG_CONFIG in
4620 [\\/]* | ?:[\\/]*)
4621 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4622 ;;
4623 *)
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636 done
4637IFS=$as_save_IFS
4638
4639 ;;
4640esac
4641fi
4642ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4643if test -n "$ac_pt_PKG_CONFIG"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4645$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4646else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648$as_echo "no" >&6; }
4649fi
4650
4651 if test "x$ac_pt_PKG_CONFIG" = x; then
4652 PKG_CONFIG=""
4653 else
4654 case $cross_compiling:$ac_tool_warned in
4655yes:)
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658ac_tool_warned=yes ;;
4659esac
4660 PKG_CONFIG=$ac_pt_PKG_CONFIG
4661 fi
4662else
4663 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4664fi
4665
4666
4667fi
4668
4669 SUBSTITUTED_PKG_CONFIG=yes
4670
4671
4672fi
4673
4674fi
4675
4676 if test -z "$PKG_CONFIG"; then :
4677 PKG_CONFIG=no
4678
4679fi
4680
4681if test "x$PKG_CONFIG" = xno; then :
4682 as_fn_error $? "A suitable pkg-config could not be found." "$LINENO" 5
4683
4684fi
4685
4686 # checking for ocamlc
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if ${ac_cv_path_OCAMLC+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694else
4695 case $OCAMLC in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712 done
4713IFS=$as_save_IFS
4714
4715 ;;
4716esac
4717fi
4718OCAMLC=$ac_cv_path_OCAMLC
4719if test -n "$OCAMLC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
4721$as_echo "$OCAMLC" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728fi
4729if test -z "$ac_cv_path_OCAMLC"; then
4730 ac_pt_OCAMLC=$OCAMLC
4731 # Extract the first word of "ocamlc", so it can be a program name with args.
4732set dummy ocamlc; ac_word=$2
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734$as_echo_n "checking for $ac_word... " >&6; }
4735if ${ac_cv_path_ac_pt_OCAMLC+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 case $ac_pt_OCAMLC in
4739 [\\/]* | ?:[\\/]*)
4740 ac_cv_path_ac_pt_OCAMLC="$ac_pt_OCAMLC" # Let the user override the test with a path.
4741 ;;
4742 *)
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_path_ac_pt_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754done
4755 done
4756IFS=$as_save_IFS
4757
4758 ;;
4759esac
4760fi
4761ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC
4762if test -n "$ac_pt_OCAMLC"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLC" >&5
4764$as_echo "$ac_pt_OCAMLC" >&6; }
4765else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767$as_echo "no" >&6; }
4768fi
4769
4770 if test "x$ac_pt_OCAMLC" = x; then
4771 OCAMLC="no"
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774yes:)
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777ac_tool_warned=yes ;;
4778esac
4779 OCAMLC=$ac_pt_OCAMLC
4780 fi
4781else
4782 OCAMLC="$ac_cv_path_OCAMLC"
4783fi
4784
4785
4786 if test "$OCAMLC" != "no"; then
4787 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
4789$as_echo "OCaml version is $OCAMLVERSION" >&6; }
4790 # If OCAMLLIB is set, use it
4791 if test "$OCAMLLIB" = ""; then
4792 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
4795$as_echo "OCAMLLIB previously set; preserving it." >&6; }
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
4798$as_echo "OCaml library path is $OCAMLLIB" >&6; }
4799
4800
4801
4802
4803 # checking for ocamlopt
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
4806set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if ${ac_cv_path_OCAMLOPT+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811else
4812 case $OCAMLOPT in
4813 [\\/]* | ?:[\\/]*)
4814 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
4815 ;;
4816 *)
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829 done
4830IFS=$as_save_IFS
4831
4832 ;;
4833esac
4834fi
4835OCAMLOPT=$ac_cv_path_OCAMLOPT
4836if test -n "$OCAMLOPT"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
4838$as_echo "$OCAMLOPT" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
4845fi
4846if test -z "$ac_cv_path_OCAMLOPT"; then
4847 ac_pt_OCAMLOPT=$OCAMLOPT
4848 # Extract the first word of "ocamlopt", so it can be a program name with args.
4849set dummy ocamlopt; ac_word=$2
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851$as_echo_n "checking for $ac_word... " >&6; }
4852if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854else
4855 case $ac_pt_OCAMLOPT in
4856 [\\/]* | ?:[\\/]*)
4857 ac_cv_path_ac_pt_OCAMLOPT="$ac_pt_OCAMLOPT" # Let the user override the test with a path.
4858 ;;
4859 *)
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_path_ac_pt_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872 done
4873IFS=$as_save_IFS
4874
4875 ;;
4876esac
4877fi
4878ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT
4879if test -n "$ac_pt_OCAMLOPT"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPT" >&5
4881$as_echo "$ac_pt_OCAMLOPT" >&6; }
4882else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887 if test "x$ac_pt_OCAMLOPT" = x; then
4888 OCAMLOPT="no"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896 OCAMLOPT=$ac_pt_OCAMLOPT
4897 fi
4898else
4899 OCAMLOPT="$ac_cv_path_OCAMLOPT"
4900fi
4901
4902 OCAMLBEST=byte
4903 if test "$OCAMLOPT" = "no"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
4905$as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
4906 else
4907 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
4908 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
4910$as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
4911 OCAMLOPT=no
4912 else
4913 OCAMLBEST=opt
4914 fi
4915 fi
4916
4917
4918
4919 # checking for ocamlc.opt
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
4922set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
4925if ${ac_cv_path_OCAMLCDOTOPT+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927else
4928 case $OCAMLCDOTOPT in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944done
4945 done
4946IFS=$as_save_IFS
4947
4948 ;;
4949esac
4950fi
4951OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT
4952if test -n "$OCAMLCDOTOPT"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
4954$as_echo "$OCAMLCDOTOPT" >&6; }
4955else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960
4961fi
4962if test -z "$ac_cv_path_OCAMLCDOTOPT"; then
4963 ac_pt_OCAMLCDOTOPT=$OCAMLCDOTOPT
4964 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
4965set dummy ocamlc.opt; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970else
4971 case $ac_pt_OCAMLCDOTOPT in
4972 [\\/]* | ?:[\\/]*)
4973 ac_cv_path_ac_pt_OCAMLCDOTOPT="$ac_pt_OCAMLCDOTOPT" # Let the user override the test with a path.
4974 ;;
4975 *)
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_ac_pt_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988 done
4989IFS=$as_save_IFS
4990
4991 ;;
4992esac
4993fi
4994ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT
4995if test -n "$ac_pt_OCAMLCDOTOPT"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLCDOTOPT" >&5
4997$as_echo "$ac_pt_OCAMLCDOTOPT" >&6; }
4998else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003 if test "x$ac_pt_OCAMLCDOTOPT" = x; then
5004 OCAMLCDOTOPT="no"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012 OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT
5013 fi
5014else
5015 OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT"
5016fi
5017
5018 if test "$OCAMLCDOTOPT" != "no"; then
5019 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5020 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
5022$as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
5023 else
5024 OCAMLC=$OCAMLCDOTOPT
5025 fi
5026 fi
5027
5028 # checking for ocamlopt.opt
5029 if test "$OCAMLOPT" != "no" ; then
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
5032set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034$as_echo_n "checking for $ac_word... " >&6; }
5035if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037else
5038 case $OCAMLOPTDOTOPT in
5039 [\\/]* | ?:[\\/]*)
5040 ac_cv_path_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test with a path.
5041 ;;
5042 *)
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044for as_dir in $PATH
5045do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_path_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054done
5055 done
5056IFS=$as_save_IFS
5057
5058 ;;
5059esac
5060fi
5061OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT
5062if test -n "$OCAMLOPTDOTOPT"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
5064$as_echo "$OCAMLOPTDOTOPT" >&6; }
5065else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067$as_echo "no" >&6; }
5068fi
5069
5070
5071fi
5072if test -z "$ac_cv_path_OCAMLOPTDOTOPT"; then
5073 ac_pt_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
5074 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
5075set dummy ocamlopt.opt; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 case $ac_pt_OCAMLOPTDOTOPT in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$ac_pt_OCAMLOPTDOTOPT" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097done
5098 done
5099IFS=$as_save_IFS
5100
5101 ;;
5102esac
5103fi
5104ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT
5105if test -n "$ac_pt_OCAMLOPTDOTOPT"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPTDOTOPT" >&5
5107$as_echo "$ac_pt_OCAMLOPTDOTOPT" >&6; }
5108else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113 if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then
5114 OCAMLOPTDOTOPT="no"
5115 else
5116 case $cross_compiling:$ac_tool_warned in
5117yes:)
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5120ac_tool_warned=yes ;;
5121esac
5122 OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT
5123 fi
5124else
5125 OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT"
5126fi
5127
5128 if test "$OCAMLOPTDOTOPT" != "no"; then
5129 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5130 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
5132$as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
5133 else
5134 OCAMLOPT=$OCAMLOPTDOTOPT
5135 fi
5136 fi
5137 fi
5138
5139
5140 fi
5141
5142
5143
5144 # checking for ocaml toplevel
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args.
5147set dummy ${ac_tool_prefix}ocaml; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if ${ac_cv_path_OCAML+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 case $OCAML in
5154 [\\/]* | ?:[\\/]*)
5155 ac_cv_path_OCAML="$OCAML" # Let the user override the test with a path.
5156 ;;
5157 *)
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_path_OCAML="$as_dir/$ac_word$ac_exec_ext"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170 done
5171IFS=$as_save_IFS
5172
5173 ;;
5174esac
5175fi
5176OCAML=$ac_cv_path_OCAML
5177if test -n "$OCAML"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
5179$as_echo "$OCAML" >&6; }
5180else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186fi
5187if test -z "$ac_cv_path_OCAML"; then
5188 ac_pt_OCAML=$OCAML
5189 # Extract the first word of "ocaml", so it can be a program name with args.
5190set dummy ocaml; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if ${ac_cv_path_ac_pt_OCAML+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195else
5196 case $ac_pt_OCAML in
5197 [\\/]* | ?:[\\/]*)
5198 ac_cv_path_ac_pt_OCAML="$ac_pt_OCAML" # Let the user override the test with a path.
5199 ;;
5200 *)
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_path_ac_pt_OCAML="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213 done
5214IFS=$as_save_IFS
5215
5216 ;;
5217esac
5218fi
5219ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML
5220if test -n "$ac_pt_OCAML"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAML" >&5
5222$as_echo "$ac_pt_OCAML" >&6; }
5223else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228 if test "x$ac_pt_OCAML" = x; then
5229 OCAML="no"
5230 else
5231 case $cross_compiling:$ac_tool_warned in
5232yes:)
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235ac_tool_warned=yes ;;
5236esac
5237 OCAML=$ac_pt_OCAML
5238 fi
5239else
5240 OCAML="$ac_cv_path_OCAML"
5241fi
5242
5243
5244 # checking for ocamldep
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
5247set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if ${ac_cv_path_OCAMLDEP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252else
5253 case $OCAMLDEP in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
5256 ;;
5257 *)
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269done
5270 done
5271IFS=$as_save_IFS
5272
5273 ;;
5274esac
5275fi
5276OCAMLDEP=$ac_cv_path_OCAMLDEP
5277if test -n "$OCAMLDEP"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
5279$as_echo "$OCAMLDEP" >&6; }
5280else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286fi
5287if test -z "$ac_cv_path_OCAMLDEP"; then
5288 ac_pt_OCAMLDEP=$OCAMLDEP
5289 # Extract the first word of "ocamldep", so it can be a program name with args.
5290set dummy ocamldep; ac_word=$2
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295else
5296 case $ac_pt_OCAMLDEP in
5297 [\\/]* | ?:[\\/]*)
5298 ac_cv_path_ac_pt_OCAMLDEP="$ac_pt_OCAMLDEP" # Let the user override the test with a path.
5299 ;;
5300 *)
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_ac_pt_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313 done
5314IFS=$as_save_IFS
5315
5316 ;;
5317esac
5318fi
5319ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP
5320if test -n "$ac_pt_OCAMLDEP"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDEP" >&5
5322$as_echo "$ac_pt_OCAMLDEP" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328 if test "x$ac_pt_OCAMLDEP" = x; then
5329 OCAMLDEP="no"
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335ac_tool_warned=yes ;;
5336esac
5337 OCAMLDEP=$ac_pt_OCAMLDEP
5338 fi
5339else
5340 OCAMLDEP="$ac_cv_path_OCAMLDEP"
5341fi
5342
5343
5344 # checking for ocamlmktop
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if ${ac_cv_path_OCAMLMKTOP+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 case $OCAMLMKTOP in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test with a path.
5356 ;;
5357 *)
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_path_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370 done
5371IFS=$as_save_IFS
5372
5373 ;;
5374esac
5375fi
5376OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP
5377if test -n "$OCAMLMKTOP"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
5379$as_echo "$OCAMLMKTOP" >&6; }
5380else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383fi
5384
5385
5386fi
5387if test -z "$ac_cv_path_OCAMLMKTOP"; then
5388 ac_pt_OCAMLMKTOP=$OCAMLMKTOP
5389 # Extract the first word of "ocamlmktop", so it can be a program name with args.
5390set dummy ocamlmktop; ac_word=$2
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392$as_echo_n "checking for $ac_word... " >&6; }
5393if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395else
5396 case $ac_pt_OCAMLMKTOP in
5397 [\\/]* | ?:[\\/]*)
5398 ac_cv_path_ac_pt_OCAMLMKTOP="$ac_pt_OCAMLMKTOP" # Let the user override the test with a path.
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_path_ac_pt_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5411 fi
5412done
5413 done
5414IFS=$as_save_IFS
5415
5416 ;;
5417esac
5418fi
5419ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP
5420if test -n "$ac_pt_OCAMLMKTOP"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKTOP" >&5
5422$as_echo "$ac_pt_OCAMLMKTOP" >&6; }
5423else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428 if test "x$ac_pt_OCAMLMKTOP" = x; then
5429 OCAMLMKTOP="no"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 OCAMLMKTOP=$ac_pt_OCAMLMKTOP
5438 fi
5439else
5440 OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP"
5441fi
5442
5443
5444 # checking for ocamlmklib
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
5447set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if ${ac_cv_path_OCAMLMKLIB+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452else
5453 case $OCAMLMKLIB in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469done
5470 done
5471IFS=$as_save_IFS
5472
5473 ;;
5474esac
5475fi
5476OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB
5477if test -n "$OCAMLMKLIB"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
5479$as_echo "$OCAMLMKLIB" >&6; }
5480else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482$as_echo "no" >&6; }
5483fi
5484
5485
5486fi
5487if test -z "$ac_cv_path_OCAMLMKLIB"; then
5488 ac_pt_OCAMLMKLIB=$OCAMLMKLIB
5489 # Extract the first word of "ocamlmklib", so it can be a program name with args.
5490set dummy ocamlmklib; ac_word=$2
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492$as_echo_n "checking for $ac_word... " >&6; }
5493if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495else
5496 case $ac_pt_OCAMLMKLIB in
5497 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_ac_pt_OCAMLMKLIB="$ac_pt_OCAMLMKLIB" # Let the user override the test with a path.
5499 ;;
5500 *)
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_ac_pt_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513 done
5514IFS=$as_save_IFS
5515
5516 ;;
5517esac
5518fi
5519ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB
5520if test -n "$ac_pt_OCAMLMKLIB"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKLIB" >&5
5522$as_echo "$ac_pt_OCAMLMKLIB" >&6; }
5523else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525$as_echo "no" >&6; }
5526fi
5527
5528 if test "x$ac_pt_OCAMLMKLIB" = x; then
5529 OCAMLMKLIB="no"
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532yes:)
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535ac_tool_warned=yes ;;
5536esac
5537 OCAMLMKLIB=$ac_pt_OCAMLMKLIB
5538 fi
5539else
5540 OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB"
5541fi
5542
5543
5544 # checking for ocamldoc
5545 if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
5547set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_path_OCAMLDOC+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552else
5553 case $OCAMLDOC in
5554 [\\/]* | ?:[\\/]*)
5555 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
5556 ;;
5557 *)
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569done
5570 done
5571IFS=$as_save_IFS
5572
5573 ;;
5574esac
5575fi
5576OCAMLDOC=$ac_cv_path_OCAMLDOC
5577if test -n "$OCAMLDOC"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
5579$as_echo "$OCAMLDOC" >&6; }
5580else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585
5586fi
5587if test -z "$ac_cv_path_OCAMLDOC"; then
5588 ac_pt_OCAMLDOC=$OCAMLDOC
5589 # Extract the first word of "ocamldoc", so it can be a program name with args.
5590set dummy ocamldoc; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 case $ac_pt_OCAMLDOC in
5597 [\\/]* | ?:[\\/]*)
5598 ac_cv_path_ac_pt_OCAMLDOC="$ac_pt_OCAMLDOC" # Let the user override the test with a path.
5599 ;;
5600 *)
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_path_ac_pt_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612done
5613 done
5614IFS=$as_save_IFS
5615
5616 ;;
5617esac
5618fi
5619ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC
5620if test -n "$ac_pt_OCAMLDOC"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDOC" >&5
5622$as_echo "$ac_pt_OCAMLDOC" >&6; }
5623else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625$as_echo "no" >&6; }
5626fi
5627
5628 if test "x$ac_pt_OCAMLDOC" = x; then
5629 OCAMLDOC="no"
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632yes:)
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635ac_tool_warned=yes ;;
5636esac
5637 OCAMLDOC=$ac_pt_OCAMLDOC
5638 fi
5639else
5640 OCAMLDOC="$ac_cv_path_OCAMLDOC"
5641fi
5642
5643
5644 # checking for ocamlbuild
5645 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
5647set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649$as_echo_n "checking for $ac_word... " >&6; }
5650if ${ac_cv_path_OCAMLBUILD+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652else
5653 case $OCAMLBUILD in
5654 [\\/]* | ?:[\\/]*)
5655 ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path.
5656 ;;
5657 *)
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669done
5670 done
5671IFS=$as_save_IFS
5672
5673 ;;
5674esac
5675fi
5676OCAMLBUILD=$ac_cv_path_OCAMLBUILD
5677if test -n "$OCAMLBUILD"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
5679$as_echo "$OCAMLBUILD" >&6; }
5680else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685
5686fi
5687if test -z "$ac_cv_path_OCAMLBUILD"; then
5688 ac_pt_OCAMLBUILD=$OCAMLBUILD
5689 # Extract the first word of "ocamlbuild", so it can be a program name with args.
5690set dummy ocamlbuild; ac_word=$2
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692$as_echo_n "checking for $ac_word... " >&6; }
5693if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695else
5696 case $ac_pt_OCAMLBUILD in
5697 [\\/]* | ?:[\\/]*)
5698 ac_cv_path_ac_pt_OCAMLBUILD="$ac_pt_OCAMLBUILD" # Let the user override the test with a path.
5699 ;;
5700 *)
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_ac_pt_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712done
5713 done
5714IFS=$as_save_IFS
5715
5716 ;;
5717esac
5718fi
5719ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD
5720if test -n "$ac_pt_OCAMLBUILD"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLBUILD" >&5
5722$as_echo "$ac_pt_OCAMLBUILD" >&6; }
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726fi
5727
5728 if test "x$ac_pt_OCAMLBUILD" = x; then
5729 OCAMLBUILD="no"
5730 else
5731 case $cross_compiling:$ac_tool_warned in
5732yes:)
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735ac_tool_warned=yes ;;
5736esac
5737 OCAMLBUILD=$ac_pt_OCAMLBUILD
5738 fi
5739else
5740 OCAMLBUILD="$ac_cv_path_OCAMLBUILD"
5741fi
5742
5743
5744 { versioncheck=; unset versioncheck;}
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.10" >&5
5746$as_echo_n "checking that the OCaml version is at least 3.10... " >&6; }
5747 as_arg_v1=$OCAMLVERSION
5748as_arg_v2=3.10
5749awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5750case $? in #(
5751 1) :
5752 versioncheck=no ;; #(
5753 0) :
5754 versioncheck=yes ;; #(
5755 2) :
5756 versioncheck=yes ;; #(
5757 *) :
5758 ;;
5759esac
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
5761$as_echo "$versioncheck" >&6; }
5762 OCAMLATLEAST310=$versioncheck
5763
5764
5765 { versioncheck=; unset versioncheck;}
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.11" >&5
5767$as_echo_n "checking that the OCaml version is at least 3.11... " >&6; }
5768 as_arg_v1=$OCAMLVERSION
5769as_arg_v2=3.11
5770awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5771case $? in #(
5772 1) :
5773 versioncheck=no ;; #(
5774 0) :
5775 versioncheck=yes ;; #(
5776 2) :
5777 versioncheck=yes ;; #(
5778 *) :
5779 ;;
5780esac
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
5782$as_echo "$versioncheck" >&6; }
5783 OCAMLATLEAST311=$versioncheck
5784
5785
5786
5787if test "x$OCAMLC" = xno -o "x$OCAMLDEP" = xno -o "x$OCAMLDOC" = xno -o "x$OCAMLMKLIB" = xno; then :
5788 as_fn_error $? "You must install the OCaml compiler" "$LINENO" 5
5789
5790fi
5791if test "x$OCAMLATLEAST310" = xno; then :
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: a more recent OCaml installation may be required" >&5
5793$as_echo "$as_me: a more recent OCaml installation may be required" >&6;}
5794fi
5795
5796
5797 # checking for camlp4
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}camlp4", so it can be a program name with args.
5800set dummy ${ac_tool_prefix}camlp4; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if ${ac_cv_path_CAMLP4+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805else
5806 case $CAMLP4 in
5807 [\\/]* | ?:[\\/]*)
5808 ac_cv_path_CAMLP4="$CAMLP4" # Let the user override the test with a path.
5809 ;;
5810 *)
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823 done
5824IFS=$as_save_IFS
5825
5826 ;;
5827esac
5828fi
5829CAMLP4=$ac_cv_path_CAMLP4
5830if test -n "$CAMLP4"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5
5832$as_echo "$CAMLP4" >&6; }
5833else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838
5839fi
5840if test -z "$ac_cv_path_CAMLP4"; then
5841 ac_pt_CAMLP4=$CAMLP4
5842 # Extract the first word of "camlp4", so it can be a program name with args.
5843set dummy camlp4; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if ${ac_cv_path_ac_pt_CAMLP4+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848else
5849 case $ac_pt_CAMLP4 in
5850 [\\/]* | ?:[\\/]*)
5851 ac_cv_path_ac_pt_CAMLP4="$ac_pt_CAMLP4" # Let the user override the test with a path.
5852 ;;
5853 *)
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_path_ac_pt_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866 done
5867IFS=$as_save_IFS
5868
5869 ;;
5870esac
5871fi
5872ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4
5873if test -n "$ac_pt_CAMLP4"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4" >&5
5875$as_echo "$ac_pt_CAMLP4" >&6; }
5876else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881 if test "x$ac_pt_CAMLP4" = x; then
5882 CAMLP4="no"
5883 else
5884 case $cross_compiling:$ac_tool_warned in
5885yes:)
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888ac_tool_warned=yes ;;
5889esac
5890 CAMLP4=$ac_pt_CAMLP4
5891 fi
5892else
5893 CAMLP4="$ac_cv_path_CAMLP4"
5894fi
5895
5896 if test "$CAMLP4" != "no"; then
5897 TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'`
5898 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc" >&5
5900$as_echo "versions differs from ocamlc" >&6; }
5901 CAMLP4=no
5902 fi
5903 fi
5904
5905
5906 # checking for companion tools
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}camlp4boot", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}camlp4boot; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
5912if ${ac_cv_path_CAMLP4BOOT+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914else
5915 case $CAMLP4BOOT in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_CAMLP4BOOT="$CAMLP4BOOT" # Let the user override the test with a path.
5918 ;;
5919 *)
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_path_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932 done
5933IFS=$as_save_IFS
5934
5935 ;;
5936esac
5937fi
5938CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT
5939if test -n "$CAMLP4BOOT"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5
5941$as_echo "$CAMLP4BOOT" >&6; }
5942else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947
5948fi
5949if test -z "$ac_cv_path_CAMLP4BOOT"; then
5950 ac_pt_CAMLP4BOOT=$CAMLP4BOOT
5951 # Extract the first word of "camlp4boot", so it can be a program name with args.
5952set dummy camlp4boot; ac_word=$2
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954$as_echo_n "checking for $ac_word... " >&6; }
5955if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957else
5958 case $ac_pt_CAMLP4BOOT in
5959 [\\/]* | ?:[\\/]*)
5960 ac_cv_path_ac_pt_CAMLP4BOOT="$ac_pt_CAMLP4BOOT" # Let the user override the test with a path.
5961 ;;
5962 *)
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_ac_pt_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975 done
5976IFS=$as_save_IFS
5977
5978 ;;
5979esac
5980fi
5981ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT
5982if test -n "$ac_pt_CAMLP4BOOT"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4BOOT" >&5
5984$as_echo "$ac_pt_CAMLP4BOOT" >&6; }
5985else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987$as_echo "no" >&6; }
5988fi
5989
5990 if test "x$ac_pt_CAMLP4BOOT" = x; then
5991 CAMLP4BOOT="no"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994yes:)
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997ac_tool_warned=yes ;;
5998esac
5999 CAMLP4BOOT=$ac_pt_CAMLP4BOOT
6000 fi
6001else
6002 CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT"
6003fi
6004
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}camlp4o", so it can be a program name with args.
6007set dummy ${ac_tool_prefix}camlp4o; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if ${ac_cv_path_CAMLP4O+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 case $CAMLP4O in
6014 [\\/]* | ?:[\\/]*)
6015 ac_cv_path_CAMLP4O="$CAMLP4O" # Let the user override the test with a path.
6016 ;;
6017 *)
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_path_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030 done
6031IFS=$as_save_IFS
6032
6033 ;;
6034esac
6035fi
6036CAMLP4O=$ac_cv_path_CAMLP4O
6037if test -n "$CAMLP4O"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5
6039$as_echo "$CAMLP4O" >&6; }
6040else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046fi
6047if test -z "$ac_cv_path_CAMLP4O"; then
6048 ac_pt_CAMLP4O=$CAMLP4O
6049 # Extract the first word of "camlp4o", so it can be a program name with args.
6050set dummy camlp4o; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055else
6056 case $ac_pt_CAMLP4O in
6057 [\\/]* | ?:[\\/]*)
6058 ac_cv_path_ac_pt_CAMLP4O="$ac_pt_CAMLP4O" # Let the user override the test with a path.
6059 ;;
6060 *)
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_ac_pt_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076 ;;
6077esac
6078fi
6079ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O
6080if test -n "$ac_pt_CAMLP4O"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4O" >&5
6082$as_echo "$ac_pt_CAMLP4O" >&6; }
6083else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088 if test "x$ac_pt_CAMLP4O" = x; then
6089 CAMLP4O="no"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097 CAMLP4O=$ac_pt_CAMLP4O
6098 fi
6099else
6100 CAMLP4O="$ac_cv_path_CAMLP4O"
6101fi
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}camlp4of", so it can be a program name with args.
6105set dummy ${ac_tool_prefix}camlp4of; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if ${ac_cv_path_CAMLP4OF+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110else
6111 case $CAMLP4OF in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_CAMLP4OF="$CAMLP4OF" # Let the user override the test with a path.
6114 ;;
6115 *)
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127done
6128 done
6129IFS=$as_save_IFS
6130
6131 ;;
6132esac
6133fi
6134CAMLP4OF=$ac_cv_path_CAMLP4OF
6135if test -n "$CAMLP4OF"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5
6137$as_echo "$CAMLP4OF" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143
6144fi
6145if test -z "$ac_cv_path_CAMLP4OF"; then
6146 ac_pt_CAMLP4OF=$CAMLP4OF
6147 # Extract the first word of "camlp4of", so it can be a program name with args.
6148set dummy camlp4of; ac_word=$2
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150$as_echo_n "checking for $ac_word... " >&6; }
6151if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153else
6154 case $ac_pt_CAMLP4OF in
6155 [\\/]* | ?:[\\/]*)
6156 ac_cv_path_ac_pt_CAMLP4OF="$ac_pt_CAMLP4OF" # Let the user override the test with a path.
6157 ;;
6158 *)
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_path_ac_pt_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171 done
6172IFS=$as_save_IFS
6173
6174 ;;
6175esac
6176fi
6177ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF
6178if test -n "$ac_pt_CAMLP4OF"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OF" >&5
6180$as_echo "$ac_pt_CAMLP4OF" >&6; }
6181else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186 if test "x$ac_pt_CAMLP4OF" = x; then
6187 CAMLP4OF="no"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190yes:)
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193ac_tool_warned=yes ;;
6194esac
6195 CAMLP4OF=$ac_pt_CAMLP4OF
6196 fi
6197else
6198 CAMLP4OF="$ac_cv_path_CAMLP4OF"
6199fi
6200
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}camlp4oof", so it can be a program name with args.
6203set dummy ${ac_tool_prefix}camlp4oof; ac_word=$2
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205$as_echo_n "checking for $ac_word... " >&6; }
6206if ${ac_cv_path_CAMLP4OOF+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208else
6209 case $CAMLP4OOF in
6210 [\\/]* | ?:[\\/]*)
6211 ac_cv_path_CAMLP4OOF="$CAMLP4OOF" # Let the user override the test with a path.
6212 ;;
6213 *)
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_path_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225done
6226 done
6227IFS=$as_save_IFS
6228
6229 ;;
6230esac
6231fi
6232CAMLP4OOF=$ac_cv_path_CAMLP4OOF
6233if test -n "$CAMLP4OOF"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5
6235$as_echo "$CAMLP4OOF" >&6; }
6236else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_path_CAMLP4OOF"; then
6244 ac_pt_CAMLP4OOF=$CAMLP4OOF
6245 # Extract the first word of "camlp4oof", so it can be a program name with args.
6246set dummy camlp4oof; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251else
6252 case $ac_pt_CAMLP4OOF in
6253 [\\/]* | ?:[\\/]*)
6254 ac_cv_path_ac_pt_CAMLP4OOF="$ac_pt_CAMLP4OOF" # Let the user override the test with a path.
6255 ;;
6256 *)
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_path_ac_pt_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269 done
6270IFS=$as_save_IFS
6271
6272 ;;
6273esac
6274fi
6275ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF
6276if test -n "$ac_pt_CAMLP4OOF"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OOF" >&5
6278$as_echo "$ac_pt_CAMLP4OOF" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284 if test "x$ac_pt_CAMLP4OOF" = x; then
6285 CAMLP4OOF="no"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288yes:)
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291ac_tool_warned=yes ;;
6292esac
6293 CAMLP4OOF=$ac_pt_CAMLP4OOF
6294 fi
6295else
6296 CAMLP4OOF="$ac_cv_path_CAMLP4OOF"
6297fi
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}camlp4orf", so it can be a program name with args.
6301set dummy ${ac_tool_prefix}camlp4orf; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_path_CAMLP4ORF+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 case $CAMLP4ORF in
6308 [\\/]* | ?:[\\/]*)
6309 ac_cv_path_CAMLP4ORF="$CAMLP4ORF" # Let the user override the test with a path.
6310 ;;
6311 *)
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323done
6324 done
6325IFS=$as_save_IFS
6326
6327 ;;
6328esac
6329fi
6330CAMLP4ORF=$ac_cv_path_CAMLP4ORF
6331if test -n "$CAMLP4ORF"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5
6333$as_echo "$CAMLP4ORF" >&6; }
6334else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339
6340fi
6341if test -z "$ac_cv_path_CAMLP4ORF"; then
6342 ac_pt_CAMLP4ORF=$CAMLP4ORF
6343 # Extract the first word of "camlp4orf", so it can be a program name with args.
6344set dummy camlp4orf; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349else
6350 case $ac_pt_CAMLP4ORF in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_ac_pt_CAMLP4ORF="$ac_pt_CAMLP4ORF" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_ac_pt_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370 ;;
6371esac
6372fi
6373ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF
6374if test -n "$ac_pt_CAMLP4ORF"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4ORF" >&5
6376$as_echo "$ac_pt_CAMLP4ORF" >&6; }
6377else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382 if test "x$ac_pt_CAMLP4ORF" = x; then
6383 CAMLP4ORF="no"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386yes:)
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389ac_tool_warned=yes ;;
6390esac
6391 CAMLP4ORF=$ac_pt_CAMLP4ORF
6392 fi
6393else
6394 CAMLP4ORF="$ac_cv_path_CAMLP4ORF"
6395fi
6396
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}camlp4prof", so it can be a program name with args.
6399set dummy ${ac_tool_prefix}camlp4prof; ac_word=$2
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
6402if ${ac_cv_path_CAMLP4PROF+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404else
6405 case $CAMLP4PROF in
6406 [\\/]* | ?:[\\/]*)
6407 ac_cv_path_CAMLP4PROF="$CAMLP4PROF" # Let the user override the test with a path.
6408 ;;
6409 *)
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_path_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422 done
6423IFS=$as_save_IFS
6424
6425 ;;
6426esac
6427fi
6428CAMLP4PROF=$ac_cv_path_CAMLP4PROF
6429if test -n "$CAMLP4PROF"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5
6431$as_echo "$CAMLP4PROF" >&6; }
6432else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434$as_echo "no" >&6; }
6435fi
6436
6437
6438fi
6439if test -z "$ac_cv_path_CAMLP4PROF"; then
6440 ac_pt_CAMLP4PROF=$CAMLP4PROF
6441 # Extract the first word of "camlp4prof", so it can be a program name with args.
6442set dummy camlp4prof; ac_word=$2
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444$as_echo_n "checking for $ac_word... " >&6; }
6445if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448 case $ac_pt_CAMLP4PROF in
6449 [\\/]* | ?:[\\/]*)
6450 ac_cv_path_ac_pt_CAMLP4PROF="$ac_pt_CAMLP4PROF" # Let the user override the test with a path.
6451 ;;
6452 *)
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_ac_pt_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464done
6465 done
6466IFS=$as_save_IFS
6467
6468 ;;
6469esac
6470fi
6471ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF
6472if test -n "$ac_pt_CAMLP4PROF"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4PROF" >&5
6474$as_echo "$ac_pt_CAMLP4PROF" >&6; }
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480 if test "x$ac_pt_CAMLP4PROF" = x; then
6481 CAMLP4PROF="no"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487ac_tool_warned=yes ;;
6488esac
6489 CAMLP4PROF=$ac_pt_CAMLP4PROF
6490 fi
6491else
6492 CAMLP4PROF="$ac_cv_path_CAMLP4PROF"
6493fi
6494
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}camlp4r", so it can be a program name with args.
6497set dummy ${ac_tool_prefix}camlp4r; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
6500if ${ac_cv_path_CAMLP4R+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502else
6503 case $CAMLP4R in
6504 [\\/]* | ?:[\\/]*)
6505 ac_cv_path_CAMLP4R="$CAMLP4R" # Let the user override the test with a path.
6506 ;;
6507 *)
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_path_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519done
6520 done
6521IFS=$as_save_IFS
6522
6523 ;;
6524esac
6525fi
6526CAMLP4R=$ac_cv_path_CAMLP4R
6527if test -n "$CAMLP4R"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5
6529$as_echo "$CAMLP4R" >&6; }
6530else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
6533fi
6534
6535
6536fi
6537if test -z "$ac_cv_path_CAMLP4R"; then
6538 ac_pt_CAMLP4R=$CAMLP4R
6539 # Extract the first word of "camlp4r", so it can be a program name with args.
6540set dummy camlp4r; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
6543if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545else
6546 case $ac_pt_CAMLP4R in
6547 [\\/]* | ?:[\\/]*)
6548 ac_cv_path_ac_pt_CAMLP4R="$ac_pt_CAMLP4R" # Let the user override the test with a path.
6549 ;;
6550 *)
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_ac_pt_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562done
6563 done
6564IFS=$as_save_IFS
6565
6566 ;;
6567esac
6568fi
6569ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R
6570if test -n "$ac_pt_CAMLP4R"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4R" >&5
6572$as_echo "$ac_pt_CAMLP4R" >&6; }
6573else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
6576fi
6577
6578 if test "x$ac_pt_CAMLP4R" = x; then
6579 CAMLP4R="no"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582yes:)
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585ac_tool_warned=yes ;;
6586esac
6587 CAMLP4R=$ac_pt_CAMLP4R
6588 fi
6589else
6590 CAMLP4R="$ac_cv_path_CAMLP4R"
6591fi
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}camlp4rf", so it can be a program name with args.
6595set dummy ${ac_tool_prefix}camlp4rf; ac_word=$2
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597$as_echo_n "checking for $ac_word... " >&6; }
6598if ${ac_cv_path_CAMLP4RF+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600else
6601 case $CAMLP4RF in
6602 [\\/]* | ?:[\\/]*)
6603 ac_cv_path_CAMLP4RF="$CAMLP4RF" # Let the user override the test with a path.
6604 ;;
6605 *)
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618 done
6619IFS=$as_save_IFS
6620
6621 ;;
6622esac
6623fi
6624CAMLP4RF=$ac_cv_path_CAMLP4RF
6625if test -n "$CAMLP4RF"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5
6627$as_echo "$CAMLP4RF" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634fi
6635if test -z "$ac_cv_path_CAMLP4RF"; then
6636 ac_pt_CAMLP4RF=$CAMLP4RF
6637 # Extract the first word of "camlp4rf", so it can be a program name with args.
6638set dummy camlp4rf; ac_word=$2
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640$as_echo_n "checking for $ac_word... " >&6; }
6641if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643else
6644 case $ac_pt_CAMLP4RF in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_ac_pt_CAMLP4RF="$ac_pt_CAMLP4RF" # Let the user override the test with a path.
6647 ;;
6648 *)
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_ac_pt_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661 done
6662IFS=$as_save_IFS
6663
6664 ;;
6665esac
6666fi
6667ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF
6668if test -n "$ac_pt_CAMLP4RF"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4RF" >&5
6670$as_echo "$ac_pt_CAMLP4RF" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676 if test "x$ac_pt_CAMLP4RF" = x; then
6677 CAMLP4RF="no"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683ac_tool_warned=yes ;;
6684esac
6685 CAMLP4RF=$ac_pt_CAMLP4RF
6686 fi
6687else
6688 CAMLP4RF="$ac_cv_path_CAMLP4RF"
6689fi
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702# Check whether --with-ocamllex was given.
6703if test "${with_ocamllex+set}" = set; then :
6704 withval=$with_ocamllex;
6705fi
6706
6707 with_OCAMLLEX="$with_ocamllex"
6708
feec80c3
C
6709 if test -n "$with_OCAMLLEX" -a "x$with_OCAMLLEX" != xno -a "x$with_OCAMLLEX" != xyes; then :
6710 OCAMLLEX="$with_OCAMLLEX"
6711
6712
d6ce1786
C
6713else
6714 OCAMLLEX="ocamllex"
6715
6716
feec80c3
C
6717fi
6718
d6ce1786
C
6719 if test "x$with_OCAMLLEX" = xno; then :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex is disabled explicitly" >&5
6721$as_echo "$as_me: ocamllex is disabled explicitly" >&6;}
6722 OCAMLLEX=no
6723
6724
6725else
6726 if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
feec80c3
C
6727
6728
6729if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6732set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
6735if ${ac_cv_path_PKG_CONFIG+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737else
6738 case $PKG_CONFIG in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758 ;;
6759esac
6760fi
6761PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6762if test -n "$PKG_CONFIG"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6764$as_echo "$PKG_CONFIG" >&6; }
6765else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770
6771fi
6772if test -z "$ac_cv_path_PKG_CONFIG"; then
6773 ac_pt_PKG_CONFIG=$PKG_CONFIG
6774 # Extract the first word of "pkg-config", so it can be a program name with args.
6775set dummy pkg-config; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780else
6781 case $ac_pt_PKG_CONFIG in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6784 ;;
6785 *)
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798 done
6799IFS=$as_save_IFS
6800
6801 ;;
6802esac
6803fi
6804ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6805if test -n "$ac_pt_PKG_CONFIG"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6807$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813 if test "x$ac_pt_PKG_CONFIG" = x; then
6814 PKG_CONFIG=""
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817yes:)
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820ac_tool_warned=yes ;;
6821esac
6822 PKG_CONFIG=$ac_pt_PKG_CONFIG
6823 fi
6824else
6825 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6826fi
6827
6828fi
6829if test -n "$PKG_CONFIG"; then
6830 _pkg_min_version=0.9.0
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6832$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6833 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835$as_echo "yes" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
6839 PKG_CONFIG=""
6840 fi
6841
6842fi
6843
d6ce1786 6844elif test "x$OCAMLLEX" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
feec80c3
C
6845 # checking for ocamllex
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if ${ac_cv_path_OCAMLLEX+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853else
6854 case $OCAMLLEX in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874 ;;
6875esac
6876fi
6877OCAMLLEX=$ac_cv_path_OCAMLLEX
6878if test -n "$OCAMLLEX"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
6880$as_echo "$OCAMLLEX" >&6; }
6881else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883$as_echo "no" >&6; }
6884fi
6885
6886
6887fi
6888if test -z "$ac_cv_path_OCAMLLEX"; then
6889 ac_pt_OCAMLLEX=$OCAMLLEX
6890 # Extract the first word of "ocamllex", so it can be a program name with args.
6891set dummy ocamllex; ac_word=$2
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893$as_echo_n "checking for $ac_word... " >&6; }
6894if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896else
6897 case $ac_pt_OCAMLLEX in
6898 [\\/]* | ?:[\\/]*)
6899 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
6900 ;;
6901 *)
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913done
6914 done
6915IFS=$as_save_IFS
6916
6917 ;;
6918esac
6919fi
6920ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
6921if test -n "$ac_pt_OCAMLLEX"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
6923$as_echo "$ac_pt_OCAMLLEX" >&6; }
6924else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929 if test "x$ac_pt_OCAMLLEX" = x; then
6930 OCAMLLEX="no"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938 OCAMLLEX=$ac_pt_OCAMLLEX
6939 fi
6940else
6941 OCAMLLEX="$ac_cv_path_OCAMLLEX"
6942fi
6943
6944 if test "$OCAMLLEX" != "no"; then
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
6950if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952else
6953 case $OCAMLLEXDOTOPT in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970 done
6971IFS=$as_save_IFS
6972
6973 ;;
6974esac
6975fi
6976OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
6977if test -n "$OCAMLLEXDOTOPT"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
6979$as_echo "$OCAMLLEXDOTOPT" >&6; }
6980else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985
6986fi
6987if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
6988 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
6989 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
6990set dummy ocamllex.opt; ac_word=$2
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
6993if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995else
6996 case $ac_pt_OCAMLLEXDOTOPT in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
6999 ;;
7000 *)
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012done
7013 done
7014IFS=$as_save_IFS
7015
7016 ;;
7017esac
7018fi
7019ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7020if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7022$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7029 OCAMLLEXDOTOPT="no"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7038 fi
7039else
7040 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7041fi
7042
7043 if test "$OCAMLLEXDOTOPT" != "no"; then
7044 OCAMLLEX=$OCAMLLEXDOTOPT
7045 fi
7046 fi
7047
7048
7049
d6ce1786 7050elif test "x$OCAMLLEX" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
feec80c3
C
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7053set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055$as_echo_n "checking for $ac_word... " >&6; }
7056if ${ac_cv_path_OCAMLYACC+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058else
7059 case $OCAMLYACC in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076 done
7077IFS=$as_save_IFS
7078
7079 ;;
7080esac
7081fi
7082OCAMLYACC=$ac_cv_path_OCAMLYACC
7083if test -n "$OCAMLYACC"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7085$as_echo "$OCAMLYACC" >&6; }
7086else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089fi
7090
7091
7092fi
7093if test -z "$ac_cv_path_OCAMLYACC"; then
7094 ac_pt_OCAMLYACC=$OCAMLYACC
7095 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7096set dummy ocamlyacc; ac_word=$2
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098$as_echo_n "checking for $ac_word... " >&6; }
7099if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101else
7102 case $ac_pt_OCAMLYACC in
7103 [\\/]* | ?:[\\/]*)
7104 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7105 ;;
7106 *)
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119 done
7120IFS=$as_save_IFS
7121
7122 ;;
7123esac
7124fi
7125ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7126if test -n "$ac_pt_OCAMLYACC"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7128$as_echo "$ac_pt_OCAMLYACC" >&6; }
7129else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134 if test "x$ac_pt_OCAMLYACC" = x; then
7135 OCAMLYACC="no"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138yes:)
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141ac_tool_warned=yes ;;
7142esac
7143 OCAMLYACC=$ac_pt_OCAMLYACC
7144 fi
7145else
7146 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7147fi
7148
7149
7150
7151
7152else
7153 if test -n "$ac_tool_prefix"; then
d6ce1786
C
7154 # Extract the first word of "${ac_tool_prefix}[$]OCAMLLEX", so it can be a program name with args.
7155set dummy ${ac_tool_prefix}$OCAMLLEX; ac_word=$2
feec80c3
C
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_path_OCAMLLEX+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160else
7161 case $OCAMLLEX in
7162 [\\/]* | ?:[\\/]*)
7163 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7164 ;;
7165 *)
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178 done
7179IFS=$as_save_IFS
7180
7181 ;;
7182esac
7183fi
7184OCAMLLEX=$ac_cv_path_OCAMLLEX
7185if test -n "$OCAMLLEX"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7187$as_echo "$OCAMLLEX" >&6; }
7188else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190$as_echo "no" >&6; }
7191fi
7192
7193
7194fi
7195if test -z "$ac_cv_path_OCAMLLEX"; then
7196 ac_pt_OCAMLLEX=$OCAMLLEX
d6ce1786
C
7197 # Extract the first word of "[$]OCAMLLEX", so it can be a program name with args.
7198set dummy $OCAMLLEX; ac_word=$2
feec80c3
C
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
7201if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203else
7204 case $ac_pt_OCAMLLEX in
7205 [\\/]* | ?:[\\/]*)
7206 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7207 ;;
7208 *)
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221 done
7222IFS=$as_save_IFS
7223
7224 ;;
7225esac
7226fi
7227ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7228if test -n "$ac_pt_OCAMLLEX"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7230$as_echo "$ac_pt_OCAMLLEX" >&6; }
7231else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236 if test "x$ac_pt_OCAMLLEX" = x; then
7237 OCAMLLEX=""
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240yes:)
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243ac_tool_warned=yes ;;
7244esac
7245 OCAMLLEX=$ac_pt_OCAMLLEX
7246 fi
7247else
7248 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7249fi
7250
7251
7252fi
7253
7254
7255fi
7256
7257 if test -z "$OCAMLLEX" -o "x$OCAMLLEX" = xno; then :
7258 if test "x$with_OCAMLLEX" = xyes; then :
7259 as_fn_error $? "--with=ocamllex is given explicitly but not found" "$LINENO" 5
7260
7261fi
7262
7263 if test -n ""; then :
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex not found. Trying substitute ." >&5
7265$as_echo "$as_me: ocamllex not found. Trying substitute ." >&6;}
7266 OCAMLLEX=""
7267
7268 if test "xocamllex" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
7269
7270
7271if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7272 if test -n "$ac_tool_prefix"; then
7273 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7274set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276$as_echo_n "checking for $ac_word... " >&6; }
7277if ${ac_cv_path_PKG_CONFIG+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279else
7280 case $PKG_CONFIG in
7281 [\\/]* | ?:[\\/]*)
7282 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7283 ;;
7284 *)
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297 done
7298IFS=$as_save_IFS
7299
7300 ;;
7301esac
7302fi
7303PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7304if test -n "$PKG_CONFIG"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7306$as_echo "$PKG_CONFIG" >&6; }
7307else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313fi
7314if test -z "$ac_cv_path_PKG_CONFIG"; then
7315 ac_pt_PKG_CONFIG=$PKG_CONFIG
7316 # Extract the first word of "pkg-config", so it can be a program name with args.
7317set dummy pkg-config; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
7320if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322else
7323 case $ac_pt_PKG_CONFIG in
7324 [\\/]* | ?:[\\/]*)
7325 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339done
7340 done
7341IFS=$as_save_IFS
7342
7343 ;;
7344esac
7345fi
7346ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7347if test -n "$ac_pt_PKG_CONFIG"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7349$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7350else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352$as_echo "no" >&6; }
7353fi
7354
7355 if test "x$ac_pt_PKG_CONFIG" = x; then
7356 PKG_CONFIG=""
7357 else
7358 case $cross_compiling:$ac_tool_warned in
7359yes:)
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362ac_tool_warned=yes ;;
7363esac
7364 PKG_CONFIG=$ac_pt_PKG_CONFIG
7365 fi
7366else
7367 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7368fi
7369
7370fi
7371if test -n "$PKG_CONFIG"; then
7372 _pkg_min_version=0.9.0
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7374$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7375 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7377$as_echo "yes" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381 PKG_CONFIG=""
7382 fi
7383
7384fi
7385
7386elif test "xocamllex" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
7387 # checking for ocamllex
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7390set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_path_OCAMLLEX+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395else
7396 case $OCAMLLEX in
7397 [\\/]* | ?:[\\/]*)
7398 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7399 ;;
7400 *)
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413 done
7414IFS=$as_save_IFS
7415
7416 ;;
7417esac
7418fi
7419OCAMLLEX=$ac_cv_path_OCAMLLEX
7420if test -n "$OCAMLLEX"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7422$as_echo "$OCAMLLEX" >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428
7429fi
7430if test -z "$ac_cv_path_OCAMLLEX"; then
7431 ac_pt_OCAMLLEX=$OCAMLLEX
7432 # Extract the first word of "ocamllex", so it can be a program name with args.
7433set dummy ocamllex; ac_word=$2
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435$as_echo_n "checking for $ac_word... " >&6; }
7436if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438else
7439 case $ac_pt_OCAMLLEX in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456 done
7457IFS=$as_save_IFS
7458
7459 ;;
7460esac
7461fi
7462ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7463if test -n "$ac_pt_OCAMLLEX"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7465$as_echo "$ac_pt_OCAMLLEX" >&6; }
7466else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469fi
7470
7471 if test "x$ac_pt_OCAMLLEX" = x; then
7472 OCAMLLEX="no"
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475yes:)
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478ac_tool_warned=yes ;;
7479esac
7480 OCAMLLEX=$ac_pt_OCAMLLEX
7481 fi
7482else
7483 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7484fi
7485
7486 if test "$OCAMLLEX" != "no"; then
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
7489set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491$as_echo_n "checking for $ac_word... " >&6; }
7492if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 case $OCAMLLEXDOTOPT in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511done
7512 done
7513IFS=$as_save_IFS
7514
7515 ;;
7516esac
7517fi
7518OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
7519if test -n "$OCAMLLEXDOTOPT"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
7521$as_echo "$OCAMLLEXDOTOPT" >&6; }
7522else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527
7528fi
7529if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
7530 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
7531 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
7532set dummy ocamllex.opt; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537else
7538 case $ac_pt_OCAMLLEXDOTOPT in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555 done
7556IFS=$as_save_IFS
7557
7558 ;;
7559esac
7560fi
7561ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7562if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7564$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7565else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7571 OCAMLLEXDOTOPT="no"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574yes:)
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577ac_tool_warned=yes ;;
7578esac
7579 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7580 fi
7581else
7582 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7583fi
7584
7585 if test "$OCAMLLEXDOTOPT" != "no"; then
7586 OCAMLLEX=$OCAMLLEXDOTOPT
7587 fi
7588 fi
7589
7590
7591
7592elif test "xocamllex" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
7593 if test -n "$ac_tool_prefix"; then
7594 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7595set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if ${ac_cv_path_OCAMLYACC+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600else
7601 case $OCAMLYACC in
7602 [\\/]* | ?:[\\/]*)
7603 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7604 ;;
7605 *)
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617done
7618 done
7619IFS=$as_save_IFS
7620
7621 ;;
7622esac
7623fi
7624OCAMLYACC=$ac_cv_path_OCAMLYACC
7625if test -n "$OCAMLYACC"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7627$as_echo "$OCAMLYACC" >&6; }
7628else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631fi
7632
7633
7634fi
7635if test -z "$ac_cv_path_OCAMLYACC"; then
7636 ac_pt_OCAMLYACC=$OCAMLYACC
7637 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7638set dummy ocamlyacc; ac_word=$2
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643else
7644 case $ac_pt_OCAMLYACC in
7645 [\\/]* | ?:[\\/]*)
7646 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7647 ;;
7648 *)
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661 done
7662IFS=$as_save_IFS
7663
7664 ;;
7665esac
7666fi
7667ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7668if test -n "$ac_pt_OCAMLYACC"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7670$as_echo "$ac_pt_OCAMLYACC" >&6; }
7671else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676 if test "x$ac_pt_OCAMLYACC" = x; then
7677 OCAMLYACC="no"
7678 else
7679 case $cross_compiling:$ac_tool_warned in
7680yes:)
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683ac_tool_warned=yes ;;
7684esac
7685 OCAMLYACC=$ac_pt_OCAMLYACC
7686 fi
7687else
7688 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7689fi
7690
7691
7692
7693
7694else
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7697set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if ${ac_cv_path_OCAMLLEX+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 case $OCAMLLEX in
7704 [\\/]* | ?:[\\/]*)
7705 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7706 ;;
7707 *)
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720 done
7721IFS=$as_save_IFS
7722
7723 ;;
7724esac
7725fi
7726OCAMLLEX=$ac_cv_path_OCAMLLEX
7727if test -n "$OCAMLLEX"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7729$as_echo "$OCAMLLEX" >&6; }
7730else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735
7736fi
7737if test -z "$ac_cv_path_OCAMLLEX"; then
7738 ac_pt_OCAMLLEX=$OCAMLLEX
7739 # Extract the first word of "ocamllex", so it can be a program name with args.
7740set dummy ocamllex; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745else
7746 case $ac_pt_OCAMLLEX in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7749 ;;
7750 *)
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763 done
7764IFS=$as_save_IFS
7765
7766 ;;
7767esac
7768fi
7769ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7770if test -n "$ac_pt_OCAMLLEX"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7772$as_echo "$ac_pt_OCAMLLEX" >&6; }
7773else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775$as_echo "no" >&6; }
7776fi
7777
7778 if test "x$ac_pt_OCAMLLEX" = x; then
7779 OCAMLLEX=""
7780 else
7781 case $cross_compiling:$ac_tool_warned in
7782yes:)
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785ac_tool_warned=yes ;;
7786esac
7787 OCAMLLEX=$ac_pt_OCAMLLEX
7788 fi
7789else
7790 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7791fi
7792
7793
7794fi
7795
7796 SUBSTITUTED_OCAMLLEX=yes
7797
7798
7799fi
7800
7801fi
7802
7803 if test -z "$OCAMLLEX"; then :
7804 OCAMLLEX=no
7805
7806fi
7807
7808
7809
7810# Check whether --with-ocamlyacc was given.
7811if test "${with_ocamlyacc+set}" = set; then :
7812 withval=$with_ocamlyacc;
7813fi
7814
7815 with_OCAMLYACC="$with_ocamlyacc"
7816
feec80c3
C
7817 if test -n "$with_OCAMLYACC" -a "x$with_OCAMLYACC" != xno -a "x$with_OCAMLYACC" != xyes; then :
7818 OCAMLYACC="$with_OCAMLYACC"
7819
7820
d6ce1786
C
7821else
7822 OCAMLYACC="ocamlyacc"
7823
7824
feec80c3
C
7825fi
7826
d6ce1786
C
7827 if test "x$with_OCAMLYACC" = xno; then :
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc is disabled explicitly" >&5
7829$as_echo "$as_me: ocamlyacc is disabled explicitly" >&6;}
7830 OCAMLYACC=no
7831
7832
7833else
7834 if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
feec80c3
C
7835
7836
7837if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7840set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if ${ac_cv_path_PKG_CONFIG+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845else
7846 case $PKG_CONFIG in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7849 ;;
7850 *)
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7861 fi
7862done
7863 done
7864IFS=$as_save_IFS
7865
7866 ;;
7867esac
7868fi
7869PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7870if test -n "$PKG_CONFIG"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7872$as_echo "$PKG_CONFIG" >&6; }
7873else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875$as_echo "no" >&6; }
7876fi
7877
7878
7879fi
7880if test -z "$ac_cv_path_PKG_CONFIG"; then
7881 ac_pt_PKG_CONFIG=$PKG_CONFIG
7882 # Extract the first word of "pkg-config", so it can be a program name with args.
7883set dummy pkg-config; ac_word=$2
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885$as_echo_n "checking for $ac_word... " >&6; }
7886if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888else
7889 case $ac_pt_PKG_CONFIG in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7892 ;;
7893 *)
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905done
7906 done
7907IFS=$as_save_IFS
7908
7909 ;;
7910esac
7911fi
7912ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7913if test -n "$ac_pt_PKG_CONFIG"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7915$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920
7921 if test "x$ac_pt_PKG_CONFIG" = x; then
7922 PKG_CONFIG=""
7923 else
7924 case $cross_compiling:$ac_tool_warned in
7925yes:)
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928ac_tool_warned=yes ;;
7929esac
7930 PKG_CONFIG=$ac_pt_PKG_CONFIG
7931 fi
7932else
7933 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7934fi
7935
7936fi
7937if test -n "$PKG_CONFIG"; then
7938 _pkg_min_version=0.9.0
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7940$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7941 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943$as_echo "yes" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
7947 PKG_CONFIG=""
7948 fi
7949
7950fi
7951
d6ce1786 7952elif test "x$OCAMLYACC" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
feec80c3
C
7953 # checking for ocamllex
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7956set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958$as_echo_n "checking for $ac_word... " >&6; }
7959if ${ac_cv_path_OCAMLLEX+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961else
7962 case $OCAMLLEX in
7963 [\\/]* | ?:[\\/]*)
7964 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7965 ;;
7966 *)
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7977 fi
7978done
7979 done
7980IFS=$as_save_IFS
7981
7982 ;;
7983esac
7984fi
7985OCAMLLEX=$ac_cv_path_OCAMLLEX
7986if test -n "$OCAMLLEX"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7988$as_echo "$OCAMLLEX" >&6; }
7989else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992fi
7993
7994
7995fi
7996if test -z "$ac_cv_path_OCAMLLEX"; then
7997 ac_pt_OCAMLLEX=$OCAMLLEX
7998 # Extract the first word of "ocamllex", so it can be a program name with args.
7999set dummy ocamllex; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 case $ac_pt_OCAMLLEX in
8006 [\\/]* | ?:[\\/]*)
8007 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8008 ;;
8009 *)
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8020 fi
8021done
8022 done
8023IFS=$as_save_IFS
8024
8025 ;;
8026esac
8027fi
8028ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8029if test -n "$ac_pt_OCAMLLEX"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8031$as_echo "$ac_pt_OCAMLLEX" >&6; }
8032else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034$as_echo "no" >&6; }
8035fi
8036
8037 if test "x$ac_pt_OCAMLLEX" = x; then
8038 OCAMLLEX="no"
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041yes:)
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044ac_tool_warned=yes ;;
8045esac
8046 OCAMLLEX=$ac_pt_OCAMLLEX
8047 fi
8048else
8049 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8050fi
8051
8052 if test "$OCAMLLEX" != "no"; then
8053 if test -n "$ac_tool_prefix"; then
8054 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8055set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060else
8061 case $OCAMLLEXDOTOPT in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077done
8078 done
8079IFS=$as_save_IFS
8080
8081 ;;
8082esac
8083fi
8084OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8085if test -n "$OCAMLLEXDOTOPT"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8087$as_echo "$OCAMLLEXDOTOPT" >&6; }
8088else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
8091fi
8092
8093
8094fi
8095if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8096 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8097 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8098set dummy ocamllex.opt; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 case $ac_pt_OCAMLLEXDOTOPT in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120done
8121 done
8122IFS=$as_save_IFS
8123
8124 ;;
8125esac
8126fi
8127ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8128if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8130$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8131else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133$as_echo "no" >&6; }
8134fi
8135
8136 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8137 OCAMLLEXDOTOPT="no"
8138 else
8139 case $cross_compiling:$ac_tool_warned in
8140yes:)
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143ac_tool_warned=yes ;;
8144esac
8145 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8146 fi
8147else
8148 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8149fi
8150
8151 if test "$OCAMLLEXDOTOPT" != "no"; then
8152 OCAMLLEX=$OCAMLLEXDOTOPT
8153 fi
8154 fi
8155
8156
8157
d6ce1786 8158elif test "x$OCAMLYACC" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
feec80c3
C
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8161set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163$as_echo_n "checking for $ac_word... " >&6; }
8164if ${ac_cv_path_OCAMLYACC+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167 case $OCAMLYACC in
8168 [\\/]* | ?:[\\/]*)
8169 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8170 ;;
8171 *)
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
8186
8187 ;;
8188esac
8189fi
8190OCAMLYACC=$ac_cv_path_OCAMLYACC
8191if test -n "$OCAMLYACC"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8193$as_echo "$OCAMLYACC" >&6; }
8194else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197fi
8198
8199
8200fi
8201if test -z "$ac_cv_path_OCAMLYACC"; then
8202 ac_pt_OCAMLYACC=$OCAMLYACC
8203 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8204set dummy ocamlyacc; ac_word=$2
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206$as_echo_n "checking for $ac_word... " >&6; }
8207if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210 case $ac_pt_OCAMLYACC in
8211 [\\/]* | ?:[\\/]*)
8212 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8213 ;;
8214 *)
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227 done
8228IFS=$as_save_IFS
8229
8230 ;;
8231esac
8232fi
8233ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8234if test -n "$ac_pt_OCAMLYACC"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8236$as_echo "$ac_pt_OCAMLYACC" >&6; }
8237else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242 if test "x$ac_pt_OCAMLYACC" = x; then
8243 OCAMLYACC="no"
8244 else
8245 case $cross_compiling:$ac_tool_warned in
8246yes:)
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249ac_tool_warned=yes ;;
8250esac
8251 OCAMLYACC=$ac_pt_OCAMLYACC
8252 fi
8253else
8254 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8255fi
8256
8257
8258
8259
8260else
8261 if test -n "$ac_tool_prefix"; then
d6ce1786
C
8262 # Extract the first word of "${ac_tool_prefix}[$]OCAMLYACC", so it can be a program name with args.
8263set dummy ${ac_tool_prefix}$OCAMLYACC; ac_word=$2
feec80c3
C
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265$as_echo_n "checking for $ac_word... " >&6; }
8266if ${ac_cv_path_OCAMLYACC+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268else
8269 case $OCAMLYACC in
8270 [\\/]* | ?:[\\/]*)
8271 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8272 ;;
8273 *)
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285done
8286 done
8287IFS=$as_save_IFS
8288
8289 ;;
8290esac
8291fi
8292OCAMLYACC=$ac_cv_path_OCAMLYACC
8293if test -n "$OCAMLYACC"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8295$as_echo "$OCAMLYACC" >&6; }
8296else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298$as_echo "no" >&6; }
8299fi
8300
8301
8302fi
8303if test -z "$ac_cv_path_OCAMLYACC"; then
8304 ac_pt_OCAMLYACC=$OCAMLYACC
d6ce1786
C
8305 # Extract the first word of "[$]OCAMLYACC", so it can be a program name with args.
8306set dummy $OCAMLYACC; ac_word=$2
feec80c3
C
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308$as_echo_n "checking for $ac_word... " >&6; }
8309if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311else
8312 case $ac_pt_OCAMLYACC in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8315 ;;
8316 *)
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329 done
8330IFS=$as_save_IFS
8331
8332 ;;
8333esac
8334fi
8335ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8336if test -n "$ac_pt_OCAMLYACC"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8338$as_echo "$ac_pt_OCAMLYACC" >&6; }
8339else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341$as_echo "no" >&6; }
8342fi
8343
8344 if test "x$ac_pt_OCAMLYACC" = x; then
8345 OCAMLYACC=""
8346 else
8347 case $cross_compiling:$ac_tool_warned in
8348yes:)
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351ac_tool_warned=yes ;;
8352esac
8353 OCAMLYACC=$ac_pt_OCAMLYACC
8354 fi
8355else
8356 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8357fi
8358
8359
8360fi
8361
8362
8363fi
8364
8365 if test -z "$OCAMLYACC" -o "x$OCAMLYACC" = xno; then :
8366 if test "x$with_OCAMLYACC" = xyes; then :
8367 as_fn_error $? "--with=ocamlyacc is given explicitly but not found" "$LINENO" 5
8368
8369fi
8370
8371 if test -n ""; then :
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc not found. Trying substitute ." >&5
8373$as_echo "$as_me: ocamlyacc not found. Trying substitute ." >&6;}
8374 OCAMLYACC=""
8375
8376 if test "xocamlyacc" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
8377
8378
8379if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8380 if test -n "$ac_tool_prefix"; then
8381 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8382set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384$as_echo_n "checking for $ac_word... " >&6; }
8385if ${ac_cv_path_PKG_CONFIG+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387else
8388 case $PKG_CONFIG in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8391 ;;
8392 *)
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404done
8405 done
8406IFS=$as_save_IFS
8407
8408 ;;
8409esac
8410fi
8411PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8412if test -n "$PKG_CONFIG"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8414$as_echo "$PKG_CONFIG" >&6; }
8415else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
8419
8420
8421fi
8422if test -z "$ac_cv_path_PKG_CONFIG"; then
8423 ac_pt_PKG_CONFIG=$PKG_CONFIG
8424 # Extract the first word of "pkg-config", so it can be a program name with args.
8425set dummy pkg-config; ac_word=$2
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
8428if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430else
8431 case $ac_pt_PKG_CONFIG in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8434 ;;
8435 *)
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8446 fi
8447done
8448 done
8449IFS=$as_save_IFS
8450
8451 ;;
8452esac
8453fi
8454ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8455if test -n "$ac_pt_PKG_CONFIG"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8457$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8458else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460$as_echo "no" >&6; }
8461fi
8462
8463 if test "x$ac_pt_PKG_CONFIG" = x; then
8464 PKG_CONFIG=""
8465 else
8466 case $cross_compiling:$ac_tool_warned in
8467yes:)
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470ac_tool_warned=yes ;;
8471esac
8472 PKG_CONFIG=$ac_pt_PKG_CONFIG
8473 fi
8474else
8475 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8476fi
8477
8478fi
8479if test -n "$PKG_CONFIG"; then
8480 _pkg_min_version=0.9.0
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8482$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8483 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8485$as_echo "yes" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489 PKG_CONFIG=""
8490 fi
8491
8492fi
8493
8494elif test "xocamlyacc" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
8495 # checking for ocamllex
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8498set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if ${ac_cv_path_OCAMLLEX+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503else
8504 case $OCAMLLEX in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520done
8521 done
8522IFS=$as_save_IFS
8523
8524 ;;
8525esac
8526fi
8527OCAMLLEX=$ac_cv_path_OCAMLLEX
8528if test -n "$OCAMLLEX"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8530$as_echo "$OCAMLLEX" >&6; }
8531else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
8534fi
8535
8536
8537fi
8538if test -z "$ac_cv_path_OCAMLLEX"; then
8539 ac_pt_OCAMLLEX=$OCAMLLEX
8540 # Extract the first word of "ocamllex", so it can be a program name with args.
8541set dummy ocamllex; ac_word=$2
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543$as_echo_n "checking for $ac_word... " >&6; }
8544if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546else
8547 case $ac_pt_OCAMLLEX in
8548 [\\/]* | ?:[\\/]*)
8549 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8550 ;;
8551 *)
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553for as_dir in $PATH
8554do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563done
8564 done
8565IFS=$as_save_IFS
8566
8567 ;;
8568esac
8569fi
8570ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8571if test -n "$ac_pt_OCAMLLEX"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8573$as_echo "$ac_pt_OCAMLLEX" >&6; }
8574else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
8577fi
8578
8579 if test "x$ac_pt_OCAMLLEX" = x; then
8580 OCAMLLEX="no"
8581 else
8582 case $cross_compiling:$ac_tool_warned in
8583yes:)
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8586ac_tool_warned=yes ;;
8587esac
8588 OCAMLLEX=$ac_pt_OCAMLLEX
8589 fi
8590else
8591 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8592fi
8593
8594 if test "$OCAMLLEX" != "no"; then
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8597set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 case $OCAMLLEXDOTOPT in
8604 [\\/]* | ?:[\\/]*)
8605 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8606 ;;
8607 *)
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8615 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8618 fi
8619done
8620 done
8621IFS=$as_save_IFS
8622
8623 ;;
8624esac
8625fi
8626OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8627if test -n "$OCAMLLEXDOTOPT"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8629$as_echo "$OCAMLLEXDOTOPT" >&6; }
8630else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
8633fi
8634
8635
8636fi
8637if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8638 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8639 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8640set dummy ocamllex.opt; ac_word=$2
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642$as_echo_n "checking for $ac_word... " >&6; }
8643if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645else
8646 case $ac_pt_OCAMLLEXDOTOPT in
8647 [\\/]* | ?:[\\/]*)
8648 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8649 ;;
8650 *)
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662done
8663 done
8664IFS=$as_save_IFS
8665
8666 ;;
8667esac
8668fi
8669ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8670if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8672$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8673else
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8679 OCAMLLEXDOTOPT="no"
8680 else
8681 case $cross_compiling:$ac_tool_warned in
8682yes:)
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8685ac_tool_warned=yes ;;
8686esac
8687 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8688 fi
8689else
8690 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8691fi
8692
8693 if test "$OCAMLLEXDOTOPT" != "no"; then
8694 OCAMLLEX=$OCAMLLEXDOTOPT
8695 fi
8696 fi
8697
8698
8699
8700elif test "xocamlyacc" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
8701 if test -n "$ac_tool_prefix"; then
8702 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8703set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if ${ac_cv_path_OCAMLYACC+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708else
8709 case $OCAMLYACC in
8710 [\\/]* | ?:[\\/]*)
8711 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8712 ;;
8713 *)
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8724 fi
8725done
8726 done
8727IFS=$as_save_IFS
8728
8729 ;;
8730esac
8731fi
8732OCAMLYACC=$ac_cv_path_OCAMLYACC
8733if test -n "$OCAMLYACC"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8735$as_echo "$OCAMLYACC" >&6; }
8736else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
8739fi
8740
8741
8742fi
8743if test -z "$ac_cv_path_OCAMLYACC"; then
8744 ac_pt_OCAMLYACC=$OCAMLYACC
8745 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8746set dummy ocamlyacc; ac_word=$2
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748$as_echo_n "checking for $ac_word... " >&6; }
8749if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751else
8752 case $ac_pt_OCAMLYACC in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8755 ;;
8756 *)
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768done
8769 done
8770IFS=$as_save_IFS
8771
8772 ;;
8773esac
8774fi
8775ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8776if test -n "$ac_pt_OCAMLYACC"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8778$as_echo "$ac_pt_OCAMLYACC" >&6; }
8779else
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781$as_echo "no" >&6; }
8782fi
8783
8784 if test "x$ac_pt_OCAMLYACC" = x; then
8785 OCAMLYACC="no"
8786 else
8787 case $cross_compiling:$ac_tool_warned in
8788yes:)
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8791ac_tool_warned=yes ;;
8792esac
8793 OCAMLYACC=$ac_pt_OCAMLYACC
8794 fi
8795else
8796 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8797fi
8798
8799
8800
8801
8802else
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8805set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if ${ac_cv_path_OCAMLYACC+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810else
8811 case $OCAMLYACC in
8812 [\\/]* | ?:[\\/]*)
8813 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8814 ;;
8815 *)
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827done
8828 done
8829IFS=$as_save_IFS
8830
8831 ;;
8832esac
8833fi
8834OCAMLYACC=$ac_cv_path_OCAMLYACC
8835if test -n "$OCAMLYACC"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8837$as_echo "$OCAMLYACC" >&6; }
8838else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844fi
8845if test -z "$ac_cv_path_OCAMLYACC"; then
8846 ac_pt_OCAMLYACC=$OCAMLYACC
8847 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8848set dummy ocamlyacc; ac_word=$2
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850$as_echo_n "checking for $ac_word... " >&6; }
8851if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853else
8854 case $ac_pt_OCAMLYACC in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8857 ;;
8858 *)
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871 done
8872IFS=$as_save_IFS
8873
8874 ;;
8875esac
8876fi
8877ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8878if test -n "$ac_pt_OCAMLYACC"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8880$as_echo "$ac_pt_OCAMLYACC" >&6; }
8881else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
8884fi
8885
8886 if test "x$ac_pt_OCAMLYACC" = x; then
8887 OCAMLYACC=""
8888 else
8889 case $cross_compiling:$ac_tool_warned in
8890yes:)
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8893ac_tool_warned=yes ;;
8894esac
8895 OCAMLYACC=$ac_pt_OCAMLYACC
8896 fi
8897else
8898 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8899fi
8900
8901
8902fi
8903
8904 SUBSTITUTED_OCAMLYACC=yes
8905
8906
8907fi
8908
8909fi
8910
8911 if test -z "$OCAMLYACC"; then :
8912 OCAMLYACC=no
8913
8914fi
8915
8916
8917
8918# Check whether --with-ocamlfind was given.
8919if test "${with_ocamlfind+set}" = set; then :
8920 withval=$with_ocamlfind;
8921fi
8922
8923 with_OCAMLFIND="$with_ocamlfind"
8924
feec80c3
C
8925 if test -n "$with_OCAMLFIND" -a "x$with_OCAMLFIND" != xno -a "x$with_OCAMLFIND" != xyes; then :
8926 OCAMLFIND="$with_OCAMLFIND"
8927
8928
d6ce1786
C
8929else
8930 OCAMLFIND="ocamlfind"
8931
8932
feec80c3
C
8933fi
8934
d6ce1786
C
8935 if test "x$with_OCAMLFIND" = xno; then :
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind is disabled explicitly" >&5
8937$as_echo "$as_me: ocamlfind is disabled explicitly" >&6;}
8938 OCAMLFIND=no
8939
8940
8941else
8942 if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
feec80c3
C
8943
8944
8945if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8946 if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8948set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if ${ac_cv_path_PKG_CONFIG+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953else
8954 case $PKG_CONFIG in
8955 [\\/]* | ?:[\\/]*)
8956 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8957 ;;
8958 *)
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960for as_dir in $PATH
8961do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970done
8971 done
8972IFS=$as_save_IFS
8973
8974 ;;
8975esac
8976fi
8977PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8978if test -n "$PKG_CONFIG"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8980$as_echo "$PKG_CONFIG" >&6; }
8981else
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983$as_echo "no" >&6; }
8984fi
8985
8986
8987fi
8988if test -z "$ac_cv_path_PKG_CONFIG"; then
8989 ac_pt_PKG_CONFIG=$PKG_CONFIG
8990 # Extract the first word of "pkg-config", so it can be a program name with args.
8991set dummy pkg-config; ac_word=$2
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993$as_echo_n "checking for $ac_word... " >&6; }
8994if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996else
8997 case $ac_pt_PKG_CONFIG in
8998 [\\/]* | ?:[\\/]*)
8999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9000 ;;
9001 *)
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003for as_dir in $PATH
9004do
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 break 2
9012 fi
9013done
9014 done
9015IFS=$as_save_IFS
9016
9017 ;;
9018esac
9019fi
9020ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9021if test -n "$ac_pt_PKG_CONFIG"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9023$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9024else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029 if test "x$ac_pt_PKG_CONFIG" = x; then
9030 PKG_CONFIG=""
9031 else
9032 case $cross_compiling:$ac_tool_warned in
9033yes:)
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9036ac_tool_warned=yes ;;
9037esac
9038 PKG_CONFIG=$ac_pt_PKG_CONFIG
9039 fi
9040else
9041 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9042fi
9043
9044fi
9045if test -n "$PKG_CONFIG"; then
9046 _pkg_min_version=0.9.0
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9048$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9049 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9051$as_echo "yes" >&6; }
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054$as_echo "no" >&6; }
9055 PKG_CONFIG=""
9056 fi
9057
9058fi
9059
d6ce1786 9060elif test "x$OCAMLFIND" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
feec80c3
C
9061 # checking for ocamllex
9062 if test -n "$ac_tool_prefix"; then
9063 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9064set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066$as_echo_n "checking for $ac_word... " >&6; }
9067if ${ac_cv_path_OCAMLLEX+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070 case $OCAMLLEX in
9071 [\\/]* | ?:[\\/]*)
9072 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9073 ;;
9074 *)
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076for as_dir in $PATH
9077do
9078 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2
9085 fi
9086done
9087 done
9088IFS=$as_save_IFS
9089
9090 ;;
9091esac
9092fi
9093OCAMLLEX=$ac_cv_path_OCAMLLEX
9094if test -n "$OCAMLLEX"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9096$as_echo "$OCAMLLEX" >&6; }
9097else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
9100fi
9101
9102
9103fi
9104if test -z "$ac_cv_path_OCAMLLEX"; then
9105 ac_pt_OCAMLLEX=$OCAMLLEX
9106 # Extract the first word of "ocamllex", so it can be a program name with args.
9107set dummy ocamllex; ac_word=$2
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112else
9113 case $ac_pt_OCAMLLEX in
9114 [\\/]* | ?:[\\/]*)
9115 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9116 ;;
9117 *)
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130 done
9131IFS=$as_save_IFS
9132
9133 ;;
9134esac
9135fi
9136ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9137if test -n "$ac_pt_OCAMLLEX"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9139$as_echo "$ac_pt_OCAMLLEX" >&6; }
9140else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143fi
9144
9145 if test "x$ac_pt_OCAMLLEX" = x; then
9146 OCAMLLEX="no"
9147 else
9148 case $cross_compiling:$ac_tool_warned in
9149yes:)
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9152ac_tool_warned=yes ;;
9153esac
9154 OCAMLLEX=$ac_pt_OCAMLLEX
9155 fi
9156else
9157 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9158fi
9159
9160 if test "$OCAMLLEX" != "no"; then
9161 if test -n "$ac_tool_prefix"; then
9162 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9163set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165$as_echo_n "checking for $ac_word... " >&6; }
9166if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168else
9169 case $OCAMLLEXDOTOPT in
9170 [\\/]* | ?:[\\/]*)
9171 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9172 ;;
9173 *)
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175for as_dir in $PATH
9176do
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9184 fi
9185done
9186 done
9187IFS=$as_save_IFS
9188
9189 ;;
9190esac
9191fi
9192OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9193if test -n "$OCAMLLEXDOTOPT"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9195$as_echo "$OCAMLLEXDOTOPT" >&6; }
9196else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198$as_echo "no" >&6; }
9199fi
9200
9201
9202fi
9203if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9204 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9205 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9206set dummy ocamllex.opt; ac_word=$2
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208$as_echo_n "checking for $ac_word... " >&6; }
9209if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211else
9212 case $ac_pt_OCAMLLEXDOTOPT in
9213 [\\/]* | ?:[\\/]*)
9214 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9215 ;;
9216 *)
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228done
9229 done
9230IFS=$as_save_IFS
9231
9232 ;;
9233esac
9234fi
9235ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9236if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9238$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9239else
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
9242fi
9243
9244 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9245 OCAMLLEXDOTOPT="no"
9246 else
9247 case $cross_compiling:$ac_tool_warned in
9248yes:)
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9251ac_tool_warned=yes ;;
9252esac
9253 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9254 fi
9255else
9256 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9257fi
9258
9259 if test "$OCAMLLEXDOTOPT" != "no"; then
9260 OCAMLLEX=$OCAMLLEXDOTOPT
9261 fi
9262 fi
9263
9264
9265
d6ce1786 9266elif test "x$OCAMLFIND" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
feec80c3
C
9267 if test -n "$ac_tool_prefix"; then
9268 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9269set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271$as_echo_n "checking for $ac_word... " >&6; }
9272if ${ac_cv_path_OCAMLYACC+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274else
9275 case $OCAMLYACC in
9276 [\\/]* | ?:[\\/]*)
9277 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9278 ;;
9279 *)
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281for as_dir in $PATH
9282do
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9287 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9290 fi
9291done
9292 done
9293IFS=$as_save_IFS
9294
9295 ;;
9296esac
9297fi
9298OCAMLYACC=$ac_cv_path_OCAMLYACC
9299if test -n "$OCAMLYACC"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9301$as_echo "$OCAMLYACC" >&6; }
9302else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
9305fi
9306
9307
9308fi
9309if test -z "$ac_cv_path_OCAMLYACC"; then
9310 ac_pt_OCAMLYACC=$OCAMLYACC
9311 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9312set dummy ocamlyacc; ac_word=$2
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314$as_echo_n "checking for $ac_word... " >&6; }
9315if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317else
9318 case $ac_pt_OCAMLYACC in
9319 [\\/]* | ?:[\\/]*)
9320 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9321 ;;
9322 *)
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9333 fi
9334done
9335 done
9336IFS=$as_save_IFS
9337
9338 ;;
9339esac
9340fi
9341ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9342if test -n "$ac_pt_OCAMLYACC"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9344$as_echo "$ac_pt_OCAMLYACC" >&6; }
9345else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347$as_echo "no" >&6; }
9348fi
9349
9350 if test "x$ac_pt_OCAMLYACC" = x; then
9351 OCAMLYACC="no"
9352 else
9353 case $cross_compiling:$ac_tool_warned in
9354yes:)
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9357ac_tool_warned=yes ;;
9358esac
9359 OCAMLYACC=$ac_pt_OCAMLYACC
9360 fi
9361else
9362 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9363fi
9364
9365
9366
9367
9368else
9369 if test -n "$ac_tool_prefix"; then
d6ce1786
C
9370 # Extract the first word of "${ac_tool_prefix}[$]OCAMLFIND", so it can be a program name with args.
9371set dummy ${ac_tool_prefix}$OCAMLFIND; ac_word=$2
feec80c3
C
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373$as_echo_n "checking for $ac_word... " >&6; }
9374if ${ac_cv_path_OCAMLFIND+:} false; then :
9375 $as_echo_n "(cached) " >&6
9376else
9377 case $OCAMLFIND in
9378 [\\/]* | ?:[\\/]*)
9379 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
9380 ;;
9381 *)
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393done
9394 done
9395IFS=$as_save_IFS
9396
9397 ;;
9398esac
9399fi
9400OCAMLFIND=$ac_cv_path_OCAMLFIND
9401if test -n "$OCAMLFIND"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
9403$as_echo "$OCAMLFIND" >&6; }
9404else
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406$as_echo "no" >&6; }
9407fi
9408
9409
9410fi
9411if test -z "$ac_cv_path_OCAMLFIND"; then
9412 ac_pt_OCAMLFIND=$OCAMLFIND
d6ce1786
C
9413 # Extract the first word of "[$]OCAMLFIND", so it can be a program name with args.
9414set dummy $OCAMLFIND; ac_word=$2
feec80c3
C
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416$as_echo_n "checking for $ac_word... " >&6; }
9417if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419else
9420 case $ac_pt_OCAMLFIND in
9421 [\\/]* | ?:[\\/]*)
9422 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
9423 ;;
9424 *)
9425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428 IFS=$as_save_IFS
9429 test -z "$as_dir" && as_dir=.
9430 for ac_exec_ext in '' $ac_executable_extensions; do
9431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9432 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9434 break 2
9435 fi
9436done
9437 done
9438IFS=$as_save_IFS
9439
9440 ;;
9441esac
9442fi
9443ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
9444if test -n "$ac_pt_OCAMLFIND"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
9446$as_echo "$ac_pt_OCAMLFIND" >&6; }
9447else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449$as_echo "no" >&6; }
9450fi
9451
9452 if test "x$ac_pt_OCAMLFIND" = x; then
9453 OCAMLFIND=""
9454 else
9455 case $cross_compiling:$ac_tool_warned in
9456yes:)
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9459ac_tool_warned=yes ;;
9460esac
9461 OCAMLFIND=$ac_pt_OCAMLFIND
9462 fi
9463else
9464 OCAMLFIND="$ac_cv_path_OCAMLFIND"
9465fi
9466
9467
9468fi
9469
9470
9471fi
9472
9473 if test -z "$OCAMLFIND" -o "x$OCAMLFIND" = xno; then :
9474 if test "x$with_OCAMLFIND" = xyes; then :
9475 as_fn_error $? "--with=ocamlfind is given explicitly but not found" "$LINENO" 5
9476
9477fi
9478
9479 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"; then :
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&5
9481$as_echo "$as_me: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&6;}
9482 OCAMLFIND="$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"
9483
9484 if test "xocamlfind" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
9485
9486
9487if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9488 if test -n "$ac_tool_prefix"; then
9489 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9490set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
9493if ${ac_cv_path_PKG_CONFIG+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495else
9496 case $PKG_CONFIG in
9497 [\\/]* | ?:[\\/]*)
9498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9499 ;;
9500 *)
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512done
9513 done
9514IFS=$as_save_IFS
9515
9516 ;;
9517esac
9518fi
9519PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9520if test -n "$PKG_CONFIG"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9522$as_echo "$PKG_CONFIG" >&6; }
9523else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525$as_echo "no" >&6; }
9526fi
9527
9528
9529fi
9530if test -z "$ac_cv_path_PKG_CONFIG"; then
9531 ac_pt_PKG_CONFIG=$PKG_CONFIG
9532 # Extract the first word of "pkg-config", so it can be a program name with args.
9533set dummy pkg-config; ac_word=$2
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535$as_echo_n "checking for $ac_word... " >&6; }
9536if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538else
9539 case $ac_pt_PKG_CONFIG in
9540 [\\/]* | ?:[\\/]*)
9541 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9542 ;;
9543 *)
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555done
9556 done
9557IFS=$as_save_IFS
9558
9559 ;;
9560esac
9561fi
9562ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9563if test -n "$ac_pt_PKG_CONFIG"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9565$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9566else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568$as_echo "no" >&6; }
9569fi
9570
9571 if test "x$ac_pt_PKG_CONFIG" = x; then
9572 PKG_CONFIG=""
9573 else
9574 case $cross_compiling:$ac_tool_warned in
9575yes:)
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9578ac_tool_warned=yes ;;
9579esac
9580 PKG_CONFIG=$ac_pt_PKG_CONFIG
9581 fi
9582else
9583 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9584fi
9585
9586fi
9587if test -n "$PKG_CONFIG"; then
9588 _pkg_min_version=0.9.0
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9590$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9591 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9593$as_echo "yes" >&6; }
9594 else
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596$as_echo "no" >&6; }
9597 PKG_CONFIG=""
9598 fi
9599
9600fi
9601
9602elif test "xocamlfind" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
9603 # checking for ocamllex
9604 if test -n "$ac_tool_prefix"; then
9605 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9606set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608$as_echo_n "checking for $ac_word... " >&6; }
9609if ${ac_cv_path_OCAMLLEX+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611else
9612 case $OCAMLLEX in
9613 [\\/]* | ?:[\\/]*)
9614 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9615 ;;
9616 *)
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618for as_dir in $PATH
9619do
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9624 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626 break 2
9627 fi
9628done
9629 done
9630IFS=$as_save_IFS
9631
9632 ;;
9633esac
9634fi
9635OCAMLLEX=$ac_cv_path_OCAMLLEX
9636if test -n "$OCAMLLEX"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9638$as_echo "$OCAMLLEX" >&6; }
9639else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641$as_echo "no" >&6; }
9642fi
9643
9644
9645fi
9646if test -z "$ac_cv_path_OCAMLLEX"; then
9647 ac_pt_OCAMLLEX=$OCAMLLEX
9648 # Extract the first word of "ocamllex", so it can be a program name with args.
9649set dummy ocamllex; ac_word=$2
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651$as_echo_n "checking for $ac_word... " >&6; }
9652if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654else
9655 case $ac_pt_OCAMLLEX in
9656 [\\/]* | ?:[\\/]*)
9657 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9658 ;;
9659 *)
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9670 fi
9671done
9672 done
9673IFS=$as_save_IFS
9674
9675 ;;
9676esac
9677fi
9678ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9679if test -n "$ac_pt_OCAMLLEX"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9681$as_echo "$ac_pt_OCAMLLEX" >&6; }
9682else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
9685fi
9686
9687 if test "x$ac_pt_OCAMLLEX" = x; then
9688 OCAMLLEX="no"
9689 else
9690 case $cross_compiling:$ac_tool_warned in
9691yes:)
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9694ac_tool_warned=yes ;;
9695esac
9696 OCAMLLEX=$ac_pt_OCAMLLEX
9697 fi
9698else
9699 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9700fi
9701
9702 if test "$OCAMLLEX" != "no"; then
9703 if test -n "$ac_tool_prefix"; then
9704 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9705set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707$as_echo_n "checking for $ac_word... " >&6; }
9708if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710else
9711 case $OCAMLLEXDOTOPT in
9712 [\\/]* | ?:[\\/]*)
9713 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9714 ;;
9715 *)
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717for as_dir in $PATH
9718do
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9723 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9726 fi
9727done
9728 done
9729IFS=$as_save_IFS
9730
9731 ;;
9732esac
9733fi
9734OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9735if test -n "$OCAMLLEXDOTOPT"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9737$as_echo "$OCAMLLEXDOTOPT" >&6; }
9738else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
9741fi
9742
9743
9744fi
9745if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9746 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9747 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9748set dummy ocamllex.opt; ac_word=$2
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750$as_echo_n "checking for $ac_word... " >&6; }
9751if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753else
9754 case $ac_pt_OCAMLLEXDOTOPT in
9755 [\\/]* | ?:[\\/]*)
9756 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9757 ;;
9758 *)
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770done
9771 done
9772IFS=$as_save_IFS
9773
9774 ;;
9775esac
9776fi
9777ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9778if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9780$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9781else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783$as_echo "no" >&6; }
9784fi
9785
9786 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9787 OCAMLLEXDOTOPT="no"
9788 else
9789 case $cross_compiling:$ac_tool_warned in
9790yes:)
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9793ac_tool_warned=yes ;;
9794esac
9795 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9796 fi
9797else
9798 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9799fi
9800
9801 if test "$OCAMLLEXDOTOPT" != "no"; then
9802 OCAMLLEX=$OCAMLLEXDOTOPT
9803 fi
9804 fi
9805
9806
9807
9808elif test "xocamlfind" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
9809 if test -n "$ac_tool_prefix"; then
9810 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9811set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
9814if ${ac_cv_path_OCAMLYACC+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817 case $OCAMLYACC in
9818 [\\/]* | ?:[\\/]*)
9819 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9820 ;;
9821 *)
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
9836
9837 ;;
9838esac
9839fi
9840OCAMLYACC=$ac_cv_path_OCAMLYACC
9841if test -n "$OCAMLYACC"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9843$as_echo "$OCAMLYACC" >&6; }
9844else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
9849
9850fi
9851if test -z "$ac_cv_path_OCAMLYACC"; then
9852 ac_pt_OCAMLYACC=$OCAMLYACC
9853 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9854set dummy ocamlyacc; ac_word=$2
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856$as_echo_n "checking for $ac_word... " >&6; }
9857if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859else
9860 case $ac_pt_OCAMLYACC in
9861 [\\/]* | ?:[\\/]*)
9862 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9863 ;;
9864 *)
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876done
9877 done
9878IFS=$as_save_IFS
9879
9880 ;;
9881esac
9882fi
9883ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9884if test -n "$ac_pt_OCAMLYACC"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9886$as_echo "$ac_pt_OCAMLYACC" >&6; }
9887else
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
9890fi
9891
9892 if test "x$ac_pt_OCAMLYACC" = x; then
9893 OCAMLYACC="no"
9894 else
9895 case $cross_compiling:$ac_tool_warned in
9896yes:)
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9899ac_tool_warned=yes ;;
9900esac
9901 OCAMLYACC=$ac_pt_OCAMLYACC
9902 fi
9903else
9904 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9905fi
9906
9907
9908
9909
9910else
9911 if test -n "$ac_tool_prefix"; then
9912 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
9913set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915$as_echo_n "checking for $ac_word... " >&6; }
9916if ${ac_cv_path_OCAMLFIND+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918else
9919 case $OCAMLFIND in
9920 [\\/]* | ?:[\\/]*)
9921 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
9922 ;;
9923 *)
9924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9931 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936 done
9937IFS=$as_save_IFS
9938
9939 ;;
9940esac
9941fi
9942OCAMLFIND=$ac_cv_path_OCAMLFIND
9943if test -n "$OCAMLFIND"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
9945$as_echo "$OCAMLFIND" >&6; }
9946else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948$as_echo "no" >&6; }
9949fi
9950
9951
9952fi
9953if test -z "$ac_cv_path_OCAMLFIND"; then
9954 ac_pt_OCAMLFIND=$OCAMLFIND
9955 # Extract the first word of "ocamlfind", so it can be a program name with args.
9956set dummy ocamlfind; ac_word=$2
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958$as_echo_n "checking for $ac_word... " >&6; }
9959if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961else
9962 case $ac_pt_OCAMLFIND in
9963 [\\/]* | ?:[\\/]*)
9964 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
9965 ;;
9966 *)
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978done
9979 done
9980IFS=$as_save_IFS
9981
9982 ;;
9983esac
9984fi
9985ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
9986if test -n "$ac_pt_OCAMLFIND"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
9988$as_echo "$ac_pt_OCAMLFIND" >&6; }
9989else
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
9992fi
9993
9994 if test "x$ac_pt_OCAMLFIND" = x; then
9995 OCAMLFIND=""
9996 else
9997 case $cross_compiling:$ac_tool_warned in
9998yes:)
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10001ac_tool_warned=yes ;;
10002esac
10003 OCAMLFIND=$ac_pt_OCAMLFIND
10004 fi
10005else
10006 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10007fi
10008
10009
10010fi
10011
10012 SUBSTITUTED_OCAMLFIND=yes
10013
10014
10015fi
10016
10017fi
10018
10019 if test -z "$OCAMLFIND"; then :
10020 OCAMLFIND=no
10021
10022fi
10023
10024
10025if test "x$OCAMLLEX" = xno; then :
10026 as_fn_error $? "the OCaml Lexer needs to be installed (the ocamllex command). It should be part of your OCaml distribution." "$LINENO" 5
10027
10028fi
10029
10030if test "x$OCAMLYACC" = xno; then :
10031 as_fn_error $? "The OCaml parser generated needs to be installed (the ocamlyacc command). It should be part of your OCaml distribution." "$LINENO" 5
10032
10033fi
10034
10035if test "x$OCAMLFIND" = xno; then :
10036 as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5
10037
10038fi
10039
10040
10041
10042# Check whether --with-runtime-ocamlfind was given.
10043if test "${with_runtime_ocamlfind+set}" = set; then :
10044 withval=$with_runtime_ocamlfind;
10045fi
10046
10047
10048 if test -z "$RUNTIME_OCAMLFIND_CMD"; then :
10049 if test "x$with_runtime_ocamlfind" = xno; then :
10050 RUNTIME_OCAMLFIND_CMD=$OCAMLFIND
10051
10052
10053elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then :
10054 RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind"
10055
10056
10057else
10058 RUNTIME_OCAMLFIND_CMD="ocamlfind"
10059
10060
10061fi
10062
10063fi
10064
10065
10066
10067# Check whether --with-runtime-ocamlc was given.
10068if test "${with_runtime_ocamlc+set}" = set; then :
10069 withval=$with_runtime_ocamlc;
10070fi
10071
10072
10073 if test -z "$RUNTIME_OCAMLC_CMD"; then :
10074 if test "x$with_runtime_ocamlc" = xno; then :
10075 RUNTIME_OCAMLC_CMD=$OCAMLC
10076
10077
10078elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then :
10079 RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc"
10080
10081
10082else
10083 RUNTIME_OCAMLC_CMD="ocamlc"
10084
10085
10086fi
10087
10088fi
10089
10090
10091
10092# Check whether --with-runtime-ocamlopt was given.
10093if test "${with_runtime_ocamlopt+set}" = set; then :
10094 withval=$with_runtime_ocamlopt;
10095fi
10096
10097
10098 if test -z "$RUNTIME_OCAMLOPT_CMD"; then :
10099 if test "x$with_runtime_ocamlopt" = xno; then :
10100 RUNTIME_OCAMLOPT_CMD=$OCAMLOPT
10101
10102
10103elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then :
10104 RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt"
10105
10106
10107else
10108 RUNTIME_OCAMLOPT_CMD="ocamlopt"
10109
10110
10111fi
10112
10113fi
10114
10115
10116
10117# Check whether --with-runtime-ocamldep was given.
10118if test "${with_runtime_ocamldep+set}" = set; then :
10119 withval=$with_runtime_ocamldep;
10120fi
10121
10122
10123 if test -z "$RUNTIME_OCAMLDEP_CMD"; then :
10124 if test "x$with_runtime_ocamldep" = xno; then :
10125 RUNTIME_OCAMLDEP_CMD=$OCAMLDEP
10126
10127
10128elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then :
10129 RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep"
10130
10131
10132else
10133 RUNTIME_OCAMLDEP_CMD="ocamldep"
10134
10135
10136fi
10137
10138fi
10139
10140
10141
10142# Check whether --with-runtime-camlp4 was given.
10143if test "${with_runtime_camlp4+set}" = set; then :
10144 withval=$with_runtime_camlp4;
10145fi
10146
10147
10148 if test -z "$RUNTIME_CAMLP4_CMD"; then :
10149 if test "x$with_runtime_camlp4" = xno; then :
10150 RUNTIME_CAMLP4_CMD=$CAMLP4
10151
10152
10153elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then :
10154 RUNTIME_CAMLP4_CMD="$with_runtime_camlp4"
10155
10156
10157else
10158 RUNTIME_CAMLP4_CMD="camlp4"
10159
10160
10161fi
10162
10163fi
10164
10165
10166
10167# Check whether --with-runtime-camlp4o was given.
10168if test "${with_runtime_camlp4o+set}" = set; then :
10169 withval=$with_runtime_camlp4o;
10170fi
10171
10172
10173 if test -z "$RUNTIME_CAMLP4O_CMD"; then :
10174 if test "x$with_runtime_camlp4o" = xno; then :
10175 RUNTIME_CAMLP4O_CMD=$CAMLP4O
10176
10177
10178elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then :
10179 RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o"
10180
10181
10182else
10183 RUNTIME_CAMLP4O_CMD="camlp4o"
10184
10185
10186fi
10187
10188fi
10189
10190
10191cat >confcache <<\_ACEOF
10192# This file is a shell script that caches the results of configure
10193# tests run on this system so they can be shared between configure
10194# scripts and configure runs, see configure's option --config-cache.
10195# It is not useful on other systems. If it contains results you don't
10196# want to keep, you may remove or edit it.
10197#
10198# config.status only pays attention to the cache file if you give it
10199# the --recheck option to rerun configure.
10200#
10201# `ac_cv_env_foo' variables (set or unset) will be overridden when
10202# loading this file, other *unset* `ac_cv_foo' will be assigned the
10203# following values.
10204
10205_ACEOF
10206
10207# The following way of writing the cache mishandles newlines in values,
10208# but we know of no workaround that is simple, portable, and efficient.
10209# So, we kill variables containing newlines.
10210# Ultrix sh set writes to stderr and can't be redirected directly,
10211# and sets the high bit in the cache file unless we assign to the vars.
10212(
10213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10214 eval ac_val=\$$ac_var
10215 case $ac_val in #(
10216 *${as_nl}*)
10217 case $ac_var in #(
10218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10220 esac
10221 case $ac_var in #(
10222 _ | IFS | as_nl) ;; #(
10223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10224 *) { eval $ac_var=; unset $ac_var;} ;;
10225 esac ;;
10226 esac
10227 done
10228
10229 (set) 2>&1 |
10230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10231 *${as_nl}ac_space=\ *)
10232 # `set' does not quote correctly, so add quotes: double-quote
10233 # substitution turns \\\\ into \\, and sed turns \\ into \.
10234 sed -n \
10235 "s/'/'\\\\''/g;
10236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10237 ;; #(
10238 *)
10239 # `set' quotes correctly as required by POSIX, so do not add quotes.
10240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10241 ;;
10242 esac |
10243 sort
10244) |
10245 sed '
10246 /^ac_cv_env_/b end
10247 t clear
10248 :clear
10249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10250 t end
10251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10252 :end' >>confcache
10253if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10254 if test -w "$cache_file"; then
10255 if test "x$cache_file" != "x/dev/null"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10257$as_echo "$as_me: updating cache $cache_file" >&6;}
10258 if test ! -f "$cache_file" || test -h "$cache_file"; then
10259 cat confcache >"$cache_file"
10260 else
10261 case $cache_file in #(
10262 */* | ?:*)
10263 mv -f confcache "$cache_file"$$ &&
10264 mv -f "$cache_file"$$ "$cache_file" ;; #(
10265 *)
10266 mv -f confcache "$cache_file" ;;
10267 esac
10268 fi
10269 fi
10270 else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10272$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10273 fi
10274fi
10275rm -f confcache
10276
10277
10278
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic ocaml modules" >&5
10280$as_echo "$as_me: verifying basic ocaml modules" >&6;}
10281
10282
10283 COCCI_OCAML_EXTERNAL="$COCCI_SRCDIR/bundles"
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&5
10286$as_echo "$as_me: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&6;}
10287
10288
10289 FEATURE_sexplib=0
10290
10291 LOCALLIB_sexplib=0
10292
10293 FLAGS_sexplib=
10294
10295 MODULES_sexplib=
10296
10297 MODULESOPT_sexplib=
10298
10299 PATH_sexplib=
10300
10301
10302 FEATURE_menhirLib=0
10303
10304 LOCALLIB_menhirLib=0
10305
10306 FLAGS_menhirLib=
10307
10308 MODULES_menhirLib=
10309
10310 MODULESOPT_menhirLib=
10311
10312 PATH_menhirLib=
10313
10314
10315 FEATURE_extlib=0
10316
10317 LOCALLIB_extlib=0
10318
10319 FLAGS_extlib=
10320
10321 MODULES_extlib=
10322
10323 MODULESOPT_extlib=
10324
10325 PATH_extlib=
10326
10327
10328 FEATURE_dynlink=0
10329
10330 LOCALLIB_dynlink=0
10331
10332 FLAGS_dynlink=
10333
10334 MODULES_dynlink=
10335
10336 MODULESOPT_dynlink=
10337
10338 PATH_dynlink=
10339
10340
10341 FEATURE_pcre=0
10342
10343 LOCALLIB_pcre=0
10344
10345 FLAGS_pcre=
10346
10347 MODULES_pcre=
10348
10349 MODULESOPT_pcre=
10350
10351 PATH_pcre=
10352
10353
10354 FEATURE_pycaml=0
10355
10356 LOCALLIB_pycaml=0
10357
10358 FLAGS_pycaml=
10359
10360 MODULES_pycaml=
10361
10362 MODULESOPT_pycaml=
10363
10364 PATH_pycaml=
10365
10366
10367 FEATURE_camlp4=0
10368
10369 LOCALLIB_camlp4=0
10370
10371 FLAGS_camlp4=
10372
10373 MODULES_camlp4=
10374
10375 MODULESOPT_camlp4=
10376
10377 PATH_camlp4=
10378
10379
10380
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: the following OCaml packages should be provided by your ocaml installation" >&5
10382$as_echo "$as_me: the following OCaml packages should be provided by your ocaml installation" >&6;}
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5
10385$as_echo_n "checking for OCaml findlib package unix... " >&6; }
10386
10387 unset found
10388 unset pkg
10389 found=no
10390 for pkg in unix ; do
10391 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10393$as_echo "found" >&6; }
10394 OCAML_PKG_unix=$pkg
10395 found=yes
10396 break
10397 fi
10398 done
10399 if test "$found" = "no" ; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10401$as_echo "not found" >&6; }
10402 OCAML_PKG_unix=no
10403 fi
10404
10405
10406
10407 if test "x$OCAML_PKG_unix" != xno; then :
10408 PATH_unix=`$OCAMLFIND query unix 2>/dev/null`
10409
10410
10411fi
10412
10413 if test "x$OCAML_PKG_unix" = xno; then :
10414 as_fn_error $? "package unix is required. It should be part of your ocaml installation." "$LINENO" 5
10415
10416fi
10417
10418
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package bigarray" >&5
10420$as_echo_n "checking for OCaml findlib package bigarray... " >&6; }
10421
10422 unset found
10423 unset pkg
10424 found=no
10425 for pkg in bigarray ; do
10426 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10428$as_echo "found" >&6; }
10429 OCAML_PKG_bigarray=$pkg
10430 found=yes
10431 break
10432 fi
10433 done
10434 if test "$found" = "no" ; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10436$as_echo "not found" >&6; }
10437 OCAML_PKG_bigarray=no
10438 fi
10439
10440
10441
10442 if test "x$OCAML_PKG_bigarray" != xno; then :
10443 PATH_bigarray=`$OCAMLFIND query bigarray 2>/dev/null`
10444
10445
10446fi
10447
10448 if test "x$OCAML_PKG_bigarray" = xno; then :
10449 as_fn_error $? "package bigarray is required. It should be part of your ocaml installation." "$LINENO" 5
10450
10451fi
10452
10453
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package num" >&5
10455$as_echo_n "checking for OCaml findlib package num... " >&6; }
10456
10457 unset found
10458 unset pkg
10459 found=no
10460 for pkg in num ; do
10461 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10463$as_echo "found" >&6; }
10464 OCAML_PKG_num=$pkg
10465 found=yes
10466 break
10467 fi
10468 done
10469 if test "$found" = "no" ; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10471$as_echo "not found" >&6; }
10472 OCAML_PKG_num=no
10473 fi
10474
10475
10476
10477 if test "x$OCAML_PKG_num" != xno; then :
10478 PATH_num=`$OCAMLFIND query num 2>/dev/null`
10479
10480
10481fi
10482
10483 if test "x$OCAML_PKG_num" = xno; then :
10484 as_fn_error $? "package num is required. It should be part of your ocaml installation." "$LINENO" 5
10485
10486fi
10487
10488
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package str" >&5
10490$as_echo_n "checking for OCaml findlib package str... " >&6; }
10491
10492 unset found
10493 unset pkg
10494 found=no
10495 for pkg in str ; do
10496 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10498$as_echo "found" >&6; }
10499 OCAML_PKG_str=$pkg
10500 found=yes
10501 break
10502 fi
10503 done
10504 if test "$found" = "no" ; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10506$as_echo "not found" >&6; }
10507 OCAML_PKG_str=no
10508 fi
10509
10510
10511
10512 if test "x$OCAML_PKG_str" != xno; then :
10513 PATH_str=`$OCAMLFIND query str 2>/dev/null`
10514
10515
10516fi
10517
10518 if test "x$OCAML_PKG_str" = xno; then :
10519 as_fn_error $? "package str is required. It should be part of your ocaml installation." "$LINENO" 5
10520
10521fi
10522
10523
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package threads" >&5
10525$as_echo_n "checking for OCaml findlib package threads... " >&6; }
10526
10527 unset found
10528 unset pkg
10529 found=no
10530 for pkg in threads ; do
10531 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10533$as_echo "found" >&6; }
10534 OCAML_PKG_threads=$pkg
10535 found=yes
10536 break
10537 fi
10538 done
10539 if test "$found" = "no" ; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10541$as_echo "not found" >&6; }
10542 OCAML_PKG_threads=no
10543 fi
10544
10545
10546
10547 if test "x$OCAML_PKG_threads" != xno; then :
10548 PATH_threads=`$OCAMLFIND query threads 2>/dev/null`
10549
10550
10551fi
10552
10553 if test "x$OCAML_PKG_threads" = xno; then :
10554 as_fn_error $? "package threads is required. It should be part of your ocaml installation." "$LINENO" 5
10555
10556fi
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package dynlink" >&5
10560$as_echo "$as_me: configuring package dynlink" >&6;}
10561 # Check whether --enable-dynlink was given.
10562if test "${enable_dynlink+set}" = set; then :
10563 enableval=$enable_dynlink;
10564fi
10565
10566
10567 if test "x$enable_dynlink" != xno; then :
10568
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package dynlink" >&5
10570$as_echo_n "checking for OCaml findlib package dynlink... " >&6; }
10571
10572 unset found
10573 unset pkg
10574 found=no
10575 for pkg in dynlink ; do
10576 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10578$as_echo "found" >&6; }
10579 OCAML_PKG_dynlink=$pkg
10580 found=yes
10581 break
10582 fi
10583 done
10584 if test "$found" = "no" ; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10586$as_echo "not found" >&6; }
10587 OCAML_PKG_dynlink=no
10588 fi
10589
10590
10591
10592 if test "x$OCAML_PKG_dynlink" != xno; then :
10593 PATH_dynlink=`$OCAMLFIND query dynlink 2>/dev/null`
10594
10595
10596fi
10597
10598 GLOBAL_dynlink=$OCAML_PKG_dynlink
10599
10600
10601 if test "x$GLOBAL_dynlink" != xno; then :
10602 enable_dynlink=yes
10603
10604
10605else
10606 if test "x$enable_dynlink" = xyes; then :
10607 as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5
10608
10609fi
d6ce1786
C
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package dynlink is not available" >&5
10611$as_echo "$as_me: OCaml package dynlink is not available" >&6;}
feec80c3
C
10612 enable_dynlink=no
10613
10614
10615fi
10616
10617fi
10618
10619 if test "x$enable_dynlink" = xno; then :
10620 { pkgdir=; unset pkgdir;}
10621 pkgdir="$COCCI_OCAML_EXTERNAL/dynlink/"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of dynlink" >&5
10623$as_echo_n "checking for a bundled substitute of dynlink... " >&6; }
10624 if test -d "$pkgdir"; then :
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626$as_echo "yes" >&6; }
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for dynlink in $pkgdir" >&5
10628$as_echo "$as_me: using bundled substitute for dynlink in $pkgdir" >&6;}
10629 enable_dynlink=local
10630
10631 PATH_dynlink="$pkgdir"
10632
10633
10634else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
10636$as_echo "not available" >&6; }
10637fi
10638
10639fi
10640
10641 if test "x$enable_dynlink" != xno; then :
10642 FEATURE_dynlink=1
10643
10644 FLAGS_dynlink='$(FLAGS_dynlink)'
10645
d6ce1786
C
10646 OPTFLAGS_dynlink='$(OPTFLAGS_dynlink)'
10647
feec80c3
C
10648
10649 if test "x$enable_dynlink" = xlocal; then :
10650 LOCALLIB_dynlink=1
10651
10652 MODULES_dynlink='$(LOCAL_dynlink)'
10653
10654 MODULESOPT_dynlink='$(LOCALOPT_dynlink)'
10655
10656
10657 if test -f "$PATH_dynlink/Makefile"; then :
10658 MAKE_dynlink=$PATH_dynlink
10659
10660
10661else
10662 MAKE_dynlink=
10663
10664
10665fi
10666
10667else
10668 MODULES_dynlink='$(GLOBAL_dynlink)'
10669
10670 MODULESOPT_dynlink='$(GLOBALOPT_dynlink)'
10671
10672
10673fi
10674
10675fi
10676
10677 if test "x$enable_dynlink" = xno; then :
10678 as_fn_error $? "OCaml package dynlink is required. Please make sure it is available." "$LINENO" 5
10679
10680fi
10681
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package camlp4" >&5
10683$as_echo "$as_me: configuring package camlp4" >&6;}
10684 # Check whether --enable-camlp4 was given.
10685if test "${enable_camlp4+set}" = set; then :
10686 enableval=$enable_camlp4;
10687fi
10688
10689
10690 if test "x$enable_camlp4" != xno; then :
10691
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package camlp4" >&5
10693$as_echo_n "checking for OCaml findlib package camlp4... " >&6; }
10694
10695 unset found
10696 unset pkg
10697 found=no
10698 for pkg in camlp4 ; do
10699 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10701$as_echo "found" >&6; }
10702 OCAML_PKG_camlp4=$pkg
10703 found=yes
10704 break
10705 fi
10706 done
10707 if test "$found" = "no" ; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10709$as_echo "not found" >&6; }
10710 OCAML_PKG_camlp4=no
10711 fi
10712
10713
10714
10715 if test "x$OCAML_PKG_camlp4" != xno; then :
10716 PATH_camlp4=`$OCAMLFIND query camlp4 2>/dev/null`
10717
10718
10719fi
10720
10721 GLOBAL_camlp4=$OCAML_PKG_camlp4
10722
10723
10724 if test "x$GLOBAL_camlp4" != xno; then :
10725 enable_camlp4=yes
10726
10727
10728else
10729 if test "x$enable_camlp4" = xyes; then :
10730 as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5
10731
10732fi
d6ce1786
C
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package camlp4 is not available" >&5
10734$as_echo "$as_me: OCaml package camlp4 is not available" >&6;}
feec80c3
C
10735 enable_camlp4=no
10736
10737
10738fi
10739
10740fi
10741
10742 if test "x$enable_camlp4" = xno; then :
10743 { pkgdir=; unset pkgdir;}
10744 pkgdir="$COCCI_OCAML_EXTERNAL/camlp4/"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of camlp4" >&5
10746$as_echo_n "checking for a bundled substitute of camlp4... " >&6; }
10747 if test -d "$pkgdir"; then :
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10749$as_echo "yes" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for camlp4 in $pkgdir" >&5
10751$as_echo "$as_me: using bundled substitute for camlp4 in $pkgdir" >&6;}
10752 enable_camlp4=local
10753
10754 PATH_camlp4="$pkgdir"
10755
10756
10757else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
10759$as_echo "not available" >&6; }
10760fi
10761
10762fi
10763
10764 if test "x$enable_camlp4" != xno; then :
10765 FEATURE_camlp4=1
10766
10767 FLAGS_camlp4='$(FLAGS_camlp4)'
10768
d6ce1786
C
10769 OPTFLAGS_camlp4='$(OPTFLAGS_camlp4)'
10770
feec80c3
C
10771
10772 if test "x$enable_camlp4" = xlocal; then :
10773 LOCALLIB_camlp4=1
10774
10775 MODULES_camlp4='$(LOCAL_camlp4)'
10776
10777 MODULESOPT_camlp4='$(LOCALOPT_camlp4)'
10778
10779
10780 if test -f "$PATH_camlp4/Makefile"; then :
10781 MAKE_camlp4=$PATH_camlp4
10782
10783
10784else
10785 MAKE_camlp4=
10786
10787
10788fi
10789
10790else
10791 MODULES_camlp4='$(GLOBAL_camlp4)'
10792
10793 MODULESOPT_camlp4='$(GLOBALOPT_camlp4)'
10794
10795
10796fi
10797
10798fi
10799
10800 if test "x$enable_camlp4" = xno; then :
10801 as_fn_error $? "OCaml package camlp4 is required. Please make sure it is available." "$LINENO" 5
10802
10803fi
10804
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package sexplib" >&5
10806$as_echo "$as_me: configuring package sexplib" >&6;}
10807 # Check whether --enable-sexplib was given.
10808if test "${enable_sexplib+set}" = set; then :
10809 enableval=$enable_sexplib;
10810fi
10811
10812
10813 if test "x$enable_sexplib" != xno; then :
10814
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package sexplib" >&5
10816$as_echo_n "checking for OCaml findlib package sexplib... " >&6; }
10817
10818 unset found
10819 unset pkg
10820 found=no
10821 for pkg in sexplib ; do
10822 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10824$as_echo "found" >&6; }
10825 OCAML_PKG_sexplib=$pkg
10826 found=yes
10827 break
10828 fi
10829 done
10830 if test "$found" = "no" ; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10832$as_echo "not found" >&6; }
10833 OCAML_PKG_sexplib=no
10834 fi
10835
10836
10837
10838 if test "x$OCAML_PKG_sexplib" != xno; then :
10839 PATH_sexplib=`$OCAMLFIND query sexplib 2>/dev/null`
10840
10841
10842fi
10843
10844 GLOBAL_sexplib=$OCAML_PKG_sexplib
10845
10846
10847 if test "x$GLOBAL_sexplib" != xno; then :
10848 enable_sexplib=yes
10849
10850
10851else
10852 if test "x$enable_sexplib" = xyes; then :
10853 as_fn_error $? "OCaml package sexplib is not available but requested explicitly" "$LINENO" 5
10854
10855fi
d6ce1786
C
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package sexplib is not available" >&5
10857$as_echo "$as_me: OCaml package sexplib is not available" >&6;}
feec80c3
C
10858 enable_sexplib=no
10859
10860
10861fi
10862
10863fi
10864
10865 if test "x$enable_sexplib" = xno; then :
10866 { pkgdir=; unset pkgdir;}
10867 pkgdir="$COCCI_OCAML_EXTERNAL/sexplib/"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of sexplib" >&5
10869$as_echo_n "checking for a bundled substitute of sexplib... " >&6; }
10870 if test -d "$pkgdir"; then :
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872$as_echo "yes" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for sexplib in $pkgdir" >&5
10874$as_echo "$as_me: using bundled substitute for sexplib in $pkgdir" >&6;}
10875 enable_sexplib=local
10876
10877 PATH_sexplib="$pkgdir"
10878
10879
10880else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
10882$as_echo "not available" >&6; }
10883fi
10884
10885fi
10886
10887 if test "x$enable_sexplib" != xno; then :
10888 FEATURE_sexplib=1
10889
10890 FLAGS_sexplib='$(FLAGS_sexplib)'
10891
d6ce1786
C
10892 OPTFLAGS_sexplib='$(OPTFLAGS_sexplib)'
10893
feec80c3
C
10894
10895 if test "x$enable_sexplib" = xlocal; then :
10896 LOCALLIB_sexplib=1
10897
10898 MODULES_sexplib='$(LOCAL_sexplib)'
10899
10900 MODULESOPT_sexplib='$(LOCALOPT_sexplib)'
10901
10902
10903 if test -f "$PATH_sexplib/Makefile"; then :
10904 MAKE_sexplib=$PATH_sexplib
10905
10906
10907else
10908 MAKE_sexplib=
10909
10910
10911fi
10912
10913else
10914 MODULES_sexplib='$(GLOBAL_sexplib)'
10915
10916 MODULESOPT_sexplib='$(GLOBALOPT_sexplib)'
10917
10918
10919fi
10920
10921fi
10922
10923 if test "x$enable_sexplib" = xno; then :
10924 as_fn_error $? "OCaml package sexplib is required. Please make sure it is available." "$LINENO" 5
10925
10926fi
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package menhirLib" >&5
10929$as_echo "$as_me: configuring package menhirLib" >&6;}
10930 # Check whether --enable-menhirLib was given.
10931if test "${enable_menhirLib+set}" = set; then :
10932 enableval=$enable_menhirLib;
10933fi
10934
10935
10936 if test "x$enable_menhirLib" != xno; then :
10937
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package menhirLib" >&5
10939$as_echo_n "checking for OCaml findlib package menhirLib... " >&6; }
10940
10941 unset found
10942 unset pkg
10943 found=no
10944 for pkg in menhirLib ; do
10945 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10947$as_echo "found" >&6; }
10948 OCAML_PKG_menhirLib=$pkg
10949 found=yes
10950 break
10951 fi
10952 done
10953 if test "$found" = "no" ; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10955$as_echo "not found" >&6; }
10956 OCAML_PKG_menhirLib=no
10957 fi
10958
10959
10960
10961 if test "x$OCAML_PKG_menhirLib" != xno; then :
10962 PATH_menhirLib=`$OCAMLFIND query menhirLib 2>/dev/null`
10963
10964
10965fi
10966
10967 GLOBAL_menhirLib=$OCAML_PKG_menhirLib
10968
10969
10970 if test "x$GLOBAL_menhirLib" != xno; then :
10971 enable_menhirLib=yes
10972
10973
10974else
10975 if test "x$enable_menhirLib" = xyes; then :
10976 as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5
10977
10978fi
d6ce1786
C
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package menhirLib is not available" >&5
10980$as_echo "$as_me: OCaml package menhirLib is not available" >&6;}
feec80c3
C
10981 enable_menhirLib=no
10982
10983
10984fi
10985
10986fi
10987
10988 if test "x$enable_menhirLib" = xno; then :
10989 { pkgdir=; unset pkgdir;}
10990 pkgdir="$COCCI_OCAML_EXTERNAL/menhirLib/"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of menhirLib" >&5
10992$as_echo_n "checking for a bundled substitute of menhirLib... " >&6; }
10993 if test -d "$pkgdir"; then :
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995$as_echo "yes" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for menhirLib in $pkgdir" >&5
10997$as_echo "$as_me: using bundled substitute for menhirLib in $pkgdir" >&6;}
10998 enable_menhirLib=local
10999
11000 PATH_menhirLib="$pkgdir"
11001
11002
11003else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
11005$as_echo "not available" >&6; }
11006fi
11007
11008fi
11009
11010 if test "x$enable_menhirLib" != xno; then :
11011 FEATURE_menhirLib=1
11012
11013 FLAGS_menhirLib='$(FLAGS_menhirLib)'
11014
d6ce1786
C
11015 OPTFLAGS_menhirLib='$(OPTFLAGS_menhirLib)'
11016
feec80c3
C
11017
11018 if test "x$enable_menhirLib" = xlocal; then :
11019 LOCALLIB_menhirLib=1
11020
11021 MODULES_menhirLib='$(LOCAL_menhirLib)'
11022
11023 MODULESOPT_menhirLib='$(LOCALOPT_menhirLib)'
11024
11025
11026 if test -f "$PATH_menhirLib/Makefile"; then :
11027 MAKE_menhirLib=$PATH_menhirLib
11028
11029
11030else
11031 MAKE_menhirLib=
11032
11033
11034fi
11035
11036else
11037 MODULES_menhirLib='$(GLOBAL_menhirLib)'
11038
11039 MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)'
11040
11041
11042fi
11043
11044fi
11045
11046 if test "x$enable_menhirLib" = xno; then :
11047 as_fn_error $? "OCaml package menhirLib is required. Please make sure it is available." "$LINENO" 5
11048
11049fi
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package extlib" >&5
11052$as_echo "$as_me: configuring package extlib" >&6;}
11053 # Check whether --enable-extlib was given.
11054if test "${enable_extlib+set}" = set; then :
11055 enableval=$enable_extlib;
11056fi
11057
11058
11059 if test "x$enable_extlib" != xno; then :
11060
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package extlib" >&5
11062$as_echo_n "checking for OCaml findlib package extlib... " >&6; }
11063
11064 unset found
11065 unset pkg
11066 found=no
11067 for pkg in extlib ; do
11068 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11070$as_echo "found" >&6; }
11071 OCAML_PKG_extlib=$pkg
11072 found=yes
11073 break
11074 fi
11075 done
11076 if test "$found" = "no" ; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11078$as_echo "not found" >&6; }
11079 OCAML_PKG_extlib=no
11080 fi
11081
11082
11083
11084 if test "x$OCAML_PKG_extlib" != xno; then :
11085 PATH_extlib=`$OCAMLFIND query extlib 2>/dev/null`
11086
11087
11088fi
11089
11090 GLOBAL_extlib=$OCAML_PKG_extlib
11091
11092
11093 if test "x$GLOBAL_extlib" != xno; then :
11094 enable_extlib=yes
11095
11096
11097else
11098 if test "x$enable_extlib" = xyes; then :
11099 as_fn_error $? "OCaml package extlib is not available but requested explicitly" "$LINENO" 5
11100
11101fi
d6ce1786
C
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package extlib is not available" >&5
11103$as_echo "$as_me: OCaml package extlib is not available" >&6;}
feec80c3
C
11104 enable_extlib=no
11105
11106
11107fi
11108
11109fi
11110
11111 if test "x$enable_extlib" = xno; then :
11112 { pkgdir=; unset pkgdir;}
11113 pkgdir="$COCCI_OCAML_EXTERNAL/extlib/"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of extlib" >&5
11115$as_echo_n "checking for a bundled substitute of extlib... " >&6; }
11116 if test -d "$pkgdir"; then :
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11118$as_echo "yes" >&6; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for extlib in $pkgdir" >&5
11120$as_echo "$as_me: using bundled substitute for extlib in $pkgdir" >&6;}
11121 enable_extlib=local
11122
11123 PATH_extlib="$pkgdir"
11124
11125
11126else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
11128$as_echo "not available" >&6; }
11129fi
11130
11131fi
11132
11133 if test "x$enable_extlib" != xno; then :
11134 FEATURE_extlib=1
11135
11136 FLAGS_extlib='$(FLAGS_extlib)'
11137
d6ce1786
C
11138 OPTFLAGS_extlib='$(OPTFLAGS_extlib)'
11139
feec80c3
C
11140
11141 if test "x$enable_extlib" = xlocal; then :
11142 LOCALLIB_extlib=1
11143
11144 MODULES_extlib='$(LOCAL_extlib)'
11145
11146 MODULESOPT_extlib='$(LOCALOPT_extlib)'
11147
11148
11149 if test -f "$PATH_extlib/Makefile"; then :
11150 MAKE_extlib=$PATH_extlib
11151
11152
11153else
11154 MAKE_extlib=
11155
11156
11157fi
11158
11159else
11160 MODULES_extlib='$(GLOBAL_extlib)'
11161
11162 MODULESOPT_extlib='$(GLOBALOPT_extlib)'
11163
11164
11165fi
11166
11167fi
11168
11169 if test "x$enable_extlib" = xno; then :
11170 as_fn_error $? "OCaml package extlib is required. Please make sure it is available." "$LINENO" 5
11171
11172fi
11173
11174
11175
11176cat >confcache <<\_ACEOF
11177# This file is a shell script that caches the results of configure
11178# tests run on this system so they can be shared between configure
11179# scripts and configure runs, see configure's option --config-cache.
11180# It is not useful on other systems. If it contains results you don't
11181# want to keep, you may remove or edit it.
11182#
11183# config.status only pays attention to the cache file if you give it
11184# the --recheck option to rerun configure.
11185#
11186# `ac_cv_env_foo' variables (set or unset) will be overridden when
11187# loading this file, other *unset* `ac_cv_foo' will be assigned the
11188# following values.
11189
11190_ACEOF
11191
11192# The following way of writing the cache mishandles newlines in values,
11193# but we know of no workaround that is simple, portable, and efficient.
11194# So, we kill variables containing newlines.
11195# Ultrix sh set writes to stderr and can't be redirected directly,
11196# and sets the high bit in the cache file unless we assign to the vars.
11197(
11198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11199 eval ac_val=\$$ac_var
11200 case $ac_val in #(
11201 *${as_nl}*)
11202 case $ac_var in #(
11203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11205 esac
11206 case $ac_var in #(
11207 _ | IFS | as_nl) ;; #(
11208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11209 *) { eval $ac_var=; unset $ac_var;} ;;
11210 esac ;;
11211 esac
11212 done
11213
11214 (set) 2>&1 |
11215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11216 *${as_nl}ac_space=\ *)
11217 # `set' does not quote correctly, so add quotes: double-quote
11218 # substitution turns \\\\ into \\, and sed turns \\ into \.
11219 sed -n \
11220 "s/'/'\\\\''/g;
11221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11222 ;; #(
11223 *)
11224 # `set' quotes correctly as required by POSIX, so do not add quotes.
11225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11226 ;;
11227 esac |
11228 sort
11229) |
11230 sed '
11231 /^ac_cv_env_/b end
11232 t clear
11233 :clear
11234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11235 t end
11236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11237 :end' >>confcache
11238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11239 if test -w "$cache_file"; then
11240 if test "x$cache_file" != "x/dev/null"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11242$as_echo "$as_me: updating cache $cache_file" >&6;}
11243 if test ! -f "$cache_file" || test -h "$cache_file"; then
11244 cat confcache >"$cache_file"
11245 else
11246 case $cache_file in #(
11247 */* | ?:*)
11248 mv -f confcache "$cache_file"$$ &&
11249 mv -f "$cache_file"$$ "$cache_file" ;; #(
11250 *)
11251 mv -f confcache "$cache_file" ;;
11252 esac
11253 fi
11254 fi
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11257$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11258 fi
11259fi
11260rm -f confcache
11261
11262
11263
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying optional features" >&5
11265$as_echo "$as_me: verifying optional features" >&6;}
11266
d6ce1786
C
11267if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then :
11268 OPTIMIZED_dynlink=yes
11269
11270
11271else
11272 OPTIMIZED_dynlink=no
11273
11274
11275fi
11276
feec80c3
C
11277
11278
11279
11280# Check whether --with-menhir was given.
11281if test "${with_menhir+set}" = set; then :
11282 withval=$with_menhir;
11283fi
11284
11285 with_MENHIR="$with_menhir"
11286
feec80c3
C
11287 if test -n "$with_MENHIR" -a "x$with_MENHIR" != xno -a "x$with_MENHIR" != xyes; then :
11288 MENHIR="$with_MENHIR"
11289
11290
d6ce1786
C
11291else
11292 MENHIR="menhir"
11293
11294
feec80c3
C
11295fi
11296
d6ce1786
C
11297 if test "x$with_MENHIR" = xno; then :
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir is disabled explicitly" >&5
11299$as_echo "$as_me: menhir is disabled explicitly" >&6;}
11300 MENHIR=no
11301
11302
11303else
11304 if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
feec80c3
C
11305
11306
11307if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11308 if test -n "$ac_tool_prefix"; then
11309 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11310set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312$as_echo_n "checking for $ac_word... " >&6; }
11313if ${ac_cv_path_PKG_CONFIG+:} false; then :
11314 $as_echo_n "(cached) " >&6
11315else
11316 case $PKG_CONFIG in
11317 [\\/]* | ?:[\\/]*)
11318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11319 ;;
11320 *)
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322for as_dir in $PATH
11323do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333 done
11334IFS=$as_save_IFS
11335
11336 ;;
11337esac
11338fi
11339PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11340if test -n "$PKG_CONFIG"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11342$as_echo "$PKG_CONFIG" >&6; }
11343else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345$as_echo "no" >&6; }
11346fi
11347
11348
11349fi
11350if test -z "$ac_cv_path_PKG_CONFIG"; then
11351 ac_pt_PKG_CONFIG=$PKG_CONFIG
11352 # Extract the first word of "pkg-config", so it can be a program name with args.
11353set dummy pkg-config; ac_word=$2
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355$as_echo_n "checking for $ac_word... " >&6; }
11356if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358else
11359 case $ac_pt_PKG_CONFIG in
11360 [\\/]* | ?:[\\/]*)
11361 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11362 ;;
11363 *)
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365for as_dir in $PATH
11366do
11367 IFS=$as_save_IFS
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 break 2
11374 fi
11375done
11376 done
11377IFS=$as_save_IFS
11378
11379 ;;
11380esac
11381fi
11382ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11383if test -n "$ac_pt_PKG_CONFIG"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11385$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11386else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388$as_echo "no" >&6; }
11389fi
11390
11391 if test "x$ac_pt_PKG_CONFIG" = x; then
11392 PKG_CONFIG=""
11393 else
11394 case $cross_compiling:$ac_tool_warned in
11395yes:)
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11398ac_tool_warned=yes ;;
11399esac
11400 PKG_CONFIG=$ac_pt_PKG_CONFIG
11401 fi
11402else
11403 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11404fi
11405
11406fi
11407if test -n "$PKG_CONFIG"; then
11408 _pkg_min_version=0.9.0
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11410$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11411 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11413$as_echo "yes" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
11417 PKG_CONFIG=""
11418 fi
11419
11420fi
11421
d6ce1786 11422elif test "x$MENHIR" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
feec80c3
C
11423 # checking for ocamllex
11424 if test -n "$ac_tool_prefix"; then
11425 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
11426set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
11429if ${ac_cv_path_OCAMLLEX+:} false; then :
11430 $as_echo_n "(cached) " >&6
11431else
11432 case $OCAMLLEX in
11433 [\\/]* | ?:[\\/]*)
11434 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
11435 ;;
11436 *)
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449 done
11450IFS=$as_save_IFS
11451
11452 ;;
11453esac
11454fi
11455OCAMLLEX=$ac_cv_path_OCAMLLEX
11456if test -n "$OCAMLLEX"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
11458$as_echo "$OCAMLLEX" >&6; }
11459else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
11462fi
11463
11464
11465fi
11466if test -z "$ac_cv_path_OCAMLLEX"; then
11467 ac_pt_OCAMLLEX=$OCAMLLEX
11468 # Extract the first word of "ocamllex", so it can be a program name with args.
11469set dummy ocamllex; ac_word=$2
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474else
11475 case $ac_pt_OCAMLLEX in
11476 [\\/]* | ?:[\\/]*)
11477 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
11478 ;;
11479 *)
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11490 fi
11491done
11492 done
11493IFS=$as_save_IFS
11494
11495 ;;
11496esac
11497fi
11498ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
11499if test -n "$ac_pt_OCAMLLEX"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
11501$as_echo "$ac_pt_OCAMLLEX" >&6; }
11502else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
11505fi
11506
11507 if test "x$ac_pt_OCAMLLEX" = x; then
11508 OCAMLLEX="no"
11509 else
11510 case $cross_compiling:$ac_tool_warned in
11511yes:)
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11514ac_tool_warned=yes ;;
11515esac
11516 OCAMLLEX=$ac_pt_OCAMLLEX
11517 fi
11518else
11519 OCAMLLEX="$ac_cv_path_OCAMLLEX"
11520fi
11521
11522 if test "$OCAMLLEX" != "no"; then
11523 if test -n "$ac_tool_prefix"; then
11524 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
11525set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
11528if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530else
11531 case $OCAMLLEXDOTOPT in
11532 [\\/]* | ?:[\\/]*)
11533 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
11534 ;;
11535 *)
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547done
11548 done
11549IFS=$as_save_IFS
11550
11551 ;;
11552esac
11553fi
11554OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
11555if test -n "$OCAMLLEXDOTOPT"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
11557$as_echo "$OCAMLLEXDOTOPT" >&6; }
11558else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560$as_echo "no" >&6; }
11561fi
11562
11563
11564fi
11565if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
11566 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
11567 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
11568set dummy ocamllex.opt; ac_word=$2
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570$as_echo_n "checking for $ac_word... " >&6; }
11571if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 case $ac_pt_OCAMLLEXDOTOPT in
11575 [\\/]* | ?:[\\/]*)
11576 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
11577 ;;
11578 *)
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591 done
11592IFS=$as_save_IFS
11593
11594 ;;
11595esac
11596fi
11597ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
11598if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
11600$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
11601else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
11604fi
11605
11606 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
11607 OCAMLLEXDOTOPT="no"
11608 else
11609 case $cross_compiling:$ac_tool_warned in
11610yes:)
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11613ac_tool_warned=yes ;;
11614esac
11615 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
11616 fi
11617else
11618 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
11619fi
11620
11621 if test "$OCAMLLEXDOTOPT" != "no"; then
11622 OCAMLLEX=$OCAMLLEXDOTOPT
11623 fi
11624 fi
11625
11626
11627
d6ce1786 11628elif test "x$MENHIR" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
feec80c3
C
11629 if test -n "$ac_tool_prefix"; then
11630 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
11631set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if ${ac_cv_path_OCAMLYACC+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636else
11637 case $OCAMLYACC in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $PATH
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11652 fi
11653done
11654 done
11655IFS=$as_save_IFS
11656
11657 ;;
11658esac
11659fi
11660OCAMLYACC=$ac_cv_path_OCAMLYACC
11661if test -n "$OCAMLYACC"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
11663$as_echo "$OCAMLYACC" >&6; }
11664else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
11667fi
11668
11669
11670fi
11671if test -z "$ac_cv_path_OCAMLYACC"; then
11672 ac_pt_OCAMLYACC=$OCAMLYACC
11673 # Extract the first word of "ocamlyacc", so it can be a program name with args.
11674set dummy ocamlyacc; ac_word=$2
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676$as_echo_n "checking for $ac_word... " >&6; }
11677if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679else
11680 case $ac_pt_OCAMLYACC in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696done
11697 done
11698IFS=$as_save_IFS
11699
11700 ;;
11701esac
11702fi
11703ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
11704if test -n "$ac_pt_OCAMLYACC"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
11706$as_echo "$ac_pt_OCAMLYACC" >&6; }
11707else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710fi
11711
11712 if test "x$ac_pt_OCAMLYACC" = x; then
11713 OCAMLYACC="no"
11714 else
11715 case $cross_compiling:$ac_tool_warned in
11716yes:)
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11719ac_tool_warned=yes ;;
11720esac
11721 OCAMLYACC=$ac_pt_OCAMLYACC
11722 fi
11723else
11724 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11725fi
11726
11727
11728
11729
11730else
11731 if test -n "$ac_tool_prefix"; then
d6ce1786
C
11732 # Extract the first word of "${ac_tool_prefix}[$]MENHIR", so it can be a program name with args.
11733set dummy ${ac_tool_prefix}$MENHIR; ac_word=$2
feec80c3
C
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
11736if ${ac_cv_path_MENHIR+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738else
11739 case $MENHIR in
11740 [\\/]* | ?:[\\/]*)
11741 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
11742 ;;
11743 *)
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756 done
11757IFS=$as_save_IFS
11758
11759 ;;
11760esac
11761fi
11762MENHIR=$ac_cv_path_MENHIR
11763if test -n "$MENHIR"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
11765$as_echo "$MENHIR" >&6; }
11766else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768$as_echo "no" >&6; }
11769fi
11770
11771
11772fi
11773if test -z "$ac_cv_path_MENHIR"; then
11774 ac_pt_MENHIR=$MENHIR
d6ce1786
C
11775 # Extract the first word of "[$]MENHIR", so it can be a program name with args.
11776set dummy $MENHIR; ac_word=$2
feec80c3
C
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
11779if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781else
11782 case $ac_pt_MENHIR in
11783 [\\/]* | ?:[\\/]*)
11784 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
11785 ;;
11786 *)
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788for as_dir in $PATH
11789do
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11797 fi
11798done
11799 done
11800IFS=$as_save_IFS
11801
11802 ;;
11803esac
11804fi
11805ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
11806if test -n "$ac_pt_MENHIR"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
11808$as_echo "$ac_pt_MENHIR" >&6; }
11809else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811$as_echo "no" >&6; }
11812fi
11813
11814 if test "x$ac_pt_MENHIR" = x; then
11815 MENHIR=""
11816 else
11817 case $cross_compiling:$ac_tool_warned in
11818yes:)
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11821ac_tool_warned=yes ;;
11822esac
11823 MENHIR=$ac_pt_MENHIR
11824 fi
11825else
11826 MENHIR="$ac_cv_path_MENHIR"
11827fi
11828
11829
11830fi
11831
11832
11833fi
11834
11835 if test -z "$MENHIR" -o "x$MENHIR" = xno; then :
11836 if test "x$with_MENHIR" = xyes; then :
11837 as_fn_error $? "--with=menhir is given explicitly but not found" "$LINENO" 5
11838
11839fi
11840
11841 if test -n "$COCCI_SRCDIR/setup/fake-menhir.sh menhir"; then :
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&5
11843$as_echo "$as_me: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&6;}
11844 MENHIR="$COCCI_SRCDIR/setup/fake-menhir.sh menhir"
11845
11846 if test "xmenhir" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
11847
11848
11849if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11850 if test -n "$ac_tool_prefix"; then
11851 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11852set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if ${ac_cv_path_PKG_CONFIG+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857else
11858 case $PKG_CONFIG in
11859 [\\/]* | ?:[\\/]*)
11860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11861 ;;
11862 *)
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11873 fi
11874done
11875 done
11876IFS=$as_save_IFS
11877
11878 ;;
11879esac
11880fi
11881PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11882if test -n "$PKG_CONFIG"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11884$as_echo "$PKG_CONFIG" >&6; }
11885else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
11888fi
11889
11890
11891fi
11892if test -z "$ac_cv_path_PKG_CONFIG"; then
11893 ac_pt_PKG_CONFIG=$PKG_CONFIG
11894 # Extract the first word of "pkg-config", so it can be a program name with args.
11895set dummy pkg-config; ac_word=$2
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900else
11901 case $ac_pt_PKG_CONFIG in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918 done
11919IFS=$as_save_IFS
11920
11921 ;;
11922esac
11923fi
11924ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11925if test -n "$ac_pt_PKG_CONFIG"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11927$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11928else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
11931fi
11932
11933 if test "x$ac_pt_PKG_CONFIG" = x; then
11934 PKG_CONFIG=""
11935 else
11936 case $cross_compiling:$ac_tool_warned in
11937yes:)
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11940ac_tool_warned=yes ;;
11941esac
11942 PKG_CONFIG=$ac_pt_PKG_CONFIG
11943 fi
11944else
11945 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11946fi
11947
11948fi
11949if test -n "$PKG_CONFIG"; then
11950 _pkg_min_version=0.9.0
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11952$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11953 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955$as_echo "yes" >&6; }
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
11959 PKG_CONFIG=""
11960 fi
11961
11962fi
11963
11964elif test "xmenhir" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
11965 # checking for ocamllex
11966 if test -n "$ac_tool_prefix"; then
11967 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
11968set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if ${ac_cv_path_OCAMLLEX+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973else
11974 case $OCAMLLEX in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
11977 ;;
11978 *)
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980for as_dir in $PATH
11981do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11986 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11989 fi
11990done
11991 done
11992IFS=$as_save_IFS
11993
11994 ;;
11995esac
11996fi
11997OCAMLLEX=$ac_cv_path_OCAMLLEX
11998if test -n "$OCAMLLEX"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12000$as_echo "$OCAMLLEX" >&6; }
12001else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
12004fi
12005
12006
12007fi
12008if test -z "$ac_cv_path_OCAMLLEX"; then
12009 ac_pt_OCAMLLEX=$OCAMLLEX
12010 # Extract the first word of "ocamllex", so it can be a program name with args.
12011set dummy ocamllex; ac_word=$2
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016else
12017 case $ac_pt_OCAMLLEX in
12018 [\\/]* | ?:[\\/]*)
12019 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12020 ;;
12021 *)
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033done
12034 done
12035IFS=$as_save_IFS
12036
12037 ;;
12038esac
12039fi
12040ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12041if test -n "$ac_pt_OCAMLLEX"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12043$as_echo "$ac_pt_OCAMLLEX" >&6; }
12044else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047fi
12048
12049 if test "x$ac_pt_OCAMLLEX" = x; then
12050 OCAMLLEX="no"
12051 else
12052 case $cross_compiling:$ac_tool_warned in
12053yes:)
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12056ac_tool_warned=yes ;;
12057esac
12058 OCAMLLEX=$ac_pt_OCAMLLEX
12059 fi
12060else
12061 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12062fi
12063
12064 if test "$OCAMLLEX" != "no"; then
12065 if test -n "$ac_tool_prefix"; then
12066 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12067set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069$as_echo_n "checking for $ac_word... " >&6; }
12070if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072else
12073 case $OCAMLLEXDOTOPT in
12074 [\\/]* | ?:[\\/]*)
12075 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12076 ;;
12077 *)
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079for as_dir in $PATH
12080do
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12085 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12088 fi
12089done
12090 done
12091IFS=$as_save_IFS
12092
12093 ;;
12094esac
12095fi
12096OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12097if test -n "$OCAMLLEXDOTOPT"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12099$as_echo "$OCAMLLEXDOTOPT" >&6; }
12100else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102$as_echo "no" >&6; }
12103fi
12104
12105
12106fi
12107if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12108 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12109 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12110set dummy ocamllex.opt; ac_word=$2
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112$as_echo_n "checking for $ac_word... " >&6; }
12113if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115else
12116 case $ac_pt_OCAMLLEXDOTOPT in
12117 [\\/]* | ?:[\\/]*)
12118 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12119 ;;
12120 *)
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132done
12133 done
12134IFS=$as_save_IFS
12135
12136 ;;
12137esac
12138fi
12139ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12140if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12142$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12143else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
12146fi
12147
12148 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12149 OCAMLLEXDOTOPT="no"
12150 else
12151 case $cross_compiling:$ac_tool_warned in
12152yes:)
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12155ac_tool_warned=yes ;;
12156esac
12157 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12158 fi
12159else
12160 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12161fi
12162
12163 if test "$OCAMLLEXDOTOPT" != "no"; then
12164 OCAMLLEX=$OCAMLLEXDOTOPT
12165 fi
12166 fi
12167
12168
12169
12170elif test "xmenhir" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
12171 if test -n "$ac_tool_prefix"; then
12172 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12173set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if ${ac_cv_path_OCAMLYACC+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 case $OCAMLYACC in
12180 [\\/]* | ?:[\\/]*)
12181 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12182 ;;
12183 *)
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12191 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195done
12196 done
12197IFS=$as_save_IFS
12198
12199 ;;
12200esac
12201fi
12202OCAMLYACC=$ac_cv_path_OCAMLYACC
12203if test -n "$OCAMLYACC"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12205$as_echo "$OCAMLYACC" >&6; }
12206else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208$as_echo "no" >&6; }
12209fi
12210
12211
12212fi
12213if test -z "$ac_cv_path_OCAMLYACC"; then
12214 ac_pt_OCAMLYACC=$OCAMLYACC
12215 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12216set dummy ocamlyacc; ac_word=$2
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218$as_echo_n "checking for $ac_word... " >&6; }
12219if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221else
12222 case $ac_pt_OCAMLYACC in
12223 [\\/]* | ?:[\\/]*)
12224 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12225 ;;
12226 *)
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228for as_dir in $PATH
12229do
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12234 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12237 fi
12238done
12239 done
12240IFS=$as_save_IFS
12241
12242 ;;
12243esac
12244fi
12245ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
12246if test -n "$ac_pt_OCAMLYACC"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
12248$as_echo "$ac_pt_OCAMLYACC" >&6; }
12249else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254 if test "x$ac_pt_OCAMLYACC" = x; then
12255 OCAMLYACC="no"
12256 else
12257 case $cross_compiling:$ac_tool_warned in
12258yes:)
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261ac_tool_warned=yes ;;
12262esac
12263 OCAMLYACC=$ac_pt_OCAMLYACC
12264 fi
12265else
12266 OCAMLYACC="$ac_cv_path_OCAMLYACC"
12267fi
12268
12269
12270
12271
12272else
12273 if test -n "$ac_tool_prefix"; then
12274 # Extract the first word of "${ac_tool_prefix}menhir", so it can be a program name with args.
12275set dummy ${ac_tool_prefix}menhir; ac_word=$2
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277$as_echo_n "checking for $ac_word... " >&6; }
12278if ${ac_cv_path_MENHIR+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280else
12281 case $MENHIR in
12282 [\\/]* | ?:[\\/]*)
12283 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
12284 ;;
12285 *)
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287for as_dir in $PATH
12288do
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 break 2
12296 fi
12297done
12298 done
12299IFS=$as_save_IFS
12300
12301 ;;
12302esac
12303fi
12304MENHIR=$ac_cv_path_MENHIR
12305if test -n "$MENHIR"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
12307$as_echo "$MENHIR" >&6; }
12308else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310$as_echo "no" >&6; }
12311fi
12312
12313
12314fi
12315if test -z "$ac_cv_path_MENHIR"; then
12316 ac_pt_MENHIR=$MENHIR
12317 # Extract the first word of "menhir", so it can be a program name with args.
12318set dummy menhir; ac_word=$2
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
12321if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323else
12324 case $ac_pt_MENHIR in
12325 [\\/]* | ?:[\\/]*)
12326 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
12327 ;;
12328 *)
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in $PATH
12331do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12339 fi
12340done
12341 done
12342IFS=$as_save_IFS
12343
12344 ;;
12345esac
12346fi
12347ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
12348if test -n "$ac_pt_MENHIR"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
12350$as_echo "$ac_pt_MENHIR" >&6; }
12351else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354fi
12355
12356 if test "x$ac_pt_MENHIR" = x; then
12357 MENHIR=""
12358 else
12359 case $cross_compiling:$ac_tool_warned in
12360yes:)
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12363ac_tool_warned=yes ;;
12364esac
12365 MENHIR=$ac_pt_MENHIR
12366 fi
12367else
12368 MENHIR="$ac_cv_path_MENHIR"
12369fi
12370
12371
12372fi
12373
12374 SUBSTITUTED_MENHIR=yes
12375
12376
12377fi
12378
12379fi
12380
12381 if test -z "$MENHIR"; then :
12382 MENHIR=no
12383
12384fi
12385
12386if test "x$SUBSTITUTED_MENHIR" = xyes; then :
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: pregenerated parsers will be required as substitute for Menhir" >&5
12388$as_echo "$as_me: pregenerated parsers will be required as substitute for Menhir" >&6;}
12389
12390fi
12391
12392
12393# Check whether --enable-ocaml was given.
12394if test "${enable_ocaml+set}" = set; then :
12395 enableval=$enable_ocaml;
12396fi
12397
12398if test "x$OCAML_PKG_dynlink" = xno; then :
12399 if test -z "$enable_ocaml"; then :
12400 enable_ocaml=no
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because the 'dynlink' package is not installed" >&5
12403$as_echo "$as_me: ocaml scripting is disabled because the 'dynlink' package is not installed" >&6;}
12404
12405elif test "x$enable_ocaml" != xno; then :
12406 as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5
12407
12408fi
12409
12410fi
12411
12412if test "x$OCAMLATLEAST311" = xno; then :
d6ce1786
C
12413 if test -z "$enable_ocaml"; then :
12414 enable_ocaml=no
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&5
12417$as_echo "$as_me: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&6;}
feec80c3 12418
d6ce1786
C
12419elif test "x$enable_ocaml" = xyes; then :
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&5
12421$as_echo "$as_me: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&6;}
12422
12423fi
12424
12425fi
12426
12427if test "x$OPTIMIZED_dynlink" = xno; then :
12428 if test -z "$enable_ocaml"; then :
12429 enable_ocaml=no
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&5
12432$as_echo "$as_me: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&6;}
12433
12434elif test "x$enable_ocaml" = xyes; then :
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&5
12436$as_echo "$as_me: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&6;}
12437
12438fi
feec80c3
C
12439
12440fi
12441
12442if test -n "$SUBSTITUTED_OCAMLFIND"; then :
12443 if test -z "$enable_ocaml"; then :
12444 enable_ocaml=no
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it depends on ocamlfind" >&5
12447$as_echo "$as_me: ocaml scripting is disabled because it depends on ocamlfind" >&6;}
12448
12449elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&5
12451$as_echo "$as_me: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
12452
12453fi
12454
12455fi
12456
12457if test "x$CAMLP4" = xno; then :
12458 if test -z "$enable_ocaml"; then :
12459 enable_ocaml=no
12460
d6ce1786
C
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it requires camlp4 which is not available" >&5
12462$as_echo "$as_me: ocaml scripting is disabled because it requires camlp4 which is not available" >&6;}
feec80c3
C
12463
12464elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: camlp4 is not found but may be required when ocaml scripts are used" >&5
12466$as_echo "$as_me: warning: camlp4 is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
12467
12468fi
12469
12470fi
12471
12472if test "x$enable_ocaml" = xno; then :
12473 FEATURE_dynlink=0
12474
12475 LOCALLIB_dynlink=0
12476
12477 FLAGS_dynlink=
12478
12479 MODULES_dynlink=
12480
12481 MODULESOPT_dynlink=
12482
12483 PATH_dynlink=
12484
12485 OCAMLCOCCI_MODULE=No_prepare_ocamlcocci
12486
12487 OCAMLCOCCI_FILE=no_prepare_ocamlcocci.ml
12488
12489
12490else
12491 enable_ocaml=yes
12492
12493 OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci
12494
12495 OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml
12496
12497
12498fi
12499
12500
12501
12502# Check whether --enable-python was given.
12503if test "${enable_python+set}" = set; then :
12504 enableval=$enable_python;
12505fi
12506
12507if test "x$enable_python" != xno; then :
d6ce1786 12508 if test -n "$enable_python" -a -z "$enable_pycaml"; then :
feec80c3
C
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&5
12510$as_echo "$as_me: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&6;}
12511 enable_pycaml=no
12512
12513
12514fi
12515
12516 if test -z "$PYVER"; then :
12517
12518
d6ce1786 12519
feec80c3
C
12520# Check whether --with-python was given.
12521if test "${with_python+set}" = set; then :
12522 withval=$with_python;
12523fi
12524
12525 with_PYTHON="$with_python"
12526
feec80c3
C
12527 if test -n "$with_PYTHON" -a "x$with_PYTHON" != xno -a "x$with_PYTHON" != xyes; then :
12528 PYTHON="$with_PYTHON"
12529
12530
d6ce1786
C
12531else
12532 PYTHON="python"
12533
12534
feec80c3
C
12535fi
12536
d6ce1786
C
12537 if test "x$with_PYTHON" = xno; then :
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: python is disabled explicitly" >&5
12539$as_echo "$as_me: python is disabled explicitly" >&6;}
12540 PYTHON=no
12541
12542
12543else
12544 if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
feec80c3
C
12545
12546
12547if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12548 if test -n "$ac_tool_prefix"; then
12549 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12550set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
12553if ${ac_cv_path_PKG_CONFIG+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555else
12556 case $PKG_CONFIG in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12559 ;;
12560 *)
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562for as_dir in $PATH
12563do
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12571 fi
12572done
12573 done
12574IFS=$as_save_IFS
12575
12576 ;;
12577esac
12578fi
12579PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12580if test -n "$PKG_CONFIG"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12582$as_echo "$PKG_CONFIG" >&6; }
12583else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587
12588
12589fi
12590if test -z "$ac_cv_path_PKG_CONFIG"; then
12591 ac_pt_PKG_CONFIG=$PKG_CONFIG
12592 # Extract the first word of "pkg-config", so it can be a program name with args.
12593set dummy pkg-config; ac_word=$2
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595$as_echo_n "checking for $ac_word... " >&6; }
12596if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598else
12599 case $ac_pt_PKG_CONFIG in
12600 [\\/]* | ?:[\\/]*)
12601 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12602 ;;
12603 *)
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12611 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 break 2
12614 fi
12615done
12616 done
12617IFS=$as_save_IFS
12618
12619 ;;
12620esac
12621fi
12622ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12623if test -n "$ac_pt_PKG_CONFIG"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12625$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12626else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628$as_echo "no" >&6; }
12629fi
12630
12631 if test "x$ac_pt_PKG_CONFIG" = x; then
12632 PKG_CONFIG=""
12633 else
12634 case $cross_compiling:$ac_tool_warned in
12635yes:)
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12638ac_tool_warned=yes ;;
12639esac
12640 PKG_CONFIG=$ac_pt_PKG_CONFIG
12641 fi
12642else
12643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12644fi
12645
12646fi
12647if test -n "$PKG_CONFIG"; then
12648 _pkg_min_version=0.9.0
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12650$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12651 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12653$as_echo "yes" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
12657 PKG_CONFIG=""
12658 fi
12659
12660fi
12661
d6ce1786 12662elif test "x$PYTHON" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
feec80c3
C
12663 # checking for ocamllex
12664 if test -n "$ac_tool_prefix"; then
12665 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
12666set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668$as_echo_n "checking for $ac_word... " >&6; }
12669if ${ac_cv_path_OCAMLLEX+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671else
12672 case $OCAMLLEX in
12673 [\\/]* | ?:[\\/]*)
12674 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
12675 ;;
12676 *)
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678for as_dir in $PATH
12679do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12684 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12687 fi
12688done
12689 done
12690IFS=$as_save_IFS
12691
12692 ;;
12693esac
12694fi
12695OCAMLLEX=$ac_cv_path_OCAMLLEX
12696if test -n "$OCAMLLEX"; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12698$as_echo "$OCAMLLEX" >&6; }
12699else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; }
12702fi
12703
12704
12705fi
12706if test -z "$ac_cv_path_OCAMLLEX"; then
12707 ac_pt_OCAMLLEX=$OCAMLLEX
12708 # Extract the first word of "ocamllex", so it can be a program name with args.
12709set dummy ocamllex; ac_word=$2
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711$as_echo_n "checking for $ac_word... " >&6; }
12712if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714else
12715 case $ac_pt_OCAMLLEX in
12716 [\\/]* | ?:[\\/]*)
12717 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12718 ;;
12719 *)
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721for as_dir in $PATH
12722do
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 break 2
12730 fi
12731done
12732 done
12733IFS=$as_save_IFS
12734
12735 ;;
12736esac
12737fi
12738ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12739if test -n "$ac_pt_OCAMLLEX"; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12741$as_echo "$ac_pt_OCAMLLEX" >&6; }
12742else
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744$as_echo "no" >&6; }
12745fi
12746
12747 if test "x$ac_pt_OCAMLLEX" = x; then
12748 OCAMLLEX="no"
12749 else
12750 case $cross_compiling:$ac_tool_warned in
12751yes:)
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12754ac_tool_warned=yes ;;
12755esac
12756 OCAMLLEX=$ac_pt_OCAMLLEX
12757 fi
12758else
12759 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12760fi
12761
12762 if test "$OCAMLLEX" != "no"; then
12763 if test -n "$ac_tool_prefix"; then
12764 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12765set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
12768if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770else
12771 case $OCAMLLEXDOTOPT in
12772 [\\/]* | ?:[\\/]*)
12773 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12774 ;;
12775 *)
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777for as_dir in $PATH
12778do
12779 IFS=$as_save_IFS
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785 break 2
12786 fi
12787done
12788 done
12789IFS=$as_save_IFS
12790
12791 ;;
12792esac
12793fi
12794OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12795if test -n "$OCAMLLEXDOTOPT"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12797$as_echo "$OCAMLLEXDOTOPT" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803
12804fi
12805if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12806 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12807 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12808set dummy ocamllex.opt; ac_word=$2
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810$as_echo_n "checking for $ac_word... " >&6; }
12811if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 case $ac_pt_OCAMLLEXDOTOPT in
12815 [\\/]* | ?:[\\/]*)
12816 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12817 ;;
12818 *)
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820for as_dir in $PATH
12821do
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12826 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12829 fi
12830done
12831 done
12832IFS=$as_save_IFS
12833
12834 ;;
12835esac
12836fi
12837ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12838if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12840$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12847 OCAMLLEXDOTOPT="no"
12848 else
12849 case $cross_compiling:$ac_tool_warned in
12850yes:)
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12853ac_tool_warned=yes ;;
12854esac
12855 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12856 fi
12857else
12858 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12859fi
12860
12861 if test "$OCAMLLEXDOTOPT" != "no"; then
12862 OCAMLLEX=$OCAMLLEXDOTOPT
12863 fi
12864 fi
12865
12866
12867
d6ce1786 12868elif test "x$PYTHON" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
feec80c3
C
12869 if test -n "$ac_tool_prefix"; then
12870 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12871set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if ${ac_cv_path_OCAMLYACC+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876else
12877 case $OCAMLYACC in
12878 [\\/]* | ?:[\\/]*)
12879 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12880 ;;
12881 *)
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883for as_dir in $PATH
12884do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893done
12894 done
12895IFS=$as_save_IFS
12896
12897 ;;
12898esac
12899fi
12900OCAMLYACC=$ac_cv_path_OCAMLYACC
12901if test -n "$OCAMLYACC"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12903$as_echo "$OCAMLYACC" >&6; }
12904else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
12907fi
12908
12909
12910fi
12911if test -z "$ac_cv_path_OCAMLYACC"; then
12912 ac_pt_OCAMLYACC=$OCAMLYACC
12913 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12914set dummy ocamlyacc; ac_word=$2
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916$as_echo_n "checking for $ac_word... " >&6; }
12917if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919else
12920 case $ac_pt_OCAMLYACC in
12921 [\\/]* | ?:[\\/]*)
12922 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12923 ;;
12924 *)
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12935 fi
12936done
12937 done
12938IFS=$as_save_IFS
12939
12940 ;;
12941esac
12942fi
12943ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
12944if test -n "$ac_pt_OCAMLYACC"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
12946$as_echo "$ac_pt_OCAMLYACC" >&6; }
12947else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
12950fi
12951
12952 if test "x$ac_pt_OCAMLYACC" = x; then
12953 OCAMLYACC="no"
12954 else
12955 case $cross_compiling:$ac_tool_warned in
12956yes:)
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12959ac_tool_warned=yes ;;
12960esac
12961 OCAMLYACC=$ac_pt_OCAMLYACC
12962 fi
12963else
12964 OCAMLYACC="$ac_cv_path_OCAMLYACC"
12965fi
12966
12967
12968
12969
12970else
12971 if test -n "$ac_tool_prefix"; then
d6ce1786
C
12972 # Extract the first word of "${ac_tool_prefix}[$]PYTHON", so it can be a program name with args.
12973set dummy ${ac_tool_prefix}$PYTHON; ac_word=$2
feec80c3
C
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if ${ac_cv_path_PYTHON+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978else
12979 case $PYTHON in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12982 ;;
12983 *)
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995done
12996 done
12997IFS=$as_save_IFS
12998
12999 ;;
13000esac
13001fi
13002PYTHON=$ac_cv_path_PYTHON
13003if test -n "$PYTHON"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13005$as_echo "$PYTHON" >&6; }
13006else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008$as_echo "no" >&6; }
13009fi
13010
13011
13012fi
13013if test -z "$ac_cv_path_PYTHON"; then
13014 ac_pt_PYTHON=$PYTHON
d6ce1786
C
13015 # Extract the first word of "[$]PYTHON", so it can be a program name with args.
13016set dummy $PYTHON; ac_word=$2
feec80c3
C
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018$as_echo_n "checking for $ac_word... " >&6; }
13019if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021else
13022 case $ac_pt_PYTHON in
13023 [\\/]* | ?:[\\/]*)
13024 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
13025 ;;
13026 *)
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028for as_dir in $PATH
13029do
13030 IFS=$as_save_IFS
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13036 break 2
13037 fi
13038done
13039 done
13040IFS=$as_save_IFS
13041
13042 ;;
13043esac
13044fi
13045ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
13046if test -n "$ac_pt_PYTHON"; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
13048$as_echo "$ac_pt_PYTHON" >&6; }
13049else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051$as_echo "no" >&6; }
13052fi
13053
13054 if test "x$ac_pt_PYTHON" = x; then
13055 PYTHON=""
13056 else
13057 case $cross_compiling:$ac_tool_warned in
13058yes:)
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13061ac_tool_warned=yes ;;
13062esac
13063 PYTHON=$ac_pt_PYTHON
13064 fi
13065else
13066 PYTHON="$ac_cv_path_PYTHON"
13067fi
13068
13069
13070fi
13071
13072
13073fi
13074
13075 if test -z "$PYTHON" -o "x$PYTHON" = xno; then :
13076 if test "x$with_PYTHON" = xyes; then :
13077 as_fn_error $? "--with=python is given explicitly but not found" "$LINENO" 5
13078
13079fi
13080
13081 if test -n ""; then :
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: python not found. Trying substitute ." >&5
13083$as_echo "$as_me: python not found. Trying substitute ." >&6;}
13084 PYTHON=""
13085
13086 if test "xpython" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
13087
13088
13089if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13090 if test -n "$ac_tool_prefix"; then
13091 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13092set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094$as_echo_n "checking for $ac_word... " >&6; }
13095if ${ac_cv_path_PKG_CONFIG+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097else
13098 case $PKG_CONFIG in
13099 [\\/]* | ?:[\\/]*)
13100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13101 ;;
13102 *)
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114done
13115 done
13116IFS=$as_save_IFS
13117
13118 ;;
13119esac
13120fi
13121PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13122if test -n "$PKG_CONFIG"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13124$as_echo "$PKG_CONFIG" >&6; }
13125else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127$as_echo "no" >&6; }
13128fi
13129
13130
13131fi
13132if test -z "$ac_cv_path_PKG_CONFIG"; then
13133 ac_pt_PKG_CONFIG=$PKG_CONFIG
13134 # Extract the first word of "pkg-config", so it can be a program name with args.
13135set dummy pkg-config; ac_word=$2
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137$as_echo_n "checking for $ac_word... " >&6; }
13138if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140else
13141 case $ac_pt_PKG_CONFIG in
13142 [\\/]* | ?:[\\/]*)
13143 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13144 ;;
13145 *)
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147for as_dir in $PATH
13148do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157done
13158 done
13159IFS=$as_save_IFS
13160
13161 ;;
13162esac
13163fi
13164ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13165if test -n "$ac_pt_PKG_CONFIG"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13167$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13168else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173 if test "x$ac_pt_PKG_CONFIG" = x; then
13174 PKG_CONFIG=""
13175 else
13176 case $cross_compiling:$ac_tool_warned in
13177yes:)
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13180ac_tool_warned=yes ;;
13181esac
13182 PKG_CONFIG=$ac_pt_PKG_CONFIG
13183 fi
13184else
13185 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13186fi
13187
13188fi
13189if test -n "$PKG_CONFIG"; then
13190 _pkg_min_version=0.9.0
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13192$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13193 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13195$as_echo "yes" >&6; }
13196 else
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
13199 PKG_CONFIG=""
13200 fi
13201
13202fi
13203
13204elif test "xpython" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
13205 # checking for ocamllex
13206 if test -n "$ac_tool_prefix"; then
13207 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13208set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210$as_echo_n "checking for $ac_word... " >&6; }
13211if ${ac_cv_path_OCAMLLEX+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213else
13214 case $OCAMLLEX in
13215 [\\/]* | ?:[\\/]*)
13216 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13217 ;;
13218 *)
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230done
13231 done
13232IFS=$as_save_IFS
13233
13234 ;;
13235esac
13236fi
13237OCAMLLEX=$ac_cv_path_OCAMLLEX
13238if test -n "$OCAMLLEX"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
13240$as_echo "$OCAMLLEX" >&6; }
13241else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246
13247fi
13248if test -z "$ac_cv_path_OCAMLLEX"; then
13249 ac_pt_OCAMLLEX=$OCAMLLEX
13250 # Extract the first word of "ocamllex", so it can be a program name with args.
13251set dummy ocamllex; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
13254if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256else
13257 case $ac_pt_OCAMLLEX in
13258 [\\/]* | ?:[\\/]*)
13259 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
13260 ;;
13261 *)
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263for as_dir in $PATH
13264do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273done
13274 done
13275IFS=$as_save_IFS
13276
13277 ;;
13278esac
13279fi
13280ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
13281if test -n "$ac_pt_OCAMLLEX"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
13283$as_echo "$ac_pt_OCAMLLEX" >&6; }
13284else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
13287fi
13288
13289 if test "x$ac_pt_OCAMLLEX" = x; then
13290 OCAMLLEX="no"
13291 else
13292 case $cross_compiling:$ac_tool_warned in
13293yes:)
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296ac_tool_warned=yes ;;
13297esac
13298 OCAMLLEX=$ac_pt_OCAMLLEX
13299 fi
13300else
13301 OCAMLLEX="$ac_cv_path_OCAMLLEX"
13302fi
13303
13304 if test "$OCAMLLEX" != "no"; then
13305 if test -n "$ac_tool_prefix"; then
13306 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
13307set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309$as_echo_n "checking for $ac_word... " >&6; }
13310if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312else
13313 case $OCAMLLEXDOTOPT in
13314 [\\/]* | ?:[\\/]*)
13315 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
13316 ;;
13317 *)
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329done
13330 done
13331IFS=$as_save_IFS
13332
13333 ;;
13334esac
13335fi
13336OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
13337if test -n "$OCAMLLEXDOTOPT"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
13339$as_echo "$OCAMLLEXDOTOPT" >&6; }
13340else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
13343fi
13344
13345
13346fi
13347if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
13348 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
13349 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
13350set dummy ocamllex.opt; ac_word=$2
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352$as_echo_n "checking for $ac_word... " >&6; }
13353if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355else
13356 case $ac_pt_OCAMLLEXDOTOPT in
13357 [\\/]* | ?:[\\/]*)
13358 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
13359 ;;
13360 *)
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13368 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370 break 2
13371 fi
13372done
13373 done
13374IFS=$as_save_IFS
13375
13376 ;;
13377esac
13378fi
13379ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
13380if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
13382$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
13383else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385$as_echo "no" >&6; }
13386fi
13387
13388 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
13389 OCAMLLEXDOTOPT="no"
13390 else
13391 case $cross_compiling:$ac_tool_warned in
13392yes:)
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13395ac_tool_warned=yes ;;
13396esac
13397 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
13398 fi
13399else
13400 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
13401fi
13402
13403 if test "$OCAMLLEXDOTOPT" != "no"; then
13404 OCAMLLEX=$OCAMLLEXDOTOPT
13405 fi
13406 fi
13407
13408
13409
13410elif test "xpython" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
13411 if test -n "$ac_tool_prefix"; then
13412 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
13413set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415$as_echo_n "checking for $ac_word... " >&6; }
13416if ${ac_cv_path_OCAMLYACC+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418else
13419 case $OCAMLYACC in
13420 [\\/]* | ?:[\\/]*)
13421 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
13422 ;;
13423 *)
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435done
13436 done
13437IFS=$as_save_IFS
13438
13439 ;;
13440esac
13441fi
13442OCAMLYACC=$ac_cv_path_OCAMLYACC
13443if test -n "$OCAMLYACC"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
13445$as_echo "$OCAMLYACC" >&6; }
13446else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451
13452fi
13453if test -z "$ac_cv_path_OCAMLYACC"; then
13454 ac_pt_OCAMLYACC=$OCAMLYACC
13455 # Extract the first word of "ocamlyacc", so it can be a program name with args.
13456set dummy ocamlyacc; ac_word=$2
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
13459if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461else
13462 case $ac_pt_OCAMLYACC in
13463 [\\/]* | ?:[\\/]*)
13464 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
13465 ;;
13466 *)
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468for as_dir in $PATH
13469do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13474 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 break 2
13477 fi
13478done
13479 done
13480IFS=$as_save_IFS
13481
13482 ;;
13483esac
13484fi
13485ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13486if test -n "$ac_pt_OCAMLYACC"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13488$as_echo "$ac_pt_OCAMLYACC" >&6; }
13489else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492fi
13493
13494 if test "x$ac_pt_OCAMLYACC" = x; then
13495 OCAMLYACC="no"
13496 else
13497 case $cross_compiling:$ac_tool_warned in
13498yes:)
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501ac_tool_warned=yes ;;
13502esac
13503 OCAMLYACC=$ac_pt_OCAMLYACC
13504 fi
13505else
13506 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13507fi
13508
13509
13510
13511
13512else
13513 if test -n "$ac_tool_prefix"; then
13514 # Extract the first word of "${ac_tool_prefix}python", so it can be a program name with args.
13515set dummy ${ac_tool_prefix}python; ac_word=$2
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517$as_echo_n "checking for $ac_word... " >&6; }
13518if ${ac_cv_path_PYTHON+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520else
13521 case $PYTHON in
13522 [\\/]* | ?:[\\/]*)
13523 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13524 ;;
13525 *)
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527for as_dir in $PATH
13528do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13533 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537done
13538 done
13539IFS=$as_save_IFS
13540
13541 ;;
13542esac
13543fi
13544PYTHON=$ac_cv_path_PYTHON
13545if test -n "$PYTHON"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13547$as_echo "$PYTHON" >&6; }
13548else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
13551fi
13552
13553
13554fi
13555if test -z "$ac_cv_path_PYTHON"; then
13556 ac_pt_PYTHON=$PYTHON
13557 # Extract the first word of "python", so it can be a program name with args.
13558set dummy python; ac_word=$2
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560$as_echo_n "checking for $ac_word... " >&6; }
13561if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563else
13564 case $ac_pt_PYTHON in
13565 [\\/]* | ?:[\\/]*)
13566 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
13567 ;;
13568 *)
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570for as_dir in $PATH
13571do
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13579 fi
13580done
13581 done
13582IFS=$as_save_IFS
13583
13584 ;;
13585esac
13586fi
13587ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
13588if test -n "$ac_pt_PYTHON"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
13590$as_echo "$ac_pt_PYTHON" >&6; }
13591else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
13594fi
13595
13596 if test "x$ac_pt_PYTHON" = x; then
13597 PYTHON=""
13598 else
13599 case $cross_compiling:$ac_tool_warned in
13600yes:)
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13603ac_tool_warned=yes ;;
13604esac
13605 PYTHON=$ac_pt_PYTHON
13606 fi
13607else
13608 PYTHON="$ac_cv_path_PYTHON"
13609fi
13610
13611
13612fi
13613
13614 SUBSTITUTED_PYTHON=yes
13615
13616
13617fi
13618
13619fi
13620
13621 if test -z "$PYTHON"; then :
13622 PYTHON=no
13623
13624fi
13625
13626
d6ce1786
C
13627 if test "x$PYTHON" = xno -a -z "$with_python"; then :
13628 for ac_prog in python python3 python3.2 python3.1 python2 python2.7 python2.6 python2.5
13629do
13630 # Extract the first word of "$ac_prog", so it can be a program name with args.
13631set dummy $ac_prog; ac_word=$2
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633$as_echo_n "checking for $ac_word... " >&6; }
13634if ${ac_cv_path_PYTHON+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636else
13637 case $PYTHON in
13638 [\\/]* | ?:[\\/]*)
13639 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13640 ;;
13641 *)
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643for as_dir in $PATH
13644do
13645 IFS=$as_save_IFS
13646 test -z "$as_dir" && as_dir=.
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13649 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13651 break 2
13652 fi
13653done
13654 done
13655IFS=$as_save_IFS
13656
13657 ;;
13658esac
13659fi
13660PYTHON=$ac_cv_path_PYTHON
13661if test -n "$PYTHON"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13663$as_echo "$PYTHON" >&6; }
13664else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666$as_echo "no" >&6; }
13667fi
13668
13669
13670 test -n "$PYTHON" && break
13671done
13672
13673 if test -z "$PYTHON"; then :
13674 PYTHON=no
13675
13676fi
13677
13678fi
13679
feec80c3 13680 if test "x$PYTHON" = xno -a -n "$with_python" -a "x$with_python" != xyes; then :
d6ce1786
C
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: $with_python is not a found as tool, therefore interpreted as version" >&5
13682$as_echo "$as_me: $with_python is not a found as tool, therefore interpreted as version" >&6;}
13683 PYVER="$with_python"
feec80c3
C
13684
13685
13686fi
13687
13688 if test "x$PYTHON" != xno; then :
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python version" >&5
13690$as_echo_n "checking python version... " >&6; }
13691 PYVER=`$PYTHON -c "import sys; print(sys.version[:3])"`
13692 if test -n "$PYVER"; then :
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER found" >&5
13694$as_echo "$PYVER found" >&6; }
13695else
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13697$as_echo "failed" >&6; }
13698fi
13699
13700
13701fi
13702
13703else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: python version assumed to be $PYVER" >&5
13705$as_echo "$as_me: python version assumed to be $PYVER" >&6;}
13706
13707fi
13708
d6ce1786
C
13709 PYVER_MAJOR=${PYVER%%.*}
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: python major version: $PYVER_MAJOR" >&5
13712$as_echo "$as_me: python major version: $PYVER_MAJOR" >&6;}
13713
feec80c3
C
13714
13715 if test -z "$PYVER"; then :
13716 if test "x$enable_python" = xyes; then :
13717 as_fn_error $? "python scripting is enabled explicitly but the version of python could not be determined" "$LINENO" 5
13718
13719fi
13720
13721else
d6ce1786
C
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for the corresponding python library" >&5
13723$as_echo "$as_me: looking for the corresponding python library" >&6;}
feec80c3
C
13724
13725pkg_failed=no
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
13727$as_echo_n "checking for PYTHON... " >&6; }
13728
13729if test -n "$PYTHON_CFLAGS"; then
13730 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
13731 elif test -n "$PKG_CONFIG"; then
13732 if test -n "$PKG_CONFIG" && \
13733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
13734 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
13735 ac_status=$?
13736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13737 test $ac_status = 0; }; then
13738 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYVER" 2>/dev/null`
13739else
13740 pkg_failed=yes
13741fi
13742 else
13743 pkg_failed=untried
13744fi
13745if test -n "$PYTHON_LIBS"; then
13746 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
13747 elif test -n "$PKG_CONFIG"; then
13748 if test -n "$PKG_CONFIG" && \
13749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
13750 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }; then
13754 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYVER" 2>/dev/null`
13755else
13756 pkg_failed=yes
13757fi
13758 else
13759 pkg_failed=untried
13760fi
13761
13762
13763
13764if test $pkg_failed = yes; then
13765
13766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13767 _pkg_short_errors_supported=yes
13768else
13769 _pkg_short_errors_supported=no
13770fi
13771 if test $_pkg_short_errors_supported = yes; then
13772 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python-$PYVER" 2>&1`
13773 else
13774 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python-$PYVER" 2>&1`
13775 fi
13776 # Put the nasty error message in config.log where it belongs
13777 echo "$PYTHON_PKG_ERRORS" >&5
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781 HAVE_PYTHON=no
13782
13783elif test $pkg_failed = untried; then
13784 HAVE_PYTHON=no
13785
13786else
13787 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
13788 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790$as_echo "yes" >&6; }
13791 HAVE_PYTHON=yes
13792
13793fi
13794
13795 if test "x$HAVE_PYTHON" != xyes -a "x$enable_python" != xyes; then :
d6ce1786
C
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: trying the default python library as fallback" >&5
13797$as_echo "$as_me: trying the default python library as fallback" >&6;}
feec80c3
C
13798
13799pkg_failed=no
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
13801$as_echo_n "checking for PYTHON... " >&6; }
13802
13803if test -n "$PYTHON_CFLAGS"; then
13804 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
13805 elif test -n "$PKG_CONFIG"; then
13806 if test -n "$PKG_CONFIG" && \
13807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
13808 ($PKG_CONFIG --exists --print-errors "python") 2>&5
13809 ac_status=$?
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13811 test $ac_status = 0; }; then
13812 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
13813else
13814 pkg_failed=yes
13815fi
13816 else
13817 pkg_failed=untried
13818fi
13819if test -n "$PYTHON_LIBS"; then
13820 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
13821 elif test -n "$PKG_CONFIG"; then
13822 if test -n "$PKG_CONFIG" && \
13823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
13824 ($PKG_CONFIG --exists --print-errors "python") 2>&5
13825 ac_status=$?
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; then
13828 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
13829else
13830 pkg_failed=yes
13831fi
13832 else
13833 pkg_failed=untried
13834fi
13835
13836
13837
13838if test $pkg_failed = yes; then
13839
13840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13841 _pkg_short_errors_supported=yes
13842else
13843 _pkg_short_errors_supported=no
13844fi
13845 if test $_pkg_short_errors_supported = yes; then
13846 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python" 2>&1`
13847 else
13848 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python" 2>&1`
13849 fi
13850 # Put the nasty error message in config.log where it belongs
13851 echo "$PYTHON_PKG_ERRORS" >&5
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
13855 HAVE_PYTHON=no
13856
13857elif test $pkg_failed = untried; then
13858 HAVE_PYTHON=no
13859
13860else
13861 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
13862 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13864$as_echo "yes" >&6; }
13865 HAVE_PYTHON=yes
13866
13867fi
13868
13869fi
13870
13871fi
13872
13873fi
13874
13875if test -z "$enable_python"; then :
13876 if test "x$HAVE_PYTHON" = xyes; then :
13877 enable_python=yes
13878
13879
13880else
13881 enable_python=no
13882
13883
13884fi
13885
13886fi
13887
13888if test "x$enable_python" != xno; then :
13889 if test "x$HAVE_PYTHON" = xyes; then :
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: support for python scripts is enabled" >&5
13891$as_echo "$as_me: support for python scripts is enabled" >&6;}
13892
13893else
13894 as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5
13895
13896fi
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pycaml" >&5
13899$as_echo "$as_me: configuring package pycaml" >&6;}
13900 # Check whether --enable-pycaml was given.
13901if test "${enable_pycaml+set}" = set; then :
13902 enableval=$enable_pycaml;
13903fi
13904
13905
13906 if test "x$enable_pycaml" != xno; then :
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pycaml" >&5
13909$as_echo_n "checking for OCaml findlib package pycaml... " >&6; }
13910
13911 unset found
13912 unset pkg
13913 found=no
13914 for pkg in pycaml ; do
13915 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13917$as_echo "found" >&6; }
13918 OCAML_PKG_pycaml=$pkg
13919 found=yes
13920 break
13921 fi
13922 done
13923 if test "$found" = "no" ; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13925$as_echo "not found" >&6; }
13926 OCAML_PKG_pycaml=no
13927 fi
13928
13929
13930
13931 if test "x$OCAML_PKG_pycaml" != xno; then :
13932 PATH_pycaml=`$OCAMLFIND query pycaml 2>/dev/null`
13933
13934
13935fi
13936
13937 GLOBAL_pycaml=$OCAML_PKG_pycaml
13938
13939
13940 if test "x$GLOBAL_pycaml" != xno; then :
13941 enable_pycaml=yes
13942
13943
13944else
13945 if test "x$enable_pycaml" = xyes; then :
13946 as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5
13947
13948fi
d6ce1786
C
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pycaml is not available" >&5
13950$as_echo "$as_me: OCaml package pycaml is not available" >&6;}
feec80c3
C
13951 enable_pycaml=no
13952
13953
13954fi
13955
13956fi
13957
13958 if test "x$enable_pycaml" = xno; then :
13959 { pkgdir=; unset pkgdir;}
13960 pkgdir="$COCCI_OCAML_EXTERNAL/pycaml/"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pycaml" >&5
13962$as_echo_n "checking for a bundled substitute of pycaml... " >&6; }
13963 if test -d "$pkgdir"; then :
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13965$as_echo "yes" >&6; }
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pycaml in $pkgdir" >&5
13967$as_echo "$as_me: using bundled substitute for pycaml in $pkgdir" >&6;}
13968 enable_pycaml=local
13969
13970 PATH_pycaml="$pkgdir"
13971
13972
13973else
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
13975$as_echo "not available" >&6; }
13976fi
13977
13978fi
13979
13980 if test "x$enable_pycaml" != xno; then :
13981 FEATURE_pycaml=1
13982
13983 FLAGS_pycaml='$(FLAGS_pycaml)'
13984
d6ce1786
C
13985 OPTFLAGS_pycaml='$(OPTFLAGS_pycaml)'
13986
feec80c3
C
13987
13988 if test "x$enable_pycaml" = xlocal; then :
13989 LOCALLIB_pycaml=1
13990
13991 MODULES_pycaml='$(LOCAL_pycaml)'
13992
13993 MODULESOPT_pycaml='$(LOCALOPT_pycaml)'
13994
13995
13996 if test -f "$PATH_pycaml/Makefile"; then :
13997 MAKE_pycaml=$PATH_pycaml
13998
13999
14000else
14001 MAKE_pycaml=
14002
14003
14004fi
14005
14006else
14007 MODULES_pycaml='$(GLOBAL_pycaml)'
14008
14009 MODULESOPT_pycaml='$(GLOBALOPT_pycaml)'
14010
14011
14012fi
14013
14014fi
14015
14016 if test "x$enable_pycaml" = xno; then :
14017 as_fn_error $? "OCaml package pycaml is required. Please make sure it is available." "$LINENO" 5
14018
14019fi
14020
14021 PYCOCCI_MODULE=Yes_pycocci
14022
14023 PYCOCCI_FILE=yes_pycocci.ml
14024
14025
14026else
14027 FEATURE_pycaml=0
14028
14029 LOCALLIB_pycaml=0
14030
14031 FLAGS_pycaml=
14032
14033 MODULES_pycaml=
14034
14035 MODULESOPT_pycaml=
14036
14037 PATH_pycaml=
14038
14039
14040 PYCOCCI_MODULE=No_pycocci
14041
14042 PYCOCCI_FILE=no_pycocci.ml
14043
14044
14045fi
14046
14047
14048# Check whether --enable-pcre-syntax was given.
14049if test "${enable_pcre_syntax+set}" = set; then :
14050 enableval=$enable_pcre_syntax;
14051fi
14052
14053if test "x$enable_pcre_syntax" != "xno"; then :
14054
14055pkg_failed=no
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
14057$as_echo_n "checking for PCRE... " >&6; }
14058
14059if test -n "$PCRE_CFLAGS"; then
14060 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
14061 elif test -n "$PKG_CONFIG"; then
14062 if test -n "$PKG_CONFIG" && \
14063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14064 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
14065 ac_status=$?
14066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14067 test $ac_status = 0; }; then
14068 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
14069else
14070 pkg_failed=yes
14071fi
14072 else
14073 pkg_failed=untried
14074fi
14075if test -n "$PCRE_LIBS"; then
14076 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
14077 elif test -n "$PKG_CONFIG"; then
14078 if test -n "$PKG_CONFIG" && \
14079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14080 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
14081 ac_status=$?
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083 test $ac_status = 0; }; then
14084 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
14085else
14086 pkg_failed=yes
14087fi
14088 else
14089 pkg_failed=untried
14090fi
14091
14092
14093
14094if test $pkg_failed = yes; then
14095
14096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097 _pkg_short_errors_supported=yes
14098else
14099 _pkg_short_errors_supported=no
14100fi
14101 if test $_pkg_short_errors_supported = yes; then
14102 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1`
14103 else
14104 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1`
14105 fi
14106 # Put the nasty error message in config.log where it belongs
14107 echo "$PCRE_PKG_ERRORS" >&5
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111 HAVE_PCRE=no
14112
14113elif test $pkg_failed = untried; then
14114 HAVE_PCRE=no
14115
14116else
14117 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
14118 PCRE_LIBS=$pkg_cv_PCRE_LIBS
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14120$as_echo "yes" >&6; }
14121 HAVE_PCRE=yes
14122
14123fi
14124 if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then :
14125 enable_pcre_syntax=no
14126
14127
14128else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pcre" >&5
14130$as_echo "$as_me: configuring package pcre" >&6;}
14131 # Check whether --enable-pcre was given.
14132if test "${enable_pcre+set}" = set; then :
14133 enableval=$enable_pcre;
14134fi
14135
14136
14137 if test "x$enable_pcre" != xno; then :
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pcre" >&5
14140$as_echo_n "checking for OCaml findlib package pcre... " >&6; }
14141
14142 unset found
14143 unset pkg
14144 found=no
14145 for pkg in pcre ; do
14146 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14148$as_echo "found" >&6; }
14149 OCAML_PKG_pcre=$pkg
14150 found=yes
14151 break
14152 fi
14153 done
14154 if test "$found" = "no" ; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14156$as_echo "not found" >&6; }
14157 OCAML_PKG_pcre=no
14158 fi
14159
14160
14161
14162 if test "x$OCAML_PKG_pcre" != xno; then :
14163 PATH_pcre=`$OCAMLFIND query pcre 2>/dev/null`
14164
14165
14166fi
14167
14168 GLOBAL_pcre=$OCAML_PKG_pcre
14169
14170
14171 if test "x$GLOBAL_pcre" != xno; then :
14172 enable_pcre=yes
14173
14174
14175else
14176 if test "x$enable_pcre" = xyes; then :
14177 as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5
14178
14179fi
d6ce1786
C
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pcre is not available" >&5
14181$as_echo "$as_me: OCaml package pcre is not available" >&6;}
feec80c3
C
14182 enable_pcre=no
14183
14184
14185fi
14186
14187fi
14188
14189 if test "x$enable_pcre" = xno; then :
14190 { pkgdir=; unset pkgdir;}
14191 pkgdir="$COCCI_OCAML_EXTERNAL/pcre/"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pcre" >&5
14193$as_echo_n "checking for a bundled substitute of pcre... " >&6; }
14194 if test -d "$pkgdir"; then :
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14196$as_echo "yes" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pcre in $pkgdir" >&5
14198$as_echo "$as_me: using bundled substitute for pcre in $pkgdir" >&6;}
14199 enable_pcre=local
14200
14201 PATH_pcre="$pkgdir"
14202
14203
14204else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
14206$as_echo "not available" >&6; }
14207fi
14208
14209fi
14210
14211 if test "x$enable_pcre" != xno; then :
14212 FEATURE_pcre=1
14213
14214 FLAGS_pcre='$(FLAGS_pcre)'
14215
d6ce1786
C
14216 OPTFLAGS_pcre='$(OPTFLAGS_pcre)'
14217
feec80c3
C
14218
14219 if test "x$enable_pcre" = xlocal; then :
14220 LOCALLIB_pcre=1
14221
14222 MODULES_pcre='$(LOCAL_pcre)'
14223
14224 MODULESOPT_pcre='$(LOCALOPT_pcre)'
14225
14226
14227 if test -f "$PATH_pcre/Makefile"; then :
14228 MAKE_pcre=$PATH_pcre
14229
14230
14231else
14232 MAKE_pcre=
14233
14234
14235fi
14236
14237else
14238 MODULES_pcre='$(GLOBAL_pcre)'
14239
14240 MODULESOPT_pcre='$(GLOBALOPT_pcre)'
14241
14242
14243fi
14244
14245fi
14246 enable_pcre_syntax=$enable_pcre
14247
14248fi
14249
14250fi
14251
14252if test "x$enable_pcre_syntax" != xno; then :
14253 if test "x$HAVE_PCRE" = xyes; then :
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: support for pcre syntax is enabled" >&5
14255$as_echo "$as_me: support for pcre syntax is enabled" >&6;}
14256
14257else
14258 as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5
14259
14260fi
14261
14262 REGEXP_MODULE=Regexp_pcre
14263
14264 REGEXP_FILE=regexp_pcre.ml
14265
14266
14267else
14268 FEATURE_pcre=0
14269
14270 LOCALLIB_pcre=0
14271
14272 FLAGS_pcre=
14273
14274 MODULES_pcre=
14275
14276 MODULESOPT_pcre=
14277
14278 PATH_pcre=
14279
14280
14281 REGEXP_MODULE=Regexp_str
14282
14283 REGEXP_FILE=regexp_str.ml
14284
14285
14286fi
14287
14288
14289cat >confcache <<\_ACEOF
14290# This file is a shell script that caches the results of configure
14291# tests run on this system so they can be shared between configure
14292# scripts and configure runs, see configure's option --config-cache.
14293# It is not useful on other systems. If it contains results you don't
14294# want to keep, you may remove or edit it.
14295#
14296# config.status only pays attention to the cache file if you give it
14297# the --recheck option to rerun configure.
14298#
14299# `ac_cv_env_foo' variables (set or unset) will be overridden when
14300# loading this file, other *unset* `ac_cv_foo' will be assigned the
14301# following values.
14302
14303_ACEOF
14304
14305# The following way of writing the cache mishandles newlines in values,
14306# but we know of no workaround that is simple, portable, and efficient.
14307# So, we kill variables containing newlines.
14308# Ultrix sh set writes to stderr and can't be redirected directly,
14309# and sets the high bit in the cache file unless we assign to the vars.
14310(
14311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14312 eval ac_val=\$$ac_var
14313 case $ac_val in #(
14314 *${as_nl}*)
14315 case $ac_var in #(
14316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14317$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14318 esac
14319 case $ac_var in #(
14320 _ | IFS | as_nl) ;; #(
14321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14322 *) { eval $ac_var=; unset $ac_var;} ;;
14323 esac ;;
14324 esac
14325 done
14326
14327 (set) 2>&1 |
14328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14329 *${as_nl}ac_space=\ *)
14330 # `set' does not quote correctly, so add quotes: double-quote
14331 # substitution turns \\\\ into \\, and sed turns \\ into \.
14332 sed -n \
14333 "s/'/'\\\\''/g;
14334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14335 ;; #(
14336 *)
14337 # `set' quotes correctly as required by POSIX, so do not add quotes.
14338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14339 ;;
14340 esac |
14341 sort
14342) |
14343 sed '
14344 /^ac_cv_env_/b end
14345 t clear
14346 :clear
14347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14348 t end
14349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14350 :end' >>confcache
14351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14352 if test -w "$cache_file"; then
14353 if test "x$cache_file" != "x/dev/null"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14355$as_echo "$as_me: updating cache $cache_file" >&6;}
14356 if test ! -f "$cache_file" || test -h "$cache_file"; then
14357 cat confcache >"$cache_file"
14358 else
14359 case $cache_file in #(
14360 */* | ?:*)
14361 mv -f confcache "$cache_file"$$ &&
14362 mv -f "$cache_file"$$ "$cache_file" ;; #(
14363 *)
14364 mv -f confcache "$cache_file" ;;
14365 esac
14366 fi
14367 fi
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14370$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14371 fi
14372fi
14373rm -f confcache
14374
14375
14376if test "$prefix" = "NONE"; then :
14377 prefix=$ac_default_prefix
14378fi
14379
14380
14381
14382SHAREDIR="${prefix}/share/coccinelle"
14383
14384
14385if test "x$enable_python" != xno; then :
14386 FEATURE_PYTHON=1
14387
14388
14389else
14390 FEATURE_PYTHON=0
14391
14392
14393fi
14394
14395if test "x$enable_ocaml" != xno; then :
14396 FEATURE_OCAML=1
14397
14398
14399else
14400 FEATURE_OCAML=0
14401
14402
14403fi
14404
d6ce1786 14405if test "x$OCAMLATLEAST311" = xyes -a "x$enable_ocaml" = xyes -a "x$OCAMLOPT" != xno; then :
feec80c3
C
14406 DYNLINK_IS_NATIVE=Dynlink.is_native
14407
14408
14409else
14410 DYNLINK_IS_NATIVE=false
14411
14412
14413fi
14414
14415
14416
14417# Check whether --with-pdflatex was given.
14418if test "${with_pdflatex+set}" = set; then :
14419 withval=$with_pdflatex;
14420fi
14421
14422 with_PDFLATEX="$with_pdflatex"
14423
feec80c3
C
14424 if test -n "$with_PDFLATEX" -a "x$with_PDFLATEX" != xno -a "x$with_PDFLATEX" != xyes; then :
14425 PDFLATEX="$with_PDFLATEX"
14426
14427
d6ce1786
C
14428else
14429 PDFLATEX="pdflatex"
14430
14431
feec80c3
C
14432fi
14433
d6ce1786
C
14434 if test "x$with_PDFLATEX" = xno; then :
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex is disabled explicitly" >&5
14436$as_echo "$as_me: pdflatex is disabled explicitly" >&6;}
14437 PDFLATEX=no
14438
14439
14440else
14441 if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
feec80c3
C
14442
14443
14444if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14445 if test -n "$ac_tool_prefix"; then
14446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14447set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449$as_echo_n "checking for $ac_word... " >&6; }
14450if ${ac_cv_path_PKG_CONFIG+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452else
14453 case $PKG_CONFIG in
14454 [\\/]* | ?:[\\/]*)
14455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14456 ;;
14457 *)
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459for as_dir in $PATH
14460do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469done
14470 done
14471IFS=$as_save_IFS
14472
14473 ;;
14474esac
14475fi
14476PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14477if test -n "$PKG_CONFIG"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14479$as_echo "$PKG_CONFIG" >&6; }
14480else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482$as_echo "no" >&6; }
14483fi
14484
14485
14486fi
14487if test -z "$ac_cv_path_PKG_CONFIG"; then
14488 ac_pt_PKG_CONFIG=$PKG_CONFIG
14489 # Extract the first word of "pkg-config", so it can be a program name with args.
14490set dummy pkg-config; ac_word=$2
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492$as_echo_n "checking for $ac_word... " >&6; }
14493if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495else
14496 case $ac_pt_PKG_CONFIG in
14497 [\\/]* | ?:[\\/]*)
14498 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14499 ;;
14500 *)
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502for as_dir in $PATH
14503do
14504 IFS=$as_save_IFS
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14508 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14510 break 2
14511 fi
14512done
14513 done
14514IFS=$as_save_IFS
14515
14516 ;;
14517esac
14518fi
14519ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14520if test -n "$ac_pt_PKG_CONFIG"; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14522$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14523else
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525$as_echo "no" >&6; }
14526fi
14527
14528 if test "x$ac_pt_PKG_CONFIG" = x; then
14529 PKG_CONFIG=""
14530 else
14531 case $cross_compiling:$ac_tool_warned in
14532yes:)
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14535ac_tool_warned=yes ;;
14536esac
14537 PKG_CONFIG=$ac_pt_PKG_CONFIG
14538 fi
14539else
14540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14541fi
14542
14543fi
14544if test -n "$PKG_CONFIG"; then
14545 _pkg_min_version=0.9.0
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14547$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14548 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550$as_echo "yes" >&6; }
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553$as_echo "no" >&6; }
14554 PKG_CONFIG=""
14555 fi
14556
14557fi
14558
d6ce1786 14559elif test "x$PDFLATEX" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
feec80c3
C
14560 # checking for ocamllex
14561 if test -n "$ac_tool_prefix"; then
14562 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
14563set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565$as_echo_n "checking for $ac_word... " >&6; }
14566if ${ac_cv_path_OCAMLLEX+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568else
14569 case $OCAMLLEX in
14570 [\\/]* | ?:[\\/]*)
14571 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
14572 ;;
14573 *)
14574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575for as_dir in $PATH
14576do
14577 IFS=$as_save_IFS
14578 test -z "$as_dir" && as_dir=.
14579 for ac_exec_ext in '' $ac_executable_extensions; do
14580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14581 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14583 break 2
14584 fi
14585done
14586 done
14587IFS=$as_save_IFS
14588
14589 ;;
14590esac
14591fi
14592OCAMLLEX=$ac_cv_path_OCAMLLEX
14593if test -n "$OCAMLLEX"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
14595$as_echo "$OCAMLLEX" >&6; }
14596else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598$as_echo "no" >&6; }
14599fi
14600
14601
14602fi
14603if test -z "$ac_cv_path_OCAMLLEX"; then
14604 ac_pt_OCAMLLEX=$OCAMLLEX
14605 # Extract the first word of "ocamllex", so it can be a program name with args.
14606set dummy ocamllex; ac_word=$2
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608$as_echo_n "checking for $ac_word... " >&6; }
14609if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611else
14612 case $ac_pt_OCAMLLEX in
14613 [\\/]* | ?:[\\/]*)
14614 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
14615 ;;
14616 *)
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618for as_dir in $PATH
14619do
14620 IFS=$as_save_IFS
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14624 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14626 break 2
14627 fi
14628done
14629 done
14630IFS=$as_save_IFS
14631
14632 ;;
14633esac
14634fi
14635ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
14636if test -n "$ac_pt_OCAMLLEX"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
14638$as_echo "$ac_pt_OCAMLLEX" >&6; }
14639else
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641$as_echo "no" >&6; }
14642fi
14643
14644 if test "x$ac_pt_OCAMLLEX" = x; then
14645 OCAMLLEX="no"
14646 else
14647 case $cross_compiling:$ac_tool_warned in
14648yes:)
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14651ac_tool_warned=yes ;;
14652esac
14653 OCAMLLEX=$ac_pt_OCAMLLEX
14654 fi
14655else
14656 OCAMLLEX="$ac_cv_path_OCAMLLEX"
14657fi
14658
14659 if test "$OCAMLLEX" != "no"; then
14660 if test -n "$ac_tool_prefix"; then
14661 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
14662set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664$as_echo_n "checking for $ac_word... " >&6; }
14665if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667else
14668 case $OCAMLLEXDOTOPT in
14669 [\\/]* | ?:[\\/]*)
14670 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
14671 ;;
14672 *)
14673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14674for as_dir in $PATH
14675do
14676 IFS=$as_save_IFS
14677 test -z "$as_dir" && as_dir=.
14678 for ac_exec_ext in '' $ac_executable_extensions; do
14679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14680 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14682 break 2
14683 fi
14684done
14685 done
14686IFS=$as_save_IFS
14687
14688 ;;
14689esac
14690fi
14691OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
14692if test -n "$OCAMLLEXDOTOPT"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
14694$as_echo "$OCAMLLEXDOTOPT" >&6; }
14695else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697$as_echo "no" >&6; }
14698fi
14699
14700
14701fi
14702if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
14703 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
14704 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
14705set dummy ocamllex.opt; ac_word=$2
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14707$as_echo_n "checking for $ac_word... " >&6; }
14708if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710else
14711 case $ac_pt_OCAMLLEXDOTOPT in
14712 [\\/]* | ?:[\\/]*)
14713 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
14714 ;;
14715 *)
14716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14717for as_dir in $PATH
14718do
14719 IFS=$as_save_IFS
14720 test -z "$as_dir" && as_dir=.
14721 for ac_exec_ext in '' $ac_executable_extensions; do
14722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14723 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14725 break 2
14726 fi
14727done
14728 done
14729IFS=$as_save_IFS
14730
14731 ;;
14732esac
14733fi
14734ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14735if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14737$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14738else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740$as_echo "no" >&6; }
14741fi
14742
14743 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14744 OCAMLLEXDOTOPT="no"
14745 else
14746 case $cross_compiling:$ac_tool_warned in
14747yes:)
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14750ac_tool_warned=yes ;;
14751esac
14752 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14753 fi
14754else
14755 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14756fi
14757
14758 if test "$OCAMLLEXDOTOPT" != "no"; then
14759 OCAMLLEX=$OCAMLLEXDOTOPT
14760 fi
14761 fi
14762
14763
14764
d6ce1786 14765elif test "x$PDFLATEX" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
feec80c3
C
14766 if test -n "$ac_tool_prefix"; then
14767 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14768set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14770$as_echo_n "checking for $ac_word... " >&6; }
14771if ${ac_cv_path_OCAMLYACC+:} false; then :
14772 $as_echo_n "(cached) " >&6
14773else
14774 case $OCAMLYACC in
14775 [\\/]* | ?:[\\/]*)
14776 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14777 ;;
14778 *)
14779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14780for as_dir in $PATH
14781do
14782 IFS=$as_save_IFS
14783 test -z "$as_dir" && as_dir=.
14784 for ac_exec_ext in '' $ac_executable_extensions; do
14785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14786 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14788 break 2
14789 fi
14790done
14791 done
14792IFS=$as_save_IFS
14793
14794 ;;
14795esac
14796fi
14797OCAMLYACC=$ac_cv_path_OCAMLYACC
14798if test -n "$OCAMLYACC"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14800$as_echo "$OCAMLYACC" >&6; }
14801else
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803$as_echo "no" >&6; }
14804fi
14805
14806
14807fi
14808if test -z "$ac_cv_path_OCAMLYACC"; then
14809 ac_pt_OCAMLYACC=$OCAMLYACC
14810 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14811set dummy ocamlyacc; ac_word=$2
14812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14813$as_echo_n "checking for $ac_word... " >&6; }
14814if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816else
14817 case $ac_pt_OCAMLYACC in
14818 [\\/]* | ?:[\\/]*)
14819 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14820 ;;
14821 *)
14822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823for as_dir in $PATH
14824do
14825 IFS=$as_save_IFS
14826 test -z "$as_dir" && as_dir=.
14827 for ac_exec_ext in '' $ac_executable_extensions; do
14828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14829 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14831 break 2
14832 fi
14833done
14834 done
14835IFS=$as_save_IFS
14836
14837 ;;
14838esac
14839fi
14840ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14841if test -n "$ac_pt_OCAMLYACC"; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14843$as_echo "$ac_pt_OCAMLYACC" >&6; }
14844else
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846$as_echo "no" >&6; }
14847fi
14848
14849 if test "x$ac_pt_OCAMLYACC" = x; then
14850 OCAMLYACC="no"
14851 else
14852 case $cross_compiling:$ac_tool_warned in
14853yes:)
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14856ac_tool_warned=yes ;;
14857esac
14858 OCAMLYACC=$ac_pt_OCAMLYACC
14859 fi
14860else
14861 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14862fi
14863
14864
14865
14866
14867else
14868 if test -n "$ac_tool_prefix"; then
d6ce1786
C
14869 # Extract the first word of "${ac_tool_prefix}[$]PDFLATEX", so it can be a program name with args.
14870set dummy ${ac_tool_prefix}$PDFLATEX; ac_word=$2
feec80c3
C
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872$as_echo_n "checking for $ac_word... " >&6; }
14873if ${ac_cv_path_PDFLATEX+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875else
14876 case $PDFLATEX in
14877 [\\/]* | ?:[\\/]*)
14878 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
14879 ;;
14880 *)
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882for as_dir in $PATH
14883do
14884 IFS=$as_save_IFS
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14888 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890 break 2
14891 fi
14892done
14893 done
14894IFS=$as_save_IFS
14895
14896 ;;
14897esac
14898fi
14899PDFLATEX=$ac_cv_path_PDFLATEX
14900if test -n "$PDFLATEX"; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
14902$as_echo "$PDFLATEX" >&6; }
14903else
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905$as_echo "no" >&6; }
14906fi
14907
14908
14909fi
14910if test -z "$ac_cv_path_PDFLATEX"; then
14911 ac_pt_PDFLATEX=$PDFLATEX
d6ce1786
C
14912 # Extract the first word of "[$]PDFLATEX", so it can be a program name with args.
14913set dummy $PDFLATEX; ac_word=$2
feec80c3
C
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14915$as_echo_n "checking for $ac_word... " >&6; }
14916if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
14917 $as_echo_n "(cached) " >&6
14918else
14919 case $ac_pt_PDFLATEX in
14920 [\\/]* | ?:[\\/]*)
14921 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
14922 ;;
14923 *)
14924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14925for as_dir in $PATH
14926do
14927 IFS=$as_save_IFS
14928 test -z "$as_dir" && as_dir=.
14929 for ac_exec_ext in '' $ac_executable_extensions; do
14930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14931 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
14932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14933 break 2
14934 fi
14935done
14936 done
14937IFS=$as_save_IFS
14938
14939 ;;
14940esac
14941fi
14942ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
14943if test -n "$ac_pt_PDFLATEX"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
14945$as_echo "$ac_pt_PDFLATEX" >&6; }
14946else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948$as_echo "no" >&6; }
14949fi
14950
14951 if test "x$ac_pt_PDFLATEX" = x; then
14952 PDFLATEX=""
14953 else
14954 case $cross_compiling:$ac_tool_warned in
14955yes:)
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14958ac_tool_warned=yes ;;
14959esac
14960 PDFLATEX=$ac_pt_PDFLATEX
14961 fi
14962else
14963 PDFLATEX="$ac_cv_path_PDFLATEX"
14964fi
14965
14966
14967fi
14968
14969
14970fi
14971
14972 if test -z "$PDFLATEX" -o "x$PDFLATEX" = xno; then :
14973 if test "x$with_PDFLATEX" = xyes; then :
14974 as_fn_error $? "--with=pdflatex is given explicitly but not found" "$LINENO" 5
14975
14976fi
14977
14978 if test -n "$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"; then :
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&5
14980$as_echo "$as_me: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&6;}
14981 PDFLATEX="$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"
14982
14983 if test "xpdflatex" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
14984
14985
14986if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14987 if test -n "$ac_tool_prefix"; then
14988 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14989set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14991$as_echo_n "checking for $ac_word... " >&6; }
14992if ${ac_cv_path_PKG_CONFIG+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994else
14995 case $PKG_CONFIG in
14996 [\\/]* | ?:[\\/]*)
14997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14998 ;;
14999 *)
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001for as_dir in $PATH
15002do
15003 IFS=$as_save_IFS
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15009 break 2
15010 fi
15011done
15012 done
15013IFS=$as_save_IFS
15014
15015 ;;
15016esac
15017fi
15018PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15019if test -n "$PKG_CONFIG"; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15021$as_echo "$PKG_CONFIG" >&6; }
15022else
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15024$as_echo "no" >&6; }
15025fi
15026
15027
15028fi
15029if test -z "$ac_cv_path_PKG_CONFIG"; then
15030 ac_pt_PKG_CONFIG=$PKG_CONFIG
15031 # Extract the first word of "pkg-config", so it can be a program name with args.
15032set dummy pkg-config; ac_word=$2
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034$as_echo_n "checking for $ac_word... " >&6; }
15035if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037else
15038 case $ac_pt_PKG_CONFIG in
15039 [\\/]* | ?:[\\/]*)
15040 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15041 ;;
15042 *)
15043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044for as_dir in $PATH
15045do
15046 IFS=$as_save_IFS
15047 test -z "$as_dir" && as_dir=.
15048 for ac_exec_ext in '' $ac_executable_extensions; do
15049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15050 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15052 break 2
15053 fi
15054done
15055 done
15056IFS=$as_save_IFS
15057
15058 ;;
15059esac
15060fi
15061ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15062if test -n "$ac_pt_PKG_CONFIG"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15064$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15065else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067$as_echo "no" >&6; }
15068fi
15069
15070 if test "x$ac_pt_PKG_CONFIG" = x; then
15071 PKG_CONFIG=""
15072 else
15073 case $cross_compiling:$ac_tool_warned in
15074yes:)
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15077ac_tool_warned=yes ;;
15078esac
15079 PKG_CONFIG=$ac_pt_PKG_CONFIG
15080 fi
15081else
15082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15083fi
15084
15085fi
15086if test -n "$PKG_CONFIG"; then
15087 _pkg_min_version=0.9.0
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15089$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15090 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092$as_echo "yes" >&6; }
15093 else
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095$as_echo "no" >&6; }
15096 PKG_CONFIG=""
15097 fi
15098
15099fi
15100
15101elif test "xpdflatex" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
15102 # checking for ocamllex
15103 if test -n "$ac_tool_prefix"; then
15104 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
15105set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
15106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15107$as_echo_n "checking for $ac_word... " >&6; }
15108if ${ac_cv_path_OCAMLLEX+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110else
15111 case $OCAMLLEX in
15112 [\\/]* | ?:[\\/]*)
15113 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
15114 ;;
15115 *)
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117for as_dir in $PATH
15118do
15119 IFS=$as_save_IFS
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15123 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15125 break 2
15126 fi
15127done
15128 done
15129IFS=$as_save_IFS
15130
15131 ;;
15132esac
15133fi
15134OCAMLLEX=$ac_cv_path_OCAMLLEX
15135if test -n "$OCAMLLEX"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
15137$as_echo "$OCAMLLEX" >&6; }
15138else
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15140$as_echo "no" >&6; }
15141fi
15142
15143
15144fi
15145if test -z "$ac_cv_path_OCAMLLEX"; then
15146 ac_pt_OCAMLLEX=$OCAMLLEX
15147 # Extract the first word of "ocamllex", so it can be a program name with args.
15148set dummy ocamllex; ac_word=$2
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15150$as_echo_n "checking for $ac_word... " >&6; }
15151if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153else
15154 case $ac_pt_OCAMLLEX in
15155 [\\/]* | ?:[\\/]*)
15156 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
15157 ;;
15158 *)
15159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160for as_dir in $PATH
15161do
15162 IFS=$as_save_IFS
15163 test -z "$as_dir" && as_dir=.
15164 for ac_exec_ext in '' $ac_executable_extensions; do
15165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15166 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15168 break 2
15169 fi
15170done
15171 done
15172IFS=$as_save_IFS
15173
15174 ;;
15175esac
15176fi
15177ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
15178if test -n "$ac_pt_OCAMLLEX"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
15180$as_echo "$ac_pt_OCAMLLEX" >&6; }
15181else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15183$as_echo "no" >&6; }
15184fi
15185
15186 if test "x$ac_pt_OCAMLLEX" = x; then
15187 OCAMLLEX="no"
15188 else
15189 case $cross_compiling:$ac_tool_warned in
15190yes:)
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15193ac_tool_warned=yes ;;
15194esac
15195 OCAMLLEX=$ac_pt_OCAMLLEX
15196 fi
15197else
15198 OCAMLLEX="$ac_cv_path_OCAMLLEX"
15199fi
15200
15201 if test "$OCAMLLEX" != "no"; then
15202 if test -n "$ac_tool_prefix"; then
15203 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
15204set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15206$as_echo_n "checking for $ac_word... " >&6; }
15207if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209else
15210 case $OCAMLLEXDOTOPT in
15211 [\\/]* | ?:[\\/]*)
15212 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
15213 ;;
15214 *)
15215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216for as_dir in $PATH
15217do
15218 IFS=$as_save_IFS
15219 test -z "$as_dir" && as_dir=.
15220 for ac_exec_ext in '' $ac_executable_extensions; do
15221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15222 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15224 break 2
15225 fi
15226done
15227 done
15228IFS=$as_save_IFS
15229
15230 ;;
15231esac
15232fi
15233OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
15234if test -n "$OCAMLLEXDOTOPT"; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
15236$as_echo "$OCAMLLEXDOTOPT" >&6; }
15237else
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239$as_echo "no" >&6; }
15240fi
15241
15242
15243fi
15244if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
15245 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
15246 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
15247set dummy ocamllex.opt; ac_word=$2
15248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249$as_echo_n "checking for $ac_word... " >&6; }
15250if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
15251 $as_echo_n "(cached) " >&6
15252else
15253 case $ac_pt_OCAMLLEXDOTOPT in
15254 [\\/]* | ?:[\\/]*)
15255 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
15256 ;;
15257 *)
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259for as_dir in $PATH
15260do
15261 IFS=$as_save_IFS
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15265 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15267 break 2
15268 fi
15269done
15270 done
15271IFS=$as_save_IFS
15272
15273 ;;
15274esac
15275fi
15276ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
15277if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
15279$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
15280else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282$as_echo "no" >&6; }
15283fi
15284
15285 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
15286 OCAMLLEXDOTOPT="no"
15287 else
15288 case $cross_compiling:$ac_tool_warned in
15289yes:)
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15292ac_tool_warned=yes ;;
15293esac
15294 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
15295 fi
15296else
15297 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
15298fi
15299
15300 if test "$OCAMLLEXDOTOPT" != "no"; then
15301 OCAMLLEX=$OCAMLLEXDOTOPT
15302 fi
15303 fi
15304
15305
15306
15307elif test "xpdflatex" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
15308 if test -n "$ac_tool_prefix"; then
15309 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
15310set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
15311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15312$as_echo_n "checking for $ac_word... " >&6; }
15313if ${ac_cv_path_OCAMLYACC+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315else
15316 case $OCAMLYACC in
15317 [\\/]* | ?:[\\/]*)
15318 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
15319 ;;
15320 *)
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322for as_dir in $PATH
15323do
15324 IFS=$as_save_IFS
15325 test -z "$as_dir" && as_dir=.
15326 for ac_exec_ext in '' $ac_executable_extensions; do
15327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15330 break 2
15331 fi
15332done
15333 done
15334IFS=$as_save_IFS
15335
15336 ;;
15337esac
15338fi
15339OCAMLYACC=$ac_cv_path_OCAMLYACC
15340if test -n "$OCAMLYACC"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
15342$as_echo "$OCAMLYACC" >&6; }
15343else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345$as_echo "no" >&6; }
15346fi
15347
15348
15349fi
15350if test -z "$ac_cv_path_OCAMLYACC"; then
15351 ac_pt_OCAMLYACC=$OCAMLYACC
15352 # Extract the first word of "ocamlyacc", so it can be a program name with args.
15353set dummy ocamlyacc; ac_word=$2
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355$as_echo_n "checking for $ac_word... " >&6; }
15356if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358else
15359 case $ac_pt_OCAMLYACC in
15360 [\\/]* | ?:[\\/]*)
15361 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
15362 ;;
15363 *)
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365for as_dir in $PATH
15366do
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15371 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15374 fi
15375done
15376 done
15377IFS=$as_save_IFS
15378
15379 ;;
15380esac
15381fi
15382ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
15383if test -n "$ac_pt_OCAMLYACC"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
15385$as_echo "$ac_pt_OCAMLYACC" >&6; }
15386else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388$as_echo "no" >&6; }
15389fi
15390
15391 if test "x$ac_pt_OCAMLYACC" = x; then
15392 OCAMLYACC="no"
15393 else
15394 case $cross_compiling:$ac_tool_warned in
15395yes:)
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15398ac_tool_warned=yes ;;
15399esac
15400 OCAMLYACC=$ac_pt_OCAMLYACC
15401 fi
15402else
15403 OCAMLYACC="$ac_cv_path_OCAMLYACC"
15404fi
15405
15406
15407
15408
15409else
15410 if test -n "$ac_tool_prefix"; then
15411 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
15412set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414$as_echo_n "checking for $ac_word... " >&6; }
15415if ${ac_cv_path_PDFLATEX+:} false; then :
15416 $as_echo_n "(cached) " >&6
15417else
15418 case $PDFLATEX in
15419 [\\/]* | ?:[\\/]*)
15420 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
15421 ;;
15422 *)
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424for as_dir in $PATH
15425do
15426 IFS=$as_save_IFS
15427 test -z "$as_dir" && as_dir=.
15428 for ac_exec_ext in '' $ac_executable_extensions; do
15429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15430 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15432 break 2
15433 fi
15434done
15435 done
15436IFS=$as_save_IFS
15437
15438 ;;
15439esac
15440fi
15441PDFLATEX=$ac_cv_path_PDFLATEX
15442if test -n "$PDFLATEX"; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
15444$as_echo "$PDFLATEX" >&6; }
15445else
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447$as_echo "no" >&6; }
15448fi
15449
15450
15451fi
15452if test -z "$ac_cv_path_PDFLATEX"; then
15453 ac_pt_PDFLATEX=$PDFLATEX
15454 # Extract the first word of "pdflatex", so it can be a program name with args.
15455set dummy pdflatex; ac_word=$2
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15457$as_echo_n "checking for $ac_word... " >&6; }
15458if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460else
15461 case $ac_pt_PDFLATEX in
15462 [\\/]* | ?:[\\/]*)
15463 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
15464 ;;
15465 *)
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467for as_dir in $PATH
15468do
15469 IFS=$as_save_IFS
15470 test -z "$as_dir" && as_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
15472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15473 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15475 break 2
15476 fi
15477done
15478 done
15479IFS=$as_save_IFS
15480
15481 ;;
15482esac
15483fi
15484ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
15485if test -n "$ac_pt_PDFLATEX"; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
15487$as_echo "$ac_pt_PDFLATEX" >&6; }
15488else
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15490$as_echo "no" >&6; }
15491fi
15492
15493 if test "x$ac_pt_PDFLATEX" = x; then
15494 PDFLATEX=""
15495 else
15496 case $cross_compiling:$ac_tool_warned in
15497yes:)
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15500ac_tool_warned=yes ;;
15501esac
15502 PDFLATEX=$ac_pt_PDFLATEX
15503 fi
15504else
15505 PDFLATEX="$ac_cv_path_PDFLATEX"
15506fi
15507
15508
15509fi
15510
15511 SUBSTITUTED_PDFLATEX=yes
15512
15513
15514fi
15515
15516fi
15517
15518 if test -z "$PDFLATEX"; then :
15519 PDFLATEX=no
15520
15521fi
15522
15523
15524
feec80c3
C
15525# Check whether --enable-release was given.
15526if test "${enable_release+set}" = set; then :
15527 enableval=$enable_release;
15528fi
15529
feec80c3
C
15530if test -z "$enable_release"; then :
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&5
15532$as_echo "$as_me: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&6;}
15533 enable_release=no
15534
15535
15536fi
15537
15538if test "x$enable_release" = xyes; then :
15539 MAKETARGET_ALL=all-release
15540
15541
15542elif test "x$enable_release" = xno; then :
15543 MAKETARGET_ALL=all-dev
15544
15545
15546else
15547 MAKETARGET_ALL="$enable_release"
15548
15549
15550fi
15551
d6ce1786
C
15552# Check whether --enable-opt was given.
15553if test "${enable_opt+set}" = set; then :
15554 enableval=$enable_opt;
15555fi
15556
15557if test "x$OCAMLOPT" = xno -a "x$enable_opt" != xno; then :
15558 if test -n "$enable_release" -a "x$enable_release" != xyes -a "x$enable_release" != xno; then :
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&5
15560$as_echo "$as_me: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&6;}
15561
15562elif test "x$enable_opt" = xyes; then :
15563 as_fn_error $? "the optimized version of coccinelle is requested explicitly, but ocamlopt is absent" "$LINENO" 5
15564
feec80c3 15565else
d6ce1786
C
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build because ocamlopt is not present" >&5
15567$as_echo "$as_me: the optimized version of coccinelle will not be build because ocamlopt is not present" >&6;}
15568 enable_opt=no
15569
15570
15571fi
15572
15573fi
15574
15575if test "x$OCAMLVERSION" = x3.11.2 -a -z "$enable_opt"; then :
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&5
15577$as_echo "$as_me: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&6;}
15578 enable_opt=no
15579
15580
feec80c3
C
15581fi
15582
d6ce1786
C
15583if test "x$OPTIMIZED_dynlink" = xno -a "x$enable_ocaml" = xyes; then :
15584 if test -z "$enable_opt"; then :
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&5
15586$as_echo "$as_me: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&6;}
15587 enable_opt=no
15588
15589
15590elif test "x$enable_opt" = xyes; then :
15591 as_fn_error $? "the optimized version of coccinelle in combination with ocaml scripting requires the optimized version of the dynlik package, which is not present" "$LINENO" 5
15592
15593fi
feec80c3 15594
d6ce1786 15595fi
feec80c3 15596
d6ce1786
C
15597# set the default enable-opt setting
15598if test -z "$enable_opt"; then :
15599 if test "x$enable_release" = xyes -o "x$enable_release" = xno; then :
15600 enable_opt="$enable_release"
feec80c3 15601
feec80c3 15602
d6ce1786 15603fi
feec80c3 15604
d6ce1786 15605fi
feec80c3 15606
d6ce1786
C
15607if test "x$enable_opt" = xyes; then :
15608 SPATCHNAME=spatch.opt
feec80c3 15609
d6ce1786 15610 MAKETARGET_SPATCH=opt-only
feec80c3 15611
feec80c3 15612
d6ce1786
C
15613else
15614 SPATCHNAME=spatch
feec80c3 15615
d6ce1786
C
15616 MAKETARGET_SPATCH=byte-only
15617
15618
15619fi
15620
15621
15622
15623ac_config_files="$ac_config_files Makefile.config version.ml commons/commands.ml globals/config.ml globals/regexp.ml python/pycocci.ml ocaml/prepare_ocamlcocci.ml scripts/spatch.sh docs/spatch.1"
feec80c3
C
15624
15625
15626cat >confcache <<\_ACEOF
15627# This file is a shell script that caches the results of configure
15628# tests run on this system so they can be shared between configure
15629# scripts and configure runs, see configure's option --config-cache.
15630# It is not useful on other systems. If it contains results you don't
15631# want to keep, you may remove or edit it.
15632#
15633# config.status only pays attention to the cache file if you give it
15634# the --recheck option to rerun configure.
15635#
15636# `ac_cv_env_foo' variables (set or unset) will be overridden when
15637# loading this file, other *unset* `ac_cv_foo' will be assigned the
15638# following values.
15639
15640_ACEOF
15641
15642# The following way of writing the cache mishandles newlines in values,
15643# but we know of no workaround that is simple, portable, and efficient.
15644# So, we kill variables containing newlines.
15645# Ultrix sh set writes to stderr and can't be redirected directly,
15646# and sets the high bit in the cache file unless we assign to the vars.
15647(
15648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15649 eval ac_val=\$$ac_var
15650 case $ac_val in #(
15651 *${as_nl}*)
15652 case $ac_var in #(
15653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15654$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15655 esac
15656 case $ac_var in #(
15657 _ | IFS | as_nl) ;; #(
15658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15659 *) { eval $ac_var=; unset $ac_var;} ;;
15660 esac ;;
15661 esac
15662 done
15663
15664 (set) 2>&1 |
15665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15666 *${as_nl}ac_space=\ *)
15667 # `set' does not quote correctly, so add quotes: double-quote
15668 # substitution turns \\\\ into \\, and sed turns \\ into \.
15669 sed -n \
15670 "s/'/'\\\\''/g;
15671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15672 ;; #(
15673 *)
15674 # `set' quotes correctly as required by POSIX, so do not add quotes.
15675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15676 ;;
15677 esac |
15678 sort
15679) |
15680 sed '
15681 /^ac_cv_env_/b end
15682 t clear
15683 :clear
15684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15685 t end
15686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15687 :end' >>confcache
15688if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15689 if test -w "$cache_file"; then
15690 if test "x$cache_file" != "x/dev/null"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15692$as_echo "$as_me: updating cache $cache_file" >&6;}
15693 if test ! -f "$cache_file" || test -h "$cache_file"; then
15694 cat confcache >"$cache_file"
15695 else
15696 case $cache_file in #(
15697 */* | ?:*)
15698 mv -f confcache "$cache_file"$$ &&
15699 mv -f "$cache_file"$$ "$cache_file" ;; #(
15700 *)
15701 mv -f confcache "$cache_file" ;;
15702 esac
15703 fi
15704 fi
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15707$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15708 fi
15709fi
15710rm -f confcache
15711
15712test "x$prefix" = xNONE && prefix=$ac_default_prefix
15713# Let make expand exec_prefix.
15714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15715
15716# Transform confdefs.h into DEFS.
15717# Protect against shell expansion while executing Makefile rules.
15718# Protect against Makefile macro expansion.
15719#
15720# If the first sed substitution is executed (which looks for macros that
15721# take arguments), then branch to the quote section. Otherwise,
15722# look for a macro that doesn't take arguments.
15723ac_script='
15724:mline
15725/\\$/{
15726 N
15727 s,\\\n,,
15728 b mline
15729}
15730t clear
15731:clear
15732s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15733t quote
15734s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15735t quote
15736b any
15737:quote
15738s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15739s/\[/\\&/g
15740s/\]/\\&/g
15741s/\$/$$/g
15742H
15743:any
15744${
15745 g
15746 s/^\n//
15747 s/\n/ /g
15748 p
15749}
15750'
15751DEFS=`sed -n "$ac_script" confdefs.h`
15752
15753
15754ac_libobjs=
15755ac_ltlibobjs=
15756U=
15757for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15758 # 1. Remove the extension, and $U if already installed.
15759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15762 # will be set to the directory where LIBOBJS objects are built.
15763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15765done
15766LIBOBJS=$ac_libobjs
15767
15768LTLIBOBJS=$ac_ltlibobjs
15769
15770
15771
15772: "${CONFIG_STATUS=./config.status}"
15773ac_write_fail=0
15774ac_clean_files_save=$ac_clean_files
15775ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15777$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15778as_write_fail=0
15779cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15780#! $SHELL
15781# Generated by $as_me.
15782# Run this file to recreate the current configuration.
15783# Compiler output produced by configure, useful for debugging
15784# configure, is in config.log if it exists.
15785
15786debug=false
15787ac_cs_recheck=false
15788ac_cs_silent=false
15789
15790SHELL=\${CONFIG_SHELL-$SHELL}
15791export SHELL
15792_ASEOF
15793cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15794## -------------------- ##
15795## M4sh Initialization. ##
15796## -------------------- ##
15797
15798# Be more Bourne compatible
15799DUALCASE=1; export DUALCASE # for MKS sh
15800if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15801 emulate sh
15802 NULLCMD=:
15803 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15804 # is contrary to our usage. Disable this feature.
15805 alias -g '${1+"$@"}'='"$@"'
15806 setopt NO_GLOB_SUBST
15807else
15808 case `(set -o) 2>/dev/null` in #(
15809 *posix*) :
15810 set -o posix ;; #(
15811 *) :
15812 ;;
15813esac
15814fi
15815
15816
15817as_nl='
15818'
15819export as_nl
15820# Printing a long string crashes Solaris 7 /usr/bin/printf.
15821as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15822as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15824# Prefer a ksh shell builtin over an external printf program on Solaris,
15825# but without wasting forks for bash or zsh.
15826if test -z "$BASH_VERSION$ZSH_VERSION" \
15827 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15828 as_echo='print -r --'
15829 as_echo_n='print -rn --'
15830elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15831 as_echo='printf %s\n'
15832 as_echo_n='printf %s'
15833else
15834 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15835 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15836 as_echo_n='/usr/ucb/echo -n'
15837 else
15838 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15839 as_echo_n_body='eval
15840 arg=$1;
15841 case $arg in #(
15842 *"$as_nl"*)
15843 expr "X$arg" : "X\\(.*\\)$as_nl";
15844 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15845 esac;
15846 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15847 '
15848 export as_echo_n_body
15849 as_echo_n='sh -c $as_echo_n_body as_echo'
15850 fi
15851 export as_echo_body
15852 as_echo='sh -c $as_echo_body as_echo'
15853fi
15854
15855# The user is always right.
15856if test "${PATH_SEPARATOR+set}" != set; then
15857 PATH_SEPARATOR=:
15858 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15859 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15860 PATH_SEPARATOR=';'
15861 }
15862fi
15863
15864
15865# IFS
15866# We need space, tab and new line, in precisely that order. Quoting is
15867# there to prevent editors from complaining about space-tab.
15868# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15869# splitting by setting IFS to empty value.)
15870IFS=" "" $as_nl"
15871
15872# Find who we are. Look in the path if we contain no directory separator.
15873as_myself=
15874case $0 in #((
15875 *[\\/]* ) as_myself=$0 ;;
15876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877for as_dir in $PATH
15878do
15879 IFS=$as_save_IFS
15880 test -z "$as_dir" && as_dir=.
15881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15882 done
15883IFS=$as_save_IFS
15884
15885 ;;
15886esac
15887# We did not find ourselves, most probably we were run as `sh COMMAND'
15888# in which case we are not to be found in the path.
15889if test "x$as_myself" = x; then
15890 as_myself=$0
15891fi
15892if test ! -f "$as_myself"; then
15893 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15894 exit 1
15895fi
15896
15897# Unset variables that we do not need and which cause bugs (e.g. in
15898# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15899# suppresses any "Segmentation fault" message there. '((' could
15900# trigger a bug in pdksh 5.2.14.
15901for as_var in BASH_ENV ENV MAIL MAILPATH
15902do eval test x\${$as_var+set} = xset \
15903 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15904done
15905PS1='$ '
15906PS2='> '
15907PS4='+ '
15908
15909# NLS nuisances.
15910LC_ALL=C
15911export LC_ALL
15912LANGUAGE=C
15913export LANGUAGE
15914
15915# CDPATH.
15916(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15917
15918
15919# as_fn_error STATUS ERROR [LINENO LOG_FD]
15920# ----------------------------------------
15921# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15922# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15923# script with STATUS, using 1 if that was 0.
15924as_fn_error ()
15925{
15926 as_status=$1; test $as_status -eq 0 && as_status=1
15927 if test "$4"; then
15928 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15929 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15930 fi
15931 $as_echo "$as_me: error: $2" >&2
15932 as_fn_exit $as_status
15933} # as_fn_error
15934
15935
15936# as_fn_set_status STATUS
15937# -----------------------
15938# Set $? to STATUS, without forking.
15939as_fn_set_status ()
15940{
15941 return $1
15942} # as_fn_set_status
15943
15944# as_fn_exit STATUS
15945# -----------------
15946# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15947as_fn_exit ()
15948{
15949 set +e
15950 as_fn_set_status $1
15951 exit $1
15952} # as_fn_exit
15953
15954# as_fn_unset VAR
15955# ---------------
15956# Portably unset VAR.
15957as_fn_unset ()
15958{
15959 { eval $1=; unset $1;}
15960}
15961as_unset=as_fn_unset
15962# as_fn_append VAR VALUE
15963# ----------------------
15964# Append the text in VALUE to the end of the definition contained in VAR. Take
15965# advantage of any shell optimizations that allow amortized linear growth over
15966# repeated appends, instead of the typical quadratic growth present in naive
15967# implementations.
15968if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15969 eval 'as_fn_append ()
15970 {
15971 eval $1+=\$2
15972 }'
15973else
15974 as_fn_append ()
15975 {
15976 eval $1=\$$1\$2
15977 }
15978fi # as_fn_append
15979
15980# as_fn_arith ARG...
15981# ------------------
15982# Perform arithmetic evaluation on the ARGs, and store the result in the
15983# global $as_val. Take advantage of shells that can avoid forks. The arguments
15984# must be portable across $(()) and expr.
15985if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15986 eval 'as_fn_arith ()
15987 {
15988 as_val=$(( $* ))
15989 }'
15990else
15991 as_fn_arith ()
15992 {
15993 as_val=`expr "$@" || test $? -eq 1`
15994 }
15995fi # as_fn_arith
15996
15997
15998if expr a : '\(a\)' >/dev/null 2>&1 &&
15999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16000 as_expr=expr
16001else
16002 as_expr=false
16003fi
16004
16005if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16006 as_basename=basename
16007else
16008 as_basename=false
16009fi
16010
16011if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16012 as_dirname=dirname
16013else
16014 as_dirname=false
16015fi
16016
16017as_me=`$as_basename -- "$0" ||
16018$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16019 X"$0" : 'X\(//\)$' \| \
16020 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16021$as_echo X/"$0" |
16022 sed '/^.*\/\([^/][^/]*\)\/*$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\/\(\/\/\)$/{
16027 s//\1/
16028 q
16029 }
16030 /^X\/\(\/\).*/{
16031 s//\1/
16032 q
16033 }
16034 s/.*/./; q'`
16035
16036# Avoid depending upon Character Ranges.
16037as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16038as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16039as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16040as_cr_digits='0123456789'
16041as_cr_alnum=$as_cr_Letters$as_cr_digits
16042
16043ECHO_C= ECHO_N= ECHO_T=
16044case `echo -n x` in #(((((
16045-n*)
16046 case `echo 'xy\c'` in
16047 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16048 xy) ECHO_C='\c';;
16049 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16050 ECHO_T=' ';;
16051 esac;;
16052*)
16053 ECHO_N='-n';;
16054esac
16055
16056rm -f conf$$ conf$$.exe conf$$.file
16057if test -d conf$$.dir; then
16058 rm -f conf$$.dir/conf$$.file
16059else
16060 rm -f conf$$.dir
16061 mkdir conf$$.dir 2>/dev/null
16062fi
16063if (echo >conf$$.file) 2>/dev/null; then
16064 if ln -s conf$$.file conf$$ 2>/dev/null; then
16065 as_ln_s='ln -s'
16066 # ... but there are two gotchas:
16067 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16068 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16069 # In both cases, we have to default to `cp -p'.
16070 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16071 as_ln_s='cp -p'
16072 elif ln conf$$.file conf$$ 2>/dev/null; then
16073 as_ln_s=ln
16074 else
16075 as_ln_s='cp -p'
16076 fi
16077else
16078 as_ln_s='cp -p'
16079fi
16080rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16081rmdir conf$$.dir 2>/dev/null
16082
16083
16084# as_fn_mkdir_p
16085# -------------
16086# Create "$as_dir" as a directory, including parents if necessary.
16087as_fn_mkdir_p ()
16088{
16089
16090 case $as_dir in #(
16091 -*) as_dir=./$as_dir;;
16092 esac
16093 test -d "$as_dir" || eval $as_mkdir_p || {
16094 as_dirs=
16095 while :; do
16096 case $as_dir in #(
16097 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16098 *) as_qdir=$as_dir;;
16099 esac
16100 as_dirs="'$as_qdir' $as_dirs"
16101 as_dir=`$as_dirname -- "$as_dir" ||
16102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16103 X"$as_dir" : 'X\(//\)[^/]' \| \
16104 X"$as_dir" : 'X\(//\)$' \| \
16105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16106$as_echo X"$as_dir" |
16107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16108 s//\1/
16109 q
16110 }
16111 /^X\(\/\/\)[^/].*/{
16112 s//\1/
16113 q
16114 }
16115 /^X\(\/\/\)$/{
16116 s//\1/
16117 q
16118 }
16119 /^X\(\/\).*/{
16120 s//\1/
16121 q
16122 }
16123 s/.*/./; q'`
16124 test -d "$as_dir" && break
16125 done
16126 test -z "$as_dirs" || eval "mkdir $as_dirs"
16127 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16128
16129
16130} # as_fn_mkdir_p
16131if mkdir -p . 2>/dev/null; then
16132 as_mkdir_p='mkdir -p "$as_dir"'
16133else
16134 test -d ./-p && rmdir ./-p
16135 as_mkdir_p=false
16136fi
16137
16138if test -x / >/dev/null 2>&1; then
16139 as_test_x='test -x'
16140else
16141 if ls -dL / >/dev/null 2>&1; then
16142 as_ls_L_option=L
16143 else
16144 as_ls_L_option=
16145 fi
16146 as_test_x='
16147 eval sh -c '\''
16148 if test -d "$1"; then
16149 test -d "$1/.";
16150 else
16151 case $1 in #(
16152 -*)set "./$1";;
16153 esac;
16154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16155 ???[sx]*):;;*)false;;esac;fi
16156 '\'' sh
16157 '
16158fi
16159as_executable_p=$as_test_x
16160
16161# Sed expression to map a string onto a valid CPP name.
16162as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16163
16164# Sed expression to map a string onto a valid variable name.
16165as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16166
16167
16168exec 6>&1
16169## ----------------------------------- ##
16170## Main body of $CONFIG_STATUS script. ##
16171## ----------------------------------- ##
16172_ASEOF
16173test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16174
16175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16176# Save the log message, to keep $0 and so on meaningful, and to
16177# report actual input values of CONFIG_FILES etc. instead of their
16178# values after options handling.
16179ac_log="
d6ce1786 16180This file was extended by coccinelle $as_me 1.0.0-rc12, which was
feec80c3
C
16181generated by GNU Autoconf 2.68. Invocation command line was
16182
16183 CONFIG_FILES = $CONFIG_FILES
16184 CONFIG_HEADERS = $CONFIG_HEADERS
16185 CONFIG_LINKS = $CONFIG_LINKS
16186 CONFIG_COMMANDS = $CONFIG_COMMANDS
16187 $ $0 $@
16188
16189on `(hostname || uname -n) 2>/dev/null | sed 1q`
16190"
16191
16192_ACEOF
16193
16194case $ac_config_files in *"
16195"*) set x $ac_config_files; shift; ac_config_files=$*;;
16196esac
16197
16198
16199
16200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201# Files that config.status was made for.
16202config_files="$ac_config_files"
16203
16204_ACEOF
16205
16206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16207ac_cs_usage="\
16208\`$as_me' instantiates files and other configuration actions
16209from templates according to the current configuration. Unless the files
16210and actions are specified as TAGs, all are instantiated by default.
16211
16212Usage: $0 [OPTION]... [TAG]...
16213
16214 -h, --help print this help, then exit
16215 -V, --version print version number and configuration settings, then exit
16216 --config print configuration, then exit
16217 -q, --quiet, --silent
16218 do not print progress messages
16219 -d, --debug don't remove temporary files
16220 --recheck update $as_me by reconfiguring in the same conditions
16221 --file=FILE[:TEMPLATE]
16222 instantiate the configuration file FILE
16223
16224Configuration files:
16225$config_files
16226
16227Report bugs to <cocci@diku.dk>.
16228coccinelle home page: <http://coccinelle.lip6.fr/>."
16229
16230_ACEOF
16231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16233ac_cs_version="\\
d6ce1786 16234coccinelle config.status 1.0.0-rc12
feec80c3
C
16235configured by $0, generated by GNU Autoconf 2.68,
16236 with options \\"\$ac_cs_config\\"
16237
16238Copyright (C) 2010 Free Software Foundation, Inc.
16239This config.status script is free software; the Free Software Foundation
16240gives unlimited permission to copy, distribute and modify it."
16241
16242ac_pwd='$ac_pwd'
16243srcdir='$srcdir'
16244INSTALL='$INSTALL'
16245MKDIR_P='$MKDIR_P'
16246test -n "\$AWK" || AWK=awk
16247_ACEOF
16248
16249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250# The default lists apply if the user does not specify any file.
16251ac_need_defaults=:
16252while test $# != 0
16253do
16254 case $1 in
16255 --*=?*)
16256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16258 ac_shift=:
16259 ;;
16260 --*=)
16261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16262 ac_optarg=
16263 ac_shift=:
16264 ;;
16265 *)
16266 ac_option=$1
16267 ac_optarg=$2
16268 ac_shift=shift
16269 ;;
16270 esac
16271
16272 case $ac_option in
16273 # Handling of the options.
16274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16275 ac_cs_recheck=: ;;
16276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16277 $as_echo "$ac_cs_version"; exit ;;
16278 --config | --confi | --conf | --con | --co | --c )
16279 $as_echo "$ac_cs_config"; exit ;;
16280 --debug | --debu | --deb | --de | --d | -d )
16281 debug=: ;;
16282 --file | --fil | --fi | --f )
16283 $ac_shift
16284 case $ac_optarg in
16285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16286 '') as_fn_error $? "missing file argument" ;;
16287 esac
16288 as_fn_append CONFIG_FILES " '$ac_optarg'"
16289 ac_need_defaults=false;;
16290 --he | --h | --help | --hel | -h )
16291 $as_echo "$ac_cs_usage"; exit ;;
16292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16293 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16294 ac_cs_silent=: ;;
16295
16296 # This is an error.
16297 -*) as_fn_error $? "unrecognized option: \`$1'
16298Try \`$0 --help' for more information." ;;
16299
16300 *) as_fn_append ac_config_targets " $1"
16301 ac_need_defaults=false ;;
16302
16303 esac
16304 shift
16305done
16306
16307ac_configure_extra_args=
16308
16309if $ac_cs_silent; then
16310 exec 6>/dev/null
16311 ac_configure_extra_args="$ac_configure_extra_args --silent"
16312fi
16313
16314_ACEOF
16315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316if \$ac_cs_recheck; then
16317 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16318 shift
16319 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16320 CONFIG_SHELL='$SHELL'
16321 export CONFIG_SHELL
16322 exec "\$@"
16323fi
16324
16325_ACEOF
16326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327exec 5>>config.log
16328{
16329 echo
16330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16331## Running $as_me. ##
16332_ASBOX
16333 $as_echo "$ac_log"
16334} >&5
16335
16336_ACEOF
16337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16338_ACEOF
16339
16340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341
16342# Handling of arguments.
16343for ac_config_target in $ac_config_targets
16344do
16345 case $ac_config_target in
16346 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
16347 "version.ml") CONFIG_FILES="$CONFIG_FILES version.ml" ;;
16348 "commons/commands.ml") CONFIG_FILES="$CONFIG_FILES commons/commands.ml" ;;
16349 "globals/config.ml") CONFIG_FILES="$CONFIG_FILES globals/config.ml" ;;
16350 "globals/regexp.ml") CONFIG_FILES="$CONFIG_FILES globals/regexp.ml" ;;
16351 "python/pycocci.ml") CONFIG_FILES="$CONFIG_FILES python/pycocci.ml" ;;
16352 "ocaml/prepare_ocamlcocci.ml") CONFIG_FILES="$CONFIG_FILES ocaml/prepare_ocamlcocci.ml" ;;
16353 "scripts/spatch.sh") CONFIG_FILES="$CONFIG_FILES scripts/spatch.sh" ;;
16354 "docs/spatch.1") CONFIG_FILES="$CONFIG_FILES docs/spatch.1" ;;
16355
16356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16357 esac
16358done
16359
16360
16361# If the user did not use the arguments to specify the items to instantiate,
16362# then the envvar interface is used. Set only those that are not.
16363# We use the long form for the default assignment because of an extremely
16364# bizarre bug on SunOS 4.1.3.
16365if $ac_need_defaults; then
16366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16367fi
16368
16369# Have a temporary directory for convenience. Make it in the build tree
16370# simply because there is no reason against having it here, and in addition,
16371# creating and moving files from /tmp can sometimes cause problems.
16372# Hook for its removal unless debugging.
16373# Note that there is a small window in which the directory will not be cleaned:
16374# after its creation but before its name has been assigned to `$tmp'.
16375$debug ||
16376{
16377 tmp= ac_tmp=
16378 trap 'exit_status=$?
16379 : "${ac_tmp:=$tmp}"
16380 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16381' 0
16382 trap 'as_fn_exit 1' 1 2 13 15
16383}
16384# Create a (secure) tmp directory for tmp files.
16385
16386{
16387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16388 test -d "$tmp"
16389} ||
16390{
16391 tmp=./conf$$-$RANDOM
16392 (umask 077 && mkdir "$tmp")
16393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16394ac_tmp=$tmp
16395
16396# Set up the scripts for CONFIG_FILES section.
16397# No need to generate them if there are no CONFIG_FILES.
16398# This happens for instance with `./config.status config.h'.
16399if test -n "$CONFIG_FILES"; then
16400
16401
16402ac_cr=`echo X | tr X '\015'`
16403# On cygwin, bash can eat \r inside `` if the user requested igncr.
16404# But we know of no other shell where ac_cr would be empty at this
16405# point, so we can use a bashism as a fallback.
16406if test "x$ac_cr" = x; then
16407 eval ac_cr=\$\'\\r\'
16408fi
16409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16411 ac_cs_awk_cr='\\r'
16412else
16413 ac_cs_awk_cr=$ac_cr
16414fi
16415
16416echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16417_ACEOF
16418
16419
16420{
16421 echo "cat >conf$$subs.awk <<_ACEOF" &&
16422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16423 echo "_ACEOF"
16424} >conf$$subs.sh ||
16425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16427ac_delim='%!_!# '
16428for ac_last_try in false false false false false :; do
16429 . ./conf$$subs.sh ||
16430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16431
16432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16433 if test $ac_delim_n = $ac_delim_num; then
16434 break
16435 elif $ac_last_try; then
16436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16437 else
16438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16439 fi
16440done
16441rm -f conf$$subs.sh
16442
16443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16445_ACEOF
16446sed -n '
16447h
16448s/^/S["/; s/!.*/"]=/
16449p
16450g
16451s/^[^!]*!//
16452:repl
16453t repl
16454s/'"$ac_delim"'$//
16455t delim
16456:nl
16457h
16458s/\(.\{148\}\)..*/\1/
16459t more1
16460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16461p
16462n
16463b repl
16464:more1
16465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16466p
16467g
16468s/.\{148\}//
16469t nl
16470:delim
16471h
16472s/\(.\{148\}\)..*/\1/
16473t more2
16474s/["\\]/\\&/g; s/^/"/; s/$/"/
16475p
16476b
16477:more2
16478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16479p
16480g
16481s/.\{148\}//
16482t delim
16483' <conf$$subs.awk | sed '
16484/^[^""]/{
16485 N
16486 s/\n//
16487}
16488' >>$CONFIG_STATUS || ac_write_fail=1
16489rm -f conf$$subs.awk
16490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16491_ACAWK
16492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16493 for (key in S) S_is_set[key] = 1
16494 FS = "\a"
16495
16496}
16497{
16498 line = $ 0
16499 nfields = split(line, field, "@")
16500 substed = 0
16501 len = length(field[1])
16502 for (i = 2; i < nfields; i++) {
16503 key = field[i]
16504 keylen = length(key)
16505 if (S_is_set[key]) {
16506 value = S[key]
16507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16508 len += length(value) + length(field[++i])
16509 substed = 1
16510 } else
16511 len += 1 + keylen
16512 }
16513
16514 print line
16515}
16516
16517_ACAWK
16518_ACEOF
16519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16521 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16522else
16523 cat
16524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16525 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16526_ACEOF
16527
16528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16530# trailing colons and then remove the whole line if VPATH becomes empty
16531# (actually we leave an empty line to preserve line numbers).
16532if test "x$srcdir" = x.; then
16533 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16534h
16535s///
16536s/^/:/
16537s/[ ]*$/:/
16538s/:\$(srcdir):/:/g
16539s/:\${srcdir}:/:/g
16540s/:@srcdir@:/:/g
16541s/^:*//
16542s/:*$//
16543x
16544s/\(=[ ]*\).*/\1/
16545G
16546s/\n//
16547s/^[^=]*=[ ]*$//
16548}'
16549fi
16550
16551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552fi # test -n "$CONFIG_FILES"
16553
16554
16555eval set X " :F $CONFIG_FILES "
16556shift
16557for ac_tag
16558do
16559 case $ac_tag in
16560 :[FHLC]) ac_mode=$ac_tag; continue;;
16561 esac
16562 case $ac_mode$ac_tag in
16563 :[FHL]*:*);;
16564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16565 :[FH]-) ac_tag=-:-;;
16566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16567 esac
16568 ac_save_IFS=$IFS
16569 IFS=:
16570 set x $ac_tag
16571 IFS=$ac_save_IFS
16572 shift
16573 ac_file=$1
16574 shift
16575
16576 case $ac_mode in
16577 :L) ac_source=$1;;
16578 :[FH])
16579 ac_file_inputs=
16580 for ac_f
16581 do
16582 case $ac_f in
16583 -) ac_f="$ac_tmp/stdin";;
16584 *) # Look for the file first in the build tree, then in the source tree
16585 # (if the path is not absolute). The absolute path cannot be DOS-style,
16586 # because $ac_f cannot contain `:'.
16587 test -f "$ac_f" ||
16588 case $ac_f in
16589 [\\/$]*) false;;
16590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16591 esac ||
16592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16593 esac
16594 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16595 as_fn_append ac_file_inputs " '$ac_f'"
16596 done
16597
16598 # Let's still pretend it is `configure' which instantiates (i.e., don't
16599 # use $as_me), people would be surprised to read:
16600 # /* config.h. Generated by config.status. */
16601 configure_input='Generated from '`
16602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16603 `' by configure.'
16604 if test x"$ac_file" != x-; then
16605 configure_input="$ac_file. $configure_input"
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16607$as_echo "$as_me: creating $ac_file" >&6;}
16608 fi
16609 # Neutralize special characters interpreted by sed in replacement strings.
16610 case $configure_input in #(
16611 *\&* | *\|* | *\\* )
16612 ac_sed_conf_input=`$as_echo "$configure_input" |
16613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16614 *) ac_sed_conf_input=$configure_input;;
16615 esac
16616
16617 case $ac_tag in
16618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16620 esac
16621 ;;
16622 esac
16623
16624 ac_dir=`$as_dirname -- "$ac_file" ||
16625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626 X"$ac_file" : 'X\(//\)[^/]' \| \
16627 X"$ac_file" : 'X\(//\)$' \| \
16628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16629$as_echo X"$ac_file" |
16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16631 s//\1/
16632 q
16633 }
16634 /^X\(\/\/\)[^/].*/{
16635 s//\1/
16636 q
16637 }
16638 /^X\(\/\/\)$/{
16639 s//\1/
16640 q
16641 }
16642 /^X\(\/\).*/{
16643 s//\1/
16644 q
16645 }
16646 s/.*/./; q'`
16647 as_dir="$ac_dir"; as_fn_mkdir_p
16648 ac_builddir=.
16649
16650case "$ac_dir" in
16651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16652*)
16653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16654 # A ".." for each directory in $ac_dir_suffix.
16655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16656 case $ac_top_builddir_sub in
16657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16659 esac ;;
16660esac
16661ac_abs_top_builddir=$ac_pwd
16662ac_abs_builddir=$ac_pwd$ac_dir_suffix
16663# for backward compatibility:
16664ac_top_builddir=$ac_top_build_prefix
16665
16666case $srcdir in
16667 .) # We are building in place.
16668 ac_srcdir=.
16669 ac_top_srcdir=$ac_top_builddir_sub
16670 ac_abs_top_srcdir=$ac_pwd ;;
16671 [\\/]* | ?:[\\/]* ) # Absolute name.
16672 ac_srcdir=$srcdir$ac_dir_suffix;
16673 ac_top_srcdir=$srcdir
16674 ac_abs_top_srcdir=$srcdir ;;
16675 *) # Relative name.
16676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16677 ac_top_srcdir=$ac_top_build_prefix$srcdir
16678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16679esac
16680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16681
16682
16683 case $ac_mode in
16684 :F)
16685 #
16686 # CONFIG_FILE
16687 #
16688
16689 case $INSTALL in
16690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16692 esac
16693 ac_MKDIR_P=$MKDIR_P
16694 case $MKDIR_P in
16695 [\\/$]* | ?:[\\/]* ) ;;
16696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16697 esac
16698_ACEOF
16699
16700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701# If the template does not know about datarootdir, expand it.
16702# FIXME: This hack should be removed a few years after 2.60.
16703ac_datarootdir_hack=; ac_datarootdir_seen=
16704ac_sed_dataroot='
16705/datarootdir/ {
16706 p
16707 q
16708}
16709/@datadir@/p
16710/@docdir@/p
16711/@infodir@/p
16712/@localedir@/p
16713/@mandir@/p'
16714case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16715*datarootdir*) ac_datarootdir_seen=yes;;
16716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16718$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16719_ACEOF
16720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16721 ac_datarootdir_hack='
16722 s&@datadir@&$datadir&g
16723 s&@docdir@&$docdir&g
16724 s&@infodir@&$infodir&g
16725 s&@localedir@&$localedir&g
16726 s&@mandir@&$mandir&g
16727 s&\\\${datarootdir}&$datarootdir&g' ;;
16728esac
16729_ACEOF
16730
16731# Neutralize VPATH when `$srcdir' = `.'.
16732# Shell code in configure.ac might set extrasub.
16733# FIXME: do we really want to maintain this feature?
16734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735ac_sed_extra="$ac_vpsub
16736$extrasub
16737_ACEOF
16738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739:t
16740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16741s|@configure_input@|$ac_sed_conf_input|;t t
16742s&@top_builddir@&$ac_top_builddir_sub&;t t
16743s&@top_build_prefix@&$ac_top_build_prefix&;t t
16744s&@srcdir@&$ac_srcdir&;t t
16745s&@abs_srcdir@&$ac_abs_srcdir&;t t
16746s&@top_srcdir@&$ac_top_srcdir&;t t
16747s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16748s&@builddir@&$ac_builddir&;t t
16749s&@abs_builddir@&$ac_abs_builddir&;t t
16750s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16751s&@INSTALL@&$ac_INSTALL&;t t
16752s&@MKDIR_P@&$ac_MKDIR_P&;t t
16753$ac_datarootdir_hack
16754"
16755eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16757
16758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16761 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16763which seems to be undefined. Please make sure it is defined" >&5
16764$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16765which seems to be undefined. Please make sure it is defined" >&2;}
16766
16767 rm -f "$ac_tmp/stdin"
16768 case $ac_file in
16769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16771 esac \
16772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16773 ;;
16774
16775
16776
16777 esac
16778
16779done # for ac_tag
16780
16781
16782as_fn_exit 0
16783_ACEOF
16784ac_clean_files=$ac_clean_files_save
16785
16786test $ac_write_fail = 0 ||
16787 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16788
16789
16790# configure is writing to config.log, and then calls config.status.
16791# config.status does its own redirection, appending to config.log.
16792# Unfortunately, on DOS this fails, as config.log is still kept open
16793# by configure, so config.status won't be able to write to it; its
16794# output is simply discarded. So we exec the FD to /dev/null,
16795# effectively closing config.log, so it can be properly (re)opened and
16796# appended to by config.status. When coming back to configure, we
16797# need to make the FD available again.
16798if test "$no_create" != yes; then
16799 ac_cs_success=:
16800 ac_config_status_args=
16801 test "$silent" = yes &&
16802 ac_config_status_args="$ac_config_status_args --quiet"
16803 exec 5>/dev/null
16804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16805 exec 5>>config.log
16806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16807 # would make configure fail if this is the last instruction.
16808 $ac_cs_success || as_fn_exit 1
16809fi
16810if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16812$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16813fi
16814
16815
16816{ $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5
16817$as_echo "$as_me: configuration completed" >&6;}
16818
16819cat << EOF
16820------------------------------------------------------------------------------
16821Summary
16822
d6ce1786
C
16823configure flags: $CONFIGURE_FLAGS
16824findlib: $OCAMLFIND (an actual version is strongly recommended)
16825menhir: $MENHIR (should be an optional tool)
16826menhirLib module: $enable_mehir (for local package use --disable-menhirLib)
feec80c3 16827
d6ce1786
C
16828ocaml scripting: $enable_ocaml (overridable with --enable-ocaml)
16829python scripting: $enable_python (overridable with --enable-python)
16830pycaml module: $enable_pycaml (for local package use --disable-pycaml)
feec80c3 16831
d6ce1786
C
16832pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax)
16833pcre module: $enable_pcre (for local package use --disable-pcre)
16834pcre library: $HAVE_PCRE (requires the dev version of libpcre)
feec80c3 16835
d6ce1786
C
16836release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release)
16837optimized spatch: $enable_opt (overridable with --disable-opt)
feec80c3 16838
feec80c3
C
16839------------------------------------------------------------------------------
16840Coccinelle can now be compiled and installed.
16841
16842
16843If you compile coccinelle again after source code changes or
16844configuration changes, you may need to run first:
16845 \$ make clean
16846
16847To compile coccinelle, run:
16848 \$ make all
16849
16850To install coccinelle, run:
16851 \$ make install
16852
d6ce1786
C
16853Then, to test coccinelle, run for example:
16854 \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
16855
16856Or when coccinelle is not installed yet:
16857 \$ COCCINELLE_HOME=$(pwd) ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
feec80c3
C
16858EOF
16859
16860if test "x$enable_python" != "xno"; then
16861cat << EOF
16862------------------------------------------------------------------------------
16863You may need to set some environment variables so that the python
16864libraries are found. The frontend 'spatch' sets the following variables:
16865
16866 \$ export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib
16867 \$ export PYTHONPATH=\$PYTHONPATH:$prefix/share/coccinelle/python
16868
16869EOF
16870fi
ca417fcf 16871
feec80c3
C
16872cat << EOF
16873------------------------------------------------------------------------------
16874EOF