Commit | Line | Data |
---|---|---|
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 |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if 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 | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
978fd7e5 C |
36 | |
37 | ||
feec80c3 C |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_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. | |
47 | if 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 --' | |
51 | elif (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' | |
54 | else | |
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' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if 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 | 83 | fi |
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.) | |
91 | IFS=" "" $as_nl" | |
34e49164 | 92 | |
feec80c3 C |
93 | # Find who we are. Look in the path if we contain no directory separator. |
94 | as_myself= | |
95 | case $0 in #(( | |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
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 | |
104 | IFS=$as_save_IFS | |
0708f913 | 105 | |
feec80c3 C |
106 | ;; |
107 | esac | |
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. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
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. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
ca417fcf | 129 | |
feec80c3 C |
130 | # NLS nuisances. |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
90aeb998 | 135 | |
feec80c3 C |
136 | # CDPATH. |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
90aeb998 | 138 | |
feec80c3 C |
139 | if 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 | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
90aeb998 | 161 | |
feec80c3 C |
162 | exitcode=0 |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
90aeb998 | 168 | |
feec80c3 C |
169 | else |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test 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 | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
90aeb998 | 183 | |
feec80c3 C |
184 | else |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
186 | as_found=false | |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
188 | do | |
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 | |
202 | fi | |
203 | fi | |
204 | done;; | |
205 | esac | |
206 | as_found=false | |
207 | done | |
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 | |
211 | fi; } | |
212 | IFS=$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+"$@"} | |
231 | fi | |
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 | |
247 | fi | |
248 | fi | |
249 | fi | |
250 | SHELL=${CONFIG_SHELL-/bin/sh} | |
251 | export SHELL | |
252 | # Unset more variables known to interfere with behavior of common tools. | |
253 | CLICOLOR_FORCE= GREP_OPTIONS= | |
254 | unset CLICOLOR_FORCE GREP_OPTIONS | |
255 | ||
256 | ## --------------------- ## | |
257 | ## M4sh Shell Functions. ## | |
258 | ## --------------------- ## | |
259 | # as_fn_unset VAR | |
260 | # --------------- | |
261 | # Portably unset VAR. | |
262 | as_fn_unset () | |
263 | { | |
264 | { eval $1=; unset $1;} | |
993936c0 | 265 | } |
feec80c3 | 266 | as_unset=as_fn_unset |
993936c0 | 267 | |
feec80c3 C |
268 | # as_fn_set_status STATUS |
269 | # ----------------------- | |
270 | # Set $? to STATUS, without forking. | |
271 | as_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. | |
279 | as_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. | |
289 | as_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. | |
339 | if (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 | }' | |
344 | else | |
345 | as_fn_append () | |
346 | { | |
347 | eval $1=\$$1\$2 | |
348 | } | |
349 | fi # 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. | |
356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
357 | eval 'as_fn_arith () | |
358 | { | |
359 | as_val=$(( $* )) | |
360 | }' | |
361 | else | |
362 | as_fn_arith () | |
363 | { | |
364 | as_val=`expr "$@" || test $? -eq 1` | |
365 | } | |
366 | fi # 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. | |
374 | as_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 | ||
385 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
387 | as_expr=expr | |
388 | else | |
389 | as_expr=false | |
390 | fi | |
391 | ||
392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
393 | as_basename=basename | |
394 | else | |
395 | as_basename=false | |
396 | fi | |
397 | ||
398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
399 | as_dirname=dirname | |
400 | else | |
401 | as_dirname=false | |
402 | fi | |
403 | ||
404 | as_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. | |
424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
427 | as_cr_digits='0123456789' | |
428 | as_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 |
462 | ECHO_C= ECHO_N= ECHO_T= |
463 | case `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';; | |
473 | esac | |
97111a47 | 474 | |
feec80c3 C |
475 | rm -f conf$$ conf$$.exe conf$$.file |
476 | if test -d conf$$.dir; then | |
477 | rm -f conf$$.dir/conf$$.file | |
478 | else | |
479 | rm -f conf$$.dir | |
480 | mkdir conf$$.dir 2>/dev/null | |
481 | fi | |
482 | if (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 | |
496 | else | |
497 | as_ln_s='cp -p' | |
498 | fi | |
499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
500 | rmdir conf$$.dir 2>/dev/null | |
97111a47 | 501 | |
feec80c3 C |
502 | if mkdir -p . 2>/dev/null; then |
503 | as_mkdir_p='mkdir -p "$as_dir"' | |
504 | else | |
505 | test -d ./-p && rmdir ./-p | |
506 | as_mkdir_p=false | |
507 | fi | |
97111a47 | 508 | |
feec80c3 C |
509 | if test -x / >/dev/null 2>&1; then |
510 | as_test_x='test -x' | |
511 | else | |
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 | ' | |
529 | fi | |
530 | as_executable_p=$as_test_x | |
531 | ||
532 | # Sed expression to map a string onto a valid CPP name. | |
533 | as_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. | |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
537 | ||
538 | as_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 |
599 | test -n "$DJDIR" || exec 7<&0 </dev/null |
600 | exec 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. | |
605 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
606 | ||
607 | # | |
608 | # Initializations. | |
609 | # | |
610 | ac_default_prefix=/usr/local | |
611 | ac_clean_files= | |
612 | ac_config_libobj_dir=. | |
613 | LIBOBJS= | |
614 | cross_compiling=no | |
615 | subdirs= | |
616 | MFLAGS= | |
617 | MAKEFLAGS= | |
34e49164 | 618 | |
feec80c3 C |
619 | # Identity of this package. |
620 | PACKAGE_NAME='coccinelle' | |
621 | PACKAGE_TARNAME='coccinelle' | |
d6ce1786 C |
622 | PACKAGE_VERSION='1.0.0-rc12' |
623 | PACKAGE_STRING='coccinelle 1.0.0-rc12' | |
feec80c3 C |
624 | PACKAGE_BUGREPORT='cocci@diku.dk' |
625 | PACKAGE_URL='http://coccinelle.lip6.fr/' | |
34e49164 | 626 | |
feec80c3 C |
627 | ac_unique_file="cocci.ml" |
628 | ac_subst_vars='LTLIBOBJS | |
629 | LIBOBJS | |
d6ce1786 C |
630 | MAKETARGET_SPATCH |
631 | SPATCHNAME | |
632 | enable_opt | |
feec80c3 C |
633 | MAKETARGET_ALL |
634 | enable_release | |
635 | SUBSTITUTED_PDFLATEX | |
636 | with_PDFLATEX | |
637 | PDFLATEX | |
638 | DYNLINK_IS_NATIVE | |
639 | FEATURE_OCAML | |
640 | FEATURE_PYTHON | |
641 | SHAREDIR | |
642 | REGEXP_FILE | |
643 | REGEXP_MODULE | |
644 | MAKE_pcre | |
d6ce1786 | 645 | OPTFLAGS_pcre |
feec80c3 C |
646 | enable_pcre |
647 | GLOBAL_pcre | |
648 | OCAML_PKG_pcre | |
649 | enable_pcre_syntax | |
650 | HAVE_PCRE | |
651 | PCRE_LIBS | |
652 | PCRE_CFLAGS | |
653 | PYCOCCI_FILE | |
654 | PYCOCCI_MODULE | |
655 | MAKE_pycaml | |
d6ce1786 | 656 | OPTFLAGS_pycaml |
feec80c3 C |
657 | GLOBAL_pycaml |
658 | OCAML_PKG_pycaml | |
659 | enable_python | |
660 | HAVE_PYTHON | |
661 | PYTHON_LIBS | |
662 | PYTHON_CFLAGS | |
d6ce1786 | 663 | PYVER_MAJOR |
feec80c3 C |
664 | SUBSTITUTED_PYTHON |
665 | with_PYTHON | |
666 | enable_pycaml | |
667 | PYTHON | |
668 | OCAMLCOCCI_FILE | |
669 | OCAMLCOCCI_MODULE | |
670 | enable_ocaml | |
671 | SUBSTITUTED_MENHIR | |
672 | with_MENHIR | |
673 | MENHIR | |
d6ce1786 | 674 | OPTIMIZED_dynlink |
feec80c3 | 675 | MAKE_extlib |
d6ce1786 | 676 | OPTFLAGS_extlib |
feec80c3 C |
677 | enable_extlib |
678 | GLOBAL_extlib | |
679 | OCAML_PKG_extlib | |
680 | MAKE_menhirLib | |
d6ce1786 | 681 | OPTFLAGS_menhirLib |
feec80c3 C |
682 | enable_menhirLib |
683 | GLOBAL_menhirLib | |
684 | OCAML_PKG_menhirLib | |
685 | MAKE_sexplib | |
d6ce1786 | 686 | OPTFLAGS_sexplib |
feec80c3 C |
687 | enable_sexplib |
688 | GLOBAL_sexplib | |
689 | OCAML_PKG_sexplib | |
690 | MAKE_camlp4 | |
d6ce1786 | 691 | OPTFLAGS_camlp4 |
feec80c3 C |
692 | enable_camlp4 |
693 | GLOBAL_camlp4 | |
694 | OCAML_PKG_camlp4 | |
695 | MAKE_dynlink | |
d6ce1786 | 696 | OPTFLAGS_dynlink |
feec80c3 C |
697 | enable_dynlink |
698 | GLOBAL_dynlink | |
699 | OCAML_PKG_dynlink | |
700 | PATH_threads | |
701 | OCAML_PKG_threads | |
702 | PATH_str | |
703 | OCAML_PKG_str | |
704 | PATH_num | |
705 | OCAML_PKG_num | |
706 | PATH_bigarray | |
707 | OCAML_PKG_bigarray | |
708 | PATH_unix | |
709 | OCAML_PKG_unix | |
710 | PATH_camlp4 | |
711 | MODULESOPT_camlp4 | |
712 | MODULES_camlp4 | |
713 | FLAGS_camlp4 | |
714 | LOCALLIB_camlp4 | |
715 | FEATURE_camlp4 | |
716 | PATH_pycaml | |
717 | MODULESOPT_pycaml | |
718 | MODULES_pycaml | |
719 | FLAGS_pycaml | |
720 | LOCALLIB_pycaml | |
721 | FEATURE_pycaml | |
722 | PATH_pcre | |
723 | MODULESOPT_pcre | |
724 | MODULES_pcre | |
725 | FLAGS_pcre | |
726 | LOCALLIB_pcre | |
727 | FEATURE_pcre | |
728 | PATH_dynlink | |
729 | MODULESOPT_dynlink | |
730 | MODULES_dynlink | |
731 | FLAGS_dynlink | |
732 | LOCALLIB_dynlink | |
733 | FEATURE_dynlink | |
734 | PATH_extlib | |
735 | MODULESOPT_extlib | |
736 | MODULES_extlib | |
737 | FLAGS_extlib | |
738 | LOCALLIB_extlib | |
739 | FEATURE_extlib | |
740 | PATH_menhirLib | |
741 | MODULESOPT_menhirLib | |
742 | MODULES_menhirLib | |
743 | FLAGS_menhirLib | |
744 | LOCALLIB_menhirLib | |
745 | FEATURE_menhirLib | |
746 | PATH_sexplib | |
747 | MODULESOPT_sexplib | |
748 | MODULES_sexplib | |
749 | FLAGS_sexplib | |
750 | LOCALLIB_sexplib | |
751 | FEATURE_sexplib | |
752 | COCCI_OCAML_EXTERNAL | |
753 | RUNTIME_CAMLP4O_CMD | |
754 | RUNTIME_CAMLP4_CMD | |
755 | RUNTIME_OCAMLDEP_CMD | |
756 | RUNTIME_OCAMLOPT_CMD | |
757 | RUNTIME_OCAMLC_CMD | |
758 | RUNTIME_OCAMLFIND_CMD | |
759 | SUBSTITUTED_OCAMLFIND | |
760 | with_OCAMLFIND | |
761 | OCAMLFIND | |
762 | SUBSTITUTED_OCAMLYACC | |
763 | with_OCAMLYACC | |
764 | SUBSTITUTED_OCAMLLEX | |
765 | with_OCAMLLEX | |
766 | CAMLP4RF | |
767 | CAMLP4R | |
768 | CAMLP4PROF | |
769 | CAMLP4ORF | |
770 | CAMLP4OOF | |
771 | CAMLP4OF | |
772 | CAMLP4O | |
773 | CAMLP4BOOT | |
774 | CAMLP4 | |
775 | OCAMLATLEAST311 | |
776 | OCAMLATLEAST310 | |
777 | OCAMLBUILD | |
778 | OCAMLDOC | |
779 | OCAMLMKLIB | |
780 | OCAMLMKTOP | |
781 | OCAMLDEP | |
782 | OCAML | |
783 | OCAMLOPTDOTOPT | |
784 | OCAMLCDOTOPT | |
785 | OCAMLBEST | |
786 | OCAMLOPT | |
787 | OCAMLLIB | |
788 | OCAMLVERSION | |
789 | OCAMLC | |
790 | SUBSTITUTED_PKG_CONFIG | |
791 | OCAMLYACC | |
792 | OCAMLLEXDOTOPT | |
793 | OCAMLLEX | |
794 | with_PKG_CONFIG | |
795 | PKG_CONFIG | |
d6ce1786 | 796 | PATCHELF |
feec80c3 C |
797 | PATCH |
798 | TAR | |
799 | CPP | |
800 | OBJEXT | |
801 | EXEEXT | |
802 | ac_ct_CC | |
803 | CPPFLAGS | |
804 | LDFLAGS | |
805 | CFLAGS | |
806 | CC | |
807 | MKDIR_P | |
808 | INSTALL_DATA | |
809 | INSTALL_SCRIPT | |
810 | INSTALL_PROGRAM | |
811 | DATE | |
812 | GIT | |
813 | CONFVERSION | |
814 | COCCI_SRCDIR | |
815 | COCCI_VERSION | |
d6ce1786 | 816 | CONFIGURE_FLAGS |
feec80c3 C |
817 | target_alias |
818 | host_alias | |
819 | build_alias | |
820 | LIBS | |
821 | ECHO_T | |
822 | ECHO_N | |
823 | ECHO_C | |
824 | DEFS | |
825 | mandir | |
826 | localedir | |
827 | libdir | |
828 | psdir | |
829 | pdfdir | |
830 | dvidir | |
831 | htmldir | |
832 | infodir | |
833 | docdir | |
834 | oldincludedir | |
835 | includedir | |
836 | localstatedir | |
837 | sharedstatedir | |
838 | sysconfdir | |
839 | datadir | |
840 | datarootdir | |
841 | libexecdir | |
842 | sbindir | |
843 | bindir | |
844 | program_transform_name | |
845 | prefix | |
846 | exec_prefix | |
847 | PACKAGE_URL | |
848 | PACKAGE_BUGREPORT | |
849 | PACKAGE_STRING | |
850 | PACKAGE_VERSION | |
851 | PACKAGE_TARNAME | |
852 | PACKAGE_NAME | |
853 | PATH_SEPARATOR | |
854 | SHELL | |
855 | PYVER' | |
856 | ac_subst_files='' | |
857 | ac_user_opts=' | |
858 | enable_option_checking | |
859 | with_pkg_config | |
860 | with_ocamllex | |
861 | with_ocamlyacc | |
862 | with_ocamlfind | |
863 | with_runtime_ocamlfind | |
864 | with_runtime_ocamlc | |
865 | with_runtime_ocamlopt | |
866 | with_runtime_ocamldep | |
867 | with_runtime_camlp4 | |
868 | with_runtime_camlp4o | |
869 | enable_dynlink | |
870 | enable_camlp4 | |
871 | enable_sexplib | |
872 | enable_menhirLib | |
873 | enable_extlib | |
874 | with_menhir | |
875 | enable_ocaml | |
876 | enable_python | |
877 | with_python | |
878 | enable_pycaml | |
879 | enable_pcre_syntax | |
880 | enable_pcre | |
881 | with_pdflatex | |
882 | enable_release | |
d6ce1786 | 883 | enable_opt |
feec80c3 C |
884 | ' |
885 | ac_precious_vars='PYVER | |
886 | build_alias | |
887 | host_alias | |
888 | target_alias | |
889 | CC | |
890 | CFLAGS | |
891 | LDFLAGS | |
892 | LIBS | |
893 | CPPFLAGS | |
894 | CPP | |
895 | PKG_CONFIG | |
896 | OCAMLLEX | |
897 | OCAMLYACC | |
898 | OCAMLFIND | |
899 | RUNTIME_OCAMLFIND_CMD | |
900 | RUNTIME_OCAMLC_CMD | |
901 | RUNTIME_OCAMLOPT_CMD | |
902 | RUNTIME_OCAMLDEP_CMD | |
903 | RUNTIME_CAMLP4_CMD | |
904 | RUNTIME_CAMLP4O_CMD | |
905 | COCCI_OCAML_EXTERNAL | |
906 | MENHIR | |
907 | PYTHON | |
908 | PYTHON_CFLAGS | |
909 | PYTHON_LIBS | |
910 | PCRE_CFLAGS | |
911 | PCRE_LIBS | |
912 | PDFLATEX' | |
34e49164 | 913 | |
34e49164 | 914 | |
feec80c3 C |
915 | # Initialize some variables set by options. |
916 | ac_init_help= | |
917 | ac_init_version=false | |
918 | ac_unrecognized_opts= | |
919 | ac_unrecognized_sep= | |
920 | # The variables have the same names as the options, with | |
921 | # dashes changed to underlines. | |
922 | cache_file=/dev/null | |
923 | exec_prefix=NONE | |
924 | no_create= | |
925 | no_recursion= | |
926 | prefix=NONE | |
927 | program_prefix=NONE | |
928 | program_suffix=NONE | |
929 | program_transform_name=s,x,x, | |
930 | silent= | |
931 | site= | |
932 | srcdir= | |
933 | verbose= | |
934 | x_includes=NONE | |
935 | x_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.) | |
943 | bindir='${exec_prefix}/bin' | |
944 | sbindir='${exec_prefix}/sbin' | |
945 | libexecdir='${exec_prefix}/libexec' | |
946 | datarootdir='${prefix}/share' | |
947 | datadir='${datarootdir}' | |
948 | sysconfdir='${prefix}/etc' | |
949 | sharedstatedir='${prefix}/com' | |
950 | localstatedir='${prefix}/var' | |
951 | includedir='${prefix}/include' | |
952 | oldincludedir='/usr/include' | |
953 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
954 | infodir='${datarootdir}/info' | |
955 | htmldir='${docdir}' | |
956 | dvidir='${docdir}' | |
957 | pdfdir='${docdir}' | |
958 | psdir='${docdir}' | |
959 | libdir='${exec_prefix}/lib' | |
960 | localedir='${datarootdir}/locale' | |
961 | mandir='${datarootdir}/man' | |
34e49164 | 962 | |
feec80c3 C |
963 | ac_prev= |
964 | ac_dashdash= | |
965 | for ac_option | |
966 | do | |
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' | |
1299 | Try \`$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 | |
1321 | done | |
1322 | ||
1323 | if test -n "$ac_prev"; then | |
1324 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1325 | as_fn_error $? "missing argument to $ac_option" | |
1326 | fi | |
1327 | ||
1328 | if 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 | |
1334 | fi | |
1335 | ||
1336 | # Check all directory arguments for consistency. | |
1337 | for 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 | |
1341 | do | |
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" | |
1355 | done | |
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. | |
1360 | build=$build_alias | |
1361 | host=$host_alias | |
1362 | target=$target_alias | |
1363 | ||
1364 | # FIXME: To remove some day. | |
1365 | if 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 | |
1373 | fi | |
1374 | ||
1375 | ac_tool_prefix= | |
1376 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1377 | ||
1378 | test "$silent" = yes && exec 6>/dev/null | |
1379 | ||
1380 | ||
1381 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1382 | ac_ls_di=`ls -di .` && | |
1383 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1384 | as_fn_error $? "working directory cannot be determined" | |
1385 | test "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. | |
1390 | if 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 | |
1420 | else | |
1421 | ac_srcdir_defaulted=no | |
1422 | fi | |
1423 | if 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" | |
1426 | fi | |
1427 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1428 | ac_abs_confdir=`( | |
1429 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1430 | pwd)` | |
1431 | # When building in place, set srcdir=. | |
1432 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1433 | srcdir=. | |
1434 | fi | |
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. | |
1438 | case $srcdir in | |
1439 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1440 | esac | |
1441 | for 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} | |
1446 | done | |
34e49164 | 1447 | |
97111a47 | 1448 | # |
feec80c3 | 1449 | # Report the --help message. |
97111a47 | 1450 | # |
feec80c3 C |
1451 | if 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 | 1457 | Usage: $0 [OPTION]... [VAR=VALUE]... |
97111a47 | 1458 | |
feec80c3 C |
1459 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1460 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
97111a47 | 1461 | |
feec80c3 C |
1462 | Defaults for the options are specified in brackets. |
1463 | ||
1464 | Configuration: | |
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 | ||
1475 | Installation 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 | ||
1481 | By default, \`make install' will install all the files in | |
1482 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1483 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1484 | for instance \`--prefix=\$HOME'. | |
1485 | ||
1486 | For better control, use the options below. | |
1487 | ||
1488 | Fine 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 | |
1512 | fi | |
1513 | ||
1514 | if 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 | ||
1520 | Optional 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 | |
1545 | Optional 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 | ||
1563 | Some 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 | ||
1600 | Use these variables to override the choices made by `configure' or to help | |
1601 | it to find libraries and programs with nonstandard names/locations. | |
1602 | ||
1603 | Report bugs to <cocci@diku.dk>. | |
1604 | coccinelle home page: <http://coccinelle.lip6.fr/>. | |
1605 | _ACEOF | |
1606 | ac_status=$? | |
1607 | fi | |
1608 | ||
1609 | if 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 | ||
1617 | case "$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 ;; | |
1627 | esac | |
1628 | ac_abs_top_builddir=$ac_pwd | |
1629 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1630 | # for backward compatibility: | |
1631 | ac_top_builddir=$ac_top_build_prefix | |
1632 | ||
1633 | case $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 ;; | |
1646 | esac | |
1647 | ac_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 | |
1662 | fi | |
1663 | ||
1664 | test -n "$ac_init_help" && exit $ac_status | |
1665 | if $ac_init_version; then | |
1666 | cat <<\_ACEOF | |
d6ce1786 | 1667 | coccinelle configure 1.0.0-rc12 |
feec80c3 C |
1668 | generated by GNU Autoconf 2.68 |
1669 | ||
1670 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1671 | This configure script is free software; the Free Software Foundation | |
1672 | gives unlimited permission to copy, distribute and modify it. | |
1673 | _ACEOF | |
1674 | exit | |
1675 | fi | |
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. | |
1684 | ac_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" | |
1689 | case "(($ac_try" in | |
1690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1691 | *) ac_try_echo=$ac_try;; | |
1692 | esac | |
1693 | eval 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 | |
1708 | else | |
1709 | $as_echo "$as_me: failed program was:" >&5 | |
1710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1711 | ||
1712 | ac_retval=1 | |
1713 | fi | |
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. | |
1722 | ac_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" | |
1726 | case "(($ac_try" in | |
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1728 | *) ac_try_echo=$ac_try;; | |
1729 | esac | |
1730 | eval 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 | |
1745 | else | |
1746 | $as_echo "$as_me: failed program was:" >&5 | |
1747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1748 | ||
1749 | ac_retval=1 | |
1750 | fi | |
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 | |
1755 | cat >config.log <<_ACEOF | |
1756 | This file contains any messages produced by compilers while | |
1757 | running configure, to aid debugging if configure makes a mistake. | |
1758 | ||
d6ce1786 | 1759 | It was created by coccinelle $as_me 1.0.0-rc12, which was |
feec80c3 C |
1760 | generated by GNU Autoconf 2.68. Invocation command line was |
1761 | ||
1762 | $ $0 $@ | |
1763 | ||
1764 | _ACEOF | |
1765 | exec 5>>config.log | |
1766 | { | |
1767 | cat <<_ASUNAME | |
1768 | ## --------- ## | |
1769 | ## Platform. ## | |
1770 | ## --------- ## | |
1771 | ||
1772 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1773 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1774 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1775 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1776 | uname -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 | ||
1791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1792 | for as_dir in $PATH | |
1793 | do | |
1794 | IFS=$as_save_IFS | |
1795 | test -z "$as_dir" && as_dir=. | |
1796 | $as_echo "PATH: $as_dir" | |
1797 | done | |
1798 | IFS=$as_save_IFS | |
1799 | ||
1800 | } >&5 | |
1801 | ||
1802 | cat >&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. | |
1817 | ac_configure_args= | |
1818 | ac_configure_args0= | |
1819 | ac_configure_args1= | |
1820 | ac_must_keep_next=false | |
1821 | for ac_pass in 1 2 | |
1822 | do | |
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 | |
1856 | done | |
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. | |
1865 | trap '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 | |
1952 | for ac_signal in 1 2 13 15; do | |
1953 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1954 | done | |
1955 | ac_signal=0 | |
1956 | ||
1957 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1958 | rm -f -r conftest* confdefs.h | |
1959 | ||
1960 | $as_echo "/* confdefs.h */" > confdefs.h | |
1961 | ||
1962 | # Predefined preprocessor variables. | |
1963 | ||
1964 | cat >>confdefs.h <<_ACEOF | |
1965 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1966 | _ACEOF | |
1967 | ||
1968 | cat >>confdefs.h <<_ACEOF | |
1969 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1970 | _ACEOF | |
1971 | ||
1972 | cat >>confdefs.h <<_ACEOF | |
1973 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<_ACEOF | |
1977 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1978 | _ACEOF | |
1979 | ||
1980 | cat >>confdefs.h <<_ACEOF | |
1981 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1982 | _ACEOF | |
1983 | ||
1984 | cat >>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. | |
1991 | ac_site_file1=NONE | |
1992 | ac_site_file2=NONE | |
1993 | if 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 | |
2000 | elif test "x$prefix" != xNONE; then | |
2001 | ac_site_file1=$prefix/share/config.site | |
2002 | ac_site_file2=$prefix/etc/config.site | |
2003 | else | |
2004 | ac_site_file1=$ac_default_prefix/share/config.site | |
2005 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2006 | fi | |
2007 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2008 | do | |
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;} | |
2017 | as_fn_error $? "failed to load site script $ac_site_file | |
2018 | See \`config.log' for more details" "$LINENO" 5; } | |
2019 | fi | |
2020 | done | |
2021 | ||
2022 | if 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 | |
2033 | else | |
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 | |
2037 | fi | |
2038 | ||
2039 | # Check that the precious variables saved in the cache have kept the same | |
2040 | # value. | |
2041 | ac_cache_corrupted=false | |
2042 | for 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 | |
2088 | done | |
2089 | if $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 | |
2095 | fi | |
2096 | ## -------------------- ## | |
2097 | ## Main body of script. ## | |
2098 | ## -------------------- ## | |
2099 | ||
2100 | ac_ext=c | |
2101 | ac_cpp='$CPP $CPPFLAGS' | |
2102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2105 | ||
2106 | ||
feec80c3 | 2107 | |
d6ce1786 C |
2108 | ac_aux_dir= |
2109 | for 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 | |
2123 | done | |
2124 | if test -z "$ac_aux_dir"; then | |
2125 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5 | |
2126 | fi | |
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. | |
2132 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2133 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2134 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2135 | ||
2136 | ||
2137 | ||
2138 | CONFIGURE_FLAGS="$*" | |
2139 | ||
2140 | COCCI_VERSION="$PACKAGE_VERSION" | |
2141 | ||
2142 | COCCI_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. | |
2156 | set 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; } | |
2159 | if ${ac_cv_path_GIT+:} false; then : | |
2160 | $as_echo_n "(cached) " >&6 | |
2161 | else | |
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 | |
2168 | for as_dir in $PATH | |
2169 | do | |
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 | |
2178 | done | |
2179 | done | |
2180 | IFS=$as_save_IFS | |
2181 | ||
2182 | ;; | |
2183 | esac | |
2184 | fi | |
2185 | GIT=$ac_cv_path_GIT | |
2186 | if test -n "$GIT"; then | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 | |
2188 | $as_echo "$GIT" >&6; } | |
2189 | else | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2191 | $as_echo "no" >&6; } | |
2192 | fi | |
2193 | ||
2194 | ||
2195 | fi | |
2196 | if 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. | |
2199 | set 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; } | |
2202 | if ${ac_cv_path_ac_pt_GIT+:} false; then : | |
2203 | $as_echo_n "(cached) " >&6 | |
2204 | else | |
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 | |
2211 | for as_dir in $PATH | |
2212 | do | |
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 | |
2221 | done | |
2222 | done | |
2223 | IFS=$as_save_IFS | |
2224 | ||
2225 | ;; | |
2226 | esac | |
2227 | fi | |
2228 | ac_pt_GIT=$ac_cv_path_ac_pt_GIT | |
2229 | if 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; } | |
2232 | else | |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2234 | $as_echo "no" >&6; } | |
2235 | fi | |
2236 | ||
2237 | if test "x$ac_pt_GIT" = x; then | |
2238 | GIT="" | |
2239 | else | |
2240 | case $cross_compiling:$ac_tool_warned in | |
2241 | yes:) | |
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;} | |
2244 | ac_tool_warned=yes ;; | |
2245 | esac | |
2246 | GIT=$ac_pt_GIT | |
2247 | fi | |
2248 | else | |
2249 | GIT="$ac_cv_path_GIT" | |
2250 | fi | |
2251 | ||
2252 | if test -n "$GIT"; then : | |
2253 | CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"` | |
2254 | ||
2255 | fi | |
2256 | ||
2257 | fi | |
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. | |
2262 | set 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; } | |
2265 | if ${ac_cv_path_DATE+:} false; then : | |
2266 | $as_echo_n "(cached) " >&6 | |
2267 | else | |
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 | |
2274 | for as_dir in $PATH | |
2275 | do | |
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 | |
2284 | done | |
2285 | done | |
2286 | IFS=$as_save_IFS | |
2287 | ||
2288 | ;; | |
2289 | esac | |
2290 | fi | |
2291 | DATE=$ac_cv_path_DATE | |
2292 | if test -n "$DATE"; then | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 | |
2294 | $as_echo "$DATE" >&6; } | |
2295 | else | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2297 | $as_echo "no" >&6; } | |
2298 | fi | |
2299 | ||
2300 | ||
2301 | fi | |
2302 | if 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. | |
2305 | set 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; } | |
2308 | if ${ac_cv_path_ac_pt_DATE+:} false; then : | |
2309 | $as_echo_n "(cached) " >&6 | |
2310 | else | |
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 | |
2317 | for as_dir in $PATH | |
2318 | do | |
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 | |
2327 | done | |
2328 | done | |
2329 | IFS=$as_save_IFS | |
2330 | ||
2331 | ;; | |
2332 | esac | |
2333 | fi | |
2334 | ac_pt_DATE=$ac_cv_path_ac_pt_DATE | |
2335 | if 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; } | |
2338 | else | |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2340 | $as_echo "no" >&6; } | |
2341 | fi | |
2342 | ||
2343 | if test "x$ac_pt_DATE" = x; then | |
2344 | DATE="" | |
2345 | else | |
2346 | case $cross_compiling:$ac_tool_warned in | |
2347 | yes:) | |
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;} | |
2350 | ac_tool_warned=yes ;; | |
2351 | esac | |
2352 | DATE=$ac_pt_DATE | |
2353 | fi | |
2354 | else | |
2355 | DATE="$ac_cv_path_DATE" | |
2356 | fi | |
2357 | ||
2358 | if test -n "$DATE"; then : | |
2359 | CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"` | |
2360 | ||
2361 | fi | |
2362 | ||
2363 | fi | |
2364 | ||
2365 | if test -z "$CONFVERSION"; then : | |
2366 | CONFVERSION=unknown | |
2367 | ||
2368 | fi | |
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; } | |
2406 | if test -z "$INSTALL"; then | |
2407 | if ${ac_cv_path_install+:} false; then : | |
2408 | $as_echo_n "(cached) " >&6 | |
2409 | else | |
2410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2411 | for as_dir in $PATH | |
2412 | do | |
2413 | IFS=$as_save_IFS | |
2414 | test -z "$as_dir" && as_dir=. | |
2415 | # Account for people who put trailing slashes in PATH elements. | |
2416 | case $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 | ;; | |
2454 | esac | |
2455 | ||
2456 | done | |
2457 | IFS=$as_save_IFS | |
2458 | ||
2459 | rm -rf conftest.one conftest.two conftest.dir | |
2460 | ||
2461 | fi | |
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 | |
2471 | fi | |
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. | |
2477 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2478 | ||
2479 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2480 | ||
2481 | test -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; } | |
2485 | if test -z "$MKDIR_P"; then | |
2486 | if ${ac_cv_path_mkdir+:} false; then : | |
2487 | $as_echo_n "(cached) " >&6 | |
2488 | else | |
2489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2490 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2491 | do | |
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 | |
2507 | IFS=$as_save_IFS | |
2508 | ||
2509 | fi | |
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 | |
2521 | fi | |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2523 | $as_echo "$MKDIR_P" >&6; } | |
2524 | ||
2525 | ac_ext=c | |
2526 | ac_cpp='$CPP $CPPFLAGS' | |
2527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2530 | if 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. | |
2532 | set 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; } | |
2535 | if ${ac_cv_prog_CC+:} false; then : | |
2536 | $as_echo_n "(cached) " >&6 | |
2537 | else | |
2538 | if test -n "$CC"; then | |
2539 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2540 | else | |
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2542 | for as_dir in $PATH | |
2543 | do | |
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 | |
2552 | done | |
2553 | done | |
2554 | IFS=$as_save_IFS | |
2555 | ||
2556 | fi | |
2557 | fi | |
2558 | CC=$ac_cv_prog_CC | |
2559 | if test -n "$CC"; then | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2561 | $as_echo "$CC" >&6; } | |
2562 | else | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2564 | $as_echo "no" >&6; } | |
2565 | fi | |
2566 | ||
2567 | ||
2568 | fi | |
2569 | if 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. | |
2572 | set 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; } | |
2575 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2576 | $as_echo_n "(cached) " >&6 | |
2577 | else | |
2578 | if test -n "$ac_ct_CC"; then | |
2579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2580 | else | |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2582 | for as_dir in $PATH | |
2583 | do | |
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 | |
2592 | done | |
2593 | done | |
2594 | IFS=$as_save_IFS | |
2595 | ||
2596 | fi | |
2597 | fi | |
2598 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2599 | if 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; } | |
2602 | else | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2604 | $as_echo "no" >&6; } | |
2605 | fi | |
2606 | ||
2607 | if test "x$ac_ct_CC" = x; then | |
2608 | CC="" | |
2609 | else | |
2610 | case $cross_compiling:$ac_tool_warned in | |
2611 | yes:) | |
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;} | |
2614 | ac_tool_warned=yes ;; | |
2615 | esac | |
2616 | CC=$ac_ct_CC | |
2617 | fi | |
2618 | else | |
2619 | CC="$ac_cv_prog_CC" | |
2620 | fi | |
2621 | ||
2622 | if 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. | |
2625 | set 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; } | |
2628 | if ${ac_cv_prog_CC+:} false; then : | |
2629 | $as_echo_n "(cached) " >&6 | |
2630 | else | |
2631 | if test -n "$CC"; then | |
2632 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2633 | else | |
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
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 | |
2645 | done | |
2646 | done | |
2647 | IFS=$as_save_IFS | |
2648 | ||
2649 | fi | |
2650 | fi | |
2651 | CC=$ac_cv_prog_CC | |
2652 | if test -n "$CC"; then | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2654 | $as_echo "$CC" >&6; } | |
2655 | else | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2657 | $as_echo "no" >&6; } | |
2658 | fi | |
2659 | ||
2660 | ||
2661 | fi | |
2662 | fi | |
2663 | if test -z "$CC"; then | |
2664 | # Extract the first word of "cc", so it can be a program name with args. | |
2665 | set 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; } | |
2668 | if ${ac_cv_prog_CC+:} false; then : | |
2669 | $as_echo_n "(cached) " >&6 | |
2670 | else | |
2671 | if test -n "$CC"; then | |
2672 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2673 | else | |
2674 | ac_prog_rejected=no | |
2675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2676 | for as_dir in $PATH | |
2677 | do | |
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 | |
2690 | done | |
2691 | done | |
2692 | IFS=$as_save_IFS | |
2693 | ||
2694 | if 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 | |
2705 | fi | |
2706 | fi | |
2707 | fi | |
2708 | CC=$ac_cv_prog_CC | |
2709 | if test -n "$CC"; then | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2711 | $as_echo "$CC" >&6; } | |
2712 | else | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2714 | $as_echo "no" >&6; } | |
2715 | fi | |
2716 | ||
2717 | ||
2718 | fi | |
2719 | if 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. | |
2724 | set 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; } | |
2727 | if ${ac_cv_prog_CC+:} false; then : | |
2728 | $as_echo_n "(cached) " >&6 | |
2729 | else | |
2730 | if test -n "$CC"; then | |
2731 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2732 | else | |
2733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2734 | for as_dir in $PATH | |
2735 | do | |
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 | |
2744 | done | |
2745 | done | |
2746 | IFS=$as_save_IFS | |
2747 | ||
2748 | fi | |
2749 | fi | |
2750 | CC=$ac_cv_prog_CC | |
2751 | if test -n "$CC"; then | |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2753 | $as_echo "$CC" >&6; } | |
2754 | else | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2756 | $as_echo "no" >&6; } | |
2757 | fi | |
2758 | ||
2759 | ||
2760 | test -n "$CC" && break | |
2761 | done | |
2762 | fi | |
2763 | if test -z "$CC"; then | |
2764 | ac_ct_CC=$CC | |
2765 | for ac_prog in cl.exe | |
2766 | do | |
2767 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2768 | set 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; } | |
2771 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2772 | $as_echo_n "(cached) " >&6 | |
2773 | else | |
2774 | if test -n "$ac_ct_CC"; then | |
2775 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2776 | else | |
2777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2778 | for as_dir in $PATH | |
2779 | do | |
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 | |
2788 | done | |
2789 | done | |
2790 | IFS=$as_save_IFS | |
2791 | ||
2792 | fi | |
2793 | fi | |
2794 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2795 | if 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; } | |
2798 | else | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2800 | $as_echo "no" >&6; } | |
2801 | fi | |
2802 | ||
2803 | ||
2804 | test -n "$ac_ct_CC" && break | |
2805 | done | |
2806 | ||
2807 | if test "x$ac_ct_CC" = x; then | |
2808 | CC="" | |
2809 | else | |
2810 | case $cross_compiling:$ac_tool_warned in | |
2811 | yes:) | |
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;} | |
2814 | ac_tool_warned=yes ;; | |
2815 | esac | |
2816 | CC=$ac_ct_CC | |
2817 | fi | |
2818 | fi | |
2819 | ||
2820 | fi | |
2821 | ||
2822 | ||
2823 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2825 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2826 | See \`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 | |
2830 | set X $ac_compile | |
2831 | ac_compiler=$2 | |
2832 | for ac_option in --version -v -V -qversion; do | |
2833 | { { ac_try="$ac_compiler $ac_option >&5" | |
2834 | case "(($ac_try" in | |
2835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2836 | *) ac_try_echo=$ac_try;; | |
2837 | esac | |
2838 | eval 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; } | |
2851 | done | |
2852 | ||
2853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2854 | /* end confdefs.h. */ | |
2855 | ||
2856 | int | |
2857 | main () | |
2858 | { | |
2859 | ||
2860 | ; | |
2861 | return 0; | |
97111a47 | 2862 | } |
feec80c3 C |
2863 | _ACEOF |
2864 | ac_clean_files_save=$ac_clean_files | |
2865 | ac_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; } | |
2871 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
97111a47 | 2872 | |
feec80c3 C |
2873 | # The possible output files: |
2874 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2875 | ||
2876 | ac_rmfiles= | |
2877 | for ac_file in $ac_files | |
2878 | do | |
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 | |
2883 | done | |
2884 | rm -f $ac_rmfiles | |
2885 | ||
2886 | if { { ac_try="$ac_link_default" | |
2887 | case "(($ac_try" in | |
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2889 | *) ac_try_echo=$ac_try;; | |
2890 | esac | |
2891 | eval 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. | |
2902 | for ac_file in $ac_files '' | |
2903 | do | |
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 | |
2926 | done | |
2927 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2928 | ||
2929 | else | |
2930 | ac_file='' | |
2931 | fi | |
2932 | if 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 | |
2936 | sed '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;} | |
2940 | as_fn_error 77 "C compiler cannot create executables | |
2941 | See \`config.log' for more details" "$LINENO" 5; } | |
2942 | else | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2944 | $as_echo "yes" >&6; } | |
2945 | fi | |
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; } | |
2950 | ac_exeext=$ac_cv_exeext | |
2951 | ||
2952 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2953 | ac_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; } | |
2956 | if { { ac_try="$ac_link" | |
2957 | case "(($ac_try" in | |
2958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2959 | *) ac_try_echo=$ac_try;; | |
2960 | esac | |
2961 | eval 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'. | |
2971 | for 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 | |
2979 | done | |
2980 | else | |
2981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2983 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2984 | See \`config.log' for more details" "$LINENO" 5; } | |
2985 | fi | |
2986 | rm -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 | ||
2990 | rm -f conftest.$ac_ext | |
2991 | EXEEXT=$ac_cv_exeext | |
2992 | ac_exeext=$EXEEXT | |
2993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2994 | /* end confdefs.h. */ | |
2995 | #include <stdio.h> | |
2996 | int | |
2997 | main () | |
2998 | { | |
2999 | FILE *f = fopen ("conftest.out", "w"); | |
3000 | return ferror (f) || fclose (f) != 0; | |
3001 | ||
3002 | ; | |
3003 | return 0; | |
17ba0788 | 3004 | } |
feec80c3 C |
3005 | _ACEOF |
3006 | ac_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; } | |
3011 | if test "$cross_compiling" != yes; then | |
3012 | { { ac_try="$ac_link" | |
3013 | case "(($ac_try" in | |
3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3015 | *) ac_try_echo=$ac_try;; | |
3016 | esac | |
3017 | eval 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;; | |
3027 | esac | |
3028 | eval 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;} | |
3041 | as_fn_error $? "cannot run C compiled programs. | |
3042 | If you meant to cross compile, use \`--host'. | |
3043 | See \`config.log' for more details" "$LINENO" 5; } | |
3044 | fi | |
3045 | fi | |
3046 | fi | |
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3048 | $as_echo "$cross_compiling" >&6; } | |
3049 | ||
3050 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3051 | ac_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; } | |
3054 | if ${ac_cv_objext+:} false; then : | |
3055 | $as_echo_n "(cached) " >&6 | |
3056 | else | |
3057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3058 | /* end confdefs.h. */ | |
174d1640 | 3059 | |
feec80c3 C |
3060 | int |
3061 | main () | |
3062 | { | |
3063 | ||
3064 | ; | |
3065 | return 0; | |
ca417fcf | 3066 | } |
feec80c3 C |
3067 | _ACEOF |
3068 | rm -f conftest.o conftest.obj | |
3069 | if { { ac_try="$ac_compile" | |
3070 | case "(($ac_try" in | |
3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3072 | *) ac_try_echo=$ac_try;; | |
3073 | esac | |
3074 | eval 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 | |
3087 | done | |
3088 | else | |
3089 | $as_echo "$as_me: failed program was:" >&5 | |
3090 | sed '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;} | |
3094 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3095 | See \`config.log' for more details" "$LINENO" 5; } | |
3096 | fi | |
3097 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3098 | fi | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3100 | $as_echo "$ac_cv_objext" >&6; } | |
3101 | OBJEXT=$ac_cv_objext | |
3102 | ac_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; } | |
3105 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3106 | $as_echo_n "(cached) " >&6 | |
3107 | else | |
3108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3109 | /* end confdefs.h. */ | |
3110 | ||
3111 | int | |
3112 | main () | |
3113 | { | |
3114 | #ifndef __GNUC__ | |
3115 | choke me | |
3116 | #endif | |
3117 | ||
3118 | ; | |
3119 | return 0; | |
ca417fcf | 3120 | } |
feec80c3 C |
3121 | _ACEOF |
3122 | if ac_fn_c_try_compile "$LINENO"; then : | |
3123 | ac_compiler_gnu=yes | |
3124 | else | |
3125 | ac_compiler_gnu=no | |
3126 | fi | |
3127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3128 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3129 | ||
3130 | fi | |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3132 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3133 | if test $ac_compiler_gnu = yes; then | |
3134 | GCC=yes | |
3135 | else | |
3136 | GCC= | |
3137 | fi | |
3138 | ac_test_CFLAGS=${CFLAGS+set} | |
3139 | ac_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; } | |
3142 | if ${ac_cv_prog_cc_g+:} false; then : | |
3143 | $as_echo_n "(cached) " >&6 | |
3144 | else | |
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 | ||
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | ||
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | if ac_fn_c_try_compile "$LINENO"; then : | |
3161 | ac_cv_prog_cc_g=yes | |
3162 | else | |
3163 | CFLAGS="" | |
3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3165 | /* end confdefs.h. */ | |
3166 | ||
3167 | int | |
3168 | main () | |
3169 | { | |
3170 | ||
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | if ac_fn_c_try_compile "$LINENO"; then : | |
3176 | ||
3177 | else | |
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 | ||
3183 | int | |
3184 | main () | |
3185 | { | |
3186 | ||
3187 | ; | |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | if ac_fn_c_try_compile "$LINENO"; then : | |
3192 | ac_cv_prog_cc_g=yes | |
3193 | fi | |
3194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3195 | fi | |
3196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3197 | fi | |
3198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3199 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3200 | fi | |
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3202 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3203 | if test "$ac_test_CFLAGS" = set; then | |
3204 | CFLAGS=$ac_save_CFLAGS | |
3205 | elif 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 | |
3211 | else | |
3212 | if test "$GCC" = yes; then | |
3213 | CFLAGS="-O2" | |
3214 | else | |
3215 | CFLAGS= | |
3216 | fi | |
3217 | fi | |
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; } | |
3220 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3221 | $as_echo_n "(cached) " >&6 | |
3222 | else | |
3223 | ac_cv_prog_cc_c89=no | |
3224 | ac_save_CC=$CC | |
3225 | cat 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. */ | |
3232 | struct buf { int x; }; | |
3233 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3234 | static char *e (p, i) | |
3235 | char **p; | |
3236 | int i; | |
3237 | { | |
3238 | return p[i]; | |
3239 | } | |
3240 | static 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. */ | |
3257 | int 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' | |
3262 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3263 | ||
3264 | int test (int i, double x); | |
3265 | struct s1 {int (*f) (int a);}; | |
3266 | struct s2 {int (*f) (double a);}; | |
3267 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3268 | int argc; | |
3269 | char **argv; | |
3270 | int | |
3271 | main () | |
3272 | { | |
3273 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3274 | ; | |
3275 | return 0; | |
3276 | } | |
3277 | _ACEOF | |
3278 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3279 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3280 | do | |
3281 | CC="$ac_save_CC $ac_arg" | |
3282 | if ac_fn_c_try_compile "$LINENO"; then : | |
3283 | ac_cv_prog_cc_c89=$ac_arg | |
3284 | fi | |
3285 | rm -f core conftest.err conftest.$ac_objext | |
3286 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3287 | done | |
3288 | rm -f conftest.$ac_ext | |
3289 | CC=$ac_save_CC | |
3290 | ||
3291 | fi | |
3292 | # AC_CACHE_VAL | |
3293 | case "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; } ;; | |
3304 | esac | |
3305 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3306 | ||
3307 | fi | |
3308 | ||
3309 | ac_ext=c | |
3310 | ac_cpp='$CPP $CPPFLAGS' | |
3311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3314 | ||
3315 | ac_ext=c | |
3316 | ac_cpp='$CPP $CPPFLAGS' | |
3317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3319 | ac_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. | |
3323 | if test -n "$CPP" && test -d "$CPP"; then | |
3324 | CPP= | |
3325 | fi | |
3326 | if test -z "$CPP"; then | |
3327 | if ${ac_cv_prog_CPP+:} false; then : | |
3328 | $as_echo_n "(cached) " >&6 | |
3329 | else | |
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 | |
3334 | for ac_c_preproc_warn_flag in '' yes | |
3335 | do | |
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 | |
3351 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3352 | ||
3353 | else | |
3354 | # Broken: fails on valid input. | |
3355 | continue | |
3356 | fi | |
3357 | rm -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 | |
3365 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3366 | # Broken: success on invalid input. | |
3367 | continue | |
3368 | else | |
3369 | # Passes both tests. | |
3370 | ac_preproc_ok=: | |
3371 | break | |
3372 | fi | |
3373 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3374 | ||
3375 | done | |
3376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3377 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3378 | if $ac_preproc_ok; then : | |
3379 | break | |
3380 | fi | |
3381 | ||
3382 | done | |
3383 | ac_cv_prog_CPP=$CPP | |
3384 | ||
3385 | fi | |
3386 | CPP=$ac_cv_prog_CPP | |
3387 | else | |
3388 | ac_cv_prog_CPP=$CPP | |
3389 | fi | |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3391 | $as_echo "$CPP" >&6; } | |
3392 | ac_preproc_ok=false | |
3393 | for ac_c_preproc_warn_flag in '' yes | |
3394 | do | |
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 | |
3410 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3411 | ||
3412 | else | |
3413 | # Broken: fails on valid input. | |
3414 | continue | |
3415 | fi | |
3416 | rm -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 | |
3424 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3425 | # Broken: success on invalid input. | |
3426 | continue | |
3427 | else | |
3428 | # Passes both tests. | |
3429 | ac_preproc_ok=: | |
3430 | break | |
3431 | fi | |
3432 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3433 | ||
3434 | done | |
3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3436 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3437 | if $ac_preproc_ok; then : | |
3438 | ||
3439 | else | |
3440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3442 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3443 | See \`config.log' for more details" "$LINENO" 5; } | |
3444 | fi | |
3445 | ||
3446 | ac_ext=c | |
3447 | ac_cpp='$CPP $CPPFLAGS' | |
3448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3451 | ||
3452 | # Extract the first word of "tar", so it can be a program name with args. | |
3453 | set 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; } | |
3456 | if ${ac_cv_path_TAR+:} false; then : | |
3457 | $as_echo_n "(cached) " >&6 | |
3458 | else | |
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 | |
3465 | for as_dir in $PATH | |
3466 | do | |
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 | |
3475 | done | |
3476 | done | |
3477 | IFS=$as_save_IFS | |
3478 | ||
3479 | ;; | |
3480 | esac | |
3481 | fi | |
3482 | TAR=$ac_cv_path_TAR | |
3483 | if test -n "$TAR"; then | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | |
3485 | $as_echo "$TAR" >&6; } | |
3486 | else | |
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3488 | $as_echo "no" >&6; } | |
3489 | fi | |
3490 | ||
3491 | ||
3492 | # Extract the first word of "patch", so it can be a program name with args. | |
3493 | set 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; } | |
3496 | if ${ac_cv_path_PATCH+:} false; then : | |
3497 | $as_echo_n "(cached) " >&6 | |
3498 | else | |
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 | |
3505 | for as_dir in $PATH | |
3506 | do | |
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 | |
3515 | done | |
3516 | done | |
3517 | IFS=$as_save_IFS | |
3518 | ||
3519 | ;; | |
3520 | esac | |
3521 | fi | |
3522 | PATCH=$ac_cv_path_PATCH | |
3523 | if test -n "$PATCH"; then | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 | |
3525 | $as_echo "$PATCH" >&6; } | |
3526 | else | |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3528 | $as_echo "no" >&6; } | |
3529 | fi | |
3530 | ||
3531 | ||
d6ce1786 C |
3532 | # Extract the first word of "patchelf", so it can be a program name with args. |
3533 | set 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; } | |
3536 | if ${ac_cv_path_PATCHELF+:} false; then : | |
3537 | $as_echo_n "(cached) " >&6 | |
3538 | else | |
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 | |
3545 | for as_dir in $PATH | |
3546 | do | |
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 | |
3555 | done | |
3556 | done | |
3557 | IFS=$as_save_IFS | |
3558 | ||
3559 | ;; | |
3560 | esac | |
3561 | fi | |
3562 | PATCHELF=$ac_cv_path_PATCHELF | |
3563 | if test -n "$PATCHELF"; then | |
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5 | |
3565 | $as_echo "$PATCHELF" >&6; } | |
3566 | else | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3568 | $as_echo "no" >&6; } | |
3569 | fi | |
3570 | ||
3571 | ||
feec80c3 C |
3572 | |
3573 | ||
3574 | ||
3575 | # Check whether --with-pkg-config was given. | |
3576 | if test "${with_pkg_config+set}" = set; then : | |
3577 | withval=$with_pkg_config; | |
3578 | fi | |
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 |
3586 | else |
3587 | PKG_CONFIG="pkg-config" | |
3588 | ||
3589 | ||
feec80c3 C |
3590 | fi |
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 | ||
3598 | else | |
3599 | if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then : | |
feec80c3 C |
3600 | |
3601 | ||
3602 | if 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. | |
3605 | set 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; } | |
3608 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
3609 | $as_echo_n "(cached) " >&6 | |
3610 | else | |
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 | |
3617 | for as_dir in $PATH | |
3618 | do | |
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 | |
3627 | done | |
3628 | done | |
3629 | IFS=$as_save_IFS | |
3630 | ||
3631 | ;; | |
3632 | esac | |
3633 | fi | |
3634 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
3635 | if test -n "$PKG_CONFIG"; then | |
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
3637 | $as_echo "$PKG_CONFIG" >&6; } | |
3638 | else | |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3640 | $as_echo "no" >&6; } | |
3641 | fi | |
3642 | ||
3643 | ||
3644 | fi | |
3645 | if 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. | |
3648 | set 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; } | |
3651 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
3652 | $as_echo_n "(cached) " >&6 | |
3653 | else | |
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 | |
3660 | for as_dir in $PATH | |
3661 | do | |
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 | |
3670 | done | |
3671 | done | |
3672 | IFS=$as_save_IFS | |
3673 | ||
3674 | ;; | |
3675 | esac | |
3676 | fi | |
3677 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
3678 | if 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; } | |
3681 | else | |
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3683 | $as_echo "no" >&6; } | |
3684 | fi | |
3685 | ||
3686 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
3687 | PKG_CONFIG="" | |
3688 | else | |
3689 | case $cross_compiling:$ac_tool_warned in | |
3690 | yes:) | |
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;} | |
3693 | ac_tool_warned=yes ;; | |
3694 | esac | |
3695 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3696 | fi | |
3697 | else | |
3698 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
3699 | fi | |
3700 | ||
3701 | fi | |
3702 | if 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 | ||
3715 | fi | |
3716 | ||
d6ce1786 | 3717 | elif 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. | |
3721 | set 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; } | |
3724 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
3725 | $as_echo_n "(cached) " >&6 | |
3726 | else | |
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 | |
3733 | for as_dir in $PATH | |
3734 | do | |
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 | |
3743 | done | |
3744 | done | |
3745 | IFS=$as_save_IFS | |
3746 | ||
3747 | ;; | |
3748 | esac | |
3749 | fi | |
3750 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
3751 | if test -n "$OCAMLLEX"; then | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
3753 | $as_echo "$OCAMLLEX" >&6; } | |
3754 | else | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3756 | $as_echo "no" >&6; } | |
3757 | fi | |
3758 | ||
3759 | ||
3760 | fi | |
3761 | if 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. | |
3764 | set 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; } | |
3767 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
3768 | $as_echo_n "(cached) " >&6 | |
3769 | else | |
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 | |
3776 | for as_dir in $PATH | |
3777 | do | |
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 | |
3786 | done | |
3787 | done | |
3788 | IFS=$as_save_IFS | |
3789 | ||
3790 | ;; | |
3791 | esac | |
3792 | fi | |
3793 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
3794 | if 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; } | |
3797 | else | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3799 | $as_echo "no" >&6; } | |
3800 | fi | |
3801 | ||
3802 | if test "x$ac_pt_OCAMLLEX" = x; then | |
3803 | OCAMLLEX="no" | |
3804 | else | |
3805 | case $cross_compiling:$ac_tool_warned in | |
3806 | yes:) | |
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;} | |
3809 | ac_tool_warned=yes ;; | |
3810 | esac | |
3811 | OCAMLLEX=$ac_pt_OCAMLLEX | |
3812 | fi | |
3813 | else | |
3814 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
3815 | fi | |
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. | |
3820 | set 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; } | |
3823 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
3824 | $as_echo_n "(cached) " >&6 | |
3825 | else | |
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 | |
3832 | for as_dir in $PATH | |
3833 | do | |
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 | |
3842 | done | |
3843 | done | |
3844 | IFS=$as_save_IFS | |
3845 | ||
3846 | ;; | |
3847 | esac | |
3848 | fi | |
3849 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
3850 | if test -n "$OCAMLLEXDOTOPT"; then | |
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
3852 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
3853 | else | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3855 | $as_echo "no" >&6; } | |
3856 | fi | |
3857 | ||
3858 | ||
3859 | fi | |
3860 | if 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. | |
3863 | set 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; } | |
3866 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
3867 | $as_echo_n "(cached) " >&6 | |
3868 | else | |
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 | |
3875 | for as_dir in $PATH | |
3876 | do | |
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 | |
3885 | done | |
3886 | done | |
3887 | IFS=$as_save_IFS | |
3888 | ||
3889 | ;; | |
3890 | esac | |
3891 | fi | |
3892 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
3893 | if 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; } | |
3896 | else | |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3898 | $as_echo "no" >&6; } | |
3899 | fi | |
3900 | ||
3901 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
3902 | OCAMLLEXDOTOPT="no" | |
3903 | else | |
3904 | case $cross_compiling:$ac_tool_warned in | |
3905 | yes:) | |
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;} | |
3908 | ac_tool_warned=yes ;; | |
3909 | esac | |
3910 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
3911 | fi | |
3912 | else | |
3913 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
3914 | fi | |
3915 | ||
3916 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
3917 | OCAMLLEX=$OCAMLLEXDOTOPT | |
3918 | fi | |
3919 | fi | |
3920 | ||
3921 | ||
3922 | ||
d6ce1786 | 3923 | elif 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. | |
3926 | set 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; } | |
3929 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
3930 | $as_echo_n "(cached) " >&6 | |
3931 | else | |
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 | |
3938 | for as_dir in $PATH | |
3939 | do | |
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 | |
3948 | done | |
3949 | done | |
3950 | IFS=$as_save_IFS | |
3951 | ||
3952 | ;; | |
3953 | esac | |
3954 | fi | |
3955 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
3956 | if test -n "$OCAMLYACC"; then | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
3958 | $as_echo "$OCAMLYACC" >&6; } | |
3959 | else | |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3961 | $as_echo "no" >&6; } | |
3962 | fi | |
3963 | ||
3964 | ||
3965 | fi | |
3966 | if 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. | |
3969 | set 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; } | |
3972 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
3973 | $as_echo_n "(cached) " >&6 | |
3974 | else | |
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 | |
3981 | for as_dir in $PATH | |
3982 | do | |
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 | |
3991 | done | |
3992 | done | |
3993 | IFS=$as_save_IFS | |
3994 | ||
3995 | ;; | |
3996 | esac | |
3997 | fi | |
3998 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
3999 | if 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; } | |
4002 | else | |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4004 | $as_echo "no" >&6; } | |
4005 | fi | |
4006 | ||
4007 | if test "x$ac_pt_OCAMLYACC" = x; then | |
4008 | OCAMLYACC="no" | |
4009 | else | |
4010 | case $cross_compiling:$ac_tool_warned in | |
4011 | yes:) | |
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;} | |
4014 | ac_tool_warned=yes ;; | |
4015 | esac | |
4016 | OCAMLYACC=$ac_pt_OCAMLYACC | |
4017 | fi | |
4018 | else | |
4019 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
4020 | fi | |
4021 | ||
4022 | ||
4023 | ||
4024 | ||
4025 | else | |
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. |
4028 | set 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; } | |
4031 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4032 | $as_echo_n "(cached) " >&6 | |
4033 | else | |
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 | |
4040 | for as_dir in $PATH | |
4041 | do | |
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 | |
4050 | done | |
4051 | done | |
4052 | IFS=$as_save_IFS | |
4053 | ||
4054 | ;; | |
4055 | esac | |
4056 | fi | |
4057 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4058 | if test -n "$PKG_CONFIG"; then | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4060 | $as_echo "$PKG_CONFIG" >&6; } | |
4061 | else | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4063 | $as_echo "no" >&6; } | |
4064 | fi | |
4065 | ||
4066 | ||
4067 | fi | |
4068 | if 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. |
4071 | set 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; } | |
4074 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4075 | $as_echo_n "(cached) " >&6 | |
4076 | else | |
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 | |
4083 | for as_dir in $PATH | |
4084 | do | |
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 | |
4093 | done | |
4094 | done | |
4095 | IFS=$as_save_IFS | |
4096 | ||
4097 | ;; | |
4098 | esac | |
4099 | fi | |
4100 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4101 | if 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; } | |
4104 | else | |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4106 | $as_echo "no" >&6; } | |
4107 | fi | |
4108 | ||
4109 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4110 | PKG_CONFIG="" | |
4111 | else | |
4112 | case $cross_compiling:$ac_tool_warned in | |
4113 | yes:) | |
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;} | |
4116 | ac_tool_warned=yes ;; | |
4117 | esac | |
4118 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4119 | fi | |
4120 | else | |
4121 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4122 | fi | |
4123 | ||
4124 | ||
4125 | fi | |
4126 | ||
4127 | ||
4128 | fi | |
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 | ||
4134 | fi | |
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 | ||
4144 | if 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. | |
4147 | set 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; } | |
4150 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4151 | $as_echo_n "(cached) " >&6 | |
4152 | else | |
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 | |
4159 | for as_dir in $PATH | |
4160 | do | |
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 | |
4169 | done | |
4170 | done | |
4171 | IFS=$as_save_IFS | |
4172 | ||
4173 | ;; | |
4174 | esac | |
4175 | fi | |
4176 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4177 | if test -n "$PKG_CONFIG"; then | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4179 | $as_echo "$PKG_CONFIG" >&6; } | |
4180 | else | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4182 | $as_echo "no" >&6; } | |
4183 | fi | |
4184 | ||
4185 | ||
4186 | fi | |
4187 | if 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. | |
4190 | set 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; } | |
4193 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4194 | $as_echo_n "(cached) " >&6 | |
4195 | else | |
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 | |
4202 | for as_dir in $PATH | |
4203 | do | |
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 | |
4212 | done | |
4213 | done | |
4214 | IFS=$as_save_IFS | |
4215 | ||
4216 | ;; | |
4217 | esac | |
4218 | fi | |
4219 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4220 | if 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; } | |
4223 | else | |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4225 | $as_echo "no" >&6; } | |
4226 | fi | |
4227 | ||
4228 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4229 | PKG_CONFIG="" | |
4230 | else | |
4231 | case $cross_compiling:$ac_tool_warned in | |
4232 | yes:) | |
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;} | |
4235 | ac_tool_warned=yes ;; | |
4236 | esac | |
4237 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4238 | fi | |
4239 | else | |
4240 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4241 | fi | |
4242 | ||
4243 | fi | |
4244 | if 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 | ||
4257 | fi | |
4258 | ||
4259 | elif 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. | |
4263 | set 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; } | |
4266 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
4267 | $as_echo_n "(cached) " >&6 | |
4268 | else | |
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 | |
4275 | for as_dir in $PATH | |
4276 | do | |
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 | |
4285 | done | |
4286 | done | |
4287 | IFS=$as_save_IFS | |
4288 | ||
4289 | ;; | |
4290 | esac | |
4291 | fi | |
4292 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
4293 | if test -n "$OCAMLLEX"; then | |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
4295 | $as_echo "$OCAMLLEX" >&6; } | |
4296 | else | |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4298 | $as_echo "no" >&6; } | |
4299 | fi | |
4300 | ||
4301 | ||
4302 | fi | |
4303 | if 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. | |
4306 | set 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; } | |
4309 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
4310 | $as_echo_n "(cached) " >&6 | |
4311 | else | |
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 | |
4318 | for as_dir in $PATH | |
4319 | do | |
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 | |
4328 | done | |
4329 | done | |
4330 | IFS=$as_save_IFS | |
4331 | ||
4332 | ;; | |
4333 | esac | |
4334 | fi | |
4335 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
4336 | if 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; } | |
4339 | else | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4341 | $as_echo "no" >&6; } | |
4342 | fi | |
4343 | ||
4344 | if test "x$ac_pt_OCAMLLEX" = x; then | |
4345 | OCAMLLEX="no" | |
4346 | else | |
4347 | case $cross_compiling:$ac_tool_warned in | |
4348 | yes:) | |
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;} | |
4351 | ac_tool_warned=yes ;; | |
4352 | esac | |
4353 | OCAMLLEX=$ac_pt_OCAMLLEX | |
4354 | fi | |
4355 | else | |
4356 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
4357 | fi | |
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. | |
4362 | set 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; } | |
4365 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
4366 | $as_echo_n "(cached) " >&6 | |
4367 | else | |
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 | |
4374 | for as_dir in $PATH | |
4375 | do | |
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 | |
4384 | done | |
4385 | done | |
4386 | IFS=$as_save_IFS | |
4387 | ||
4388 | ;; | |
4389 | esac | |
4390 | fi | |
4391 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
4392 | if test -n "$OCAMLLEXDOTOPT"; then | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
4394 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
4395 | else | |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4397 | $as_echo "no" >&6; } | |
4398 | fi | |
4399 | ||
4400 | ||
4401 | fi | |
4402 | if 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. | |
4405 | set 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; } | |
4408 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
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 | |
4417 | for as_dir in $PATH | |
4418 | do | |
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 | |
4427 | done | |
4428 | done | |
4429 | IFS=$as_save_IFS | |
4430 | ||
4431 | ;; | |
4432 | esac | |
4433 | fi | |
4434 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
4435 | if 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; } | |
4438 | else | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4440 | $as_echo "no" >&6; } | |
4441 | fi | |
4442 | ||
4443 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
4444 | OCAMLLEXDOTOPT="no" | |
4445 | else | |
4446 | case $cross_compiling:$ac_tool_warned in | |
4447 | yes:) | |
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;} | |
4450 | ac_tool_warned=yes ;; | |
4451 | esac | |
4452 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
4453 | fi | |
4454 | else | |
4455 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
4456 | fi | |
4457 | ||
4458 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
4459 | OCAMLLEX=$OCAMLLEXDOTOPT | |
4460 | fi | |
4461 | fi | |
4462 | ||
4463 | ||
4464 | ||
4465 | elif 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. | |
4468 | set 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; } | |
4471 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
4472 | $as_echo_n "(cached) " >&6 | |
4473 | else | |
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 | |
4480 | for as_dir in $PATH | |
4481 | do | |
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 | |
4490 | done | |
4491 | done | |
4492 | IFS=$as_save_IFS | |
4493 | ||
4494 | ;; | |
4495 | esac | |
4496 | fi | |
4497 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
4498 | if test -n "$OCAMLYACC"; then | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
4500 | $as_echo "$OCAMLYACC" >&6; } | |
4501 | else | |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4503 | $as_echo "no" >&6; } | |
4504 | fi | |
4505 | ||
4506 | ||
4507 | fi | |
4508 | if 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. | |
4511 | set 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; } | |
4514 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
4515 | $as_echo_n "(cached) " >&6 | |
4516 | else | |
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 | |
4523 | for as_dir in $PATH | |
4524 | do | |
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 | |
4533 | done | |
4534 | done | |
4535 | IFS=$as_save_IFS | |
4536 | ||
4537 | ;; | |
4538 | esac | |
4539 | fi | |
4540 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
4541 | if 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; } | |
4544 | else | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4546 | $as_echo "no" >&6; } | |
4547 | fi | |
4548 | ||
4549 | if test "x$ac_pt_OCAMLYACC" = x; then | |
4550 | OCAMLYACC="no" | |
4551 | else | |
4552 | case $cross_compiling:$ac_tool_warned in | |
4553 | yes:) | |
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;} | |
4556 | ac_tool_warned=yes ;; | |
4557 | esac | |
4558 | OCAMLYACC=$ac_pt_OCAMLYACC | |
4559 | fi | |
4560 | else | |
4561 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
4562 | fi | |
4563 | ||
4564 | ||
4565 | ||
4566 | ||
4567 | else | |
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. | |
4570 | set 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; } | |
4573 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4574 | $as_echo_n "(cached) " >&6 | |
4575 | else | |
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 | |
4582 | for as_dir in $PATH | |
4583 | do | |
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 | |
4592 | done | |
4593 | done | |
4594 | IFS=$as_save_IFS | |
4595 | ||
4596 | ;; | |
4597 | esac | |
4598 | fi | |
4599 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4600 | if test -n "$PKG_CONFIG"; then | |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4602 | $as_echo "$PKG_CONFIG" >&6; } | |
4603 | else | |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4605 | $as_echo "no" >&6; } | |
4606 | fi | |
4607 | ||
4608 | ||
4609 | fi | |
4610 | if 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. | |
4613 | set 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; } | |
4616 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4617 | $as_echo_n "(cached) " >&6 | |
4618 | else | |
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 | |
4625 | for as_dir in $PATH | |
4626 | do | |
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 | |
4635 | done | |
4636 | done | |
4637 | IFS=$as_save_IFS | |
4638 | ||
4639 | ;; | |
4640 | esac | |
4641 | fi | |
4642 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4643 | if 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; } | |
4646 | else | |
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4648 | $as_echo "no" >&6; } | |
4649 | fi | |
4650 | ||
4651 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4652 | PKG_CONFIG="" | |
4653 | else | |
4654 | case $cross_compiling:$ac_tool_warned in | |
4655 | yes:) | |
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;} | |
4658 | ac_tool_warned=yes ;; | |
4659 | esac | |
4660 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4661 | fi | |
4662 | else | |
4663 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4664 | fi | |
4665 | ||
4666 | ||
4667 | fi | |
4668 | ||
4669 | SUBSTITUTED_PKG_CONFIG=yes | |
4670 | ||
4671 | ||
4672 | fi | |
4673 | ||
4674 | fi | |
4675 | ||
4676 | if test -z "$PKG_CONFIG"; then : | |
4677 | PKG_CONFIG=no | |
4678 | ||
4679 | fi | |
4680 | ||
4681 | if test "x$PKG_CONFIG" = xno; then : | |
4682 | as_fn_error $? "A suitable pkg-config could not be found." "$LINENO" 5 | |
4683 | ||
4684 | fi | |
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. | |
4689 | set 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; } | |
4692 | if ${ac_cv_path_OCAMLC+:} false; then : | |
4693 | $as_echo_n "(cached) " >&6 | |
4694 | else | |
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 | |
4701 | for as_dir in $PATH | |
4702 | do | |
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 | |
4711 | done | |
4712 | done | |
4713 | IFS=$as_save_IFS | |
4714 | ||
4715 | ;; | |
4716 | esac | |
4717 | fi | |
4718 | OCAMLC=$ac_cv_path_OCAMLC | |
4719 | if test -n "$OCAMLC"; then | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 | |
4721 | $as_echo "$OCAMLC" >&6; } | |
4722 | else | |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4724 | $as_echo "no" >&6; } | |
4725 | fi | |
4726 | ||
4727 | ||
4728 | fi | |
4729 | if 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. | |
4732 | set 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; } | |
4735 | if ${ac_cv_path_ac_pt_OCAMLC+:} false; then : | |
4736 | $as_echo_n "(cached) " >&6 | |
4737 | else | |
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 | |
4744 | for as_dir in $PATH | |
4745 | do | |
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 | |
4754 | done | |
4755 | done | |
4756 | IFS=$as_save_IFS | |
4757 | ||
4758 | ;; | |
4759 | esac | |
4760 | fi | |
4761 | ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC | |
4762 | if 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; } | |
4765 | else | |
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4767 | $as_echo "no" >&6; } | |
4768 | fi | |
4769 | ||
4770 | if test "x$ac_pt_OCAMLC" = x; then | |
4771 | OCAMLC="no" | |
4772 | else | |
4773 | case $cross_compiling:$ac_tool_warned in | |
4774 | yes:) | |
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;} | |
4777 | ac_tool_warned=yes ;; | |
4778 | esac | |
4779 | OCAMLC=$ac_pt_OCAMLC | |
4780 | fi | |
4781 | else | |
4782 | OCAMLC="$ac_cv_path_OCAMLC" | |
4783 | fi | |
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. | |
4806 | set 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; } | |
4809 | if ${ac_cv_path_OCAMLOPT+:} false; then : | |
4810 | $as_echo_n "(cached) " >&6 | |
4811 | else | |
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 | |
4818 | for as_dir in $PATH | |
4819 | do | |
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 | |
4828 | done | |
4829 | done | |
4830 | IFS=$as_save_IFS | |
4831 | ||
4832 | ;; | |
4833 | esac | |
4834 | fi | |
4835 | OCAMLOPT=$ac_cv_path_OCAMLOPT | |
4836 | if test -n "$OCAMLOPT"; then | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5 | |
4838 | $as_echo "$OCAMLOPT" >&6; } | |
4839 | else | |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4841 | $as_echo "no" >&6; } | |
4842 | fi | |
4843 | ||
4844 | ||
4845 | fi | |
4846 | if 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. | |
4849 | set 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; } | |
4852 | if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then : | |
4853 | $as_echo_n "(cached) " >&6 | |
4854 | else | |
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 | |
4861 | for as_dir in $PATH | |
4862 | do | |
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 | |
4871 | done | |
4872 | done | |
4873 | IFS=$as_save_IFS | |
4874 | ||
4875 | ;; | |
4876 | esac | |
4877 | fi | |
4878 | ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT | |
4879 | if 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; } | |
4882 | else | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4884 | $as_echo "no" >&6; } | |
4885 | fi | |
4886 | ||
4887 | if test "x$ac_pt_OCAMLOPT" = x; then | |
4888 | OCAMLOPT="no" | |
4889 | else | |
4890 | case $cross_compiling:$ac_tool_warned in | |
4891 | yes:) | |
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;} | |
4894 | ac_tool_warned=yes ;; | |
4895 | esac | |
4896 | OCAMLOPT=$ac_pt_OCAMLOPT | |
4897 | fi | |
4898 | else | |
4899 | OCAMLOPT="$ac_cv_path_OCAMLOPT" | |
4900 | fi | |
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. | |
4922 | set 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; } | |
4925 | if ${ac_cv_path_OCAMLCDOTOPT+:} false; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
4927 | else | |
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 | |
4934 | for as_dir in $PATH | |
4935 | do | |
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 | |
4944 | done | |
4945 | done | |
4946 | IFS=$as_save_IFS | |
4947 | ||
4948 | ;; | |
4949 | esac | |
4950 | fi | |
4951 | OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT | |
4952 | if test -n "$OCAMLCDOTOPT"; then | |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5 | |
4954 | $as_echo "$OCAMLCDOTOPT" >&6; } | |
4955 | else | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4957 | $as_echo "no" >&6; } | |
4958 | fi | |
4959 | ||
4960 | ||
4961 | fi | |
4962 | if 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. | |
4965 | set 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; } | |
4968 | if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then : | |
4969 | $as_echo_n "(cached) " >&6 | |
4970 | else | |
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 | |
4977 | for as_dir in $PATH | |
4978 | do | |
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 | |
4987 | done | |
4988 | done | |
4989 | IFS=$as_save_IFS | |
4990 | ||
4991 | ;; | |
4992 | esac | |
4993 | fi | |
4994 | ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT | |
4995 | if 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; } | |
4998 | else | |
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5000 | $as_echo "no" >&6; } | |
5001 | fi | |
5002 | ||
5003 | if test "x$ac_pt_OCAMLCDOTOPT" = x; then | |
5004 | OCAMLCDOTOPT="no" | |
5005 | else | |
5006 | case $cross_compiling:$ac_tool_warned in | |
5007 | yes:) | |
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;} | |
5010 | ac_tool_warned=yes ;; | |
5011 | esac | |
5012 | OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT | |
5013 | fi | |
5014 | else | |
5015 | OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT" | |
5016 | fi | |
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. | |
5032 | set 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; } | |
5035 | if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then : | |
5036 | $as_echo_n "(cached) " >&6 | |
5037 | else | |
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 | |
5044 | for as_dir in $PATH | |
5045 | do | |
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 | |
5054 | done | |
5055 | done | |
5056 | IFS=$as_save_IFS | |
5057 | ||
5058 | ;; | |
5059 | esac | |
5060 | fi | |
5061 | OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT | |
5062 | if test -n "$OCAMLOPTDOTOPT"; then | |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5 | |
5064 | $as_echo "$OCAMLOPTDOTOPT" >&6; } | |
5065 | else | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5067 | $as_echo "no" >&6; } | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | fi | |
5072 | if 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. | |
5075 | set 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; } | |
5078 | if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then : | |
5079 | $as_echo_n "(cached) " >&6 | |
5080 | else | |
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 | |
5087 | for as_dir in $PATH | |
5088 | do | |
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 | |
5097 | done | |
5098 | done | |
5099 | IFS=$as_save_IFS | |
5100 | ||
5101 | ;; | |
5102 | esac | |
5103 | fi | |
5104 | ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT | |
5105 | if 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; } | |
5108 | else | |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5110 | $as_echo "no" >&6; } | |
5111 | fi | |
5112 | ||
5113 | if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then | |
5114 | OCAMLOPTDOTOPT="no" | |
5115 | else | |
5116 | case $cross_compiling:$ac_tool_warned in | |
5117 | yes:) | |
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;} | |
5120 | ac_tool_warned=yes ;; | |
5121 | esac | |
5122 | OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT | |
5123 | fi | |
5124 | else | |
5125 | OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT" | |
5126 | fi | |
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. | |
5147 | set 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; } | |
5150 | if ${ac_cv_path_OCAML+:} false; then : | |
5151 | $as_echo_n "(cached) " >&6 | |
5152 | else | |
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 | |
5159 | for as_dir in $PATH | |
5160 | do | |
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 | |
5169 | done | |
5170 | done | |
5171 | IFS=$as_save_IFS | |
5172 | ||
5173 | ;; | |
5174 | esac | |
5175 | fi | |
5176 | OCAML=$ac_cv_path_OCAML | |
5177 | if test -n "$OCAML"; then | |
5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5 | |
5179 | $as_echo "$OCAML" >&6; } | |
5180 | else | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5182 | $as_echo "no" >&6; } | |
5183 | fi | |
5184 | ||
5185 | ||
5186 | fi | |
5187 | if 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. | |
5190 | set 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; } | |
5193 | if ${ac_cv_path_ac_pt_OCAML+:} false; then : | |
5194 | $as_echo_n "(cached) " >&6 | |
5195 | else | |
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 | |
5202 | for as_dir in $PATH | |
5203 | do | |
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 | |
5212 | done | |
5213 | done | |
5214 | IFS=$as_save_IFS | |
5215 | ||
5216 | ;; | |
5217 | esac | |
5218 | fi | |
5219 | ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML | |
5220 | if 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; } | |
5223 | else | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5225 | $as_echo "no" >&6; } | |
5226 | fi | |
5227 | ||
5228 | if test "x$ac_pt_OCAML" = x; then | |
5229 | OCAML="no" | |
5230 | else | |
5231 | case $cross_compiling:$ac_tool_warned in | |
5232 | yes:) | |
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;} | |
5235 | ac_tool_warned=yes ;; | |
5236 | esac | |
5237 | OCAML=$ac_pt_OCAML | |
5238 | fi | |
5239 | else | |
5240 | OCAML="$ac_cv_path_OCAML" | |
5241 | fi | |
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. | |
5247 | set 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; } | |
5250 | if ${ac_cv_path_OCAMLDEP+:} false; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
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 | |
5259 | for as_dir in $PATH | |
5260 | do | |
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 | |
5269 | done | |
5270 | done | |
5271 | IFS=$as_save_IFS | |
5272 | ||
5273 | ;; | |
5274 | esac | |
5275 | fi | |
5276 | OCAMLDEP=$ac_cv_path_OCAMLDEP | |
5277 | if test -n "$OCAMLDEP"; then | |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5 | |
5279 | $as_echo "$OCAMLDEP" >&6; } | |
5280 | else | |
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5282 | $as_echo "no" >&6; } | |
5283 | fi | |
5284 | ||
5285 | ||
5286 | fi | |
5287 | if 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. | |
5290 | set 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; } | |
5293 | if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then : | |
5294 | $as_echo_n "(cached) " >&6 | |
5295 | else | |
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 | |
5302 | for as_dir in $PATH | |
5303 | do | |
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 | |
5312 | done | |
5313 | done | |
5314 | IFS=$as_save_IFS | |
5315 | ||
5316 | ;; | |
5317 | esac | |
5318 | fi | |
5319 | ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP | |
5320 | if 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; } | |
5323 | else | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5325 | $as_echo "no" >&6; } | |
5326 | fi | |
5327 | ||
5328 | if test "x$ac_pt_OCAMLDEP" = x; then | |
5329 | OCAMLDEP="no" | |
5330 | else | |
5331 | case $cross_compiling:$ac_tool_warned in | |
5332 | yes:) | |
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;} | |
5335 | ac_tool_warned=yes ;; | |
5336 | esac | |
5337 | OCAMLDEP=$ac_pt_OCAMLDEP | |
5338 | fi | |
5339 | else | |
5340 | OCAMLDEP="$ac_cv_path_OCAMLDEP" | |
5341 | fi | |
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. | |
5347 | set 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; } | |
5350 | if ${ac_cv_path_OCAMLMKTOP+:} false; then : | |
5351 | $as_echo_n "(cached) " >&6 | |
5352 | else | |
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 | |
5359 | for as_dir in $PATH | |
5360 | do | |
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 | |
5369 | done | |
5370 | done | |
5371 | IFS=$as_save_IFS | |
5372 | ||
5373 | ;; | |
5374 | esac | |
5375 | fi | |
5376 | OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP | |
5377 | if test -n "$OCAMLMKTOP"; then | |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5 | |
5379 | $as_echo "$OCAMLMKTOP" >&6; } | |
5380 | else | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5382 | $as_echo "no" >&6; } | |
5383 | fi | |
5384 | ||
5385 | ||
5386 | fi | |
5387 | if 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. | |
5390 | set 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; } | |
5393 | if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then : | |
5394 | $as_echo_n "(cached) " >&6 | |
5395 | else | |
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 | |
5402 | for as_dir in $PATH | |
5403 | do | |
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 | |
5412 | done | |
5413 | done | |
5414 | IFS=$as_save_IFS | |
5415 | ||
5416 | ;; | |
5417 | esac | |
5418 | fi | |
5419 | ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP | |
5420 | if 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; } | |
5423 | else | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5425 | $as_echo "no" >&6; } | |
5426 | fi | |
5427 | ||
5428 | if test "x$ac_pt_OCAMLMKTOP" = x; then | |
5429 | OCAMLMKTOP="no" | |
5430 | else | |
5431 | case $cross_compiling:$ac_tool_warned in | |
5432 | yes:) | |
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;} | |
5435 | ac_tool_warned=yes ;; | |
5436 | esac | |
5437 | OCAMLMKTOP=$ac_pt_OCAMLMKTOP | |
5438 | fi | |
5439 | else | |
5440 | OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP" | |
5441 | fi | |
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. | |
5447 | set 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; } | |
5450 | if ${ac_cv_path_OCAMLMKLIB+:} false; then : | |
5451 | $as_echo_n "(cached) " >&6 | |
5452 | else | |
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 | |
5459 | for as_dir in $PATH | |
5460 | do | |
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 | |
5469 | done | |
5470 | done | |
5471 | IFS=$as_save_IFS | |
5472 | ||
5473 | ;; | |
5474 | esac | |
5475 | fi | |
5476 | OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB | |
5477 | if test -n "$OCAMLMKLIB"; then | |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5 | |
5479 | $as_echo "$OCAMLMKLIB" >&6; } | |
5480 | else | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5482 | $as_echo "no" >&6; } | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | fi | |
5487 | if 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. | |
5490 | set 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; } | |
5493 | if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then : | |
5494 | $as_echo_n "(cached) " >&6 | |
5495 | else | |
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 | |
5502 | for as_dir in $PATH | |
5503 | do | |
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 | |
5512 | done | |
5513 | done | |
5514 | IFS=$as_save_IFS | |
5515 | ||
5516 | ;; | |
5517 | esac | |
5518 | fi | |
5519 | ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB | |
5520 | if 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; } | |
5523 | else | |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5525 | $as_echo "no" >&6; } | |
5526 | fi | |
5527 | ||
5528 | if test "x$ac_pt_OCAMLMKLIB" = x; then | |
5529 | OCAMLMKLIB="no" | |
5530 | else | |
5531 | case $cross_compiling:$ac_tool_warned in | |
5532 | yes:) | |
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;} | |
5535 | ac_tool_warned=yes ;; | |
5536 | esac | |
5537 | OCAMLMKLIB=$ac_pt_OCAMLMKLIB | |
5538 | fi | |
5539 | else | |
5540 | OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB" | |
5541 | fi | |
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. | |
5547 | set 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; } | |
5550 | if ${ac_cv_path_OCAMLDOC+:} false; then : | |
5551 | $as_echo_n "(cached) " >&6 | |
5552 | else | |
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 | |
5559 | for as_dir in $PATH | |
5560 | do | |
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 | |
5569 | done | |
5570 | done | |
5571 | IFS=$as_save_IFS | |
5572 | ||
5573 | ;; | |
5574 | esac | |
5575 | fi | |
5576 | OCAMLDOC=$ac_cv_path_OCAMLDOC | |
5577 | if test -n "$OCAMLDOC"; then | |
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5 | |
5579 | $as_echo "$OCAMLDOC" >&6; } | |
5580 | else | |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5582 | $as_echo "no" >&6; } | |
5583 | fi | |
5584 | ||
5585 | ||
5586 | fi | |
5587 | if 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. | |
5590 | set 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; } | |
5593 | if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then : | |
5594 | $as_echo_n "(cached) " >&6 | |
5595 | else | |
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 | |
5602 | for as_dir in $PATH | |
5603 | do | |
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 | |
5612 | done | |
5613 | done | |
5614 | IFS=$as_save_IFS | |
5615 | ||
5616 | ;; | |
5617 | esac | |
5618 | fi | |
5619 | ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC | |
5620 | if 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; } | |
5623 | else | |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5625 | $as_echo "no" >&6; } | |
5626 | fi | |
5627 | ||
5628 | if test "x$ac_pt_OCAMLDOC" = x; then | |
5629 | OCAMLDOC="no" | |
5630 | else | |
5631 | case $cross_compiling:$ac_tool_warned in | |
5632 | yes:) | |
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;} | |
5635 | ac_tool_warned=yes ;; | |
5636 | esac | |
5637 | OCAMLDOC=$ac_pt_OCAMLDOC | |
5638 | fi | |
5639 | else | |
5640 | OCAMLDOC="$ac_cv_path_OCAMLDOC" | |
5641 | fi | |
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. | |
5647 | set 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; } | |
5650 | if ${ac_cv_path_OCAMLBUILD+:} false; then : | |
5651 | $as_echo_n "(cached) " >&6 | |
5652 | else | |
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 | |
5659 | for as_dir in $PATH | |
5660 | do | |
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 | |
5669 | done | |
5670 | done | |
5671 | IFS=$as_save_IFS | |
5672 | ||
5673 | ;; | |
5674 | esac | |
5675 | fi | |
5676 | OCAMLBUILD=$ac_cv_path_OCAMLBUILD | |
5677 | if test -n "$OCAMLBUILD"; then | |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 | |
5679 | $as_echo "$OCAMLBUILD" >&6; } | |
5680 | else | |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5682 | $as_echo "no" >&6; } | |
5683 | fi | |
5684 | ||
5685 | ||
5686 | fi | |
5687 | if 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. | |
5690 | set 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; } | |
5693 | if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then : | |
5694 | $as_echo_n "(cached) " >&6 | |
5695 | else | |
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 | |
5702 | for as_dir in $PATH | |
5703 | do | |
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 | |
5712 | done | |
5713 | done | |
5714 | IFS=$as_save_IFS | |
5715 | ||
5716 | ;; | |
5717 | esac | |
5718 | fi | |
5719 | ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD | |
5720 | if 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; } | |
5723 | else | |
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5725 | $as_echo "no" >&6; } | |
5726 | fi | |
5727 | ||
5728 | if test "x$ac_pt_OCAMLBUILD" = x; then | |
5729 | OCAMLBUILD="no" | |
5730 | else | |
5731 | case $cross_compiling:$ac_tool_warned in | |
5732 | yes:) | |
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;} | |
5735 | ac_tool_warned=yes ;; | |
5736 | esac | |
5737 | OCAMLBUILD=$ac_pt_OCAMLBUILD | |
5738 | fi | |
5739 | else | |
5740 | OCAMLBUILD="$ac_cv_path_OCAMLBUILD" | |
5741 | fi | |
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 | |
5748 | as_arg_v2=3.10 | |
5749 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
5750 | case $? in #( | |
5751 | 1) : | |
5752 | versioncheck=no ;; #( | |
5753 | 0) : | |
5754 | versioncheck=yes ;; #( | |
5755 | 2) : | |
5756 | versioncheck=yes ;; #( | |
5757 | *) : | |
5758 | ;; | |
5759 | esac | |
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 | |
5769 | as_arg_v2=3.11 | |
5770 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
5771 | case $? in #( | |
5772 | 1) : | |
5773 | versioncheck=no ;; #( | |
5774 | 0) : | |
5775 | versioncheck=yes ;; #( | |
5776 | 2) : | |
5777 | versioncheck=yes ;; #( | |
5778 | *) : | |
5779 | ;; | |
5780 | esac | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5 | |
5782 | $as_echo "$versioncheck" >&6; } | |
5783 | OCAMLATLEAST311=$versioncheck | |
5784 | ||
5785 | ||
5786 | ||
5787 | if 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 | ||
5790 | fi | |
5791 | if 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;} | |
5794 | fi | |
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. | |
5800 | set 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; } | |
5803 | if ${ac_cv_path_CAMLP4+:} false; then : | |
5804 | $as_echo_n "(cached) " >&6 | |
5805 | else | |
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 | |
5812 | for as_dir in $PATH | |
5813 | do | |
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 | |
5822 | done | |
5823 | done | |
5824 | IFS=$as_save_IFS | |
5825 | ||
5826 | ;; | |
5827 | esac | |
5828 | fi | |
5829 | CAMLP4=$ac_cv_path_CAMLP4 | |
5830 | if test -n "$CAMLP4"; then | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5 | |
5832 | $as_echo "$CAMLP4" >&6; } | |
5833 | else | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5835 | $as_echo "no" >&6; } | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | fi | |
5840 | if 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. | |
5843 | set 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; } | |
5846 | if ${ac_cv_path_ac_pt_CAMLP4+:} false; then : | |
5847 | $as_echo_n "(cached) " >&6 | |
5848 | else | |
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 | |
5855 | for as_dir in $PATH | |
5856 | do | |
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 | |
5865 | done | |
5866 | done | |
5867 | IFS=$as_save_IFS | |
5868 | ||
5869 | ;; | |
5870 | esac | |
5871 | fi | |
5872 | ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4 | |
5873 | if 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; } | |
5876 | else | |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5878 | $as_echo "no" >&6; } | |
5879 | fi | |
5880 | ||
5881 | if test "x$ac_pt_CAMLP4" = x; then | |
5882 | CAMLP4="no" | |
5883 | else | |
5884 | case $cross_compiling:$ac_tool_warned in | |
5885 | yes:) | |
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;} | |
5888 | ac_tool_warned=yes ;; | |
5889 | esac | |
5890 | CAMLP4=$ac_pt_CAMLP4 | |
5891 | fi | |
5892 | else | |
5893 | CAMLP4="$ac_cv_path_CAMLP4" | |
5894 | fi | |
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. | |
5909 | set 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; } | |
5912 | if ${ac_cv_path_CAMLP4BOOT+:} false; then : | |
5913 | $as_echo_n "(cached) " >&6 | |
5914 | else | |
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 | |
5921 | for as_dir in $PATH | |
5922 | do | |
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 | |
5931 | done | |
5932 | done | |
5933 | IFS=$as_save_IFS | |
5934 | ||
5935 | ;; | |
5936 | esac | |
5937 | fi | |
5938 | CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT | |
5939 | if test -n "$CAMLP4BOOT"; then | |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5 | |
5941 | $as_echo "$CAMLP4BOOT" >&6; } | |
5942 | else | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5944 | $as_echo "no" >&6; } | |
5945 | fi | |
5946 | ||
5947 | ||
5948 | fi | |
5949 | if 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. | |
5952 | set 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; } | |
5955 | if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then : | |
5956 | $as_echo_n "(cached) " >&6 | |
5957 | else | |
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 | |
5964 | for as_dir in $PATH | |
5965 | do | |
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 | |
5974 | done | |
5975 | done | |
5976 | IFS=$as_save_IFS | |
5977 | ||
5978 | ;; | |
5979 | esac | |
5980 | fi | |
5981 | ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT | |
5982 | if 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; } | |
5985 | else | |
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5987 | $as_echo "no" >&6; } | |
5988 | fi | |
5989 | ||
5990 | if test "x$ac_pt_CAMLP4BOOT" = x; then | |
5991 | CAMLP4BOOT="no" | |
5992 | else | |
5993 | case $cross_compiling:$ac_tool_warned in | |
5994 | yes:) | |
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;} | |
5997 | ac_tool_warned=yes ;; | |
5998 | esac | |
5999 | CAMLP4BOOT=$ac_pt_CAMLP4BOOT | |
6000 | fi | |
6001 | else | |
6002 | CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT" | |
6003 | fi | |
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. | |
6007 | set 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; } | |
6010 | if ${ac_cv_path_CAMLP4O+:} false; then : | |
6011 | $as_echo_n "(cached) " >&6 | |
6012 | else | |
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 | |
6019 | for as_dir in $PATH | |
6020 | do | |
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 | |
6029 | done | |
6030 | done | |
6031 | IFS=$as_save_IFS | |
6032 | ||
6033 | ;; | |
6034 | esac | |
6035 | fi | |
6036 | CAMLP4O=$ac_cv_path_CAMLP4O | |
6037 | if test -n "$CAMLP4O"; then | |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5 | |
6039 | $as_echo "$CAMLP4O" >&6; } | |
6040 | else | |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6042 | $as_echo "no" >&6; } | |
6043 | fi | |
6044 | ||
6045 | ||
6046 | fi | |
6047 | if 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. | |
6050 | set 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; } | |
6053 | if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then : | |
6054 | $as_echo_n "(cached) " >&6 | |
6055 | else | |
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 | |
6062 | for as_dir in $PATH | |
6063 | do | |
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 | |
6072 | done | |
6073 | done | |
6074 | IFS=$as_save_IFS | |
6075 | ||
6076 | ;; | |
6077 | esac | |
6078 | fi | |
6079 | ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O | |
6080 | if 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; } | |
6083 | else | |
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6085 | $as_echo "no" >&6; } | |
6086 | fi | |
6087 | ||
6088 | if test "x$ac_pt_CAMLP4O" = x; then | |
6089 | CAMLP4O="no" | |
6090 | else | |
6091 | case $cross_compiling:$ac_tool_warned in | |
6092 | yes:) | |
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;} | |
6095 | ac_tool_warned=yes ;; | |
6096 | esac | |
6097 | CAMLP4O=$ac_pt_CAMLP4O | |
6098 | fi | |
6099 | else | |
6100 | CAMLP4O="$ac_cv_path_CAMLP4O" | |
6101 | fi | |
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. | |
6105 | set 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; } | |
6108 | if ${ac_cv_path_CAMLP4OF+:} false; then : | |
6109 | $as_echo_n "(cached) " >&6 | |
6110 | else | |
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 | |
6117 | for as_dir in $PATH | |
6118 | do | |
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 | |
6127 | done | |
6128 | done | |
6129 | IFS=$as_save_IFS | |
6130 | ||
6131 | ;; | |
6132 | esac | |
6133 | fi | |
6134 | CAMLP4OF=$ac_cv_path_CAMLP4OF | |
6135 | if test -n "$CAMLP4OF"; then | |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5 | |
6137 | $as_echo "$CAMLP4OF" >&6; } | |
6138 | else | |
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6140 | $as_echo "no" >&6; } | |
6141 | fi | |
6142 | ||
6143 | ||
6144 | fi | |
6145 | if 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. | |
6148 | set 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; } | |
6151 | if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then : | |
6152 | $as_echo_n "(cached) " >&6 | |
6153 | else | |
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 | |
6160 | for as_dir in $PATH | |
6161 | do | |
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 | |
6170 | done | |
6171 | done | |
6172 | IFS=$as_save_IFS | |
6173 | ||
6174 | ;; | |
6175 | esac | |
6176 | fi | |
6177 | ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF | |
6178 | if 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; } | |
6181 | else | |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6183 | $as_echo "no" >&6; } | |
6184 | fi | |
6185 | ||
6186 | if test "x$ac_pt_CAMLP4OF" = x; then | |
6187 | CAMLP4OF="no" | |
6188 | else | |
6189 | case $cross_compiling:$ac_tool_warned in | |
6190 | yes:) | |
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;} | |
6193 | ac_tool_warned=yes ;; | |
6194 | esac | |
6195 | CAMLP4OF=$ac_pt_CAMLP4OF | |
6196 | fi | |
6197 | else | |
6198 | CAMLP4OF="$ac_cv_path_CAMLP4OF" | |
6199 | fi | |
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. | |
6203 | set 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; } | |
6206 | if ${ac_cv_path_CAMLP4OOF+:} false; then : | |
6207 | $as_echo_n "(cached) " >&6 | |
6208 | else | |
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 | |
6215 | for as_dir in $PATH | |
6216 | do | |
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 | |
6225 | done | |
6226 | done | |
6227 | IFS=$as_save_IFS | |
6228 | ||
6229 | ;; | |
6230 | esac | |
6231 | fi | |
6232 | CAMLP4OOF=$ac_cv_path_CAMLP4OOF | |
6233 | if test -n "$CAMLP4OOF"; then | |
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5 | |
6235 | $as_echo "$CAMLP4OOF" >&6; } | |
6236 | else | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6238 | $as_echo "no" >&6; } | |
6239 | fi | |
6240 | ||
6241 | ||
6242 | fi | |
6243 | if 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. | |
6246 | set 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; } | |
6249 | if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then : | |
6250 | $as_echo_n "(cached) " >&6 | |
6251 | else | |
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 | |
6258 | for as_dir in $PATH | |
6259 | do | |
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 | |
6268 | done | |
6269 | done | |
6270 | IFS=$as_save_IFS | |
6271 | ||
6272 | ;; | |
6273 | esac | |
6274 | fi | |
6275 | ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF | |
6276 | if 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; } | |
6279 | else | |
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6281 | $as_echo "no" >&6; } | |
6282 | fi | |
6283 | ||
6284 | if test "x$ac_pt_CAMLP4OOF" = x; then | |
6285 | CAMLP4OOF="no" | |
6286 | else | |
6287 | case $cross_compiling:$ac_tool_warned in | |
6288 | yes:) | |
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;} | |
6291 | ac_tool_warned=yes ;; | |
6292 | esac | |
6293 | CAMLP4OOF=$ac_pt_CAMLP4OOF | |
6294 | fi | |
6295 | else | |
6296 | CAMLP4OOF="$ac_cv_path_CAMLP4OOF" | |
6297 | fi | |
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. | |
6301 | set 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; } | |
6304 | if ${ac_cv_path_CAMLP4ORF+:} false; then : | |
6305 | $as_echo_n "(cached) " >&6 | |
6306 | else | |
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 | |
6313 | for as_dir in $PATH | |
6314 | do | |
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 | |
6323 | done | |
6324 | done | |
6325 | IFS=$as_save_IFS | |
6326 | ||
6327 | ;; | |
6328 | esac | |
6329 | fi | |
6330 | CAMLP4ORF=$ac_cv_path_CAMLP4ORF | |
6331 | if test -n "$CAMLP4ORF"; then | |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5 | |
6333 | $as_echo "$CAMLP4ORF" >&6; } | |
6334 | else | |
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6336 | $as_echo "no" >&6; } | |
6337 | fi | |
6338 | ||
6339 | ||
6340 | fi | |
6341 | if 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. | |
6344 | set 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; } | |
6347 | if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then : | |
6348 | $as_echo_n "(cached) " >&6 | |
6349 | else | |
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 | |
6356 | for as_dir in $PATH | |
6357 | do | |
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 | |
6366 | done | |
6367 | done | |
6368 | IFS=$as_save_IFS | |
6369 | ||
6370 | ;; | |
6371 | esac | |
6372 | fi | |
6373 | ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF | |
6374 | if 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; } | |
6377 | else | |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6379 | $as_echo "no" >&6; } | |
6380 | fi | |
6381 | ||
6382 | if test "x$ac_pt_CAMLP4ORF" = x; then | |
6383 | CAMLP4ORF="no" | |
6384 | else | |
6385 | case $cross_compiling:$ac_tool_warned in | |
6386 | yes:) | |
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;} | |
6389 | ac_tool_warned=yes ;; | |
6390 | esac | |
6391 | CAMLP4ORF=$ac_pt_CAMLP4ORF | |
6392 | fi | |
6393 | else | |
6394 | CAMLP4ORF="$ac_cv_path_CAMLP4ORF" | |
6395 | fi | |
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. | |
6399 | set 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; } | |
6402 | if ${ac_cv_path_CAMLP4PROF+:} false; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
6404 | else | |
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 | |
6411 | for as_dir in $PATH | |
6412 | do | |
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 | |
6421 | done | |
6422 | done | |
6423 | IFS=$as_save_IFS | |
6424 | ||
6425 | ;; | |
6426 | esac | |
6427 | fi | |
6428 | CAMLP4PROF=$ac_cv_path_CAMLP4PROF | |
6429 | if test -n "$CAMLP4PROF"; then | |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5 | |
6431 | $as_echo "$CAMLP4PROF" >&6; } | |
6432 | else | |
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6434 | $as_echo "no" >&6; } | |
6435 | fi | |
6436 | ||
6437 | ||
6438 | fi | |
6439 | if 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. | |
6442 | set 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; } | |
6445 | if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then : | |
6446 | $as_echo_n "(cached) " >&6 | |
6447 | else | |
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 | |
6454 | for as_dir in $PATH | |
6455 | do | |
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 | |
6464 | done | |
6465 | done | |
6466 | IFS=$as_save_IFS | |
6467 | ||
6468 | ;; | |
6469 | esac | |
6470 | fi | |
6471 | ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF | |
6472 | if 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; } | |
6475 | else | |
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6477 | $as_echo "no" >&6; } | |
6478 | fi | |
6479 | ||
6480 | if test "x$ac_pt_CAMLP4PROF" = x; then | |
6481 | CAMLP4PROF="no" | |
6482 | else | |
6483 | case $cross_compiling:$ac_tool_warned in | |
6484 | yes:) | |
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;} | |
6487 | ac_tool_warned=yes ;; | |
6488 | esac | |
6489 | CAMLP4PROF=$ac_pt_CAMLP4PROF | |
6490 | fi | |
6491 | else | |
6492 | CAMLP4PROF="$ac_cv_path_CAMLP4PROF" | |
6493 | fi | |
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. | |
6497 | set 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; } | |
6500 | if ${ac_cv_path_CAMLP4R+:} false; then : | |
6501 | $as_echo_n "(cached) " >&6 | |
6502 | else | |
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 | |
6509 | for as_dir in $PATH | |
6510 | do | |
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 | |
6519 | done | |
6520 | done | |
6521 | IFS=$as_save_IFS | |
6522 | ||
6523 | ;; | |
6524 | esac | |
6525 | fi | |
6526 | CAMLP4R=$ac_cv_path_CAMLP4R | |
6527 | if test -n "$CAMLP4R"; then | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5 | |
6529 | $as_echo "$CAMLP4R" >&6; } | |
6530 | else | |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6532 | $as_echo "no" >&6; } | |
6533 | fi | |
6534 | ||
6535 | ||
6536 | fi | |
6537 | if 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. | |
6540 | set 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; } | |
6543 | if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then : | |
6544 | $as_echo_n "(cached) " >&6 | |
6545 | else | |
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 | |
6552 | for as_dir in $PATH | |
6553 | do | |
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 | |
6562 | done | |
6563 | done | |
6564 | IFS=$as_save_IFS | |
6565 | ||
6566 | ;; | |
6567 | esac | |
6568 | fi | |
6569 | ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R | |
6570 | if 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; } | |
6573 | else | |
6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6575 | $as_echo "no" >&6; } | |
6576 | fi | |
6577 | ||
6578 | if test "x$ac_pt_CAMLP4R" = x; then | |
6579 | CAMLP4R="no" | |
6580 | else | |
6581 | case $cross_compiling:$ac_tool_warned in | |
6582 | yes:) | |
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;} | |
6585 | ac_tool_warned=yes ;; | |
6586 | esac | |
6587 | CAMLP4R=$ac_pt_CAMLP4R | |
6588 | fi | |
6589 | else | |
6590 | CAMLP4R="$ac_cv_path_CAMLP4R" | |
6591 | fi | |
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. | |
6595 | set 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; } | |
6598 | if ${ac_cv_path_CAMLP4RF+:} false; then : | |
6599 | $as_echo_n "(cached) " >&6 | |
6600 | else | |
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 | |
6607 | for as_dir in $PATH | |
6608 | do | |
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 | |
6617 | done | |
6618 | done | |
6619 | IFS=$as_save_IFS | |
6620 | ||
6621 | ;; | |
6622 | esac | |
6623 | fi | |
6624 | CAMLP4RF=$ac_cv_path_CAMLP4RF | |
6625 | if test -n "$CAMLP4RF"; then | |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5 | |
6627 | $as_echo "$CAMLP4RF" >&6; } | |
6628 | else | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6630 | $as_echo "no" >&6; } | |
6631 | fi | |
6632 | ||
6633 | ||
6634 | fi | |
6635 | if 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. | |
6638 | set 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; } | |
6641 | if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then : | |
6642 | $as_echo_n "(cached) " >&6 | |
6643 | else | |
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 | |
6650 | for as_dir in $PATH | |
6651 | do | |
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 | |
6660 | done | |
6661 | done | |
6662 | IFS=$as_save_IFS | |
6663 | ||
6664 | ;; | |
6665 | esac | |
6666 | fi | |
6667 | ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF | |
6668 | if 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; } | |
6671 | else | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6673 | $as_echo "no" >&6; } | |
6674 | fi | |
6675 | ||
6676 | if test "x$ac_pt_CAMLP4RF" = x; then | |
6677 | CAMLP4RF="no" | |
6678 | else | |
6679 | case $cross_compiling:$ac_tool_warned in | |
6680 | yes:) | |
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;} | |
6683 | ac_tool_warned=yes ;; | |
6684 | esac | |
6685 | CAMLP4RF=$ac_pt_CAMLP4RF | |
6686 | fi | |
6687 | else | |
6688 | CAMLP4RF="$ac_cv_path_CAMLP4RF" | |
6689 | fi | |
6690 | ||
6691 | ||
6692 | ||
6693 | ||
6694 | ||
6695 | ||
6696 | ||
6697 | ||
6698 | ||
6699 | ||
6700 | ||
6701 | ||
6702 | # Check whether --with-ocamllex was given. | |
6703 | if test "${with_ocamllex+set}" = set; then : | |
6704 | withval=$with_ocamllex; | |
6705 | fi | |
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 |
6713 | else |
6714 | OCAMLLEX="ocamllex" | |
6715 | ||
6716 | ||
feec80c3 C |
6717 | fi |
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 | ||
6725 | else | |
6726 | if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then : | |
feec80c3 C |
6727 | |
6728 | ||
6729 | if 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. | |
6732 | set 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; } | |
6735 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
6736 | $as_echo_n "(cached) " >&6 | |
6737 | else | |
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 | |
6744 | for as_dir in $PATH | |
6745 | do | |
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 | |
6754 | done | |
6755 | done | |
6756 | IFS=$as_save_IFS | |
6757 | ||
6758 | ;; | |
6759 | esac | |
6760 | fi | |
6761 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
6762 | if test -n "$PKG_CONFIG"; then | |
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
6764 | $as_echo "$PKG_CONFIG" >&6; } | |
6765 | else | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6767 | $as_echo "no" >&6; } | |
6768 | fi | |
6769 | ||
6770 | ||
6771 | fi | |
6772 | if 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. | |
6775 | set 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; } | |
6778 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
6779 | $as_echo_n "(cached) " >&6 | |
6780 | else | |
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 | |
6787 | for as_dir in $PATH | |
6788 | do | |
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 | |
6797 | done | |
6798 | done | |
6799 | IFS=$as_save_IFS | |
6800 | ||
6801 | ;; | |
6802 | esac | |
6803 | fi | |
6804 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
6805 | if 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; } | |
6808 | else | |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6810 | $as_echo "no" >&6; } | |
6811 | fi | |
6812 | ||
6813 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
6814 | PKG_CONFIG="" | |
6815 | else | |
6816 | case $cross_compiling:$ac_tool_warned in | |
6817 | yes:) | |
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;} | |
6820 | ac_tool_warned=yes ;; | |
6821 | esac | |
6822 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
6823 | fi | |
6824 | else | |
6825 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
6826 | fi | |
6827 | ||
6828 | fi | |
6829 | if 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 | ||
6842 | fi | |
6843 | ||
d6ce1786 | 6844 | elif 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. | |
6848 | set 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; } | |
6851 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
6852 | $as_echo_n "(cached) " >&6 | |
6853 | else | |
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 | |
6860 | for as_dir in $PATH | |
6861 | do | |
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 | |
6870 | done | |
6871 | done | |
6872 | IFS=$as_save_IFS | |
6873 | ||
6874 | ;; | |
6875 | esac | |
6876 | fi | |
6877 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
6878 | if test -n "$OCAMLLEX"; then | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
6880 | $as_echo "$OCAMLLEX" >&6; } | |
6881 | else | |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6883 | $as_echo "no" >&6; } | |
6884 | fi | |
6885 | ||
6886 | ||
6887 | fi | |
6888 | if 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. | |
6891 | set 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; } | |
6894 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
6895 | $as_echo_n "(cached) " >&6 | |
6896 | else | |
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 | |
6903 | for as_dir in $PATH | |
6904 | do | |
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 | |
6913 | done | |
6914 | done | |
6915 | IFS=$as_save_IFS | |
6916 | ||
6917 | ;; | |
6918 | esac | |
6919 | fi | |
6920 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
6921 | if 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; } | |
6924 | else | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6926 | $as_echo "no" >&6; } | |
6927 | fi | |
6928 | ||
6929 | if test "x$ac_pt_OCAMLLEX" = x; then | |
6930 | OCAMLLEX="no" | |
6931 | else | |
6932 | case $cross_compiling:$ac_tool_warned in | |
6933 | yes:) | |
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;} | |
6936 | ac_tool_warned=yes ;; | |
6937 | esac | |
6938 | OCAMLLEX=$ac_pt_OCAMLLEX | |
6939 | fi | |
6940 | else | |
6941 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
6942 | fi | |
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. | |
6947 | set 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; } | |
6950 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
6951 | $as_echo_n "(cached) " >&6 | |
6952 | else | |
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 | |
6959 | for as_dir in $PATH | |
6960 | do | |
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 | |
6969 | done | |
6970 | done | |
6971 | IFS=$as_save_IFS | |
6972 | ||
6973 | ;; | |
6974 | esac | |
6975 | fi | |
6976 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
6977 | if test -n "$OCAMLLEXDOTOPT"; then | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
6979 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
6980 | else | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6982 | $as_echo "no" >&6; } | |
6983 | fi | |
6984 | ||
6985 | ||
6986 | fi | |
6987 | if 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. | |
6990 | set 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; } | |
6993 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
6994 | $as_echo_n "(cached) " >&6 | |
6995 | else | |
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 | |
7002 | for as_dir in $PATH | |
7003 | do | |
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 | |
7012 | done | |
7013 | done | |
7014 | IFS=$as_save_IFS | |
7015 | ||
7016 | ;; | |
7017 | esac | |
7018 | fi | |
7019 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
7020 | if 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; } | |
7023 | else | |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7025 | $as_echo "no" >&6; } | |
7026 | fi | |
7027 | ||
7028 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
7029 | OCAMLLEXDOTOPT="no" | |
7030 | else | |
7031 | case $cross_compiling:$ac_tool_warned in | |
7032 | yes:) | |
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;} | |
7035 | ac_tool_warned=yes ;; | |
7036 | esac | |
7037 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
7038 | fi | |
7039 | else | |
7040 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
7041 | fi | |
7042 | ||
7043 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
7044 | OCAMLLEX=$OCAMLLEXDOTOPT | |
7045 | fi | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | ||
d6ce1786 | 7050 | elif 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. | |
7053 | set 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; } | |
7056 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
7057 | $as_echo_n "(cached) " >&6 | |
7058 | else | |
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 | |
7065 | for as_dir in $PATH | |
7066 | do | |
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 | |
7075 | done | |
7076 | done | |
7077 | IFS=$as_save_IFS | |
7078 | ||
7079 | ;; | |
7080 | esac | |
7081 | fi | |
7082 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
7083 | if test -n "$OCAMLYACC"; then | |
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
7085 | $as_echo "$OCAMLYACC" >&6; } | |
7086 | else | |
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7088 | $as_echo "no" >&6; } | |
7089 | fi | |
7090 | ||
7091 | ||
7092 | fi | |
7093 | if 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. | |
7096 | set 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; } | |
7099 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
7100 | $as_echo_n "(cached) " >&6 | |
7101 | else | |
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 | |
7108 | for as_dir in $PATH | |
7109 | do | |
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 | |
7118 | done | |
7119 | done | |
7120 | IFS=$as_save_IFS | |
7121 | ||
7122 | ;; | |
7123 | esac | |
7124 | fi | |
7125 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
7126 | if 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; } | |
7129 | else | |
7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7131 | $as_echo "no" >&6; } | |
7132 | fi | |
7133 | ||
7134 | if test "x$ac_pt_OCAMLYACC" = x; then | |
7135 | OCAMLYACC="no" | |
7136 | else | |
7137 | case $cross_compiling:$ac_tool_warned in | |
7138 | yes:) | |
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;} | |
7141 | ac_tool_warned=yes ;; | |
7142 | esac | |
7143 | OCAMLYACC=$ac_pt_OCAMLYACC | |
7144 | fi | |
7145 | else | |
7146 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
7147 | fi | |
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | else | |
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. |
7155 | set 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; } | |
7158 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
7159 | $as_echo_n "(cached) " >&6 | |
7160 | else | |
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 | |
7167 | for as_dir in $PATH | |
7168 | do | |
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 | |
7177 | done | |
7178 | done | |
7179 | IFS=$as_save_IFS | |
7180 | ||
7181 | ;; | |
7182 | esac | |
7183 | fi | |
7184 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
7185 | if test -n "$OCAMLLEX"; then | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
7187 | $as_echo "$OCAMLLEX" >&6; } | |
7188 | else | |
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7190 | $as_echo "no" >&6; } | |
7191 | fi | |
7192 | ||
7193 | ||
7194 | fi | |
7195 | if 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. |
7198 | set 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; } | |
7201 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
7202 | $as_echo_n "(cached) " >&6 | |
7203 | else | |
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 | |
7210 | for as_dir in $PATH | |
7211 | do | |
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 | |
7220 | done | |
7221 | done | |
7222 | IFS=$as_save_IFS | |
7223 | ||
7224 | ;; | |
7225 | esac | |
7226 | fi | |
7227 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
7228 | if 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; } | |
7231 | else | |
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7233 | $as_echo "no" >&6; } | |
7234 | fi | |
7235 | ||
7236 | if test "x$ac_pt_OCAMLLEX" = x; then | |
7237 | OCAMLLEX="" | |
7238 | else | |
7239 | case $cross_compiling:$ac_tool_warned in | |
7240 | yes:) | |
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;} | |
7243 | ac_tool_warned=yes ;; | |
7244 | esac | |
7245 | OCAMLLEX=$ac_pt_OCAMLLEX | |
7246 | fi | |
7247 | else | |
7248 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
7249 | fi | |
7250 | ||
7251 | ||
7252 | fi | |
7253 | ||
7254 | ||
7255 | fi | |
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 | ||
7261 | fi | |
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 | ||
7271 | if 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. | |
7274 | set 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; } | |
7277 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
7278 | $as_echo_n "(cached) " >&6 | |
7279 | else | |
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 | |
7286 | for as_dir in $PATH | |
7287 | do | |
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 | |
7296 | done | |
7297 | done | |
7298 | IFS=$as_save_IFS | |
7299 | ||
7300 | ;; | |
7301 | esac | |
7302 | fi | |
7303 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7304 | if test -n "$PKG_CONFIG"; then | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7306 | $as_echo "$PKG_CONFIG" >&6; } | |
7307 | else | |
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7309 | $as_echo "no" >&6; } | |
7310 | fi | |
7311 | ||
7312 | ||
7313 | fi | |
7314 | if 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. | |
7317 | set 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; } | |
7320 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
7321 | $as_echo_n "(cached) " >&6 | |
7322 | else | |
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 | |
7329 | for as_dir in $PATH | |
7330 | do | |
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 | |
7339 | done | |
7340 | done | |
7341 | IFS=$as_save_IFS | |
7342 | ||
7343 | ;; | |
7344 | esac | |
7345 | fi | |
7346 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7347 | if 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; } | |
7350 | else | |
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7352 | $as_echo "no" >&6; } | |
7353 | fi | |
7354 | ||
7355 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7356 | PKG_CONFIG="" | |
7357 | else | |
7358 | case $cross_compiling:$ac_tool_warned in | |
7359 | yes:) | |
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;} | |
7362 | ac_tool_warned=yes ;; | |
7363 | esac | |
7364 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7365 | fi | |
7366 | else | |
7367 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
7368 | fi | |
7369 | ||
7370 | fi | |
7371 | if 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 | ||
7384 | fi | |
7385 | ||
7386 | elif 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. | |
7390 | set 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; } | |
7393 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
7394 | $as_echo_n "(cached) " >&6 | |
7395 | else | |
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 | |
7402 | for as_dir in $PATH | |
7403 | do | |
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 | |
7412 | done | |
7413 | done | |
7414 | IFS=$as_save_IFS | |
7415 | ||
7416 | ;; | |
7417 | esac | |
7418 | fi | |
7419 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
7420 | if test -n "$OCAMLLEX"; then | |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
7422 | $as_echo "$OCAMLLEX" >&6; } | |
7423 | else | |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7425 | $as_echo "no" >&6; } | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | fi | |
7430 | if 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. | |
7433 | set 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; } | |
7436 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
7437 | $as_echo_n "(cached) " >&6 | |
7438 | else | |
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 | |
7445 | for as_dir in $PATH | |
7446 | do | |
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 | |
7455 | done | |
7456 | done | |
7457 | IFS=$as_save_IFS | |
7458 | ||
7459 | ;; | |
7460 | esac | |
7461 | fi | |
7462 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
7463 | if 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; } | |
7466 | else | |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7468 | $as_echo "no" >&6; } | |
7469 | fi | |
7470 | ||
7471 | if test "x$ac_pt_OCAMLLEX" = x; then | |
7472 | OCAMLLEX="no" | |
7473 | else | |
7474 | case $cross_compiling:$ac_tool_warned in | |
7475 | yes:) | |
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;} | |
7478 | ac_tool_warned=yes ;; | |
7479 | esac | |
7480 | OCAMLLEX=$ac_pt_OCAMLLEX | |
7481 | fi | |
7482 | else | |
7483 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
7484 | fi | |
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. | |
7489 | set 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; } | |
7492 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
7493 | $as_echo_n "(cached) " >&6 | |
7494 | else | |
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 | |
7501 | for as_dir in $PATH | |
7502 | do | |
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 | |
7511 | done | |
7512 | done | |
7513 | IFS=$as_save_IFS | |
7514 | ||
7515 | ;; | |
7516 | esac | |
7517 | fi | |
7518 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
7519 | if test -n "$OCAMLLEXDOTOPT"; then | |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
7521 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
7522 | else | |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7524 | $as_echo "no" >&6; } | |
7525 | fi | |
7526 | ||
7527 | ||
7528 | fi | |
7529 | if 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. | |
7532 | set 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; } | |
7535 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
7536 | $as_echo_n "(cached) " >&6 | |
7537 | else | |
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 | |
7544 | for as_dir in $PATH | |
7545 | do | |
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 | |
7554 | done | |
7555 | done | |
7556 | IFS=$as_save_IFS | |
7557 | ||
7558 | ;; | |
7559 | esac | |
7560 | fi | |
7561 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
7562 | if 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; } | |
7565 | else | |
7566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7567 | $as_echo "no" >&6; } | |
7568 | fi | |
7569 | ||
7570 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
7571 | OCAMLLEXDOTOPT="no" | |
7572 | else | |
7573 | case $cross_compiling:$ac_tool_warned in | |
7574 | yes:) | |
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;} | |
7577 | ac_tool_warned=yes ;; | |
7578 | esac | |
7579 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
7580 | fi | |
7581 | else | |
7582 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
7583 | fi | |
7584 | ||
7585 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
7586 | OCAMLLEX=$OCAMLLEXDOTOPT | |
7587 | fi | |
7588 | fi | |
7589 | ||
7590 | ||
7591 | ||
7592 | elif 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. | |
7595 | set 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; } | |
7598 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
7599 | $as_echo_n "(cached) " >&6 | |
7600 | else | |
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 | |
7607 | for as_dir in $PATH | |
7608 | do | |
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 | |
7617 | done | |
7618 | done | |
7619 | IFS=$as_save_IFS | |
7620 | ||
7621 | ;; | |
7622 | esac | |
7623 | fi | |
7624 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
7625 | if test -n "$OCAMLYACC"; then | |
7626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
7627 | $as_echo "$OCAMLYACC" >&6; } | |
7628 | else | |
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7630 | $as_echo "no" >&6; } | |
7631 | fi | |
7632 | ||
7633 | ||
7634 | fi | |
7635 | if 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. | |
7638 | set 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; } | |
7641 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
7642 | $as_echo_n "(cached) " >&6 | |
7643 | else | |
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 | |
7650 | for as_dir in $PATH | |
7651 | do | |
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 | |
7660 | done | |
7661 | done | |
7662 | IFS=$as_save_IFS | |
7663 | ||
7664 | ;; | |
7665 | esac | |
7666 | fi | |
7667 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
7668 | if 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; } | |
7671 | else | |
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7673 | $as_echo "no" >&6; } | |
7674 | fi | |
7675 | ||
7676 | if test "x$ac_pt_OCAMLYACC" = x; then | |
7677 | OCAMLYACC="no" | |
7678 | else | |
7679 | case $cross_compiling:$ac_tool_warned in | |
7680 | yes:) | |
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;} | |
7683 | ac_tool_warned=yes ;; | |
7684 | esac | |
7685 | OCAMLYACC=$ac_pt_OCAMLYACC | |
7686 | fi | |
7687 | else | |
7688 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
7689 | fi | |
7690 | ||
7691 | ||
7692 | ||
7693 | ||
7694 | else | |
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. | |
7697 | set 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; } | |
7700 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
7701 | $as_echo_n "(cached) " >&6 | |
7702 | else | |
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 | |
7709 | for as_dir in $PATH | |
7710 | do | |
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 | |
7719 | done | |
7720 | done | |
7721 | IFS=$as_save_IFS | |
7722 | ||
7723 | ;; | |
7724 | esac | |
7725 | fi | |
7726 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
7727 | if test -n "$OCAMLLEX"; then | |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
7729 | $as_echo "$OCAMLLEX" >&6; } | |
7730 | else | |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7732 | $as_echo "no" >&6; } | |
7733 | fi | |
7734 | ||
7735 | ||
7736 | fi | |
7737 | if 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. | |
7740 | set 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; } | |
7743 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
7744 | $as_echo_n "(cached) " >&6 | |
7745 | else | |
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 | |
7752 | for as_dir in $PATH | |
7753 | do | |
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 | |
7762 | done | |
7763 | done | |
7764 | IFS=$as_save_IFS | |
7765 | ||
7766 | ;; | |
7767 | esac | |
7768 | fi | |
7769 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
7770 | if 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; } | |
7773 | else | |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7775 | $as_echo "no" >&6; } | |
7776 | fi | |
7777 | ||
7778 | if test "x$ac_pt_OCAMLLEX" = x; then | |
7779 | OCAMLLEX="" | |
7780 | else | |
7781 | case $cross_compiling:$ac_tool_warned in | |
7782 | yes:) | |
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;} | |
7785 | ac_tool_warned=yes ;; | |
7786 | esac | |
7787 | OCAMLLEX=$ac_pt_OCAMLLEX | |
7788 | fi | |
7789 | else | |
7790 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
7791 | fi | |
7792 | ||
7793 | ||
7794 | fi | |
7795 | ||
7796 | SUBSTITUTED_OCAMLLEX=yes | |
7797 | ||
7798 | ||
7799 | fi | |
7800 | ||
7801 | fi | |
7802 | ||
7803 | if test -z "$OCAMLLEX"; then : | |
7804 | OCAMLLEX=no | |
7805 | ||
7806 | fi | |
7807 | ||
7808 | ||
7809 | ||
7810 | # Check whether --with-ocamlyacc was given. | |
7811 | if test "${with_ocamlyacc+set}" = set; then : | |
7812 | withval=$with_ocamlyacc; | |
7813 | fi | |
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 |
7821 | else |
7822 | OCAMLYACC="ocamlyacc" | |
7823 | ||
7824 | ||
feec80c3 C |
7825 | fi |
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 | ||
7833 | else | |
7834 | if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then : | |
feec80c3 C |
7835 | |
7836 | ||
7837 | if 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. | |
7840 | set 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; } | |
7843 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
7844 | $as_echo_n "(cached) " >&6 | |
7845 | else | |
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 | |
7852 | for as_dir in $PATH | |
7853 | do | |
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 | |
7862 | done | |
7863 | done | |
7864 | IFS=$as_save_IFS | |
7865 | ||
7866 | ;; | |
7867 | esac | |
7868 | fi | |
7869 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7870 | if test -n "$PKG_CONFIG"; then | |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7872 | $as_echo "$PKG_CONFIG" >&6; } | |
7873 | else | |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7875 | $as_echo "no" >&6; } | |
7876 | fi | |
7877 | ||
7878 | ||
7879 | fi | |
7880 | if 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. | |
7883 | set 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; } | |
7886 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
7887 | $as_echo_n "(cached) " >&6 | |
7888 | else | |
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 | |
7895 | for as_dir in $PATH | |
7896 | do | |
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 | |
7905 | done | |
7906 | done | |
7907 | IFS=$as_save_IFS | |
7908 | ||
7909 | ;; | |
7910 | esac | |
7911 | fi | |
7912 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
7913 | if 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; } | |
7916 | else | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7918 | $as_echo "no" >&6; } | |
7919 | fi | |
7920 | ||
7921 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
7922 | PKG_CONFIG="" | |
7923 | else | |
7924 | case $cross_compiling:$ac_tool_warned in | |
7925 | yes:) | |
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;} | |
7928 | ac_tool_warned=yes ;; | |
7929 | esac | |
7930 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7931 | fi | |
7932 | else | |
7933 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
7934 | fi | |
7935 | ||
7936 | fi | |
7937 | if 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 | ||
7950 | fi | |
7951 | ||
d6ce1786 | 7952 | elif 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. | |
7956 | set 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; } | |
7959 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
7960 | $as_echo_n "(cached) " >&6 | |
7961 | else | |
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 | |
7968 | for as_dir in $PATH | |
7969 | do | |
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 | |
7978 | done | |
7979 | done | |
7980 | IFS=$as_save_IFS | |
7981 | ||
7982 | ;; | |
7983 | esac | |
7984 | fi | |
7985 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
7986 | if test -n "$OCAMLLEX"; then | |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
7988 | $as_echo "$OCAMLLEX" >&6; } | |
7989 | else | |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7991 | $as_echo "no" >&6; } | |
7992 | fi | |
7993 | ||
7994 | ||
7995 | fi | |
7996 | if 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. | |
7999 | set 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; } | |
8002 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
8003 | $as_echo_n "(cached) " >&6 | |
8004 | else | |
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 | |
8011 | for as_dir in $PATH | |
8012 | do | |
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 | |
8021 | done | |
8022 | done | |
8023 | IFS=$as_save_IFS | |
8024 | ||
8025 | ;; | |
8026 | esac | |
8027 | fi | |
8028 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
8029 | if 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; } | |
8032 | else | |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8034 | $as_echo "no" >&6; } | |
8035 | fi | |
8036 | ||
8037 | if test "x$ac_pt_OCAMLLEX" = x; then | |
8038 | OCAMLLEX="no" | |
8039 | else | |
8040 | case $cross_compiling:$ac_tool_warned in | |
8041 | yes:) | |
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;} | |
8044 | ac_tool_warned=yes ;; | |
8045 | esac | |
8046 | OCAMLLEX=$ac_pt_OCAMLLEX | |
8047 | fi | |
8048 | else | |
8049 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
8050 | fi | |
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. | |
8055 | set 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; } | |
8058 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
8059 | $as_echo_n "(cached) " >&6 | |
8060 | else | |
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 | |
8067 | for as_dir in $PATH | |
8068 | do | |
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 | |
8077 | done | |
8078 | done | |
8079 | IFS=$as_save_IFS | |
8080 | ||
8081 | ;; | |
8082 | esac | |
8083 | fi | |
8084 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
8085 | if test -n "$OCAMLLEXDOTOPT"; then | |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
8087 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
8088 | else | |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8090 | $as_echo "no" >&6; } | |
8091 | fi | |
8092 | ||
8093 | ||
8094 | fi | |
8095 | if 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. | |
8098 | set 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; } | |
8101 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
8102 | $as_echo_n "(cached) " >&6 | |
8103 | else | |
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 | |
8110 | for as_dir in $PATH | |
8111 | do | |
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 | |
8120 | done | |
8121 | done | |
8122 | IFS=$as_save_IFS | |
8123 | ||
8124 | ;; | |
8125 | esac | |
8126 | fi | |
8127 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
8128 | if 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; } | |
8131 | else | |
8132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8133 | $as_echo "no" >&6; } | |
8134 | fi | |
8135 | ||
8136 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
8137 | OCAMLLEXDOTOPT="no" | |
8138 | else | |
8139 | case $cross_compiling:$ac_tool_warned in | |
8140 | yes:) | |
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;} | |
8143 | ac_tool_warned=yes ;; | |
8144 | esac | |
8145 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
8146 | fi | |
8147 | else | |
8148 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
8149 | fi | |
8150 | ||
8151 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
8152 | OCAMLLEX=$OCAMLLEXDOTOPT | |
8153 | fi | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | ||
d6ce1786 | 8158 | elif 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. | |
8161 | set 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; } | |
8164 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
8165 | $as_echo_n "(cached) " >&6 | |
8166 | else | |
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 | |
8173 | for as_dir in $PATH | |
8174 | do | |
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 | |
8183 | done | |
8184 | done | |
8185 | IFS=$as_save_IFS | |
8186 | ||
8187 | ;; | |
8188 | esac | |
8189 | fi | |
8190 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
8191 | if test -n "$OCAMLYACC"; then | |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
8193 | $as_echo "$OCAMLYACC" >&6; } | |
8194 | else | |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8196 | $as_echo "no" >&6; } | |
8197 | fi | |
8198 | ||
8199 | ||
8200 | fi | |
8201 | if 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. | |
8204 | set 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; } | |
8207 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
8208 | $as_echo_n "(cached) " >&6 | |
8209 | else | |
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 | |
8216 | for as_dir in $PATH | |
8217 | do | |
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 | |
8226 | done | |
8227 | done | |
8228 | IFS=$as_save_IFS | |
8229 | ||
8230 | ;; | |
8231 | esac | |
8232 | fi | |
8233 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
8234 | if 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; } | |
8237 | else | |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8239 | $as_echo "no" >&6; } | |
8240 | fi | |
8241 | ||
8242 | if test "x$ac_pt_OCAMLYACC" = x; then | |
8243 | OCAMLYACC="no" | |
8244 | else | |
8245 | case $cross_compiling:$ac_tool_warned in | |
8246 | yes:) | |
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;} | |
8249 | ac_tool_warned=yes ;; | |
8250 | esac | |
8251 | OCAMLYACC=$ac_pt_OCAMLYACC | |
8252 | fi | |
8253 | else | |
8254 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
8255 | fi | |
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | else | |
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. |
8263 | set 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; } | |
8266 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
8267 | $as_echo_n "(cached) " >&6 | |
8268 | else | |
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 | |
8275 | for as_dir in $PATH | |
8276 | do | |
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 | |
8285 | done | |
8286 | done | |
8287 | IFS=$as_save_IFS | |
8288 | ||
8289 | ;; | |
8290 | esac | |
8291 | fi | |
8292 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
8293 | if test -n "$OCAMLYACC"; then | |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
8295 | $as_echo "$OCAMLYACC" >&6; } | |
8296 | else | |
8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8298 | $as_echo "no" >&6; } | |
8299 | fi | |
8300 | ||
8301 | ||
8302 | fi | |
8303 | if 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. |
8306 | set 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; } | |
8309 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
8310 | $as_echo_n "(cached) " >&6 | |
8311 | else | |
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 | |
8318 | for as_dir in $PATH | |
8319 | do | |
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 | |
8328 | done | |
8329 | done | |
8330 | IFS=$as_save_IFS | |
8331 | ||
8332 | ;; | |
8333 | esac | |
8334 | fi | |
8335 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
8336 | if 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; } | |
8339 | else | |
8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8341 | $as_echo "no" >&6; } | |
8342 | fi | |
8343 | ||
8344 | if test "x$ac_pt_OCAMLYACC" = x; then | |
8345 | OCAMLYACC="" | |
8346 | else | |
8347 | case $cross_compiling:$ac_tool_warned in | |
8348 | yes:) | |
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;} | |
8351 | ac_tool_warned=yes ;; | |
8352 | esac | |
8353 | OCAMLYACC=$ac_pt_OCAMLYACC | |
8354 | fi | |
8355 | else | |
8356 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
8357 | fi | |
8358 | ||
8359 | ||
8360 | fi | |
8361 | ||
8362 | ||
8363 | fi | |
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 | ||
8369 | fi | |
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 | ||
8379 | if 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. | |
8382 | set 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; } | |
8385 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
8386 | $as_echo_n "(cached) " >&6 | |
8387 | else | |
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 | |
8394 | for as_dir in $PATH | |
8395 | do | |
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 | |
8404 | done | |
8405 | done | |
8406 | IFS=$as_save_IFS | |
8407 | ||
8408 | ;; | |
8409 | esac | |
8410 | fi | |
8411 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
8412 | if test -n "$PKG_CONFIG"; then | |
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
8414 | $as_echo "$PKG_CONFIG" >&6; } | |
8415 | else | |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8417 | $as_echo "no" >&6; } | |
8418 | fi | |
8419 | ||
8420 | ||
8421 | fi | |
8422 | if 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. | |
8425 | set 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; } | |
8428 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
8429 | $as_echo_n "(cached) " >&6 | |
8430 | else | |
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 | |
8437 | for as_dir in $PATH | |
8438 | do | |
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 | |
8447 | done | |
8448 | done | |
8449 | IFS=$as_save_IFS | |
8450 | ||
8451 | ;; | |
8452 | esac | |
8453 | fi | |
8454 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
8455 | if 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; } | |
8458 | else | |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8460 | $as_echo "no" >&6; } | |
8461 | fi | |
8462 | ||
8463 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
8464 | PKG_CONFIG="" | |
8465 | else | |
8466 | case $cross_compiling:$ac_tool_warned in | |
8467 | yes:) | |
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;} | |
8470 | ac_tool_warned=yes ;; | |
8471 | esac | |
8472 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
8473 | fi | |
8474 | else | |
8475 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
8476 | fi | |
8477 | ||
8478 | fi | |
8479 | if 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 | ||
8492 | fi | |
8493 | ||
8494 | elif 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. | |
8498 | set 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; } | |
8501 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
8503 | else | |
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 | |
8510 | for as_dir in $PATH | |
8511 | do | |
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 | |
8520 | done | |
8521 | done | |
8522 | IFS=$as_save_IFS | |
8523 | ||
8524 | ;; | |
8525 | esac | |
8526 | fi | |
8527 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
8528 | if test -n "$OCAMLLEX"; then | |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
8530 | $as_echo "$OCAMLLEX" >&6; } | |
8531 | else | |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8533 | $as_echo "no" >&6; } | |
8534 | fi | |
8535 | ||
8536 | ||
8537 | fi | |
8538 | if 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. | |
8541 | set 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; } | |
8544 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
8545 | $as_echo_n "(cached) " >&6 | |
8546 | else | |
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 | |
8553 | for as_dir in $PATH | |
8554 | do | |
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 | |
8563 | done | |
8564 | done | |
8565 | IFS=$as_save_IFS | |
8566 | ||
8567 | ;; | |
8568 | esac | |
8569 | fi | |
8570 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
8571 | if 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; } | |
8574 | else | |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8576 | $as_echo "no" >&6; } | |
8577 | fi | |
8578 | ||
8579 | if test "x$ac_pt_OCAMLLEX" = x; then | |
8580 | OCAMLLEX="no" | |
8581 | else | |
8582 | case $cross_compiling:$ac_tool_warned in | |
8583 | yes:) | |
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;} | |
8586 | ac_tool_warned=yes ;; | |
8587 | esac | |
8588 | OCAMLLEX=$ac_pt_OCAMLLEX | |
8589 | fi | |
8590 | else | |
8591 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
8592 | fi | |
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. | |
8597 | set 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; } | |
8600 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
8601 | $as_echo_n "(cached) " >&6 | |
8602 | else | |
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 | |
8609 | for as_dir in $PATH | |
8610 | do | |
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 | |
8619 | done | |
8620 | done | |
8621 | IFS=$as_save_IFS | |
8622 | ||
8623 | ;; | |
8624 | esac | |
8625 | fi | |
8626 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
8627 | if test -n "$OCAMLLEXDOTOPT"; then | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
8629 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
8630 | else | |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8632 | $as_echo "no" >&6; } | |
8633 | fi | |
8634 | ||
8635 | ||
8636 | fi | |
8637 | if 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. | |
8640 | set 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; } | |
8643 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
8644 | $as_echo_n "(cached) " >&6 | |
8645 | else | |
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 | |
8652 | for as_dir in $PATH | |
8653 | do | |
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 | |
8662 | done | |
8663 | done | |
8664 | IFS=$as_save_IFS | |
8665 | ||
8666 | ;; | |
8667 | esac | |
8668 | fi | |
8669 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
8670 | if 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; } | |
8673 | else | |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8675 | $as_echo "no" >&6; } | |
8676 | fi | |
8677 | ||
8678 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
8679 | OCAMLLEXDOTOPT="no" | |
8680 | else | |
8681 | case $cross_compiling:$ac_tool_warned in | |
8682 | yes:) | |
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;} | |
8685 | ac_tool_warned=yes ;; | |
8686 | esac | |
8687 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
8688 | fi | |
8689 | else | |
8690 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
8691 | fi | |
8692 | ||
8693 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
8694 | OCAMLLEX=$OCAMLLEXDOTOPT | |
8695 | fi | |
8696 | fi | |
8697 | ||
8698 | ||
8699 | ||
8700 | elif 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. | |
8703 | set 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; } | |
8706 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
8707 | $as_echo_n "(cached) " >&6 | |
8708 | else | |
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 | |
8715 | for as_dir in $PATH | |
8716 | do | |
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 | |
8725 | done | |
8726 | done | |
8727 | IFS=$as_save_IFS | |
8728 | ||
8729 | ;; | |
8730 | esac | |
8731 | fi | |
8732 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
8733 | if test -n "$OCAMLYACC"; then | |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
8735 | $as_echo "$OCAMLYACC" >&6; } | |
8736 | else | |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8738 | $as_echo "no" >&6; } | |
8739 | fi | |
8740 | ||
8741 | ||
8742 | fi | |
8743 | if 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. | |
8746 | set 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; } | |
8749 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
8750 | $as_echo_n "(cached) " >&6 | |
8751 | else | |
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 | |
8758 | for as_dir in $PATH | |
8759 | do | |
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 | |
8768 | done | |
8769 | done | |
8770 | IFS=$as_save_IFS | |
8771 | ||
8772 | ;; | |
8773 | esac | |
8774 | fi | |
8775 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
8776 | if 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; } | |
8779 | else | |
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8781 | $as_echo "no" >&6; } | |
8782 | fi | |
8783 | ||
8784 | if test "x$ac_pt_OCAMLYACC" = x; then | |
8785 | OCAMLYACC="no" | |
8786 | else | |
8787 | case $cross_compiling:$ac_tool_warned in | |
8788 | yes:) | |
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;} | |
8791 | ac_tool_warned=yes ;; | |
8792 | esac | |
8793 | OCAMLYACC=$ac_pt_OCAMLYACC | |
8794 | fi | |
8795 | else | |
8796 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
8797 | fi | |
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | else | |
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. | |
8805 | set 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; } | |
8808 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
8809 | $as_echo_n "(cached) " >&6 | |
8810 | else | |
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 | |
8817 | for as_dir in $PATH | |
8818 | do | |
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 | |
8827 | done | |
8828 | done | |
8829 | IFS=$as_save_IFS | |
8830 | ||
8831 | ;; | |
8832 | esac | |
8833 | fi | |
8834 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
8835 | if test -n "$OCAMLYACC"; then | |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
8837 | $as_echo "$OCAMLYACC" >&6; } | |
8838 | else | |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8840 | $as_echo "no" >&6; } | |
8841 | fi | |
8842 | ||
8843 | ||
8844 | fi | |
8845 | if 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. | |
8848 | set 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; } | |
8851 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
8852 | $as_echo_n "(cached) " >&6 | |
8853 | else | |
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 | |
8860 | for as_dir in $PATH | |
8861 | do | |
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 | |
8870 | done | |
8871 | done | |
8872 | IFS=$as_save_IFS | |
8873 | ||
8874 | ;; | |
8875 | esac | |
8876 | fi | |
8877 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
8878 | if 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; } | |
8881 | else | |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8883 | $as_echo "no" >&6; } | |
8884 | fi | |
8885 | ||
8886 | if test "x$ac_pt_OCAMLYACC" = x; then | |
8887 | OCAMLYACC="" | |
8888 | else | |
8889 | case $cross_compiling:$ac_tool_warned in | |
8890 | yes:) | |
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;} | |
8893 | ac_tool_warned=yes ;; | |
8894 | esac | |
8895 | OCAMLYACC=$ac_pt_OCAMLYACC | |
8896 | fi | |
8897 | else | |
8898 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
8899 | fi | |
8900 | ||
8901 | ||
8902 | fi | |
8903 | ||
8904 | SUBSTITUTED_OCAMLYACC=yes | |
8905 | ||
8906 | ||
8907 | fi | |
8908 | ||
8909 | fi | |
8910 | ||
8911 | if test -z "$OCAMLYACC"; then : | |
8912 | OCAMLYACC=no | |
8913 | ||
8914 | fi | |
8915 | ||
8916 | ||
8917 | ||
8918 | # Check whether --with-ocamlfind was given. | |
8919 | if test "${with_ocamlfind+set}" = set; then : | |
8920 | withval=$with_ocamlfind; | |
8921 | fi | |
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 |
8929 | else |
8930 | OCAMLFIND="ocamlfind" | |
8931 | ||
8932 | ||
feec80c3 C |
8933 | fi |
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 | ||
8941 | else | |
8942 | if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then : | |
feec80c3 C |
8943 | |
8944 | ||
8945 | if 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. | |
8948 | set 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; } | |
8951 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
8952 | $as_echo_n "(cached) " >&6 | |
8953 | else | |
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 | |
8960 | for as_dir in $PATH | |
8961 | do | |
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 | |
8970 | done | |
8971 | done | |
8972 | IFS=$as_save_IFS | |
8973 | ||
8974 | ;; | |
8975 | esac | |
8976 | fi | |
8977 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
8978 | if test -n "$PKG_CONFIG"; then | |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
8980 | $as_echo "$PKG_CONFIG" >&6; } | |
8981 | else | |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8983 | $as_echo "no" >&6; } | |
8984 | fi | |
8985 | ||
8986 | ||
8987 | fi | |
8988 | if 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. | |
8991 | set 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; } | |
8994 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
8995 | $as_echo_n "(cached) " >&6 | |
8996 | else | |
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 | |
9003 | for as_dir in $PATH | |
9004 | do | |
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 | |
9013 | done | |
9014 | done | |
9015 | IFS=$as_save_IFS | |
9016 | ||
9017 | ;; | |
9018 | esac | |
9019 | fi | |
9020 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9021 | if 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; } | |
9024 | else | |
9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9026 | $as_echo "no" >&6; } | |
9027 | fi | |
9028 | ||
9029 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9030 | PKG_CONFIG="" | |
9031 | else | |
9032 | case $cross_compiling:$ac_tool_warned in | |
9033 | yes:) | |
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;} | |
9036 | ac_tool_warned=yes ;; | |
9037 | esac | |
9038 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9039 | fi | |
9040 | else | |
9041 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9042 | fi | |
9043 | ||
9044 | fi | |
9045 | if 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 | ||
9058 | fi | |
9059 | ||
d6ce1786 | 9060 | elif 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. | |
9064 | set 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; } | |
9067 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
9068 | $as_echo_n "(cached) " >&6 | |
9069 | else | |
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 | |
9076 | for as_dir in $PATH | |
9077 | do | |
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 | |
9086 | done | |
9087 | done | |
9088 | IFS=$as_save_IFS | |
9089 | ||
9090 | ;; | |
9091 | esac | |
9092 | fi | |
9093 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
9094 | if test -n "$OCAMLLEX"; then | |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
9096 | $as_echo "$OCAMLLEX" >&6; } | |
9097 | else | |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9099 | $as_echo "no" >&6; } | |
9100 | fi | |
9101 | ||
9102 | ||
9103 | fi | |
9104 | if 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. | |
9107 | set 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; } | |
9110 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
9111 | $as_echo_n "(cached) " >&6 | |
9112 | else | |
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 | |
9119 | for as_dir in $PATH | |
9120 | do | |
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 | |
9129 | done | |
9130 | done | |
9131 | IFS=$as_save_IFS | |
9132 | ||
9133 | ;; | |
9134 | esac | |
9135 | fi | |
9136 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
9137 | if 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; } | |
9140 | else | |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9142 | $as_echo "no" >&6; } | |
9143 | fi | |
9144 | ||
9145 | if test "x$ac_pt_OCAMLLEX" = x; then | |
9146 | OCAMLLEX="no" | |
9147 | else | |
9148 | case $cross_compiling:$ac_tool_warned in | |
9149 | yes:) | |
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;} | |
9152 | ac_tool_warned=yes ;; | |
9153 | esac | |
9154 | OCAMLLEX=$ac_pt_OCAMLLEX | |
9155 | fi | |
9156 | else | |
9157 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
9158 | fi | |
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. | |
9163 | set 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; } | |
9166 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
9167 | $as_echo_n "(cached) " >&6 | |
9168 | else | |
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 | |
9175 | for as_dir in $PATH | |
9176 | do | |
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 | |
9185 | done | |
9186 | done | |
9187 | IFS=$as_save_IFS | |
9188 | ||
9189 | ;; | |
9190 | esac | |
9191 | fi | |
9192 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
9193 | if test -n "$OCAMLLEXDOTOPT"; then | |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
9195 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
9196 | else | |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9198 | $as_echo "no" >&6; } | |
9199 | fi | |
9200 | ||
9201 | ||
9202 | fi | |
9203 | if 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. | |
9206 | set 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; } | |
9209 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
9210 | $as_echo_n "(cached) " >&6 | |
9211 | else | |
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 | |
9218 | for as_dir in $PATH | |
9219 | do | |
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 | |
9228 | done | |
9229 | done | |
9230 | IFS=$as_save_IFS | |
9231 | ||
9232 | ;; | |
9233 | esac | |
9234 | fi | |
9235 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
9236 | if 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; } | |
9239 | else | |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9241 | $as_echo "no" >&6; } | |
9242 | fi | |
9243 | ||
9244 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
9245 | OCAMLLEXDOTOPT="no" | |
9246 | else | |
9247 | case $cross_compiling:$ac_tool_warned in | |
9248 | yes:) | |
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;} | |
9251 | ac_tool_warned=yes ;; | |
9252 | esac | |
9253 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
9254 | fi | |
9255 | else | |
9256 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
9257 | fi | |
9258 | ||
9259 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
9260 | OCAMLLEX=$OCAMLLEXDOTOPT | |
9261 | fi | |
9262 | fi | |
9263 | ||
9264 | ||
9265 | ||
d6ce1786 | 9266 | elif 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. | |
9269 | set 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; } | |
9272 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
9273 | $as_echo_n "(cached) " >&6 | |
9274 | else | |
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 | |
9281 | for as_dir in $PATH | |
9282 | do | |
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 | |
9291 | done | |
9292 | done | |
9293 | IFS=$as_save_IFS | |
9294 | ||
9295 | ;; | |
9296 | esac | |
9297 | fi | |
9298 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
9299 | if test -n "$OCAMLYACC"; then | |
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
9301 | $as_echo "$OCAMLYACC" >&6; } | |
9302 | else | |
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9304 | $as_echo "no" >&6; } | |
9305 | fi | |
9306 | ||
9307 | ||
9308 | fi | |
9309 | if 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. | |
9312 | set 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; } | |
9315 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
9316 | $as_echo_n "(cached) " >&6 | |
9317 | else | |
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 | |
9324 | for as_dir in $PATH | |
9325 | do | |
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 | |
9334 | done | |
9335 | done | |
9336 | IFS=$as_save_IFS | |
9337 | ||
9338 | ;; | |
9339 | esac | |
9340 | fi | |
9341 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
9342 | if 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; } | |
9345 | else | |
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9347 | $as_echo "no" >&6; } | |
9348 | fi | |
9349 | ||
9350 | if test "x$ac_pt_OCAMLYACC" = x; then | |
9351 | OCAMLYACC="no" | |
9352 | else | |
9353 | case $cross_compiling:$ac_tool_warned in | |
9354 | yes:) | |
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;} | |
9357 | ac_tool_warned=yes ;; | |
9358 | esac | |
9359 | OCAMLYACC=$ac_pt_OCAMLYACC | |
9360 | fi | |
9361 | else | |
9362 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
9363 | fi | |
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | else | |
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. |
9371 | set 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; } | |
9374 | if ${ac_cv_path_OCAMLFIND+:} false; then : | |
9375 | $as_echo_n "(cached) " >&6 | |
9376 | else | |
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 | |
9383 | for as_dir in $PATH | |
9384 | do | |
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 | |
9393 | done | |
9394 | done | |
9395 | IFS=$as_save_IFS | |
9396 | ||
9397 | ;; | |
9398 | esac | |
9399 | fi | |
9400 | OCAMLFIND=$ac_cv_path_OCAMLFIND | |
9401 | if test -n "$OCAMLFIND"; then | |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 | |
9403 | $as_echo "$OCAMLFIND" >&6; } | |
9404 | else | |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9406 | $as_echo "no" >&6; } | |
9407 | fi | |
9408 | ||
9409 | ||
9410 | fi | |
9411 | if 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. |
9414 | set 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; } | |
9417 | if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then : | |
9418 | $as_echo_n "(cached) " >&6 | |
9419 | else | |
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 | |
9426 | for as_dir in $PATH | |
9427 | do | |
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 | |
9436 | done | |
9437 | done | |
9438 | IFS=$as_save_IFS | |
9439 | ||
9440 | ;; | |
9441 | esac | |
9442 | fi | |
9443 | ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND | |
9444 | if 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; } | |
9447 | else | |
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9449 | $as_echo "no" >&6; } | |
9450 | fi | |
9451 | ||
9452 | if test "x$ac_pt_OCAMLFIND" = x; then | |
9453 | OCAMLFIND="" | |
9454 | else | |
9455 | case $cross_compiling:$ac_tool_warned in | |
9456 | yes:) | |
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;} | |
9459 | ac_tool_warned=yes ;; | |
9460 | esac | |
9461 | OCAMLFIND=$ac_pt_OCAMLFIND | |
9462 | fi | |
9463 | else | |
9464 | OCAMLFIND="$ac_cv_path_OCAMLFIND" | |
9465 | fi | |
9466 | ||
9467 | ||
9468 | fi | |
9469 | ||
9470 | ||
9471 | fi | |
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 | ||
9477 | fi | |
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 | ||
9487 | if 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. | |
9490 | set 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; } | |
9493 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
9494 | $as_echo_n "(cached) " >&6 | |
9495 | else | |
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 | |
9502 | for as_dir in $PATH | |
9503 | do | |
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 | |
9512 | done | |
9513 | done | |
9514 | IFS=$as_save_IFS | |
9515 | ||
9516 | ;; | |
9517 | esac | |
9518 | fi | |
9519 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9520 | if test -n "$PKG_CONFIG"; then | |
9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
9522 | $as_echo "$PKG_CONFIG" >&6; } | |
9523 | else | |
9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9525 | $as_echo "no" >&6; } | |
9526 | fi | |
9527 | ||
9528 | ||
9529 | fi | |
9530 | if 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. | |
9533 | set 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; } | |
9536 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
9537 | $as_echo_n "(cached) " >&6 | |
9538 | else | |
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 | |
9545 | for as_dir in $PATH | |
9546 | do | |
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 | |
9555 | done | |
9556 | done | |
9557 | IFS=$as_save_IFS | |
9558 | ||
9559 | ;; | |
9560 | esac | |
9561 | fi | |
9562 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9563 | if 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; } | |
9566 | else | |
9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9568 | $as_echo "no" >&6; } | |
9569 | fi | |
9570 | ||
9571 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9572 | PKG_CONFIG="" | |
9573 | else | |
9574 | case $cross_compiling:$ac_tool_warned in | |
9575 | yes:) | |
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;} | |
9578 | ac_tool_warned=yes ;; | |
9579 | esac | |
9580 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9581 | fi | |
9582 | else | |
9583 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9584 | fi | |
9585 | ||
9586 | fi | |
9587 | if 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 | ||
9600 | fi | |
9601 | ||
9602 | elif 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. | |
9606 | set 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; } | |
9609 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
9610 | $as_echo_n "(cached) " >&6 | |
9611 | else | |
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 | |
9618 | for as_dir in $PATH | |
9619 | do | |
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 | |
9628 | done | |
9629 | done | |
9630 | IFS=$as_save_IFS | |
9631 | ||
9632 | ;; | |
9633 | esac | |
9634 | fi | |
9635 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
9636 | if test -n "$OCAMLLEX"; then | |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
9638 | $as_echo "$OCAMLLEX" >&6; } | |
9639 | else | |
9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9641 | $as_echo "no" >&6; } | |
9642 | fi | |
9643 | ||
9644 | ||
9645 | fi | |
9646 | if 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. | |
9649 | set 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; } | |
9652 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
9653 | $as_echo_n "(cached) " >&6 | |
9654 | else | |
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 | |
9661 | for as_dir in $PATH | |
9662 | do | |
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 | |
9671 | done | |
9672 | done | |
9673 | IFS=$as_save_IFS | |
9674 | ||
9675 | ;; | |
9676 | esac | |
9677 | fi | |
9678 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
9679 | if 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; } | |
9682 | else | |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9684 | $as_echo "no" >&6; } | |
9685 | fi | |
9686 | ||
9687 | if test "x$ac_pt_OCAMLLEX" = x; then | |
9688 | OCAMLLEX="no" | |
9689 | else | |
9690 | case $cross_compiling:$ac_tool_warned in | |
9691 | yes:) | |
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;} | |
9694 | ac_tool_warned=yes ;; | |
9695 | esac | |
9696 | OCAMLLEX=$ac_pt_OCAMLLEX | |
9697 | fi | |
9698 | else | |
9699 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
9700 | fi | |
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. | |
9705 | set 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; } | |
9708 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
9709 | $as_echo_n "(cached) " >&6 | |
9710 | else | |
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 | |
9717 | for as_dir in $PATH | |
9718 | do | |
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 | |
9727 | done | |
9728 | done | |
9729 | IFS=$as_save_IFS | |
9730 | ||
9731 | ;; | |
9732 | esac | |
9733 | fi | |
9734 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
9735 | if test -n "$OCAMLLEXDOTOPT"; then | |
9736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
9737 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
9738 | else | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9740 | $as_echo "no" >&6; } | |
9741 | fi | |
9742 | ||
9743 | ||
9744 | fi | |
9745 | if 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. | |
9748 | set 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; } | |
9751 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
9752 | $as_echo_n "(cached) " >&6 | |
9753 | else | |
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 | |
9760 | for as_dir in $PATH | |
9761 | do | |
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 | |
9770 | done | |
9771 | done | |
9772 | IFS=$as_save_IFS | |
9773 | ||
9774 | ;; | |
9775 | esac | |
9776 | fi | |
9777 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
9778 | if 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; } | |
9781 | else | |
9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9783 | $as_echo "no" >&6; } | |
9784 | fi | |
9785 | ||
9786 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
9787 | OCAMLLEXDOTOPT="no" | |
9788 | else | |
9789 | case $cross_compiling:$ac_tool_warned in | |
9790 | yes:) | |
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;} | |
9793 | ac_tool_warned=yes ;; | |
9794 | esac | |
9795 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
9796 | fi | |
9797 | else | |
9798 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
9799 | fi | |
9800 | ||
9801 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
9802 | OCAMLLEX=$OCAMLLEXDOTOPT | |
9803 | fi | |
9804 | fi | |
9805 | ||
9806 | ||
9807 | ||
9808 | elif 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. | |
9811 | set 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; } | |
9814 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
9815 | $as_echo_n "(cached) " >&6 | |
9816 | else | |
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 | |
9823 | for as_dir in $PATH | |
9824 | do | |
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 | |
9833 | done | |
9834 | done | |
9835 | IFS=$as_save_IFS | |
9836 | ||
9837 | ;; | |
9838 | esac | |
9839 | fi | |
9840 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
9841 | if test -n "$OCAMLYACC"; then | |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
9843 | $as_echo "$OCAMLYACC" >&6; } | |
9844 | else | |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9846 | $as_echo "no" >&6; } | |
9847 | fi | |
9848 | ||
9849 | ||
9850 | fi | |
9851 | if 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. | |
9854 | set 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; } | |
9857 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
9858 | $as_echo_n "(cached) " >&6 | |
9859 | else | |
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 | |
9866 | for as_dir in $PATH | |
9867 | do | |
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 | |
9876 | done | |
9877 | done | |
9878 | IFS=$as_save_IFS | |
9879 | ||
9880 | ;; | |
9881 | esac | |
9882 | fi | |
9883 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
9884 | if 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; } | |
9887 | else | |
9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9889 | $as_echo "no" >&6; } | |
9890 | fi | |
9891 | ||
9892 | if test "x$ac_pt_OCAMLYACC" = x; then | |
9893 | OCAMLYACC="no" | |
9894 | else | |
9895 | case $cross_compiling:$ac_tool_warned in | |
9896 | yes:) | |
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;} | |
9899 | ac_tool_warned=yes ;; | |
9900 | esac | |
9901 | OCAMLYACC=$ac_pt_OCAMLYACC | |
9902 | fi | |
9903 | else | |
9904 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
9905 | fi | |
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | else | |
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. | |
9913 | set 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; } | |
9916 | if ${ac_cv_path_OCAMLFIND+:} false; then : | |
9917 | $as_echo_n "(cached) " >&6 | |
9918 | else | |
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 | |
9925 | for as_dir in $PATH | |
9926 | do | |
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 | |
9935 | done | |
9936 | done | |
9937 | IFS=$as_save_IFS | |
9938 | ||
9939 | ;; | |
9940 | esac | |
9941 | fi | |
9942 | OCAMLFIND=$ac_cv_path_OCAMLFIND | |
9943 | if test -n "$OCAMLFIND"; then | |
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 | |
9945 | $as_echo "$OCAMLFIND" >&6; } | |
9946 | else | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9948 | $as_echo "no" >&6; } | |
9949 | fi | |
9950 | ||
9951 | ||
9952 | fi | |
9953 | if 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. | |
9956 | set 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; } | |
9959 | if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then : | |
9960 | $as_echo_n "(cached) " >&6 | |
9961 | else | |
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 | |
9968 | for as_dir in $PATH | |
9969 | do | |
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 | |
9978 | done | |
9979 | done | |
9980 | IFS=$as_save_IFS | |
9981 | ||
9982 | ;; | |
9983 | esac | |
9984 | fi | |
9985 | ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND | |
9986 | if 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; } | |
9989 | else | |
9990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9991 | $as_echo "no" >&6; } | |
9992 | fi | |
9993 | ||
9994 | if test "x$ac_pt_OCAMLFIND" = x; then | |
9995 | OCAMLFIND="" | |
9996 | else | |
9997 | case $cross_compiling:$ac_tool_warned in | |
9998 | yes:) | |
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;} | |
10001 | ac_tool_warned=yes ;; | |
10002 | esac | |
10003 | OCAMLFIND=$ac_pt_OCAMLFIND | |
10004 | fi | |
10005 | else | |
10006 | OCAMLFIND="$ac_cv_path_OCAMLFIND" | |
10007 | fi | |
10008 | ||
10009 | ||
10010 | fi | |
10011 | ||
10012 | SUBSTITUTED_OCAMLFIND=yes | |
10013 | ||
10014 | ||
10015 | fi | |
10016 | ||
10017 | fi | |
10018 | ||
10019 | if test -z "$OCAMLFIND"; then : | |
10020 | OCAMLFIND=no | |
10021 | ||
10022 | fi | |
10023 | ||
10024 | ||
10025 | if 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 | ||
10028 | fi | |
10029 | ||
10030 | if 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 | ||
10033 | fi | |
10034 | ||
10035 | if test "x$OCAMLFIND" = xno; then : | |
10036 | as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5 | |
10037 | ||
10038 | fi | |
10039 | ||
10040 | ||
10041 | ||
10042 | # Check whether --with-runtime-ocamlfind was given. | |
10043 | if test "${with_runtime_ocamlfind+set}" = set; then : | |
10044 | withval=$with_runtime_ocamlfind; | |
10045 | fi | |
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 | ||
10053 | elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then : | |
10054 | RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind" | |
10055 | ||
10056 | ||
10057 | else | |
10058 | RUNTIME_OCAMLFIND_CMD="ocamlfind" | |
10059 | ||
10060 | ||
10061 | fi | |
10062 | ||
10063 | fi | |
10064 | ||
10065 | ||
10066 | ||
10067 | # Check whether --with-runtime-ocamlc was given. | |
10068 | if test "${with_runtime_ocamlc+set}" = set; then : | |
10069 | withval=$with_runtime_ocamlc; | |
10070 | fi | |
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 | ||
10078 | elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then : | |
10079 | RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc" | |
10080 | ||
10081 | ||
10082 | else | |
10083 | RUNTIME_OCAMLC_CMD="ocamlc" | |
10084 | ||
10085 | ||
10086 | fi | |
10087 | ||
10088 | fi | |
10089 | ||
10090 | ||
10091 | ||
10092 | # Check whether --with-runtime-ocamlopt was given. | |
10093 | if test "${with_runtime_ocamlopt+set}" = set; then : | |
10094 | withval=$with_runtime_ocamlopt; | |
10095 | fi | |
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 | ||
10103 | elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then : | |
10104 | RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt" | |
10105 | ||
10106 | ||
10107 | else | |
10108 | RUNTIME_OCAMLOPT_CMD="ocamlopt" | |
10109 | ||
10110 | ||
10111 | fi | |
10112 | ||
10113 | fi | |
10114 | ||
10115 | ||
10116 | ||
10117 | # Check whether --with-runtime-ocamldep was given. | |
10118 | if test "${with_runtime_ocamldep+set}" = set; then : | |
10119 | withval=$with_runtime_ocamldep; | |
10120 | fi | |
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 | ||
10128 | elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then : | |
10129 | RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep" | |
10130 | ||
10131 | ||
10132 | else | |
10133 | RUNTIME_OCAMLDEP_CMD="ocamldep" | |
10134 | ||
10135 | ||
10136 | fi | |
10137 | ||
10138 | fi | |
10139 | ||
10140 | ||
10141 | ||
10142 | # Check whether --with-runtime-camlp4 was given. | |
10143 | if test "${with_runtime_camlp4+set}" = set; then : | |
10144 | withval=$with_runtime_camlp4; | |
10145 | fi | |
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 | ||
10153 | elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then : | |
10154 | RUNTIME_CAMLP4_CMD="$with_runtime_camlp4" | |
10155 | ||
10156 | ||
10157 | else | |
10158 | RUNTIME_CAMLP4_CMD="camlp4" | |
10159 | ||
10160 | ||
10161 | fi | |
10162 | ||
10163 | fi | |
10164 | ||
10165 | ||
10166 | ||
10167 | # Check whether --with-runtime-camlp4o was given. | |
10168 | if test "${with_runtime_camlp4o+set}" = set; then : | |
10169 | withval=$with_runtime_camlp4o; | |
10170 | fi | |
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 | ||
10178 | elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then : | |
10179 | RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o" | |
10180 | ||
10181 | ||
10182 | else | |
10183 | RUNTIME_CAMLP4O_CMD="camlp4o" | |
10184 | ||
10185 | ||
10186 | fi | |
10187 | ||
10188 | fi | |
10189 | ||
10190 | ||
10191 | cat >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 | |
10253 | if 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 | |
10274 | fi | |
10275 | rm -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 | ||
10411 | fi | |
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 | ||
10416 | fi | |
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 | ||
10446 | fi | |
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 | ||
10451 | fi | |
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 | ||
10481 | fi | |
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 | ||
10486 | fi | |
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 | ||
10516 | fi | |
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 | ||
10521 | fi | |
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 | ||
10551 | fi | |
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 | ||
10556 | fi | |
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. | |
10562 | if test "${enable_dynlink+set}" = set; then : | |
10563 | enableval=$enable_dynlink; | |
10564 | fi | |
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 | ||
10596 | fi | |
10597 | ||
10598 | GLOBAL_dynlink=$OCAML_PKG_dynlink | |
10599 | ||
10600 | ||
10601 | if test "x$GLOBAL_dynlink" != xno; then : | |
10602 | enable_dynlink=yes | |
10603 | ||
10604 | ||
10605 | else | |
10606 | if test "x$enable_dynlink" = xyes; then : | |
10607 | as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5 | |
10608 | ||
10609 | fi | |
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 | ||
10615 | fi | |
10616 | ||
10617 | fi | |
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 | ||
10634 | else | |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
10636 | $as_echo "not available" >&6; } | |
10637 | fi | |
10638 | ||
10639 | fi | |
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 | ||
10661 | else | |
10662 | MAKE_dynlink= | |
10663 | ||
10664 | ||
10665 | fi | |
10666 | ||
10667 | else | |
10668 | MODULES_dynlink='$(GLOBAL_dynlink)' | |
10669 | ||
10670 | MODULESOPT_dynlink='$(GLOBALOPT_dynlink)' | |
10671 | ||
10672 | ||
10673 | fi | |
10674 | ||
10675 | fi | |
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 | ||
10680 | fi | |
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. | |
10685 | if test "${enable_camlp4+set}" = set; then : | |
10686 | enableval=$enable_camlp4; | |
10687 | fi | |
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 | ||
10719 | fi | |
10720 | ||
10721 | GLOBAL_camlp4=$OCAML_PKG_camlp4 | |
10722 | ||
10723 | ||
10724 | if test "x$GLOBAL_camlp4" != xno; then : | |
10725 | enable_camlp4=yes | |
10726 | ||
10727 | ||
10728 | else | |
10729 | if test "x$enable_camlp4" = xyes; then : | |
10730 | as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5 | |
10731 | ||
10732 | fi | |
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 | ||
10738 | fi | |
10739 | ||
10740 | fi | |
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 | ||
10757 | else | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
10759 | $as_echo "not available" >&6; } | |
10760 | fi | |
10761 | ||
10762 | fi | |
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 | ||
10784 | else | |
10785 | MAKE_camlp4= | |
10786 | ||
10787 | ||
10788 | fi | |
10789 | ||
10790 | else | |
10791 | MODULES_camlp4='$(GLOBAL_camlp4)' | |
10792 | ||
10793 | MODULESOPT_camlp4='$(GLOBALOPT_camlp4)' | |
10794 | ||
10795 | ||
10796 | fi | |
10797 | ||
10798 | fi | |
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 | ||
10803 | fi | |
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. | |
10808 | if test "${enable_sexplib+set}" = set; then : | |
10809 | enableval=$enable_sexplib; | |
10810 | fi | |
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 | ||
10842 | fi | |
10843 | ||
10844 | GLOBAL_sexplib=$OCAML_PKG_sexplib | |
10845 | ||
10846 | ||
10847 | if test "x$GLOBAL_sexplib" != xno; then : | |
10848 | enable_sexplib=yes | |
10849 | ||
10850 | ||
10851 | else | |
10852 | if test "x$enable_sexplib" = xyes; then : | |
10853 | as_fn_error $? "OCaml package sexplib is not available but requested explicitly" "$LINENO" 5 | |
10854 | ||
10855 | fi | |
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 | ||
10861 | fi | |
10862 | ||
10863 | fi | |
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 | ||
10880 | else | |
10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
10882 | $as_echo "not available" >&6; } | |
10883 | fi | |
10884 | ||
10885 | fi | |
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 | ||
10907 | else | |
10908 | MAKE_sexplib= | |
10909 | ||
10910 | ||
10911 | fi | |
10912 | ||
10913 | else | |
10914 | MODULES_sexplib='$(GLOBAL_sexplib)' | |
10915 | ||
10916 | MODULESOPT_sexplib='$(GLOBALOPT_sexplib)' | |
10917 | ||
10918 | ||
10919 | fi | |
10920 | ||
10921 | fi | |
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 | ||
10926 | fi | |
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. | |
10931 | if test "${enable_menhirLib+set}" = set; then : | |
10932 | enableval=$enable_menhirLib; | |
10933 | fi | |
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 | ||
10965 | fi | |
10966 | ||
10967 | GLOBAL_menhirLib=$OCAML_PKG_menhirLib | |
10968 | ||
10969 | ||
10970 | if test "x$GLOBAL_menhirLib" != xno; then : | |
10971 | enable_menhirLib=yes | |
10972 | ||
10973 | ||
10974 | else | |
10975 | if test "x$enable_menhirLib" = xyes; then : | |
10976 | as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5 | |
10977 | ||
10978 | fi | |
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 | ||
10984 | fi | |
10985 | ||
10986 | fi | |
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 | ||
11003 | else | |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
11005 | $as_echo "not available" >&6; } | |
11006 | fi | |
11007 | ||
11008 | fi | |
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 | ||
11030 | else | |
11031 | MAKE_menhirLib= | |
11032 | ||
11033 | ||
11034 | fi | |
11035 | ||
11036 | else | |
11037 | MODULES_menhirLib='$(GLOBAL_menhirLib)' | |
11038 | ||
11039 | MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)' | |
11040 | ||
11041 | ||
11042 | fi | |
11043 | ||
11044 | fi | |
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 | ||
11049 | fi | |
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. | |
11054 | if test "${enable_extlib+set}" = set; then : | |
11055 | enableval=$enable_extlib; | |
11056 | fi | |
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 | ||
11088 | fi | |
11089 | ||
11090 | GLOBAL_extlib=$OCAML_PKG_extlib | |
11091 | ||
11092 | ||
11093 | if test "x$GLOBAL_extlib" != xno; then : | |
11094 | enable_extlib=yes | |
11095 | ||
11096 | ||
11097 | else | |
11098 | if test "x$enable_extlib" = xyes; then : | |
11099 | as_fn_error $? "OCaml package extlib is not available but requested explicitly" "$LINENO" 5 | |
11100 | ||
11101 | fi | |
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 | ||
11107 | fi | |
11108 | ||
11109 | fi | |
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 | ||
11126 | else | |
11127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
11128 | $as_echo "not available" >&6; } | |
11129 | fi | |
11130 | ||
11131 | fi | |
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 | ||
11153 | else | |
11154 | MAKE_extlib= | |
11155 | ||
11156 | ||
11157 | fi | |
11158 | ||
11159 | else | |
11160 | MODULES_extlib='$(GLOBAL_extlib)' | |
11161 | ||
11162 | MODULESOPT_extlib='$(GLOBALOPT_extlib)' | |
11163 | ||
11164 | ||
11165 | fi | |
11166 | ||
11167 | fi | |
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 | ||
11172 | fi | |
11173 | ||
11174 | ||
11175 | ||
11176 | cat >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 | |
11238 | if 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 | |
11259 | fi | |
11260 | rm -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 |
11267 | if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then : |
11268 | OPTIMIZED_dynlink=yes | |
11269 | ||
11270 | ||
11271 | else | |
11272 | OPTIMIZED_dynlink=no | |
11273 | ||
11274 | ||
11275 | fi | |
11276 | ||
feec80c3 C |
11277 | |
11278 | ||
11279 | ||
11280 | # Check whether --with-menhir was given. | |
11281 | if test "${with_menhir+set}" = set; then : | |
11282 | withval=$with_menhir; | |
11283 | fi | |
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 |
11291 | else |
11292 | MENHIR="menhir" | |
11293 | ||
11294 | ||
feec80c3 C |
11295 | fi |
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 | ||
11303 | else | |
11304 | if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then : | |
feec80c3 C |
11305 | |
11306 | ||
11307 | if 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. | |
11310 | set 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; } | |
11313 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
11314 | $as_echo_n "(cached) " >&6 | |
11315 | else | |
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 | |
11322 | for as_dir in $PATH | |
11323 | do | |
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 | |
11332 | done | |
11333 | done | |
11334 | IFS=$as_save_IFS | |
11335 | ||
11336 | ;; | |
11337 | esac | |
11338 | fi | |
11339 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11340 | if test -n "$PKG_CONFIG"; then | |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11342 | $as_echo "$PKG_CONFIG" >&6; } | |
11343 | else | |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11345 | $as_echo "no" >&6; } | |
11346 | fi | |
11347 | ||
11348 | ||
11349 | fi | |
11350 | if 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. | |
11353 | set 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; } | |
11356 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
11357 | $as_echo_n "(cached) " >&6 | |
11358 | else | |
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 | |
11365 | for as_dir in $PATH | |
11366 | do | |
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 | |
11375 | done | |
11376 | done | |
11377 | IFS=$as_save_IFS | |
11378 | ||
11379 | ;; | |
11380 | esac | |
11381 | fi | |
11382 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11383 | if 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; } | |
11386 | else | |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11388 | $as_echo "no" >&6; } | |
11389 | fi | |
11390 | ||
11391 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11392 | PKG_CONFIG="" | |
11393 | else | |
11394 | case $cross_compiling:$ac_tool_warned in | |
11395 | yes:) | |
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;} | |
11398 | ac_tool_warned=yes ;; | |
11399 | esac | |
11400 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11401 | fi | |
11402 | else | |
11403 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11404 | fi | |
11405 | ||
11406 | fi | |
11407 | if 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 | ||
11420 | fi | |
11421 | ||
d6ce1786 | 11422 | elif 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. | |
11426 | set 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; } | |
11429 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
11430 | $as_echo_n "(cached) " >&6 | |
11431 | else | |
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 | |
11438 | for as_dir in $PATH | |
11439 | do | |
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 | |
11448 | done | |
11449 | done | |
11450 | IFS=$as_save_IFS | |
11451 | ||
11452 | ;; | |
11453 | esac | |
11454 | fi | |
11455 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
11456 | if test -n "$OCAMLLEX"; then | |
11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
11458 | $as_echo "$OCAMLLEX" >&6; } | |
11459 | else | |
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11461 | $as_echo "no" >&6; } | |
11462 | fi | |
11463 | ||
11464 | ||
11465 | fi | |
11466 | if 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. | |
11469 | set 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; } | |
11472 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
11473 | $as_echo_n "(cached) " >&6 | |
11474 | else | |
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 | |
11481 | for as_dir in $PATH | |
11482 | do | |
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 | |
11491 | done | |
11492 | done | |
11493 | IFS=$as_save_IFS | |
11494 | ||
11495 | ;; | |
11496 | esac | |
11497 | fi | |
11498 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
11499 | if 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; } | |
11502 | else | |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11504 | $as_echo "no" >&6; } | |
11505 | fi | |
11506 | ||
11507 | if test "x$ac_pt_OCAMLLEX" = x; then | |
11508 | OCAMLLEX="no" | |
11509 | else | |
11510 | case $cross_compiling:$ac_tool_warned in | |
11511 | yes:) | |
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;} | |
11514 | ac_tool_warned=yes ;; | |
11515 | esac | |
11516 | OCAMLLEX=$ac_pt_OCAMLLEX | |
11517 | fi | |
11518 | else | |
11519 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
11520 | fi | |
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. | |
11525 | set 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; } | |
11528 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
11529 | $as_echo_n "(cached) " >&6 | |
11530 | else | |
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 | |
11537 | for as_dir in $PATH | |
11538 | do | |
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 | |
11547 | done | |
11548 | done | |
11549 | IFS=$as_save_IFS | |
11550 | ||
11551 | ;; | |
11552 | esac | |
11553 | fi | |
11554 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
11555 | if test -n "$OCAMLLEXDOTOPT"; then | |
11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
11557 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
11558 | else | |
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11560 | $as_echo "no" >&6; } | |
11561 | fi | |
11562 | ||
11563 | ||
11564 | fi | |
11565 | if 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. | |
11568 | set 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; } | |
11571 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
11572 | $as_echo_n "(cached) " >&6 | |
11573 | else | |
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 | |
11580 | for as_dir in $PATH | |
11581 | do | |
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 | |
11590 | done | |
11591 | done | |
11592 | IFS=$as_save_IFS | |
11593 | ||
11594 | ;; | |
11595 | esac | |
11596 | fi | |
11597 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
11598 | if 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; } | |
11601 | else | |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11603 | $as_echo "no" >&6; } | |
11604 | fi | |
11605 | ||
11606 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
11607 | OCAMLLEXDOTOPT="no" | |
11608 | else | |
11609 | case $cross_compiling:$ac_tool_warned in | |
11610 | yes:) | |
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;} | |
11613 | ac_tool_warned=yes ;; | |
11614 | esac | |
11615 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
11616 | fi | |
11617 | else | |
11618 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
11619 | fi | |
11620 | ||
11621 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
11622 | OCAMLLEX=$OCAMLLEXDOTOPT | |
11623 | fi | |
11624 | fi | |
11625 | ||
11626 | ||
11627 | ||
d6ce1786 | 11628 | elif 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. | |
11631 | set 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; } | |
11634 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
11635 | $as_echo_n "(cached) " >&6 | |
11636 | else | |
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 | |
11643 | for as_dir in $PATH | |
11644 | do | |
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 | |
11653 | done | |
11654 | done | |
11655 | IFS=$as_save_IFS | |
11656 | ||
11657 | ;; | |
11658 | esac | |
11659 | fi | |
11660 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
11661 | if test -n "$OCAMLYACC"; then | |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
11663 | $as_echo "$OCAMLYACC" >&6; } | |
11664 | else | |
11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11666 | $as_echo "no" >&6; } | |
11667 | fi | |
11668 | ||
11669 | ||
11670 | fi | |
11671 | if 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. | |
11674 | set 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; } | |
11677 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
11678 | $as_echo_n "(cached) " >&6 | |
11679 | else | |
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 | |
11686 | for as_dir in $PATH | |
11687 | do | |
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 | |
11696 | done | |
11697 | done | |
11698 | IFS=$as_save_IFS | |
11699 | ||
11700 | ;; | |
11701 | esac | |
11702 | fi | |
11703 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
11704 | if 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; } | |
11707 | else | |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11709 | $as_echo "no" >&6; } | |
11710 | fi | |
11711 | ||
11712 | if test "x$ac_pt_OCAMLYACC" = x; then | |
11713 | OCAMLYACC="no" | |
11714 | else | |
11715 | case $cross_compiling:$ac_tool_warned in | |
11716 | yes:) | |
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;} | |
11719 | ac_tool_warned=yes ;; | |
11720 | esac | |
11721 | OCAMLYACC=$ac_pt_OCAMLYACC | |
11722 | fi | |
11723 | else | |
11724 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
11725 | fi | |
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | else | |
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. |
11733 | set 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; } | |
11736 | if ${ac_cv_path_MENHIR+:} false; then : | |
11737 | $as_echo_n "(cached) " >&6 | |
11738 | else | |
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 | |
11745 | for as_dir in $PATH | |
11746 | do | |
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 | |
11755 | done | |
11756 | done | |
11757 | IFS=$as_save_IFS | |
11758 | ||
11759 | ;; | |
11760 | esac | |
11761 | fi | |
11762 | MENHIR=$ac_cv_path_MENHIR | |
11763 | if test -n "$MENHIR"; then | |
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5 | |
11765 | $as_echo "$MENHIR" >&6; } | |
11766 | else | |
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11768 | $as_echo "no" >&6; } | |
11769 | fi | |
11770 | ||
11771 | ||
11772 | fi | |
11773 | if 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. |
11776 | set 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; } | |
11779 | if ${ac_cv_path_ac_pt_MENHIR+:} false; then : | |
11780 | $as_echo_n "(cached) " >&6 | |
11781 | else | |
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 | |
11788 | for as_dir in $PATH | |
11789 | do | |
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 | |
11798 | done | |
11799 | done | |
11800 | IFS=$as_save_IFS | |
11801 | ||
11802 | ;; | |
11803 | esac | |
11804 | fi | |
11805 | ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR | |
11806 | if 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; } | |
11809 | else | |
11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11811 | $as_echo "no" >&6; } | |
11812 | fi | |
11813 | ||
11814 | if test "x$ac_pt_MENHIR" = x; then | |
11815 | MENHIR="" | |
11816 | else | |
11817 | case $cross_compiling:$ac_tool_warned in | |
11818 | yes:) | |
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;} | |
11821 | ac_tool_warned=yes ;; | |
11822 | esac | |
11823 | MENHIR=$ac_pt_MENHIR | |
11824 | fi | |
11825 | else | |
11826 | MENHIR="$ac_cv_path_MENHIR" | |
11827 | fi | |
11828 | ||
11829 | ||
11830 | fi | |
11831 | ||
11832 | ||
11833 | fi | |
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 | ||
11839 | fi | |
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 | ||
11849 | if 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. | |
11852 | set 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; } | |
11855 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
11856 | $as_echo_n "(cached) " >&6 | |
11857 | else | |
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 | |
11864 | for as_dir in $PATH | |
11865 | do | |
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 | |
11874 | done | |
11875 | done | |
11876 | IFS=$as_save_IFS | |
11877 | ||
11878 | ;; | |
11879 | esac | |
11880 | fi | |
11881 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11882 | if test -n "$PKG_CONFIG"; then | |
11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11884 | $as_echo "$PKG_CONFIG" >&6; } | |
11885 | else | |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11887 | $as_echo "no" >&6; } | |
11888 | fi | |
11889 | ||
11890 | ||
11891 | fi | |
11892 | if 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. | |
11895 | set 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; } | |
11898 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
11899 | $as_echo_n "(cached) " >&6 | |
11900 | else | |
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 | |
11907 | for as_dir in $PATH | |
11908 | do | |
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 | |
11917 | done | |
11918 | done | |
11919 | IFS=$as_save_IFS | |
11920 | ||
11921 | ;; | |
11922 | esac | |
11923 | fi | |
11924 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11925 | if 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; } | |
11928 | else | |
11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11930 | $as_echo "no" >&6; } | |
11931 | fi | |
11932 | ||
11933 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11934 | PKG_CONFIG="" | |
11935 | else | |
11936 | case $cross_compiling:$ac_tool_warned in | |
11937 | yes:) | |
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;} | |
11940 | ac_tool_warned=yes ;; | |
11941 | esac | |
11942 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11943 | fi | |
11944 | else | |
11945 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11946 | fi | |
11947 | ||
11948 | fi | |
11949 | if 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 | ||
11962 | fi | |
11963 | ||
11964 | elif 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. | |
11968 | set 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; } | |
11971 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
11972 | $as_echo_n "(cached) " >&6 | |
11973 | else | |
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 | |
11980 | for as_dir in $PATH | |
11981 | do | |
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 | |
11990 | done | |
11991 | done | |
11992 | IFS=$as_save_IFS | |
11993 | ||
11994 | ;; | |
11995 | esac | |
11996 | fi | |
11997 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
11998 | if test -n "$OCAMLLEX"; then | |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
12000 | $as_echo "$OCAMLLEX" >&6; } | |
12001 | else | |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12003 | $as_echo "no" >&6; } | |
12004 | fi | |
12005 | ||
12006 | ||
12007 | fi | |
12008 | if 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. | |
12011 | set 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; } | |
12014 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
12015 | $as_echo_n "(cached) " >&6 | |
12016 | else | |
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 | |
12023 | for as_dir in $PATH | |
12024 | do | |
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 | |
12033 | done | |
12034 | done | |
12035 | IFS=$as_save_IFS | |
12036 | ||
12037 | ;; | |
12038 | esac | |
12039 | fi | |
12040 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
12041 | if 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; } | |
12044 | else | |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12046 | $as_echo "no" >&6; } | |
12047 | fi | |
12048 | ||
12049 | if test "x$ac_pt_OCAMLLEX" = x; then | |
12050 | OCAMLLEX="no" | |
12051 | else | |
12052 | case $cross_compiling:$ac_tool_warned in | |
12053 | yes:) | |
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;} | |
12056 | ac_tool_warned=yes ;; | |
12057 | esac | |
12058 | OCAMLLEX=$ac_pt_OCAMLLEX | |
12059 | fi | |
12060 | else | |
12061 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
12062 | fi | |
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. | |
12067 | set 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; } | |
12070 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
12071 | $as_echo_n "(cached) " >&6 | |
12072 | else | |
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 | |
12079 | for as_dir in $PATH | |
12080 | do | |
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 | |
12089 | done | |
12090 | done | |
12091 | IFS=$as_save_IFS | |
12092 | ||
12093 | ;; | |
12094 | esac | |
12095 | fi | |
12096 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
12097 | if test -n "$OCAMLLEXDOTOPT"; then | |
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
12099 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
12100 | else | |
12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12102 | $as_echo "no" >&6; } | |
12103 | fi | |
12104 | ||
12105 | ||
12106 | fi | |
12107 | if 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. | |
12110 | set 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; } | |
12113 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
12114 | $as_echo_n "(cached) " >&6 | |
12115 | else | |
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 | |
12122 | for as_dir in $PATH | |
12123 | do | |
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 | |
12132 | done | |
12133 | done | |
12134 | IFS=$as_save_IFS | |
12135 | ||
12136 | ;; | |
12137 | esac | |
12138 | fi | |
12139 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
12140 | if 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; } | |
12143 | else | |
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12145 | $as_echo "no" >&6; } | |
12146 | fi | |
12147 | ||
12148 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
12149 | OCAMLLEXDOTOPT="no" | |
12150 | else | |
12151 | case $cross_compiling:$ac_tool_warned in | |
12152 | yes:) | |
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;} | |
12155 | ac_tool_warned=yes ;; | |
12156 | esac | |
12157 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
12158 | fi | |
12159 | else | |
12160 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
12161 | fi | |
12162 | ||
12163 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
12164 | OCAMLLEX=$OCAMLLEXDOTOPT | |
12165 | fi | |
12166 | fi | |
12167 | ||
12168 | ||
12169 | ||
12170 | elif 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. | |
12173 | set 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; } | |
12176 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
12177 | $as_echo_n "(cached) " >&6 | |
12178 | else | |
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 | |
12185 | for as_dir in $PATH | |
12186 | do | |
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 | |
12195 | done | |
12196 | done | |
12197 | IFS=$as_save_IFS | |
12198 | ||
12199 | ;; | |
12200 | esac | |
12201 | fi | |
12202 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
12203 | if test -n "$OCAMLYACC"; then | |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
12205 | $as_echo "$OCAMLYACC" >&6; } | |
12206 | else | |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12208 | $as_echo "no" >&6; } | |
12209 | fi | |
12210 | ||
12211 | ||
12212 | fi | |
12213 | if 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. | |
12216 | set 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; } | |
12219 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
12220 | $as_echo_n "(cached) " >&6 | |
12221 | else | |
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 | |
12228 | for as_dir in $PATH | |
12229 | do | |
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 | |
12238 | done | |
12239 | done | |
12240 | IFS=$as_save_IFS | |
12241 | ||
12242 | ;; | |
12243 | esac | |
12244 | fi | |
12245 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
12246 | if 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; } | |
12249 | else | |
12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12251 | $as_echo "no" >&6; } | |
12252 | fi | |
12253 | ||
12254 | if test "x$ac_pt_OCAMLYACC" = x; then | |
12255 | OCAMLYACC="no" | |
12256 | else | |
12257 | case $cross_compiling:$ac_tool_warned in | |
12258 | yes:) | |
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;} | |
12261 | ac_tool_warned=yes ;; | |
12262 | esac | |
12263 | OCAMLYACC=$ac_pt_OCAMLYACC | |
12264 | fi | |
12265 | else | |
12266 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
12267 | fi | |
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | else | |
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. | |
12275 | set 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; } | |
12278 | if ${ac_cv_path_MENHIR+:} false; then : | |
12279 | $as_echo_n "(cached) " >&6 | |
12280 | else | |
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 | |
12287 | for as_dir in $PATH | |
12288 | do | |
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 | |
12297 | done | |
12298 | done | |
12299 | IFS=$as_save_IFS | |
12300 | ||
12301 | ;; | |
12302 | esac | |
12303 | fi | |
12304 | MENHIR=$ac_cv_path_MENHIR | |
12305 | if test -n "$MENHIR"; then | |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5 | |
12307 | $as_echo "$MENHIR" >&6; } | |
12308 | else | |
12309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12310 | $as_echo "no" >&6; } | |
12311 | fi | |
12312 | ||
12313 | ||
12314 | fi | |
12315 | if 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. | |
12318 | set 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; } | |
12321 | if ${ac_cv_path_ac_pt_MENHIR+:} false; then : | |
12322 | $as_echo_n "(cached) " >&6 | |
12323 | else | |
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 | |
12330 | for as_dir in $PATH | |
12331 | do | |
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 | |
12340 | done | |
12341 | done | |
12342 | IFS=$as_save_IFS | |
12343 | ||
12344 | ;; | |
12345 | esac | |
12346 | fi | |
12347 | ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR | |
12348 | if 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; } | |
12351 | else | |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12353 | $as_echo "no" >&6; } | |
12354 | fi | |
12355 | ||
12356 | if test "x$ac_pt_MENHIR" = x; then | |
12357 | MENHIR="" | |
12358 | else | |
12359 | case $cross_compiling:$ac_tool_warned in | |
12360 | yes:) | |
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;} | |
12363 | ac_tool_warned=yes ;; | |
12364 | esac | |
12365 | MENHIR=$ac_pt_MENHIR | |
12366 | fi | |
12367 | else | |
12368 | MENHIR="$ac_cv_path_MENHIR" | |
12369 | fi | |
12370 | ||
12371 | ||
12372 | fi | |
12373 | ||
12374 | SUBSTITUTED_MENHIR=yes | |
12375 | ||
12376 | ||
12377 | fi | |
12378 | ||
12379 | fi | |
12380 | ||
12381 | if test -z "$MENHIR"; then : | |
12382 | MENHIR=no | |
12383 | ||
12384 | fi | |
12385 | ||
12386 | if 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 | ||
12390 | fi | |
12391 | ||
12392 | ||
12393 | # Check whether --enable-ocaml was given. | |
12394 | if test "${enable_ocaml+set}" = set; then : | |
12395 | enableval=$enable_ocaml; | |
12396 | fi | |
12397 | ||
12398 | if 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 | ||
12405 | elif test "x$enable_ocaml" != xno; then : | |
12406 | as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5 | |
12407 | ||
12408 | fi | |
12409 | ||
12410 | fi | |
12411 | ||
12412 | if 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 |
12419 | elif 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 | ||
12423 | fi | |
12424 | ||
12425 | fi | |
12426 | ||
12427 | if 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 | ||
12434 | elif 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 | ||
12438 | fi | |
feec80c3 C |
12439 | |
12440 | fi | |
12441 | ||
12442 | if 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 | ||
12449 | elif 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 | |
12453 | fi | |
12454 | ||
12455 | fi | |
12456 | ||
12457 | if 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 | |
12464 | elif 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 | |
12468 | fi | |
12469 | ||
12470 | fi | |
12471 | ||
12472 | if 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 | ||
12490 | else | |
12491 | enable_ocaml=yes | |
12492 | ||
12493 | OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci | |
12494 | ||
12495 | OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml | |
12496 | ||
12497 | ||
12498 | fi | |
12499 | ||
12500 | ||
12501 | ||
12502 | # Check whether --enable-python was given. | |
12503 | if test "${enable_python+set}" = set; then : | |
12504 | enableval=$enable_python; | |
12505 | fi | |
12506 | ||
12507 | if 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 | ||
12514 | fi | |
12515 | ||
12516 | if test -z "$PYVER"; then : | |
12517 | ||
12518 | ||
d6ce1786 | 12519 | |
feec80c3 C |
12520 | # Check whether --with-python was given. |
12521 | if test "${with_python+set}" = set; then : | |
12522 | withval=$with_python; | |
12523 | fi | |
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 |
12531 | else |
12532 | PYTHON="python" | |
12533 | ||
12534 | ||
feec80c3 C |
12535 | fi |
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 | ||
12543 | else | |
12544 | if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then : | |
feec80c3 C |
12545 | |
12546 | ||
12547 | if 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. | |
12550 | set 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; } | |
12553 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
12554 | $as_echo_n "(cached) " >&6 | |
12555 | else | |
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 | |
12562 | for as_dir in $PATH | |
12563 | do | |
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 | |
12572 | done | |
12573 | done | |
12574 | IFS=$as_save_IFS | |
12575 | ||
12576 | ;; | |
12577 | esac | |
12578 | fi | |
12579 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12580 | if test -n "$PKG_CONFIG"; then | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
12582 | $as_echo "$PKG_CONFIG" >&6; } | |
12583 | else | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12585 | $as_echo "no" >&6; } | |
12586 | fi | |
12587 | ||
12588 | ||
12589 | fi | |
12590 | if 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. | |
12593 | set 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; } | |
12596 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
12597 | $as_echo_n "(cached) " >&6 | |
12598 | else | |
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 | |
12605 | for as_dir in $PATH | |
12606 | do | |
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 | |
12615 | done | |
12616 | done | |
12617 | IFS=$as_save_IFS | |
12618 | ||
12619 | ;; | |
12620 | esac | |
12621 | fi | |
12622 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
12623 | if 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; } | |
12626 | else | |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12628 | $as_echo "no" >&6; } | |
12629 | fi | |
12630 | ||
12631 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
12632 | PKG_CONFIG="" | |
12633 | else | |
12634 | case $cross_compiling:$ac_tool_warned in | |
12635 | yes:) | |
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;} | |
12638 | ac_tool_warned=yes ;; | |
12639 | esac | |
12640 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
12641 | fi | |
12642 | else | |
12643 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
12644 | fi | |
12645 | ||
12646 | fi | |
12647 | if 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 | ||
12660 | fi | |
12661 | ||
d6ce1786 | 12662 | elif 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. | |
12666 | set 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; } | |
12669 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
12670 | $as_echo_n "(cached) " >&6 | |
12671 | else | |
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 | |
12678 | for as_dir in $PATH | |
12679 | do | |
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 | |
12688 | done | |
12689 | done | |
12690 | IFS=$as_save_IFS | |
12691 | ||
12692 | ;; | |
12693 | esac | |
12694 | fi | |
12695 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
12696 | if test -n "$OCAMLLEX"; then | |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
12698 | $as_echo "$OCAMLLEX" >&6; } | |
12699 | else | |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12701 | $as_echo "no" >&6; } | |
12702 | fi | |
12703 | ||
12704 | ||
12705 | fi | |
12706 | if 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. | |
12709 | set 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; } | |
12712 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
12713 | $as_echo_n "(cached) " >&6 | |
12714 | else | |
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 | |
12721 | for as_dir in $PATH | |
12722 | do | |
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 | |
12731 | done | |
12732 | done | |
12733 | IFS=$as_save_IFS | |
12734 | ||
12735 | ;; | |
12736 | esac | |
12737 | fi | |
12738 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
12739 | if 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; } | |
12742 | else | |
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12744 | $as_echo "no" >&6; } | |
12745 | fi | |
12746 | ||
12747 | if test "x$ac_pt_OCAMLLEX" = x; then | |
12748 | OCAMLLEX="no" | |
12749 | else | |
12750 | case $cross_compiling:$ac_tool_warned in | |
12751 | yes:) | |
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;} | |
12754 | ac_tool_warned=yes ;; | |
12755 | esac | |
12756 | OCAMLLEX=$ac_pt_OCAMLLEX | |
12757 | fi | |
12758 | else | |
12759 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
12760 | fi | |
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. | |
12765 | set 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; } | |
12768 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
12769 | $as_echo_n "(cached) " >&6 | |
12770 | else | |
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 | |
12777 | for as_dir in $PATH | |
12778 | do | |
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 | |
12787 | done | |
12788 | done | |
12789 | IFS=$as_save_IFS | |
12790 | ||
12791 | ;; | |
12792 | esac | |
12793 | fi | |
12794 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
12795 | if test -n "$OCAMLLEXDOTOPT"; then | |
12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
12797 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
12798 | else | |
12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12800 | $as_echo "no" >&6; } | |
12801 | fi | |
12802 | ||
12803 | ||
12804 | fi | |
12805 | if 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. | |
12808 | set 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; } | |
12811 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
12812 | $as_echo_n "(cached) " >&6 | |
12813 | else | |
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 | |
12820 | for as_dir in $PATH | |
12821 | do | |
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 | |
12830 | done | |
12831 | done | |
12832 | IFS=$as_save_IFS | |
12833 | ||
12834 | ;; | |
12835 | esac | |
12836 | fi | |
12837 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
12838 | if 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; } | |
12841 | else | |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12843 | $as_echo "no" >&6; } | |
12844 | fi | |
12845 | ||
12846 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
12847 | OCAMLLEXDOTOPT="no" | |
12848 | else | |
12849 | case $cross_compiling:$ac_tool_warned in | |
12850 | yes:) | |
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;} | |
12853 | ac_tool_warned=yes ;; | |
12854 | esac | |
12855 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
12856 | fi | |
12857 | else | |
12858 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
12859 | fi | |
12860 | ||
12861 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
12862 | OCAMLLEX=$OCAMLLEXDOTOPT | |
12863 | fi | |
12864 | fi | |
12865 | ||
12866 | ||
12867 | ||
d6ce1786 | 12868 | elif 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. | |
12871 | set 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; } | |
12874 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
12875 | $as_echo_n "(cached) " >&6 | |
12876 | else | |
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 | |
12883 | for as_dir in $PATH | |
12884 | do | |
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 | |
12893 | done | |
12894 | done | |
12895 | IFS=$as_save_IFS | |
12896 | ||
12897 | ;; | |
12898 | esac | |
12899 | fi | |
12900 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
12901 | if test -n "$OCAMLYACC"; then | |
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
12903 | $as_echo "$OCAMLYACC" >&6; } | |
12904 | else | |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12906 | $as_echo "no" >&6; } | |
12907 | fi | |
12908 | ||
12909 | ||
12910 | fi | |
12911 | if 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. | |
12914 | set 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; } | |
12917 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
12918 | $as_echo_n "(cached) " >&6 | |
12919 | else | |
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 | |
12926 | for as_dir in $PATH | |
12927 | do | |
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 | |
12936 | done | |
12937 | done | |
12938 | IFS=$as_save_IFS | |
12939 | ||
12940 | ;; | |
12941 | esac | |
12942 | fi | |
12943 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
12944 | if 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; } | |
12947 | else | |
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12949 | $as_echo "no" >&6; } | |
12950 | fi | |
12951 | ||
12952 | if test "x$ac_pt_OCAMLYACC" = x; then | |
12953 | OCAMLYACC="no" | |
12954 | else | |
12955 | case $cross_compiling:$ac_tool_warned in | |
12956 | yes:) | |
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;} | |
12959 | ac_tool_warned=yes ;; | |
12960 | esac | |
12961 | OCAMLYACC=$ac_pt_OCAMLYACC | |
12962 | fi | |
12963 | else | |
12964 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
12965 | fi | |
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | else | |
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. |
12973 | set 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; } | |
12976 | if ${ac_cv_path_PYTHON+:} false; then : | |
12977 | $as_echo_n "(cached) " >&6 | |
12978 | else | |
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 | |
12985 | for as_dir in $PATH | |
12986 | do | |
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 | |
12995 | done | |
12996 | done | |
12997 | IFS=$as_save_IFS | |
12998 | ||
12999 | ;; | |
13000 | esac | |
13001 | fi | |
13002 | PYTHON=$ac_cv_path_PYTHON | |
13003 | if test -n "$PYTHON"; then | |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
13005 | $as_echo "$PYTHON" >&6; } | |
13006 | else | |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13008 | $as_echo "no" >&6; } | |
13009 | fi | |
13010 | ||
13011 | ||
13012 | fi | |
13013 | if 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. |
13016 | set 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; } | |
13019 | if ${ac_cv_path_ac_pt_PYTHON+:} false; then : | |
13020 | $as_echo_n "(cached) " >&6 | |
13021 | else | |
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 | |
13028 | for as_dir in $PATH | |
13029 | do | |
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 | |
13038 | done | |
13039 | done | |
13040 | IFS=$as_save_IFS | |
13041 | ||
13042 | ;; | |
13043 | esac | |
13044 | fi | |
13045 | ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON | |
13046 | if 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; } | |
13049 | else | |
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13051 | $as_echo "no" >&6; } | |
13052 | fi | |
13053 | ||
13054 | if test "x$ac_pt_PYTHON" = x; then | |
13055 | PYTHON="" | |
13056 | else | |
13057 | case $cross_compiling:$ac_tool_warned in | |
13058 | yes:) | |
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;} | |
13061 | ac_tool_warned=yes ;; | |
13062 | esac | |
13063 | PYTHON=$ac_pt_PYTHON | |
13064 | fi | |
13065 | else | |
13066 | PYTHON="$ac_cv_path_PYTHON" | |
13067 | fi | |
13068 | ||
13069 | ||
13070 | fi | |
13071 | ||
13072 | ||
13073 | fi | |
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 | ||
13079 | fi | |
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 | ||
13089 | if 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. | |
13092 | set 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; } | |
13095 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
13096 | $as_echo_n "(cached) " >&6 | |
13097 | else | |
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 | |
13104 | for as_dir in $PATH | |
13105 | do | |
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 | |
13114 | done | |
13115 | done | |
13116 | IFS=$as_save_IFS | |
13117 | ||
13118 | ;; | |
13119 | esac | |
13120 | fi | |
13121 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13122 | if test -n "$PKG_CONFIG"; then | |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
13124 | $as_echo "$PKG_CONFIG" >&6; } | |
13125 | else | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13127 | $as_echo "no" >&6; } | |
13128 | fi | |
13129 | ||
13130 | ||
13131 | fi | |
13132 | if 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. | |
13135 | set 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; } | |
13138 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
13139 | $as_echo_n "(cached) " >&6 | |
13140 | else | |
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 | |
13147 | for as_dir in $PATH | |
13148 | do | |
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 | |
13157 | done | |
13158 | done | |
13159 | IFS=$as_save_IFS | |
13160 | ||
13161 | ;; | |
13162 | esac | |
13163 | fi | |
13164 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
13165 | if 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; } | |
13168 | else | |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13170 | $as_echo "no" >&6; } | |
13171 | fi | |
13172 | ||
13173 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
13174 | PKG_CONFIG="" | |
13175 | else | |
13176 | case $cross_compiling:$ac_tool_warned in | |
13177 | yes:) | |
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;} | |
13180 | ac_tool_warned=yes ;; | |
13181 | esac | |
13182 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
13183 | fi | |
13184 | else | |
13185 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
13186 | fi | |
13187 | ||
13188 | fi | |
13189 | if 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 | ||
13202 | fi | |
13203 | ||
13204 | elif 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. | |
13208 | set 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; } | |
13211 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
13212 | $as_echo_n "(cached) " >&6 | |
13213 | else | |
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 | |
13220 | for as_dir in $PATH | |
13221 | do | |
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 | |
13230 | done | |
13231 | done | |
13232 | IFS=$as_save_IFS | |
13233 | ||
13234 | ;; | |
13235 | esac | |
13236 | fi | |
13237 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
13238 | if test -n "$OCAMLLEX"; then | |
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
13240 | $as_echo "$OCAMLLEX" >&6; } | |
13241 | else | |
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13243 | $as_echo "no" >&6; } | |
13244 | fi | |
13245 | ||
13246 | ||
13247 | fi | |
13248 | if 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. | |
13251 | set 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; } | |
13254 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
13255 | $as_echo_n "(cached) " >&6 | |
13256 | else | |
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 | |
13263 | for as_dir in $PATH | |
13264 | do | |
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 | |
13273 | done | |
13274 | done | |
13275 | IFS=$as_save_IFS | |
13276 | ||
13277 | ;; | |
13278 | esac | |
13279 | fi | |
13280 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
13281 | if 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; } | |
13284 | else | |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13286 | $as_echo "no" >&6; } | |
13287 | fi | |
13288 | ||
13289 | if test "x$ac_pt_OCAMLLEX" = x; then | |
13290 | OCAMLLEX="no" | |
13291 | else | |
13292 | case $cross_compiling:$ac_tool_warned in | |
13293 | yes:) | |
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;} | |
13296 | ac_tool_warned=yes ;; | |
13297 | esac | |
13298 | OCAMLLEX=$ac_pt_OCAMLLEX | |
13299 | fi | |
13300 | else | |
13301 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
13302 | fi | |
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. | |
13307 | set 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; } | |
13310 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
13311 | $as_echo_n "(cached) " >&6 | |
13312 | else | |
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 | |
13319 | for as_dir in $PATH | |
13320 | do | |
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 | |
13329 | done | |
13330 | done | |
13331 | IFS=$as_save_IFS | |
13332 | ||
13333 | ;; | |
13334 | esac | |
13335 | fi | |
13336 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
13337 | if test -n "$OCAMLLEXDOTOPT"; then | |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
13339 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
13340 | else | |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13342 | $as_echo "no" >&6; } | |
13343 | fi | |
13344 | ||
13345 | ||
13346 | fi | |
13347 | if 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. | |
13350 | set 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; } | |
13353 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
13354 | $as_echo_n "(cached) " >&6 | |
13355 | else | |
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 | |
13362 | for as_dir in $PATH | |
13363 | do | |
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 | |
13372 | done | |
13373 | done | |
13374 | IFS=$as_save_IFS | |
13375 | ||
13376 | ;; | |
13377 | esac | |
13378 | fi | |
13379 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
13380 | if 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; } | |
13383 | else | |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13385 | $as_echo "no" >&6; } | |
13386 | fi | |
13387 | ||
13388 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
13389 | OCAMLLEXDOTOPT="no" | |
13390 | else | |
13391 | case $cross_compiling:$ac_tool_warned in | |
13392 | yes:) | |
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;} | |
13395 | ac_tool_warned=yes ;; | |
13396 | esac | |
13397 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
13398 | fi | |
13399 | else | |
13400 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
13401 | fi | |
13402 | ||
13403 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
13404 | OCAMLLEX=$OCAMLLEXDOTOPT | |
13405 | fi | |
13406 | fi | |
13407 | ||
13408 | ||
13409 | ||
13410 | elif 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. | |
13413 | set 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; } | |
13416 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
13417 | $as_echo_n "(cached) " >&6 | |
13418 | else | |
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 | |
13425 | for as_dir in $PATH | |
13426 | do | |
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 | |
13435 | done | |
13436 | done | |
13437 | IFS=$as_save_IFS | |
13438 | ||
13439 | ;; | |
13440 | esac | |
13441 | fi | |
13442 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
13443 | if test -n "$OCAMLYACC"; then | |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
13445 | $as_echo "$OCAMLYACC" >&6; } | |
13446 | else | |
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13448 | $as_echo "no" >&6; } | |
13449 | fi | |
13450 | ||
13451 | ||
13452 | fi | |
13453 | if 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. | |
13456 | set 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; } | |
13459 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
13460 | $as_echo_n "(cached) " >&6 | |
13461 | else | |
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 | |
13468 | for as_dir in $PATH | |
13469 | do | |
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 | |
13478 | done | |
13479 | done | |
13480 | IFS=$as_save_IFS | |
13481 | ||
13482 | ;; | |
13483 | esac | |
13484 | fi | |
13485 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
13486 | if 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; } | |
13489 | else | |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13491 | $as_echo "no" >&6; } | |
13492 | fi | |
13493 | ||
13494 | if test "x$ac_pt_OCAMLYACC" = x; then | |
13495 | OCAMLYACC="no" | |
13496 | else | |
13497 | case $cross_compiling:$ac_tool_warned in | |
13498 | yes:) | |
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;} | |
13501 | ac_tool_warned=yes ;; | |
13502 | esac | |
13503 | OCAMLYACC=$ac_pt_OCAMLYACC | |
13504 | fi | |
13505 | else | |
13506 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
13507 | fi | |
13508 | ||
13509 | ||
13510 | ||
13511 | ||
13512 | else | |
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. | |
13515 | set 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; } | |
13518 | if ${ac_cv_path_PYTHON+:} false; then : | |
13519 | $as_echo_n "(cached) " >&6 | |
13520 | else | |
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 | |
13527 | for as_dir in $PATH | |
13528 | do | |
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 | |
13537 | done | |
13538 | done | |
13539 | IFS=$as_save_IFS | |
13540 | ||
13541 | ;; | |
13542 | esac | |
13543 | fi | |
13544 | PYTHON=$ac_cv_path_PYTHON | |
13545 | if test -n "$PYTHON"; then | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
13547 | $as_echo "$PYTHON" >&6; } | |
13548 | else | |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13550 | $as_echo "no" >&6; } | |
13551 | fi | |
13552 | ||
13553 | ||
13554 | fi | |
13555 | if 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. | |
13558 | set 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; } | |
13561 | if ${ac_cv_path_ac_pt_PYTHON+:} false; then : | |
13562 | $as_echo_n "(cached) " >&6 | |
13563 | else | |
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 | |
13570 | for as_dir in $PATH | |
13571 | do | |
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 | |
13580 | done | |
13581 | done | |
13582 | IFS=$as_save_IFS | |
13583 | ||
13584 | ;; | |
13585 | esac | |
13586 | fi | |
13587 | ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON | |
13588 | if 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; } | |
13591 | else | |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13593 | $as_echo "no" >&6; } | |
13594 | fi | |
13595 | ||
13596 | if test "x$ac_pt_PYTHON" = x; then | |
13597 | PYTHON="" | |
13598 | else | |
13599 | case $cross_compiling:$ac_tool_warned in | |
13600 | yes:) | |
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;} | |
13603 | ac_tool_warned=yes ;; | |
13604 | esac | |
13605 | PYTHON=$ac_pt_PYTHON | |
13606 | fi | |
13607 | else | |
13608 | PYTHON="$ac_cv_path_PYTHON" | |
13609 | fi | |
13610 | ||
13611 | ||
13612 | fi | |
13613 | ||
13614 | SUBSTITUTED_PYTHON=yes | |
13615 | ||
13616 | ||
13617 | fi | |
13618 | ||
13619 | fi | |
13620 | ||
13621 | if test -z "$PYTHON"; then : | |
13622 | PYTHON=no | |
13623 | ||
13624 | fi | |
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 | |
13629 | do | |
13630 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13631 | set 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; } | |
13634 | if ${ac_cv_path_PYTHON+:} false; then : | |
13635 | $as_echo_n "(cached) " >&6 | |
13636 | else | |
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 | |
13643 | for as_dir in $PATH | |
13644 | do | |
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 | |
13653 | done | |
13654 | done | |
13655 | IFS=$as_save_IFS | |
13656 | ||
13657 | ;; | |
13658 | esac | |
13659 | fi | |
13660 | PYTHON=$ac_cv_path_PYTHON | |
13661 | if test -n "$PYTHON"; then | |
13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
13663 | $as_echo "$PYTHON" >&6; } | |
13664 | else | |
13665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13666 | $as_echo "no" >&6; } | |
13667 | fi | |
13668 | ||
13669 | ||
13670 | test -n "$PYTHON" && break | |
13671 | done | |
13672 | ||
13673 | if test -z "$PYTHON"; then : | |
13674 | PYTHON=no | |
13675 | ||
13676 | fi | |
13677 | ||
13678 | fi | |
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 | ||
13686 | fi | |
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; } | |
13695 | else | |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
13697 | $as_echo "failed" >&6; } | |
13698 | fi | |
13699 | ||
13700 | ||
13701 | fi | |
13702 | ||
13703 | else | |
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 | ||
13707 | fi | |
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 | ||
13719 | fi | |
13720 | ||
13721 | else | |
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 | |
13725 | pkg_failed=no | |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 | |
13727 | $as_echo_n "checking for PYTHON... " >&6; } | |
13728 | ||
13729 | if 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` | |
13739 | else | |
13740 | pkg_failed=yes | |
13741 | fi | |
13742 | else | |
13743 | pkg_failed=untried | |
13744 | fi | |
13745 | if 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` | |
13755 | else | |
13756 | pkg_failed=yes | |
13757 | fi | |
13758 | else | |
13759 | pkg_failed=untried | |
13760 | fi | |
13761 | ||
13762 | ||
13763 | ||
13764 | if test $pkg_failed = yes; then | |
13765 | ||
13766 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13767 | _pkg_short_errors_supported=yes | |
13768 | else | |
13769 | _pkg_short_errors_supported=no | |
13770 | fi | |
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 | ||
13783 | elif test $pkg_failed = untried; then | |
13784 | HAVE_PYTHON=no | |
13785 | ||
13786 | else | |
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 | ||
13793 | fi | |
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 | |
13799 | pkg_failed=no | |
13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 | |
13801 | $as_echo_n "checking for PYTHON... " >&6; } | |
13802 | ||
13803 | if 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` | |
13813 | else | |
13814 | pkg_failed=yes | |
13815 | fi | |
13816 | else | |
13817 | pkg_failed=untried | |
13818 | fi | |
13819 | if 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` | |
13829 | else | |
13830 | pkg_failed=yes | |
13831 | fi | |
13832 | else | |
13833 | pkg_failed=untried | |
13834 | fi | |
13835 | ||
13836 | ||
13837 | ||
13838 | if test $pkg_failed = yes; then | |
13839 | ||
13840 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13841 | _pkg_short_errors_supported=yes | |
13842 | else | |
13843 | _pkg_short_errors_supported=no | |
13844 | fi | |
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 | ||
13857 | elif test $pkg_failed = untried; then | |
13858 | HAVE_PYTHON=no | |
13859 | ||
13860 | else | |
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 | ||
13867 | fi | |
13868 | ||
13869 | fi | |
13870 | ||
13871 | fi | |
13872 | ||
13873 | fi | |
13874 | ||
13875 | if test -z "$enable_python"; then : | |
13876 | if test "x$HAVE_PYTHON" = xyes; then : | |
13877 | enable_python=yes | |
13878 | ||
13879 | ||
13880 | else | |
13881 | enable_python=no | |
13882 | ||
13883 | ||
13884 | fi | |
13885 | ||
13886 | fi | |
13887 | ||
13888 | if 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 | ||
13893 | else | |
13894 | as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5 | |
13895 | ||
13896 | fi | |
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. | |
13901 | if test "${enable_pycaml+set}" = set; then : | |
13902 | enableval=$enable_pycaml; | |
13903 | fi | |
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 | ||
13935 | fi | |
13936 | ||
13937 | GLOBAL_pycaml=$OCAML_PKG_pycaml | |
13938 | ||
13939 | ||
13940 | if test "x$GLOBAL_pycaml" != xno; then : | |
13941 | enable_pycaml=yes | |
13942 | ||
13943 | ||
13944 | else | |
13945 | if test "x$enable_pycaml" = xyes; then : | |
13946 | as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5 | |
13947 | ||
13948 | fi | |
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 | ||
13954 | fi | |
13955 | ||
13956 | fi | |
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 | ||
13973 | else | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
13975 | $as_echo "not available" >&6; } | |
13976 | fi | |
13977 | ||
13978 | fi | |
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 | ||
14000 | else | |
14001 | MAKE_pycaml= | |
14002 | ||
14003 | ||
14004 | fi | |
14005 | ||
14006 | else | |
14007 | MODULES_pycaml='$(GLOBAL_pycaml)' | |
14008 | ||
14009 | MODULESOPT_pycaml='$(GLOBALOPT_pycaml)' | |
14010 | ||
14011 | ||
14012 | fi | |
14013 | ||
14014 | fi | |
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 | ||
14019 | fi | |
14020 | ||
14021 | PYCOCCI_MODULE=Yes_pycocci | |
14022 | ||
14023 | PYCOCCI_FILE=yes_pycocci.ml | |
14024 | ||
14025 | ||
14026 | else | |
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 | ||
14045 | fi | |
14046 | ||
14047 | ||
14048 | # Check whether --enable-pcre-syntax was given. | |
14049 | if test "${enable_pcre_syntax+set}" = set; then : | |
14050 | enableval=$enable_pcre_syntax; | |
14051 | fi | |
14052 | ||
14053 | if test "x$enable_pcre_syntax" != "xno"; then : | |
14054 | ||
14055 | pkg_failed=no | |
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5 | |
14057 | $as_echo_n "checking for PCRE... " >&6; } | |
14058 | ||
14059 | if 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` | |
14069 | else | |
14070 | pkg_failed=yes | |
14071 | fi | |
14072 | else | |
14073 | pkg_failed=untried | |
14074 | fi | |
14075 | if 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` | |
14085 | else | |
14086 | pkg_failed=yes | |
14087 | fi | |
14088 | else | |
14089 | pkg_failed=untried | |
14090 | fi | |
14091 | ||
14092 | ||
14093 | ||
14094 | if test $pkg_failed = yes; then | |
14095 | ||
14096 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14097 | _pkg_short_errors_supported=yes | |
14098 | else | |
14099 | _pkg_short_errors_supported=no | |
14100 | fi | |
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 | ||
14113 | elif test $pkg_failed = untried; then | |
14114 | HAVE_PCRE=no | |
14115 | ||
14116 | else | |
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 | ||
14123 | fi | |
14124 | if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then : | |
14125 | enable_pcre_syntax=no | |
14126 | ||
14127 | ||
14128 | else | |
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. | |
14132 | if test "${enable_pcre+set}" = set; then : | |
14133 | enableval=$enable_pcre; | |
14134 | fi | |
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 | ||
14166 | fi | |
14167 | ||
14168 | GLOBAL_pcre=$OCAML_PKG_pcre | |
14169 | ||
14170 | ||
14171 | if test "x$GLOBAL_pcre" != xno; then : | |
14172 | enable_pcre=yes | |
14173 | ||
14174 | ||
14175 | else | |
14176 | if test "x$enable_pcre" = xyes; then : | |
14177 | as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5 | |
14178 | ||
14179 | fi | |
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 | ||
14185 | fi | |
14186 | ||
14187 | fi | |
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 | ||
14204 | else | |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 | |
14206 | $as_echo "not available" >&6; } | |
14207 | fi | |
14208 | ||
14209 | fi | |
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 | ||
14231 | else | |
14232 | MAKE_pcre= | |
14233 | ||
14234 | ||
14235 | fi | |
14236 | ||
14237 | else | |
14238 | MODULES_pcre='$(GLOBAL_pcre)' | |
14239 | ||
14240 | MODULESOPT_pcre='$(GLOBALOPT_pcre)' | |
14241 | ||
14242 | ||
14243 | fi | |
14244 | ||
14245 | fi | |
14246 | enable_pcre_syntax=$enable_pcre | |
14247 | ||
14248 | fi | |
14249 | ||
14250 | fi | |
14251 | ||
14252 | if 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 | ||
14257 | else | |
14258 | as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5 | |
14259 | ||
14260 | fi | |
14261 | ||
14262 | REGEXP_MODULE=Regexp_pcre | |
14263 | ||
14264 | REGEXP_FILE=regexp_pcre.ml | |
14265 | ||
14266 | ||
14267 | else | |
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 | ||
14286 | fi | |
14287 | ||
14288 | ||
14289 | cat >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 | |
14351 | if 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 | |
14372 | fi | |
14373 | rm -f confcache | |
14374 | ||
14375 | ||
14376 | if test "$prefix" = "NONE"; then : | |
14377 | prefix=$ac_default_prefix | |
14378 | fi | |
14379 | ||
14380 | ||
14381 | ||
14382 | SHAREDIR="${prefix}/share/coccinelle" | |
14383 | ||
14384 | ||
14385 | if test "x$enable_python" != xno; then : | |
14386 | FEATURE_PYTHON=1 | |
14387 | ||
14388 | ||
14389 | else | |
14390 | FEATURE_PYTHON=0 | |
14391 | ||
14392 | ||
14393 | fi | |
14394 | ||
14395 | if test "x$enable_ocaml" != xno; then : | |
14396 | FEATURE_OCAML=1 | |
14397 | ||
14398 | ||
14399 | else | |
14400 | FEATURE_OCAML=0 | |
14401 | ||
14402 | ||
14403 | fi | |
14404 | ||
d6ce1786 | 14405 | if 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 | ||
14409 | else | |
14410 | DYNLINK_IS_NATIVE=false | |
14411 | ||
14412 | ||
14413 | fi | |
14414 | ||
14415 | ||
14416 | ||
14417 | # Check whether --with-pdflatex was given. | |
14418 | if test "${with_pdflatex+set}" = set; then : | |
14419 | withval=$with_pdflatex; | |
14420 | fi | |
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 |
14428 | else |
14429 | PDFLATEX="pdflatex" | |
14430 | ||
14431 | ||
feec80c3 C |
14432 | fi |
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 | ||
14440 | else | |
14441 | if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then : | |
feec80c3 C |
14442 | |
14443 | ||
14444 | if 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. | |
14447 | set 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; } | |
14450 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
14451 | $as_echo_n "(cached) " >&6 | |
14452 | else | |
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 | |
14459 | for as_dir in $PATH | |
14460 | do | |
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 | |
14469 | done | |
14470 | done | |
14471 | IFS=$as_save_IFS | |
14472 | ||
14473 | ;; | |
14474 | esac | |
14475 | fi | |
14476 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
14477 | if test -n "$PKG_CONFIG"; then | |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
14479 | $as_echo "$PKG_CONFIG" >&6; } | |
14480 | else | |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14482 | $as_echo "no" >&6; } | |
14483 | fi | |
14484 | ||
14485 | ||
14486 | fi | |
14487 | if 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. | |
14490 | set 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; } | |
14493 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
14494 | $as_echo_n "(cached) " >&6 | |
14495 | else | |
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 | |
14502 | for as_dir in $PATH | |
14503 | do | |
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 | |
14512 | done | |
14513 | done | |
14514 | IFS=$as_save_IFS | |
14515 | ||
14516 | ;; | |
14517 | esac | |
14518 | fi | |
14519 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
14520 | if 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; } | |
14523 | else | |
14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14525 | $as_echo "no" >&6; } | |
14526 | fi | |
14527 | ||
14528 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
14529 | PKG_CONFIG="" | |
14530 | else | |
14531 | case $cross_compiling:$ac_tool_warned in | |
14532 | yes:) | |
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;} | |
14535 | ac_tool_warned=yes ;; | |
14536 | esac | |
14537 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
14538 | fi | |
14539 | else | |
14540 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14541 | fi | |
14542 | ||
14543 | fi | |
14544 | if 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 | ||
14557 | fi | |
14558 | ||
d6ce1786 | 14559 | elif 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. | |
14563 | set 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; } | |
14566 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
14567 | $as_echo_n "(cached) " >&6 | |
14568 | else | |
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 | |
14575 | for as_dir in $PATH | |
14576 | do | |
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 | |
14585 | done | |
14586 | done | |
14587 | IFS=$as_save_IFS | |
14588 | ||
14589 | ;; | |
14590 | esac | |
14591 | fi | |
14592 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
14593 | if test -n "$OCAMLLEX"; then | |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
14595 | $as_echo "$OCAMLLEX" >&6; } | |
14596 | else | |
14597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14598 | $as_echo "no" >&6; } | |
14599 | fi | |
14600 | ||
14601 | ||
14602 | fi | |
14603 | if 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. | |
14606 | set 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; } | |
14609 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
14610 | $as_echo_n "(cached) " >&6 | |
14611 | else | |
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 | |
14618 | for as_dir in $PATH | |
14619 | do | |
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 | |
14628 | done | |
14629 | done | |
14630 | IFS=$as_save_IFS | |
14631 | ||
14632 | ;; | |
14633 | esac | |
14634 | fi | |
14635 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
14636 | if 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; } | |
14639 | else | |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14641 | $as_echo "no" >&6; } | |
14642 | fi | |
14643 | ||
14644 | if test "x$ac_pt_OCAMLLEX" = x; then | |
14645 | OCAMLLEX="no" | |
14646 | else | |
14647 | case $cross_compiling:$ac_tool_warned in | |
14648 | yes:) | |
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;} | |
14651 | ac_tool_warned=yes ;; | |
14652 | esac | |
14653 | OCAMLLEX=$ac_pt_OCAMLLEX | |
14654 | fi | |
14655 | else | |
14656 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
14657 | fi | |
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. | |
14662 | set 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; } | |
14665 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
14666 | $as_echo_n "(cached) " >&6 | |
14667 | else | |
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 | |
14674 | for as_dir in $PATH | |
14675 | do | |
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 | |
14684 | done | |
14685 | done | |
14686 | IFS=$as_save_IFS | |
14687 | ||
14688 | ;; | |
14689 | esac | |
14690 | fi | |
14691 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
14692 | if test -n "$OCAMLLEXDOTOPT"; then | |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
14694 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
14695 | else | |
14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14697 | $as_echo "no" >&6; } | |
14698 | fi | |
14699 | ||
14700 | ||
14701 | fi | |
14702 | if 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. | |
14705 | set 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; } | |
14708 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
14709 | $as_echo_n "(cached) " >&6 | |
14710 | else | |
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 | |
14717 | for as_dir in $PATH | |
14718 | do | |
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 | |
14727 | done | |
14728 | done | |
14729 | IFS=$as_save_IFS | |
14730 | ||
14731 | ;; | |
14732 | esac | |
14733 | fi | |
14734 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
14735 | if 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; } | |
14738 | else | |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14740 | $as_echo "no" >&6; } | |
14741 | fi | |
14742 | ||
14743 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
14744 | OCAMLLEXDOTOPT="no" | |
14745 | else | |
14746 | case $cross_compiling:$ac_tool_warned in | |
14747 | yes:) | |
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;} | |
14750 | ac_tool_warned=yes ;; | |
14751 | esac | |
14752 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
14753 | fi | |
14754 | else | |
14755 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
14756 | fi | |
14757 | ||
14758 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
14759 | OCAMLLEX=$OCAMLLEXDOTOPT | |
14760 | fi | |
14761 | fi | |
14762 | ||
14763 | ||
14764 | ||
d6ce1786 | 14765 | elif 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. | |
14768 | set 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; } | |
14771 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
14772 | $as_echo_n "(cached) " >&6 | |
14773 | else | |
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 | |
14780 | for as_dir in $PATH | |
14781 | do | |
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 | |
14790 | done | |
14791 | done | |
14792 | IFS=$as_save_IFS | |
14793 | ||
14794 | ;; | |
14795 | esac | |
14796 | fi | |
14797 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
14798 | if test -n "$OCAMLYACC"; then | |
14799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
14800 | $as_echo "$OCAMLYACC" >&6; } | |
14801 | else | |
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14803 | $as_echo "no" >&6; } | |
14804 | fi | |
14805 | ||
14806 | ||
14807 | fi | |
14808 | if 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. | |
14811 | set 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; } | |
14814 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
14815 | $as_echo_n "(cached) " >&6 | |
14816 | else | |
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 | |
14823 | for as_dir in $PATH | |
14824 | do | |
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 | |
14833 | done | |
14834 | done | |
14835 | IFS=$as_save_IFS | |
14836 | ||
14837 | ;; | |
14838 | esac | |
14839 | fi | |
14840 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
14841 | if 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; } | |
14844 | else | |
14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14846 | $as_echo "no" >&6; } | |
14847 | fi | |
14848 | ||
14849 | if test "x$ac_pt_OCAMLYACC" = x; then | |
14850 | OCAMLYACC="no" | |
14851 | else | |
14852 | case $cross_compiling:$ac_tool_warned in | |
14853 | yes:) | |
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;} | |
14856 | ac_tool_warned=yes ;; | |
14857 | esac | |
14858 | OCAMLYACC=$ac_pt_OCAMLYACC | |
14859 | fi | |
14860 | else | |
14861 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
14862 | fi | |
14863 | ||
14864 | ||
14865 | ||
14866 | ||
14867 | else | |
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. |
14870 | set 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; } | |
14873 | if ${ac_cv_path_PDFLATEX+:} false; then : | |
14874 | $as_echo_n "(cached) " >&6 | |
14875 | else | |
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 | |
14882 | for as_dir in $PATH | |
14883 | do | |
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 | |
14892 | done | |
14893 | done | |
14894 | IFS=$as_save_IFS | |
14895 | ||
14896 | ;; | |
14897 | esac | |
14898 | fi | |
14899 | PDFLATEX=$ac_cv_path_PDFLATEX | |
14900 | if test -n "$PDFLATEX"; then | |
14901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 | |
14902 | $as_echo "$PDFLATEX" >&6; } | |
14903 | else | |
14904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14905 | $as_echo "no" >&6; } | |
14906 | fi | |
14907 | ||
14908 | ||
14909 | fi | |
14910 | if 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. |
14913 | set 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; } | |
14916 | if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then : | |
14917 | $as_echo_n "(cached) " >&6 | |
14918 | else | |
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 | |
14925 | for as_dir in $PATH | |
14926 | do | |
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 | |
14935 | done | |
14936 | done | |
14937 | IFS=$as_save_IFS | |
14938 | ||
14939 | ;; | |
14940 | esac | |
14941 | fi | |
14942 | ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX | |
14943 | if 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; } | |
14946 | else | |
14947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14948 | $as_echo "no" >&6; } | |
14949 | fi | |
14950 | ||
14951 | if test "x$ac_pt_PDFLATEX" = x; then | |
14952 | PDFLATEX="" | |
14953 | else | |
14954 | case $cross_compiling:$ac_tool_warned in | |
14955 | yes:) | |
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;} | |
14958 | ac_tool_warned=yes ;; | |
14959 | esac | |
14960 | PDFLATEX=$ac_pt_PDFLATEX | |
14961 | fi | |
14962 | else | |
14963 | PDFLATEX="$ac_cv_path_PDFLATEX" | |
14964 | fi | |
14965 | ||
14966 | ||
14967 | fi | |
14968 | ||
14969 | ||
14970 | fi | |
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 | ||
14976 | fi | |
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 | ||
14986 | if 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. | |
14989 | set 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; } | |
14992 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
14993 | $as_echo_n "(cached) " >&6 | |
14994 | else | |
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 | |
15001 | for as_dir in $PATH | |
15002 | do | |
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 | |
15011 | done | |
15012 | done | |
15013 | IFS=$as_save_IFS | |
15014 | ||
15015 | ;; | |
15016 | esac | |
15017 | fi | |
15018 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15019 | if test -n "$PKG_CONFIG"; then | |
15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15021 | $as_echo "$PKG_CONFIG" >&6; } | |
15022 | else | |
15023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15024 | $as_echo "no" >&6; } | |
15025 | fi | |
15026 | ||
15027 | ||
15028 | fi | |
15029 | if 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. | |
15032 | set 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; } | |
15035 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
15036 | $as_echo_n "(cached) " >&6 | |
15037 | else | |
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 | |
15044 | for as_dir in $PATH | |
15045 | do | |
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 | |
15054 | done | |
15055 | done | |
15056 | IFS=$as_save_IFS | |
15057 | ||
15058 | ;; | |
15059 | esac | |
15060 | fi | |
15061 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15062 | if 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; } | |
15065 | else | |
15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15067 | $as_echo "no" >&6; } | |
15068 | fi | |
15069 | ||
15070 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15071 | PKG_CONFIG="" | |
15072 | else | |
15073 | case $cross_compiling:$ac_tool_warned in | |
15074 | yes:) | |
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;} | |
15077 | ac_tool_warned=yes ;; | |
15078 | esac | |
15079 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15080 | fi | |
15081 | else | |
15082 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15083 | fi | |
15084 | ||
15085 | fi | |
15086 | if 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 | ||
15099 | fi | |
15100 | ||
15101 | elif 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. | |
15105 | set 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; } | |
15108 | if ${ac_cv_path_OCAMLLEX+:} false; then : | |
15109 | $as_echo_n "(cached) " >&6 | |
15110 | else | |
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 | |
15117 | for as_dir in $PATH | |
15118 | do | |
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 | |
15127 | done | |
15128 | done | |
15129 | IFS=$as_save_IFS | |
15130 | ||
15131 | ;; | |
15132 | esac | |
15133 | fi | |
15134 | OCAMLLEX=$ac_cv_path_OCAMLLEX | |
15135 | if test -n "$OCAMLLEX"; then | |
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 | |
15137 | $as_echo "$OCAMLLEX" >&6; } | |
15138 | else | |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15140 | $as_echo "no" >&6; } | |
15141 | fi | |
15142 | ||
15143 | ||
15144 | fi | |
15145 | if 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. | |
15148 | set 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; } | |
15151 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : | |
15152 | $as_echo_n "(cached) " >&6 | |
15153 | else | |
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 | |
15160 | for as_dir in $PATH | |
15161 | do | |
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 | |
15170 | done | |
15171 | done | |
15172 | IFS=$as_save_IFS | |
15173 | ||
15174 | ;; | |
15175 | esac | |
15176 | fi | |
15177 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX | |
15178 | if 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; } | |
15181 | else | |
15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15183 | $as_echo "no" >&6; } | |
15184 | fi | |
15185 | ||
15186 | if test "x$ac_pt_OCAMLLEX" = x; then | |
15187 | OCAMLLEX="no" | |
15188 | else | |
15189 | case $cross_compiling:$ac_tool_warned in | |
15190 | yes:) | |
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;} | |
15193 | ac_tool_warned=yes ;; | |
15194 | esac | |
15195 | OCAMLLEX=$ac_pt_OCAMLLEX | |
15196 | fi | |
15197 | else | |
15198 | OCAMLLEX="$ac_cv_path_OCAMLLEX" | |
15199 | fi | |
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. | |
15204 | set 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; } | |
15207 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : | |
15208 | $as_echo_n "(cached) " >&6 | |
15209 | else | |
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 | |
15216 | for as_dir in $PATH | |
15217 | do | |
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 | |
15226 | done | |
15227 | done | |
15228 | IFS=$as_save_IFS | |
15229 | ||
15230 | ;; | |
15231 | esac | |
15232 | fi | |
15233 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT | |
15234 | if test -n "$OCAMLLEXDOTOPT"; then | |
15235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 | |
15236 | $as_echo "$OCAMLLEXDOTOPT" >&6; } | |
15237 | else | |
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15239 | $as_echo "no" >&6; } | |
15240 | fi | |
15241 | ||
15242 | ||
15243 | fi | |
15244 | if 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. | |
15247 | set 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; } | |
15250 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : | |
15251 | $as_echo_n "(cached) " >&6 | |
15252 | else | |
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 | |
15259 | for as_dir in $PATH | |
15260 | do | |
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 | |
15269 | done | |
15270 | done | |
15271 | IFS=$as_save_IFS | |
15272 | ||
15273 | ;; | |
15274 | esac | |
15275 | fi | |
15276 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT | |
15277 | if 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; } | |
15280 | else | |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15282 | $as_echo "no" >&6; } | |
15283 | fi | |
15284 | ||
15285 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then | |
15286 | OCAMLLEXDOTOPT="no" | |
15287 | else | |
15288 | case $cross_compiling:$ac_tool_warned in | |
15289 | yes:) | |
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;} | |
15292 | ac_tool_warned=yes ;; | |
15293 | esac | |
15294 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT | |
15295 | fi | |
15296 | else | |
15297 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" | |
15298 | fi | |
15299 | ||
15300 | if test "$OCAMLLEXDOTOPT" != "no"; then | |
15301 | OCAMLLEX=$OCAMLLEXDOTOPT | |
15302 | fi | |
15303 | fi | |
15304 | ||
15305 | ||
15306 | ||
15307 | elif 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. | |
15310 | set 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; } | |
15313 | if ${ac_cv_path_OCAMLYACC+:} false; then : | |
15314 | $as_echo_n "(cached) " >&6 | |
15315 | else | |
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 | |
15322 | for as_dir in $PATH | |
15323 | do | |
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 | |
15332 | done | |
15333 | done | |
15334 | IFS=$as_save_IFS | |
15335 | ||
15336 | ;; | |
15337 | esac | |
15338 | fi | |
15339 | OCAMLYACC=$ac_cv_path_OCAMLYACC | |
15340 | if test -n "$OCAMLYACC"; then | |
15341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 | |
15342 | $as_echo "$OCAMLYACC" >&6; } | |
15343 | else | |
15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15345 | $as_echo "no" >&6; } | |
15346 | fi | |
15347 | ||
15348 | ||
15349 | fi | |
15350 | if 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. | |
15353 | set 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; } | |
15356 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : | |
15357 | $as_echo_n "(cached) " >&6 | |
15358 | else | |
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 | |
15365 | for as_dir in $PATH | |
15366 | do | |
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 | |
15375 | done | |
15376 | done | |
15377 | IFS=$as_save_IFS | |
15378 | ||
15379 | ;; | |
15380 | esac | |
15381 | fi | |
15382 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC | |
15383 | if 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; } | |
15386 | else | |
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15388 | $as_echo "no" >&6; } | |
15389 | fi | |
15390 | ||
15391 | if test "x$ac_pt_OCAMLYACC" = x; then | |
15392 | OCAMLYACC="no" | |
15393 | else | |
15394 | case $cross_compiling:$ac_tool_warned in | |
15395 | yes:) | |
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;} | |
15398 | ac_tool_warned=yes ;; | |
15399 | esac | |
15400 | OCAMLYACC=$ac_pt_OCAMLYACC | |
15401 | fi | |
15402 | else | |
15403 | OCAMLYACC="$ac_cv_path_OCAMLYACC" | |
15404 | fi | |
15405 | ||
15406 | ||
15407 | ||
15408 | ||
15409 | else | |
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. | |
15412 | set 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; } | |
15415 | if ${ac_cv_path_PDFLATEX+:} false; then : | |
15416 | $as_echo_n "(cached) " >&6 | |
15417 | else | |
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 | |
15424 | for as_dir in $PATH | |
15425 | do | |
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 | |
15434 | done | |
15435 | done | |
15436 | IFS=$as_save_IFS | |
15437 | ||
15438 | ;; | |
15439 | esac | |
15440 | fi | |
15441 | PDFLATEX=$ac_cv_path_PDFLATEX | |
15442 | if test -n "$PDFLATEX"; then | |
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 | |
15444 | $as_echo "$PDFLATEX" >&6; } | |
15445 | else | |
15446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15447 | $as_echo "no" >&6; } | |
15448 | fi | |
15449 | ||
15450 | ||
15451 | fi | |
15452 | if 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. | |
15455 | set 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; } | |
15458 | if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then : | |
15459 | $as_echo_n "(cached) " >&6 | |
15460 | else | |
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 | |
15467 | for as_dir in $PATH | |
15468 | do | |
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 | |
15477 | done | |
15478 | done | |
15479 | IFS=$as_save_IFS | |
15480 | ||
15481 | ;; | |
15482 | esac | |
15483 | fi | |
15484 | ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX | |
15485 | if 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; } | |
15488 | else | |
15489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15490 | $as_echo "no" >&6; } | |
15491 | fi | |
15492 | ||
15493 | if test "x$ac_pt_PDFLATEX" = x; then | |
15494 | PDFLATEX="" | |
15495 | else | |
15496 | case $cross_compiling:$ac_tool_warned in | |
15497 | yes:) | |
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;} | |
15500 | ac_tool_warned=yes ;; | |
15501 | esac | |
15502 | PDFLATEX=$ac_pt_PDFLATEX | |
15503 | fi | |
15504 | else | |
15505 | PDFLATEX="$ac_cv_path_PDFLATEX" | |
15506 | fi | |
15507 | ||
15508 | ||
15509 | fi | |
15510 | ||
15511 | SUBSTITUTED_PDFLATEX=yes | |
15512 | ||
15513 | ||
15514 | fi | |
15515 | ||
15516 | fi | |
15517 | ||
15518 | if test -z "$PDFLATEX"; then : | |
15519 | PDFLATEX=no | |
15520 | ||
15521 | fi | |
15522 | ||
15523 | ||
15524 | ||
feec80c3 C |
15525 | # Check whether --enable-release was given. |
15526 | if test "${enable_release+set}" = set; then : | |
15527 | enableval=$enable_release; | |
15528 | fi | |
15529 | ||
feec80c3 C |
15530 | if 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 | ||
15536 | fi | |
15537 | ||
15538 | if test "x$enable_release" = xyes; then : | |
15539 | MAKETARGET_ALL=all-release | |
15540 | ||
15541 | ||
15542 | elif test "x$enable_release" = xno; then : | |
15543 | MAKETARGET_ALL=all-dev | |
15544 | ||
15545 | ||
15546 | else | |
15547 | MAKETARGET_ALL="$enable_release" | |
15548 | ||
15549 | ||
15550 | fi | |
15551 | ||
d6ce1786 C |
15552 | # Check whether --enable-opt was given. |
15553 | if test "${enable_opt+set}" = set; then : | |
15554 | enableval=$enable_opt; | |
15555 | fi | |
15556 | ||
15557 | if 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 | ||
15562 | elif 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 | 15565 | else |
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 | ||
15571 | fi | |
15572 | ||
15573 | fi | |
15574 | ||
15575 | if 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 |
15581 | fi |
15582 | ||
d6ce1786 C |
15583 | if 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 | ||
15590 | elif 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 | ||
15593 | fi | |
feec80c3 | 15594 | |
d6ce1786 | 15595 | fi |
feec80c3 | 15596 | |
d6ce1786 C |
15597 | # set the default enable-opt setting |
15598 | if 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 | 15603 | fi |
feec80c3 | 15604 | |
d6ce1786 | 15605 | fi |
feec80c3 | 15606 | |
d6ce1786 C |
15607 | if test "x$enable_opt" = xyes; then : |
15608 | SPATCHNAME=spatch.opt | |
feec80c3 | 15609 | |
d6ce1786 | 15610 | MAKETARGET_SPATCH=opt-only |
feec80c3 | 15611 | |
feec80c3 | 15612 | |
d6ce1786 C |
15613 | else |
15614 | SPATCHNAME=spatch | |
feec80c3 | 15615 | |
d6ce1786 C |
15616 | MAKETARGET_SPATCH=byte-only |
15617 | ||
15618 | ||
15619 | fi | |
15620 | ||
15621 | ||
15622 | ||
15623 | ac_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 | ||
15626 | cat >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 | |
15688 | if 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 | |
15709 | fi | |
15710 | rm -f confcache | |
15711 | ||
15712 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15713 | # Let make expand exec_prefix. | |
15714 | test "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. | |
15723 | ac_script=' | |
15724 | :mline | |
15725 | /\\$/{ | |
15726 | N | |
15727 | s,\\\n,, | |
15728 | b mline | |
15729 | } | |
15730 | t clear | |
15731 | :clear | |
15732 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
15733 | t quote | |
15734 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
15735 | t quote | |
15736 | b any | |
15737 | :quote | |
15738 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15739 | s/\[/\\&/g | |
15740 | s/\]/\\&/g | |
15741 | s/\$/$$/g | |
15742 | H | |
15743 | :any | |
15744 | ${ | |
15745 | g | |
15746 | s/^\n// | |
15747 | s/\n/ /g | |
15748 | p | |
15749 | } | |
15750 | ' | |
15751 | DEFS=`sed -n "$ac_script" confdefs.h` | |
15752 | ||
15753 | ||
15754 | ac_libobjs= | |
15755 | ac_ltlibobjs= | |
15756 | U= | |
15757 | for 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' | |
15765 | done | |
15766 | LIBOBJS=$ac_libobjs | |
15767 | ||
15768 | LTLIBOBJS=$ac_ltlibobjs | |
15769 | ||
15770 | ||
15771 | ||
15772 | : "${CONFIG_STATUS=./config.status}" | |
15773 | ac_write_fail=0 | |
15774 | ac_clean_files_save=$ac_clean_files | |
15775 | ac_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;} | |
15778 | as_write_fail=0 | |
15779 | cat >$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 | ||
15786 | debug=false | |
15787 | ac_cs_recheck=false | |
15788 | ac_cs_silent=false | |
15789 | ||
15790 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15791 | export SHELL | |
15792 | _ASEOF | |
15793 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15794 | ## -------------------- ## | |
15795 | ## M4sh Initialization. ## | |
15796 | ## -------------------- ## | |
15797 | ||
15798 | # Be more Bourne compatible | |
15799 | DUALCASE=1; export DUALCASE # for MKS sh | |
15800 | if 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 | |
15807 | else | |
15808 | case `(set -o) 2>/dev/null` in #( | |
15809 | *posix*) : | |
15810 | set -o posix ;; #( | |
15811 | *) : | |
15812 | ;; | |
15813 | esac | |
15814 | fi | |
15815 | ||
15816 | ||
15817 | as_nl=' | |
15818 | ' | |
15819 | export as_nl | |
15820 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15821 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15822 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15823 | as_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. | |
15826 | if 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 --' | |
15830 | elif (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' | |
15833 | else | |
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' | |
15853 | fi | |
15854 | ||
15855 | # The user is always right. | |
15856 | if 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 | } | |
15862 | fi | |
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.) | |
15870 | IFS=" "" $as_nl" | |
15871 | ||
15872 | # Find who we are. Look in the path if we contain no directory separator. | |
15873 | as_myself= | |
15874 | case $0 in #(( | |
15875 | *[\\/]* ) as_myself=$0 ;; | |
15876 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15877 | for as_dir in $PATH | |
15878 | do | |
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 | |
15883 | IFS=$as_save_IFS | |
15884 | ||
15885 | ;; | |
15886 | esac | |
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. | |
15889 | if test "x$as_myself" = x; then | |
15890 | as_myself=$0 | |
15891 | fi | |
15892 | if test ! -f "$as_myself"; then | |
15893 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15894 | exit 1 | |
15895 | fi | |
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. | |
15901 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15902 | do eval test x\${$as_var+set} = xset \ | |
15903 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15904 | done | |
15905 | PS1='$ ' | |
15906 | PS2='> ' | |
15907 | PS4='+ ' | |
15908 | ||
15909 | # NLS nuisances. | |
15910 | LC_ALL=C | |
15911 | export LC_ALL | |
15912 | LANGUAGE=C | |
15913 | export 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. | |
15924 | as_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. | |
15939 | as_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. | |
15947 | as_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. | |
15957 | as_fn_unset () | |
15958 | { | |
15959 | { eval $1=; unset $1;} | |
15960 | } | |
15961 | as_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. | |
15968 | if (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 | }' | |
15973 | else | |
15974 | as_fn_append () | |
15975 | { | |
15976 | eval $1=\$$1\$2 | |
15977 | } | |
15978 | fi # 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. | |
15985 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15986 | eval 'as_fn_arith () | |
15987 | { | |
15988 | as_val=$(( $* )) | |
15989 | }' | |
15990 | else | |
15991 | as_fn_arith () | |
15992 | { | |
15993 | as_val=`expr "$@" || test $? -eq 1` | |
15994 | } | |
15995 | fi # as_fn_arith | |
15996 | ||
15997 | ||
15998 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
15999 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16000 | as_expr=expr | |
16001 | else | |
16002 | as_expr=false | |
16003 | fi | |
16004 | ||
16005 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16006 | as_basename=basename | |
16007 | else | |
16008 | as_basename=false | |
16009 | fi | |
16010 | ||
16011 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16012 | as_dirname=dirname | |
16013 | else | |
16014 | as_dirname=false | |
16015 | fi | |
16016 | ||
16017 | as_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. | |
16037 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16038 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16039 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16040 | as_cr_digits='0123456789' | |
16041 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16042 | ||
16043 | ECHO_C= ECHO_N= ECHO_T= | |
16044 | case `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';; | |
16054 | esac | |
16055 | ||
16056 | rm -f conf$$ conf$$.exe conf$$.file | |
16057 | if test -d conf$$.dir; then | |
16058 | rm -f conf$$.dir/conf$$.file | |
16059 | else | |
16060 | rm -f conf$$.dir | |
16061 | mkdir conf$$.dir 2>/dev/null | |
16062 | fi | |
16063 | if (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 | |
16077 | else | |
16078 | as_ln_s='cp -p' | |
16079 | fi | |
16080 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16081 | rmdir conf$$.dir 2>/dev/null | |
16082 | ||
16083 | ||
16084 | # as_fn_mkdir_p | |
16085 | # ------------- | |
16086 | # Create "$as_dir" as a directory, including parents if necessary. | |
16087 | as_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 | |
16131 | if mkdir -p . 2>/dev/null; then | |
16132 | as_mkdir_p='mkdir -p "$as_dir"' | |
16133 | else | |
16134 | test -d ./-p && rmdir ./-p | |
16135 | as_mkdir_p=false | |
16136 | fi | |
16137 | ||
16138 | if test -x / >/dev/null 2>&1; then | |
16139 | as_test_x='test -x' | |
16140 | else | |
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 | ' | |
16158 | fi | |
16159 | as_executable_p=$as_test_x | |
16160 | ||
16161 | # Sed expression to map a string onto a valid CPP name. | |
16162 | as_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. | |
16165 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16166 | ||
16167 | ||
16168 | exec 6>&1 | |
16169 | ## ----------------------------------- ## | |
16170 | ## Main body of $CONFIG_STATUS script. ## | |
16171 | ## ----------------------------------- ## | |
16172 | _ASEOF | |
16173 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16174 | ||
16175 | cat >>$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. | |
16179 | ac_log=" | |
d6ce1786 | 16180 | This file was extended by coccinelle $as_me 1.0.0-rc12, which was |
feec80c3 C |
16181 | generated 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 | ||
16189 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16190 | " | |
16191 | ||
16192 | _ACEOF | |
16193 | ||
16194 | case $ac_config_files in *" | |
16195 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16196 | esac | |
16197 | ||
16198 | ||
16199 | ||
16200 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16201 | # Files that config.status was made for. | |
16202 | config_files="$ac_config_files" | |
16203 | ||
16204 | _ACEOF | |
16205 | ||
16206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16207 | ac_cs_usage="\ | |
16208 | \`$as_me' instantiates files and other configuration actions | |
16209 | from templates according to the current configuration. Unless the files | |
16210 | and actions are specified as TAGs, all are instantiated by default. | |
16211 | ||
16212 | Usage: $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 | ||
16224 | Configuration files: | |
16225 | $config_files | |
16226 | ||
16227 | Report bugs to <cocci@diku.dk>. | |
16228 | coccinelle home page: <http://coccinelle.lip6.fr/>." | |
16229 | ||
16230 | _ACEOF | |
16231 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16232 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
16233 | ac_cs_version="\\ | |
d6ce1786 | 16234 | coccinelle config.status 1.0.0-rc12 |
feec80c3 C |
16235 | configured by $0, generated by GNU Autoconf 2.68, |
16236 | with options \\"\$ac_cs_config\\" | |
16237 | ||
16238 | Copyright (C) 2010 Free Software Foundation, Inc. | |
16239 | This config.status script is free software; the Free Software Foundation | |
16240 | gives unlimited permission to copy, distribute and modify it." | |
16241 | ||
16242 | ac_pwd='$ac_pwd' | |
16243 | srcdir='$srcdir' | |
16244 | INSTALL='$INSTALL' | |
16245 | MKDIR_P='$MKDIR_P' | |
16246 | test -n "\$AWK" || AWK=awk | |
16247 | _ACEOF | |
16248 | ||
16249 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16250 | # The default lists apply if the user does not specify any file. | |
16251 | ac_need_defaults=: | |
16252 | while test $# != 0 | |
16253 | do | |
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' | |
16298 | Try \`$0 --help' for more information." ;; | |
16299 | ||
16300 | *) as_fn_append ac_config_targets " $1" | |
16301 | ac_need_defaults=false ;; | |
16302 | ||
16303 | esac | |
16304 | shift | |
16305 | done | |
16306 | ||
16307 | ac_configure_extra_args= | |
16308 | ||
16309 | if $ac_cs_silent; then | |
16310 | exec 6>/dev/null | |
16311 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16312 | fi | |
16313 | ||
16314 | _ACEOF | |
16315 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16316 | if \$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 "\$@" | |
16323 | fi | |
16324 | ||
16325 | _ACEOF | |
16326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16327 | exec 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 | |
16337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16338 | _ACEOF | |
16339 | ||
16340 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16341 | ||
16342 | # Handling of arguments. | |
16343 | for ac_config_target in $ac_config_targets | |
16344 | do | |
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 | |
16358 | done | |
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. | |
16365 | if $ac_need_defaults; then | |
16366 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16367 | fi | |
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 | |
16394 | ac_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'. | |
16399 | if test -n "$CONFIG_FILES"; then | |
16400 | ||
16401 | ||
16402 | ac_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. | |
16406 | if test "x$ac_cr" = x; then | |
16407 | eval ac_cr=\$\'\\r\' | |
16408 | fi | |
16409 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16410 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16411 | ac_cs_awk_cr='\\r' | |
16412 | else | |
16413 | ac_cs_awk_cr=$ac_cr | |
16414 | fi | |
16415 | ||
16416 | echo '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 | |
16426 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
16427 | ac_delim='%!_!# ' | |
16428 | for 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 | |
16440 | done | |
16441 | rm -f conf$$subs.sh | |
16442 | ||
16443 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16444 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
16445 | _ACEOF | |
16446 | sed -n ' | |
16447 | h | |
16448 | s/^/S["/; s/!.*/"]=/ | |
16449 | p | |
16450 | g | |
16451 | s/^[^!]*!// | |
16452 | :repl | |
16453 | t repl | |
16454 | s/'"$ac_delim"'$// | |
16455 | t delim | |
16456 | :nl | |
16457 | h | |
16458 | s/\(.\{148\}\)..*/\1/ | |
16459 | t more1 | |
16460 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16461 | p | |
16462 | n | |
16463 | b repl | |
16464 | :more1 | |
16465 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16466 | p | |
16467 | g | |
16468 | s/.\{148\}// | |
16469 | t nl | |
16470 | :delim | |
16471 | h | |
16472 | s/\(.\{148\}\)..*/\1/ | |
16473 | t more2 | |
16474 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16475 | p | |
16476 | b | |
16477 | :more2 | |
16478 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16479 | p | |
16480 | g | |
16481 | s/.\{148\}// | |
16482 | t delim | |
16483 | ' <conf$$subs.awk | sed ' | |
16484 | /^[^""]/{ | |
16485 | N | |
16486 | s/\n// | |
16487 | } | |
16488 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16489 | rm -f conf$$subs.awk | |
16490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16491 | _ACAWK | |
16492 | cat >>"\$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 | |
16519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16520 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16521 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16522 | else | |
16523 | cat | |
16524 | fi < "$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). | |
16532 | if test "x$srcdir" = x.; then | |
16533 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
16534 | h | |
16535 | s/// | |
16536 | s/^/:/ | |
16537 | s/[ ]*$/:/ | |
16538 | s/:\$(srcdir):/:/g | |
16539 | s/:\${srcdir}:/:/g | |
16540 | s/:@srcdir@:/:/g | |
16541 | s/^:*// | |
16542 | s/:*$// | |
16543 | x | |
16544 | s/\(=[ ]*\).*/\1/ | |
16545 | G | |
16546 | s/\n// | |
16547 | s/^[^=]*=[ ]*$// | |
16548 | }' | |
16549 | fi | |
16550 | ||
16551 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16552 | fi # test -n "$CONFIG_FILES" | |
16553 | ||
16554 | ||
16555 | eval set X " :F $CONFIG_FILES " | |
16556 | shift | |
16557 | for ac_tag | |
16558 | do | |
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 | ||
16650 | case "$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 ;; | |
16660 | esac | |
16661 | ac_abs_top_builddir=$ac_pwd | |
16662 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16663 | # for backward compatibility: | |
16664 | ac_top_builddir=$ac_top_build_prefix | |
16665 | ||
16666 | case $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 ;; | |
16679 | esac | |
16680 | ac_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 | ||
16700 | cat >>$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. | |
16703 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16704 | ac_sed_dataroot=' | |
16705 | /datarootdir/ { | |
16706 | p | |
16707 | q | |
16708 | } | |
16709 | /@datadir@/p | |
16710 | /@docdir@/p | |
16711 | /@infodir@/p | |
16712 | /@localedir@/p | |
16713 | /@mandir@/p' | |
16714 | case `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 | |
16720 | cat >>$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' ;; | |
16728 | esac | |
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? | |
16734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16735 | ac_sed_extra="$ac_vpsub | |
16736 | $extrasub | |
16737 | _ACEOF | |
16738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16739 | :t | |
16740 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16741 | s|@configure_input@|$ac_sed_conf_input|;t t | |
16742 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16743 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16744 | s&@srcdir@&$ac_srcdir&;t t | |
16745 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16746 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16747 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16748 | s&@builddir@&$ac_builddir&;t t | |
16749 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16750 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16751 | s&@INSTALL@&$ac_INSTALL&;t t | |
16752 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16753 | $ac_datarootdir_hack | |
16754 | " | |
16755 | eval 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 | ||
16758 | test -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' | |
16763 | which 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' | |
16765 | which 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 | ||
16779 | done # for ac_tag | |
16780 | ||
16781 | ||
16782 | as_fn_exit 0 | |
16783 | _ACEOF | |
16784 | ac_clean_files=$ac_clean_files_save | |
16785 | ||
16786 | test $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. | |
16798 | if 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 | |
16809 | fi | |
16810 | if 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;} | |
16813 | fi | |
16814 | ||
16815 | ||
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5 | |
16817 | $as_echo "$as_me: configuration completed" >&6;} | |
16818 | ||
16819 | cat << EOF | |
16820 | ------------------------------------------------------------------------------ | |
16821 | Summary | |
16822 | ||
d6ce1786 C |
16823 | configure flags: $CONFIGURE_FLAGS |
16824 | findlib: $OCAMLFIND (an actual version is strongly recommended) | |
16825 | menhir: $MENHIR (should be an optional tool) | |
16826 | menhirLib module: $enable_mehir (for local package use --disable-menhirLib) | |
feec80c3 | 16827 | |
d6ce1786 C |
16828 | ocaml scripting: $enable_ocaml (overridable with --enable-ocaml) |
16829 | python scripting: $enable_python (overridable with --enable-python) | |
16830 | pycaml module: $enable_pycaml (for local package use --disable-pycaml) | |
feec80c3 | 16831 | |
d6ce1786 C |
16832 | pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax) |
16833 | pcre module: $enable_pcre (for local package use --disable-pcre) | |
16834 | pcre library: $HAVE_PCRE (requires the dev version of libpcre) | |
feec80c3 | 16835 | |
d6ce1786 C |
16836 | release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release) |
16837 | optimized spatch: $enable_opt (overridable with --disable-opt) | |
feec80c3 | 16838 | |
feec80c3 C |
16839 | ------------------------------------------------------------------------------ |
16840 | Coccinelle can now be compiled and installed. | |
16841 | ||
16842 | ||
16843 | If you compile coccinelle again after source code changes or | |
16844 | configuration changes, you may need to run first: | |
16845 | \$ make clean | |
16846 | ||
16847 | To compile coccinelle, run: | |
16848 | \$ make all | |
16849 | ||
16850 | To install coccinelle, run: | |
16851 | \$ make install | |
16852 | ||
d6ce1786 C |
16853 | Then, to test coccinelle, run for example: |
16854 | \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c | |
16855 | ||
16856 | Or 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 |
16858 | EOF |
16859 | ||
16860 | if test "x$enable_python" != "xno"; then | |
16861 | cat << EOF | |
16862 | ------------------------------------------------------------------------------ | |
16863 | You may need to set some environment variables so that the python | |
16864 | libraries 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 | ||
16869 | EOF | |
16870 | fi | |
ca417fcf | 16871 | |
feec80c3 C |
16872 | cat << EOF |
16873 | ------------------------------------------------------------------------------ | |
16874 | EOF |