| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for coccinelle 1.0.0-rc14. |
| 4 | # |
| 5 | # Report bugs to <cocci@diku.dk>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | as_myself= |
| 93 | case $0 in #(( |
| 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 | exit 1 |
| 114 | fi |
| 115 | |
| 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 201 | if (eval "$as_required") 2>/dev/null; then : |
| 202 | as_have_required=yes |
| 203 | else |
| 204 | as_have_required=no |
| 205 | fi |
| 206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 207 | |
| 208 | else |
| 209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 210 | as_found=false |
| 211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 212 | do |
| 213 | IFS=$as_save_IFS |
| 214 | test -z "$as_dir" && as_dir=. |
| 215 | as_found=: |
| 216 | case $as_dir in #( |
| 217 | /*) |
| 218 | for as_base in sh bash ksh sh5; do |
| 219 | # Try only shells that exist, to save several forks. |
| 220 | as_shell=$as_dir/$as_base |
| 221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 223 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 | break 2 |
| 226 | fi |
| 227 | fi |
| 228 | done;; |
| 229 | esac |
| 230 | as_found=false |
| 231 | done |
| 232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi; } |
| 236 | IFS=$as_save_IFS |
| 237 | |
| 238 | |
| 239 | if test "x$CONFIG_SHELL" != x; then : |
| 240 | export CONFIG_SHELL |
| 241 | # We cannot yet assume a decent shell, so we have to provide a |
| 242 | # neutralization value for shells without unset; and this also |
| 243 | # works around shells that cannot unset nonexistent variables. |
| 244 | # Preserve -v and -x to the replacement shell. |
| 245 | BASH_ENV=/dev/null |
| 246 | ENV=/dev/null |
| 247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 248 | case $- in # (((( |
| 249 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 250 | *v* ) as_opts=-v ;; |
| 251 | *x* ) as_opts=-x ;; |
| 252 | * ) as_opts= ;; |
| 253 | esac |
| 254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 255 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 256 | # out after a failed `exec'. |
| 257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 258 | exit 255 |
| 259 | fi |
| 260 | |
| 261 | if test x$as_have_required = xno; then : |
| 262 | $as_echo "$0: This script requires a shell more modern than all" |
| 263 | $as_echo "$0: the shells that I found on your system." |
| 264 | if test x${ZSH_VERSION+set} = xset ; then |
| 265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 267 | else |
| 268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and cocci@diku.dk |
| 269 | $0: about your system, including any error possibly output |
| 270 | $0: before this message. Then install a modern shell, or |
| 271 | $0: manually run the script under such a shell if you do |
| 272 | $0: have one." |
| 273 | fi |
| 274 | exit 1 |
| 275 | fi |
| 276 | fi |
| 277 | fi |
| 278 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 279 | export SHELL |
| 280 | # Unset more variables known to interfere with behavior of common tools. |
| 281 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 282 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 283 | |
| 284 | ## --------------------- ## |
| 285 | ## M4sh Shell Functions. ## |
| 286 | ## --------------------- ## |
| 287 | # as_fn_unset VAR |
| 288 | # --------------- |
| 289 | # Portably unset VAR. |
| 290 | as_fn_unset () |
| 291 | { |
| 292 | { eval $1=; unset $1;} |
| 293 | } |
| 294 | as_unset=as_fn_unset |
| 295 | |
| 296 | # as_fn_set_status STATUS |
| 297 | # ----------------------- |
| 298 | # Set $? to STATUS, without forking. |
| 299 | as_fn_set_status () |
| 300 | { |
| 301 | return $1 |
| 302 | } # as_fn_set_status |
| 303 | |
| 304 | # as_fn_exit STATUS |
| 305 | # ----------------- |
| 306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 | as_fn_exit () |
| 308 | { |
| 309 | set +e |
| 310 | as_fn_set_status $1 |
| 311 | exit $1 |
| 312 | } # as_fn_exit |
| 313 | |
| 314 | # as_fn_mkdir_p |
| 315 | # ------------- |
| 316 | # Create "$as_dir" as a directory, including parents if necessary. |
| 317 | as_fn_mkdir_p () |
| 318 | { |
| 319 | |
| 320 | case $as_dir in #( |
| 321 | -*) as_dir=./$as_dir;; |
| 322 | esac |
| 323 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 324 | as_dirs= |
| 325 | while :; do |
| 326 | case $as_dir in #( |
| 327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 328 | *) as_qdir=$as_dir;; |
| 329 | esac |
| 330 | as_dirs="'$as_qdir' $as_dirs" |
| 331 | as_dir=`$as_dirname -- "$as_dir" || |
| 332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 333 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 334 | X"$as_dir" : 'X\(//\)$' \| \ |
| 335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 336 | $as_echo X"$as_dir" | |
| 337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 338 | s//\1/ |
| 339 | q |
| 340 | } |
| 341 | /^X\(\/\/\)[^/].*/{ |
| 342 | s//\1/ |
| 343 | q |
| 344 | } |
| 345 | /^X\(\/\/\)$/{ |
| 346 | s//\1/ |
| 347 | q |
| 348 | } |
| 349 | /^X\(\/\).*/{ |
| 350 | s//\1/ |
| 351 | q |
| 352 | } |
| 353 | s/.*/./; q'` |
| 354 | test -d "$as_dir" && break |
| 355 | done |
| 356 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 358 | |
| 359 | |
| 360 | } # as_fn_mkdir_p |
| 361 | |
| 362 | # as_fn_executable_p FILE |
| 363 | # ----------------------- |
| 364 | # Test if FILE is an executable regular file. |
| 365 | as_fn_executable_p () |
| 366 | { |
| 367 | test -f "$1" && test -x "$1" |
| 368 | } # as_fn_executable_p |
| 369 | # as_fn_append VAR VALUE |
| 370 | # ---------------------- |
| 371 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 372 | # advantage of any shell optimizations that allow amortized linear growth over |
| 373 | # repeated appends, instead of the typical quadratic growth present in naive |
| 374 | # implementations. |
| 375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 376 | eval 'as_fn_append () |
| 377 | { |
| 378 | eval $1+=\$2 |
| 379 | }' |
| 380 | else |
| 381 | as_fn_append () |
| 382 | { |
| 383 | eval $1=\$$1\$2 |
| 384 | } |
| 385 | fi # as_fn_append |
| 386 | |
| 387 | # as_fn_arith ARG... |
| 388 | # ------------------ |
| 389 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 391 | # must be portable across $(()) and expr. |
| 392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 393 | eval 'as_fn_arith () |
| 394 | { |
| 395 | as_val=$(( $* )) |
| 396 | }' |
| 397 | else |
| 398 | as_fn_arith () |
| 399 | { |
| 400 | as_val=`expr "$@" || test $? -eq 1` |
| 401 | } |
| 402 | fi # as_fn_arith |
| 403 | |
| 404 | |
| 405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 406 | # ---------------------------------------- |
| 407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 409 | # script with STATUS, using 1 if that was 0. |
| 410 | as_fn_error () |
| 411 | { |
| 412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 413 | if test "$4"; then |
| 414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 416 | fi |
| 417 | $as_echo "$as_me: error: $2" >&2 |
| 418 | as_fn_exit $as_status |
| 419 | } # as_fn_error |
| 420 | |
| 421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 423 | as_expr=expr |
| 424 | else |
| 425 | as_expr=false |
| 426 | fi |
| 427 | |
| 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 429 | as_basename=basename |
| 430 | else |
| 431 | as_basename=false |
| 432 | fi |
| 433 | |
| 434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 435 | as_dirname=dirname |
| 436 | else |
| 437 | as_dirname=false |
| 438 | fi |
| 439 | |
| 440 | as_me=`$as_basename -- "$0" || |
| 441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 442 | X"$0" : 'X\(//\)$' \| \ |
| 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 444 | $as_echo X/"$0" | |
| 445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 446 | s//\1/ |
| 447 | q |
| 448 | } |
| 449 | /^X\/\(\/\/\)$/{ |
| 450 | s//\1/ |
| 451 | q |
| 452 | } |
| 453 | /^X\/\(\/\).*/{ |
| 454 | s//\1/ |
| 455 | q |
| 456 | } |
| 457 | s/.*/./; q'` |
| 458 | |
| 459 | # Avoid depending upon Character Ranges. |
| 460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 463 | as_cr_digits='0123456789' |
| 464 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 465 | |
| 466 | |
| 467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 472 | sed -n ' |
| 473 | p |
| 474 | /[$]LINENO/= |
| 475 | ' <$as_myself | |
| 476 | sed ' |
| 477 | s/[$]LINENO.*/&-/ |
| 478 | t lineno |
| 479 | b |
| 480 | :lineno |
| 481 | N |
| 482 | :loop |
| 483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 484 | t loop |
| 485 | s/-\n.*// |
| 486 | ' >$as_me.lineno && |
| 487 | chmod +x "$as_me.lineno" || |
| 488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 489 | |
| 490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 491 | # already done that, so ensure we don't try to do so again and fall |
| 492 | # in an infinite loop. This has already happened in practice. |
| 493 | _as_can_reexec=no; export _as_can_reexec |
| 494 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 495 | # (the dirname of $[0] is not the place where we might find the |
| 496 | # original and so on. Autoconf is especially sensitive to this). |
| 497 | . "./$as_me.lineno" |
| 498 | # Exit status is that of the last command. |
| 499 | exit |
| 500 | } |
| 501 | |
| 502 | ECHO_C= ECHO_N= ECHO_T= |
| 503 | case `echo -n x` in #((((( |
| 504 | -n*) |
| 505 | case `echo 'xy\c'` in |
| 506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 507 | xy) ECHO_C='\c';; |
| 508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 509 | ECHO_T=' ';; |
| 510 | esac;; |
| 511 | *) |
| 512 | ECHO_N='-n';; |
| 513 | esac |
| 514 | |
| 515 | rm -f conf$$ conf$$.exe conf$$.file |
| 516 | if test -d conf$$.dir; then |
| 517 | rm -f conf$$.dir/conf$$.file |
| 518 | else |
| 519 | rm -f conf$$.dir |
| 520 | mkdir conf$$.dir 2>/dev/null |
| 521 | fi |
| 522 | if (echo >conf$$.file) 2>/dev/null; then |
| 523 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 524 | as_ln_s='ln -s' |
| 525 | # ... but there are two gotchas: |
| 526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 528 | # In both cases, we have to default to `cp -pR'. |
| 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 530 | as_ln_s='cp -pR' |
| 531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 532 | as_ln_s=ln |
| 533 | else |
| 534 | as_ln_s='cp -pR' |
| 535 | fi |
| 536 | else |
| 537 | as_ln_s='cp -pR' |
| 538 | fi |
| 539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 540 | rmdir conf$$.dir 2>/dev/null |
| 541 | |
| 542 | if mkdir -p . 2>/dev/null; then |
| 543 | as_mkdir_p='mkdir -p "$as_dir"' |
| 544 | else |
| 545 | test -d ./-p && rmdir ./-p |
| 546 | as_mkdir_p=false |
| 547 | fi |
| 548 | |
| 549 | as_test_x='test -x' |
| 550 | as_executable_p=as_fn_executable_p |
| 551 | |
| 552 | # Sed expression to map a string onto a valid CPP name. |
| 553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 554 | |
| 555 | # Sed expression to map a string onto a valid variable name. |
| 556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 557 | |
| 558 | as_awk_strverscmp=' |
| 559 | # Use only awk features that work with 7th edition Unix awk (1978). |
| 560 | # My, what an old awk you have, Mr. Solaris! |
| 561 | END { |
| 562 | while (length(v1) && length(v2)) { |
| 563 | # Set d1 to be the next thing to compare from v1, and likewise for d2. |
| 564 | # Normally this is a single character, but if v1 and v2 contain digits, |
| 565 | # compare them as integers and fractions as strverscmp does. |
| 566 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { |
| 567 | # Split v1 and v2 into their leading digit string components d1 and d2, |
| 568 | # and advance v1 and v2 past the leading digit strings. |
| 569 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue |
| 570 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue |
| 571 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) |
| 572 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) |
| 573 | if (d1 ~ /^0/) { |
| 574 | if (d2 ~ /^0/) { |
| 575 | # Compare two fractions. |
| 576 | while (d1 ~ /^0/ && d2 ~ /^0/) { |
| 577 | d1 = substr(d1, 2); len1-- |
| 578 | d2 = substr(d2, 2); len2-- |
| 579 | } |
| 580 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { |
| 581 | # The two components differ in length, and the common prefix |
| 582 | # contains only leading zeros. Consider the longer to be less. |
| 583 | d1 = -len1 |
| 584 | d2 = -len2 |
| 585 | } else { |
| 586 | # Otherwise, compare as strings. |
| 587 | d1 = "x" d1 |
| 588 | d2 = "x" d2 |
| 589 | } |
| 590 | } else { |
| 591 | # A fraction is less than an integer. |
| 592 | exit 1 |
| 593 | } |
| 594 | } else { |
| 595 | if (d2 ~ /^0/) { |
| 596 | # An integer is greater than a fraction. |
| 597 | exit 2 |
| 598 | } else { |
| 599 | # Compare two integers. |
| 600 | d1 += 0 |
| 601 | d2 += 0 |
| 602 | } |
| 603 | } |
| 604 | } else { |
| 605 | # The normal case, without worrying about digits. |
| 606 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) |
| 607 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) |
| 608 | } |
| 609 | if (d1 < d2) exit 1 |
| 610 | if (d1 > d2) exit 2 |
| 611 | } |
| 612 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), |
| 613 | # which mishandles some comparisons of empty strings to integers. |
| 614 | if (length(v2)) exit 1 |
| 615 | if (length(v1)) exit 2 |
| 616 | } |
| 617 | ' |
| 618 | |
| 619 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 620 | exec 6>&1 |
| 621 | |
| 622 | # Name of the host. |
| 623 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 624 | # so uname gets run too. |
| 625 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 626 | |
| 627 | # |
| 628 | # Initializations. |
| 629 | # |
| 630 | ac_default_prefix=/usr/local |
| 631 | ac_clean_files= |
| 632 | ac_config_libobj_dir=. |
| 633 | LIBOBJS= |
| 634 | cross_compiling=no |
| 635 | subdirs= |
| 636 | MFLAGS= |
| 637 | MAKEFLAGS= |
| 638 | |
| 639 | # Identity of this package. |
| 640 | PACKAGE_NAME='coccinelle' |
| 641 | PACKAGE_TARNAME='coccinelle' |
| 642 | PACKAGE_VERSION='1.0.0-rc14' |
| 643 | PACKAGE_STRING='coccinelle 1.0.0-rc14' |
| 644 | PACKAGE_BUGREPORT='cocci@diku.dk' |
| 645 | PACKAGE_URL='http://coccinelle.lip6.fr/' |
| 646 | |
| 647 | ac_unique_file="cocci.ml" |
| 648 | ac_subst_vars='LTLIBOBJS |
| 649 | LIBOBJS |
| 650 | MAKETARGET_SPATCH |
| 651 | SPATCHNAME |
| 652 | enable_opt |
| 653 | MAKETARGET_ALL |
| 654 | MODULES_profiling |
| 655 | enable_release |
| 656 | SUBSTITUTED_PDFLATEX |
| 657 | with_PDFLATEX |
| 658 | PDFLATEX |
| 659 | DYNLINK_IS_NATIVE |
| 660 | FEATURE_OCAML |
| 661 | FEATURE_PYTHON |
| 662 | SHAREDIR |
| 663 | REGEXP_FILE |
| 664 | REGEXP_MODULE |
| 665 | MAKE_pcre |
| 666 | OPTFLAGS_pcre |
| 667 | enable_pcre |
| 668 | GLOBAL_pcre |
| 669 | OCAML_PKG_pcre |
| 670 | enable_pcre_syntax |
| 671 | HAVE_PCRE |
| 672 | PCRE_LIBS |
| 673 | PCRE_CFLAGS |
| 674 | PYCOCCI_FILE |
| 675 | PYCOCCI_MODULE |
| 676 | MAKE_pycaml |
| 677 | OPTFLAGS_pycaml |
| 678 | GLOBAL_pycaml |
| 679 | OCAML_PKG_pycaml |
| 680 | enable_python |
| 681 | HAVE_PYTHON |
| 682 | PYTHON_LIBS |
| 683 | PYTHON_CFLAGS |
| 684 | PYVER_MAJOR |
| 685 | SUBSTITUTED_PYTHON |
| 686 | with_PYTHON |
| 687 | enable_pycaml |
| 688 | PYTHON |
| 689 | OCAMLCOCCI_FILE |
| 690 | OCAMLCOCCI_MODULE |
| 691 | enable_ocaml |
| 692 | SUBSTITUTED_MENHIR |
| 693 | with_MENHIR |
| 694 | MENHIR |
| 695 | OPTIMIZED_dynlink |
| 696 | MAKE_menhirLib |
| 697 | OPTFLAGS_menhirLib |
| 698 | enable_menhirLib |
| 699 | GLOBAL_menhirLib |
| 700 | OCAML_PKG_menhirLib |
| 701 | MAKE_camlp4 |
| 702 | OPTFLAGS_camlp4 |
| 703 | enable_camlp4 |
| 704 | GLOBAL_camlp4 |
| 705 | OCAML_PKG_camlp4 |
| 706 | MAKE_dynlink |
| 707 | OPTFLAGS_dynlink |
| 708 | enable_dynlink |
| 709 | GLOBAL_dynlink |
| 710 | OCAML_PKG_dynlink |
| 711 | PATH_str |
| 712 | OCAML_PKG_str |
| 713 | PATH_num |
| 714 | OCAML_PKG_num |
| 715 | PATH_bigarray |
| 716 | OCAML_PKG_bigarray |
| 717 | PATH_unix |
| 718 | OCAML_PKG_unix |
| 719 | PATH_camlp4 |
| 720 | MODULESOPT_camlp4 |
| 721 | MODULES_camlp4 |
| 722 | FLAGS_camlp4 |
| 723 | LOCALLIB_camlp4 |
| 724 | FEATURE_camlp4 |
| 725 | PATH_pycaml |
| 726 | MODULESOPT_pycaml |
| 727 | MODULES_pycaml |
| 728 | FLAGS_pycaml |
| 729 | LOCALLIB_pycaml |
| 730 | FEATURE_pycaml |
| 731 | PATH_pcre |
| 732 | MODULESOPT_pcre |
| 733 | MODULES_pcre |
| 734 | FLAGS_pcre |
| 735 | LOCALLIB_pcre |
| 736 | FEATURE_pcre |
| 737 | PATH_dynlink |
| 738 | MODULESOPT_dynlink |
| 739 | MODULES_dynlink |
| 740 | FLAGS_dynlink |
| 741 | LOCALLIB_dynlink |
| 742 | FEATURE_dynlink |
| 743 | PATH_menhirLib |
| 744 | MODULESOPT_menhirLib |
| 745 | MODULES_menhirLib |
| 746 | FLAGS_menhirLib |
| 747 | LOCALLIB_menhirLib |
| 748 | FEATURE_menhirLib |
| 749 | COCCI_OCAML_EXTERNAL |
| 750 | RUNTIME_CAMLP4O_CMD |
| 751 | RUNTIME_CAMLP4_CMD |
| 752 | RUNTIME_OCAMLDEP_CMD |
| 753 | RUNTIME_OCAMLOPT_CMD |
| 754 | RUNTIME_OCAMLC_CMD |
| 755 | RUNTIME_OCAMLFIND_CMD |
| 756 | SUBSTITUTED_OCAMLPROF |
| 757 | with_OCAMLPROF |
| 758 | OCAMLPROF |
| 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 | OCAMLCORIG |
| 776 | OCAMLATLEAST311 |
| 777 | OCAMLATLEAST310 |
| 778 | OCAMLBUILD |
| 779 | OCAMLDOC |
| 780 | OCAMLMKLIB |
| 781 | OCAMLMKTOP |
| 782 | OCAMLDEP |
| 783 | OCAML |
| 784 | OCAMLOPTDOTOPT |
| 785 | OCAMLCDOTOPT |
| 786 | OCAMLBEST |
| 787 | OCAMLOPT |
| 788 | OCAMLLIB |
| 789 | OCAMLVERSION |
| 790 | OCAMLC |
| 791 | SUBSTITUTED_PKG_CONFIG |
| 792 | OCAMLYACC |
| 793 | OCAMLLEXDOTOPT |
| 794 | OCAMLLEX |
| 795 | with_PKG_CONFIG |
| 796 | PKG_CONFIG |
| 797 | PATCHELF |
| 798 | PATCH |
| 799 | TAR |
| 800 | CPP |
| 801 | OBJEXT |
| 802 | EXEEXT |
| 803 | ac_ct_CC |
| 804 | CPPFLAGS |
| 805 | LDFLAGS |
| 806 | CFLAGS |
| 807 | CC |
| 808 | MKDIR_P |
| 809 | INSTALL_DATA |
| 810 | INSTALL_SCRIPT |
| 811 | INSTALL_PROGRAM |
| 812 | DATE |
| 813 | GIT |
| 814 | CONFVERSION |
| 815 | COCCI_SRCDIR |
| 816 | COCCI_VERSION |
| 817 | CONFIGURE_FLAGS |
| 818 | target_alias |
| 819 | host_alias |
| 820 | build_alias |
| 821 | LIBS |
| 822 | ECHO_T |
| 823 | ECHO_N |
| 824 | ECHO_C |
| 825 | DEFS |
| 826 | mandir |
| 827 | localedir |
| 828 | libdir |
| 829 | psdir |
| 830 | pdfdir |
| 831 | dvidir |
| 832 | htmldir |
| 833 | infodir |
| 834 | docdir |
| 835 | oldincludedir |
| 836 | includedir |
| 837 | localstatedir |
| 838 | sharedstatedir |
| 839 | sysconfdir |
| 840 | datadir |
| 841 | datarootdir |
| 842 | libexecdir |
| 843 | sbindir |
| 844 | bindir |
| 845 | program_transform_name |
| 846 | prefix |
| 847 | exec_prefix |
| 848 | PACKAGE_URL |
| 849 | PACKAGE_BUGREPORT |
| 850 | PACKAGE_STRING |
| 851 | PACKAGE_VERSION |
| 852 | PACKAGE_TARNAME |
| 853 | PACKAGE_NAME |
| 854 | PATH_SEPARATOR |
| 855 | SHELL |
| 856 | PYVER' |
| 857 | ac_subst_files='' |
| 858 | ac_user_opts=' |
| 859 | enable_option_checking |
| 860 | with_pkg_config |
| 861 | with_ocamllex |
| 862 | with_ocamlyacc |
| 863 | with_ocamlfind |
| 864 | with_ocamlprof |
| 865 | with_runtime_ocamlfind |
| 866 | with_runtime_ocamlc |
| 867 | with_runtime_ocamlopt |
| 868 | with_runtime_ocamldep |
| 869 | with_runtime_camlp4 |
| 870 | with_runtime_camlp4o |
| 871 | enable_dynlink |
| 872 | enable_camlp4 |
| 873 | enable_menhirLib |
| 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 |
| 883 | enable_opt |
| 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 | OCAMLPROF |
| 900 | RUNTIME_OCAMLFIND_CMD |
| 901 | RUNTIME_OCAMLC_CMD |
| 902 | RUNTIME_OCAMLOPT_CMD |
| 903 | RUNTIME_OCAMLDEP_CMD |
| 904 | RUNTIME_CAMLP4_CMD |
| 905 | RUNTIME_CAMLP4O_CMD |
| 906 | COCCI_OCAML_EXTERNAL |
| 907 | MENHIR |
| 908 | PYTHON |
| 909 | PYTHON_CFLAGS |
| 910 | PYTHON_LIBS |
| 911 | PCRE_CFLAGS |
| 912 | PCRE_LIBS |
| 913 | PDFLATEX' |
| 914 | |
| 915 | |
| 916 | # Initialize some variables set by options. |
| 917 | ac_init_help= |
| 918 | ac_init_version=false |
| 919 | ac_unrecognized_opts= |
| 920 | ac_unrecognized_sep= |
| 921 | # The variables have the same names as the options, with |
| 922 | # dashes changed to underlines. |
| 923 | cache_file=/dev/null |
| 924 | exec_prefix=NONE |
| 925 | no_create= |
| 926 | no_recursion= |
| 927 | prefix=NONE |
| 928 | program_prefix=NONE |
| 929 | program_suffix=NONE |
| 930 | program_transform_name=s,x,x, |
| 931 | silent= |
| 932 | site= |
| 933 | srcdir= |
| 934 | verbose= |
| 935 | x_includes=NONE |
| 936 | x_libraries=NONE |
| 937 | |
| 938 | # Installation directory options. |
| 939 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 940 | # and all the variables that are supposed to be based on exec_prefix |
| 941 | # by default will actually change. |
| 942 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 943 | # (The list follows the same order as the GNU Coding Standards.) |
| 944 | bindir='${exec_prefix}/bin' |
| 945 | sbindir='${exec_prefix}/sbin' |
| 946 | libexecdir='${exec_prefix}/libexec' |
| 947 | datarootdir='${prefix}/share' |
| 948 | datadir='${datarootdir}' |
| 949 | sysconfdir='${prefix}/etc' |
| 950 | sharedstatedir='${prefix}/com' |
| 951 | localstatedir='${prefix}/var' |
| 952 | includedir='${prefix}/include' |
| 953 | oldincludedir='/usr/include' |
| 954 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 955 | infodir='${datarootdir}/info' |
| 956 | htmldir='${docdir}' |
| 957 | dvidir='${docdir}' |
| 958 | pdfdir='${docdir}' |
| 959 | psdir='${docdir}' |
| 960 | libdir='${exec_prefix}/lib' |
| 961 | localedir='${datarootdir}/locale' |
| 962 | mandir='${datarootdir}/man' |
| 963 | |
| 964 | ac_prev= |
| 965 | ac_dashdash= |
| 966 | for ac_option |
| 967 | do |
| 968 | # If the previous option needs an argument, assign it. |
| 969 | if test -n "$ac_prev"; then |
| 970 | eval $ac_prev=\$ac_option |
| 971 | ac_prev= |
| 972 | continue |
| 973 | fi |
| 974 | |
| 975 | case $ac_option in |
| 976 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 977 | *=) ac_optarg= ;; |
| 978 | *) ac_optarg=yes ;; |
| 979 | esac |
| 980 | |
| 981 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 982 | |
| 983 | case $ac_dashdash$ac_option in |
| 984 | --) |
| 985 | ac_dashdash=yes ;; |
| 986 | |
| 987 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 988 | ac_prev=bindir ;; |
| 989 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 990 | bindir=$ac_optarg ;; |
| 991 | |
| 992 | -build | --build | --buil | --bui | --bu) |
| 993 | ac_prev=build_alias ;; |
| 994 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 995 | build_alias=$ac_optarg ;; |
| 996 | |
| 997 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 998 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 999 | ac_prev=cache_file ;; |
| 1000 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1001 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1002 | cache_file=$ac_optarg ;; |
| 1003 | |
| 1004 | --config-cache | -C) |
| 1005 | cache_file=config.cache ;; |
| 1006 | |
| 1007 | -datadir | --datadir | --datadi | --datad) |
| 1008 | ac_prev=datadir ;; |
| 1009 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1010 | datadir=$ac_optarg ;; |
| 1011 | |
| 1012 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1013 | | --dataroo | --dataro | --datar) |
| 1014 | ac_prev=datarootdir ;; |
| 1015 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1016 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1017 | datarootdir=$ac_optarg ;; |
| 1018 | |
| 1019 | -disable-* | --disable-*) |
| 1020 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1021 | # Reject names that are not valid shell variable names. |
| 1022 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1023 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 1024 | ac_useropt_orig=$ac_useropt |
| 1025 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1026 | case $ac_user_opts in |
| 1027 | *" |
| 1028 | "enable_$ac_useropt" |
| 1029 | "*) ;; |
| 1030 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1031 | ac_unrecognized_sep=', ';; |
| 1032 | esac |
| 1033 | eval enable_$ac_useropt=no ;; |
| 1034 | |
| 1035 | -docdir | --docdir | --docdi | --doc | --do) |
| 1036 | ac_prev=docdir ;; |
| 1037 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1038 | docdir=$ac_optarg ;; |
| 1039 | |
| 1040 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1041 | ac_prev=dvidir ;; |
| 1042 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1043 | dvidir=$ac_optarg ;; |
| 1044 | |
| 1045 | -enable-* | --enable-*) |
| 1046 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1047 | # Reject names that are not valid shell variable names. |
| 1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1049 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 1050 | ac_useropt_orig=$ac_useropt |
| 1051 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1052 | case $ac_user_opts in |
| 1053 | *" |
| 1054 | "enable_$ac_useropt" |
| 1055 | "*) ;; |
| 1056 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1057 | ac_unrecognized_sep=', ';; |
| 1058 | esac |
| 1059 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1060 | |
| 1061 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1062 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1063 | | --exec | --exe | --ex) |
| 1064 | ac_prev=exec_prefix ;; |
| 1065 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1066 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1067 | | --exec=* | --exe=* | --ex=*) |
| 1068 | exec_prefix=$ac_optarg ;; |
| 1069 | |
| 1070 | -gas | --gas | --ga | --g) |
| 1071 | # Obsolete; use --with-gas. |
| 1072 | with_gas=yes ;; |
| 1073 | |
| 1074 | -help | --help | --hel | --he | -h) |
| 1075 | ac_init_help=long ;; |
| 1076 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1077 | ac_init_help=recursive ;; |
| 1078 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1079 | ac_init_help=short ;; |
| 1080 | |
| 1081 | -host | --host | --hos | --ho) |
| 1082 | ac_prev=host_alias ;; |
| 1083 | -host=* | --host=* | --hos=* | --ho=*) |
| 1084 | host_alias=$ac_optarg ;; |
| 1085 | |
| 1086 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1087 | ac_prev=htmldir ;; |
| 1088 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1089 | | --ht=*) |
| 1090 | htmldir=$ac_optarg ;; |
| 1091 | |
| 1092 | -includedir | --includedir | --includedi | --included | --include \ |
| 1093 | | --includ | --inclu | --incl | --inc) |
| 1094 | ac_prev=includedir ;; |
| 1095 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1096 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1097 | includedir=$ac_optarg ;; |
| 1098 | |
| 1099 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1100 | ac_prev=infodir ;; |
| 1101 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1102 | infodir=$ac_optarg ;; |
| 1103 | |
| 1104 | -libdir | --libdir | --libdi | --libd) |
| 1105 | ac_prev=libdir ;; |
| 1106 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1107 | libdir=$ac_optarg ;; |
| 1108 | |
| 1109 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1110 | | --libexe | --libex | --libe) |
| 1111 | ac_prev=libexecdir ;; |
| 1112 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1113 | | --libexe=* | --libex=* | --libe=*) |
| 1114 | libexecdir=$ac_optarg ;; |
| 1115 | |
| 1116 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1117 | ac_prev=localedir ;; |
| 1118 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1119 | localedir=$ac_optarg ;; |
| 1120 | |
| 1121 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1122 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1123 | ac_prev=localstatedir ;; |
| 1124 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1125 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1126 | localstatedir=$ac_optarg ;; |
| 1127 | |
| 1128 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1129 | ac_prev=mandir ;; |
| 1130 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1131 | mandir=$ac_optarg ;; |
| 1132 | |
| 1133 | -nfp | --nfp | --nf) |
| 1134 | # Obsolete; use --without-fp. |
| 1135 | with_fp=no ;; |
| 1136 | |
| 1137 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1138 | | --no-cr | --no-c | -n) |
| 1139 | no_create=yes ;; |
| 1140 | |
| 1141 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1142 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1143 | no_recursion=yes ;; |
| 1144 | |
| 1145 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1146 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1147 | | --oldin | --oldi | --old | --ol | --o) |
| 1148 | ac_prev=oldincludedir ;; |
| 1149 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1150 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1151 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1152 | oldincludedir=$ac_optarg ;; |
| 1153 | |
| 1154 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1155 | ac_prev=prefix ;; |
| 1156 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1157 | prefix=$ac_optarg ;; |
| 1158 | |
| 1159 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1160 | | --program-pre | --program-pr | --program-p) |
| 1161 | ac_prev=program_prefix ;; |
| 1162 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1163 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1164 | program_prefix=$ac_optarg ;; |
| 1165 | |
| 1166 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1167 | | --program-suf | --program-su | --program-s) |
| 1168 | ac_prev=program_suffix ;; |
| 1169 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1170 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1171 | program_suffix=$ac_optarg ;; |
| 1172 | |
| 1173 | -program-transform-name | --program-transform-name \ |
| 1174 | | --program-transform-nam | --program-transform-na \ |
| 1175 | | --program-transform-n | --program-transform- \ |
| 1176 | | --program-transform | --program-transfor \ |
| 1177 | | --program-transfo | --program-transf \ |
| 1178 | | --program-trans | --program-tran \ |
| 1179 | | --progr-tra | --program-tr | --program-t) |
| 1180 | ac_prev=program_transform_name ;; |
| 1181 | -program-transform-name=* | --program-transform-name=* \ |
| 1182 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1183 | | --program-transform-n=* | --program-transform-=* \ |
| 1184 | | --program-transform=* | --program-transfor=* \ |
| 1185 | | --program-transfo=* | --program-transf=* \ |
| 1186 | | --program-trans=* | --program-tran=* \ |
| 1187 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1188 | program_transform_name=$ac_optarg ;; |
| 1189 | |
| 1190 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1191 | ac_prev=pdfdir ;; |
| 1192 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1193 | pdfdir=$ac_optarg ;; |
| 1194 | |
| 1195 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1196 | ac_prev=psdir ;; |
| 1197 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1198 | psdir=$ac_optarg ;; |
| 1199 | |
| 1200 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1201 | | -silent | --silent | --silen | --sile | --sil) |
| 1202 | silent=yes ;; |
| 1203 | |
| 1204 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1205 | ac_prev=sbindir ;; |
| 1206 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1207 | | --sbi=* | --sb=*) |
| 1208 | sbindir=$ac_optarg ;; |
| 1209 | |
| 1210 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1211 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1212 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1213 | | --sha | --sh) |
| 1214 | ac_prev=sharedstatedir ;; |
| 1215 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1216 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1217 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1218 | | --sha=* | --sh=*) |
| 1219 | sharedstatedir=$ac_optarg ;; |
| 1220 | |
| 1221 | -site | --site | --sit) |
| 1222 | ac_prev=site ;; |
| 1223 | -site=* | --site=* | --sit=*) |
| 1224 | site=$ac_optarg ;; |
| 1225 | |
| 1226 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1227 | ac_prev=srcdir ;; |
| 1228 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1229 | srcdir=$ac_optarg ;; |
| 1230 | |
| 1231 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1232 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1233 | ac_prev=sysconfdir ;; |
| 1234 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1235 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1236 | sysconfdir=$ac_optarg ;; |
| 1237 | |
| 1238 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1239 | ac_prev=target_alias ;; |
| 1240 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1241 | target_alias=$ac_optarg ;; |
| 1242 | |
| 1243 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1244 | verbose=yes ;; |
| 1245 | |
| 1246 | -version | --version | --versio | --versi | --vers | -V) |
| 1247 | ac_init_version=: ;; |
| 1248 | |
| 1249 | -with-* | --with-*) |
| 1250 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1251 | # Reject names that are not valid shell variable names. |
| 1252 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1253 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1254 | ac_useropt_orig=$ac_useropt |
| 1255 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1256 | case $ac_user_opts in |
| 1257 | *" |
| 1258 | "with_$ac_useropt" |
| 1259 | "*) ;; |
| 1260 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1261 | ac_unrecognized_sep=', ';; |
| 1262 | esac |
| 1263 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1264 | |
| 1265 | -without-* | --without-*) |
| 1266 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1267 | # Reject names that are not valid shell variable names. |
| 1268 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1269 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1270 | ac_useropt_orig=$ac_useropt |
| 1271 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1272 | case $ac_user_opts in |
| 1273 | *" |
| 1274 | "with_$ac_useropt" |
| 1275 | "*) ;; |
| 1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1277 | ac_unrecognized_sep=', ';; |
| 1278 | esac |
| 1279 | eval with_$ac_useropt=no ;; |
| 1280 | |
| 1281 | --x) |
| 1282 | # Obsolete; use --with-x. |
| 1283 | with_x=yes ;; |
| 1284 | |
| 1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1286 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1287 | ac_prev=x_includes ;; |
| 1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1290 | x_includes=$ac_optarg ;; |
| 1291 | |
| 1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1294 | ac_prev=x_libraries ;; |
| 1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1296 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1297 | x_libraries=$ac_optarg ;; |
| 1298 | |
| 1299 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1300 | Try \`$0 --help' for more information" |
| 1301 | ;; |
| 1302 | |
| 1303 | *=*) |
| 1304 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1305 | # Reject names that are not valid shell variable names. |
| 1306 | case $ac_envvar in #( |
| 1307 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1308 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1309 | esac |
| 1310 | eval $ac_envvar=\$ac_optarg |
| 1311 | export $ac_envvar ;; |
| 1312 | |
| 1313 | *) |
| 1314 | # FIXME: should be removed in autoconf 3.0. |
| 1315 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1317 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1318 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1319 | ;; |
| 1320 | |
| 1321 | esac |
| 1322 | done |
| 1323 | |
| 1324 | if test -n "$ac_prev"; then |
| 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1326 | as_fn_error $? "missing argument to $ac_option" |
| 1327 | fi |
| 1328 | |
| 1329 | if test -n "$ac_unrecognized_opts"; then |
| 1330 | case $enable_option_checking in |
| 1331 | no) ;; |
| 1332 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1333 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1334 | esac |
| 1335 | fi |
| 1336 | |
| 1337 | # Check all directory arguments for consistency. |
| 1338 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1339 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1340 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1341 | libdir localedir mandir |
| 1342 | do |
| 1343 | eval ac_val=\$$ac_var |
| 1344 | # Remove trailing slashes. |
| 1345 | case $ac_val in |
| 1346 | */ ) |
| 1347 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1348 | eval $ac_var=\$ac_val;; |
| 1349 | esac |
| 1350 | # Be sure to have absolute directory names. |
| 1351 | case $ac_val in |
| 1352 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1353 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1354 | esac |
| 1355 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1356 | done |
| 1357 | |
| 1358 | # There might be people who depend on the old broken behavior: `$host' |
| 1359 | # used to hold the argument of --host etc. |
| 1360 | # FIXME: To remove some day. |
| 1361 | build=$build_alias |
| 1362 | host=$host_alias |
| 1363 | target=$target_alias |
| 1364 | |
| 1365 | # FIXME: To remove some day. |
| 1366 | if test "x$host_alias" != x; then |
| 1367 | if test "x$build_alias" = x; then |
| 1368 | cross_compiling=maybe |
| 1369 | elif test "x$build_alias" != "x$host_alias"; then |
| 1370 | cross_compiling=yes |
| 1371 | fi |
| 1372 | fi |
| 1373 | |
| 1374 | ac_tool_prefix= |
| 1375 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1376 | |
| 1377 | test "$silent" = yes && exec 6>/dev/null |
| 1378 | |
| 1379 | |
| 1380 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1381 | ac_ls_di=`ls -di .` && |
| 1382 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1383 | as_fn_error $? "working directory cannot be determined" |
| 1384 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1385 | as_fn_error $? "pwd does not report name of working directory" |
| 1386 | |
| 1387 | |
| 1388 | # Find the source files, if location was not specified. |
| 1389 | if test -z "$srcdir"; then |
| 1390 | ac_srcdir_defaulted=yes |
| 1391 | # Try the directory containing this script, then the parent directory. |
| 1392 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1393 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1394 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1395 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1396 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1397 | $as_echo X"$as_myself" | |
| 1398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)[^/].*/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\/\)$/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | /^X\(\/\).*/{ |
| 1411 | s//\1/ |
| 1412 | q |
| 1413 | } |
| 1414 | s/.*/./; q'` |
| 1415 | srcdir=$ac_confdir |
| 1416 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1417 | srcdir=.. |
| 1418 | fi |
| 1419 | else |
| 1420 | ac_srcdir_defaulted=no |
| 1421 | fi |
| 1422 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1423 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1424 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1425 | fi |
| 1426 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1427 | ac_abs_confdir=`( |
| 1428 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1429 | pwd)` |
| 1430 | # When building in place, set srcdir=. |
| 1431 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1432 | srcdir=. |
| 1433 | fi |
| 1434 | # Remove unnecessary trailing slashes from srcdir. |
| 1435 | # Double slashes in file names in object file debugging info |
| 1436 | # mess up M-x gdb in Emacs. |
| 1437 | case $srcdir in |
| 1438 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1439 | esac |
| 1440 | for ac_var in $ac_precious_vars; do |
| 1441 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1442 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1443 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1444 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1445 | done |
| 1446 | |
| 1447 | # |
| 1448 | # Report the --help message. |
| 1449 | # |
| 1450 | if test "$ac_init_help" = "long"; then |
| 1451 | # Omit some internal or obsolete options to make the list less imposing. |
| 1452 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1453 | cat <<_ACEOF |
| 1454 | \`configure' configures coccinelle 1.0.0-rc14 to adapt to many kinds of systems. |
| 1455 | |
| 1456 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1457 | |
| 1458 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1459 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1460 | |
| 1461 | Defaults for the options are specified in brackets. |
| 1462 | |
| 1463 | Configuration: |
| 1464 | -h, --help display this help and exit |
| 1465 | --help=short display options specific to this package |
| 1466 | --help=recursive display the short help of all the included packages |
| 1467 | -V, --version display version information and exit |
| 1468 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1469 | --cache-file=FILE cache test results in FILE [disabled] |
| 1470 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1471 | -n, --no-create do not create output files |
| 1472 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1473 | |
| 1474 | Installation directories: |
| 1475 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1476 | [$ac_default_prefix] |
| 1477 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1478 | [PREFIX] |
| 1479 | |
| 1480 | By default, \`make install' will install all the files in |
| 1481 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1482 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1483 | for instance \`--prefix=\$HOME'. |
| 1484 | |
| 1485 | For better control, use the options below. |
| 1486 | |
| 1487 | Fine tuning of the installation directories: |
| 1488 | --bindir=DIR user executables [EPREFIX/bin] |
| 1489 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1490 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1491 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1492 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1493 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1494 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1495 | --includedir=DIR C header files [PREFIX/include] |
| 1496 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1497 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1498 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1499 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1500 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1501 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1502 | --docdir=DIR documentation root [DATAROOTDIR/doc/coccinelle] |
| 1503 | --htmldir=DIR html documentation [DOCDIR] |
| 1504 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1505 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1506 | --psdir=DIR ps documentation [DOCDIR] |
| 1507 | _ACEOF |
| 1508 | |
| 1509 | cat <<\_ACEOF |
| 1510 | _ACEOF |
| 1511 | fi |
| 1512 | |
| 1513 | if test -n "$ac_init_help"; then |
| 1514 | case $ac_init_help in |
| 1515 | short | recursive ) echo "Configuration of coccinelle 1.0.0-rc14:";; |
| 1516 | esac |
| 1517 | cat <<\_ACEOF |
| 1518 | |
| 1519 | Optional Features: |
| 1520 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1521 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1522 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1523 | --enable-dynlink enable global package dynlink (yes,no) (default: |
| 1524 | auto) |
| 1525 | --enable-camlp4 enable global package camlp4 (yes,no) (default: |
| 1526 | auto) |
| 1527 | --enable-menhirLib enable global package menhirLib (yes,no) (default: |
| 1528 | auto) |
| 1529 | --enable-ocaml enable ocaml scripting (default: auto) |
| 1530 | --enable-python enable python scripting (yes/no) (default: auto) |
| 1531 | --enable-pycaml enable global package pycaml (yes,no) (default: |
| 1532 | auto) |
| 1533 | --enable-pcre-syntax enable pcre regular expression syntax (default: |
| 1534 | auto) |
| 1535 | --enable-pcre enable global package pcre (yes,no) (default: auto) |
| 1536 | --enable-release build with a release configuration (yes,no,profile |
| 1537 | default: no) |
| 1538 | --enable-opt build an optimized spatch (yes,no, default: auto) |
| 1539 | |
| 1540 | Optional Packages: |
| 1541 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1542 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1543 | --with-pkg-config whether/which pkg-config to use (default: auto) |
| 1544 | --with-ocamllex whether/which ocamllex to use (default: auto) |
| 1545 | --with-ocamlyacc whether/which ocamlyacc to use (default: auto) |
| 1546 | --with-ocamlfind whether/which ocamlfind to use (default: auto) |
| 1547 | --with-ocamlprof whether/which ocamlprof to use (default: auto) |
| 1548 | --with-runtime-ocamlfind |
| 1549 | override the runtime cmd for ocamlfind |
| 1550 | --with-runtime-ocamlc override the runtime cmd for ocamlc |
| 1551 | --with-runtime-ocamlopt override the runtime cmd for ocamlopt |
| 1552 | --with-runtime-ocamldep override the runtime cmd for ocamldep |
| 1553 | --with-runtime-camlp4 override the runtime cmd for camlp4 |
| 1554 | --with-runtime-camlp4o override the runtime cmd for camlp4o |
| 1555 | --with-menhir whether/which menhir to use (default: auto) |
| 1556 | --with-python whether/which python to use (default: auto) |
| 1557 | --with-pdflatex whether/which pdflatex to use (default: auto) |
| 1558 | |
| 1559 | Some influential environment variables: |
| 1560 | PYVER python version |
| 1561 | CC C compiler command |
| 1562 | CFLAGS C compiler flags |
| 1563 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1564 | nonstandard directory <lib dir> |
| 1565 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1566 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1567 | you have headers in a nonstandard directory <include dir> |
| 1568 | CPP C preprocessor |
| 1569 | PKG_CONFIG path to pkg-config |
| 1570 | OCAMLLEX path to ocamllex |
| 1571 | OCAMLYACC path to ocamlyacc |
| 1572 | OCAMLFIND path to ocamlfind |
| 1573 | OCAMLPROF path to ocamlprof |
| 1574 | RUNTIME_OCAMLFIND_CMD |
| 1575 | path to ocamlfind |
| 1576 | RUNTIME_OCAMLC_CMD |
| 1577 | path to ocamlc |
| 1578 | RUNTIME_OCAMLOPT_CMD |
| 1579 | path to ocamlopt |
| 1580 | RUNTIME_OCAMLDEP_CMD |
| 1581 | path to ocamldep |
| 1582 | RUNTIME_CAMLP4_CMD |
| 1583 | path to camlp4 |
| 1584 | RUNTIME_CAMLP4O_CMD |
| 1585 | path to camlp4o |
| 1586 | COCCI_OCAML_EXTERNAL |
| 1587 | path to extra ocaml packages (default: $COCCI_SRCDIR/bundles) |
| 1588 | MENHIR path to menhir |
| 1589 | PYTHON path to python when the version is determined automatically |
| 1590 | PYTHON_CFLAGS |
| 1591 | C compiler flags for PYTHON, overriding pkg-config |
| 1592 | PYTHON_LIBS linker flags for PYTHON, overriding pkg-config |
| 1593 | PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config |
| 1594 | PCRE_LIBS linker flags for PCRE, overriding pkg-config |
| 1595 | PDFLATEX path to pdflatex |
| 1596 | |
| 1597 | Use these variables to override the choices made by `configure' or to help |
| 1598 | it to find libraries and programs with nonstandard names/locations. |
| 1599 | |
| 1600 | Report bugs to <cocci@diku.dk>. |
| 1601 | coccinelle home page: <http://coccinelle.lip6.fr/>. |
| 1602 | _ACEOF |
| 1603 | ac_status=$? |
| 1604 | fi |
| 1605 | |
| 1606 | if test "$ac_init_help" = "recursive"; then |
| 1607 | # If there are subdirs, report their specific --help. |
| 1608 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1609 | test -d "$ac_dir" || |
| 1610 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1611 | continue |
| 1612 | ac_builddir=. |
| 1613 | |
| 1614 | case "$ac_dir" in |
| 1615 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1616 | *) |
| 1617 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1618 | # A ".." for each directory in $ac_dir_suffix. |
| 1619 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1620 | case $ac_top_builddir_sub in |
| 1621 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1622 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1623 | esac ;; |
| 1624 | esac |
| 1625 | ac_abs_top_builddir=$ac_pwd |
| 1626 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1627 | # for backward compatibility: |
| 1628 | ac_top_builddir=$ac_top_build_prefix |
| 1629 | |
| 1630 | case $srcdir in |
| 1631 | .) # We are building in place. |
| 1632 | ac_srcdir=. |
| 1633 | ac_top_srcdir=$ac_top_builddir_sub |
| 1634 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1635 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1636 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1637 | ac_top_srcdir=$srcdir |
| 1638 | ac_abs_top_srcdir=$srcdir ;; |
| 1639 | *) # Relative name. |
| 1640 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1641 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1642 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1643 | esac |
| 1644 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1645 | |
| 1646 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1647 | # Check for guested configure. |
| 1648 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1649 | echo && |
| 1650 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1651 | elif test -f "$ac_srcdir/configure"; then |
| 1652 | echo && |
| 1653 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1654 | else |
| 1655 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1656 | fi || ac_status=$? |
| 1657 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1658 | done |
| 1659 | fi |
| 1660 | |
| 1661 | test -n "$ac_init_help" && exit $ac_status |
| 1662 | if $ac_init_version; then |
| 1663 | cat <<\_ACEOF |
| 1664 | coccinelle configure 1.0.0-rc14 |
| 1665 | generated by GNU Autoconf 2.69 |
| 1666 | |
| 1667 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1668 | This configure script is free software; the Free Software Foundation |
| 1669 | gives unlimited permission to copy, distribute and modify it. |
| 1670 | _ACEOF |
| 1671 | exit |
| 1672 | fi |
| 1673 | |
| 1674 | ## ------------------------ ## |
| 1675 | ## Autoconf initialization. ## |
| 1676 | ## ------------------------ ## |
| 1677 | |
| 1678 | # ac_fn_c_try_compile LINENO |
| 1679 | # -------------------------- |
| 1680 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1681 | ac_fn_c_try_compile () |
| 1682 | { |
| 1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1684 | rm -f conftest.$ac_objext |
| 1685 | if { { ac_try="$ac_compile" |
| 1686 | case "(($ac_try" in |
| 1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1688 | *) ac_try_echo=$ac_try;; |
| 1689 | esac |
| 1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1691 | $as_echo "$ac_try_echo"; } >&5 |
| 1692 | (eval "$ac_compile") 2>conftest.err |
| 1693 | ac_status=$? |
| 1694 | if test -s conftest.err; then |
| 1695 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1696 | cat conftest.er1 >&5 |
| 1697 | mv -f conftest.er1 conftest.err |
| 1698 | fi |
| 1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1700 | test $ac_status = 0; } && { |
| 1701 | test -z "$ac_c_werror_flag" || |
| 1702 | test ! -s conftest.err |
| 1703 | } && test -s conftest.$ac_objext; then : |
| 1704 | ac_retval=0 |
| 1705 | else |
| 1706 | $as_echo "$as_me: failed program was:" >&5 |
| 1707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1708 | |
| 1709 | ac_retval=1 |
| 1710 | fi |
| 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1712 | as_fn_set_status $ac_retval |
| 1713 | |
| 1714 | } # ac_fn_c_try_compile |
| 1715 | |
| 1716 | # ac_fn_c_try_cpp LINENO |
| 1717 | # ---------------------- |
| 1718 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1719 | ac_fn_c_try_cpp () |
| 1720 | { |
| 1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1722 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1723 | case "(($ac_try" in |
| 1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1725 | *) ac_try_echo=$ac_try;; |
| 1726 | esac |
| 1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1728 | $as_echo "$ac_try_echo"; } >&5 |
| 1729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1730 | ac_status=$? |
| 1731 | if test -s conftest.err; then |
| 1732 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1733 | cat conftest.er1 >&5 |
| 1734 | mv -f conftest.er1 conftest.err |
| 1735 | fi |
| 1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1737 | test $ac_status = 0; } > conftest.i && { |
| 1738 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1739 | test ! -s conftest.err |
| 1740 | }; then : |
| 1741 | ac_retval=0 |
| 1742 | else |
| 1743 | $as_echo "$as_me: failed program was:" >&5 |
| 1744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1745 | |
| 1746 | ac_retval=1 |
| 1747 | fi |
| 1748 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1749 | as_fn_set_status $ac_retval |
| 1750 | |
| 1751 | } # ac_fn_c_try_cpp |
| 1752 | cat >config.log <<_ACEOF |
| 1753 | This file contains any messages produced by compilers while |
| 1754 | running configure, to aid debugging if configure makes a mistake. |
| 1755 | |
| 1756 | It was created by coccinelle $as_me 1.0.0-rc14, which was |
| 1757 | generated by GNU Autoconf 2.69. Invocation command line was |
| 1758 | |
| 1759 | $ $0 $@ |
| 1760 | |
| 1761 | _ACEOF |
| 1762 | exec 5>>config.log |
| 1763 | { |
| 1764 | cat <<_ASUNAME |
| 1765 | ## --------- ## |
| 1766 | ## Platform. ## |
| 1767 | ## --------- ## |
| 1768 | |
| 1769 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1770 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1771 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1772 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1773 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1774 | |
| 1775 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1776 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1777 | |
| 1778 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1779 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1780 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1781 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1782 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1783 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1784 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1785 | |
| 1786 | _ASUNAME |
| 1787 | |
| 1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1789 | for as_dir in $PATH |
| 1790 | do |
| 1791 | IFS=$as_save_IFS |
| 1792 | test -z "$as_dir" && as_dir=. |
| 1793 | $as_echo "PATH: $as_dir" |
| 1794 | done |
| 1795 | IFS=$as_save_IFS |
| 1796 | |
| 1797 | } >&5 |
| 1798 | |
| 1799 | cat >&5 <<_ACEOF |
| 1800 | |
| 1801 | |
| 1802 | ## ----------- ## |
| 1803 | ## Core tests. ## |
| 1804 | ## ----------- ## |
| 1805 | |
| 1806 | _ACEOF |
| 1807 | |
| 1808 | |
| 1809 | # Keep a trace of the command line. |
| 1810 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1811 | # Strip out --silent because we don't want to record it for future runs. |
| 1812 | # Also quote any args containing shell meta-characters. |
| 1813 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1814 | ac_configure_args= |
| 1815 | ac_configure_args0= |
| 1816 | ac_configure_args1= |
| 1817 | ac_must_keep_next=false |
| 1818 | for ac_pass in 1 2 |
| 1819 | do |
| 1820 | for ac_arg |
| 1821 | do |
| 1822 | case $ac_arg in |
| 1823 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1824 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1825 | | -silent | --silent | --silen | --sile | --sil) |
| 1826 | continue ;; |
| 1827 | *\'*) |
| 1828 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1829 | esac |
| 1830 | case $ac_pass in |
| 1831 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1832 | 2) |
| 1833 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1834 | if test $ac_must_keep_next = true; then |
| 1835 | ac_must_keep_next=false # Got value, back to normal. |
| 1836 | else |
| 1837 | case $ac_arg in |
| 1838 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1839 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1840 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1841 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1842 | case "$ac_configure_args0 " in |
| 1843 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1844 | esac |
| 1845 | ;; |
| 1846 | -* ) ac_must_keep_next=true ;; |
| 1847 | esac |
| 1848 | fi |
| 1849 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1850 | ;; |
| 1851 | esac |
| 1852 | done |
| 1853 | done |
| 1854 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1855 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1856 | |
| 1857 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1858 | # config.log. We remove comments because anyway the quotes in there |
| 1859 | # would cause problems or look ugly. |
| 1860 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1861 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1862 | trap 'exit_status=$? |
| 1863 | # Save into config.log some information that might help in debugging. |
| 1864 | { |
| 1865 | echo |
| 1866 | |
| 1867 | $as_echo "## ---------------- ## |
| 1868 | ## Cache variables. ## |
| 1869 | ## ---------------- ##" |
| 1870 | echo |
| 1871 | # The following way of writing the cache mishandles newlines in values, |
| 1872 | ( |
| 1873 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1874 | eval ac_val=\$$ac_var |
| 1875 | case $ac_val in #( |
| 1876 | *${as_nl}*) |
| 1877 | case $ac_var in #( |
| 1878 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1879 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1880 | esac |
| 1881 | case $ac_var in #( |
| 1882 | _ | IFS | as_nl) ;; #( |
| 1883 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1884 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1885 | esac ;; |
| 1886 | esac |
| 1887 | done |
| 1888 | (set) 2>&1 | |
| 1889 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1890 | *${as_nl}ac_space=\ *) |
| 1891 | sed -n \ |
| 1892 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1893 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1894 | ;; #( |
| 1895 | *) |
| 1896 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1897 | ;; |
| 1898 | esac | |
| 1899 | sort |
| 1900 | ) |
| 1901 | echo |
| 1902 | |
| 1903 | $as_echo "## ----------------- ## |
| 1904 | ## Output variables. ## |
| 1905 | ## ----------------- ##" |
| 1906 | echo |
| 1907 | for ac_var in $ac_subst_vars |
| 1908 | do |
| 1909 | eval ac_val=\$$ac_var |
| 1910 | case $ac_val in |
| 1911 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1912 | esac |
| 1913 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1914 | done | sort |
| 1915 | echo |
| 1916 | |
| 1917 | if test -n "$ac_subst_files"; then |
| 1918 | $as_echo "## ------------------- ## |
| 1919 | ## File substitutions. ## |
| 1920 | ## ------------------- ##" |
| 1921 | echo |
| 1922 | for ac_var in $ac_subst_files |
| 1923 | do |
| 1924 | eval ac_val=\$$ac_var |
| 1925 | case $ac_val in |
| 1926 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1927 | esac |
| 1928 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1929 | done | sort |
| 1930 | echo |
| 1931 | fi |
| 1932 | |
| 1933 | if test -s confdefs.h; then |
| 1934 | $as_echo "## ----------- ## |
| 1935 | ## confdefs.h. ## |
| 1936 | ## ----------- ##" |
| 1937 | echo |
| 1938 | cat confdefs.h |
| 1939 | echo |
| 1940 | fi |
| 1941 | test "$ac_signal" != 0 && |
| 1942 | $as_echo "$as_me: caught signal $ac_signal" |
| 1943 | $as_echo "$as_me: exit $exit_status" |
| 1944 | } >&5 |
| 1945 | rm -f core *.core core.conftest.* && |
| 1946 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1947 | exit $exit_status |
| 1948 | ' 0 |
| 1949 | for ac_signal in 1 2 13 15; do |
| 1950 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1951 | done |
| 1952 | ac_signal=0 |
| 1953 | |
| 1954 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1955 | rm -f -r conftest* confdefs.h |
| 1956 | |
| 1957 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1958 | |
| 1959 | # Predefined preprocessor variables. |
| 1960 | |
| 1961 | cat >>confdefs.h <<_ACEOF |
| 1962 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1963 | _ACEOF |
| 1964 | |
| 1965 | cat >>confdefs.h <<_ACEOF |
| 1966 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1967 | _ACEOF |
| 1968 | |
| 1969 | cat >>confdefs.h <<_ACEOF |
| 1970 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1971 | _ACEOF |
| 1972 | |
| 1973 | cat >>confdefs.h <<_ACEOF |
| 1974 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1975 | _ACEOF |
| 1976 | |
| 1977 | cat >>confdefs.h <<_ACEOF |
| 1978 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1979 | _ACEOF |
| 1980 | |
| 1981 | cat >>confdefs.h <<_ACEOF |
| 1982 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1983 | _ACEOF |
| 1984 | |
| 1985 | |
| 1986 | # Let the site file select an alternate cache file if it wants to. |
| 1987 | # Prefer an explicitly selected file to automatically selected ones. |
| 1988 | ac_site_file1=NONE |
| 1989 | ac_site_file2=NONE |
| 1990 | if test -n "$CONFIG_SITE"; then |
| 1991 | # We do not want a PATH search for config.site. |
| 1992 | case $CONFIG_SITE in #(( |
| 1993 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1994 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1995 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1996 | esac |
| 1997 | elif test "x$prefix" != xNONE; then |
| 1998 | ac_site_file1=$prefix/share/config.site |
| 1999 | ac_site_file2=$prefix/etc/config.site |
| 2000 | else |
| 2001 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2002 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2003 | fi |
| 2004 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2005 | do |
| 2006 | test "x$ac_site_file" = xNONE && continue |
| 2007 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2009 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2010 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2011 | . "$ac_site_file" \ |
| 2012 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2014 | as_fn_error $? "failed to load site script $ac_site_file |
| 2015 | See \`config.log' for more details" "$LINENO" 5; } |
| 2016 | fi |
| 2017 | done |
| 2018 | |
| 2019 | if test -r "$cache_file"; then |
| 2020 | # Some versions of bash will fail to source /dev/null (special files |
| 2021 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2022 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2024 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2025 | case $cache_file in |
| 2026 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2027 | *) . "./$cache_file";; |
| 2028 | esac |
| 2029 | fi |
| 2030 | else |
| 2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2032 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2033 | >$cache_file |
| 2034 | fi |
| 2035 | |
| 2036 | # Check that the precious variables saved in the cache have kept the same |
| 2037 | # value. |
| 2038 | ac_cache_corrupted=false |
| 2039 | for ac_var in $ac_precious_vars; do |
| 2040 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2041 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2042 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2043 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2044 | case $ac_old_set,$ac_new_set in |
| 2045 | set,) |
| 2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2047 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2048 | ac_cache_corrupted=: ;; |
| 2049 | ,set) |
| 2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2051 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2052 | ac_cache_corrupted=: ;; |
| 2053 | ,);; |
| 2054 | *) |
| 2055 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2056 | # differences in whitespace do not lead to failure. |
| 2057 | ac_old_val_w=`echo x $ac_old_val` |
| 2058 | ac_new_val_w=`echo x $ac_new_val` |
| 2059 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2061 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2062 | ac_cache_corrupted=: |
| 2063 | else |
| 2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2065 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2066 | eval $ac_var=\$ac_old_val |
| 2067 | fi |
| 2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2069 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2071 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2072 | fi;; |
| 2073 | esac |
| 2074 | # Pass precious variables to config.status. |
| 2075 | if test "$ac_new_set" = set; then |
| 2076 | case $ac_new_val in |
| 2077 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2078 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2079 | esac |
| 2080 | case " $ac_configure_args " in |
| 2081 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2082 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2083 | esac |
| 2084 | fi |
| 2085 | done |
| 2086 | if $ac_cache_corrupted; then |
| 2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2090 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2091 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2092 | fi |
| 2093 | ## -------------------- ## |
| 2094 | ## Main body of script. ## |
| 2095 | ## -------------------- ## |
| 2096 | |
| 2097 | ac_ext=c |
| 2098 | ac_cpp='$CPP $CPPFLAGS' |
| 2099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | ac_aux_dir= |
| 2106 | for ac_dir in setup "$srcdir"/setup; do |
| 2107 | if test -f "$ac_dir/install-sh"; then |
| 2108 | ac_aux_dir=$ac_dir |
| 2109 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2110 | break |
| 2111 | elif test -f "$ac_dir/install.sh"; then |
| 2112 | ac_aux_dir=$ac_dir |
| 2113 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2114 | break |
| 2115 | elif test -f "$ac_dir/shtool"; then |
| 2116 | ac_aux_dir=$ac_dir |
| 2117 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2118 | break |
| 2119 | fi |
| 2120 | done |
| 2121 | if test -z "$ac_aux_dir"; then |
| 2122 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5 |
| 2123 | fi |
| 2124 | |
| 2125 | # These three variables are undocumented and unsupported, |
| 2126 | # and are intended to be withdrawn in a future Autoconf release. |
| 2127 | # They can cause serious problems if a builder's source tree is in a directory |
| 2128 | # whose full name contains unusual characters. |
| 2129 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2130 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2131 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2132 | |
| 2133 | |
| 2134 | |
| 2135 | CONFIGURE_FLAGS="$*" |
| 2136 | |
| 2137 | COCCI_VERSION="$PACKAGE_VERSION" |
| 2138 | |
| 2139 | COCCI_SRCDIR="$(pwd)" |
| 2140 | |
| 2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&5 |
| 2142 | $as_echo "$as_me: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&6;} |
| 2143 | |
| 2144 | |
| 2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: determining version suffix" >&5 |
| 2146 | $as_echo "$as_me: determining version suffix" >&6;} |
| 2147 | |
| 2148 | if test -z "$CONFVERSION" -a -d "./.git"; then : |
| 2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: building a version from a git repository" >&5 |
| 2150 | $as_echo "$as_me: building a version from a git repository" >&6;} |
| 2151 | if test -n "$ac_tool_prefix"; then |
| 2152 | # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args. |
| 2153 | set dummy ${ac_tool_prefix}git; ac_word=$2 |
| 2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2155 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2156 | if ${ac_cv_path_GIT+:} false; then : |
| 2157 | $as_echo_n "(cached) " >&6 |
| 2158 | else |
| 2159 | case $GIT in |
| 2160 | [\\/]* | ?:[\\/]*) |
| 2161 | ac_cv_path_GIT="$GIT" # Let the user override the test with a path. |
| 2162 | ;; |
| 2163 | *) |
| 2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2165 | for as_dir in $PATH |
| 2166 | do |
| 2167 | IFS=$as_save_IFS |
| 2168 | test -z "$as_dir" && as_dir=. |
| 2169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2171 | ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext" |
| 2172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2173 | break 2 |
| 2174 | fi |
| 2175 | done |
| 2176 | done |
| 2177 | IFS=$as_save_IFS |
| 2178 | |
| 2179 | ;; |
| 2180 | esac |
| 2181 | fi |
| 2182 | GIT=$ac_cv_path_GIT |
| 2183 | if test -n "$GIT"; then |
| 2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 |
| 2185 | $as_echo "$GIT" >&6; } |
| 2186 | else |
| 2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2188 | $as_echo "no" >&6; } |
| 2189 | fi |
| 2190 | |
| 2191 | |
| 2192 | fi |
| 2193 | if test -z "$ac_cv_path_GIT"; then |
| 2194 | ac_pt_GIT=$GIT |
| 2195 | # Extract the first word of "git", so it can be a program name with args. |
| 2196 | set dummy git; ac_word=$2 |
| 2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2198 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2199 | if ${ac_cv_path_ac_pt_GIT+:} false; then : |
| 2200 | $as_echo_n "(cached) " >&6 |
| 2201 | else |
| 2202 | case $ac_pt_GIT in |
| 2203 | [\\/]* | ?:[\\/]*) |
| 2204 | ac_cv_path_ac_pt_GIT="$ac_pt_GIT" # Let the user override the test with a path. |
| 2205 | ;; |
| 2206 | *) |
| 2207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2208 | for as_dir in $PATH |
| 2209 | do |
| 2210 | IFS=$as_save_IFS |
| 2211 | test -z "$as_dir" && as_dir=. |
| 2212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2214 | ac_cv_path_ac_pt_GIT="$as_dir/$ac_word$ac_exec_ext" |
| 2215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2216 | break 2 |
| 2217 | fi |
| 2218 | done |
| 2219 | done |
| 2220 | IFS=$as_save_IFS |
| 2221 | |
| 2222 | ;; |
| 2223 | esac |
| 2224 | fi |
| 2225 | ac_pt_GIT=$ac_cv_path_ac_pt_GIT |
| 2226 | if test -n "$ac_pt_GIT"; then |
| 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIT" >&5 |
| 2228 | $as_echo "$ac_pt_GIT" >&6; } |
| 2229 | else |
| 2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2231 | $as_echo "no" >&6; } |
| 2232 | fi |
| 2233 | |
| 2234 | if test "x$ac_pt_GIT" = x; then |
| 2235 | GIT="" |
| 2236 | else |
| 2237 | case $cross_compiling:$ac_tool_warned in |
| 2238 | yes:) |
| 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2241 | ac_tool_warned=yes ;; |
| 2242 | esac |
| 2243 | GIT=$ac_pt_GIT |
| 2244 | fi |
| 2245 | else |
| 2246 | GIT="$ac_cv_path_GIT" |
| 2247 | fi |
| 2248 | |
| 2249 | if test -n "$GIT"; then : |
| 2250 | CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"` |
| 2251 | |
| 2252 | fi |
| 2253 | |
| 2254 | fi |
| 2255 | |
| 2256 | if test -z "$CONFVERSION"; then : |
| 2257 | if test -n "$ac_tool_prefix"; then |
| 2258 | # Extract the first word of "${ac_tool_prefix}date", so it can be a program name with args. |
| 2259 | set dummy ${ac_tool_prefix}date; ac_word=$2 |
| 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2261 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2262 | if ${ac_cv_path_DATE+:} false; then : |
| 2263 | $as_echo_n "(cached) " >&6 |
| 2264 | else |
| 2265 | case $DATE in |
| 2266 | [\\/]* | ?:[\\/]*) |
| 2267 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 2268 | ;; |
| 2269 | *) |
| 2270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2271 | for as_dir in $PATH |
| 2272 | do |
| 2273 | IFS=$as_save_IFS |
| 2274 | test -z "$as_dir" && as_dir=. |
| 2275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2277 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 2278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2279 | break 2 |
| 2280 | fi |
| 2281 | done |
| 2282 | done |
| 2283 | IFS=$as_save_IFS |
| 2284 | |
| 2285 | ;; |
| 2286 | esac |
| 2287 | fi |
| 2288 | DATE=$ac_cv_path_DATE |
| 2289 | if test -n "$DATE"; then |
| 2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 |
| 2291 | $as_echo "$DATE" >&6; } |
| 2292 | else |
| 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2294 | $as_echo "no" >&6; } |
| 2295 | fi |
| 2296 | |
| 2297 | |
| 2298 | fi |
| 2299 | if test -z "$ac_cv_path_DATE"; then |
| 2300 | ac_pt_DATE=$DATE |
| 2301 | # Extract the first word of "date", so it can be a program name with args. |
| 2302 | set dummy date; ac_word=$2 |
| 2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2304 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2305 | if ${ac_cv_path_ac_pt_DATE+:} false; then : |
| 2306 | $as_echo_n "(cached) " >&6 |
| 2307 | else |
| 2308 | case $ac_pt_DATE in |
| 2309 | [\\/]* | ?:[\\/]*) |
| 2310 | ac_cv_path_ac_pt_DATE="$ac_pt_DATE" # Let the user override the test with a path. |
| 2311 | ;; |
| 2312 | *) |
| 2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2314 | for as_dir in $PATH |
| 2315 | do |
| 2316 | IFS=$as_save_IFS |
| 2317 | test -z "$as_dir" && as_dir=. |
| 2318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2320 | ac_cv_path_ac_pt_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 2321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2322 | break 2 |
| 2323 | fi |
| 2324 | done |
| 2325 | done |
| 2326 | IFS=$as_save_IFS |
| 2327 | |
| 2328 | ;; |
| 2329 | esac |
| 2330 | fi |
| 2331 | ac_pt_DATE=$ac_cv_path_ac_pt_DATE |
| 2332 | if test -n "$ac_pt_DATE"; then |
| 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DATE" >&5 |
| 2334 | $as_echo "$ac_pt_DATE" >&6; } |
| 2335 | else |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2337 | $as_echo "no" >&6; } |
| 2338 | fi |
| 2339 | |
| 2340 | if test "x$ac_pt_DATE" = x; then |
| 2341 | DATE="" |
| 2342 | else |
| 2343 | case $cross_compiling:$ac_tool_warned in |
| 2344 | yes:) |
| 2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2347 | ac_tool_warned=yes ;; |
| 2348 | esac |
| 2349 | DATE=$ac_pt_DATE |
| 2350 | fi |
| 2351 | else |
| 2352 | DATE="$ac_cv_path_DATE" |
| 2353 | fi |
| 2354 | |
| 2355 | if test -n "$DATE"; then : |
| 2356 | CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"` |
| 2357 | |
| 2358 | fi |
| 2359 | |
| 2360 | fi |
| 2361 | |
| 2362 | if test -z "$CONFVERSION"; then : |
| 2363 | CONFVERSION=unknown |
| 2364 | |
| 2365 | fi |
| 2366 | |
| 2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: version suffix set to $CONFVERSION" >&5 |
| 2368 | $as_echo "$as_me: version suffix set to $CONFVERSION" >&6;} |
| 2369 | |
| 2370 | |
| 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses pkg-config m4 macros" >&5 |
| 2372 | $as_echo "$as_me: this configure program uses pkg-config m4 macros" >&6;} |
| 2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&5 |
| 2374 | $as_echo "$as_me: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&6;} |
| 2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses custom m4 macros (see setup/cocci.m4)" >&5 |
| 2376 | $as_echo "$as_me: this configure program uses custom m4 macros (see setup/cocci.m4)" >&6;} |
| 2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&5 |
| 2378 | $as_echo "$as_me: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&6;} |
| 2379 | |
| 2380 | |
| 2381 | |
| 2382 | |
| 2383 | |
| 2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic tools" >&5 |
| 2385 | $as_echo "$as_me: verifying basic tools" >&6;} |
| 2386 | |
| 2387 | # Find a good install program. We prefer a C program (faster), |
| 2388 | # so one script is as good as another. But avoid the broken or |
| 2389 | # incompatible versions: |
| 2390 | # SysV /etc/install, /usr/sbin/install |
| 2391 | # SunOS /usr/etc/install |
| 2392 | # IRIX /sbin/install |
| 2393 | # AIX /bin/install |
| 2394 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2395 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2396 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2397 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2398 | # OS/2's system install, which has a completely different semantic |
| 2399 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2400 | # Reject install programs that cannot install multiple files. |
| 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2402 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2403 | if test -z "$INSTALL"; then |
| 2404 | if ${ac_cv_path_install+:} false; then : |
| 2405 | $as_echo_n "(cached) " >&6 |
| 2406 | else |
| 2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2408 | for as_dir in $PATH |
| 2409 | do |
| 2410 | IFS=$as_save_IFS |
| 2411 | test -z "$as_dir" && as_dir=. |
| 2412 | # Account for people who put trailing slashes in PATH elements. |
| 2413 | case $as_dir/ in #(( |
| 2414 | ./ | .// | /[cC]/* | \ |
| 2415 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2416 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2417 | /usr/ucb/* ) ;; |
| 2418 | *) |
| 2419 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2420 | # Don't use installbsd from OSF since it installs stuff as root |
| 2421 | # by default. |
| 2422 | for ac_prog in ginstall scoinst install; do |
| 2423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2424 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2425 | if test $ac_prog = install && |
| 2426 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2427 | # AIX install. It has an incompatible calling convention. |
| 2428 | : |
| 2429 | elif test $ac_prog = install && |
| 2430 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2431 | # program-specific install script used by HP pwplus--don't use. |
| 2432 | : |
| 2433 | else |
| 2434 | rm -rf conftest.one conftest.two conftest.dir |
| 2435 | echo one > conftest.one |
| 2436 | echo two > conftest.two |
| 2437 | mkdir conftest.dir |
| 2438 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2439 | test -s conftest.one && test -s conftest.two && |
| 2440 | test -s conftest.dir/conftest.one && |
| 2441 | test -s conftest.dir/conftest.two |
| 2442 | then |
| 2443 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2444 | break 3 |
| 2445 | fi |
| 2446 | fi |
| 2447 | fi |
| 2448 | done |
| 2449 | done |
| 2450 | ;; |
| 2451 | esac |
| 2452 | |
| 2453 | done |
| 2454 | IFS=$as_save_IFS |
| 2455 | |
| 2456 | rm -rf conftest.one conftest.two conftest.dir |
| 2457 | |
| 2458 | fi |
| 2459 | if test "${ac_cv_path_install+set}" = set; then |
| 2460 | INSTALL=$ac_cv_path_install |
| 2461 | else |
| 2462 | # As a last resort, use the slow shell script. Don't cache a |
| 2463 | # value for INSTALL within a source directory, because that will |
| 2464 | # break other packages using the cache if that directory is |
| 2465 | # removed, or if the value is a relative name. |
| 2466 | INSTALL=$ac_install_sh |
| 2467 | fi |
| 2468 | fi |
| 2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2470 | $as_echo "$INSTALL" >&6; } |
| 2471 | |
| 2472 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2473 | # It thinks the first close brace ends the variable substitution. |
| 2474 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2475 | |
| 2476 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2477 | |
| 2478 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2479 | |
| 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2481 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2482 | if test -z "$MKDIR_P"; then |
| 2483 | if ${ac_cv_path_mkdir+:} false; then : |
| 2484 | $as_echo_n "(cached) " >&6 |
| 2485 | else |
| 2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2487 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2488 | do |
| 2489 | IFS=$as_save_IFS |
| 2490 | test -z "$as_dir" && as_dir=. |
| 2491 | for ac_prog in mkdir gmkdir; do |
| 2492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2493 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2494 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2495 | 'mkdir (GNU coreutils) '* | \ |
| 2496 | 'mkdir (coreutils) '* | \ |
| 2497 | 'mkdir (fileutils) '4.1*) |
| 2498 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2499 | break 3;; |
| 2500 | esac |
| 2501 | done |
| 2502 | done |
| 2503 | done |
| 2504 | IFS=$as_save_IFS |
| 2505 | |
| 2506 | fi |
| 2507 | |
| 2508 | test -d ./--version && rmdir ./--version |
| 2509 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2510 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2511 | else |
| 2512 | # As a last resort, use the slow shell script. Don't cache a |
| 2513 | # value for MKDIR_P within a source directory, because that will |
| 2514 | # break other packages using the cache if that directory is |
| 2515 | # removed, or if the value is a relative name. |
| 2516 | MKDIR_P="$ac_install_sh -d" |
| 2517 | fi |
| 2518 | fi |
| 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2520 | $as_echo "$MKDIR_P" >&6; } |
| 2521 | |
| 2522 | ac_ext=c |
| 2523 | ac_cpp='$CPP $CPPFLAGS' |
| 2524 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2525 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2526 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2527 | if test -n "$ac_tool_prefix"; then |
| 2528 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2529 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2531 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2532 | if ${ac_cv_prog_CC+:} false; then : |
| 2533 | $as_echo_n "(cached) " >&6 |
| 2534 | else |
| 2535 | if test -n "$CC"; then |
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2537 | else |
| 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2539 | for as_dir in $PATH |
| 2540 | do |
| 2541 | IFS=$as_save_IFS |
| 2542 | test -z "$as_dir" && as_dir=. |
| 2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2545 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2547 | break 2 |
| 2548 | fi |
| 2549 | done |
| 2550 | done |
| 2551 | IFS=$as_save_IFS |
| 2552 | |
| 2553 | fi |
| 2554 | fi |
| 2555 | CC=$ac_cv_prog_CC |
| 2556 | if test -n "$CC"; then |
| 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2558 | $as_echo "$CC" >&6; } |
| 2559 | else |
| 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2561 | $as_echo "no" >&6; } |
| 2562 | fi |
| 2563 | |
| 2564 | |
| 2565 | fi |
| 2566 | if test -z "$ac_cv_prog_CC"; then |
| 2567 | ac_ct_CC=$CC |
| 2568 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2569 | set dummy gcc; ac_word=$2 |
| 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2571 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2572 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2573 | $as_echo_n "(cached) " >&6 |
| 2574 | else |
| 2575 | if test -n "$ac_ct_CC"; then |
| 2576 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2577 | else |
| 2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2579 | for as_dir in $PATH |
| 2580 | do |
| 2581 | IFS=$as_save_IFS |
| 2582 | test -z "$as_dir" && as_dir=. |
| 2583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2585 | ac_cv_prog_ac_ct_CC="gcc" |
| 2586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2587 | break 2 |
| 2588 | fi |
| 2589 | done |
| 2590 | done |
| 2591 | IFS=$as_save_IFS |
| 2592 | |
| 2593 | fi |
| 2594 | fi |
| 2595 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2596 | if test -n "$ac_ct_CC"; then |
| 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2598 | $as_echo "$ac_ct_CC" >&6; } |
| 2599 | else |
| 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2601 | $as_echo "no" >&6; } |
| 2602 | fi |
| 2603 | |
| 2604 | if test "x$ac_ct_CC" = x; then |
| 2605 | CC="" |
| 2606 | else |
| 2607 | case $cross_compiling:$ac_tool_warned in |
| 2608 | yes:) |
| 2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2611 | ac_tool_warned=yes ;; |
| 2612 | esac |
| 2613 | CC=$ac_ct_CC |
| 2614 | fi |
| 2615 | else |
| 2616 | CC="$ac_cv_prog_CC" |
| 2617 | fi |
| 2618 | |
| 2619 | if test -z "$CC"; then |
| 2620 | if test -n "$ac_tool_prefix"; then |
| 2621 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2622 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2624 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2625 | if ${ac_cv_prog_CC+:} false; then : |
| 2626 | $as_echo_n "(cached) " >&6 |
| 2627 | else |
| 2628 | if test -n "$CC"; then |
| 2629 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2630 | else |
| 2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2632 | for as_dir in $PATH |
| 2633 | do |
| 2634 | IFS=$as_save_IFS |
| 2635 | test -z "$as_dir" && as_dir=. |
| 2636 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2638 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2640 | break 2 |
| 2641 | fi |
| 2642 | done |
| 2643 | done |
| 2644 | IFS=$as_save_IFS |
| 2645 | |
| 2646 | fi |
| 2647 | fi |
| 2648 | CC=$ac_cv_prog_CC |
| 2649 | if test -n "$CC"; then |
| 2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2651 | $as_echo "$CC" >&6; } |
| 2652 | else |
| 2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2654 | $as_echo "no" >&6; } |
| 2655 | fi |
| 2656 | |
| 2657 | |
| 2658 | fi |
| 2659 | fi |
| 2660 | if test -z "$CC"; then |
| 2661 | # Extract the first word of "cc", so it can be a program name with args. |
| 2662 | set dummy cc; ac_word=$2 |
| 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2664 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2665 | if ${ac_cv_prog_CC+:} false; then : |
| 2666 | $as_echo_n "(cached) " >&6 |
| 2667 | else |
| 2668 | if test -n "$CC"; then |
| 2669 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2670 | else |
| 2671 | ac_prog_rejected=no |
| 2672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2673 | for as_dir in $PATH |
| 2674 | do |
| 2675 | IFS=$as_save_IFS |
| 2676 | test -z "$as_dir" && as_dir=. |
| 2677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2679 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2680 | ac_prog_rejected=yes |
| 2681 | continue |
| 2682 | fi |
| 2683 | ac_cv_prog_CC="cc" |
| 2684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2685 | break 2 |
| 2686 | fi |
| 2687 | done |
| 2688 | done |
| 2689 | IFS=$as_save_IFS |
| 2690 | |
| 2691 | if test $ac_prog_rejected = yes; then |
| 2692 | # We found a bogon in the path, so make sure we never use it. |
| 2693 | set dummy $ac_cv_prog_CC |
| 2694 | shift |
| 2695 | if test $# != 0; then |
| 2696 | # We chose a different compiler from the bogus one. |
| 2697 | # However, it has the same basename, so the bogon will be chosen |
| 2698 | # first if we set CC to just the basename; use the full file name. |
| 2699 | shift |
| 2700 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2701 | fi |
| 2702 | fi |
| 2703 | fi |
| 2704 | fi |
| 2705 | CC=$ac_cv_prog_CC |
| 2706 | if test -n "$CC"; then |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2708 | $as_echo "$CC" >&6; } |
| 2709 | else |
| 2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2711 | $as_echo "no" >&6; } |
| 2712 | fi |
| 2713 | |
| 2714 | |
| 2715 | fi |
| 2716 | if test -z "$CC"; then |
| 2717 | if test -n "$ac_tool_prefix"; then |
| 2718 | for ac_prog in cl.exe |
| 2719 | do |
| 2720 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2721 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2723 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2724 | if ${ac_cv_prog_CC+:} false; then : |
| 2725 | $as_echo_n "(cached) " >&6 |
| 2726 | else |
| 2727 | if test -n "$CC"; then |
| 2728 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2729 | else |
| 2730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2731 | for as_dir in $PATH |
| 2732 | do |
| 2733 | IFS=$as_save_IFS |
| 2734 | test -z "$as_dir" && as_dir=. |
| 2735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2737 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2739 | break 2 |
| 2740 | fi |
| 2741 | done |
| 2742 | done |
| 2743 | IFS=$as_save_IFS |
| 2744 | |
| 2745 | fi |
| 2746 | fi |
| 2747 | CC=$ac_cv_prog_CC |
| 2748 | if test -n "$CC"; then |
| 2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2750 | $as_echo "$CC" >&6; } |
| 2751 | else |
| 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2753 | $as_echo "no" >&6; } |
| 2754 | fi |
| 2755 | |
| 2756 | |
| 2757 | test -n "$CC" && break |
| 2758 | done |
| 2759 | fi |
| 2760 | if test -z "$CC"; then |
| 2761 | ac_ct_CC=$CC |
| 2762 | for ac_prog in cl.exe |
| 2763 | do |
| 2764 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2765 | set dummy $ac_prog; ac_word=$2 |
| 2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2767 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2768 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2769 | $as_echo_n "(cached) " >&6 |
| 2770 | else |
| 2771 | if test -n "$ac_ct_CC"; then |
| 2772 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2773 | else |
| 2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2775 | for as_dir in $PATH |
| 2776 | do |
| 2777 | IFS=$as_save_IFS |
| 2778 | test -z "$as_dir" && as_dir=. |
| 2779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2780 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2781 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2783 | break 2 |
| 2784 | fi |
| 2785 | done |
| 2786 | done |
| 2787 | IFS=$as_save_IFS |
| 2788 | |
| 2789 | fi |
| 2790 | fi |
| 2791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2792 | if test -n "$ac_ct_CC"; then |
| 2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2794 | $as_echo "$ac_ct_CC" >&6; } |
| 2795 | else |
| 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2797 | $as_echo "no" >&6; } |
| 2798 | fi |
| 2799 | |
| 2800 | |
| 2801 | test -n "$ac_ct_CC" && break |
| 2802 | done |
| 2803 | |
| 2804 | if test "x$ac_ct_CC" = x; then |
| 2805 | CC="" |
| 2806 | else |
| 2807 | case $cross_compiling:$ac_tool_warned in |
| 2808 | yes:) |
| 2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2810 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2811 | ac_tool_warned=yes ;; |
| 2812 | esac |
| 2813 | CC=$ac_ct_CC |
| 2814 | fi |
| 2815 | fi |
| 2816 | |
| 2817 | fi |
| 2818 | |
| 2819 | |
| 2820 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2821 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2822 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2823 | See \`config.log' for more details" "$LINENO" 5; } |
| 2824 | |
| 2825 | # Provide some information about the compiler. |
| 2826 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2827 | set X $ac_compile |
| 2828 | ac_compiler=$2 |
| 2829 | for ac_option in --version -v -V -qversion; do |
| 2830 | { { ac_try="$ac_compiler $ac_option >&5" |
| 2831 | case "(($ac_try" in |
| 2832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2833 | *) ac_try_echo=$ac_try;; |
| 2834 | esac |
| 2835 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2836 | $as_echo "$ac_try_echo"; } >&5 |
| 2837 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2838 | ac_status=$? |
| 2839 | if test -s conftest.err; then |
| 2840 | sed '10a\ |
| 2841 | ... rest of stderr output deleted ... |
| 2842 | 10q' conftest.err >conftest.er1 |
| 2843 | cat conftest.er1 >&5 |
| 2844 | fi |
| 2845 | rm -f conftest.er1 conftest.err |
| 2846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2847 | test $ac_status = 0; } |
| 2848 | done |
| 2849 | |
| 2850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2851 | /* end confdefs.h. */ |
| 2852 | |
| 2853 | int |
| 2854 | main () |
| 2855 | { |
| 2856 | |
| 2857 | ; |
| 2858 | return 0; |
| 2859 | } |
| 2860 | _ACEOF |
| 2861 | ac_clean_files_save=$ac_clean_files |
| 2862 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2863 | # Try to create an executable without -o first, disregard a.out. |
| 2864 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2865 | # of exeext. |
| 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2867 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2868 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2869 | |
| 2870 | # The possible output files: |
| 2871 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2872 | |
| 2873 | ac_rmfiles= |
| 2874 | for ac_file in $ac_files |
| 2875 | do |
| 2876 | case $ac_file in |
| 2877 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2878 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2879 | esac |
| 2880 | done |
| 2881 | rm -f $ac_rmfiles |
| 2882 | |
| 2883 | if { { ac_try="$ac_link_default" |
| 2884 | case "(($ac_try" in |
| 2885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2886 | *) ac_try_echo=$ac_try;; |
| 2887 | esac |
| 2888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2889 | $as_echo "$ac_try_echo"; } >&5 |
| 2890 | (eval "$ac_link_default") 2>&5 |
| 2891 | ac_status=$? |
| 2892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2893 | test $ac_status = 0; }; then : |
| 2894 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2895 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2896 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2897 | # so that the user can short-circuit this test for compilers unknown to |
| 2898 | # Autoconf. |
| 2899 | for ac_file in $ac_files '' |
| 2900 | do |
| 2901 | test -f "$ac_file" || continue |
| 2902 | case $ac_file in |
| 2903 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2904 | ;; |
| 2905 | [ab].out ) |
| 2906 | # We found the default executable, but exeext='' is most |
| 2907 | # certainly right. |
| 2908 | break;; |
| 2909 | *.* ) |
| 2910 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2911 | then :; else |
| 2912 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2913 | fi |
| 2914 | # We set ac_cv_exeext here because the later test for it is not |
| 2915 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2916 | # argument, so we may need to know it at that point already. |
| 2917 | # Even if this section looks crufty: it has the advantage of |
| 2918 | # actually working. |
| 2919 | break;; |
| 2920 | * ) |
| 2921 | break;; |
| 2922 | esac |
| 2923 | done |
| 2924 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2925 | |
| 2926 | else |
| 2927 | ac_file='' |
| 2928 | fi |
| 2929 | if test -z "$ac_file"; then : |
| 2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2931 | $as_echo "no" >&6; } |
| 2932 | $as_echo "$as_me: failed program was:" >&5 |
| 2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2934 | |
| 2935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2937 | as_fn_error 77 "C compiler cannot create executables |
| 2938 | See \`config.log' for more details" "$LINENO" 5; } |
| 2939 | else |
| 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2941 | $as_echo "yes" >&6; } |
| 2942 | fi |
| 2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2944 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2946 | $as_echo "$ac_file" >&6; } |
| 2947 | ac_exeext=$ac_cv_exeext |
| 2948 | |
| 2949 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2950 | ac_clean_files=$ac_clean_files_save |
| 2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2952 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 2953 | if { { ac_try="$ac_link" |
| 2954 | case "(($ac_try" in |
| 2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2956 | *) ac_try_echo=$ac_try;; |
| 2957 | esac |
| 2958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2959 | $as_echo "$ac_try_echo"; } >&5 |
| 2960 | (eval "$ac_link") 2>&5 |
| 2961 | ac_status=$? |
| 2962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2963 | test $ac_status = 0; }; then : |
| 2964 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2965 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2966 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2967 | # `rm'. |
| 2968 | for ac_file in conftest.exe conftest conftest.*; do |
| 2969 | test -f "$ac_file" || continue |
| 2970 | case $ac_file in |
| 2971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2972 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2973 | break;; |
| 2974 | * ) break;; |
| 2975 | esac |
| 2976 | done |
| 2977 | else |
| 2978 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2979 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2980 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2981 | See \`config.log' for more details" "$LINENO" 5; } |
| 2982 | fi |
| 2983 | rm -f conftest conftest$ac_cv_exeext |
| 2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2985 | $as_echo "$ac_cv_exeext" >&6; } |
| 2986 | |
| 2987 | rm -f conftest.$ac_ext |
| 2988 | EXEEXT=$ac_cv_exeext |
| 2989 | ac_exeext=$EXEEXT |
| 2990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2991 | /* end confdefs.h. */ |
| 2992 | #include <stdio.h> |
| 2993 | int |
| 2994 | main () |
| 2995 | { |
| 2996 | FILE *f = fopen ("conftest.out", "w"); |
| 2997 | return ferror (f) || fclose (f) != 0; |
| 2998 | |
| 2999 | ; |
| 3000 | return 0; |
| 3001 | } |
| 3002 | _ACEOF |
| 3003 | ac_clean_files="$ac_clean_files conftest.out" |
| 3004 | # Check that the compiler produces executables we can run. If not, either |
| 3005 | # the compiler is broken, or we cross compile. |
| 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3007 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3008 | if test "$cross_compiling" != yes; then |
| 3009 | { { ac_try="$ac_link" |
| 3010 | case "(($ac_try" in |
| 3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3012 | *) ac_try_echo=$ac_try;; |
| 3013 | esac |
| 3014 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3015 | $as_echo "$ac_try_echo"; } >&5 |
| 3016 | (eval "$ac_link") 2>&5 |
| 3017 | ac_status=$? |
| 3018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3019 | test $ac_status = 0; } |
| 3020 | if { ac_try='./conftest$ac_cv_exeext' |
| 3021 | { { case "(($ac_try" in |
| 3022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3023 | *) ac_try_echo=$ac_try;; |
| 3024 | esac |
| 3025 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3026 | $as_echo "$ac_try_echo"; } >&5 |
| 3027 | (eval "$ac_try") 2>&5 |
| 3028 | ac_status=$? |
| 3029 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3030 | test $ac_status = 0; }; }; then |
| 3031 | cross_compiling=no |
| 3032 | else |
| 3033 | if test "$cross_compiling" = maybe; then |
| 3034 | cross_compiling=yes |
| 3035 | else |
| 3036 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3037 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3038 | as_fn_error $? "cannot run C compiled programs. |
| 3039 | If you meant to cross compile, use \`--host'. |
| 3040 | See \`config.log' for more details" "$LINENO" 5; } |
| 3041 | fi |
| 3042 | fi |
| 3043 | fi |
| 3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3045 | $as_echo "$cross_compiling" >&6; } |
| 3046 | |
| 3047 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3048 | ac_clean_files=$ac_clean_files_save |
| 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3050 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3051 | if ${ac_cv_objext+:} false; then : |
| 3052 | $as_echo_n "(cached) " >&6 |
| 3053 | else |
| 3054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3055 | /* end confdefs.h. */ |
| 3056 | |
| 3057 | int |
| 3058 | main () |
| 3059 | { |
| 3060 | |
| 3061 | ; |
| 3062 | return 0; |
| 3063 | } |
| 3064 | _ACEOF |
| 3065 | rm -f conftest.o conftest.obj |
| 3066 | if { { ac_try="$ac_compile" |
| 3067 | case "(($ac_try" in |
| 3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3069 | *) ac_try_echo=$ac_try;; |
| 3070 | esac |
| 3071 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3072 | $as_echo "$ac_try_echo"; } >&5 |
| 3073 | (eval "$ac_compile") 2>&5 |
| 3074 | ac_status=$? |
| 3075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3076 | test $ac_status = 0; }; then : |
| 3077 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3078 | test -f "$ac_file" || continue; |
| 3079 | case $ac_file in |
| 3080 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3081 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3082 | break;; |
| 3083 | esac |
| 3084 | done |
| 3085 | else |
| 3086 | $as_echo "$as_me: failed program was:" >&5 |
| 3087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3088 | |
| 3089 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3091 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3092 | See \`config.log' for more details" "$LINENO" 5; } |
| 3093 | fi |
| 3094 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3095 | fi |
| 3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3097 | $as_echo "$ac_cv_objext" >&6; } |
| 3098 | OBJEXT=$ac_cv_objext |
| 3099 | ac_objext=$OBJEXT |
| 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3101 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3102 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3103 | $as_echo_n "(cached) " >&6 |
| 3104 | else |
| 3105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3106 | /* end confdefs.h. */ |
| 3107 | |
| 3108 | int |
| 3109 | main () |
| 3110 | { |
| 3111 | #ifndef __GNUC__ |
| 3112 | choke me |
| 3113 | #endif |
| 3114 | |
| 3115 | ; |
| 3116 | return 0; |
| 3117 | } |
| 3118 | _ACEOF |
| 3119 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3120 | ac_compiler_gnu=yes |
| 3121 | else |
| 3122 | ac_compiler_gnu=no |
| 3123 | fi |
| 3124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3125 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3126 | |
| 3127 | fi |
| 3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3129 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3130 | if test $ac_compiler_gnu = yes; then |
| 3131 | GCC=yes |
| 3132 | else |
| 3133 | GCC= |
| 3134 | fi |
| 3135 | ac_test_CFLAGS=${CFLAGS+set} |
| 3136 | ac_save_CFLAGS=$CFLAGS |
| 3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3138 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3139 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3140 | $as_echo_n "(cached) " >&6 |
| 3141 | else |
| 3142 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3143 | ac_c_werror_flag=yes |
| 3144 | ac_cv_prog_cc_g=no |
| 3145 | CFLAGS="-g" |
| 3146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3147 | /* end confdefs.h. */ |
| 3148 | |
| 3149 | int |
| 3150 | main () |
| 3151 | { |
| 3152 | |
| 3153 | ; |
| 3154 | return 0; |
| 3155 | } |
| 3156 | _ACEOF |
| 3157 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3158 | ac_cv_prog_cc_g=yes |
| 3159 | else |
| 3160 | CFLAGS="" |
| 3161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3162 | /* end confdefs.h. */ |
| 3163 | |
| 3164 | int |
| 3165 | main () |
| 3166 | { |
| 3167 | |
| 3168 | ; |
| 3169 | return 0; |
| 3170 | } |
| 3171 | _ACEOF |
| 3172 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3173 | |
| 3174 | else |
| 3175 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3176 | CFLAGS="-g" |
| 3177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3178 | /* end confdefs.h. */ |
| 3179 | |
| 3180 | int |
| 3181 | main () |
| 3182 | { |
| 3183 | |
| 3184 | ; |
| 3185 | return 0; |
| 3186 | } |
| 3187 | _ACEOF |
| 3188 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3189 | ac_cv_prog_cc_g=yes |
| 3190 | fi |
| 3191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3192 | fi |
| 3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3194 | fi |
| 3195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3196 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3197 | fi |
| 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3199 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3200 | if test "$ac_test_CFLAGS" = set; then |
| 3201 | CFLAGS=$ac_save_CFLAGS |
| 3202 | elif test $ac_cv_prog_cc_g = yes; then |
| 3203 | if test "$GCC" = yes; then |
| 3204 | CFLAGS="-g -O2" |
| 3205 | else |
| 3206 | CFLAGS="-g" |
| 3207 | fi |
| 3208 | else |
| 3209 | if test "$GCC" = yes; then |
| 3210 | CFLAGS="-O2" |
| 3211 | else |
| 3212 | CFLAGS= |
| 3213 | fi |
| 3214 | fi |
| 3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3216 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3217 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3218 | $as_echo_n "(cached) " >&6 |
| 3219 | else |
| 3220 | ac_cv_prog_cc_c89=no |
| 3221 | ac_save_CC=$CC |
| 3222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3223 | /* end confdefs.h. */ |
| 3224 | #include <stdarg.h> |
| 3225 | #include <stdio.h> |
| 3226 | struct stat; |
| 3227 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3228 | struct buf { int x; }; |
| 3229 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3230 | static char *e (p, i) |
| 3231 | char **p; |
| 3232 | int i; |
| 3233 | { |
| 3234 | return p[i]; |
| 3235 | } |
| 3236 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3237 | { |
| 3238 | char *s; |
| 3239 | va_list v; |
| 3240 | va_start (v,p); |
| 3241 | s = g (p, va_arg (v,int)); |
| 3242 | va_end (v); |
| 3243 | return s; |
| 3244 | } |
| 3245 | |
| 3246 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3247 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3248 | These don't provoke an error unfortunately, instead are silently treated |
| 3249 | as 'x'. The following induces an error, until -std is added to get |
| 3250 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3251 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3252 | that's true only with -std. */ |
| 3253 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3254 | |
| 3255 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3256 | inside strings and character constants. */ |
| 3257 | #define FOO(x) 'x' |
| 3258 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3259 | |
| 3260 | int test (int i, double x); |
| 3261 | struct s1 {int (*f) (int a);}; |
| 3262 | struct s2 {int (*f) (double a);}; |
| 3263 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3264 | int argc; |
| 3265 | char **argv; |
| 3266 | int |
| 3267 | main () |
| 3268 | { |
| 3269 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3270 | ; |
| 3271 | return 0; |
| 3272 | } |
| 3273 | _ACEOF |
| 3274 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3275 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3276 | do |
| 3277 | CC="$ac_save_CC $ac_arg" |
| 3278 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3279 | ac_cv_prog_cc_c89=$ac_arg |
| 3280 | fi |
| 3281 | rm -f core conftest.err conftest.$ac_objext |
| 3282 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3283 | done |
| 3284 | rm -f conftest.$ac_ext |
| 3285 | CC=$ac_save_CC |
| 3286 | |
| 3287 | fi |
| 3288 | # AC_CACHE_VAL |
| 3289 | case "x$ac_cv_prog_cc_c89" in |
| 3290 | x) |
| 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3292 | $as_echo "none needed" >&6; } ;; |
| 3293 | xno) |
| 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3295 | $as_echo "unsupported" >&6; } ;; |
| 3296 | *) |
| 3297 | CC="$CC $ac_cv_prog_cc_c89" |
| 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3299 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3300 | esac |
| 3301 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3302 | |
| 3303 | fi |
| 3304 | |
| 3305 | ac_ext=c |
| 3306 | ac_cpp='$CPP $CPPFLAGS' |
| 3307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3310 | |
| 3311 | ac_ext=c |
| 3312 | ac_cpp='$CPP $CPPFLAGS' |
| 3313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3317 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3318 | # On Suns, sometimes $CPP names a directory. |
| 3319 | if test -n "$CPP" && test -d "$CPP"; then |
| 3320 | CPP= |
| 3321 | fi |
| 3322 | if test -z "$CPP"; then |
| 3323 | if ${ac_cv_prog_CPP+:} false; then : |
| 3324 | $as_echo_n "(cached) " >&6 |
| 3325 | else |
| 3326 | # Double quotes because CPP needs to be expanded |
| 3327 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3328 | do |
| 3329 | ac_preproc_ok=false |
| 3330 | for ac_c_preproc_warn_flag in '' yes |
| 3331 | do |
| 3332 | # Use a header file that comes with gcc, so configuring glibc |
| 3333 | # with a fresh cross-compiler works. |
| 3334 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3335 | # <limits.h> exists even on freestanding compilers. |
| 3336 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3337 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3339 | /* end confdefs.h. */ |
| 3340 | #ifdef __STDC__ |
| 3341 | # include <limits.h> |
| 3342 | #else |
| 3343 | # include <assert.h> |
| 3344 | #endif |
| 3345 | Syntax error |
| 3346 | _ACEOF |
| 3347 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3348 | |
| 3349 | else |
| 3350 | # Broken: fails on valid input. |
| 3351 | continue |
| 3352 | fi |
| 3353 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3354 | |
| 3355 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3356 | # can be detected and how. |
| 3357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3358 | /* end confdefs.h. */ |
| 3359 | #include <ac_nonexistent.h> |
| 3360 | _ACEOF |
| 3361 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3362 | # Broken: success on invalid input. |
| 3363 | continue |
| 3364 | else |
| 3365 | # Passes both tests. |
| 3366 | ac_preproc_ok=: |
| 3367 | break |
| 3368 | fi |
| 3369 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3370 | |
| 3371 | done |
| 3372 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3373 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3374 | if $ac_preproc_ok; then : |
| 3375 | break |
| 3376 | fi |
| 3377 | |
| 3378 | done |
| 3379 | ac_cv_prog_CPP=$CPP |
| 3380 | |
| 3381 | fi |
| 3382 | CPP=$ac_cv_prog_CPP |
| 3383 | else |
| 3384 | ac_cv_prog_CPP=$CPP |
| 3385 | fi |
| 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3387 | $as_echo "$CPP" >&6; } |
| 3388 | ac_preproc_ok=false |
| 3389 | for ac_c_preproc_warn_flag in '' yes |
| 3390 | do |
| 3391 | # Use a header file that comes with gcc, so configuring glibc |
| 3392 | # with a fresh cross-compiler works. |
| 3393 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3394 | # <limits.h> exists even on freestanding compilers. |
| 3395 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3396 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3398 | /* end confdefs.h. */ |
| 3399 | #ifdef __STDC__ |
| 3400 | # include <limits.h> |
| 3401 | #else |
| 3402 | # include <assert.h> |
| 3403 | #endif |
| 3404 | Syntax error |
| 3405 | _ACEOF |
| 3406 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3407 | |
| 3408 | else |
| 3409 | # Broken: fails on valid input. |
| 3410 | continue |
| 3411 | fi |
| 3412 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3413 | |
| 3414 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3415 | # can be detected and how. |
| 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3417 | /* end confdefs.h. */ |
| 3418 | #include <ac_nonexistent.h> |
| 3419 | _ACEOF |
| 3420 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 3421 | # Broken: success on invalid input. |
| 3422 | continue |
| 3423 | else |
| 3424 | # Passes both tests. |
| 3425 | ac_preproc_ok=: |
| 3426 | break |
| 3427 | fi |
| 3428 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3429 | |
| 3430 | done |
| 3431 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3432 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3433 | if $ac_preproc_ok; then : |
| 3434 | |
| 3435 | else |
| 3436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3438 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3439 | See \`config.log' for more details" "$LINENO" 5; } |
| 3440 | fi |
| 3441 | |
| 3442 | ac_ext=c |
| 3443 | ac_cpp='$CPP $CPPFLAGS' |
| 3444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3447 | |
| 3448 | # Extract the first word of "tar", so it can be a program name with args. |
| 3449 | set dummy tar; ac_word=$2 |
| 3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3451 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3452 | if ${ac_cv_path_TAR+:} false; then : |
| 3453 | $as_echo_n "(cached) " >&6 |
| 3454 | else |
| 3455 | case $TAR in |
| 3456 | [\\/]* | ?:[\\/]*) |
| 3457 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 3458 | ;; |
| 3459 | *) |
| 3460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3461 | for as_dir in $PATH |
| 3462 | do |
| 3463 | IFS=$as_save_IFS |
| 3464 | test -z "$as_dir" && as_dir=. |
| 3465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3467 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 3468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3469 | break 2 |
| 3470 | fi |
| 3471 | done |
| 3472 | done |
| 3473 | IFS=$as_save_IFS |
| 3474 | |
| 3475 | ;; |
| 3476 | esac |
| 3477 | fi |
| 3478 | TAR=$ac_cv_path_TAR |
| 3479 | if test -n "$TAR"; then |
| 3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| 3481 | $as_echo "$TAR" >&6; } |
| 3482 | else |
| 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3484 | $as_echo "no" >&6; } |
| 3485 | fi |
| 3486 | |
| 3487 | |
| 3488 | # Extract the first word of "patch", so it can be a program name with args. |
| 3489 | set dummy patch; ac_word=$2 |
| 3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3491 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3492 | if ${ac_cv_path_PATCH+:} false; then : |
| 3493 | $as_echo_n "(cached) " >&6 |
| 3494 | else |
| 3495 | case $PATCH in |
| 3496 | [\\/]* | ?:[\\/]*) |
| 3497 | ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. |
| 3498 | ;; |
| 3499 | *) |
| 3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3501 | for as_dir in $PATH |
| 3502 | do |
| 3503 | IFS=$as_save_IFS |
| 3504 | test -z "$as_dir" && as_dir=. |
| 3505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3507 | ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" |
| 3508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3509 | break 2 |
| 3510 | fi |
| 3511 | done |
| 3512 | done |
| 3513 | IFS=$as_save_IFS |
| 3514 | |
| 3515 | ;; |
| 3516 | esac |
| 3517 | fi |
| 3518 | PATCH=$ac_cv_path_PATCH |
| 3519 | if test -n "$PATCH"; then |
| 3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 |
| 3521 | $as_echo "$PATCH" >&6; } |
| 3522 | else |
| 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3524 | $as_echo "no" >&6; } |
| 3525 | fi |
| 3526 | |
| 3527 | |
| 3528 | # Extract the first word of "patchelf", so it can be a program name with args. |
| 3529 | set dummy patchelf; ac_word=$2 |
| 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3531 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3532 | if ${ac_cv_path_PATCHELF+:} false; then : |
| 3533 | $as_echo_n "(cached) " >&6 |
| 3534 | else |
| 3535 | case $PATCHELF in |
| 3536 | [\\/]* | ?:[\\/]*) |
| 3537 | ac_cv_path_PATCHELF="$PATCHELF" # Let the user override the test with a path. |
| 3538 | ;; |
| 3539 | *) |
| 3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3541 | for as_dir in $PATH |
| 3542 | do |
| 3543 | IFS=$as_save_IFS |
| 3544 | test -z "$as_dir" && as_dir=. |
| 3545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3547 | ac_cv_path_PATCHELF="$as_dir/$ac_word$ac_exec_ext" |
| 3548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3549 | break 2 |
| 3550 | fi |
| 3551 | done |
| 3552 | done |
| 3553 | IFS=$as_save_IFS |
| 3554 | |
| 3555 | ;; |
| 3556 | esac |
| 3557 | fi |
| 3558 | PATCHELF=$ac_cv_path_PATCHELF |
| 3559 | if test -n "$PATCHELF"; then |
| 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5 |
| 3561 | $as_echo "$PATCHELF" >&6; } |
| 3562 | else |
| 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3564 | $as_echo "no" >&6; } |
| 3565 | fi |
| 3566 | |
| 3567 | |
| 3568 | |
| 3569 | |
| 3570 | |
| 3571 | # Check whether --with-pkg-config was given. |
| 3572 | if test "${with_pkg_config+set}" = set; then : |
| 3573 | withval=$with_pkg_config; |
| 3574 | fi |
| 3575 | |
| 3576 | with_PKG_CONFIG="$with_pkg_config" |
| 3577 | |
| 3578 | if test -n "$with_PKG_CONFIG" -a "x$with_PKG_CONFIG" != xno -a "x$with_PKG_CONFIG" != xyes; then : |
| 3579 | PKG_CONFIG="$with_PKG_CONFIG" |
| 3580 | |
| 3581 | |
| 3582 | else |
| 3583 | PKG_CONFIG="pkg-config" |
| 3584 | |
| 3585 | |
| 3586 | fi |
| 3587 | |
| 3588 | if test "x$with_PKG_CONFIG" = xno; then : |
| 3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config is disabled explicitly" >&5 |
| 3590 | $as_echo "$as_me: pkg-config is disabled explicitly" >&6;} |
| 3591 | PKG_CONFIG=no |
| 3592 | |
| 3593 | |
| 3594 | else |
| 3595 | if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then : |
| 3596 | |
| 3597 | |
| 3598 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 3599 | if test -n "$ac_tool_prefix"; then |
| 3600 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 3601 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3603 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3604 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 3605 | $as_echo_n "(cached) " >&6 |
| 3606 | else |
| 3607 | case $PKG_CONFIG in |
| 3608 | [\\/]* | ?:[\\/]*) |
| 3609 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 3610 | ;; |
| 3611 | *) |
| 3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3613 | for as_dir in $PATH |
| 3614 | do |
| 3615 | IFS=$as_save_IFS |
| 3616 | test -z "$as_dir" && as_dir=. |
| 3617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3619 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3621 | break 2 |
| 3622 | fi |
| 3623 | done |
| 3624 | done |
| 3625 | IFS=$as_save_IFS |
| 3626 | |
| 3627 | ;; |
| 3628 | esac |
| 3629 | fi |
| 3630 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 3631 | if test -n "$PKG_CONFIG"; then |
| 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 3633 | $as_echo "$PKG_CONFIG" >&6; } |
| 3634 | else |
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3636 | $as_echo "no" >&6; } |
| 3637 | fi |
| 3638 | |
| 3639 | |
| 3640 | fi |
| 3641 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 3642 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 3643 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 3644 | set dummy pkg-config; ac_word=$2 |
| 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3646 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3647 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 3648 | $as_echo_n "(cached) " >&6 |
| 3649 | else |
| 3650 | case $ac_pt_PKG_CONFIG in |
| 3651 | [\\/]* | ?:[\\/]*) |
| 3652 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 3653 | ;; |
| 3654 | *) |
| 3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3656 | for as_dir in $PATH |
| 3657 | do |
| 3658 | IFS=$as_save_IFS |
| 3659 | test -z "$as_dir" && as_dir=. |
| 3660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3662 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 3663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3664 | break 2 |
| 3665 | fi |
| 3666 | done |
| 3667 | done |
| 3668 | IFS=$as_save_IFS |
| 3669 | |
| 3670 | ;; |
| 3671 | esac |
| 3672 | fi |
| 3673 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 3674 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 3676 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 3677 | else |
| 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3679 | $as_echo "no" >&6; } |
| 3680 | fi |
| 3681 | |
| 3682 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 3683 | PKG_CONFIG="" |
| 3684 | else |
| 3685 | case $cross_compiling:$ac_tool_warned in |
| 3686 | yes:) |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3688 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3689 | ac_tool_warned=yes ;; |
| 3690 | esac |
| 3691 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 3692 | fi |
| 3693 | else |
| 3694 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 3695 | fi |
| 3696 | |
| 3697 | fi |
| 3698 | if test -n "$PKG_CONFIG"; then |
| 3699 | _pkg_min_version=0.9.0 |
| 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 3701 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 3702 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3704 | $as_echo "yes" >&6; } |
| 3705 | else |
| 3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3707 | $as_echo "no" >&6; } |
| 3708 | PKG_CONFIG="" |
| 3709 | fi |
| 3710 | |
| 3711 | fi |
| 3712 | |
| 3713 | elif test "x$PKG_CONFIG" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then : |
| 3714 | # checking for ocamllex |
| 3715 | if test -n "$ac_tool_prefix"; then |
| 3716 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 3717 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3719 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3720 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 3721 | $as_echo_n "(cached) " >&6 |
| 3722 | else |
| 3723 | case $OCAMLLEX in |
| 3724 | [\\/]* | ?:[\\/]*) |
| 3725 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 3726 | ;; |
| 3727 | *) |
| 3728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3729 | for as_dir in $PATH |
| 3730 | do |
| 3731 | IFS=$as_save_IFS |
| 3732 | test -z "$as_dir" && as_dir=. |
| 3733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3735 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 3736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3737 | break 2 |
| 3738 | fi |
| 3739 | done |
| 3740 | done |
| 3741 | IFS=$as_save_IFS |
| 3742 | |
| 3743 | ;; |
| 3744 | esac |
| 3745 | fi |
| 3746 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 3747 | if test -n "$OCAMLLEX"; then |
| 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 3749 | $as_echo "$OCAMLLEX" >&6; } |
| 3750 | else |
| 3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3752 | $as_echo "no" >&6; } |
| 3753 | fi |
| 3754 | |
| 3755 | |
| 3756 | fi |
| 3757 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 3758 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 3759 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 3760 | set dummy ocamllex; ac_word=$2 |
| 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3762 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3763 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 3764 | $as_echo_n "(cached) " >&6 |
| 3765 | else |
| 3766 | case $ac_pt_OCAMLLEX in |
| 3767 | [\\/]* | ?:[\\/]*) |
| 3768 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 3769 | ;; |
| 3770 | *) |
| 3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3772 | for as_dir in $PATH |
| 3773 | do |
| 3774 | IFS=$as_save_IFS |
| 3775 | test -z "$as_dir" && as_dir=. |
| 3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3778 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3780 | break 2 |
| 3781 | fi |
| 3782 | done |
| 3783 | done |
| 3784 | IFS=$as_save_IFS |
| 3785 | |
| 3786 | ;; |
| 3787 | esac |
| 3788 | fi |
| 3789 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 3790 | if test -n "$ac_pt_OCAMLLEX"; then |
| 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 3792 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 3793 | else |
| 3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3795 | $as_echo "no" >&6; } |
| 3796 | fi |
| 3797 | |
| 3798 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 3799 | OCAMLLEX="no" |
| 3800 | else |
| 3801 | case $cross_compiling:$ac_tool_warned in |
| 3802 | yes:) |
| 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3805 | ac_tool_warned=yes ;; |
| 3806 | esac |
| 3807 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 3808 | fi |
| 3809 | else |
| 3810 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 3811 | fi |
| 3812 | |
| 3813 | if test "$OCAMLLEX" != "no"; then |
| 3814 | if test -n "$ac_tool_prefix"; then |
| 3815 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 3816 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3818 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3819 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 3820 | $as_echo_n "(cached) " >&6 |
| 3821 | else |
| 3822 | case $OCAMLLEXDOTOPT in |
| 3823 | [\\/]* | ?:[\\/]*) |
| 3824 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 3825 | ;; |
| 3826 | *) |
| 3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3828 | for as_dir in $PATH |
| 3829 | do |
| 3830 | IFS=$as_save_IFS |
| 3831 | test -z "$as_dir" && as_dir=. |
| 3832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3834 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 3835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3836 | break 2 |
| 3837 | fi |
| 3838 | done |
| 3839 | done |
| 3840 | IFS=$as_save_IFS |
| 3841 | |
| 3842 | ;; |
| 3843 | esac |
| 3844 | fi |
| 3845 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 3846 | if test -n "$OCAMLLEXDOTOPT"; then |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 3848 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 3849 | else |
| 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3851 | $as_echo "no" >&6; } |
| 3852 | fi |
| 3853 | |
| 3854 | |
| 3855 | fi |
| 3856 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 3857 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 3858 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 3859 | set dummy ocamllex.opt; ac_word=$2 |
| 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3861 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3862 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 3863 | $as_echo_n "(cached) " >&6 |
| 3864 | else |
| 3865 | case $ac_pt_OCAMLLEXDOTOPT in |
| 3866 | [\\/]* | ?:[\\/]*) |
| 3867 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 3868 | ;; |
| 3869 | *) |
| 3870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3871 | for as_dir in $PATH |
| 3872 | do |
| 3873 | IFS=$as_save_IFS |
| 3874 | test -z "$as_dir" && as_dir=. |
| 3875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3877 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 3878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3879 | break 2 |
| 3880 | fi |
| 3881 | done |
| 3882 | done |
| 3883 | IFS=$as_save_IFS |
| 3884 | |
| 3885 | ;; |
| 3886 | esac |
| 3887 | fi |
| 3888 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 3889 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 3891 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 3892 | else |
| 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3894 | $as_echo "no" >&6; } |
| 3895 | fi |
| 3896 | |
| 3897 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 3898 | OCAMLLEXDOTOPT="no" |
| 3899 | else |
| 3900 | case $cross_compiling:$ac_tool_warned in |
| 3901 | yes:) |
| 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3904 | ac_tool_warned=yes ;; |
| 3905 | esac |
| 3906 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 3907 | fi |
| 3908 | else |
| 3909 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 3910 | fi |
| 3911 | |
| 3912 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 3913 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 3914 | fi |
| 3915 | fi |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | elif test "x$PKG_CONFIG" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then : |
| 3920 | if test -n "$ac_tool_prefix"; then |
| 3921 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 3922 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3924 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3925 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 3926 | $as_echo_n "(cached) " >&6 |
| 3927 | else |
| 3928 | case $OCAMLYACC in |
| 3929 | [\\/]* | ?:[\\/]*) |
| 3930 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 3931 | ;; |
| 3932 | *) |
| 3933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3934 | for as_dir in $PATH |
| 3935 | do |
| 3936 | IFS=$as_save_IFS |
| 3937 | test -z "$as_dir" && as_dir=. |
| 3938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3940 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 3941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3942 | break 2 |
| 3943 | fi |
| 3944 | done |
| 3945 | done |
| 3946 | IFS=$as_save_IFS |
| 3947 | |
| 3948 | ;; |
| 3949 | esac |
| 3950 | fi |
| 3951 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 3952 | if test -n "$OCAMLYACC"; then |
| 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 3954 | $as_echo "$OCAMLYACC" >&6; } |
| 3955 | else |
| 3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3957 | $as_echo "no" >&6; } |
| 3958 | fi |
| 3959 | |
| 3960 | |
| 3961 | fi |
| 3962 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 3963 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 3964 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 3965 | set dummy ocamlyacc; ac_word=$2 |
| 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3967 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3968 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 3969 | $as_echo_n "(cached) " >&6 |
| 3970 | else |
| 3971 | case $ac_pt_OCAMLYACC in |
| 3972 | [\\/]* | ?:[\\/]*) |
| 3973 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 3974 | ;; |
| 3975 | *) |
| 3976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3977 | for as_dir in $PATH |
| 3978 | do |
| 3979 | IFS=$as_save_IFS |
| 3980 | test -z "$as_dir" && as_dir=. |
| 3981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3982 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3983 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 3984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3985 | break 2 |
| 3986 | fi |
| 3987 | done |
| 3988 | done |
| 3989 | IFS=$as_save_IFS |
| 3990 | |
| 3991 | ;; |
| 3992 | esac |
| 3993 | fi |
| 3994 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 3995 | if test -n "$ac_pt_OCAMLYACC"; then |
| 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 3997 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 3998 | else |
| 3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4000 | $as_echo "no" >&6; } |
| 4001 | fi |
| 4002 | |
| 4003 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 4004 | OCAMLYACC="no" |
| 4005 | else |
| 4006 | case $cross_compiling:$ac_tool_warned in |
| 4007 | yes:) |
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4010 | ac_tool_warned=yes ;; |
| 4011 | esac |
| 4012 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 4013 | fi |
| 4014 | else |
| 4015 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 4016 | fi |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | else |
| 4022 | if test -n "$ac_tool_prefix"; then |
| 4023 | # Extract the first word of "${ac_tool_prefix}[$]PKG_CONFIG", so it can be a program name with args. |
| 4024 | set dummy ${ac_tool_prefix}$PKG_CONFIG; ac_word=$2 |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4026 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4027 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 4028 | $as_echo_n "(cached) " >&6 |
| 4029 | else |
| 4030 | case $PKG_CONFIG in |
| 4031 | [\\/]* | ?:[\\/]*) |
| 4032 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4033 | ;; |
| 4034 | *) |
| 4035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4036 | for as_dir in $PATH |
| 4037 | do |
| 4038 | IFS=$as_save_IFS |
| 4039 | test -z "$as_dir" && as_dir=. |
| 4040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4042 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4044 | break 2 |
| 4045 | fi |
| 4046 | done |
| 4047 | done |
| 4048 | IFS=$as_save_IFS |
| 4049 | |
| 4050 | ;; |
| 4051 | esac |
| 4052 | fi |
| 4053 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4054 | if test -n "$PKG_CONFIG"; then |
| 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 4056 | $as_echo "$PKG_CONFIG" >&6; } |
| 4057 | else |
| 4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4059 | $as_echo "no" >&6; } |
| 4060 | fi |
| 4061 | |
| 4062 | |
| 4063 | fi |
| 4064 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4065 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4066 | # Extract the first word of "[$]PKG_CONFIG", so it can be a program name with args. |
| 4067 | set dummy $PKG_CONFIG; ac_word=$2 |
| 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4069 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4070 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 4071 | $as_echo_n "(cached) " >&6 |
| 4072 | else |
| 4073 | case $ac_pt_PKG_CONFIG in |
| 4074 | [\\/]* | ?:[\\/]*) |
| 4075 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4076 | ;; |
| 4077 | *) |
| 4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4079 | for as_dir in $PATH |
| 4080 | do |
| 4081 | IFS=$as_save_IFS |
| 4082 | test -z "$as_dir" && as_dir=. |
| 4083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4085 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4087 | break 2 |
| 4088 | fi |
| 4089 | done |
| 4090 | done |
| 4091 | IFS=$as_save_IFS |
| 4092 | |
| 4093 | ;; |
| 4094 | esac |
| 4095 | fi |
| 4096 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4097 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 4099 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4100 | else |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4102 | $as_echo "no" >&6; } |
| 4103 | fi |
| 4104 | |
| 4105 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4106 | PKG_CONFIG="" |
| 4107 | else |
| 4108 | case $cross_compiling:$ac_tool_warned in |
| 4109 | yes:) |
| 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4112 | ac_tool_warned=yes ;; |
| 4113 | esac |
| 4114 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4115 | fi |
| 4116 | else |
| 4117 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4118 | fi |
| 4119 | |
| 4120 | |
| 4121 | fi |
| 4122 | |
| 4123 | |
| 4124 | fi |
| 4125 | |
| 4126 | if test -z "$PKG_CONFIG" -o "x$PKG_CONFIG" = xno; then : |
| 4127 | if test "x$with_PKG_CONFIG" = xyes; then : |
| 4128 | as_fn_error $? "--with=pkg-config is given explicitly but not found" "$LINENO" 5 |
| 4129 | |
| 4130 | fi |
| 4131 | |
| 4132 | if test -n "$COCCI_SRCDIR/setup/fake-subst.sh pkg-config"; then : |
| 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&5 |
| 4134 | $as_echo "$as_me: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&6;} |
| 4135 | PKG_CONFIG="$COCCI_SRCDIR/setup/fake-subst.sh pkg-config" |
| 4136 | |
| 4137 | if test "xpkg-config" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then : |
| 4138 | |
| 4139 | |
| 4140 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4141 | if test -n "$ac_tool_prefix"; then |
| 4142 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4143 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4145 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4146 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 4147 | $as_echo_n "(cached) " >&6 |
| 4148 | else |
| 4149 | case $PKG_CONFIG in |
| 4150 | [\\/]* | ?:[\\/]*) |
| 4151 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4152 | ;; |
| 4153 | *) |
| 4154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4155 | for as_dir in $PATH |
| 4156 | do |
| 4157 | IFS=$as_save_IFS |
| 4158 | test -z "$as_dir" && as_dir=. |
| 4159 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4161 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4163 | break 2 |
| 4164 | fi |
| 4165 | done |
| 4166 | done |
| 4167 | IFS=$as_save_IFS |
| 4168 | |
| 4169 | ;; |
| 4170 | esac |
| 4171 | fi |
| 4172 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4173 | if test -n "$PKG_CONFIG"; then |
| 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 4175 | $as_echo "$PKG_CONFIG" >&6; } |
| 4176 | else |
| 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4178 | $as_echo "no" >&6; } |
| 4179 | fi |
| 4180 | |
| 4181 | |
| 4182 | fi |
| 4183 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4184 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4185 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4186 | set dummy pkg-config; ac_word=$2 |
| 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4188 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4189 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 4190 | $as_echo_n "(cached) " >&6 |
| 4191 | else |
| 4192 | case $ac_pt_PKG_CONFIG in |
| 4193 | [\\/]* | ?:[\\/]*) |
| 4194 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4195 | ;; |
| 4196 | *) |
| 4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4198 | for as_dir in $PATH |
| 4199 | do |
| 4200 | IFS=$as_save_IFS |
| 4201 | test -z "$as_dir" && as_dir=. |
| 4202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4204 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4206 | break 2 |
| 4207 | fi |
| 4208 | done |
| 4209 | done |
| 4210 | IFS=$as_save_IFS |
| 4211 | |
| 4212 | ;; |
| 4213 | esac |
| 4214 | fi |
| 4215 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4216 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 4218 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4219 | else |
| 4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4221 | $as_echo "no" >&6; } |
| 4222 | fi |
| 4223 | |
| 4224 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4225 | PKG_CONFIG="" |
| 4226 | else |
| 4227 | case $cross_compiling:$ac_tool_warned in |
| 4228 | yes:) |
| 4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4230 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4231 | ac_tool_warned=yes ;; |
| 4232 | esac |
| 4233 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4234 | fi |
| 4235 | else |
| 4236 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4237 | fi |
| 4238 | |
| 4239 | fi |
| 4240 | if test -n "$PKG_CONFIG"; then |
| 4241 | _pkg_min_version=0.9.0 |
| 4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4243 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 4244 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4246 | $as_echo "yes" >&6; } |
| 4247 | else |
| 4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4249 | $as_echo "no" >&6; } |
| 4250 | PKG_CONFIG="" |
| 4251 | fi |
| 4252 | |
| 4253 | fi |
| 4254 | |
| 4255 | elif test "xpkg-config" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then : |
| 4256 | # checking for ocamllex |
| 4257 | if test -n "$ac_tool_prefix"; then |
| 4258 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 4259 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4261 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4262 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 4263 | $as_echo_n "(cached) " >&6 |
| 4264 | else |
| 4265 | case $OCAMLLEX in |
| 4266 | [\\/]* | ?:[\\/]*) |
| 4267 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 4268 | ;; |
| 4269 | *) |
| 4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4271 | for as_dir in $PATH |
| 4272 | do |
| 4273 | IFS=$as_save_IFS |
| 4274 | test -z "$as_dir" && as_dir=. |
| 4275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4277 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 4278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4279 | break 2 |
| 4280 | fi |
| 4281 | done |
| 4282 | done |
| 4283 | IFS=$as_save_IFS |
| 4284 | |
| 4285 | ;; |
| 4286 | esac |
| 4287 | fi |
| 4288 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 4289 | if test -n "$OCAMLLEX"; then |
| 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 4291 | $as_echo "$OCAMLLEX" >&6; } |
| 4292 | else |
| 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4294 | $as_echo "no" >&6; } |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | fi |
| 4299 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 4300 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 4301 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 4302 | set dummy ocamllex; ac_word=$2 |
| 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4304 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4305 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 4306 | $as_echo_n "(cached) " >&6 |
| 4307 | else |
| 4308 | case $ac_pt_OCAMLLEX in |
| 4309 | [\\/]* | ?:[\\/]*) |
| 4310 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 4311 | ;; |
| 4312 | *) |
| 4313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4314 | for as_dir in $PATH |
| 4315 | do |
| 4316 | IFS=$as_save_IFS |
| 4317 | test -z "$as_dir" && as_dir=. |
| 4318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4320 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 4321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4322 | break 2 |
| 4323 | fi |
| 4324 | done |
| 4325 | done |
| 4326 | IFS=$as_save_IFS |
| 4327 | |
| 4328 | ;; |
| 4329 | esac |
| 4330 | fi |
| 4331 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 4332 | if test -n "$ac_pt_OCAMLLEX"; then |
| 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 4334 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 4335 | else |
| 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4337 | $as_echo "no" >&6; } |
| 4338 | fi |
| 4339 | |
| 4340 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 4341 | OCAMLLEX="no" |
| 4342 | else |
| 4343 | case $cross_compiling:$ac_tool_warned in |
| 4344 | yes:) |
| 4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4347 | ac_tool_warned=yes ;; |
| 4348 | esac |
| 4349 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 4350 | fi |
| 4351 | else |
| 4352 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 4353 | fi |
| 4354 | |
| 4355 | if test "$OCAMLLEX" != "no"; then |
| 4356 | if test -n "$ac_tool_prefix"; then |
| 4357 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 4358 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4360 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4361 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 4362 | $as_echo_n "(cached) " >&6 |
| 4363 | else |
| 4364 | case $OCAMLLEXDOTOPT in |
| 4365 | [\\/]* | ?:[\\/]*) |
| 4366 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 4367 | ;; |
| 4368 | *) |
| 4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4370 | for as_dir in $PATH |
| 4371 | do |
| 4372 | IFS=$as_save_IFS |
| 4373 | test -z "$as_dir" && as_dir=. |
| 4374 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4376 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4378 | break 2 |
| 4379 | fi |
| 4380 | done |
| 4381 | done |
| 4382 | IFS=$as_save_IFS |
| 4383 | |
| 4384 | ;; |
| 4385 | esac |
| 4386 | fi |
| 4387 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 4388 | if test -n "$OCAMLLEXDOTOPT"; then |
| 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 4390 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 4391 | else |
| 4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4393 | $as_echo "no" >&6; } |
| 4394 | fi |
| 4395 | |
| 4396 | |
| 4397 | fi |
| 4398 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 4399 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 4400 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 4401 | set dummy ocamllex.opt; ac_word=$2 |
| 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4403 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4404 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 4405 | $as_echo_n "(cached) " >&6 |
| 4406 | else |
| 4407 | case $ac_pt_OCAMLLEXDOTOPT in |
| 4408 | [\\/]* | ?:[\\/]*) |
| 4409 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 4410 | ;; |
| 4411 | *) |
| 4412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4413 | for as_dir in $PATH |
| 4414 | do |
| 4415 | IFS=$as_save_IFS |
| 4416 | test -z "$as_dir" && as_dir=. |
| 4417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4419 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4421 | break 2 |
| 4422 | fi |
| 4423 | done |
| 4424 | done |
| 4425 | IFS=$as_save_IFS |
| 4426 | |
| 4427 | ;; |
| 4428 | esac |
| 4429 | fi |
| 4430 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 4431 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 4433 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 4434 | else |
| 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4436 | $as_echo "no" >&6; } |
| 4437 | fi |
| 4438 | |
| 4439 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 4440 | OCAMLLEXDOTOPT="no" |
| 4441 | else |
| 4442 | case $cross_compiling:$ac_tool_warned in |
| 4443 | yes:) |
| 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4446 | ac_tool_warned=yes ;; |
| 4447 | esac |
| 4448 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 4449 | fi |
| 4450 | else |
| 4451 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 4452 | fi |
| 4453 | |
| 4454 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 4455 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 4456 | fi |
| 4457 | fi |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | elif test "xpkg-config" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then : |
| 4462 | if test -n "$ac_tool_prefix"; then |
| 4463 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 4464 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4466 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4467 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 4468 | $as_echo_n "(cached) " >&6 |
| 4469 | else |
| 4470 | case $OCAMLYACC in |
| 4471 | [\\/]* | ?:[\\/]*) |
| 4472 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 4473 | ;; |
| 4474 | *) |
| 4475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4476 | for as_dir in $PATH |
| 4477 | do |
| 4478 | IFS=$as_save_IFS |
| 4479 | test -z "$as_dir" && as_dir=. |
| 4480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4482 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 4483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4484 | break 2 |
| 4485 | fi |
| 4486 | done |
| 4487 | done |
| 4488 | IFS=$as_save_IFS |
| 4489 | |
| 4490 | ;; |
| 4491 | esac |
| 4492 | fi |
| 4493 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 4494 | if test -n "$OCAMLYACC"; then |
| 4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 4496 | $as_echo "$OCAMLYACC" >&6; } |
| 4497 | else |
| 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4499 | $as_echo "no" >&6; } |
| 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | fi |
| 4504 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 4505 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 4506 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 4507 | set dummy ocamlyacc; ac_word=$2 |
| 4508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4509 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4510 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 4511 | $as_echo_n "(cached) " >&6 |
| 4512 | else |
| 4513 | case $ac_pt_OCAMLYACC in |
| 4514 | [\\/]* | ?:[\\/]*) |
| 4515 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 4516 | ;; |
| 4517 | *) |
| 4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4519 | for as_dir in $PATH |
| 4520 | do |
| 4521 | IFS=$as_save_IFS |
| 4522 | test -z "$as_dir" && as_dir=. |
| 4523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4524 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4525 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 4526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4527 | break 2 |
| 4528 | fi |
| 4529 | done |
| 4530 | done |
| 4531 | IFS=$as_save_IFS |
| 4532 | |
| 4533 | ;; |
| 4534 | esac |
| 4535 | fi |
| 4536 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 4537 | if test -n "$ac_pt_OCAMLYACC"; then |
| 4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 4539 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 4540 | else |
| 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4542 | $as_echo "no" >&6; } |
| 4543 | fi |
| 4544 | |
| 4545 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 4546 | OCAMLYACC="no" |
| 4547 | else |
| 4548 | case $cross_compiling:$ac_tool_warned in |
| 4549 | yes:) |
| 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4551 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4552 | ac_tool_warned=yes ;; |
| 4553 | esac |
| 4554 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 4555 | fi |
| 4556 | else |
| 4557 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 4558 | fi |
| 4559 | |
| 4560 | |
| 4561 | |
| 4562 | |
| 4563 | else |
| 4564 | if test -n "$ac_tool_prefix"; then |
| 4565 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4566 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4568 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4569 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 4570 | $as_echo_n "(cached) " >&6 |
| 4571 | else |
| 4572 | case $PKG_CONFIG in |
| 4573 | [\\/]* | ?:[\\/]*) |
| 4574 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4575 | ;; |
| 4576 | *) |
| 4577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4578 | for as_dir in $PATH |
| 4579 | do |
| 4580 | IFS=$as_save_IFS |
| 4581 | test -z "$as_dir" && as_dir=. |
| 4582 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4584 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4586 | break 2 |
| 4587 | fi |
| 4588 | done |
| 4589 | done |
| 4590 | IFS=$as_save_IFS |
| 4591 | |
| 4592 | ;; |
| 4593 | esac |
| 4594 | fi |
| 4595 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4596 | if test -n "$PKG_CONFIG"; then |
| 4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 4598 | $as_echo "$PKG_CONFIG" >&6; } |
| 4599 | else |
| 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4601 | $as_echo "no" >&6; } |
| 4602 | fi |
| 4603 | |
| 4604 | |
| 4605 | fi |
| 4606 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4607 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4608 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4609 | set dummy pkg-config; ac_word=$2 |
| 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4611 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4612 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 4613 | $as_echo_n "(cached) " >&6 |
| 4614 | else |
| 4615 | case $ac_pt_PKG_CONFIG in |
| 4616 | [\\/]* | ?:[\\/]*) |
| 4617 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4618 | ;; |
| 4619 | *) |
| 4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4621 | for as_dir in $PATH |
| 4622 | do |
| 4623 | IFS=$as_save_IFS |
| 4624 | test -z "$as_dir" && as_dir=. |
| 4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4626 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4627 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4629 | break 2 |
| 4630 | fi |
| 4631 | done |
| 4632 | done |
| 4633 | IFS=$as_save_IFS |
| 4634 | |
| 4635 | ;; |
| 4636 | esac |
| 4637 | fi |
| 4638 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4639 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 4641 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4642 | else |
| 4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4644 | $as_echo "no" >&6; } |
| 4645 | fi |
| 4646 | |
| 4647 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4648 | PKG_CONFIG="" |
| 4649 | else |
| 4650 | case $cross_compiling:$ac_tool_warned in |
| 4651 | yes:) |
| 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4654 | ac_tool_warned=yes ;; |
| 4655 | esac |
| 4656 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4657 | fi |
| 4658 | else |
| 4659 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4660 | fi |
| 4661 | |
| 4662 | |
| 4663 | fi |
| 4664 | |
| 4665 | SUBSTITUTED_PKG_CONFIG=yes |
| 4666 | |
| 4667 | |
| 4668 | fi |
| 4669 | |
| 4670 | fi |
| 4671 | |
| 4672 | if test -z "$PKG_CONFIG"; then : |
| 4673 | PKG_CONFIG=no |
| 4674 | |
| 4675 | fi |
| 4676 | |
| 4677 | if test "x$PKG_CONFIG" = xno; then : |
| 4678 | as_fn_error $? "A suitable pkg-config could not be found." "$LINENO" 5 |
| 4679 | |
| 4680 | fi |
| 4681 | |
| 4682 | # checking for ocamlc |
| 4683 | if test -n "$ac_tool_prefix"; then |
| 4684 | # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args. |
| 4685 | set dummy ${ac_tool_prefix}ocamlc; ac_word=$2 |
| 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4687 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4688 | if ${ac_cv_path_OCAMLC+:} false; then : |
| 4689 | $as_echo_n "(cached) " >&6 |
| 4690 | else |
| 4691 | case $OCAMLC in |
| 4692 | [\\/]* | ?:[\\/]*) |
| 4693 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 4694 | ;; |
| 4695 | *) |
| 4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4697 | for as_dir in $PATH |
| 4698 | do |
| 4699 | IFS=$as_save_IFS |
| 4700 | test -z "$as_dir" && as_dir=. |
| 4701 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4703 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 4704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4705 | break 2 |
| 4706 | fi |
| 4707 | done |
| 4708 | done |
| 4709 | IFS=$as_save_IFS |
| 4710 | |
| 4711 | ;; |
| 4712 | esac |
| 4713 | fi |
| 4714 | OCAMLC=$ac_cv_path_OCAMLC |
| 4715 | if test -n "$OCAMLC"; then |
| 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 |
| 4717 | $as_echo "$OCAMLC" >&6; } |
| 4718 | else |
| 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4720 | $as_echo "no" >&6; } |
| 4721 | fi |
| 4722 | |
| 4723 | |
| 4724 | fi |
| 4725 | if test -z "$ac_cv_path_OCAMLC"; then |
| 4726 | ac_pt_OCAMLC=$OCAMLC |
| 4727 | # Extract the first word of "ocamlc", so it can be a program name with args. |
| 4728 | set dummy ocamlc; ac_word=$2 |
| 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4730 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4731 | if ${ac_cv_path_ac_pt_OCAMLC+:} false; then : |
| 4732 | $as_echo_n "(cached) " >&6 |
| 4733 | else |
| 4734 | case $ac_pt_OCAMLC in |
| 4735 | [\\/]* | ?:[\\/]*) |
| 4736 | ac_cv_path_ac_pt_OCAMLC="$ac_pt_OCAMLC" # Let the user override the test with a path. |
| 4737 | ;; |
| 4738 | *) |
| 4739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4740 | for as_dir in $PATH |
| 4741 | do |
| 4742 | IFS=$as_save_IFS |
| 4743 | test -z "$as_dir" && as_dir=. |
| 4744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4746 | ac_cv_path_ac_pt_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 4747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4748 | break 2 |
| 4749 | fi |
| 4750 | done |
| 4751 | done |
| 4752 | IFS=$as_save_IFS |
| 4753 | |
| 4754 | ;; |
| 4755 | esac |
| 4756 | fi |
| 4757 | ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC |
| 4758 | if test -n "$ac_pt_OCAMLC"; then |
| 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLC" >&5 |
| 4760 | $as_echo "$ac_pt_OCAMLC" >&6; } |
| 4761 | else |
| 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4763 | $as_echo "no" >&6; } |
| 4764 | fi |
| 4765 | |
| 4766 | if test "x$ac_pt_OCAMLC" = x; then |
| 4767 | OCAMLC="no" |
| 4768 | else |
| 4769 | case $cross_compiling:$ac_tool_warned in |
| 4770 | yes:) |
| 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4773 | ac_tool_warned=yes ;; |
| 4774 | esac |
| 4775 | OCAMLC=$ac_pt_OCAMLC |
| 4776 | fi |
| 4777 | else |
| 4778 | OCAMLC="$ac_cv_path_OCAMLC" |
| 4779 | fi |
| 4780 | |
| 4781 | |
| 4782 | if test "$OCAMLC" != "no"; then |
| 4783 | OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'` |
| 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5 |
| 4785 | $as_echo "OCaml version is $OCAMLVERSION" >&6; } |
| 4786 | # If OCAMLLIB is set, use it |
| 4787 | if test "$OCAMLLIB" = ""; then |
| 4788 | OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4` |
| 4789 | else |
| 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5 |
| 4791 | $as_echo "OCAMLLIB previously set; preserving it." >&6; } |
| 4792 | fi |
| 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5 |
| 4794 | $as_echo "OCaml library path is $OCAMLLIB" >&6; } |
| 4795 | |
| 4796 | |
| 4797 | |
| 4798 | |
| 4799 | # checking for ocamlopt |
| 4800 | if test -n "$ac_tool_prefix"; then |
| 4801 | # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args. |
| 4802 | set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2 |
| 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4804 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4805 | if ${ac_cv_path_OCAMLOPT+:} false; then : |
| 4806 | $as_echo_n "(cached) " >&6 |
| 4807 | else |
| 4808 | case $OCAMLOPT in |
| 4809 | [\\/]* | ?:[\\/]*) |
| 4810 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 4811 | ;; |
| 4812 | *) |
| 4813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4814 | for as_dir in $PATH |
| 4815 | do |
| 4816 | IFS=$as_save_IFS |
| 4817 | test -z "$as_dir" && as_dir=. |
| 4818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4820 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4822 | break 2 |
| 4823 | fi |
| 4824 | done |
| 4825 | done |
| 4826 | IFS=$as_save_IFS |
| 4827 | |
| 4828 | ;; |
| 4829 | esac |
| 4830 | fi |
| 4831 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 4832 | if test -n "$OCAMLOPT"; then |
| 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5 |
| 4834 | $as_echo "$OCAMLOPT" >&6; } |
| 4835 | else |
| 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4837 | $as_echo "no" >&6; } |
| 4838 | fi |
| 4839 | |
| 4840 | |
| 4841 | fi |
| 4842 | if test -z "$ac_cv_path_OCAMLOPT"; then |
| 4843 | ac_pt_OCAMLOPT=$OCAMLOPT |
| 4844 | # Extract the first word of "ocamlopt", so it can be a program name with args. |
| 4845 | set dummy ocamlopt; ac_word=$2 |
| 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4847 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4848 | if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then : |
| 4849 | $as_echo_n "(cached) " >&6 |
| 4850 | else |
| 4851 | case $ac_pt_OCAMLOPT in |
| 4852 | [\\/]* | ?:[\\/]*) |
| 4853 | ac_cv_path_ac_pt_OCAMLOPT="$ac_pt_OCAMLOPT" # Let the user override the test with a path. |
| 4854 | ;; |
| 4855 | *) |
| 4856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4857 | for as_dir in $PATH |
| 4858 | do |
| 4859 | IFS=$as_save_IFS |
| 4860 | test -z "$as_dir" && as_dir=. |
| 4861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4863 | ac_cv_path_ac_pt_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4865 | break 2 |
| 4866 | fi |
| 4867 | done |
| 4868 | done |
| 4869 | IFS=$as_save_IFS |
| 4870 | |
| 4871 | ;; |
| 4872 | esac |
| 4873 | fi |
| 4874 | ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT |
| 4875 | if test -n "$ac_pt_OCAMLOPT"; then |
| 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPT" >&5 |
| 4877 | $as_echo "$ac_pt_OCAMLOPT" >&6; } |
| 4878 | else |
| 4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4880 | $as_echo "no" >&6; } |
| 4881 | fi |
| 4882 | |
| 4883 | if test "x$ac_pt_OCAMLOPT" = x; then |
| 4884 | OCAMLOPT="no" |
| 4885 | else |
| 4886 | case $cross_compiling:$ac_tool_warned in |
| 4887 | yes:) |
| 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4890 | ac_tool_warned=yes ;; |
| 4891 | esac |
| 4892 | OCAMLOPT=$ac_pt_OCAMLOPT |
| 4893 | fi |
| 4894 | else |
| 4895 | OCAMLOPT="$ac_cv_path_OCAMLOPT" |
| 4896 | fi |
| 4897 | |
| 4898 | OCAMLBEST=byte |
| 4899 | if test "$OCAMLOPT" = "no"; then |
| 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5 |
| 4901 | $as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;} |
| 4902 | else |
| 4903 | TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` |
| 4904 | if test "$TMPVERSION" != "$OCAMLVERSION" ; then |
| 4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5 |
| 4906 | $as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; } |
| 4907 | OCAMLOPT=no |
| 4908 | else |
| 4909 | OCAMLBEST=opt |
| 4910 | fi |
| 4911 | fi |
| 4912 | |
| 4913 | |
| 4914 | |
| 4915 | # checking for ocamlc.opt |
| 4916 | if test -n "$ac_tool_prefix"; then |
| 4917 | # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args. |
| 4918 | set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2 |
| 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4920 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4921 | if ${ac_cv_path_OCAMLCDOTOPT+:} false; then : |
| 4922 | $as_echo_n "(cached) " >&6 |
| 4923 | else |
| 4924 | case $OCAMLCDOTOPT in |
| 4925 | [\\/]* | ?:[\\/]*) |
| 4926 | ac_cv_path_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test with a path. |
| 4927 | ;; |
| 4928 | *) |
| 4929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4930 | for as_dir in $PATH |
| 4931 | do |
| 4932 | IFS=$as_save_IFS |
| 4933 | test -z "$as_dir" && as_dir=. |
| 4934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4936 | ac_cv_path_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4938 | break 2 |
| 4939 | fi |
| 4940 | done |
| 4941 | done |
| 4942 | IFS=$as_save_IFS |
| 4943 | |
| 4944 | ;; |
| 4945 | esac |
| 4946 | fi |
| 4947 | OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT |
| 4948 | if test -n "$OCAMLCDOTOPT"; then |
| 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5 |
| 4950 | $as_echo "$OCAMLCDOTOPT" >&6; } |
| 4951 | else |
| 4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4953 | $as_echo "no" >&6; } |
| 4954 | fi |
| 4955 | |
| 4956 | |
| 4957 | fi |
| 4958 | if test -z "$ac_cv_path_OCAMLCDOTOPT"; then |
| 4959 | ac_pt_OCAMLCDOTOPT=$OCAMLCDOTOPT |
| 4960 | # Extract the first word of "ocamlc.opt", so it can be a program name with args. |
| 4961 | set dummy ocamlc.opt; ac_word=$2 |
| 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4963 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4964 | if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then : |
| 4965 | $as_echo_n "(cached) " >&6 |
| 4966 | else |
| 4967 | case $ac_pt_OCAMLCDOTOPT in |
| 4968 | [\\/]* | ?:[\\/]*) |
| 4969 | ac_cv_path_ac_pt_OCAMLCDOTOPT="$ac_pt_OCAMLCDOTOPT" # Let the user override the test with a path. |
| 4970 | ;; |
| 4971 | *) |
| 4972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4973 | for as_dir in $PATH |
| 4974 | do |
| 4975 | IFS=$as_save_IFS |
| 4976 | test -z "$as_dir" && as_dir=. |
| 4977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4979 | ac_cv_path_ac_pt_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 4980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4981 | break 2 |
| 4982 | fi |
| 4983 | done |
| 4984 | done |
| 4985 | IFS=$as_save_IFS |
| 4986 | |
| 4987 | ;; |
| 4988 | esac |
| 4989 | fi |
| 4990 | ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT |
| 4991 | if test -n "$ac_pt_OCAMLCDOTOPT"; then |
| 4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLCDOTOPT" >&5 |
| 4993 | $as_echo "$ac_pt_OCAMLCDOTOPT" >&6; } |
| 4994 | else |
| 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4996 | $as_echo "no" >&6; } |
| 4997 | fi |
| 4998 | |
| 4999 | if test "x$ac_pt_OCAMLCDOTOPT" = x; then |
| 5000 | OCAMLCDOTOPT="no" |
| 5001 | else |
| 5002 | case $cross_compiling:$ac_tool_warned in |
| 5003 | yes:) |
| 5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5006 | ac_tool_warned=yes ;; |
| 5007 | esac |
| 5008 | OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT |
| 5009 | fi |
| 5010 | else |
| 5011 | OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT" |
| 5012 | fi |
| 5013 | |
| 5014 | if test "$OCAMLCDOTOPT" != "no"; then |
| 5015 | TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` |
| 5016 | if test "$TMPVERSION" != "$OCAMLVERSION" ; then |
| 5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5 |
| 5018 | $as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; } |
| 5019 | else |
| 5020 | OCAMLC=$OCAMLCDOTOPT |
| 5021 | fi |
| 5022 | fi |
| 5023 | |
| 5024 | # checking for ocamlopt.opt |
| 5025 | if test "$OCAMLOPT" != "no" ; then |
| 5026 | if test -n "$ac_tool_prefix"; then |
| 5027 | # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args. |
| 5028 | set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2 |
| 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5030 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5031 | if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then : |
| 5032 | $as_echo_n "(cached) " >&6 |
| 5033 | else |
| 5034 | case $OCAMLOPTDOTOPT in |
| 5035 | [\\/]* | ?:[\\/]*) |
| 5036 | ac_cv_path_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test with a path. |
| 5037 | ;; |
| 5038 | *) |
| 5039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5040 | for as_dir in $PATH |
| 5041 | do |
| 5042 | IFS=$as_save_IFS |
| 5043 | test -z "$as_dir" && as_dir=. |
| 5044 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5046 | ac_cv_path_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 5047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5048 | break 2 |
| 5049 | fi |
| 5050 | done |
| 5051 | done |
| 5052 | IFS=$as_save_IFS |
| 5053 | |
| 5054 | ;; |
| 5055 | esac |
| 5056 | fi |
| 5057 | OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT |
| 5058 | if test -n "$OCAMLOPTDOTOPT"; then |
| 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5 |
| 5060 | $as_echo "$OCAMLOPTDOTOPT" >&6; } |
| 5061 | else |
| 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5063 | $as_echo "no" >&6; } |
| 5064 | fi |
| 5065 | |
| 5066 | |
| 5067 | fi |
| 5068 | if test -z "$ac_cv_path_OCAMLOPTDOTOPT"; then |
| 5069 | ac_pt_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT |
| 5070 | # Extract the first word of "ocamlopt.opt", so it can be a program name with args. |
| 5071 | set dummy ocamlopt.opt; ac_word=$2 |
| 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5073 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5074 | if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then : |
| 5075 | $as_echo_n "(cached) " >&6 |
| 5076 | else |
| 5077 | case $ac_pt_OCAMLOPTDOTOPT in |
| 5078 | [\\/]* | ?:[\\/]*) |
| 5079 | ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$ac_pt_OCAMLOPTDOTOPT" # Let the user override the test with a path. |
| 5080 | ;; |
| 5081 | *) |
| 5082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5083 | for as_dir in $PATH |
| 5084 | do |
| 5085 | IFS=$as_save_IFS |
| 5086 | test -z "$as_dir" && as_dir=. |
| 5087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5089 | ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 5090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5091 | break 2 |
| 5092 | fi |
| 5093 | done |
| 5094 | done |
| 5095 | IFS=$as_save_IFS |
| 5096 | |
| 5097 | ;; |
| 5098 | esac |
| 5099 | fi |
| 5100 | ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT |
| 5101 | if test -n "$ac_pt_OCAMLOPTDOTOPT"; then |
| 5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPTDOTOPT" >&5 |
| 5103 | $as_echo "$ac_pt_OCAMLOPTDOTOPT" >&6; } |
| 5104 | else |
| 5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5106 | $as_echo "no" >&6; } |
| 5107 | fi |
| 5108 | |
| 5109 | if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then |
| 5110 | OCAMLOPTDOTOPT="no" |
| 5111 | else |
| 5112 | case $cross_compiling:$ac_tool_warned in |
| 5113 | yes:) |
| 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5116 | ac_tool_warned=yes ;; |
| 5117 | esac |
| 5118 | OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT |
| 5119 | fi |
| 5120 | else |
| 5121 | OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT" |
| 5122 | fi |
| 5123 | |
| 5124 | if test "$OCAMLOPTDOTOPT" != "no"; then |
| 5125 | TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` |
| 5126 | if test "$TMPVERSION" != "$OCAMLVERSION" ; then |
| 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5 |
| 5128 | $as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; } |
| 5129 | else |
| 5130 | OCAMLOPT=$OCAMLOPTDOTOPT |
| 5131 | fi |
| 5132 | fi |
| 5133 | fi |
| 5134 | |
| 5135 | |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | # checking for ocaml toplevel |
| 5141 | if test -n "$ac_tool_prefix"; then |
| 5142 | # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args. |
| 5143 | set dummy ${ac_tool_prefix}ocaml; ac_word=$2 |
| 5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5145 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5146 | if ${ac_cv_path_OCAML+:} false; then : |
| 5147 | $as_echo_n "(cached) " >&6 |
| 5148 | else |
| 5149 | case $OCAML in |
| 5150 | [\\/]* | ?:[\\/]*) |
| 5151 | ac_cv_path_OCAML="$OCAML" # Let the user override the test with a path. |
| 5152 | ;; |
| 5153 | *) |
| 5154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5155 | for as_dir in $PATH |
| 5156 | do |
| 5157 | IFS=$as_save_IFS |
| 5158 | test -z "$as_dir" && as_dir=. |
| 5159 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5161 | ac_cv_path_OCAML="$as_dir/$ac_word$ac_exec_ext" |
| 5162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5163 | break 2 |
| 5164 | fi |
| 5165 | done |
| 5166 | done |
| 5167 | IFS=$as_save_IFS |
| 5168 | |
| 5169 | ;; |
| 5170 | esac |
| 5171 | fi |
| 5172 | OCAML=$ac_cv_path_OCAML |
| 5173 | if test -n "$OCAML"; then |
| 5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5 |
| 5175 | $as_echo "$OCAML" >&6; } |
| 5176 | else |
| 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5178 | $as_echo "no" >&6; } |
| 5179 | fi |
| 5180 | |
| 5181 | |
| 5182 | fi |
| 5183 | if test -z "$ac_cv_path_OCAML"; then |
| 5184 | ac_pt_OCAML=$OCAML |
| 5185 | # Extract the first word of "ocaml", so it can be a program name with args. |
| 5186 | set dummy ocaml; ac_word=$2 |
| 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5188 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5189 | if ${ac_cv_path_ac_pt_OCAML+:} false; then : |
| 5190 | $as_echo_n "(cached) " >&6 |
| 5191 | else |
| 5192 | case $ac_pt_OCAML in |
| 5193 | [\\/]* | ?:[\\/]*) |
| 5194 | ac_cv_path_ac_pt_OCAML="$ac_pt_OCAML" # Let the user override the test with a path. |
| 5195 | ;; |
| 5196 | *) |
| 5197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5198 | for as_dir in $PATH |
| 5199 | do |
| 5200 | IFS=$as_save_IFS |
| 5201 | test -z "$as_dir" && as_dir=. |
| 5202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5204 | ac_cv_path_ac_pt_OCAML="$as_dir/$ac_word$ac_exec_ext" |
| 5205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5206 | break 2 |
| 5207 | fi |
| 5208 | done |
| 5209 | done |
| 5210 | IFS=$as_save_IFS |
| 5211 | |
| 5212 | ;; |
| 5213 | esac |
| 5214 | fi |
| 5215 | ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML |
| 5216 | if test -n "$ac_pt_OCAML"; then |
| 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAML" >&5 |
| 5218 | $as_echo "$ac_pt_OCAML" >&6; } |
| 5219 | else |
| 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5221 | $as_echo "no" >&6; } |
| 5222 | fi |
| 5223 | |
| 5224 | if test "x$ac_pt_OCAML" = x; then |
| 5225 | OCAML="no" |
| 5226 | else |
| 5227 | case $cross_compiling:$ac_tool_warned in |
| 5228 | yes:) |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5230 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5231 | ac_tool_warned=yes ;; |
| 5232 | esac |
| 5233 | OCAML=$ac_pt_OCAML |
| 5234 | fi |
| 5235 | else |
| 5236 | OCAML="$ac_cv_path_OCAML" |
| 5237 | fi |
| 5238 | |
| 5239 | |
| 5240 | # checking for ocamldep |
| 5241 | if test -n "$ac_tool_prefix"; then |
| 5242 | # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args. |
| 5243 | set dummy ${ac_tool_prefix}ocamldep; ac_word=$2 |
| 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5245 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5246 | if ${ac_cv_path_OCAMLDEP+:} false; then : |
| 5247 | $as_echo_n "(cached) " >&6 |
| 5248 | else |
| 5249 | case $OCAMLDEP in |
| 5250 | [\\/]* | ?:[\\/]*) |
| 5251 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 5252 | ;; |
| 5253 | *) |
| 5254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5255 | for as_dir in $PATH |
| 5256 | do |
| 5257 | IFS=$as_save_IFS |
| 5258 | test -z "$as_dir" && as_dir=. |
| 5259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5261 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 5262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5263 | break 2 |
| 5264 | fi |
| 5265 | done |
| 5266 | done |
| 5267 | IFS=$as_save_IFS |
| 5268 | |
| 5269 | ;; |
| 5270 | esac |
| 5271 | fi |
| 5272 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 5273 | if test -n "$OCAMLDEP"; then |
| 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5 |
| 5275 | $as_echo "$OCAMLDEP" >&6; } |
| 5276 | else |
| 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5278 | $as_echo "no" >&6; } |
| 5279 | fi |
| 5280 | |
| 5281 | |
| 5282 | fi |
| 5283 | if test -z "$ac_cv_path_OCAMLDEP"; then |
| 5284 | ac_pt_OCAMLDEP=$OCAMLDEP |
| 5285 | # Extract the first word of "ocamldep", so it can be a program name with args. |
| 5286 | set dummy ocamldep; ac_word=$2 |
| 5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5288 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5289 | if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then : |
| 5290 | $as_echo_n "(cached) " >&6 |
| 5291 | else |
| 5292 | case $ac_pt_OCAMLDEP in |
| 5293 | [\\/]* | ?:[\\/]*) |
| 5294 | ac_cv_path_ac_pt_OCAMLDEP="$ac_pt_OCAMLDEP" # Let the user override the test with a path. |
| 5295 | ;; |
| 5296 | *) |
| 5297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5298 | for as_dir in $PATH |
| 5299 | do |
| 5300 | IFS=$as_save_IFS |
| 5301 | test -z "$as_dir" && as_dir=. |
| 5302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5304 | ac_cv_path_ac_pt_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 5305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5306 | break 2 |
| 5307 | fi |
| 5308 | done |
| 5309 | done |
| 5310 | IFS=$as_save_IFS |
| 5311 | |
| 5312 | ;; |
| 5313 | esac |
| 5314 | fi |
| 5315 | ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP |
| 5316 | if test -n "$ac_pt_OCAMLDEP"; then |
| 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDEP" >&5 |
| 5318 | $as_echo "$ac_pt_OCAMLDEP" >&6; } |
| 5319 | else |
| 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5321 | $as_echo "no" >&6; } |
| 5322 | fi |
| 5323 | |
| 5324 | if test "x$ac_pt_OCAMLDEP" = x; then |
| 5325 | OCAMLDEP="no" |
| 5326 | else |
| 5327 | case $cross_compiling:$ac_tool_warned in |
| 5328 | yes:) |
| 5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5330 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5331 | ac_tool_warned=yes ;; |
| 5332 | esac |
| 5333 | OCAMLDEP=$ac_pt_OCAMLDEP |
| 5334 | fi |
| 5335 | else |
| 5336 | OCAMLDEP="$ac_cv_path_OCAMLDEP" |
| 5337 | fi |
| 5338 | |
| 5339 | |
| 5340 | # checking for ocamlmktop |
| 5341 | if test -n "$ac_tool_prefix"; then |
| 5342 | # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args. |
| 5343 | set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2 |
| 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5345 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5346 | if ${ac_cv_path_OCAMLMKTOP+:} false; then : |
| 5347 | $as_echo_n "(cached) " >&6 |
| 5348 | else |
| 5349 | case $OCAMLMKTOP in |
| 5350 | [\\/]* | ?:[\\/]*) |
| 5351 | ac_cv_path_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test with a path. |
| 5352 | ;; |
| 5353 | *) |
| 5354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5355 | for as_dir in $PATH |
| 5356 | do |
| 5357 | IFS=$as_save_IFS |
| 5358 | test -z "$as_dir" && as_dir=. |
| 5359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5361 | ac_cv_path_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext" |
| 5362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5363 | break 2 |
| 5364 | fi |
| 5365 | done |
| 5366 | done |
| 5367 | IFS=$as_save_IFS |
| 5368 | |
| 5369 | ;; |
| 5370 | esac |
| 5371 | fi |
| 5372 | OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP |
| 5373 | if test -n "$OCAMLMKTOP"; then |
| 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5 |
| 5375 | $as_echo "$OCAMLMKTOP" >&6; } |
| 5376 | else |
| 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5378 | $as_echo "no" >&6; } |
| 5379 | fi |
| 5380 | |
| 5381 | |
| 5382 | fi |
| 5383 | if test -z "$ac_cv_path_OCAMLMKTOP"; then |
| 5384 | ac_pt_OCAMLMKTOP=$OCAMLMKTOP |
| 5385 | # Extract the first word of "ocamlmktop", so it can be a program name with args. |
| 5386 | set dummy ocamlmktop; ac_word=$2 |
| 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5388 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5389 | if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then : |
| 5390 | $as_echo_n "(cached) " >&6 |
| 5391 | else |
| 5392 | case $ac_pt_OCAMLMKTOP in |
| 5393 | [\\/]* | ?:[\\/]*) |
| 5394 | ac_cv_path_ac_pt_OCAMLMKTOP="$ac_pt_OCAMLMKTOP" # Let the user override the test with a path. |
| 5395 | ;; |
| 5396 | *) |
| 5397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5398 | for as_dir in $PATH |
| 5399 | do |
| 5400 | IFS=$as_save_IFS |
| 5401 | test -z "$as_dir" && as_dir=. |
| 5402 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5404 | ac_cv_path_ac_pt_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext" |
| 5405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5406 | break 2 |
| 5407 | fi |
| 5408 | done |
| 5409 | done |
| 5410 | IFS=$as_save_IFS |
| 5411 | |
| 5412 | ;; |
| 5413 | esac |
| 5414 | fi |
| 5415 | ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP |
| 5416 | if test -n "$ac_pt_OCAMLMKTOP"; then |
| 5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKTOP" >&5 |
| 5418 | $as_echo "$ac_pt_OCAMLMKTOP" >&6; } |
| 5419 | else |
| 5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5421 | $as_echo "no" >&6; } |
| 5422 | fi |
| 5423 | |
| 5424 | if test "x$ac_pt_OCAMLMKTOP" = x; then |
| 5425 | OCAMLMKTOP="no" |
| 5426 | else |
| 5427 | case $cross_compiling:$ac_tool_warned in |
| 5428 | yes:) |
| 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5430 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5431 | ac_tool_warned=yes ;; |
| 5432 | esac |
| 5433 | OCAMLMKTOP=$ac_pt_OCAMLMKTOP |
| 5434 | fi |
| 5435 | else |
| 5436 | OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP" |
| 5437 | fi |
| 5438 | |
| 5439 | |
| 5440 | # checking for ocamlmklib |
| 5441 | if test -n "$ac_tool_prefix"; then |
| 5442 | # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args. |
| 5443 | set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2 |
| 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5445 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5446 | if ${ac_cv_path_OCAMLMKLIB+:} false; then : |
| 5447 | $as_echo_n "(cached) " >&6 |
| 5448 | else |
| 5449 | case $OCAMLMKLIB in |
| 5450 | [\\/]* | ?:[\\/]*) |
| 5451 | ac_cv_path_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test with a path. |
| 5452 | ;; |
| 5453 | *) |
| 5454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5455 | for as_dir in $PATH |
| 5456 | do |
| 5457 | IFS=$as_save_IFS |
| 5458 | test -z "$as_dir" && as_dir=. |
| 5459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5461 | ac_cv_path_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext" |
| 5462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5463 | break 2 |
| 5464 | fi |
| 5465 | done |
| 5466 | done |
| 5467 | IFS=$as_save_IFS |
| 5468 | |
| 5469 | ;; |
| 5470 | esac |
| 5471 | fi |
| 5472 | OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB |
| 5473 | if test -n "$OCAMLMKLIB"; then |
| 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5 |
| 5475 | $as_echo "$OCAMLMKLIB" >&6; } |
| 5476 | else |
| 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5478 | $as_echo "no" >&6; } |
| 5479 | fi |
| 5480 | |
| 5481 | |
| 5482 | fi |
| 5483 | if test -z "$ac_cv_path_OCAMLMKLIB"; then |
| 5484 | ac_pt_OCAMLMKLIB=$OCAMLMKLIB |
| 5485 | # Extract the first word of "ocamlmklib", so it can be a program name with args. |
| 5486 | set dummy ocamlmklib; ac_word=$2 |
| 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5488 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5489 | if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then : |
| 5490 | $as_echo_n "(cached) " >&6 |
| 5491 | else |
| 5492 | case $ac_pt_OCAMLMKLIB in |
| 5493 | [\\/]* | ?:[\\/]*) |
| 5494 | ac_cv_path_ac_pt_OCAMLMKLIB="$ac_pt_OCAMLMKLIB" # Let the user override the test with a path. |
| 5495 | ;; |
| 5496 | *) |
| 5497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5498 | for as_dir in $PATH |
| 5499 | do |
| 5500 | IFS=$as_save_IFS |
| 5501 | test -z "$as_dir" && as_dir=. |
| 5502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5503 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5504 | ac_cv_path_ac_pt_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext" |
| 5505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5506 | break 2 |
| 5507 | fi |
| 5508 | done |
| 5509 | done |
| 5510 | IFS=$as_save_IFS |
| 5511 | |
| 5512 | ;; |
| 5513 | esac |
| 5514 | fi |
| 5515 | ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB |
| 5516 | if test -n "$ac_pt_OCAMLMKLIB"; then |
| 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKLIB" >&5 |
| 5518 | $as_echo "$ac_pt_OCAMLMKLIB" >&6; } |
| 5519 | else |
| 5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5521 | $as_echo "no" >&6; } |
| 5522 | fi |
| 5523 | |
| 5524 | if test "x$ac_pt_OCAMLMKLIB" = x; then |
| 5525 | OCAMLMKLIB="no" |
| 5526 | else |
| 5527 | case $cross_compiling:$ac_tool_warned in |
| 5528 | yes:) |
| 5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5530 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5531 | ac_tool_warned=yes ;; |
| 5532 | esac |
| 5533 | OCAMLMKLIB=$ac_pt_OCAMLMKLIB |
| 5534 | fi |
| 5535 | else |
| 5536 | OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB" |
| 5537 | fi |
| 5538 | |
| 5539 | |
| 5540 | # checking for ocamldoc |
| 5541 | if test -n "$ac_tool_prefix"; then |
| 5542 | # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args. |
| 5543 | set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2 |
| 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5545 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5546 | if ${ac_cv_path_OCAMLDOC+:} false; then : |
| 5547 | $as_echo_n "(cached) " >&6 |
| 5548 | else |
| 5549 | case $OCAMLDOC in |
| 5550 | [\\/]* | ?:[\\/]*) |
| 5551 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 5552 | ;; |
| 5553 | *) |
| 5554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5555 | for as_dir in $PATH |
| 5556 | do |
| 5557 | IFS=$as_save_IFS |
| 5558 | test -z "$as_dir" && as_dir=. |
| 5559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5561 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 5562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5563 | break 2 |
| 5564 | fi |
| 5565 | done |
| 5566 | done |
| 5567 | IFS=$as_save_IFS |
| 5568 | |
| 5569 | ;; |
| 5570 | esac |
| 5571 | fi |
| 5572 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 5573 | if test -n "$OCAMLDOC"; then |
| 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5 |
| 5575 | $as_echo "$OCAMLDOC" >&6; } |
| 5576 | else |
| 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5578 | $as_echo "no" >&6; } |
| 5579 | fi |
| 5580 | |
| 5581 | |
| 5582 | fi |
| 5583 | if test -z "$ac_cv_path_OCAMLDOC"; then |
| 5584 | ac_pt_OCAMLDOC=$OCAMLDOC |
| 5585 | # Extract the first word of "ocamldoc", so it can be a program name with args. |
| 5586 | set dummy ocamldoc; ac_word=$2 |
| 5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5588 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5589 | if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then : |
| 5590 | $as_echo_n "(cached) " >&6 |
| 5591 | else |
| 5592 | case $ac_pt_OCAMLDOC in |
| 5593 | [\\/]* | ?:[\\/]*) |
| 5594 | ac_cv_path_ac_pt_OCAMLDOC="$ac_pt_OCAMLDOC" # Let the user override the test with a path. |
| 5595 | ;; |
| 5596 | *) |
| 5597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5598 | for as_dir in $PATH |
| 5599 | do |
| 5600 | IFS=$as_save_IFS |
| 5601 | test -z "$as_dir" && as_dir=. |
| 5602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5604 | ac_cv_path_ac_pt_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 5605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5606 | break 2 |
| 5607 | fi |
| 5608 | done |
| 5609 | done |
| 5610 | IFS=$as_save_IFS |
| 5611 | |
| 5612 | ;; |
| 5613 | esac |
| 5614 | fi |
| 5615 | ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC |
| 5616 | if test -n "$ac_pt_OCAMLDOC"; then |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDOC" >&5 |
| 5618 | $as_echo "$ac_pt_OCAMLDOC" >&6; } |
| 5619 | else |
| 5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5621 | $as_echo "no" >&6; } |
| 5622 | fi |
| 5623 | |
| 5624 | if test "x$ac_pt_OCAMLDOC" = x; then |
| 5625 | OCAMLDOC="no" |
| 5626 | else |
| 5627 | case $cross_compiling:$ac_tool_warned in |
| 5628 | yes:) |
| 5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5630 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5631 | ac_tool_warned=yes ;; |
| 5632 | esac |
| 5633 | OCAMLDOC=$ac_pt_OCAMLDOC |
| 5634 | fi |
| 5635 | else |
| 5636 | OCAMLDOC="$ac_cv_path_OCAMLDOC" |
| 5637 | fi |
| 5638 | |
| 5639 | |
| 5640 | # checking for ocamlbuild |
| 5641 | if test -n "$ac_tool_prefix"; then |
| 5642 | # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args. |
| 5643 | set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2 |
| 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5645 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5646 | if ${ac_cv_path_OCAMLBUILD+:} false; then : |
| 5647 | $as_echo_n "(cached) " >&6 |
| 5648 | else |
| 5649 | case $OCAMLBUILD in |
| 5650 | [\\/]* | ?:[\\/]*) |
| 5651 | ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path. |
| 5652 | ;; |
| 5653 | *) |
| 5654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5655 | for as_dir in $PATH |
| 5656 | do |
| 5657 | IFS=$as_save_IFS |
| 5658 | test -z "$as_dir" && as_dir=. |
| 5659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5661 | ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext" |
| 5662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5663 | break 2 |
| 5664 | fi |
| 5665 | done |
| 5666 | done |
| 5667 | IFS=$as_save_IFS |
| 5668 | |
| 5669 | ;; |
| 5670 | esac |
| 5671 | fi |
| 5672 | OCAMLBUILD=$ac_cv_path_OCAMLBUILD |
| 5673 | if test -n "$OCAMLBUILD"; then |
| 5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 |
| 5675 | $as_echo "$OCAMLBUILD" >&6; } |
| 5676 | else |
| 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5678 | $as_echo "no" >&6; } |
| 5679 | fi |
| 5680 | |
| 5681 | |
| 5682 | fi |
| 5683 | if test -z "$ac_cv_path_OCAMLBUILD"; then |
| 5684 | ac_pt_OCAMLBUILD=$OCAMLBUILD |
| 5685 | # Extract the first word of "ocamlbuild", so it can be a program name with args. |
| 5686 | set dummy ocamlbuild; ac_word=$2 |
| 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5688 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5689 | if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then : |
| 5690 | $as_echo_n "(cached) " >&6 |
| 5691 | else |
| 5692 | case $ac_pt_OCAMLBUILD in |
| 5693 | [\\/]* | ?:[\\/]*) |
| 5694 | ac_cv_path_ac_pt_OCAMLBUILD="$ac_pt_OCAMLBUILD" # Let the user override the test with a path. |
| 5695 | ;; |
| 5696 | *) |
| 5697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5698 | for as_dir in $PATH |
| 5699 | do |
| 5700 | IFS=$as_save_IFS |
| 5701 | test -z "$as_dir" && as_dir=. |
| 5702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5704 | ac_cv_path_ac_pt_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext" |
| 5705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5706 | break 2 |
| 5707 | fi |
| 5708 | done |
| 5709 | done |
| 5710 | IFS=$as_save_IFS |
| 5711 | |
| 5712 | ;; |
| 5713 | esac |
| 5714 | fi |
| 5715 | ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD |
| 5716 | if test -n "$ac_pt_OCAMLBUILD"; then |
| 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLBUILD" >&5 |
| 5718 | $as_echo "$ac_pt_OCAMLBUILD" >&6; } |
| 5719 | else |
| 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5721 | $as_echo "no" >&6; } |
| 5722 | fi |
| 5723 | |
| 5724 | if test "x$ac_pt_OCAMLBUILD" = x; then |
| 5725 | OCAMLBUILD="no" |
| 5726 | else |
| 5727 | case $cross_compiling:$ac_tool_warned in |
| 5728 | yes:) |
| 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5731 | ac_tool_warned=yes ;; |
| 5732 | esac |
| 5733 | OCAMLBUILD=$ac_pt_OCAMLBUILD |
| 5734 | fi |
| 5735 | else |
| 5736 | OCAMLBUILD="$ac_cv_path_OCAMLBUILD" |
| 5737 | fi |
| 5738 | |
| 5739 | |
| 5740 | { versioncheck=; unset versioncheck;} |
| 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.10" >&5 |
| 5742 | $as_echo_n "checking that the OCaml version is at least 3.10... " >&6; } |
| 5743 | as_arg_v1=$OCAMLVERSION |
| 5744 | as_arg_v2=3.10 |
| 5745 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
| 5746 | case $? in #( |
| 5747 | 1) : |
| 5748 | versioncheck=no ;; #( |
| 5749 | 0) : |
| 5750 | versioncheck=yes ;; #( |
| 5751 | 2) : |
| 5752 | versioncheck=yes ;; #( |
| 5753 | *) : |
| 5754 | ;; |
| 5755 | esac |
| 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5 |
| 5757 | $as_echo "$versioncheck" >&6; } |
| 5758 | OCAMLATLEAST310=$versioncheck |
| 5759 | |
| 5760 | |
| 5761 | { versioncheck=; unset versioncheck;} |
| 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.11" >&5 |
| 5763 | $as_echo_n "checking that the OCaml version is at least 3.11... " >&6; } |
| 5764 | as_arg_v1=$OCAMLVERSION |
| 5765 | as_arg_v2=3.11 |
| 5766 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
| 5767 | case $? in #( |
| 5768 | 1) : |
| 5769 | versioncheck=no ;; #( |
| 5770 | 0) : |
| 5771 | versioncheck=yes ;; #( |
| 5772 | 2) : |
| 5773 | versioncheck=yes ;; #( |
| 5774 | *) : |
| 5775 | ;; |
| 5776 | esac |
| 5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5 |
| 5778 | $as_echo "$versioncheck" >&6; } |
| 5779 | OCAMLATLEAST311=$versioncheck |
| 5780 | |
| 5781 | |
| 5782 | OCAMLCORIG="$OCAMLC" |
| 5783 | |
| 5784 | |
| 5785 | if test "x$OCAMLC" = xno -o "x$OCAMLDEP" = xno -o "x$OCAMLDOC" = xno -o "x$OCAMLMKLIB" = xno; then : |
| 5786 | as_fn_error $? "You must install the OCaml compiler" "$LINENO" 5 |
| 5787 | |
| 5788 | fi |
| 5789 | if test "x$OCAMLATLEAST310" = xno; then : |
| 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: a more recent OCaml installation may be required" >&5 |
| 5791 | $as_echo "$as_me: a more recent OCaml installation may be required" >&6;} |
| 5792 | fi |
| 5793 | |
| 5794 | |
| 5795 | # checking for camlp4 |
| 5796 | if test -n "$ac_tool_prefix"; then |
| 5797 | # Extract the first word of "${ac_tool_prefix}camlp4", so it can be a program name with args. |
| 5798 | set dummy ${ac_tool_prefix}camlp4; ac_word=$2 |
| 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5800 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5801 | if ${ac_cv_path_CAMLP4+:} false; then : |
| 5802 | $as_echo_n "(cached) " >&6 |
| 5803 | else |
| 5804 | case $CAMLP4 in |
| 5805 | [\\/]* | ?:[\\/]*) |
| 5806 | ac_cv_path_CAMLP4="$CAMLP4" # Let the user override the test with a path. |
| 5807 | ;; |
| 5808 | *) |
| 5809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5810 | for as_dir in $PATH |
| 5811 | do |
| 5812 | IFS=$as_save_IFS |
| 5813 | test -z "$as_dir" && as_dir=. |
| 5814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5816 | ac_cv_path_CAMLP4="$as_dir/$ac_word$ac_exec_ext" |
| 5817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5818 | break 2 |
| 5819 | fi |
| 5820 | done |
| 5821 | done |
| 5822 | IFS=$as_save_IFS |
| 5823 | |
| 5824 | ;; |
| 5825 | esac |
| 5826 | fi |
| 5827 | CAMLP4=$ac_cv_path_CAMLP4 |
| 5828 | if test -n "$CAMLP4"; then |
| 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5 |
| 5830 | $as_echo "$CAMLP4" >&6; } |
| 5831 | else |
| 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5833 | $as_echo "no" >&6; } |
| 5834 | fi |
| 5835 | |
| 5836 | |
| 5837 | fi |
| 5838 | if test -z "$ac_cv_path_CAMLP4"; then |
| 5839 | ac_pt_CAMLP4=$CAMLP4 |
| 5840 | # Extract the first word of "camlp4", so it can be a program name with args. |
| 5841 | set dummy camlp4; ac_word=$2 |
| 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5843 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5844 | if ${ac_cv_path_ac_pt_CAMLP4+:} false; then : |
| 5845 | $as_echo_n "(cached) " >&6 |
| 5846 | else |
| 5847 | case $ac_pt_CAMLP4 in |
| 5848 | [\\/]* | ?:[\\/]*) |
| 5849 | ac_cv_path_ac_pt_CAMLP4="$ac_pt_CAMLP4" # Let the user override the test with a path. |
| 5850 | ;; |
| 5851 | *) |
| 5852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5853 | for as_dir in $PATH |
| 5854 | do |
| 5855 | IFS=$as_save_IFS |
| 5856 | test -z "$as_dir" && as_dir=. |
| 5857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5859 | ac_cv_path_ac_pt_CAMLP4="$as_dir/$ac_word$ac_exec_ext" |
| 5860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5861 | break 2 |
| 5862 | fi |
| 5863 | done |
| 5864 | done |
| 5865 | IFS=$as_save_IFS |
| 5866 | |
| 5867 | ;; |
| 5868 | esac |
| 5869 | fi |
| 5870 | ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4 |
| 5871 | if test -n "$ac_pt_CAMLP4"; then |
| 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4" >&5 |
| 5873 | $as_echo "$ac_pt_CAMLP4" >&6; } |
| 5874 | else |
| 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5876 | $as_echo "no" >&6; } |
| 5877 | fi |
| 5878 | |
| 5879 | if test "x$ac_pt_CAMLP4" = x; then |
| 5880 | CAMLP4="no" |
| 5881 | else |
| 5882 | case $cross_compiling:$ac_tool_warned in |
| 5883 | yes:) |
| 5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5885 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5886 | ac_tool_warned=yes ;; |
| 5887 | esac |
| 5888 | CAMLP4=$ac_pt_CAMLP4 |
| 5889 | fi |
| 5890 | else |
| 5891 | CAMLP4="$ac_cv_path_CAMLP4" |
| 5892 | fi |
| 5893 | |
| 5894 | if test "$CAMLP4" != "no"; then |
| 5895 | TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'` |
| 5896 | if test "$TMPVERSION" != "$OCAMLVERSION" ; then |
| 5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc" >&5 |
| 5898 | $as_echo "versions differs from ocamlc" >&6; } |
| 5899 | CAMLP4=no |
| 5900 | fi |
| 5901 | fi |
| 5902 | |
| 5903 | |
| 5904 | # checking for companion tools |
| 5905 | if test -n "$ac_tool_prefix"; then |
| 5906 | # Extract the first word of "${ac_tool_prefix}camlp4boot", so it can be a program name with args. |
| 5907 | set dummy ${ac_tool_prefix}camlp4boot; ac_word=$2 |
| 5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5909 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5910 | if ${ac_cv_path_CAMLP4BOOT+:} false; then : |
| 5911 | $as_echo_n "(cached) " >&6 |
| 5912 | else |
| 5913 | case $CAMLP4BOOT in |
| 5914 | [\\/]* | ?:[\\/]*) |
| 5915 | ac_cv_path_CAMLP4BOOT="$CAMLP4BOOT" # Let the user override the test with a path. |
| 5916 | ;; |
| 5917 | *) |
| 5918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5919 | for as_dir in $PATH |
| 5920 | do |
| 5921 | IFS=$as_save_IFS |
| 5922 | test -z "$as_dir" && as_dir=. |
| 5923 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5925 | ac_cv_path_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext" |
| 5926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5927 | break 2 |
| 5928 | fi |
| 5929 | done |
| 5930 | done |
| 5931 | IFS=$as_save_IFS |
| 5932 | |
| 5933 | ;; |
| 5934 | esac |
| 5935 | fi |
| 5936 | CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT |
| 5937 | if test -n "$CAMLP4BOOT"; then |
| 5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5 |
| 5939 | $as_echo "$CAMLP4BOOT" >&6; } |
| 5940 | else |
| 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5942 | $as_echo "no" >&6; } |
| 5943 | fi |
| 5944 | |
| 5945 | |
| 5946 | fi |
| 5947 | if test -z "$ac_cv_path_CAMLP4BOOT"; then |
| 5948 | ac_pt_CAMLP4BOOT=$CAMLP4BOOT |
| 5949 | # Extract the first word of "camlp4boot", so it can be a program name with args. |
| 5950 | set dummy camlp4boot; ac_word=$2 |
| 5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5952 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5953 | if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then : |
| 5954 | $as_echo_n "(cached) " >&6 |
| 5955 | else |
| 5956 | case $ac_pt_CAMLP4BOOT in |
| 5957 | [\\/]* | ?:[\\/]*) |
| 5958 | ac_cv_path_ac_pt_CAMLP4BOOT="$ac_pt_CAMLP4BOOT" # Let the user override the test with a path. |
| 5959 | ;; |
| 5960 | *) |
| 5961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5962 | for as_dir in $PATH |
| 5963 | do |
| 5964 | IFS=$as_save_IFS |
| 5965 | test -z "$as_dir" && as_dir=. |
| 5966 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5968 | ac_cv_path_ac_pt_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext" |
| 5969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5970 | break 2 |
| 5971 | fi |
| 5972 | done |
| 5973 | done |
| 5974 | IFS=$as_save_IFS |
| 5975 | |
| 5976 | ;; |
| 5977 | esac |
| 5978 | fi |
| 5979 | ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT |
| 5980 | if test -n "$ac_pt_CAMLP4BOOT"; then |
| 5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4BOOT" >&5 |
| 5982 | $as_echo "$ac_pt_CAMLP4BOOT" >&6; } |
| 5983 | else |
| 5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5985 | $as_echo "no" >&6; } |
| 5986 | fi |
| 5987 | |
| 5988 | if test "x$ac_pt_CAMLP4BOOT" = x; then |
| 5989 | CAMLP4BOOT="no" |
| 5990 | else |
| 5991 | case $cross_compiling:$ac_tool_warned in |
| 5992 | yes:) |
| 5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5994 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5995 | ac_tool_warned=yes ;; |
| 5996 | esac |
| 5997 | CAMLP4BOOT=$ac_pt_CAMLP4BOOT |
| 5998 | fi |
| 5999 | else |
| 6000 | CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT" |
| 6001 | fi |
| 6002 | |
| 6003 | if test -n "$ac_tool_prefix"; then |
| 6004 | # Extract the first word of "${ac_tool_prefix}camlp4o", so it can be a program name with args. |
| 6005 | set dummy ${ac_tool_prefix}camlp4o; ac_word=$2 |
| 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6007 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6008 | if ${ac_cv_path_CAMLP4O+:} false; then : |
| 6009 | $as_echo_n "(cached) " >&6 |
| 6010 | else |
| 6011 | case $CAMLP4O in |
| 6012 | [\\/]* | ?:[\\/]*) |
| 6013 | ac_cv_path_CAMLP4O="$CAMLP4O" # Let the user override the test with a path. |
| 6014 | ;; |
| 6015 | *) |
| 6016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6017 | for as_dir in $PATH |
| 6018 | do |
| 6019 | IFS=$as_save_IFS |
| 6020 | test -z "$as_dir" && as_dir=. |
| 6021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6023 | ac_cv_path_CAMLP4O="$as_dir/$ac_word$ac_exec_ext" |
| 6024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6025 | break 2 |
| 6026 | fi |
| 6027 | done |
| 6028 | done |
| 6029 | IFS=$as_save_IFS |
| 6030 | |
| 6031 | ;; |
| 6032 | esac |
| 6033 | fi |
| 6034 | CAMLP4O=$ac_cv_path_CAMLP4O |
| 6035 | if test -n "$CAMLP4O"; then |
| 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5 |
| 6037 | $as_echo "$CAMLP4O" >&6; } |
| 6038 | else |
| 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6040 | $as_echo "no" >&6; } |
| 6041 | fi |
| 6042 | |
| 6043 | |
| 6044 | fi |
| 6045 | if test -z "$ac_cv_path_CAMLP4O"; then |
| 6046 | ac_pt_CAMLP4O=$CAMLP4O |
| 6047 | # Extract the first word of "camlp4o", so it can be a program name with args. |
| 6048 | set dummy camlp4o; ac_word=$2 |
| 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6050 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6051 | if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then : |
| 6052 | $as_echo_n "(cached) " >&6 |
| 6053 | else |
| 6054 | case $ac_pt_CAMLP4O in |
| 6055 | [\\/]* | ?:[\\/]*) |
| 6056 | ac_cv_path_ac_pt_CAMLP4O="$ac_pt_CAMLP4O" # Let the user override the test with a path. |
| 6057 | ;; |
| 6058 | *) |
| 6059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6060 | for as_dir in $PATH |
| 6061 | do |
| 6062 | IFS=$as_save_IFS |
| 6063 | test -z "$as_dir" && as_dir=. |
| 6064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6066 | ac_cv_path_ac_pt_CAMLP4O="$as_dir/$ac_word$ac_exec_ext" |
| 6067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6068 | break 2 |
| 6069 | fi |
| 6070 | done |
| 6071 | done |
| 6072 | IFS=$as_save_IFS |
| 6073 | |
| 6074 | ;; |
| 6075 | esac |
| 6076 | fi |
| 6077 | ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O |
| 6078 | if test -n "$ac_pt_CAMLP4O"; then |
| 6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4O" >&5 |
| 6080 | $as_echo "$ac_pt_CAMLP4O" >&6; } |
| 6081 | else |
| 6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6083 | $as_echo "no" >&6; } |
| 6084 | fi |
| 6085 | |
| 6086 | if test "x$ac_pt_CAMLP4O" = x; then |
| 6087 | CAMLP4O="no" |
| 6088 | else |
| 6089 | case $cross_compiling:$ac_tool_warned in |
| 6090 | yes:) |
| 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6092 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6093 | ac_tool_warned=yes ;; |
| 6094 | esac |
| 6095 | CAMLP4O=$ac_pt_CAMLP4O |
| 6096 | fi |
| 6097 | else |
| 6098 | CAMLP4O="$ac_cv_path_CAMLP4O" |
| 6099 | fi |
| 6100 | |
| 6101 | if test -n "$ac_tool_prefix"; then |
| 6102 | # Extract the first word of "${ac_tool_prefix}camlp4of", so it can be a program name with args. |
| 6103 | set dummy ${ac_tool_prefix}camlp4of; ac_word=$2 |
| 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6105 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6106 | if ${ac_cv_path_CAMLP4OF+:} false; then : |
| 6107 | $as_echo_n "(cached) " >&6 |
| 6108 | else |
| 6109 | case $CAMLP4OF in |
| 6110 | [\\/]* | ?:[\\/]*) |
| 6111 | ac_cv_path_CAMLP4OF="$CAMLP4OF" # Let the user override the test with a path. |
| 6112 | ;; |
| 6113 | *) |
| 6114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6115 | for as_dir in $PATH |
| 6116 | do |
| 6117 | IFS=$as_save_IFS |
| 6118 | test -z "$as_dir" && as_dir=. |
| 6119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6121 | ac_cv_path_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext" |
| 6122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6123 | break 2 |
| 6124 | fi |
| 6125 | done |
| 6126 | done |
| 6127 | IFS=$as_save_IFS |
| 6128 | |
| 6129 | ;; |
| 6130 | esac |
| 6131 | fi |
| 6132 | CAMLP4OF=$ac_cv_path_CAMLP4OF |
| 6133 | if test -n "$CAMLP4OF"; then |
| 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5 |
| 6135 | $as_echo "$CAMLP4OF" >&6; } |
| 6136 | else |
| 6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6138 | $as_echo "no" >&6; } |
| 6139 | fi |
| 6140 | |
| 6141 | |
| 6142 | fi |
| 6143 | if test -z "$ac_cv_path_CAMLP4OF"; then |
| 6144 | ac_pt_CAMLP4OF=$CAMLP4OF |
| 6145 | # Extract the first word of "camlp4of", so it can be a program name with args. |
| 6146 | set dummy camlp4of; ac_word=$2 |
| 6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6148 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6149 | if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then : |
| 6150 | $as_echo_n "(cached) " >&6 |
| 6151 | else |
| 6152 | case $ac_pt_CAMLP4OF in |
| 6153 | [\\/]* | ?:[\\/]*) |
| 6154 | ac_cv_path_ac_pt_CAMLP4OF="$ac_pt_CAMLP4OF" # Let the user override the test with a path. |
| 6155 | ;; |
| 6156 | *) |
| 6157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6158 | for as_dir in $PATH |
| 6159 | do |
| 6160 | IFS=$as_save_IFS |
| 6161 | test -z "$as_dir" && as_dir=. |
| 6162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6164 | ac_cv_path_ac_pt_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext" |
| 6165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6166 | break 2 |
| 6167 | fi |
| 6168 | done |
| 6169 | done |
| 6170 | IFS=$as_save_IFS |
| 6171 | |
| 6172 | ;; |
| 6173 | esac |
| 6174 | fi |
| 6175 | ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF |
| 6176 | if test -n "$ac_pt_CAMLP4OF"; then |
| 6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OF" >&5 |
| 6178 | $as_echo "$ac_pt_CAMLP4OF" >&6; } |
| 6179 | else |
| 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6181 | $as_echo "no" >&6; } |
| 6182 | fi |
| 6183 | |
| 6184 | if test "x$ac_pt_CAMLP4OF" = x; then |
| 6185 | CAMLP4OF="no" |
| 6186 | else |
| 6187 | case $cross_compiling:$ac_tool_warned in |
| 6188 | yes:) |
| 6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6190 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6191 | ac_tool_warned=yes ;; |
| 6192 | esac |
| 6193 | CAMLP4OF=$ac_pt_CAMLP4OF |
| 6194 | fi |
| 6195 | else |
| 6196 | CAMLP4OF="$ac_cv_path_CAMLP4OF" |
| 6197 | fi |
| 6198 | |
| 6199 | if test -n "$ac_tool_prefix"; then |
| 6200 | # Extract the first word of "${ac_tool_prefix}camlp4oof", so it can be a program name with args. |
| 6201 | set dummy ${ac_tool_prefix}camlp4oof; ac_word=$2 |
| 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6203 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6204 | if ${ac_cv_path_CAMLP4OOF+:} false; then : |
| 6205 | $as_echo_n "(cached) " >&6 |
| 6206 | else |
| 6207 | case $CAMLP4OOF in |
| 6208 | [\\/]* | ?:[\\/]*) |
| 6209 | ac_cv_path_CAMLP4OOF="$CAMLP4OOF" # Let the user override the test with a path. |
| 6210 | ;; |
| 6211 | *) |
| 6212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6213 | for as_dir in $PATH |
| 6214 | do |
| 6215 | IFS=$as_save_IFS |
| 6216 | test -z "$as_dir" && as_dir=. |
| 6217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6219 | ac_cv_path_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext" |
| 6220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6221 | break 2 |
| 6222 | fi |
| 6223 | done |
| 6224 | done |
| 6225 | IFS=$as_save_IFS |
| 6226 | |
| 6227 | ;; |
| 6228 | esac |
| 6229 | fi |
| 6230 | CAMLP4OOF=$ac_cv_path_CAMLP4OOF |
| 6231 | if test -n "$CAMLP4OOF"; then |
| 6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5 |
| 6233 | $as_echo "$CAMLP4OOF" >&6; } |
| 6234 | else |
| 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6236 | $as_echo "no" >&6; } |
| 6237 | fi |
| 6238 | |
| 6239 | |
| 6240 | fi |
| 6241 | if test -z "$ac_cv_path_CAMLP4OOF"; then |
| 6242 | ac_pt_CAMLP4OOF=$CAMLP4OOF |
| 6243 | # Extract the first word of "camlp4oof", so it can be a program name with args. |
| 6244 | set dummy camlp4oof; ac_word=$2 |
| 6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6246 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6247 | if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then : |
| 6248 | $as_echo_n "(cached) " >&6 |
| 6249 | else |
| 6250 | case $ac_pt_CAMLP4OOF in |
| 6251 | [\\/]* | ?:[\\/]*) |
| 6252 | ac_cv_path_ac_pt_CAMLP4OOF="$ac_pt_CAMLP4OOF" # Let the user override the test with a path. |
| 6253 | ;; |
| 6254 | *) |
| 6255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6256 | for as_dir in $PATH |
| 6257 | do |
| 6258 | IFS=$as_save_IFS |
| 6259 | test -z "$as_dir" && as_dir=. |
| 6260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6262 | ac_cv_path_ac_pt_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext" |
| 6263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6264 | break 2 |
| 6265 | fi |
| 6266 | done |
| 6267 | done |
| 6268 | IFS=$as_save_IFS |
| 6269 | |
| 6270 | ;; |
| 6271 | esac |
| 6272 | fi |
| 6273 | ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF |
| 6274 | if test -n "$ac_pt_CAMLP4OOF"; then |
| 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OOF" >&5 |
| 6276 | $as_echo "$ac_pt_CAMLP4OOF" >&6; } |
| 6277 | else |
| 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6279 | $as_echo "no" >&6; } |
| 6280 | fi |
| 6281 | |
| 6282 | if test "x$ac_pt_CAMLP4OOF" = x; then |
| 6283 | CAMLP4OOF="no" |
| 6284 | else |
| 6285 | case $cross_compiling:$ac_tool_warned in |
| 6286 | yes:) |
| 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6288 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6289 | ac_tool_warned=yes ;; |
| 6290 | esac |
| 6291 | CAMLP4OOF=$ac_pt_CAMLP4OOF |
| 6292 | fi |
| 6293 | else |
| 6294 | CAMLP4OOF="$ac_cv_path_CAMLP4OOF" |
| 6295 | fi |
| 6296 | |
| 6297 | if test -n "$ac_tool_prefix"; then |
| 6298 | # Extract the first word of "${ac_tool_prefix}camlp4orf", so it can be a program name with args. |
| 6299 | set dummy ${ac_tool_prefix}camlp4orf; ac_word=$2 |
| 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6301 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6302 | if ${ac_cv_path_CAMLP4ORF+:} false; then : |
| 6303 | $as_echo_n "(cached) " >&6 |
| 6304 | else |
| 6305 | case $CAMLP4ORF in |
| 6306 | [\\/]* | ?:[\\/]*) |
| 6307 | ac_cv_path_CAMLP4ORF="$CAMLP4ORF" # Let the user override the test with a path. |
| 6308 | ;; |
| 6309 | *) |
| 6310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6311 | for as_dir in $PATH |
| 6312 | do |
| 6313 | IFS=$as_save_IFS |
| 6314 | test -z "$as_dir" && as_dir=. |
| 6315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6317 | ac_cv_path_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext" |
| 6318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6319 | break 2 |
| 6320 | fi |
| 6321 | done |
| 6322 | done |
| 6323 | IFS=$as_save_IFS |
| 6324 | |
| 6325 | ;; |
| 6326 | esac |
| 6327 | fi |
| 6328 | CAMLP4ORF=$ac_cv_path_CAMLP4ORF |
| 6329 | if test -n "$CAMLP4ORF"; then |
| 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5 |
| 6331 | $as_echo "$CAMLP4ORF" >&6; } |
| 6332 | else |
| 6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6334 | $as_echo "no" >&6; } |
| 6335 | fi |
| 6336 | |
| 6337 | |
| 6338 | fi |
| 6339 | if test -z "$ac_cv_path_CAMLP4ORF"; then |
| 6340 | ac_pt_CAMLP4ORF=$CAMLP4ORF |
| 6341 | # Extract the first word of "camlp4orf", so it can be a program name with args. |
| 6342 | set dummy camlp4orf; ac_word=$2 |
| 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6344 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6345 | if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then : |
| 6346 | $as_echo_n "(cached) " >&6 |
| 6347 | else |
| 6348 | case $ac_pt_CAMLP4ORF in |
| 6349 | [\\/]* | ?:[\\/]*) |
| 6350 | ac_cv_path_ac_pt_CAMLP4ORF="$ac_pt_CAMLP4ORF" # Let the user override the test with a path. |
| 6351 | ;; |
| 6352 | *) |
| 6353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6354 | for as_dir in $PATH |
| 6355 | do |
| 6356 | IFS=$as_save_IFS |
| 6357 | test -z "$as_dir" && as_dir=. |
| 6358 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6360 | ac_cv_path_ac_pt_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext" |
| 6361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6362 | break 2 |
| 6363 | fi |
| 6364 | done |
| 6365 | done |
| 6366 | IFS=$as_save_IFS |
| 6367 | |
| 6368 | ;; |
| 6369 | esac |
| 6370 | fi |
| 6371 | ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF |
| 6372 | if test -n "$ac_pt_CAMLP4ORF"; then |
| 6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4ORF" >&5 |
| 6374 | $as_echo "$ac_pt_CAMLP4ORF" >&6; } |
| 6375 | else |
| 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6377 | $as_echo "no" >&6; } |
| 6378 | fi |
| 6379 | |
| 6380 | if test "x$ac_pt_CAMLP4ORF" = x; then |
| 6381 | CAMLP4ORF="no" |
| 6382 | else |
| 6383 | case $cross_compiling:$ac_tool_warned in |
| 6384 | yes:) |
| 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6386 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6387 | ac_tool_warned=yes ;; |
| 6388 | esac |
| 6389 | CAMLP4ORF=$ac_pt_CAMLP4ORF |
| 6390 | fi |
| 6391 | else |
| 6392 | CAMLP4ORF="$ac_cv_path_CAMLP4ORF" |
| 6393 | fi |
| 6394 | |
| 6395 | if test -n "$ac_tool_prefix"; then |
| 6396 | # Extract the first word of "${ac_tool_prefix}camlp4prof", so it can be a program name with args. |
| 6397 | set dummy ${ac_tool_prefix}camlp4prof; ac_word=$2 |
| 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6399 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6400 | if ${ac_cv_path_CAMLP4PROF+:} false; then : |
| 6401 | $as_echo_n "(cached) " >&6 |
| 6402 | else |
| 6403 | case $CAMLP4PROF in |
| 6404 | [\\/]* | ?:[\\/]*) |
| 6405 | ac_cv_path_CAMLP4PROF="$CAMLP4PROF" # Let the user override the test with a path. |
| 6406 | ;; |
| 6407 | *) |
| 6408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6409 | for as_dir in $PATH |
| 6410 | do |
| 6411 | IFS=$as_save_IFS |
| 6412 | test -z "$as_dir" && as_dir=. |
| 6413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6415 | ac_cv_path_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext" |
| 6416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6417 | break 2 |
| 6418 | fi |
| 6419 | done |
| 6420 | done |
| 6421 | IFS=$as_save_IFS |
| 6422 | |
| 6423 | ;; |
| 6424 | esac |
| 6425 | fi |
| 6426 | CAMLP4PROF=$ac_cv_path_CAMLP4PROF |
| 6427 | if test -n "$CAMLP4PROF"; then |
| 6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5 |
| 6429 | $as_echo "$CAMLP4PROF" >&6; } |
| 6430 | else |
| 6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6432 | $as_echo "no" >&6; } |
| 6433 | fi |
| 6434 | |
| 6435 | |
| 6436 | fi |
| 6437 | if test -z "$ac_cv_path_CAMLP4PROF"; then |
| 6438 | ac_pt_CAMLP4PROF=$CAMLP4PROF |
| 6439 | # Extract the first word of "camlp4prof", so it can be a program name with args. |
| 6440 | set dummy camlp4prof; ac_word=$2 |
| 6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6442 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6443 | if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then : |
| 6444 | $as_echo_n "(cached) " >&6 |
| 6445 | else |
| 6446 | case $ac_pt_CAMLP4PROF in |
| 6447 | [\\/]* | ?:[\\/]*) |
| 6448 | ac_cv_path_ac_pt_CAMLP4PROF="$ac_pt_CAMLP4PROF" # Let the user override the test with a path. |
| 6449 | ;; |
| 6450 | *) |
| 6451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6452 | for as_dir in $PATH |
| 6453 | do |
| 6454 | IFS=$as_save_IFS |
| 6455 | test -z "$as_dir" && as_dir=. |
| 6456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6458 | ac_cv_path_ac_pt_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext" |
| 6459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6460 | break 2 |
| 6461 | fi |
| 6462 | done |
| 6463 | done |
| 6464 | IFS=$as_save_IFS |
| 6465 | |
| 6466 | ;; |
| 6467 | esac |
| 6468 | fi |
| 6469 | ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF |
| 6470 | if test -n "$ac_pt_CAMLP4PROF"; then |
| 6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4PROF" >&5 |
| 6472 | $as_echo "$ac_pt_CAMLP4PROF" >&6; } |
| 6473 | else |
| 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6475 | $as_echo "no" >&6; } |
| 6476 | fi |
| 6477 | |
| 6478 | if test "x$ac_pt_CAMLP4PROF" = x; then |
| 6479 | CAMLP4PROF="no" |
| 6480 | else |
| 6481 | case $cross_compiling:$ac_tool_warned in |
| 6482 | yes:) |
| 6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6485 | ac_tool_warned=yes ;; |
| 6486 | esac |
| 6487 | CAMLP4PROF=$ac_pt_CAMLP4PROF |
| 6488 | fi |
| 6489 | else |
| 6490 | CAMLP4PROF="$ac_cv_path_CAMLP4PROF" |
| 6491 | fi |
| 6492 | |
| 6493 | if test -n "$ac_tool_prefix"; then |
| 6494 | # Extract the first word of "${ac_tool_prefix}camlp4r", so it can be a program name with args. |
| 6495 | set dummy ${ac_tool_prefix}camlp4r; ac_word=$2 |
| 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6497 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6498 | if ${ac_cv_path_CAMLP4R+:} false; then : |
| 6499 | $as_echo_n "(cached) " >&6 |
| 6500 | else |
| 6501 | case $CAMLP4R in |
| 6502 | [\\/]* | ?:[\\/]*) |
| 6503 | ac_cv_path_CAMLP4R="$CAMLP4R" # Let the user override the test with a path. |
| 6504 | ;; |
| 6505 | *) |
| 6506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6507 | for as_dir in $PATH |
| 6508 | do |
| 6509 | IFS=$as_save_IFS |
| 6510 | test -z "$as_dir" && as_dir=. |
| 6511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6513 | ac_cv_path_CAMLP4R="$as_dir/$ac_word$ac_exec_ext" |
| 6514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6515 | break 2 |
| 6516 | fi |
| 6517 | done |
| 6518 | done |
| 6519 | IFS=$as_save_IFS |
| 6520 | |
| 6521 | ;; |
| 6522 | esac |
| 6523 | fi |
| 6524 | CAMLP4R=$ac_cv_path_CAMLP4R |
| 6525 | if test -n "$CAMLP4R"; then |
| 6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5 |
| 6527 | $as_echo "$CAMLP4R" >&6; } |
| 6528 | else |
| 6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6530 | $as_echo "no" >&6; } |
| 6531 | fi |
| 6532 | |
| 6533 | |
| 6534 | fi |
| 6535 | if test -z "$ac_cv_path_CAMLP4R"; then |
| 6536 | ac_pt_CAMLP4R=$CAMLP4R |
| 6537 | # Extract the first word of "camlp4r", so it can be a program name with args. |
| 6538 | set dummy camlp4r; ac_word=$2 |
| 6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6540 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6541 | if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then : |
| 6542 | $as_echo_n "(cached) " >&6 |
| 6543 | else |
| 6544 | case $ac_pt_CAMLP4R in |
| 6545 | [\\/]* | ?:[\\/]*) |
| 6546 | ac_cv_path_ac_pt_CAMLP4R="$ac_pt_CAMLP4R" # Let the user override the test with a path. |
| 6547 | ;; |
| 6548 | *) |
| 6549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6550 | for as_dir in $PATH |
| 6551 | do |
| 6552 | IFS=$as_save_IFS |
| 6553 | test -z "$as_dir" && as_dir=. |
| 6554 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6556 | ac_cv_path_ac_pt_CAMLP4R="$as_dir/$ac_word$ac_exec_ext" |
| 6557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6558 | break 2 |
| 6559 | fi |
| 6560 | done |
| 6561 | done |
| 6562 | IFS=$as_save_IFS |
| 6563 | |
| 6564 | ;; |
| 6565 | esac |
| 6566 | fi |
| 6567 | ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R |
| 6568 | if test -n "$ac_pt_CAMLP4R"; then |
| 6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4R" >&5 |
| 6570 | $as_echo "$ac_pt_CAMLP4R" >&6; } |
| 6571 | else |
| 6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6573 | $as_echo "no" >&6; } |
| 6574 | fi |
| 6575 | |
| 6576 | if test "x$ac_pt_CAMLP4R" = x; then |
| 6577 | CAMLP4R="no" |
| 6578 | else |
| 6579 | case $cross_compiling:$ac_tool_warned in |
| 6580 | yes:) |
| 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6582 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6583 | ac_tool_warned=yes ;; |
| 6584 | esac |
| 6585 | CAMLP4R=$ac_pt_CAMLP4R |
| 6586 | fi |
| 6587 | else |
| 6588 | CAMLP4R="$ac_cv_path_CAMLP4R" |
| 6589 | fi |
| 6590 | |
| 6591 | if test -n "$ac_tool_prefix"; then |
| 6592 | # Extract the first word of "${ac_tool_prefix}camlp4rf", so it can be a program name with args. |
| 6593 | set dummy ${ac_tool_prefix}camlp4rf; ac_word=$2 |
| 6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6595 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6596 | if ${ac_cv_path_CAMLP4RF+:} false; then : |
| 6597 | $as_echo_n "(cached) " >&6 |
| 6598 | else |
| 6599 | case $CAMLP4RF in |
| 6600 | [\\/]* | ?:[\\/]*) |
| 6601 | ac_cv_path_CAMLP4RF="$CAMLP4RF" # Let the user override the test with a path. |
| 6602 | ;; |
| 6603 | *) |
| 6604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6605 | for as_dir in $PATH |
| 6606 | do |
| 6607 | IFS=$as_save_IFS |
| 6608 | test -z "$as_dir" && as_dir=. |
| 6609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6611 | ac_cv_path_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext" |
| 6612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6613 | break 2 |
| 6614 | fi |
| 6615 | done |
| 6616 | done |
| 6617 | IFS=$as_save_IFS |
| 6618 | |
| 6619 | ;; |
| 6620 | esac |
| 6621 | fi |
| 6622 | CAMLP4RF=$ac_cv_path_CAMLP4RF |
| 6623 | if test -n "$CAMLP4RF"; then |
| 6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5 |
| 6625 | $as_echo "$CAMLP4RF" >&6; } |
| 6626 | else |
| 6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6628 | $as_echo "no" >&6; } |
| 6629 | fi |
| 6630 | |
| 6631 | |
| 6632 | fi |
| 6633 | if test -z "$ac_cv_path_CAMLP4RF"; then |
| 6634 | ac_pt_CAMLP4RF=$CAMLP4RF |
| 6635 | # Extract the first word of "camlp4rf", so it can be a program name with args. |
| 6636 | set dummy camlp4rf; ac_word=$2 |
| 6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6638 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6639 | if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then : |
| 6640 | $as_echo_n "(cached) " >&6 |
| 6641 | else |
| 6642 | case $ac_pt_CAMLP4RF in |
| 6643 | [\\/]* | ?:[\\/]*) |
| 6644 | ac_cv_path_ac_pt_CAMLP4RF="$ac_pt_CAMLP4RF" # Let the user override the test with a path. |
| 6645 | ;; |
| 6646 | *) |
| 6647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6648 | for as_dir in $PATH |
| 6649 | do |
| 6650 | IFS=$as_save_IFS |
| 6651 | test -z "$as_dir" && as_dir=. |
| 6652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6654 | ac_cv_path_ac_pt_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext" |
| 6655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6656 | break 2 |
| 6657 | fi |
| 6658 | done |
| 6659 | done |
| 6660 | IFS=$as_save_IFS |
| 6661 | |
| 6662 | ;; |
| 6663 | esac |
| 6664 | fi |
| 6665 | ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF |
| 6666 | if test -n "$ac_pt_CAMLP4RF"; then |
| 6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4RF" >&5 |
| 6668 | $as_echo "$ac_pt_CAMLP4RF" >&6; } |
| 6669 | else |
| 6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6671 | $as_echo "no" >&6; } |
| 6672 | fi |
| 6673 | |
| 6674 | if test "x$ac_pt_CAMLP4RF" = x; then |
| 6675 | CAMLP4RF="no" |
| 6676 | else |
| 6677 | case $cross_compiling:$ac_tool_warned in |
| 6678 | yes:) |
| 6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6681 | ac_tool_warned=yes ;; |
| 6682 | esac |
| 6683 | CAMLP4RF=$ac_pt_CAMLP4RF |
| 6684 | fi |
| 6685 | else |
| 6686 | CAMLP4RF="$ac_cv_path_CAMLP4RF" |
| 6687 | fi |
| 6688 | |
| 6689 | |
| 6690 | |
| 6691 | |
| 6692 | |
| 6693 | |
| 6694 | |
| 6695 | |
| 6696 | |
| 6697 | |
| 6698 | |
| 6699 | |
| 6700 | # Check whether --with-ocamllex was given. |
| 6701 | if test "${with_ocamllex+set}" = set; then : |
| 6702 | withval=$with_ocamllex; |
| 6703 | fi |
| 6704 | |
| 6705 | with_OCAMLLEX="$with_ocamllex" |
| 6706 | |
| 6707 | if test -n "$with_OCAMLLEX" -a "x$with_OCAMLLEX" != xno -a "x$with_OCAMLLEX" != xyes; then : |
| 6708 | OCAMLLEX="$with_OCAMLLEX" |
| 6709 | |
| 6710 | |
| 6711 | else |
| 6712 | OCAMLLEX="ocamllex" |
| 6713 | |
| 6714 | |
| 6715 | fi |
| 6716 | |
| 6717 | if test "x$with_OCAMLLEX" = xno; then : |
| 6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex is disabled explicitly" >&5 |
| 6719 | $as_echo "$as_me: ocamllex is disabled explicitly" >&6;} |
| 6720 | OCAMLLEX=no |
| 6721 | |
| 6722 | |
| 6723 | else |
| 6724 | if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then : |
| 6725 | |
| 6726 | |
| 6727 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 6728 | if test -n "$ac_tool_prefix"; then |
| 6729 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 6730 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6732 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6733 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 6734 | $as_echo_n "(cached) " >&6 |
| 6735 | else |
| 6736 | case $PKG_CONFIG in |
| 6737 | [\\/]* | ?:[\\/]*) |
| 6738 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 6739 | ;; |
| 6740 | *) |
| 6741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6742 | for as_dir in $PATH |
| 6743 | do |
| 6744 | IFS=$as_save_IFS |
| 6745 | test -z "$as_dir" && as_dir=. |
| 6746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6748 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6750 | break 2 |
| 6751 | fi |
| 6752 | done |
| 6753 | done |
| 6754 | IFS=$as_save_IFS |
| 6755 | |
| 6756 | ;; |
| 6757 | esac |
| 6758 | fi |
| 6759 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 6760 | if test -n "$PKG_CONFIG"; then |
| 6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 6762 | $as_echo "$PKG_CONFIG" >&6; } |
| 6763 | else |
| 6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6765 | $as_echo "no" >&6; } |
| 6766 | fi |
| 6767 | |
| 6768 | |
| 6769 | fi |
| 6770 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 6771 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 6772 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 6773 | set dummy pkg-config; ac_word=$2 |
| 6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6775 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6776 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 6777 | $as_echo_n "(cached) " >&6 |
| 6778 | else |
| 6779 | case $ac_pt_PKG_CONFIG in |
| 6780 | [\\/]* | ?:[\\/]*) |
| 6781 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 6782 | ;; |
| 6783 | *) |
| 6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6785 | for as_dir in $PATH |
| 6786 | do |
| 6787 | IFS=$as_save_IFS |
| 6788 | test -z "$as_dir" && as_dir=. |
| 6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6791 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6793 | break 2 |
| 6794 | fi |
| 6795 | done |
| 6796 | done |
| 6797 | IFS=$as_save_IFS |
| 6798 | |
| 6799 | ;; |
| 6800 | esac |
| 6801 | fi |
| 6802 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 6803 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 6805 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 6806 | else |
| 6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6808 | $as_echo "no" >&6; } |
| 6809 | fi |
| 6810 | |
| 6811 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 6812 | PKG_CONFIG="" |
| 6813 | else |
| 6814 | case $cross_compiling:$ac_tool_warned in |
| 6815 | yes:) |
| 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6818 | ac_tool_warned=yes ;; |
| 6819 | esac |
| 6820 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 6821 | fi |
| 6822 | else |
| 6823 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 6824 | fi |
| 6825 | |
| 6826 | fi |
| 6827 | if test -n "$PKG_CONFIG"; then |
| 6828 | _pkg_min_version=0.9.0 |
| 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 6830 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 6831 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6833 | $as_echo "yes" >&6; } |
| 6834 | else |
| 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6836 | $as_echo "no" >&6; } |
| 6837 | PKG_CONFIG="" |
| 6838 | fi |
| 6839 | |
| 6840 | fi |
| 6841 | |
| 6842 | elif test "x$OCAMLLEX" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then : |
| 6843 | # checking for ocamllex |
| 6844 | if test -n "$ac_tool_prefix"; then |
| 6845 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 6846 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6848 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6849 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 6850 | $as_echo_n "(cached) " >&6 |
| 6851 | else |
| 6852 | case $OCAMLLEX in |
| 6853 | [\\/]* | ?:[\\/]*) |
| 6854 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 6855 | ;; |
| 6856 | *) |
| 6857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6858 | for as_dir in $PATH |
| 6859 | do |
| 6860 | IFS=$as_save_IFS |
| 6861 | test -z "$as_dir" && as_dir=. |
| 6862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6864 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 6865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6866 | break 2 |
| 6867 | fi |
| 6868 | done |
| 6869 | done |
| 6870 | IFS=$as_save_IFS |
| 6871 | |
| 6872 | ;; |
| 6873 | esac |
| 6874 | fi |
| 6875 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 6876 | if test -n "$OCAMLLEX"; then |
| 6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 6878 | $as_echo "$OCAMLLEX" >&6; } |
| 6879 | else |
| 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6881 | $as_echo "no" >&6; } |
| 6882 | fi |
| 6883 | |
| 6884 | |
| 6885 | fi |
| 6886 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 6887 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 6888 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 6889 | set dummy ocamllex; ac_word=$2 |
| 6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6891 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6892 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 6893 | $as_echo_n "(cached) " >&6 |
| 6894 | else |
| 6895 | case $ac_pt_OCAMLLEX in |
| 6896 | [\\/]* | ?:[\\/]*) |
| 6897 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 6898 | ;; |
| 6899 | *) |
| 6900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6901 | for as_dir in $PATH |
| 6902 | do |
| 6903 | IFS=$as_save_IFS |
| 6904 | test -z "$as_dir" && as_dir=. |
| 6905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6907 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 6908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6909 | break 2 |
| 6910 | fi |
| 6911 | done |
| 6912 | done |
| 6913 | IFS=$as_save_IFS |
| 6914 | |
| 6915 | ;; |
| 6916 | esac |
| 6917 | fi |
| 6918 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 6919 | if test -n "$ac_pt_OCAMLLEX"; then |
| 6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 6921 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 6922 | else |
| 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6924 | $as_echo "no" >&6; } |
| 6925 | fi |
| 6926 | |
| 6927 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 6928 | OCAMLLEX="no" |
| 6929 | else |
| 6930 | case $cross_compiling:$ac_tool_warned in |
| 6931 | yes:) |
| 6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6933 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6934 | ac_tool_warned=yes ;; |
| 6935 | esac |
| 6936 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 6937 | fi |
| 6938 | else |
| 6939 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 6940 | fi |
| 6941 | |
| 6942 | if test "$OCAMLLEX" != "no"; then |
| 6943 | if test -n "$ac_tool_prefix"; then |
| 6944 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 6945 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6947 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6948 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 6949 | $as_echo_n "(cached) " >&6 |
| 6950 | else |
| 6951 | case $OCAMLLEXDOTOPT in |
| 6952 | [\\/]* | ?:[\\/]*) |
| 6953 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 6954 | ;; |
| 6955 | *) |
| 6956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6957 | for as_dir in $PATH |
| 6958 | do |
| 6959 | IFS=$as_save_IFS |
| 6960 | test -z "$as_dir" && as_dir=. |
| 6961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6963 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 6964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6965 | break 2 |
| 6966 | fi |
| 6967 | done |
| 6968 | done |
| 6969 | IFS=$as_save_IFS |
| 6970 | |
| 6971 | ;; |
| 6972 | esac |
| 6973 | fi |
| 6974 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 6975 | if test -n "$OCAMLLEXDOTOPT"; then |
| 6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 6977 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 6978 | else |
| 6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6980 | $as_echo "no" >&6; } |
| 6981 | fi |
| 6982 | |
| 6983 | |
| 6984 | fi |
| 6985 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 6986 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 6987 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 6988 | set dummy ocamllex.opt; ac_word=$2 |
| 6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6990 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6991 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 6992 | $as_echo_n "(cached) " >&6 |
| 6993 | else |
| 6994 | case $ac_pt_OCAMLLEXDOTOPT in |
| 6995 | [\\/]* | ?:[\\/]*) |
| 6996 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 6997 | ;; |
| 6998 | *) |
| 6999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7000 | for as_dir in $PATH |
| 7001 | do |
| 7002 | IFS=$as_save_IFS |
| 7003 | test -z "$as_dir" && as_dir=. |
| 7004 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7005 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7006 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7008 | break 2 |
| 7009 | fi |
| 7010 | done |
| 7011 | done |
| 7012 | IFS=$as_save_IFS |
| 7013 | |
| 7014 | ;; |
| 7015 | esac |
| 7016 | fi |
| 7017 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 7018 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 7020 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 7021 | else |
| 7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7023 | $as_echo "no" >&6; } |
| 7024 | fi |
| 7025 | |
| 7026 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 7027 | OCAMLLEXDOTOPT="no" |
| 7028 | else |
| 7029 | case $cross_compiling:$ac_tool_warned in |
| 7030 | yes:) |
| 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7033 | ac_tool_warned=yes ;; |
| 7034 | esac |
| 7035 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 7036 | fi |
| 7037 | else |
| 7038 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 7039 | fi |
| 7040 | |
| 7041 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 7042 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 7043 | fi |
| 7044 | fi |
| 7045 | |
| 7046 | |
| 7047 | |
| 7048 | elif test "x$OCAMLLEX" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then : |
| 7049 | if test -n "$ac_tool_prefix"; then |
| 7050 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 7051 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7053 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7054 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 7055 | $as_echo_n "(cached) " >&6 |
| 7056 | else |
| 7057 | case $OCAMLYACC in |
| 7058 | [\\/]* | ?:[\\/]*) |
| 7059 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 7060 | ;; |
| 7061 | *) |
| 7062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7063 | for as_dir in $PATH |
| 7064 | do |
| 7065 | IFS=$as_save_IFS |
| 7066 | test -z "$as_dir" && as_dir=. |
| 7067 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7069 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 7070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7071 | break 2 |
| 7072 | fi |
| 7073 | done |
| 7074 | done |
| 7075 | IFS=$as_save_IFS |
| 7076 | |
| 7077 | ;; |
| 7078 | esac |
| 7079 | fi |
| 7080 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 7081 | if test -n "$OCAMLYACC"; then |
| 7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 7083 | $as_echo "$OCAMLYACC" >&6; } |
| 7084 | else |
| 7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7086 | $as_echo "no" >&6; } |
| 7087 | fi |
| 7088 | |
| 7089 | |
| 7090 | fi |
| 7091 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 7092 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 7093 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 7094 | set dummy ocamlyacc; ac_word=$2 |
| 7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7096 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7097 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 7098 | $as_echo_n "(cached) " >&6 |
| 7099 | else |
| 7100 | case $ac_pt_OCAMLYACC in |
| 7101 | [\\/]* | ?:[\\/]*) |
| 7102 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 7103 | ;; |
| 7104 | *) |
| 7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7106 | for as_dir in $PATH |
| 7107 | do |
| 7108 | IFS=$as_save_IFS |
| 7109 | test -z "$as_dir" && as_dir=. |
| 7110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7112 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 7113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7114 | break 2 |
| 7115 | fi |
| 7116 | done |
| 7117 | done |
| 7118 | IFS=$as_save_IFS |
| 7119 | |
| 7120 | ;; |
| 7121 | esac |
| 7122 | fi |
| 7123 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 7124 | if test -n "$ac_pt_OCAMLYACC"; then |
| 7125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 7126 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 7127 | else |
| 7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7129 | $as_echo "no" >&6; } |
| 7130 | fi |
| 7131 | |
| 7132 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 7133 | OCAMLYACC="no" |
| 7134 | else |
| 7135 | case $cross_compiling:$ac_tool_warned in |
| 7136 | yes:) |
| 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7138 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7139 | ac_tool_warned=yes ;; |
| 7140 | esac |
| 7141 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 7142 | fi |
| 7143 | else |
| 7144 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 7145 | fi |
| 7146 | |
| 7147 | |
| 7148 | |
| 7149 | |
| 7150 | else |
| 7151 | if test -n "$ac_tool_prefix"; then |
| 7152 | # Extract the first word of "${ac_tool_prefix}[$]OCAMLLEX", so it can be a program name with args. |
| 7153 | set dummy ${ac_tool_prefix}$OCAMLLEX; ac_word=$2 |
| 7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7155 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7156 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 7157 | $as_echo_n "(cached) " >&6 |
| 7158 | else |
| 7159 | case $OCAMLLEX in |
| 7160 | [\\/]* | ?:[\\/]*) |
| 7161 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 7162 | ;; |
| 7163 | *) |
| 7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7165 | for as_dir in $PATH |
| 7166 | do |
| 7167 | IFS=$as_save_IFS |
| 7168 | test -z "$as_dir" && as_dir=. |
| 7169 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7171 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7173 | break 2 |
| 7174 | fi |
| 7175 | done |
| 7176 | done |
| 7177 | IFS=$as_save_IFS |
| 7178 | |
| 7179 | ;; |
| 7180 | esac |
| 7181 | fi |
| 7182 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 7183 | if test -n "$OCAMLLEX"; then |
| 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 7185 | $as_echo "$OCAMLLEX" >&6; } |
| 7186 | else |
| 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7188 | $as_echo "no" >&6; } |
| 7189 | fi |
| 7190 | |
| 7191 | |
| 7192 | fi |
| 7193 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 7194 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 7195 | # Extract the first word of "[$]OCAMLLEX", so it can be a program name with args. |
| 7196 | set dummy $OCAMLLEX; ac_word=$2 |
| 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7198 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7199 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 7200 | $as_echo_n "(cached) " >&6 |
| 7201 | else |
| 7202 | case $ac_pt_OCAMLLEX in |
| 7203 | [\\/]* | ?:[\\/]*) |
| 7204 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 7205 | ;; |
| 7206 | *) |
| 7207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7208 | for as_dir in $PATH |
| 7209 | do |
| 7210 | IFS=$as_save_IFS |
| 7211 | test -z "$as_dir" && as_dir=. |
| 7212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7214 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7216 | break 2 |
| 7217 | fi |
| 7218 | done |
| 7219 | done |
| 7220 | IFS=$as_save_IFS |
| 7221 | |
| 7222 | ;; |
| 7223 | esac |
| 7224 | fi |
| 7225 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 7226 | if test -n "$ac_pt_OCAMLLEX"; then |
| 7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 7228 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 7229 | else |
| 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7231 | $as_echo "no" >&6; } |
| 7232 | fi |
| 7233 | |
| 7234 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 7235 | OCAMLLEX="" |
| 7236 | else |
| 7237 | case $cross_compiling:$ac_tool_warned in |
| 7238 | yes:) |
| 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7241 | ac_tool_warned=yes ;; |
| 7242 | esac |
| 7243 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 7244 | fi |
| 7245 | else |
| 7246 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 7247 | fi |
| 7248 | |
| 7249 | |
| 7250 | fi |
| 7251 | |
| 7252 | |
| 7253 | fi |
| 7254 | |
| 7255 | if test -z "$OCAMLLEX" -o "x$OCAMLLEX" = xno; then : |
| 7256 | if test "x$with_OCAMLLEX" = xyes; then : |
| 7257 | as_fn_error $? "--with=ocamllex is given explicitly but not found" "$LINENO" 5 |
| 7258 | |
| 7259 | fi |
| 7260 | |
| 7261 | if test -n ""; then : |
| 7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex not found. Trying substitute ." >&5 |
| 7263 | $as_echo "$as_me: ocamllex not found. Trying substitute ." >&6;} |
| 7264 | OCAMLLEX="" |
| 7265 | |
| 7266 | if test "xocamllex" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then : |
| 7267 | |
| 7268 | |
| 7269 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 7270 | if test -n "$ac_tool_prefix"; then |
| 7271 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 7272 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7274 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7275 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 7276 | $as_echo_n "(cached) " >&6 |
| 7277 | else |
| 7278 | case $PKG_CONFIG in |
| 7279 | [\\/]* | ?:[\\/]*) |
| 7280 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7281 | ;; |
| 7282 | *) |
| 7283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7284 | for as_dir in $PATH |
| 7285 | do |
| 7286 | IFS=$as_save_IFS |
| 7287 | test -z "$as_dir" && as_dir=. |
| 7288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7290 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7292 | break 2 |
| 7293 | fi |
| 7294 | done |
| 7295 | done |
| 7296 | IFS=$as_save_IFS |
| 7297 | |
| 7298 | ;; |
| 7299 | esac |
| 7300 | fi |
| 7301 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7302 | if test -n "$PKG_CONFIG"; then |
| 7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 7304 | $as_echo "$PKG_CONFIG" >&6; } |
| 7305 | else |
| 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7307 | $as_echo "no" >&6; } |
| 7308 | fi |
| 7309 | |
| 7310 | |
| 7311 | fi |
| 7312 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 7313 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 7314 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7315 | set dummy pkg-config; ac_word=$2 |
| 7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7317 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7318 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 7319 | $as_echo_n "(cached) " >&6 |
| 7320 | else |
| 7321 | case $ac_pt_PKG_CONFIG in |
| 7322 | [\\/]* | ?:[\\/]*) |
| 7323 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 7324 | ;; |
| 7325 | *) |
| 7326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7327 | for as_dir in $PATH |
| 7328 | do |
| 7329 | IFS=$as_save_IFS |
| 7330 | test -z "$as_dir" && as_dir=. |
| 7331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7332 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7333 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7335 | break 2 |
| 7336 | fi |
| 7337 | done |
| 7338 | done |
| 7339 | IFS=$as_save_IFS |
| 7340 | |
| 7341 | ;; |
| 7342 | esac |
| 7343 | fi |
| 7344 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 7345 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 7347 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 7348 | else |
| 7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7350 | $as_echo "no" >&6; } |
| 7351 | fi |
| 7352 | |
| 7353 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 7354 | PKG_CONFIG="" |
| 7355 | else |
| 7356 | case $cross_compiling:$ac_tool_warned in |
| 7357 | yes:) |
| 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7359 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7360 | ac_tool_warned=yes ;; |
| 7361 | esac |
| 7362 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 7363 | fi |
| 7364 | else |
| 7365 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 7366 | fi |
| 7367 | |
| 7368 | fi |
| 7369 | if test -n "$PKG_CONFIG"; then |
| 7370 | _pkg_min_version=0.9.0 |
| 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 7372 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 7373 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7375 | $as_echo "yes" >&6; } |
| 7376 | else |
| 7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7378 | $as_echo "no" >&6; } |
| 7379 | PKG_CONFIG="" |
| 7380 | fi |
| 7381 | |
| 7382 | fi |
| 7383 | |
| 7384 | elif test "xocamllex" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then : |
| 7385 | # checking for ocamllex |
| 7386 | if test -n "$ac_tool_prefix"; then |
| 7387 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 7388 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7390 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7391 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 7392 | $as_echo_n "(cached) " >&6 |
| 7393 | else |
| 7394 | case $OCAMLLEX in |
| 7395 | [\\/]* | ?:[\\/]*) |
| 7396 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 7397 | ;; |
| 7398 | *) |
| 7399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7400 | for as_dir in $PATH |
| 7401 | do |
| 7402 | IFS=$as_save_IFS |
| 7403 | test -z "$as_dir" && as_dir=. |
| 7404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7406 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7408 | break 2 |
| 7409 | fi |
| 7410 | done |
| 7411 | done |
| 7412 | IFS=$as_save_IFS |
| 7413 | |
| 7414 | ;; |
| 7415 | esac |
| 7416 | fi |
| 7417 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 7418 | if test -n "$OCAMLLEX"; then |
| 7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 7420 | $as_echo "$OCAMLLEX" >&6; } |
| 7421 | else |
| 7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7423 | $as_echo "no" >&6; } |
| 7424 | fi |
| 7425 | |
| 7426 | |
| 7427 | fi |
| 7428 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 7429 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 7430 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 7431 | set dummy ocamllex; ac_word=$2 |
| 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7433 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7434 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 7435 | $as_echo_n "(cached) " >&6 |
| 7436 | else |
| 7437 | case $ac_pt_OCAMLLEX in |
| 7438 | [\\/]* | ?:[\\/]*) |
| 7439 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 7440 | ;; |
| 7441 | *) |
| 7442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7443 | for as_dir in $PATH |
| 7444 | do |
| 7445 | IFS=$as_save_IFS |
| 7446 | test -z "$as_dir" && as_dir=. |
| 7447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7449 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7451 | break 2 |
| 7452 | fi |
| 7453 | done |
| 7454 | done |
| 7455 | IFS=$as_save_IFS |
| 7456 | |
| 7457 | ;; |
| 7458 | esac |
| 7459 | fi |
| 7460 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 7461 | if test -n "$ac_pt_OCAMLLEX"; then |
| 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 7463 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 7464 | else |
| 7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7466 | $as_echo "no" >&6; } |
| 7467 | fi |
| 7468 | |
| 7469 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 7470 | OCAMLLEX="no" |
| 7471 | else |
| 7472 | case $cross_compiling:$ac_tool_warned in |
| 7473 | yes:) |
| 7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7475 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7476 | ac_tool_warned=yes ;; |
| 7477 | esac |
| 7478 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 7479 | fi |
| 7480 | else |
| 7481 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 7482 | fi |
| 7483 | |
| 7484 | if test "$OCAMLLEX" != "no"; then |
| 7485 | if test -n "$ac_tool_prefix"; then |
| 7486 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 7487 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7489 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7490 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 7491 | $as_echo_n "(cached) " >&6 |
| 7492 | else |
| 7493 | case $OCAMLLEXDOTOPT in |
| 7494 | [\\/]* | ?:[\\/]*) |
| 7495 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 7496 | ;; |
| 7497 | *) |
| 7498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7499 | for as_dir in $PATH |
| 7500 | do |
| 7501 | IFS=$as_save_IFS |
| 7502 | test -z "$as_dir" && as_dir=. |
| 7503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7505 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7507 | break 2 |
| 7508 | fi |
| 7509 | done |
| 7510 | done |
| 7511 | IFS=$as_save_IFS |
| 7512 | |
| 7513 | ;; |
| 7514 | esac |
| 7515 | fi |
| 7516 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 7517 | if test -n "$OCAMLLEXDOTOPT"; then |
| 7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 7519 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 7520 | else |
| 7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7522 | $as_echo "no" >&6; } |
| 7523 | fi |
| 7524 | |
| 7525 | |
| 7526 | fi |
| 7527 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 7528 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 7529 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 7530 | set dummy ocamllex.opt; ac_word=$2 |
| 7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7532 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7533 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 7534 | $as_echo_n "(cached) " >&6 |
| 7535 | else |
| 7536 | case $ac_pt_OCAMLLEXDOTOPT in |
| 7537 | [\\/]* | ?:[\\/]*) |
| 7538 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 7539 | ;; |
| 7540 | *) |
| 7541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7542 | for as_dir in $PATH |
| 7543 | do |
| 7544 | IFS=$as_save_IFS |
| 7545 | test -z "$as_dir" && as_dir=. |
| 7546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7548 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7550 | break 2 |
| 7551 | fi |
| 7552 | done |
| 7553 | done |
| 7554 | IFS=$as_save_IFS |
| 7555 | |
| 7556 | ;; |
| 7557 | esac |
| 7558 | fi |
| 7559 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 7560 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 7562 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 7563 | else |
| 7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7565 | $as_echo "no" >&6; } |
| 7566 | fi |
| 7567 | |
| 7568 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 7569 | OCAMLLEXDOTOPT="no" |
| 7570 | else |
| 7571 | case $cross_compiling:$ac_tool_warned in |
| 7572 | yes:) |
| 7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7575 | ac_tool_warned=yes ;; |
| 7576 | esac |
| 7577 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 7578 | fi |
| 7579 | else |
| 7580 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 7581 | fi |
| 7582 | |
| 7583 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 7584 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 7585 | fi |
| 7586 | fi |
| 7587 | |
| 7588 | |
| 7589 | |
| 7590 | elif test "xocamllex" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then : |
| 7591 | if test -n "$ac_tool_prefix"; then |
| 7592 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 7593 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7595 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7596 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 7597 | $as_echo_n "(cached) " >&6 |
| 7598 | else |
| 7599 | case $OCAMLYACC in |
| 7600 | [\\/]* | ?:[\\/]*) |
| 7601 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 7602 | ;; |
| 7603 | *) |
| 7604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7605 | for as_dir in $PATH |
| 7606 | do |
| 7607 | IFS=$as_save_IFS |
| 7608 | test -z "$as_dir" && as_dir=. |
| 7609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7611 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 7612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7613 | break 2 |
| 7614 | fi |
| 7615 | done |
| 7616 | done |
| 7617 | IFS=$as_save_IFS |
| 7618 | |
| 7619 | ;; |
| 7620 | esac |
| 7621 | fi |
| 7622 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 7623 | if test -n "$OCAMLYACC"; then |
| 7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 7625 | $as_echo "$OCAMLYACC" >&6; } |
| 7626 | else |
| 7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7628 | $as_echo "no" >&6; } |
| 7629 | fi |
| 7630 | |
| 7631 | |
| 7632 | fi |
| 7633 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 7634 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 7635 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 7636 | set dummy ocamlyacc; ac_word=$2 |
| 7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7638 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7639 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 7640 | $as_echo_n "(cached) " >&6 |
| 7641 | else |
| 7642 | case $ac_pt_OCAMLYACC in |
| 7643 | [\\/]* | ?:[\\/]*) |
| 7644 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 7645 | ;; |
| 7646 | *) |
| 7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7648 | for as_dir in $PATH |
| 7649 | do |
| 7650 | IFS=$as_save_IFS |
| 7651 | test -z "$as_dir" && as_dir=. |
| 7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7654 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 7655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7656 | break 2 |
| 7657 | fi |
| 7658 | done |
| 7659 | done |
| 7660 | IFS=$as_save_IFS |
| 7661 | |
| 7662 | ;; |
| 7663 | esac |
| 7664 | fi |
| 7665 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 7666 | if test -n "$ac_pt_OCAMLYACC"; then |
| 7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 7668 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 7669 | else |
| 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7671 | $as_echo "no" >&6; } |
| 7672 | fi |
| 7673 | |
| 7674 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 7675 | OCAMLYACC="no" |
| 7676 | else |
| 7677 | case $cross_compiling:$ac_tool_warned in |
| 7678 | yes:) |
| 7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7681 | ac_tool_warned=yes ;; |
| 7682 | esac |
| 7683 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 7684 | fi |
| 7685 | else |
| 7686 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 7687 | fi |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | else |
| 7693 | if test -n "$ac_tool_prefix"; then |
| 7694 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 7695 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7697 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7698 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 7699 | $as_echo_n "(cached) " >&6 |
| 7700 | else |
| 7701 | case $OCAMLLEX in |
| 7702 | [\\/]* | ?:[\\/]*) |
| 7703 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 7704 | ;; |
| 7705 | *) |
| 7706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7707 | for as_dir in $PATH |
| 7708 | do |
| 7709 | IFS=$as_save_IFS |
| 7710 | test -z "$as_dir" && as_dir=. |
| 7711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7713 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7715 | break 2 |
| 7716 | fi |
| 7717 | done |
| 7718 | done |
| 7719 | IFS=$as_save_IFS |
| 7720 | |
| 7721 | ;; |
| 7722 | esac |
| 7723 | fi |
| 7724 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 7725 | if test -n "$OCAMLLEX"; then |
| 7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 7727 | $as_echo "$OCAMLLEX" >&6; } |
| 7728 | else |
| 7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7730 | $as_echo "no" >&6; } |
| 7731 | fi |
| 7732 | |
| 7733 | |
| 7734 | fi |
| 7735 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 7736 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 7737 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 7738 | set dummy ocamllex; ac_word=$2 |
| 7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7740 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7741 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 7742 | $as_echo_n "(cached) " >&6 |
| 7743 | else |
| 7744 | case $ac_pt_OCAMLLEX in |
| 7745 | [\\/]* | ?:[\\/]*) |
| 7746 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 7747 | ;; |
| 7748 | *) |
| 7749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7750 | for as_dir in $PATH |
| 7751 | do |
| 7752 | IFS=$as_save_IFS |
| 7753 | test -z "$as_dir" && as_dir=. |
| 7754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7756 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7758 | break 2 |
| 7759 | fi |
| 7760 | done |
| 7761 | done |
| 7762 | IFS=$as_save_IFS |
| 7763 | |
| 7764 | ;; |
| 7765 | esac |
| 7766 | fi |
| 7767 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 7768 | if test -n "$ac_pt_OCAMLLEX"; then |
| 7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 7770 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 7771 | else |
| 7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7773 | $as_echo "no" >&6; } |
| 7774 | fi |
| 7775 | |
| 7776 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 7777 | OCAMLLEX="" |
| 7778 | else |
| 7779 | case $cross_compiling:$ac_tool_warned in |
| 7780 | yes:) |
| 7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7782 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7783 | ac_tool_warned=yes ;; |
| 7784 | esac |
| 7785 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 7786 | fi |
| 7787 | else |
| 7788 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 7789 | fi |
| 7790 | |
| 7791 | |
| 7792 | fi |
| 7793 | |
| 7794 | SUBSTITUTED_OCAMLLEX=yes |
| 7795 | |
| 7796 | |
| 7797 | fi |
| 7798 | |
| 7799 | fi |
| 7800 | |
| 7801 | if test -z "$OCAMLLEX"; then : |
| 7802 | OCAMLLEX=no |
| 7803 | |
| 7804 | fi |
| 7805 | |
| 7806 | |
| 7807 | |
| 7808 | # Check whether --with-ocamlyacc was given. |
| 7809 | if test "${with_ocamlyacc+set}" = set; then : |
| 7810 | withval=$with_ocamlyacc; |
| 7811 | fi |
| 7812 | |
| 7813 | with_OCAMLYACC="$with_ocamlyacc" |
| 7814 | |
| 7815 | if test -n "$with_OCAMLYACC" -a "x$with_OCAMLYACC" != xno -a "x$with_OCAMLYACC" != xyes; then : |
| 7816 | OCAMLYACC="$with_OCAMLYACC" |
| 7817 | |
| 7818 | |
| 7819 | else |
| 7820 | OCAMLYACC="ocamlyacc" |
| 7821 | |
| 7822 | |
| 7823 | fi |
| 7824 | |
| 7825 | if test "x$with_OCAMLYACC" = xno; then : |
| 7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc is disabled explicitly" >&5 |
| 7827 | $as_echo "$as_me: ocamlyacc is disabled explicitly" >&6;} |
| 7828 | OCAMLYACC=no |
| 7829 | |
| 7830 | |
| 7831 | else |
| 7832 | if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then : |
| 7833 | |
| 7834 | |
| 7835 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 7836 | if test -n "$ac_tool_prefix"; then |
| 7837 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 7838 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7840 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7841 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 7842 | $as_echo_n "(cached) " >&6 |
| 7843 | else |
| 7844 | case $PKG_CONFIG in |
| 7845 | [\\/]* | ?:[\\/]*) |
| 7846 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7847 | ;; |
| 7848 | *) |
| 7849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7850 | for as_dir in $PATH |
| 7851 | do |
| 7852 | IFS=$as_save_IFS |
| 7853 | test -z "$as_dir" && as_dir=. |
| 7854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7856 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7858 | break 2 |
| 7859 | fi |
| 7860 | done |
| 7861 | done |
| 7862 | IFS=$as_save_IFS |
| 7863 | |
| 7864 | ;; |
| 7865 | esac |
| 7866 | fi |
| 7867 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7868 | if test -n "$PKG_CONFIG"; then |
| 7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 7870 | $as_echo "$PKG_CONFIG" >&6; } |
| 7871 | else |
| 7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7873 | $as_echo "no" >&6; } |
| 7874 | fi |
| 7875 | |
| 7876 | |
| 7877 | fi |
| 7878 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 7879 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 7880 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7881 | set dummy pkg-config; ac_word=$2 |
| 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7883 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7884 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 7885 | $as_echo_n "(cached) " >&6 |
| 7886 | else |
| 7887 | case $ac_pt_PKG_CONFIG in |
| 7888 | [\\/]* | ?:[\\/]*) |
| 7889 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 7890 | ;; |
| 7891 | *) |
| 7892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7893 | for as_dir in $PATH |
| 7894 | do |
| 7895 | IFS=$as_save_IFS |
| 7896 | test -z "$as_dir" && as_dir=. |
| 7897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7899 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7901 | break 2 |
| 7902 | fi |
| 7903 | done |
| 7904 | done |
| 7905 | IFS=$as_save_IFS |
| 7906 | |
| 7907 | ;; |
| 7908 | esac |
| 7909 | fi |
| 7910 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 7911 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 7913 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 7914 | else |
| 7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7916 | $as_echo "no" >&6; } |
| 7917 | fi |
| 7918 | |
| 7919 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 7920 | PKG_CONFIG="" |
| 7921 | else |
| 7922 | case $cross_compiling:$ac_tool_warned in |
| 7923 | yes:) |
| 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7926 | ac_tool_warned=yes ;; |
| 7927 | esac |
| 7928 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 7929 | fi |
| 7930 | else |
| 7931 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 7932 | fi |
| 7933 | |
| 7934 | fi |
| 7935 | if test -n "$PKG_CONFIG"; then |
| 7936 | _pkg_min_version=0.9.0 |
| 7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 7938 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 7939 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7941 | $as_echo "yes" >&6; } |
| 7942 | else |
| 7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7944 | $as_echo "no" >&6; } |
| 7945 | PKG_CONFIG="" |
| 7946 | fi |
| 7947 | |
| 7948 | fi |
| 7949 | |
| 7950 | elif test "x$OCAMLYACC" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then : |
| 7951 | # checking for ocamllex |
| 7952 | if test -n "$ac_tool_prefix"; then |
| 7953 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 7954 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7956 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7957 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 7958 | $as_echo_n "(cached) " >&6 |
| 7959 | else |
| 7960 | case $OCAMLLEX in |
| 7961 | [\\/]* | ?:[\\/]*) |
| 7962 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 7963 | ;; |
| 7964 | *) |
| 7965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7966 | for as_dir in $PATH |
| 7967 | do |
| 7968 | IFS=$as_save_IFS |
| 7969 | test -z "$as_dir" && as_dir=. |
| 7970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7972 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 7973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7974 | break 2 |
| 7975 | fi |
| 7976 | done |
| 7977 | done |
| 7978 | IFS=$as_save_IFS |
| 7979 | |
| 7980 | ;; |
| 7981 | esac |
| 7982 | fi |
| 7983 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 7984 | if test -n "$OCAMLLEX"; then |
| 7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 7986 | $as_echo "$OCAMLLEX" >&6; } |
| 7987 | else |
| 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7989 | $as_echo "no" >&6; } |
| 7990 | fi |
| 7991 | |
| 7992 | |
| 7993 | fi |
| 7994 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 7995 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 7996 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 7997 | set dummy ocamllex; ac_word=$2 |
| 7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7999 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8000 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 8001 | $as_echo_n "(cached) " >&6 |
| 8002 | else |
| 8003 | case $ac_pt_OCAMLLEX in |
| 8004 | [\\/]* | ?:[\\/]*) |
| 8005 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 8006 | ;; |
| 8007 | *) |
| 8008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8009 | for as_dir in $PATH |
| 8010 | do |
| 8011 | IFS=$as_save_IFS |
| 8012 | test -z "$as_dir" && as_dir=. |
| 8013 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8015 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 8016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8017 | break 2 |
| 8018 | fi |
| 8019 | done |
| 8020 | done |
| 8021 | IFS=$as_save_IFS |
| 8022 | |
| 8023 | ;; |
| 8024 | esac |
| 8025 | fi |
| 8026 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 8027 | if test -n "$ac_pt_OCAMLLEX"; then |
| 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 8029 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 8030 | else |
| 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8032 | $as_echo "no" >&6; } |
| 8033 | fi |
| 8034 | |
| 8035 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 8036 | OCAMLLEX="no" |
| 8037 | else |
| 8038 | case $cross_compiling:$ac_tool_warned in |
| 8039 | yes:) |
| 8040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8042 | ac_tool_warned=yes ;; |
| 8043 | esac |
| 8044 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 8045 | fi |
| 8046 | else |
| 8047 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 8048 | fi |
| 8049 | |
| 8050 | if test "$OCAMLLEX" != "no"; then |
| 8051 | if test -n "$ac_tool_prefix"; then |
| 8052 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 8053 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8055 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8056 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 8057 | $as_echo_n "(cached) " >&6 |
| 8058 | else |
| 8059 | case $OCAMLLEXDOTOPT in |
| 8060 | [\\/]* | ?:[\\/]*) |
| 8061 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 8062 | ;; |
| 8063 | *) |
| 8064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8065 | for as_dir in $PATH |
| 8066 | do |
| 8067 | IFS=$as_save_IFS |
| 8068 | test -z "$as_dir" && as_dir=. |
| 8069 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8071 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8073 | break 2 |
| 8074 | fi |
| 8075 | done |
| 8076 | done |
| 8077 | IFS=$as_save_IFS |
| 8078 | |
| 8079 | ;; |
| 8080 | esac |
| 8081 | fi |
| 8082 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 8083 | if test -n "$OCAMLLEXDOTOPT"; then |
| 8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 8085 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 8086 | else |
| 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8088 | $as_echo "no" >&6; } |
| 8089 | fi |
| 8090 | |
| 8091 | |
| 8092 | fi |
| 8093 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 8094 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 8095 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 8096 | set dummy ocamllex.opt; ac_word=$2 |
| 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8098 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8099 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 8100 | $as_echo_n "(cached) " >&6 |
| 8101 | else |
| 8102 | case $ac_pt_OCAMLLEXDOTOPT in |
| 8103 | [\\/]* | ?:[\\/]*) |
| 8104 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 8105 | ;; |
| 8106 | *) |
| 8107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8108 | for as_dir in $PATH |
| 8109 | do |
| 8110 | IFS=$as_save_IFS |
| 8111 | test -z "$as_dir" && as_dir=. |
| 8112 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8114 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8116 | break 2 |
| 8117 | fi |
| 8118 | done |
| 8119 | done |
| 8120 | IFS=$as_save_IFS |
| 8121 | |
| 8122 | ;; |
| 8123 | esac |
| 8124 | fi |
| 8125 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 8126 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 8128 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 8129 | else |
| 8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8131 | $as_echo "no" >&6; } |
| 8132 | fi |
| 8133 | |
| 8134 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 8135 | OCAMLLEXDOTOPT="no" |
| 8136 | else |
| 8137 | case $cross_compiling:$ac_tool_warned in |
| 8138 | yes:) |
| 8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8141 | ac_tool_warned=yes ;; |
| 8142 | esac |
| 8143 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 8144 | fi |
| 8145 | else |
| 8146 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 8147 | fi |
| 8148 | |
| 8149 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 8150 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 8151 | fi |
| 8152 | fi |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | elif test "x$OCAMLYACC" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then : |
| 8157 | if test -n "$ac_tool_prefix"; then |
| 8158 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 8159 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8161 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8162 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 8163 | $as_echo_n "(cached) " >&6 |
| 8164 | else |
| 8165 | case $OCAMLYACC in |
| 8166 | [\\/]* | ?:[\\/]*) |
| 8167 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 8168 | ;; |
| 8169 | *) |
| 8170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8171 | for as_dir in $PATH |
| 8172 | do |
| 8173 | IFS=$as_save_IFS |
| 8174 | test -z "$as_dir" && as_dir=. |
| 8175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8177 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8179 | break 2 |
| 8180 | fi |
| 8181 | done |
| 8182 | done |
| 8183 | IFS=$as_save_IFS |
| 8184 | |
| 8185 | ;; |
| 8186 | esac |
| 8187 | fi |
| 8188 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 8189 | if test -n "$OCAMLYACC"; then |
| 8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 8191 | $as_echo "$OCAMLYACC" >&6; } |
| 8192 | else |
| 8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8194 | $as_echo "no" >&6; } |
| 8195 | fi |
| 8196 | |
| 8197 | |
| 8198 | fi |
| 8199 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 8200 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 8201 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 8202 | set dummy ocamlyacc; ac_word=$2 |
| 8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8204 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8205 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 8206 | $as_echo_n "(cached) " >&6 |
| 8207 | else |
| 8208 | case $ac_pt_OCAMLYACC in |
| 8209 | [\\/]* | ?:[\\/]*) |
| 8210 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 8211 | ;; |
| 8212 | *) |
| 8213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8214 | for as_dir in $PATH |
| 8215 | do |
| 8216 | IFS=$as_save_IFS |
| 8217 | test -z "$as_dir" && as_dir=. |
| 8218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8220 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8222 | break 2 |
| 8223 | fi |
| 8224 | done |
| 8225 | done |
| 8226 | IFS=$as_save_IFS |
| 8227 | |
| 8228 | ;; |
| 8229 | esac |
| 8230 | fi |
| 8231 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 8232 | if test -n "$ac_pt_OCAMLYACC"; then |
| 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 8234 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 8235 | else |
| 8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8237 | $as_echo "no" >&6; } |
| 8238 | fi |
| 8239 | |
| 8240 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 8241 | OCAMLYACC="no" |
| 8242 | else |
| 8243 | case $cross_compiling:$ac_tool_warned in |
| 8244 | yes:) |
| 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8246 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8247 | ac_tool_warned=yes ;; |
| 8248 | esac |
| 8249 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 8250 | fi |
| 8251 | else |
| 8252 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 8253 | fi |
| 8254 | |
| 8255 | |
| 8256 | |
| 8257 | |
| 8258 | else |
| 8259 | if test -n "$ac_tool_prefix"; then |
| 8260 | # Extract the first word of "${ac_tool_prefix}[$]OCAMLYACC", so it can be a program name with args. |
| 8261 | set dummy ${ac_tool_prefix}$OCAMLYACC; ac_word=$2 |
| 8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8263 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8264 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 8265 | $as_echo_n "(cached) " >&6 |
| 8266 | else |
| 8267 | case $OCAMLYACC in |
| 8268 | [\\/]* | ?:[\\/]*) |
| 8269 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 8270 | ;; |
| 8271 | *) |
| 8272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8273 | for as_dir in $PATH |
| 8274 | do |
| 8275 | IFS=$as_save_IFS |
| 8276 | test -z "$as_dir" && as_dir=. |
| 8277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8279 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8281 | break 2 |
| 8282 | fi |
| 8283 | done |
| 8284 | done |
| 8285 | IFS=$as_save_IFS |
| 8286 | |
| 8287 | ;; |
| 8288 | esac |
| 8289 | fi |
| 8290 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 8291 | if test -n "$OCAMLYACC"; then |
| 8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 8293 | $as_echo "$OCAMLYACC" >&6; } |
| 8294 | else |
| 8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8296 | $as_echo "no" >&6; } |
| 8297 | fi |
| 8298 | |
| 8299 | |
| 8300 | fi |
| 8301 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 8302 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 8303 | # Extract the first word of "[$]OCAMLYACC", so it can be a program name with args. |
| 8304 | set dummy $OCAMLYACC; ac_word=$2 |
| 8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8306 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8307 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 8308 | $as_echo_n "(cached) " >&6 |
| 8309 | else |
| 8310 | case $ac_pt_OCAMLYACC in |
| 8311 | [\\/]* | ?:[\\/]*) |
| 8312 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 8313 | ;; |
| 8314 | *) |
| 8315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8316 | for as_dir in $PATH |
| 8317 | do |
| 8318 | IFS=$as_save_IFS |
| 8319 | test -z "$as_dir" && as_dir=. |
| 8320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8322 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8324 | break 2 |
| 8325 | fi |
| 8326 | done |
| 8327 | done |
| 8328 | IFS=$as_save_IFS |
| 8329 | |
| 8330 | ;; |
| 8331 | esac |
| 8332 | fi |
| 8333 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 8334 | if test -n "$ac_pt_OCAMLYACC"; then |
| 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 8336 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 8337 | else |
| 8338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8339 | $as_echo "no" >&6; } |
| 8340 | fi |
| 8341 | |
| 8342 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 8343 | OCAMLYACC="" |
| 8344 | else |
| 8345 | case $cross_compiling:$ac_tool_warned in |
| 8346 | yes:) |
| 8347 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8348 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8349 | ac_tool_warned=yes ;; |
| 8350 | esac |
| 8351 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 8352 | fi |
| 8353 | else |
| 8354 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 8355 | fi |
| 8356 | |
| 8357 | |
| 8358 | fi |
| 8359 | |
| 8360 | |
| 8361 | fi |
| 8362 | |
| 8363 | if test -z "$OCAMLYACC" -o "x$OCAMLYACC" = xno; then : |
| 8364 | if test "x$with_OCAMLYACC" = xyes; then : |
| 8365 | as_fn_error $? "--with=ocamlyacc is given explicitly but not found" "$LINENO" 5 |
| 8366 | |
| 8367 | fi |
| 8368 | |
| 8369 | if test -n ""; then : |
| 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc not found. Trying substitute ." >&5 |
| 8371 | $as_echo "$as_me: ocamlyacc not found. Trying substitute ." >&6;} |
| 8372 | OCAMLYACC="" |
| 8373 | |
| 8374 | if test "xocamlyacc" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then : |
| 8375 | |
| 8376 | |
| 8377 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 8378 | if test -n "$ac_tool_prefix"; then |
| 8379 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8380 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8382 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8383 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 8384 | $as_echo_n "(cached) " >&6 |
| 8385 | else |
| 8386 | case $PKG_CONFIG in |
| 8387 | [\\/]* | ?:[\\/]*) |
| 8388 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8389 | ;; |
| 8390 | *) |
| 8391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8392 | for as_dir in $PATH |
| 8393 | do |
| 8394 | IFS=$as_save_IFS |
| 8395 | test -z "$as_dir" && as_dir=. |
| 8396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8398 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8400 | break 2 |
| 8401 | fi |
| 8402 | done |
| 8403 | done |
| 8404 | IFS=$as_save_IFS |
| 8405 | |
| 8406 | ;; |
| 8407 | esac |
| 8408 | fi |
| 8409 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8410 | if test -n "$PKG_CONFIG"; then |
| 8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8412 | $as_echo "$PKG_CONFIG" >&6; } |
| 8413 | else |
| 8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8415 | $as_echo "no" >&6; } |
| 8416 | fi |
| 8417 | |
| 8418 | |
| 8419 | fi |
| 8420 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8421 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8422 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8423 | set dummy pkg-config; ac_word=$2 |
| 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8425 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8426 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 8427 | $as_echo_n "(cached) " >&6 |
| 8428 | else |
| 8429 | case $ac_pt_PKG_CONFIG in |
| 8430 | [\\/]* | ?:[\\/]*) |
| 8431 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8432 | ;; |
| 8433 | *) |
| 8434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8435 | for as_dir in $PATH |
| 8436 | do |
| 8437 | IFS=$as_save_IFS |
| 8438 | test -z "$as_dir" && as_dir=. |
| 8439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8441 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8443 | break 2 |
| 8444 | fi |
| 8445 | done |
| 8446 | done |
| 8447 | IFS=$as_save_IFS |
| 8448 | |
| 8449 | ;; |
| 8450 | esac |
| 8451 | fi |
| 8452 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8453 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8455 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 8456 | else |
| 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8458 | $as_echo "no" >&6; } |
| 8459 | fi |
| 8460 | |
| 8461 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8462 | PKG_CONFIG="" |
| 8463 | else |
| 8464 | case $cross_compiling:$ac_tool_warned in |
| 8465 | yes:) |
| 8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8467 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8468 | ac_tool_warned=yes ;; |
| 8469 | esac |
| 8470 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8471 | fi |
| 8472 | else |
| 8473 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8474 | fi |
| 8475 | |
| 8476 | fi |
| 8477 | if test -n "$PKG_CONFIG"; then |
| 8478 | _pkg_min_version=0.9.0 |
| 8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 8480 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 8481 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8483 | $as_echo "yes" >&6; } |
| 8484 | else |
| 8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8486 | $as_echo "no" >&6; } |
| 8487 | PKG_CONFIG="" |
| 8488 | fi |
| 8489 | |
| 8490 | fi |
| 8491 | |
| 8492 | elif test "xocamlyacc" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then : |
| 8493 | # checking for ocamllex |
| 8494 | if test -n "$ac_tool_prefix"; then |
| 8495 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 8496 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8498 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8499 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 8500 | $as_echo_n "(cached) " >&6 |
| 8501 | else |
| 8502 | case $OCAMLLEX in |
| 8503 | [\\/]* | ?:[\\/]*) |
| 8504 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 8505 | ;; |
| 8506 | *) |
| 8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8508 | for as_dir in $PATH |
| 8509 | do |
| 8510 | IFS=$as_save_IFS |
| 8511 | test -z "$as_dir" && as_dir=. |
| 8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8514 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8516 | break 2 |
| 8517 | fi |
| 8518 | done |
| 8519 | done |
| 8520 | IFS=$as_save_IFS |
| 8521 | |
| 8522 | ;; |
| 8523 | esac |
| 8524 | fi |
| 8525 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 8526 | if test -n "$OCAMLLEX"; then |
| 8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 8528 | $as_echo "$OCAMLLEX" >&6; } |
| 8529 | else |
| 8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8531 | $as_echo "no" >&6; } |
| 8532 | fi |
| 8533 | |
| 8534 | |
| 8535 | fi |
| 8536 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 8537 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 8538 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 8539 | set dummy ocamllex; ac_word=$2 |
| 8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8541 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8542 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 8543 | $as_echo_n "(cached) " >&6 |
| 8544 | else |
| 8545 | case $ac_pt_OCAMLLEX in |
| 8546 | [\\/]* | ?:[\\/]*) |
| 8547 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 8548 | ;; |
| 8549 | *) |
| 8550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8551 | for as_dir in $PATH |
| 8552 | do |
| 8553 | IFS=$as_save_IFS |
| 8554 | test -z "$as_dir" && as_dir=. |
| 8555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8557 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 8558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8559 | break 2 |
| 8560 | fi |
| 8561 | done |
| 8562 | done |
| 8563 | IFS=$as_save_IFS |
| 8564 | |
| 8565 | ;; |
| 8566 | esac |
| 8567 | fi |
| 8568 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 8569 | if test -n "$ac_pt_OCAMLLEX"; then |
| 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 8571 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 8572 | else |
| 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8574 | $as_echo "no" >&6; } |
| 8575 | fi |
| 8576 | |
| 8577 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 8578 | OCAMLLEX="no" |
| 8579 | else |
| 8580 | case $cross_compiling:$ac_tool_warned in |
| 8581 | yes:) |
| 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8584 | ac_tool_warned=yes ;; |
| 8585 | esac |
| 8586 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 8587 | fi |
| 8588 | else |
| 8589 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 8590 | fi |
| 8591 | |
| 8592 | if test "$OCAMLLEX" != "no"; then |
| 8593 | if test -n "$ac_tool_prefix"; then |
| 8594 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 8595 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8597 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8598 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 8599 | $as_echo_n "(cached) " >&6 |
| 8600 | else |
| 8601 | case $OCAMLLEXDOTOPT in |
| 8602 | [\\/]* | ?:[\\/]*) |
| 8603 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 8604 | ;; |
| 8605 | *) |
| 8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8607 | for as_dir in $PATH |
| 8608 | do |
| 8609 | IFS=$as_save_IFS |
| 8610 | test -z "$as_dir" && as_dir=. |
| 8611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8613 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8615 | break 2 |
| 8616 | fi |
| 8617 | done |
| 8618 | done |
| 8619 | IFS=$as_save_IFS |
| 8620 | |
| 8621 | ;; |
| 8622 | esac |
| 8623 | fi |
| 8624 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 8625 | if test -n "$OCAMLLEXDOTOPT"; then |
| 8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 8627 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 8628 | else |
| 8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8630 | $as_echo "no" >&6; } |
| 8631 | fi |
| 8632 | |
| 8633 | |
| 8634 | fi |
| 8635 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 8636 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 8637 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 8638 | set dummy ocamllex.opt; ac_word=$2 |
| 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8640 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8641 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 8642 | $as_echo_n "(cached) " >&6 |
| 8643 | else |
| 8644 | case $ac_pt_OCAMLLEXDOTOPT in |
| 8645 | [\\/]* | ?:[\\/]*) |
| 8646 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 8647 | ;; |
| 8648 | *) |
| 8649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8650 | for as_dir in $PATH |
| 8651 | do |
| 8652 | IFS=$as_save_IFS |
| 8653 | test -z "$as_dir" && as_dir=. |
| 8654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8656 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8658 | break 2 |
| 8659 | fi |
| 8660 | done |
| 8661 | done |
| 8662 | IFS=$as_save_IFS |
| 8663 | |
| 8664 | ;; |
| 8665 | esac |
| 8666 | fi |
| 8667 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 8668 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 8670 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 8671 | else |
| 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8673 | $as_echo "no" >&6; } |
| 8674 | fi |
| 8675 | |
| 8676 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 8677 | OCAMLLEXDOTOPT="no" |
| 8678 | else |
| 8679 | case $cross_compiling:$ac_tool_warned in |
| 8680 | yes:) |
| 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8683 | ac_tool_warned=yes ;; |
| 8684 | esac |
| 8685 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 8686 | fi |
| 8687 | else |
| 8688 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 8689 | fi |
| 8690 | |
| 8691 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 8692 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 8693 | fi |
| 8694 | fi |
| 8695 | |
| 8696 | |
| 8697 | |
| 8698 | elif test "xocamlyacc" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then : |
| 8699 | if test -n "$ac_tool_prefix"; then |
| 8700 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 8701 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8703 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8704 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 8705 | $as_echo_n "(cached) " >&6 |
| 8706 | else |
| 8707 | case $OCAMLYACC in |
| 8708 | [\\/]* | ?:[\\/]*) |
| 8709 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 8710 | ;; |
| 8711 | *) |
| 8712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8713 | for as_dir in $PATH |
| 8714 | do |
| 8715 | IFS=$as_save_IFS |
| 8716 | test -z "$as_dir" && as_dir=. |
| 8717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8719 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8721 | break 2 |
| 8722 | fi |
| 8723 | done |
| 8724 | done |
| 8725 | IFS=$as_save_IFS |
| 8726 | |
| 8727 | ;; |
| 8728 | esac |
| 8729 | fi |
| 8730 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 8731 | if test -n "$OCAMLYACC"; then |
| 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 8733 | $as_echo "$OCAMLYACC" >&6; } |
| 8734 | else |
| 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8736 | $as_echo "no" >&6; } |
| 8737 | fi |
| 8738 | |
| 8739 | |
| 8740 | fi |
| 8741 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 8742 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 8743 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 8744 | set dummy ocamlyacc; ac_word=$2 |
| 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8746 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8747 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 8748 | $as_echo_n "(cached) " >&6 |
| 8749 | else |
| 8750 | case $ac_pt_OCAMLYACC in |
| 8751 | [\\/]* | ?:[\\/]*) |
| 8752 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 8753 | ;; |
| 8754 | *) |
| 8755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8756 | for as_dir in $PATH |
| 8757 | do |
| 8758 | IFS=$as_save_IFS |
| 8759 | test -z "$as_dir" && as_dir=. |
| 8760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8762 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8764 | break 2 |
| 8765 | fi |
| 8766 | done |
| 8767 | done |
| 8768 | IFS=$as_save_IFS |
| 8769 | |
| 8770 | ;; |
| 8771 | esac |
| 8772 | fi |
| 8773 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 8774 | if test -n "$ac_pt_OCAMLYACC"; then |
| 8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 8776 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 8777 | else |
| 8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8779 | $as_echo "no" >&6; } |
| 8780 | fi |
| 8781 | |
| 8782 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 8783 | OCAMLYACC="no" |
| 8784 | else |
| 8785 | case $cross_compiling:$ac_tool_warned in |
| 8786 | yes:) |
| 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8789 | ac_tool_warned=yes ;; |
| 8790 | esac |
| 8791 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 8792 | fi |
| 8793 | else |
| 8794 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 8795 | fi |
| 8796 | |
| 8797 | |
| 8798 | |
| 8799 | |
| 8800 | else |
| 8801 | if test -n "$ac_tool_prefix"; then |
| 8802 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 8803 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8805 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8806 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 8807 | $as_echo_n "(cached) " >&6 |
| 8808 | else |
| 8809 | case $OCAMLYACC in |
| 8810 | [\\/]* | ?:[\\/]*) |
| 8811 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 8812 | ;; |
| 8813 | *) |
| 8814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8815 | for as_dir in $PATH |
| 8816 | do |
| 8817 | IFS=$as_save_IFS |
| 8818 | test -z "$as_dir" && as_dir=. |
| 8819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8821 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8823 | break 2 |
| 8824 | fi |
| 8825 | done |
| 8826 | done |
| 8827 | IFS=$as_save_IFS |
| 8828 | |
| 8829 | ;; |
| 8830 | esac |
| 8831 | fi |
| 8832 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 8833 | if test -n "$OCAMLYACC"; then |
| 8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 8835 | $as_echo "$OCAMLYACC" >&6; } |
| 8836 | else |
| 8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8838 | $as_echo "no" >&6; } |
| 8839 | fi |
| 8840 | |
| 8841 | |
| 8842 | fi |
| 8843 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 8844 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 8845 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 8846 | set dummy ocamlyacc; ac_word=$2 |
| 8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8848 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8849 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 8850 | $as_echo_n "(cached) " >&6 |
| 8851 | else |
| 8852 | case $ac_pt_OCAMLYACC in |
| 8853 | [\\/]* | ?:[\\/]*) |
| 8854 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 8855 | ;; |
| 8856 | *) |
| 8857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8858 | for as_dir in $PATH |
| 8859 | do |
| 8860 | IFS=$as_save_IFS |
| 8861 | test -z "$as_dir" && as_dir=. |
| 8862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8864 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 8865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8866 | break 2 |
| 8867 | fi |
| 8868 | done |
| 8869 | done |
| 8870 | IFS=$as_save_IFS |
| 8871 | |
| 8872 | ;; |
| 8873 | esac |
| 8874 | fi |
| 8875 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 8876 | if test -n "$ac_pt_OCAMLYACC"; then |
| 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 8878 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 8879 | else |
| 8880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8881 | $as_echo "no" >&6; } |
| 8882 | fi |
| 8883 | |
| 8884 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 8885 | OCAMLYACC="" |
| 8886 | else |
| 8887 | case $cross_compiling:$ac_tool_warned in |
| 8888 | yes:) |
| 8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8891 | ac_tool_warned=yes ;; |
| 8892 | esac |
| 8893 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 8894 | fi |
| 8895 | else |
| 8896 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 8897 | fi |
| 8898 | |
| 8899 | |
| 8900 | fi |
| 8901 | |
| 8902 | SUBSTITUTED_OCAMLYACC=yes |
| 8903 | |
| 8904 | |
| 8905 | fi |
| 8906 | |
| 8907 | fi |
| 8908 | |
| 8909 | if test -z "$OCAMLYACC"; then : |
| 8910 | OCAMLYACC=no |
| 8911 | |
| 8912 | fi |
| 8913 | |
| 8914 | |
| 8915 | |
| 8916 | # Check whether --with-ocamlfind was given. |
| 8917 | if test "${with_ocamlfind+set}" = set; then : |
| 8918 | withval=$with_ocamlfind; |
| 8919 | fi |
| 8920 | |
| 8921 | with_OCAMLFIND="$with_ocamlfind" |
| 8922 | |
| 8923 | if test -n "$with_OCAMLFIND" -a "x$with_OCAMLFIND" != xno -a "x$with_OCAMLFIND" != xyes; then : |
| 8924 | OCAMLFIND="$with_OCAMLFIND" |
| 8925 | |
| 8926 | |
| 8927 | else |
| 8928 | OCAMLFIND="ocamlfind" |
| 8929 | |
| 8930 | |
| 8931 | fi |
| 8932 | |
| 8933 | if test "x$with_OCAMLFIND" = xno; then : |
| 8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind is disabled explicitly" >&5 |
| 8935 | $as_echo "$as_me: ocamlfind is disabled explicitly" >&6;} |
| 8936 | OCAMLFIND=no |
| 8937 | |
| 8938 | |
| 8939 | else |
| 8940 | if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then : |
| 8941 | |
| 8942 | |
| 8943 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 8944 | if test -n "$ac_tool_prefix"; then |
| 8945 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8946 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8948 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8949 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 8950 | $as_echo_n "(cached) " >&6 |
| 8951 | else |
| 8952 | case $PKG_CONFIG in |
| 8953 | [\\/]* | ?:[\\/]*) |
| 8954 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8955 | ;; |
| 8956 | *) |
| 8957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8958 | for as_dir in $PATH |
| 8959 | do |
| 8960 | IFS=$as_save_IFS |
| 8961 | test -z "$as_dir" && as_dir=. |
| 8962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8964 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8966 | break 2 |
| 8967 | fi |
| 8968 | done |
| 8969 | done |
| 8970 | IFS=$as_save_IFS |
| 8971 | |
| 8972 | ;; |
| 8973 | esac |
| 8974 | fi |
| 8975 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8976 | if test -n "$PKG_CONFIG"; then |
| 8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8978 | $as_echo "$PKG_CONFIG" >&6; } |
| 8979 | else |
| 8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8981 | $as_echo "no" >&6; } |
| 8982 | fi |
| 8983 | |
| 8984 | |
| 8985 | fi |
| 8986 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8987 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8988 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8989 | set dummy pkg-config; ac_word=$2 |
| 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8991 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8992 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 8993 | $as_echo_n "(cached) " >&6 |
| 8994 | else |
| 8995 | case $ac_pt_PKG_CONFIG in |
| 8996 | [\\/]* | ?:[\\/]*) |
| 8997 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8998 | ;; |
| 8999 | *) |
| 9000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9001 | for as_dir in $PATH |
| 9002 | do |
| 9003 | IFS=$as_save_IFS |
| 9004 | test -z "$as_dir" && as_dir=. |
| 9005 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9007 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9009 | break 2 |
| 9010 | fi |
| 9011 | done |
| 9012 | done |
| 9013 | IFS=$as_save_IFS |
| 9014 | |
| 9015 | ;; |
| 9016 | esac |
| 9017 | fi |
| 9018 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 9019 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 9021 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 9022 | else |
| 9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9024 | $as_echo "no" >&6; } |
| 9025 | fi |
| 9026 | |
| 9027 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 9028 | PKG_CONFIG="" |
| 9029 | else |
| 9030 | case $cross_compiling:$ac_tool_warned in |
| 9031 | yes:) |
| 9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9034 | ac_tool_warned=yes ;; |
| 9035 | esac |
| 9036 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 9037 | fi |
| 9038 | else |
| 9039 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 9040 | fi |
| 9041 | |
| 9042 | fi |
| 9043 | if test -n "$PKG_CONFIG"; then |
| 9044 | _pkg_min_version=0.9.0 |
| 9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 9046 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 9047 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9049 | $as_echo "yes" >&6; } |
| 9050 | else |
| 9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9052 | $as_echo "no" >&6; } |
| 9053 | PKG_CONFIG="" |
| 9054 | fi |
| 9055 | |
| 9056 | fi |
| 9057 | |
| 9058 | elif test "x$OCAMLFIND" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then : |
| 9059 | # checking for ocamllex |
| 9060 | if test -n "$ac_tool_prefix"; then |
| 9061 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 9062 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9064 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9065 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 9066 | $as_echo_n "(cached) " >&6 |
| 9067 | else |
| 9068 | case $OCAMLLEX in |
| 9069 | [\\/]* | ?:[\\/]*) |
| 9070 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 9071 | ;; |
| 9072 | *) |
| 9073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9074 | for as_dir in $PATH |
| 9075 | do |
| 9076 | IFS=$as_save_IFS |
| 9077 | test -z "$as_dir" && as_dir=. |
| 9078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9080 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 9081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9082 | break 2 |
| 9083 | fi |
| 9084 | done |
| 9085 | done |
| 9086 | IFS=$as_save_IFS |
| 9087 | |
| 9088 | ;; |
| 9089 | esac |
| 9090 | fi |
| 9091 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 9092 | if test -n "$OCAMLLEX"; then |
| 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 9094 | $as_echo "$OCAMLLEX" >&6; } |
| 9095 | else |
| 9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9097 | $as_echo "no" >&6; } |
| 9098 | fi |
| 9099 | |
| 9100 | |
| 9101 | fi |
| 9102 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 9103 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 9104 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 9105 | set dummy ocamllex; ac_word=$2 |
| 9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9107 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9108 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 9109 | $as_echo_n "(cached) " >&6 |
| 9110 | else |
| 9111 | case $ac_pt_OCAMLLEX in |
| 9112 | [\\/]* | ?:[\\/]*) |
| 9113 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 9114 | ;; |
| 9115 | *) |
| 9116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9117 | for as_dir in $PATH |
| 9118 | do |
| 9119 | IFS=$as_save_IFS |
| 9120 | test -z "$as_dir" && as_dir=. |
| 9121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9123 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 9124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9125 | break 2 |
| 9126 | fi |
| 9127 | done |
| 9128 | done |
| 9129 | IFS=$as_save_IFS |
| 9130 | |
| 9131 | ;; |
| 9132 | esac |
| 9133 | fi |
| 9134 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 9135 | if test -n "$ac_pt_OCAMLLEX"; then |
| 9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 9137 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 9138 | else |
| 9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9140 | $as_echo "no" >&6; } |
| 9141 | fi |
| 9142 | |
| 9143 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 9144 | OCAMLLEX="no" |
| 9145 | else |
| 9146 | case $cross_compiling:$ac_tool_warned in |
| 9147 | yes:) |
| 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9149 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9150 | ac_tool_warned=yes ;; |
| 9151 | esac |
| 9152 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 9153 | fi |
| 9154 | else |
| 9155 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 9156 | fi |
| 9157 | |
| 9158 | if test "$OCAMLLEX" != "no"; then |
| 9159 | if test -n "$ac_tool_prefix"; then |
| 9160 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 9161 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9163 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9164 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 9165 | $as_echo_n "(cached) " >&6 |
| 9166 | else |
| 9167 | case $OCAMLLEXDOTOPT in |
| 9168 | [\\/]* | ?:[\\/]*) |
| 9169 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 9170 | ;; |
| 9171 | *) |
| 9172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9173 | for as_dir in $PATH |
| 9174 | do |
| 9175 | IFS=$as_save_IFS |
| 9176 | test -z "$as_dir" && as_dir=. |
| 9177 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9179 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 9180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9181 | break 2 |
| 9182 | fi |
| 9183 | done |
| 9184 | done |
| 9185 | IFS=$as_save_IFS |
| 9186 | |
| 9187 | ;; |
| 9188 | esac |
| 9189 | fi |
| 9190 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 9191 | if test -n "$OCAMLLEXDOTOPT"; then |
| 9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 9193 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 9194 | else |
| 9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9196 | $as_echo "no" >&6; } |
| 9197 | fi |
| 9198 | |
| 9199 | |
| 9200 | fi |
| 9201 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 9202 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 9203 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 9204 | set dummy ocamllex.opt; ac_word=$2 |
| 9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9206 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9207 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 9208 | $as_echo_n "(cached) " >&6 |
| 9209 | else |
| 9210 | case $ac_pt_OCAMLLEXDOTOPT in |
| 9211 | [\\/]* | ?:[\\/]*) |
| 9212 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 9213 | ;; |
| 9214 | *) |
| 9215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9216 | for as_dir in $PATH |
| 9217 | do |
| 9218 | IFS=$as_save_IFS |
| 9219 | test -z "$as_dir" && as_dir=. |
| 9220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9222 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 9223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9224 | break 2 |
| 9225 | fi |
| 9226 | done |
| 9227 | done |
| 9228 | IFS=$as_save_IFS |
| 9229 | |
| 9230 | ;; |
| 9231 | esac |
| 9232 | fi |
| 9233 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 9234 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 9235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 9236 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 9237 | else |
| 9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9239 | $as_echo "no" >&6; } |
| 9240 | fi |
| 9241 | |
| 9242 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 9243 | OCAMLLEXDOTOPT="no" |
| 9244 | else |
| 9245 | case $cross_compiling:$ac_tool_warned in |
| 9246 | yes:) |
| 9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9249 | ac_tool_warned=yes ;; |
| 9250 | esac |
| 9251 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 9252 | fi |
| 9253 | else |
| 9254 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 9255 | fi |
| 9256 | |
| 9257 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 9258 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 9259 | fi |
| 9260 | fi |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | elif test "x$OCAMLFIND" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then : |
| 9265 | if test -n "$ac_tool_prefix"; then |
| 9266 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 9267 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9269 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9270 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 9271 | $as_echo_n "(cached) " >&6 |
| 9272 | else |
| 9273 | case $OCAMLYACC in |
| 9274 | [\\/]* | ?:[\\/]*) |
| 9275 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 9276 | ;; |
| 9277 | *) |
| 9278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9279 | for as_dir in $PATH |
| 9280 | do |
| 9281 | IFS=$as_save_IFS |
| 9282 | test -z "$as_dir" && as_dir=. |
| 9283 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9285 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 9286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9287 | break 2 |
| 9288 | fi |
| 9289 | done |
| 9290 | done |
| 9291 | IFS=$as_save_IFS |
| 9292 | |
| 9293 | ;; |
| 9294 | esac |
| 9295 | fi |
| 9296 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 9297 | if test -n "$OCAMLYACC"; then |
| 9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 9299 | $as_echo "$OCAMLYACC" >&6; } |
| 9300 | else |
| 9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9302 | $as_echo "no" >&6; } |
| 9303 | fi |
| 9304 | |
| 9305 | |
| 9306 | fi |
| 9307 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 9308 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 9309 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 9310 | set dummy ocamlyacc; ac_word=$2 |
| 9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9312 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9313 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 9314 | $as_echo_n "(cached) " >&6 |
| 9315 | else |
| 9316 | case $ac_pt_OCAMLYACC in |
| 9317 | [\\/]* | ?:[\\/]*) |
| 9318 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 9319 | ;; |
| 9320 | *) |
| 9321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9322 | for as_dir in $PATH |
| 9323 | do |
| 9324 | IFS=$as_save_IFS |
| 9325 | test -z "$as_dir" && as_dir=. |
| 9326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9328 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 9329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9330 | break 2 |
| 9331 | fi |
| 9332 | done |
| 9333 | done |
| 9334 | IFS=$as_save_IFS |
| 9335 | |
| 9336 | ;; |
| 9337 | esac |
| 9338 | fi |
| 9339 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 9340 | if test -n "$ac_pt_OCAMLYACC"; then |
| 9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 9342 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 9343 | else |
| 9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9345 | $as_echo "no" >&6; } |
| 9346 | fi |
| 9347 | |
| 9348 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 9349 | OCAMLYACC="no" |
| 9350 | else |
| 9351 | case $cross_compiling:$ac_tool_warned in |
| 9352 | yes:) |
| 9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9355 | ac_tool_warned=yes ;; |
| 9356 | esac |
| 9357 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 9358 | fi |
| 9359 | else |
| 9360 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 9361 | fi |
| 9362 | |
| 9363 | |
| 9364 | |
| 9365 | |
| 9366 | else |
| 9367 | if test -n "$ac_tool_prefix"; then |
| 9368 | # Extract the first word of "${ac_tool_prefix}[$]OCAMLFIND", so it can be a program name with args. |
| 9369 | set dummy ${ac_tool_prefix}$OCAMLFIND; ac_word=$2 |
| 9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9371 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9372 | if ${ac_cv_path_OCAMLFIND+:} false; then : |
| 9373 | $as_echo_n "(cached) " >&6 |
| 9374 | else |
| 9375 | case $OCAMLFIND in |
| 9376 | [\\/]* | ?:[\\/]*) |
| 9377 | ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. |
| 9378 | ;; |
| 9379 | *) |
| 9380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9381 | for as_dir in $PATH |
| 9382 | do |
| 9383 | IFS=$as_save_IFS |
| 9384 | test -z "$as_dir" && as_dir=. |
| 9385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9387 | ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" |
| 9388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9389 | break 2 |
| 9390 | fi |
| 9391 | done |
| 9392 | done |
| 9393 | IFS=$as_save_IFS |
| 9394 | |
| 9395 | ;; |
| 9396 | esac |
| 9397 | fi |
| 9398 | OCAMLFIND=$ac_cv_path_OCAMLFIND |
| 9399 | if test -n "$OCAMLFIND"; then |
| 9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 |
| 9401 | $as_echo "$OCAMLFIND" >&6; } |
| 9402 | else |
| 9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9404 | $as_echo "no" >&6; } |
| 9405 | fi |
| 9406 | |
| 9407 | |
| 9408 | fi |
| 9409 | if test -z "$ac_cv_path_OCAMLFIND"; then |
| 9410 | ac_pt_OCAMLFIND=$OCAMLFIND |
| 9411 | # Extract the first word of "[$]OCAMLFIND", so it can be a program name with args. |
| 9412 | set dummy $OCAMLFIND; ac_word=$2 |
| 9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9414 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9415 | if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then : |
| 9416 | $as_echo_n "(cached) " >&6 |
| 9417 | else |
| 9418 | case $ac_pt_OCAMLFIND in |
| 9419 | [\\/]* | ?:[\\/]*) |
| 9420 | ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path. |
| 9421 | ;; |
| 9422 | *) |
| 9423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9424 | for as_dir in $PATH |
| 9425 | do |
| 9426 | IFS=$as_save_IFS |
| 9427 | test -z "$as_dir" && as_dir=. |
| 9428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9430 | ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" |
| 9431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9432 | break 2 |
| 9433 | fi |
| 9434 | done |
| 9435 | done |
| 9436 | IFS=$as_save_IFS |
| 9437 | |
| 9438 | ;; |
| 9439 | esac |
| 9440 | fi |
| 9441 | ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND |
| 9442 | if test -n "$ac_pt_OCAMLFIND"; then |
| 9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5 |
| 9444 | $as_echo "$ac_pt_OCAMLFIND" >&6; } |
| 9445 | else |
| 9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9447 | $as_echo "no" >&6; } |
| 9448 | fi |
| 9449 | |
| 9450 | if test "x$ac_pt_OCAMLFIND" = x; then |
| 9451 | OCAMLFIND="" |
| 9452 | else |
| 9453 | case $cross_compiling:$ac_tool_warned in |
| 9454 | yes:) |
| 9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9456 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9457 | ac_tool_warned=yes ;; |
| 9458 | esac |
| 9459 | OCAMLFIND=$ac_pt_OCAMLFIND |
| 9460 | fi |
| 9461 | else |
| 9462 | OCAMLFIND="$ac_cv_path_OCAMLFIND" |
| 9463 | fi |
| 9464 | |
| 9465 | |
| 9466 | fi |
| 9467 | |
| 9468 | |
| 9469 | fi |
| 9470 | |
| 9471 | if test -z "$OCAMLFIND" -o "x$OCAMLFIND" = xno; then : |
| 9472 | if test "x$with_OCAMLFIND" = xyes; then : |
| 9473 | as_fn_error $? "--with=ocamlfind is given explicitly but not found" "$LINENO" 5 |
| 9474 | |
| 9475 | fi |
| 9476 | |
| 9477 | if test -n "$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"; then : |
| 9478 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&5 |
| 9479 | $as_echo "$as_me: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&6;} |
| 9480 | OCAMLFIND="$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind" |
| 9481 | |
| 9482 | if test "xocamlfind" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then : |
| 9483 | |
| 9484 | |
| 9485 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 9486 | if test -n "$ac_tool_prefix"; then |
| 9487 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9488 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9490 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9491 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 9492 | $as_echo_n "(cached) " >&6 |
| 9493 | else |
| 9494 | case $PKG_CONFIG in |
| 9495 | [\\/]* | ?:[\\/]*) |
| 9496 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 9497 | ;; |
| 9498 | *) |
| 9499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9500 | for as_dir in $PATH |
| 9501 | do |
| 9502 | IFS=$as_save_IFS |
| 9503 | test -z "$as_dir" && as_dir=. |
| 9504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9506 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9508 | break 2 |
| 9509 | fi |
| 9510 | done |
| 9511 | done |
| 9512 | IFS=$as_save_IFS |
| 9513 | |
| 9514 | ;; |
| 9515 | esac |
| 9516 | fi |
| 9517 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 9518 | if test -n "$PKG_CONFIG"; then |
| 9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9520 | $as_echo "$PKG_CONFIG" >&6; } |
| 9521 | else |
| 9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9523 | $as_echo "no" >&6; } |
| 9524 | fi |
| 9525 | |
| 9526 | |
| 9527 | fi |
| 9528 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 9529 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 9530 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 9531 | set dummy pkg-config; ac_word=$2 |
| 9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9533 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9534 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 9535 | $as_echo_n "(cached) " >&6 |
| 9536 | else |
| 9537 | case $ac_pt_PKG_CONFIG in |
| 9538 | [\\/]* | ?:[\\/]*) |
| 9539 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 9540 | ;; |
| 9541 | *) |
| 9542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9543 | for as_dir in $PATH |
| 9544 | do |
| 9545 | IFS=$as_save_IFS |
| 9546 | test -z "$as_dir" && as_dir=. |
| 9547 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9549 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9551 | break 2 |
| 9552 | fi |
| 9553 | done |
| 9554 | done |
| 9555 | IFS=$as_save_IFS |
| 9556 | |
| 9557 | ;; |
| 9558 | esac |
| 9559 | fi |
| 9560 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 9561 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 9563 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 9564 | else |
| 9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9566 | $as_echo "no" >&6; } |
| 9567 | fi |
| 9568 | |
| 9569 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 9570 | PKG_CONFIG="" |
| 9571 | else |
| 9572 | case $cross_compiling:$ac_tool_warned in |
| 9573 | yes:) |
| 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9576 | ac_tool_warned=yes ;; |
| 9577 | esac |
| 9578 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 9579 | fi |
| 9580 | else |
| 9581 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 9582 | fi |
| 9583 | |
| 9584 | fi |
| 9585 | if test -n "$PKG_CONFIG"; then |
| 9586 | _pkg_min_version=0.9.0 |
| 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 9588 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 9589 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9591 | $as_echo "yes" >&6; } |
| 9592 | else |
| 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9594 | $as_echo "no" >&6; } |
| 9595 | PKG_CONFIG="" |
| 9596 | fi |
| 9597 | |
| 9598 | fi |
| 9599 | |
| 9600 | elif test "xocamlfind" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then : |
| 9601 | # checking for ocamllex |
| 9602 | if test -n "$ac_tool_prefix"; then |
| 9603 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 9604 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9606 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9607 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 9608 | $as_echo_n "(cached) " >&6 |
| 9609 | else |
| 9610 | case $OCAMLLEX in |
| 9611 | [\\/]* | ?:[\\/]*) |
| 9612 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 9613 | ;; |
| 9614 | *) |
| 9615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9616 | for as_dir in $PATH |
| 9617 | do |
| 9618 | IFS=$as_save_IFS |
| 9619 | test -z "$as_dir" && as_dir=. |
| 9620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9622 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 9623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9624 | break 2 |
| 9625 | fi |
| 9626 | done |
| 9627 | done |
| 9628 | IFS=$as_save_IFS |
| 9629 | |
| 9630 | ;; |
| 9631 | esac |
| 9632 | fi |
| 9633 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 9634 | if test -n "$OCAMLLEX"; then |
| 9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 9636 | $as_echo "$OCAMLLEX" >&6; } |
| 9637 | else |
| 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9639 | $as_echo "no" >&6; } |
| 9640 | fi |
| 9641 | |
| 9642 | |
| 9643 | fi |
| 9644 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 9645 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 9646 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 9647 | set dummy ocamllex; ac_word=$2 |
| 9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9649 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9650 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 9651 | $as_echo_n "(cached) " >&6 |
| 9652 | else |
| 9653 | case $ac_pt_OCAMLLEX in |
| 9654 | [\\/]* | ?:[\\/]*) |
| 9655 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 9656 | ;; |
| 9657 | *) |
| 9658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9659 | for as_dir in $PATH |
| 9660 | do |
| 9661 | IFS=$as_save_IFS |
| 9662 | test -z "$as_dir" && as_dir=. |
| 9663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9665 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 9666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9667 | break 2 |
| 9668 | fi |
| 9669 | done |
| 9670 | done |
| 9671 | IFS=$as_save_IFS |
| 9672 | |
| 9673 | ;; |
| 9674 | esac |
| 9675 | fi |
| 9676 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 9677 | if test -n "$ac_pt_OCAMLLEX"; then |
| 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 9679 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 9680 | else |
| 9681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9682 | $as_echo "no" >&6; } |
| 9683 | fi |
| 9684 | |
| 9685 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 9686 | OCAMLLEX="no" |
| 9687 | else |
| 9688 | case $cross_compiling:$ac_tool_warned in |
| 9689 | yes:) |
| 9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9692 | ac_tool_warned=yes ;; |
| 9693 | esac |
| 9694 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 9695 | fi |
| 9696 | else |
| 9697 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 9698 | fi |
| 9699 | |
| 9700 | if test "$OCAMLLEX" != "no"; then |
| 9701 | if test -n "$ac_tool_prefix"; then |
| 9702 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 9703 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9705 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9706 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 9707 | $as_echo_n "(cached) " >&6 |
| 9708 | else |
| 9709 | case $OCAMLLEXDOTOPT in |
| 9710 | [\\/]* | ?:[\\/]*) |
| 9711 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 9712 | ;; |
| 9713 | *) |
| 9714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9715 | for as_dir in $PATH |
| 9716 | do |
| 9717 | IFS=$as_save_IFS |
| 9718 | test -z "$as_dir" && as_dir=. |
| 9719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9721 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 9722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9723 | break 2 |
| 9724 | fi |
| 9725 | done |
| 9726 | done |
| 9727 | IFS=$as_save_IFS |
| 9728 | |
| 9729 | ;; |
| 9730 | esac |
| 9731 | fi |
| 9732 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 9733 | if test -n "$OCAMLLEXDOTOPT"; then |
| 9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 9735 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 9736 | else |
| 9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9738 | $as_echo "no" >&6; } |
| 9739 | fi |
| 9740 | |
| 9741 | |
| 9742 | fi |
| 9743 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 9744 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 9745 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 9746 | set dummy ocamllex.opt; ac_word=$2 |
| 9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9748 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9749 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 9750 | $as_echo_n "(cached) " >&6 |
| 9751 | else |
| 9752 | case $ac_pt_OCAMLLEXDOTOPT in |
| 9753 | [\\/]* | ?:[\\/]*) |
| 9754 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 9755 | ;; |
| 9756 | *) |
| 9757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9758 | for as_dir in $PATH |
| 9759 | do |
| 9760 | IFS=$as_save_IFS |
| 9761 | test -z "$as_dir" && as_dir=. |
| 9762 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9764 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 9765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9766 | break 2 |
| 9767 | fi |
| 9768 | done |
| 9769 | done |
| 9770 | IFS=$as_save_IFS |
| 9771 | |
| 9772 | ;; |
| 9773 | esac |
| 9774 | fi |
| 9775 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 9776 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 9778 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 9779 | else |
| 9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9781 | $as_echo "no" >&6; } |
| 9782 | fi |
| 9783 | |
| 9784 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 9785 | OCAMLLEXDOTOPT="no" |
| 9786 | else |
| 9787 | case $cross_compiling:$ac_tool_warned in |
| 9788 | yes:) |
| 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9790 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9791 | ac_tool_warned=yes ;; |
| 9792 | esac |
| 9793 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 9794 | fi |
| 9795 | else |
| 9796 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 9797 | fi |
| 9798 | |
| 9799 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 9800 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 9801 | fi |
| 9802 | fi |
| 9803 | |
| 9804 | |
| 9805 | |
| 9806 | elif test "xocamlfind" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then : |
| 9807 | if test -n "$ac_tool_prefix"; then |
| 9808 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 9809 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9811 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9812 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 9813 | $as_echo_n "(cached) " >&6 |
| 9814 | else |
| 9815 | case $OCAMLYACC in |
| 9816 | [\\/]* | ?:[\\/]*) |
| 9817 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 9818 | ;; |
| 9819 | *) |
| 9820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9821 | for as_dir in $PATH |
| 9822 | do |
| 9823 | IFS=$as_save_IFS |
| 9824 | test -z "$as_dir" && as_dir=. |
| 9825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9827 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 9828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9829 | break 2 |
| 9830 | fi |
| 9831 | done |
| 9832 | done |
| 9833 | IFS=$as_save_IFS |
| 9834 | |
| 9835 | ;; |
| 9836 | esac |
| 9837 | fi |
| 9838 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 9839 | if test -n "$OCAMLYACC"; then |
| 9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 9841 | $as_echo "$OCAMLYACC" >&6; } |
| 9842 | else |
| 9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9844 | $as_echo "no" >&6; } |
| 9845 | fi |
| 9846 | |
| 9847 | |
| 9848 | fi |
| 9849 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 9850 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 9851 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 9852 | set dummy ocamlyacc; ac_word=$2 |
| 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9854 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9855 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 9856 | $as_echo_n "(cached) " >&6 |
| 9857 | else |
| 9858 | case $ac_pt_OCAMLYACC in |
| 9859 | [\\/]* | ?:[\\/]*) |
| 9860 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 9861 | ;; |
| 9862 | *) |
| 9863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9864 | for as_dir in $PATH |
| 9865 | do |
| 9866 | IFS=$as_save_IFS |
| 9867 | test -z "$as_dir" && as_dir=. |
| 9868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9870 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 9871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9872 | break 2 |
| 9873 | fi |
| 9874 | done |
| 9875 | done |
| 9876 | IFS=$as_save_IFS |
| 9877 | |
| 9878 | ;; |
| 9879 | esac |
| 9880 | fi |
| 9881 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 9882 | if test -n "$ac_pt_OCAMLYACC"; then |
| 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 9884 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 9885 | else |
| 9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9887 | $as_echo "no" >&6; } |
| 9888 | fi |
| 9889 | |
| 9890 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 9891 | OCAMLYACC="no" |
| 9892 | else |
| 9893 | case $cross_compiling:$ac_tool_warned in |
| 9894 | yes:) |
| 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9896 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9897 | ac_tool_warned=yes ;; |
| 9898 | esac |
| 9899 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 9900 | fi |
| 9901 | else |
| 9902 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 9903 | fi |
| 9904 | |
| 9905 | |
| 9906 | |
| 9907 | |
| 9908 | else |
| 9909 | if test -n "$ac_tool_prefix"; then |
| 9910 | # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args. |
| 9911 | set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2 |
| 9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9913 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9914 | if ${ac_cv_path_OCAMLFIND+:} false; then : |
| 9915 | $as_echo_n "(cached) " >&6 |
| 9916 | else |
| 9917 | case $OCAMLFIND in |
| 9918 | [\\/]* | ?:[\\/]*) |
| 9919 | ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path. |
| 9920 | ;; |
| 9921 | *) |
| 9922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9923 | for as_dir in $PATH |
| 9924 | do |
| 9925 | IFS=$as_save_IFS |
| 9926 | test -z "$as_dir" && as_dir=. |
| 9927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9929 | ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" |
| 9930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9931 | break 2 |
| 9932 | fi |
| 9933 | done |
| 9934 | done |
| 9935 | IFS=$as_save_IFS |
| 9936 | |
| 9937 | ;; |
| 9938 | esac |
| 9939 | fi |
| 9940 | OCAMLFIND=$ac_cv_path_OCAMLFIND |
| 9941 | if test -n "$OCAMLFIND"; then |
| 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 |
| 9943 | $as_echo "$OCAMLFIND" >&6; } |
| 9944 | else |
| 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9946 | $as_echo "no" >&6; } |
| 9947 | fi |
| 9948 | |
| 9949 | |
| 9950 | fi |
| 9951 | if test -z "$ac_cv_path_OCAMLFIND"; then |
| 9952 | ac_pt_OCAMLFIND=$OCAMLFIND |
| 9953 | # Extract the first word of "ocamlfind", so it can be a program name with args. |
| 9954 | set dummy ocamlfind; ac_word=$2 |
| 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9956 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9957 | if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then : |
| 9958 | $as_echo_n "(cached) " >&6 |
| 9959 | else |
| 9960 | case $ac_pt_OCAMLFIND in |
| 9961 | [\\/]* | ?:[\\/]*) |
| 9962 | ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path. |
| 9963 | ;; |
| 9964 | *) |
| 9965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9966 | for as_dir in $PATH |
| 9967 | do |
| 9968 | IFS=$as_save_IFS |
| 9969 | test -z "$as_dir" && as_dir=. |
| 9970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9972 | ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext" |
| 9973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9974 | break 2 |
| 9975 | fi |
| 9976 | done |
| 9977 | done |
| 9978 | IFS=$as_save_IFS |
| 9979 | |
| 9980 | ;; |
| 9981 | esac |
| 9982 | fi |
| 9983 | ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND |
| 9984 | if test -n "$ac_pt_OCAMLFIND"; then |
| 9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5 |
| 9986 | $as_echo "$ac_pt_OCAMLFIND" >&6; } |
| 9987 | else |
| 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9989 | $as_echo "no" >&6; } |
| 9990 | fi |
| 9991 | |
| 9992 | if test "x$ac_pt_OCAMLFIND" = x; then |
| 9993 | OCAMLFIND="" |
| 9994 | else |
| 9995 | case $cross_compiling:$ac_tool_warned in |
| 9996 | yes:) |
| 9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9998 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9999 | ac_tool_warned=yes ;; |
| 10000 | esac |
| 10001 | OCAMLFIND=$ac_pt_OCAMLFIND |
| 10002 | fi |
| 10003 | else |
| 10004 | OCAMLFIND="$ac_cv_path_OCAMLFIND" |
| 10005 | fi |
| 10006 | |
| 10007 | |
| 10008 | fi |
| 10009 | |
| 10010 | SUBSTITUTED_OCAMLFIND=yes |
| 10011 | |
| 10012 | |
| 10013 | fi |
| 10014 | |
| 10015 | fi |
| 10016 | |
| 10017 | if test -z "$OCAMLFIND"; then : |
| 10018 | OCAMLFIND=no |
| 10019 | |
| 10020 | fi |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | # Check whether --with-ocamlprof was given. |
| 10025 | if test "${with_ocamlprof+set}" = set; then : |
| 10026 | withval=$with_ocamlprof; |
| 10027 | fi |
| 10028 | |
| 10029 | with_OCAMLPROF="$with_ocamlprof" |
| 10030 | |
| 10031 | if test -n "$with_OCAMLPROF" -a "x$with_OCAMLPROF" != xno -a "x$with_OCAMLPROF" != xyes; then : |
| 10032 | OCAMLPROF="$with_OCAMLPROF" |
| 10033 | |
| 10034 | |
| 10035 | else |
| 10036 | OCAMLPROF="ocamlprof" |
| 10037 | |
| 10038 | |
| 10039 | fi |
| 10040 | |
| 10041 | if test "x$with_OCAMLPROF" = xno; then : |
| 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof is disabled explicitly" >&5 |
| 10043 | $as_echo "$as_me: ocamlprof is disabled explicitly" >&6;} |
| 10044 | OCAMLPROF=no |
| 10045 | |
| 10046 | |
| 10047 | else |
| 10048 | if test "x$OCAMLPROF" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then : |
| 10049 | |
| 10050 | |
| 10051 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 10052 | if test -n "$ac_tool_prefix"; then |
| 10053 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 10054 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 10055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10056 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10057 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 10058 | $as_echo_n "(cached) " >&6 |
| 10059 | else |
| 10060 | case $PKG_CONFIG in |
| 10061 | [\\/]* | ?:[\\/]*) |
| 10062 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 10063 | ;; |
| 10064 | *) |
| 10065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10066 | for as_dir in $PATH |
| 10067 | do |
| 10068 | IFS=$as_save_IFS |
| 10069 | test -z "$as_dir" && as_dir=. |
| 10070 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10072 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10074 | break 2 |
| 10075 | fi |
| 10076 | done |
| 10077 | done |
| 10078 | IFS=$as_save_IFS |
| 10079 | |
| 10080 | ;; |
| 10081 | esac |
| 10082 | fi |
| 10083 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 10084 | if test -n "$PKG_CONFIG"; then |
| 10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 10086 | $as_echo "$PKG_CONFIG" >&6; } |
| 10087 | else |
| 10088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10089 | $as_echo "no" >&6; } |
| 10090 | fi |
| 10091 | |
| 10092 | |
| 10093 | fi |
| 10094 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 10095 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 10096 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10097 | set dummy pkg-config; ac_word=$2 |
| 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10099 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10100 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 10101 | $as_echo_n "(cached) " >&6 |
| 10102 | else |
| 10103 | case $ac_pt_PKG_CONFIG in |
| 10104 | [\\/]* | ?:[\\/]*) |
| 10105 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 10106 | ;; |
| 10107 | *) |
| 10108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10109 | for as_dir in $PATH |
| 10110 | do |
| 10111 | IFS=$as_save_IFS |
| 10112 | test -z "$as_dir" && as_dir=. |
| 10113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10115 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10117 | break 2 |
| 10118 | fi |
| 10119 | done |
| 10120 | done |
| 10121 | IFS=$as_save_IFS |
| 10122 | |
| 10123 | ;; |
| 10124 | esac |
| 10125 | fi |
| 10126 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 10127 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 10129 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 10130 | else |
| 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10132 | $as_echo "no" >&6; } |
| 10133 | fi |
| 10134 | |
| 10135 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 10136 | PKG_CONFIG="" |
| 10137 | else |
| 10138 | case $cross_compiling:$ac_tool_warned in |
| 10139 | yes:) |
| 10140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10141 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10142 | ac_tool_warned=yes ;; |
| 10143 | esac |
| 10144 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 10145 | fi |
| 10146 | else |
| 10147 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 10148 | fi |
| 10149 | |
| 10150 | fi |
| 10151 | if test -n "$PKG_CONFIG"; then |
| 10152 | _pkg_min_version=0.9.0 |
| 10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 10154 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 10155 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10157 | $as_echo "yes" >&6; } |
| 10158 | else |
| 10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10160 | $as_echo "no" >&6; } |
| 10161 | PKG_CONFIG="" |
| 10162 | fi |
| 10163 | |
| 10164 | fi |
| 10165 | |
| 10166 | elif test "x$OCAMLPROF" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then : |
| 10167 | # checking for ocamllex |
| 10168 | if test -n "$ac_tool_prefix"; then |
| 10169 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 10170 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10172 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10173 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 10174 | $as_echo_n "(cached) " >&6 |
| 10175 | else |
| 10176 | case $OCAMLLEX in |
| 10177 | [\\/]* | ?:[\\/]*) |
| 10178 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 10179 | ;; |
| 10180 | *) |
| 10181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10182 | for as_dir in $PATH |
| 10183 | do |
| 10184 | IFS=$as_save_IFS |
| 10185 | test -z "$as_dir" && as_dir=. |
| 10186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10188 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 10189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10190 | break 2 |
| 10191 | fi |
| 10192 | done |
| 10193 | done |
| 10194 | IFS=$as_save_IFS |
| 10195 | |
| 10196 | ;; |
| 10197 | esac |
| 10198 | fi |
| 10199 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 10200 | if test -n "$OCAMLLEX"; then |
| 10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 10202 | $as_echo "$OCAMLLEX" >&6; } |
| 10203 | else |
| 10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10205 | $as_echo "no" >&6; } |
| 10206 | fi |
| 10207 | |
| 10208 | |
| 10209 | fi |
| 10210 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 10211 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 10212 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 10213 | set dummy ocamllex; ac_word=$2 |
| 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10215 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10216 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 10217 | $as_echo_n "(cached) " >&6 |
| 10218 | else |
| 10219 | case $ac_pt_OCAMLLEX in |
| 10220 | [\\/]* | ?:[\\/]*) |
| 10221 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 10222 | ;; |
| 10223 | *) |
| 10224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10225 | for as_dir in $PATH |
| 10226 | do |
| 10227 | IFS=$as_save_IFS |
| 10228 | test -z "$as_dir" && as_dir=. |
| 10229 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10231 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 10232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10233 | break 2 |
| 10234 | fi |
| 10235 | done |
| 10236 | done |
| 10237 | IFS=$as_save_IFS |
| 10238 | |
| 10239 | ;; |
| 10240 | esac |
| 10241 | fi |
| 10242 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 10243 | if test -n "$ac_pt_OCAMLLEX"; then |
| 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 10245 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 10246 | else |
| 10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10248 | $as_echo "no" >&6; } |
| 10249 | fi |
| 10250 | |
| 10251 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 10252 | OCAMLLEX="no" |
| 10253 | else |
| 10254 | case $cross_compiling:$ac_tool_warned in |
| 10255 | yes:) |
| 10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10258 | ac_tool_warned=yes ;; |
| 10259 | esac |
| 10260 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 10261 | fi |
| 10262 | else |
| 10263 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 10264 | fi |
| 10265 | |
| 10266 | if test "$OCAMLLEX" != "no"; then |
| 10267 | if test -n "$ac_tool_prefix"; then |
| 10268 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 10269 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10271 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10272 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 10273 | $as_echo_n "(cached) " >&6 |
| 10274 | else |
| 10275 | case $OCAMLLEXDOTOPT in |
| 10276 | [\\/]* | ?:[\\/]*) |
| 10277 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 10278 | ;; |
| 10279 | *) |
| 10280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10281 | for as_dir in $PATH |
| 10282 | do |
| 10283 | IFS=$as_save_IFS |
| 10284 | test -z "$as_dir" && as_dir=. |
| 10285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10287 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 10288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10289 | break 2 |
| 10290 | fi |
| 10291 | done |
| 10292 | done |
| 10293 | IFS=$as_save_IFS |
| 10294 | |
| 10295 | ;; |
| 10296 | esac |
| 10297 | fi |
| 10298 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 10299 | if test -n "$OCAMLLEXDOTOPT"; then |
| 10300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 10301 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 10302 | else |
| 10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10304 | $as_echo "no" >&6; } |
| 10305 | fi |
| 10306 | |
| 10307 | |
| 10308 | fi |
| 10309 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 10310 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 10311 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 10312 | set dummy ocamllex.opt; ac_word=$2 |
| 10313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10314 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10315 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 10316 | $as_echo_n "(cached) " >&6 |
| 10317 | else |
| 10318 | case $ac_pt_OCAMLLEXDOTOPT in |
| 10319 | [\\/]* | ?:[\\/]*) |
| 10320 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 10321 | ;; |
| 10322 | *) |
| 10323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10324 | for as_dir in $PATH |
| 10325 | do |
| 10326 | IFS=$as_save_IFS |
| 10327 | test -z "$as_dir" && as_dir=. |
| 10328 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10330 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 10331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10332 | break 2 |
| 10333 | fi |
| 10334 | done |
| 10335 | done |
| 10336 | IFS=$as_save_IFS |
| 10337 | |
| 10338 | ;; |
| 10339 | esac |
| 10340 | fi |
| 10341 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 10342 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 10344 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 10345 | else |
| 10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10347 | $as_echo "no" >&6; } |
| 10348 | fi |
| 10349 | |
| 10350 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 10351 | OCAMLLEXDOTOPT="no" |
| 10352 | else |
| 10353 | case $cross_compiling:$ac_tool_warned in |
| 10354 | yes:) |
| 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10357 | ac_tool_warned=yes ;; |
| 10358 | esac |
| 10359 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 10360 | fi |
| 10361 | else |
| 10362 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 10363 | fi |
| 10364 | |
| 10365 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 10366 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 10367 | fi |
| 10368 | fi |
| 10369 | |
| 10370 | |
| 10371 | |
| 10372 | elif test "x$OCAMLPROF" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then : |
| 10373 | if test -n "$ac_tool_prefix"; then |
| 10374 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 10375 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10377 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10378 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 10379 | $as_echo_n "(cached) " >&6 |
| 10380 | else |
| 10381 | case $OCAMLYACC in |
| 10382 | [\\/]* | ?:[\\/]*) |
| 10383 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 10384 | ;; |
| 10385 | *) |
| 10386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10387 | for as_dir in $PATH |
| 10388 | do |
| 10389 | IFS=$as_save_IFS |
| 10390 | test -z "$as_dir" && as_dir=. |
| 10391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10393 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 10394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10395 | break 2 |
| 10396 | fi |
| 10397 | done |
| 10398 | done |
| 10399 | IFS=$as_save_IFS |
| 10400 | |
| 10401 | ;; |
| 10402 | esac |
| 10403 | fi |
| 10404 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 10405 | if test -n "$OCAMLYACC"; then |
| 10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 10407 | $as_echo "$OCAMLYACC" >&6; } |
| 10408 | else |
| 10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10410 | $as_echo "no" >&6; } |
| 10411 | fi |
| 10412 | |
| 10413 | |
| 10414 | fi |
| 10415 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 10416 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 10417 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 10418 | set dummy ocamlyacc; ac_word=$2 |
| 10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10420 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10421 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 10422 | $as_echo_n "(cached) " >&6 |
| 10423 | else |
| 10424 | case $ac_pt_OCAMLYACC in |
| 10425 | [\\/]* | ?:[\\/]*) |
| 10426 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 10427 | ;; |
| 10428 | *) |
| 10429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10430 | for as_dir in $PATH |
| 10431 | do |
| 10432 | IFS=$as_save_IFS |
| 10433 | test -z "$as_dir" && as_dir=. |
| 10434 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10436 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 10437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10438 | break 2 |
| 10439 | fi |
| 10440 | done |
| 10441 | done |
| 10442 | IFS=$as_save_IFS |
| 10443 | |
| 10444 | ;; |
| 10445 | esac |
| 10446 | fi |
| 10447 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 10448 | if test -n "$ac_pt_OCAMLYACC"; then |
| 10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 10450 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 10451 | else |
| 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10453 | $as_echo "no" >&6; } |
| 10454 | fi |
| 10455 | |
| 10456 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 10457 | OCAMLYACC="no" |
| 10458 | else |
| 10459 | case $cross_compiling:$ac_tool_warned in |
| 10460 | yes:) |
| 10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10462 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10463 | ac_tool_warned=yes ;; |
| 10464 | esac |
| 10465 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 10466 | fi |
| 10467 | else |
| 10468 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 10469 | fi |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | else |
| 10475 | if test -n "$ac_tool_prefix"; then |
| 10476 | # Extract the first word of "${ac_tool_prefix}[$]OCAMLPROF", so it can be a program name with args. |
| 10477 | set dummy ${ac_tool_prefix}$OCAMLPROF; ac_word=$2 |
| 10478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10479 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10480 | if ${ac_cv_path_OCAMLPROF+:} false; then : |
| 10481 | $as_echo_n "(cached) " >&6 |
| 10482 | else |
| 10483 | case $OCAMLPROF in |
| 10484 | [\\/]* | ?:[\\/]*) |
| 10485 | ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path. |
| 10486 | ;; |
| 10487 | *) |
| 10488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10489 | for as_dir in $PATH |
| 10490 | do |
| 10491 | IFS=$as_save_IFS |
| 10492 | test -z "$as_dir" && as_dir=. |
| 10493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10495 | ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext" |
| 10496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10497 | break 2 |
| 10498 | fi |
| 10499 | done |
| 10500 | done |
| 10501 | IFS=$as_save_IFS |
| 10502 | |
| 10503 | ;; |
| 10504 | esac |
| 10505 | fi |
| 10506 | OCAMLPROF=$ac_cv_path_OCAMLPROF |
| 10507 | if test -n "$OCAMLPROF"; then |
| 10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5 |
| 10509 | $as_echo "$OCAMLPROF" >&6; } |
| 10510 | else |
| 10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10512 | $as_echo "no" >&6; } |
| 10513 | fi |
| 10514 | |
| 10515 | |
| 10516 | fi |
| 10517 | if test -z "$ac_cv_path_OCAMLPROF"; then |
| 10518 | ac_pt_OCAMLPROF=$OCAMLPROF |
| 10519 | # Extract the first word of "[$]OCAMLPROF", so it can be a program name with args. |
| 10520 | set dummy $OCAMLPROF; ac_word=$2 |
| 10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10522 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10523 | if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then : |
| 10524 | $as_echo_n "(cached) " >&6 |
| 10525 | else |
| 10526 | case $ac_pt_OCAMLPROF in |
| 10527 | [\\/]* | ?:[\\/]*) |
| 10528 | ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path. |
| 10529 | ;; |
| 10530 | *) |
| 10531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10532 | for as_dir in $PATH |
| 10533 | do |
| 10534 | IFS=$as_save_IFS |
| 10535 | test -z "$as_dir" && as_dir=. |
| 10536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10538 | ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext" |
| 10539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10540 | break 2 |
| 10541 | fi |
| 10542 | done |
| 10543 | done |
| 10544 | IFS=$as_save_IFS |
| 10545 | |
| 10546 | ;; |
| 10547 | esac |
| 10548 | fi |
| 10549 | ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF |
| 10550 | if test -n "$ac_pt_OCAMLPROF"; then |
| 10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5 |
| 10552 | $as_echo "$ac_pt_OCAMLPROF" >&6; } |
| 10553 | else |
| 10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10555 | $as_echo "no" >&6; } |
| 10556 | fi |
| 10557 | |
| 10558 | if test "x$ac_pt_OCAMLPROF" = x; then |
| 10559 | OCAMLPROF="" |
| 10560 | else |
| 10561 | case $cross_compiling:$ac_tool_warned in |
| 10562 | yes:) |
| 10563 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10564 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10565 | ac_tool_warned=yes ;; |
| 10566 | esac |
| 10567 | OCAMLPROF=$ac_pt_OCAMLPROF |
| 10568 | fi |
| 10569 | else |
| 10570 | OCAMLPROF="$ac_cv_path_OCAMLPROF" |
| 10571 | fi |
| 10572 | |
| 10573 | |
| 10574 | fi |
| 10575 | |
| 10576 | |
| 10577 | fi |
| 10578 | |
| 10579 | if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then : |
| 10580 | if test "x$with_OCAMLPROF" = xyes; then : |
| 10581 | as_fn_error $? "--with=ocamlprof is given explicitly but not found" "$LINENO" 5 |
| 10582 | |
| 10583 | fi |
| 10584 | |
| 10585 | if test -n ""; then : |
| 10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof not found. Trying substitute ." >&5 |
| 10587 | $as_echo "$as_me: ocamlprof not found. Trying substitute ." >&6;} |
| 10588 | OCAMLPROF="" |
| 10589 | |
| 10590 | if test "xocamlprof" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then : |
| 10591 | |
| 10592 | |
| 10593 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 10594 | if test -n "$ac_tool_prefix"; then |
| 10595 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 10596 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10598 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10599 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 10600 | $as_echo_n "(cached) " >&6 |
| 10601 | else |
| 10602 | case $PKG_CONFIG in |
| 10603 | [\\/]* | ?:[\\/]*) |
| 10604 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 10605 | ;; |
| 10606 | *) |
| 10607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10608 | for as_dir in $PATH |
| 10609 | do |
| 10610 | IFS=$as_save_IFS |
| 10611 | test -z "$as_dir" && as_dir=. |
| 10612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10614 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10616 | break 2 |
| 10617 | fi |
| 10618 | done |
| 10619 | done |
| 10620 | IFS=$as_save_IFS |
| 10621 | |
| 10622 | ;; |
| 10623 | esac |
| 10624 | fi |
| 10625 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 10626 | if test -n "$PKG_CONFIG"; then |
| 10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 10628 | $as_echo "$PKG_CONFIG" >&6; } |
| 10629 | else |
| 10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10631 | $as_echo "no" >&6; } |
| 10632 | fi |
| 10633 | |
| 10634 | |
| 10635 | fi |
| 10636 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 10637 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 10638 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 10639 | set dummy pkg-config; ac_word=$2 |
| 10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10641 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10642 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 10643 | $as_echo_n "(cached) " >&6 |
| 10644 | else |
| 10645 | case $ac_pt_PKG_CONFIG in |
| 10646 | [\\/]* | ?:[\\/]*) |
| 10647 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 10648 | ;; |
| 10649 | *) |
| 10650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10651 | for as_dir in $PATH |
| 10652 | do |
| 10653 | IFS=$as_save_IFS |
| 10654 | test -z "$as_dir" && as_dir=. |
| 10655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10657 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10659 | break 2 |
| 10660 | fi |
| 10661 | done |
| 10662 | done |
| 10663 | IFS=$as_save_IFS |
| 10664 | |
| 10665 | ;; |
| 10666 | esac |
| 10667 | fi |
| 10668 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 10669 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 10671 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 10672 | else |
| 10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10674 | $as_echo "no" >&6; } |
| 10675 | fi |
| 10676 | |
| 10677 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 10678 | PKG_CONFIG="" |
| 10679 | else |
| 10680 | case $cross_compiling:$ac_tool_warned in |
| 10681 | yes:) |
| 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10683 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10684 | ac_tool_warned=yes ;; |
| 10685 | esac |
| 10686 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 10687 | fi |
| 10688 | else |
| 10689 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 10690 | fi |
| 10691 | |
| 10692 | fi |
| 10693 | if test -n "$PKG_CONFIG"; then |
| 10694 | _pkg_min_version=0.9.0 |
| 10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 10696 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 10697 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10699 | $as_echo "yes" >&6; } |
| 10700 | else |
| 10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10702 | $as_echo "no" >&6; } |
| 10703 | PKG_CONFIG="" |
| 10704 | fi |
| 10705 | |
| 10706 | fi |
| 10707 | |
| 10708 | elif test "xocamlprof" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then : |
| 10709 | # checking for ocamllex |
| 10710 | if test -n "$ac_tool_prefix"; then |
| 10711 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 10712 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10714 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10715 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 10716 | $as_echo_n "(cached) " >&6 |
| 10717 | else |
| 10718 | case $OCAMLLEX in |
| 10719 | [\\/]* | ?:[\\/]*) |
| 10720 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 10721 | ;; |
| 10722 | *) |
| 10723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10724 | for as_dir in $PATH |
| 10725 | do |
| 10726 | IFS=$as_save_IFS |
| 10727 | test -z "$as_dir" && as_dir=. |
| 10728 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10730 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 10731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10732 | break 2 |
| 10733 | fi |
| 10734 | done |
| 10735 | done |
| 10736 | IFS=$as_save_IFS |
| 10737 | |
| 10738 | ;; |
| 10739 | esac |
| 10740 | fi |
| 10741 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 10742 | if test -n "$OCAMLLEX"; then |
| 10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 10744 | $as_echo "$OCAMLLEX" >&6; } |
| 10745 | else |
| 10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10747 | $as_echo "no" >&6; } |
| 10748 | fi |
| 10749 | |
| 10750 | |
| 10751 | fi |
| 10752 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 10753 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 10754 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 10755 | set dummy ocamllex; ac_word=$2 |
| 10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10757 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10758 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 10759 | $as_echo_n "(cached) " >&6 |
| 10760 | else |
| 10761 | case $ac_pt_OCAMLLEX in |
| 10762 | [\\/]* | ?:[\\/]*) |
| 10763 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 10764 | ;; |
| 10765 | *) |
| 10766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10767 | for as_dir in $PATH |
| 10768 | do |
| 10769 | IFS=$as_save_IFS |
| 10770 | test -z "$as_dir" && as_dir=. |
| 10771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10773 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 10774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10775 | break 2 |
| 10776 | fi |
| 10777 | done |
| 10778 | done |
| 10779 | IFS=$as_save_IFS |
| 10780 | |
| 10781 | ;; |
| 10782 | esac |
| 10783 | fi |
| 10784 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 10785 | if test -n "$ac_pt_OCAMLLEX"; then |
| 10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 10787 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 10788 | else |
| 10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10790 | $as_echo "no" >&6; } |
| 10791 | fi |
| 10792 | |
| 10793 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 10794 | OCAMLLEX="no" |
| 10795 | else |
| 10796 | case $cross_compiling:$ac_tool_warned in |
| 10797 | yes:) |
| 10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10799 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10800 | ac_tool_warned=yes ;; |
| 10801 | esac |
| 10802 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 10803 | fi |
| 10804 | else |
| 10805 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 10806 | fi |
| 10807 | |
| 10808 | if test "$OCAMLLEX" != "no"; then |
| 10809 | if test -n "$ac_tool_prefix"; then |
| 10810 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 10811 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10813 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10814 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 10815 | $as_echo_n "(cached) " >&6 |
| 10816 | else |
| 10817 | case $OCAMLLEXDOTOPT in |
| 10818 | [\\/]* | ?:[\\/]*) |
| 10819 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 10820 | ;; |
| 10821 | *) |
| 10822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10823 | for as_dir in $PATH |
| 10824 | do |
| 10825 | IFS=$as_save_IFS |
| 10826 | test -z "$as_dir" && as_dir=. |
| 10827 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10829 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 10830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10831 | break 2 |
| 10832 | fi |
| 10833 | done |
| 10834 | done |
| 10835 | IFS=$as_save_IFS |
| 10836 | |
| 10837 | ;; |
| 10838 | esac |
| 10839 | fi |
| 10840 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 10841 | if test -n "$OCAMLLEXDOTOPT"; then |
| 10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 10843 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 10844 | else |
| 10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10846 | $as_echo "no" >&6; } |
| 10847 | fi |
| 10848 | |
| 10849 | |
| 10850 | fi |
| 10851 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 10852 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 10853 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 10854 | set dummy ocamllex.opt; ac_word=$2 |
| 10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10856 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10857 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 10858 | $as_echo_n "(cached) " >&6 |
| 10859 | else |
| 10860 | case $ac_pt_OCAMLLEXDOTOPT in |
| 10861 | [\\/]* | ?:[\\/]*) |
| 10862 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 10863 | ;; |
| 10864 | *) |
| 10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10866 | for as_dir in $PATH |
| 10867 | do |
| 10868 | IFS=$as_save_IFS |
| 10869 | test -z "$as_dir" && as_dir=. |
| 10870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10872 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 10873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10874 | break 2 |
| 10875 | fi |
| 10876 | done |
| 10877 | done |
| 10878 | IFS=$as_save_IFS |
| 10879 | |
| 10880 | ;; |
| 10881 | esac |
| 10882 | fi |
| 10883 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 10884 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 10886 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 10887 | else |
| 10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10889 | $as_echo "no" >&6; } |
| 10890 | fi |
| 10891 | |
| 10892 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 10893 | OCAMLLEXDOTOPT="no" |
| 10894 | else |
| 10895 | case $cross_compiling:$ac_tool_warned in |
| 10896 | yes:) |
| 10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10898 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10899 | ac_tool_warned=yes ;; |
| 10900 | esac |
| 10901 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 10902 | fi |
| 10903 | else |
| 10904 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 10905 | fi |
| 10906 | |
| 10907 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 10908 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 10909 | fi |
| 10910 | fi |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | elif test "xocamlprof" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then : |
| 10915 | if test -n "$ac_tool_prefix"; then |
| 10916 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 10917 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10919 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10920 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 10921 | $as_echo_n "(cached) " >&6 |
| 10922 | else |
| 10923 | case $OCAMLYACC in |
| 10924 | [\\/]* | ?:[\\/]*) |
| 10925 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 10926 | ;; |
| 10927 | *) |
| 10928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10929 | for as_dir in $PATH |
| 10930 | do |
| 10931 | IFS=$as_save_IFS |
| 10932 | test -z "$as_dir" && as_dir=. |
| 10933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10935 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 10936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10937 | break 2 |
| 10938 | fi |
| 10939 | done |
| 10940 | done |
| 10941 | IFS=$as_save_IFS |
| 10942 | |
| 10943 | ;; |
| 10944 | esac |
| 10945 | fi |
| 10946 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 10947 | if test -n "$OCAMLYACC"; then |
| 10948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 10949 | $as_echo "$OCAMLYACC" >&6; } |
| 10950 | else |
| 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10952 | $as_echo "no" >&6; } |
| 10953 | fi |
| 10954 | |
| 10955 | |
| 10956 | fi |
| 10957 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 10958 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 10959 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 10960 | set dummy ocamlyacc; ac_word=$2 |
| 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10963 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 10964 | $as_echo_n "(cached) " >&6 |
| 10965 | else |
| 10966 | case $ac_pt_OCAMLYACC in |
| 10967 | [\\/]* | ?:[\\/]*) |
| 10968 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 10969 | ;; |
| 10970 | *) |
| 10971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10972 | for as_dir in $PATH |
| 10973 | do |
| 10974 | IFS=$as_save_IFS |
| 10975 | test -z "$as_dir" && as_dir=. |
| 10976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10978 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 10979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10980 | break 2 |
| 10981 | fi |
| 10982 | done |
| 10983 | done |
| 10984 | IFS=$as_save_IFS |
| 10985 | |
| 10986 | ;; |
| 10987 | esac |
| 10988 | fi |
| 10989 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 10990 | if test -n "$ac_pt_OCAMLYACC"; then |
| 10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 10992 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 10993 | else |
| 10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10995 | $as_echo "no" >&6; } |
| 10996 | fi |
| 10997 | |
| 10998 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 10999 | OCAMLYACC="no" |
| 11000 | else |
| 11001 | case $cross_compiling:$ac_tool_warned in |
| 11002 | yes:) |
| 11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11005 | ac_tool_warned=yes ;; |
| 11006 | esac |
| 11007 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 11008 | fi |
| 11009 | else |
| 11010 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 11011 | fi |
| 11012 | |
| 11013 | |
| 11014 | |
| 11015 | |
| 11016 | else |
| 11017 | if test -n "$ac_tool_prefix"; then |
| 11018 | # Extract the first word of "${ac_tool_prefix}ocamlprof", so it can be a program name with args. |
| 11019 | set dummy ${ac_tool_prefix}ocamlprof; ac_word=$2 |
| 11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11021 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11022 | if ${ac_cv_path_OCAMLPROF+:} false; then : |
| 11023 | $as_echo_n "(cached) " >&6 |
| 11024 | else |
| 11025 | case $OCAMLPROF in |
| 11026 | [\\/]* | ?:[\\/]*) |
| 11027 | ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path. |
| 11028 | ;; |
| 11029 | *) |
| 11030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11031 | for as_dir in $PATH |
| 11032 | do |
| 11033 | IFS=$as_save_IFS |
| 11034 | test -z "$as_dir" && as_dir=. |
| 11035 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11037 | ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext" |
| 11038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11039 | break 2 |
| 11040 | fi |
| 11041 | done |
| 11042 | done |
| 11043 | IFS=$as_save_IFS |
| 11044 | |
| 11045 | ;; |
| 11046 | esac |
| 11047 | fi |
| 11048 | OCAMLPROF=$ac_cv_path_OCAMLPROF |
| 11049 | if test -n "$OCAMLPROF"; then |
| 11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5 |
| 11051 | $as_echo "$OCAMLPROF" >&6; } |
| 11052 | else |
| 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11054 | $as_echo "no" >&6; } |
| 11055 | fi |
| 11056 | |
| 11057 | |
| 11058 | fi |
| 11059 | if test -z "$ac_cv_path_OCAMLPROF"; then |
| 11060 | ac_pt_OCAMLPROF=$OCAMLPROF |
| 11061 | # Extract the first word of "ocamlprof", so it can be a program name with args. |
| 11062 | set dummy ocamlprof; ac_word=$2 |
| 11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11064 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11065 | if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then : |
| 11066 | $as_echo_n "(cached) " >&6 |
| 11067 | else |
| 11068 | case $ac_pt_OCAMLPROF in |
| 11069 | [\\/]* | ?:[\\/]*) |
| 11070 | ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path. |
| 11071 | ;; |
| 11072 | *) |
| 11073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11074 | for as_dir in $PATH |
| 11075 | do |
| 11076 | IFS=$as_save_IFS |
| 11077 | test -z "$as_dir" && as_dir=. |
| 11078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11080 | ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext" |
| 11081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11082 | break 2 |
| 11083 | fi |
| 11084 | done |
| 11085 | done |
| 11086 | IFS=$as_save_IFS |
| 11087 | |
| 11088 | ;; |
| 11089 | esac |
| 11090 | fi |
| 11091 | ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF |
| 11092 | if test -n "$ac_pt_OCAMLPROF"; then |
| 11093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5 |
| 11094 | $as_echo "$ac_pt_OCAMLPROF" >&6; } |
| 11095 | else |
| 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11097 | $as_echo "no" >&6; } |
| 11098 | fi |
| 11099 | |
| 11100 | if test "x$ac_pt_OCAMLPROF" = x; then |
| 11101 | OCAMLPROF="" |
| 11102 | else |
| 11103 | case $cross_compiling:$ac_tool_warned in |
| 11104 | yes:) |
| 11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11107 | ac_tool_warned=yes ;; |
| 11108 | esac |
| 11109 | OCAMLPROF=$ac_pt_OCAMLPROF |
| 11110 | fi |
| 11111 | else |
| 11112 | OCAMLPROF="$ac_cv_path_OCAMLPROF" |
| 11113 | fi |
| 11114 | |
| 11115 | |
| 11116 | fi |
| 11117 | |
| 11118 | SUBSTITUTED_OCAMLPROF=yes |
| 11119 | |
| 11120 | |
| 11121 | fi |
| 11122 | |
| 11123 | fi |
| 11124 | |
| 11125 | if test -z "$OCAMLPROF"; then : |
| 11126 | OCAMLPROF=no |
| 11127 | |
| 11128 | fi |
| 11129 | |
| 11130 | |
| 11131 | if test "x$OCAMLLEX" = xno; then : |
| 11132 | as_fn_error $? "the OCaml Lexer needs to be installed (the ocamllex command). It should be part of your OCaml distribution." "$LINENO" 5 |
| 11133 | |
| 11134 | fi |
| 11135 | |
| 11136 | if test "x$OCAMLYACC" = xno; then : |
| 11137 | as_fn_error $? "The OCaml parser generated needs to be installed (the ocamlyacc command). It should be part of your OCaml distribution." "$LINENO" 5 |
| 11138 | |
| 11139 | fi |
| 11140 | |
| 11141 | if test "x$OCAMLFIND" = xno; then : |
| 11142 | as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5 |
| 11143 | |
| 11144 | fi |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | # Check whether --with-runtime-ocamlfind was given. |
| 11149 | if test "${with_runtime_ocamlfind+set}" = set; then : |
| 11150 | withval=$with_runtime_ocamlfind; |
| 11151 | fi |
| 11152 | |
| 11153 | |
| 11154 | if test -z "$RUNTIME_OCAMLFIND_CMD"; then : |
| 11155 | if test "x$with_runtime_ocamlfind" = xno; then : |
| 11156 | RUNTIME_OCAMLFIND_CMD=$OCAMLFIND |
| 11157 | |
| 11158 | |
| 11159 | elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then : |
| 11160 | RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind" |
| 11161 | |
| 11162 | |
| 11163 | else |
| 11164 | RUNTIME_OCAMLFIND_CMD="ocamlfind" |
| 11165 | |
| 11166 | |
| 11167 | fi |
| 11168 | |
| 11169 | fi |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | # Check whether --with-runtime-ocamlc was given. |
| 11174 | if test "${with_runtime_ocamlc+set}" = set; then : |
| 11175 | withval=$with_runtime_ocamlc; |
| 11176 | fi |
| 11177 | |
| 11178 | |
| 11179 | if test -z "$RUNTIME_OCAMLC_CMD"; then : |
| 11180 | if test "x$with_runtime_ocamlc" = xno; then : |
| 11181 | RUNTIME_OCAMLC_CMD=$OCAMLC |
| 11182 | |
| 11183 | |
| 11184 | elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then : |
| 11185 | RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc" |
| 11186 | |
| 11187 | |
| 11188 | else |
| 11189 | RUNTIME_OCAMLC_CMD="ocamlc" |
| 11190 | |
| 11191 | |
| 11192 | fi |
| 11193 | |
| 11194 | fi |
| 11195 | |
| 11196 | |
| 11197 | |
| 11198 | # Check whether --with-runtime-ocamlopt was given. |
| 11199 | if test "${with_runtime_ocamlopt+set}" = set; then : |
| 11200 | withval=$with_runtime_ocamlopt; |
| 11201 | fi |
| 11202 | |
| 11203 | |
| 11204 | if test -z "$RUNTIME_OCAMLOPT_CMD"; then : |
| 11205 | if test "x$with_runtime_ocamlopt" = xno; then : |
| 11206 | RUNTIME_OCAMLOPT_CMD=$OCAMLOPT |
| 11207 | |
| 11208 | |
| 11209 | elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then : |
| 11210 | RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt" |
| 11211 | |
| 11212 | |
| 11213 | else |
| 11214 | RUNTIME_OCAMLOPT_CMD="ocamlopt" |
| 11215 | |
| 11216 | |
| 11217 | fi |
| 11218 | |
| 11219 | fi |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | # Check whether --with-runtime-ocamldep was given. |
| 11224 | if test "${with_runtime_ocamldep+set}" = set; then : |
| 11225 | withval=$with_runtime_ocamldep; |
| 11226 | fi |
| 11227 | |
| 11228 | |
| 11229 | if test -z "$RUNTIME_OCAMLDEP_CMD"; then : |
| 11230 | if test "x$with_runtime_ocamldep" = xno; then : |
| 11231 | RUNTIME_OCAMLDEP_CMD=$OCAMLDEP |
| 11232 | |
| 11233 | |
| 11234 | elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then : |
| 11235 | RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep" |
| 11236 | |
| 11237 | |
| 11238 | else |
| 11239 | RUNTIME_OCAMLDEP_CMD="ocamldep" |
| 11240 | |
| 11241 | |
| 11242 | fi |
| 11243 | |
| 11244 | fi |
| 11245 | |
| 11246 | |
| 11247 | |
| 11248 | # Check whether --with-runtime-camlp4 was given. |
| 11249 | if test "${with_runtime_camlp4+set}" = set; then : |
| 11250 | withval=$with_runtime_camlp4; |
| 11251 | fi |
| 11252 | |
| 11253 | |
| 11254 | if test -z "$RUNTIME_CAMLP4_CMD"; then : |
| 11255 | if test "x$with_runtime_camlp4" = xno; then : |
| 11256 | RUNTIME_CAMLP4_CMD=$CAMLP4 |
| 11257 | |
| 11258 | |
| 11259 | elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then : |
| 11260 | RUNTIME_CAMLP4_CMD="$with_runtime_camlp4" |
| 11261 | |
| 11262 | |
| 11263 | else |
| 11264 | RUNTIME_CAMLP4_CMD="camlp4" |
| 11265 | |
| 11266 | |
| 11267 | fi |
| 11268 | |
| 11269 | fi |
| 11270 | |
| 11271 | |
| 11272 | |
| 11273 | # Check whether --with-runtime-camlp4o was given. |
| 11274 | if test "${with_runtime_camlp4o+set}" = set; then : |
| 11275 | withval=$with_runtime_camlp4o; |
| 11276 | fi |
| 11277 | |
| 11278 | |
| 11279 | if test -z "$RUNTIME_CAMLP4O_CMD"; then : |
| 11280 | if test "x$with_runtime_camlp4o" = xno; then : |
| 11281 | RUNTIME_CAMLP4O_CMD=$CAMLP4O |
| 11282 | |
| 11283 | |
| 11284 | elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then : |
| 11285 | RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o" |
| 11286 | |
| 11287 | |
| 11288 | else |
| 11289 | RUNTIME_CAMLP4O_CMD="camlp4o" |
| 11290 | |
| 11291 | |
| 11292 | fi |
| 11293 | |
| 11294 | fi |
| 11295 | |
| 11296 | |
| 11297 | |
| 11298 | |
| 11299 | |
| 11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic ocaml modules" >&5 |
| 11301 | $as_echo "$as_me: verifying basic ocaml modules" >&6;} |
| 11302 | |
| 11303 | |
| 11304 | COCCI_OCAML_EXTERNAL="$COCCI_SRCDIR/bundles" |
| 11305 | |
| 11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&5 |
| 11307 | $as_echo "$as_me: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&6;} |
| 11308 | |
| 11309 | |
| 11310 | FEATURE_menhirLib=0 |
| 11311 | |
| 11312 | LOCALLIB_menhirLib=0 |
| 11313 | |
| 11314 | FLAGS_menhirLib= |
| 11315 | |
| 11316 | MODULES_menhirLib= |
| 11317 | |
| 11318 | MODULESOPT_menhirLib= |
| 11319 | |
| 11320 | PATH_menhirLib= |
| 11321 | |
| 11322 | |
| 11323 | FEATURE_dynlink=0 |
| 11324 | |
| 11325 | LOCALLIB_dynlink=0 |
| 11326 | |
| 11327 | FLAGS_dynlink= |
| 11328 | |
| 11329 | MODULES_dynlink= |
| 11330 | |
| 11331 | MODULESOPT_dynlink= |
| 11332 | |
| 11333 | PATH_dynlink= |
| 11334 | |
| 11335 | |
| 11336 | FEATURE_pcre=0 |
| 11337 | |
| 11338 | LOCALLIB_pcre=0 |
| 11339 | |
| 11340 | FLAGS_pcre= |
| 11341 | |
| 11342 | MODULES_pcre= |
| 11343 | |
| 11344 | MODULESOPT_pcre= |
| 11345 | |
| 11346 | PATH_pcre= |
| 11347 | |
| 11348 | |
| 11349 | FEATURE_pycaml=0 |
| 11350 | |
| 11351 | LOCALLIB_pycaml=0 |
| 11352 | |
| 11353 | FLAGS_pycaml= |
| 11354 | |
| 11355 | MODULES_pycaml= |
| 11356 | |
| 11357 | MODULESOPT_pycaml= |
| 11358 | |
| 11359 | PATH_pycaml= |
| 11360 | |
| 11361 | |
| 11362 | FEATURE_camlp4=0 |
| 11363 | |
| 11364 | LOCALLIB_camlp4=0 |
| 11365 | |
| 11366 | FLAGS_camlp4= |
| 11367 | |
| 11368 | MODULES_camlp4= |
| 11369 | |
| 11370 | MODULESOPT_camlp4= |
| 11371 | |
| 11372 | PATH_camlp4= |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: the following OCaml packages should be provided by your ocaml installation" >&5 |
| 11377 | $as_echo "$as_me: the following OCaml packages should be provided by your ocaml installation" >&6;} |
| 11378 | |
| 11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5 |
| 11380 | $as_echo_n "checking for OCaml findlib package unix... " >&6; } |
| 11381 | |
| 11382 | unset found |
| 11383 | unset pkg |
| 11384 | found=no |
| 11385 | for pkg in unix ; do |
| 11386 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11388 | $as_echo "found" >&6; } |
| 11389 | OCAML_PKG_unix=$pkg |
| 11390 | found=yes |
| 11391 | break |
| 11392 | fi |
| 11393 | done |
| 11394 | if test "$found" = "no" ; then |
| 11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11396 | $as_echo "not found" >&6; } |
| 11397 | OCAML_PKG_unix=no |
| 11398 | fi |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | if test "x$OCAML_PKG_unix" != xno; then : |
| 11403 | PATH_unix=`$OCAMLFIND query unix 2>/dev/null` |
| 11404 | |
| 11405 | |
| 11406 | fi |
| 11407 | |
| 11408 | if test "x$OCAML_PKG_unix" = xno; then : |
| 11409 | as_fn_error $? "package unix is required. It should be part of your ocaml installation." "$LINENO" 5 |
| 11410 | |
| 11411 | fi |
| 11412 | |
| 11413 | |
| 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package bigarray" >&5 |
| 11415 | $as_echo_n "checking for OCaml findlib package bigarray... " >&6; } |
| 11416 | |
| 11417 | unset found |
| 11418 | unset pkg |
| 11419 | found=no |
| 11420 | for pkg in bigarray ; do |
| 11421 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11423 | $as_echo "found" >&6; } |
| 11424 | OCAML_PKG_bigarray=$pkg |
| 11425 | found=yes |
| 11426 | break |
| 11427 | fi |
| 11428 | done |
| 11429 | if test "$found" = "no" ; then |
| 11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11431 | $as_echo "not found" >&6; } |
| 11432 | OCAML_PKG_bigarray=no |
| 11433 | fi |
| 11434 | |
| 11435 | |
| 11436 | |
| 11437 | if test "x$OCAML_PKG_bigarray" != xno; then : |
| 11438 | PATH_bigarray=`$OCAMLFIND query bigarray 2>/dev/null` |
| 11439 | |
| 11440 | |
| 11441 | fi |
| 11442 | |
| 11443 | if test "x$OCAML_PKG_bigarray" = xno; then : |
| 11444 | as_fn_error $? "package bigarray is required. It should be part of your ocaml installation." "$LINENO" 5 |
| 11445 | |
| 11446 | fi |
| 11447 | |
| 11448 | |
| 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package num" >&5 |
| 11450 | $as_echo_n "checking for OCaml findlib package num... " >&6; } |
| 11451 | |
| 11452 | unset found |
| 11453 | unset pkg |
| 11454 | found=no |
| 11455 | for pkg in num ; do |
| 11456 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11458 | $as_echo "found" >&6; } |
| 11459 | OCAML_PKG_num=$pkg |
| 11460 | found=yes |
| 11461 | break |
| 11462 | fi |
| 11463 | done |
| 11464 | if test "$found" = "no" ; then |
| 11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11466 | $as_echo "not found" >&6; } |
| 11467 | OCAML_PKG_num=no |
| 11468 | fi |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | if test "x$OCAML_PKG_num" != xno; then : |
| 11473 | PATH_num=`$OCAMLFIND query num 2>/dev/null` |
| 11474 | |
| 11475 | |
| 11476 | fi |
| 11477 | |
| 11478 | if test "x$OCAML_PKG_num" = xno; then : |
| 11479 | as_fn_error $? "package num is required. It should be part of your ocaml installation." "$LINENO" 5 |
| 11480 | |
| 11481 | fi |
| 11482 | |
| 11483 | |
| 11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package str" >&5 |
| 11485 | $as_echo_n "checking for OCaml findlib package str... " >&6; } |
| 11486 | |
| 11487 | unset found |
| 11488 | unset pkg |
| 11489 | found=no |
| 11490 | for pkg in str ; do |
| 11491 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11493 | $as_echo "found" >&6; } |
| 11494 | OCAML_PKG_str=$pkg |
| 11495 | found=yes |
| 11496 | break |
| 11497 | fi |
| 11498 | done |
| 11499 | if test "$found" = "no" ; then |
| 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11501 | $as_echo "not found" >&6; } |
| 11502 | OCAML_PKG_str=no |
| 11503 | fi |
| 11504 | |
| 11505 | |
| 11506 | |
| 11507 | if test "x$OCAML_PKG_str" != xno; then : |
| 11508 | PATH_str=`$OCAMLFIND query str 2>/dev/null` |
| 11509 | |
| 11510 | |
| 11511 | fi |
| 11512 | |
| 11513 | if test "x$OCAML_PKG_str" = xno; then : |
| 11514 | as_fn_error $? "package str is required. It should be part of your ocaml installation." "$LINENO" 5 |
| 11515 | |
| 11516 | fi |
| 11517 | |
| 11518 | |
| 11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package dynlink" >&5 |
| 11520 | $as_echo "$as_me: configuring package dynlink" >&6;} |
| 11521 | # Check whether --enable-dynlink was given. |
| 11522 | if test "${enable_dynlink+set}" = set; then : |
| 11523 | enableval=$enable_dynlink; |
| 11524 | fi |
| 11525 | |
| 11526 | |
| 11527 | if test "x$enable_dynlink" != xno; then : |
| 11528 | |
| 11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package dynlink" >&5 |
| 11530 | $as_echo_n "checking for OCaml findlib package dynlink... " >&6; } |
| 11531 | |
| 11532 | unset found |
| 11533 | unset pkg |
| 11534 | found=no |
| 11535 | for pkg in dynlink ; do |
| 11536 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11538 | $as_echo "found" >&6; } |
| 11539 | OCAML_PKG_dynlink=$pkg |
| 11540 | found=yes |
| 11541 | break |
| 11542 | fi |
| 11543 | done |
| 11544 | if test "$found" = "no" ; then |
| 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11546 | $as_echo "not found" >&6; } |
| 11547 | OCAML_PKG_dynlink=no |
| 11548 | fi |
| 11549 | |
| 11550 | |
| 11551 | |
| 11552 | if test "x$OCAML_PKG_dynlink" != xno; then : |
| 11553 | PATH_dynlink=`$OCAMLFIND query dynlink 2>/dev/null` |
| 11554 | |
| 11555 | |
| 11556 | fi |
| 11557 | |
| 11558 | GLOBAL_dynlink=$OCAML_PKG_dynlink |
| 11559 | |
| 11560 | |
| 11561 | if test "x$GLOBAL_dynlink" != xno; then : |
| 11562 | enable_dynlink=yes |
| 11563 | |
| 11564 | |
| 11565 | else |
| 11566 | if test "x$enable_dynlink" = xyes; then : |
| 11567 | as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5 |
| 11568 | |
| 11569 | fi |
| 11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package dynlink is not available" >&5 |
| 11571 | $as_echo "$as_me: OCaml package dynlink is not available" >&6;} |
| 11572 | enable_dynlink=no |
| 11573 | |
| 11574 | |
| 11575 | fi |
| 11576 | |
| 11577 | fi |
| 11578 | |
| 11579 | if test "x$enable_dynlink" = xno; then : |
| 11580 | { pkgdir=; unset pkgdir;} |
| 11581 | pkgdir="$COCCI_OCAML_EXTERNAL/dynlink/" |
| 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of dynlink" >&5 |
| 11583 | $as_echo_n "checking for a bundled substitute of dynlink... " >&6; } |
| 11584 | if test -d "$pkgdir"; then : |
| 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11586 | $as_echo "yes" >&6; } |
| 11587 | { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for dynlink in $pkgdir" >&5 |
| 11588 | $as_echo "$as_me: using bundled substitute for dynlink in $pkgdir" >&6;} |
| 11589 | enable_dynlink=local |
| 11590 | |
| 11591 | PATH_dynlink="$pkgdir" |
| 11592 | |
| 11593 | |
| 11594 | else |
| 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 |
| 11596 | $as_echo "not available" >&6; } |
| 11597 | fi |
| 11598 | |
| 11599 | fi |
| 11600 | |
| 11601 | if test "x$enable_dynlink" != xno; then : |
| 11602 | FEATURE_dynlink=1 |
| 11603 | |
| 11604 | FLAGS_dynlink='$(FLAGS_dynlink)' |
| 11605 | |
| 11606 | OPTFLAGS_dynlink='$(OPTFLAGS_dynlink)' |
| 11607 | |
| 11608 | |
| 11609 | if test "x$enable_dynlink" = xlocal; then : |
| 11610 | LOCALLIB_dynlink=1 |
| 11611 | |
| 11612 | MODULES_dynlink='$(LOCAL_dynlink)' |
| 11613 | |
| 11614 | MODULESOPT_dynlink='$(LOCALOPT_dynlink)' |
| 11615 | |
| 11616 | |
| 11617 | if test -f "$PATH_dynlink/Makefile"; then : |
| 11618 | MAKE_dynlink=$PATH_dynlink |
| 11619 | |
| 11620 | |
| 11621 | else |
| 11622 | MAKE_dynlink= |
| 11623 | |
| 11624 | |
| 11625 | fi |
| 11626 | |
| 11627 | else |
| 11628 | MODULES_dynlink='$(GLOBAL_dynlink)' |
| 11629 | |
| 11630 | MODULESOPT_dynlink='$(GLOBALOPT_dynlink)' |
| 11631 | |
| 11632 | |
| 11633 | fi |
| 11634 | |
| 11635 | fi |
| 11636 | |
| 11637 | if test "x$enable_dynlink" = xno; then : |
| 11638 | as_fn_error $? "OCaml package dynlink is required. Please make sure it is available." "$LINENO" 5 |
| 11639 | |
| 11640 | fi |
| 11641 | |
| 11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package camlp4" >&5 |
| 11643 | $as_echo "$as_me: configuring package camlp4" >&6;} |
| 11644 | # Check whether --enable-camlp4 was given. |
| 11645 | if test "${enable_camlp4+set}" = set; then : |
| 11646 | enableval=$enable_camlp4; |
| 11647 | fi |
| 11648 | |
| 11649 | |
| 11650 | if test "x$enable_camlp4" != xno; then : |
| 11651 | |
| 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package camlp4" >&5 |
| 11653 | $as_echo_n "checking for OCaml findlib package camlp4... " >&6; } |
| 11654 | |
| 11655 | unset found |
| 11656 | unset pkg |
| 11657 | found=no |
| 11658 | for pkg in camlp4 ; do |
| 11659 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11661 | $as_echo "found" >&6; } |
| 11662 | OCAML_PKG_camlp4=$pkg |
| 11663 | found=yes |
| 11664 | break |
| 11665 | fi |
| 11666 | done |
| 11667 | if test "$found" = "no" ; then |
| 11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11669 | $as_echo "not found" >&6; } |
| 11670 | OCAML_PKG_camlp4=no |
| 11671 | fi |
| 11672 | |
| 11673 | |
| 11674 | |
| 11675 | if test "x$OCAML_PKG_camlp4" != xno; then : |
| 11676 | PATH_camlp4=`$OCAMLFIND query camlp4 2>/dev/null` |
| 11677 | |
| 11678 | |
| 11679 | fi |
| 11680 | |
| 11681 | GLOBAL_camlp4=$OCAML_PKG_camlp4 |
| 11682 | |
| 11683 | |
| 11684 | if test "x$GLOBAL_camlp4" != xno; then : |
| 11685 | enable_camlp4=yes |
| 11686 | |
| 11687 | |
| 11688 | else |
| 11689 | if test "x$enable_camlp4" = xyes; then : |
| 11690 | as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5 |
| 11691 | |
| 11692 | fi |
| 11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package camlp4 is not available" >&5 |
| 11694 | $as_echo "$as_me: OCaml package camlp4 is not available" >&6;} |
| 11695 | enable_camlp4=no |
| 11696 | |
| 11697 | |
| 11698 | fi |
| 11699 | |
| 11700 | fi |
| 11701 | |
| 11702 | if test "x$enable_camlp4" = xno; then : |
| 11703 | { pkgdir=; unset pkgdir;} |
| 11704 | pkgdir="$COCCI_OCAML_EXTERNAL/camlp4/" |
| 11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of camlp4" >&5 |
| 11706 | $as_echo_n "checking for a bundled substitute of camlp4... " >&6; } |
| 11707 | if test -d "$pkgdir"; then : |
| 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11709 | $as_echo "yes" >&6; } |
| 11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for camlp4 in $pkgdir" >&5 |
| 11711 | $as_echo "$as_me: using bundled substitute for camlp4 in $pkgdir" >&6;} |
| 11712 | enable_camlp4=local |
| 11713 | |
| 11714 | PATH_camlp4="$pkgdir" |
| 11715 | |
| 11716 | |
| 11717 | else |
| 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 |
| 11719 | $as_echo "not available" >&6; } |
| 11720 | fi |
| 11721 | |
| 11722 | fi |
| 11723 | |
| 11724 | if test "x$enable_camlp4" != xno; then : |
| 11725 | FEATURE_camlp4=1 |
| 11726 | |
| 11727 | FLAGS_camlp4='$(FLAGS_camlp4)' |
| 11728 | |
| 11729 | OPTFLAGS_camlp4='$(OPTFLAGS_camlp4)' |
| 11730 | |
| 11731 | |
| 11732 | if test "x$enable_camlp4" = xlocal; then : |
| 11733 | LOCALLIB_camlp4=1 |
| 11734 | |
| 11735 | MODULES_camlp4='$(LOCAL_camlp4)' |
| 11736 | |
| 11737 | MODULESOPT_camlp4='$(LOCALOPT_camlp4)' |
| 11738 | |
| 11739 | |
| 11740 | if test -f "$PATH_camlp4/Makefile"; then : |
| 11741 | MAKE_camlp4=$PATH_camlp4 |
| 11742 | |
| 11743 | |
| 11744 | else |
| 11745 | MAKE_camlp4= |
| 11746 | |
| 11747 | |
| 11748 | fi |
| 11749 | |
| 11750 | else |
| 11751 | MODULES_camlp4='$(GLOBAL_camlp4)' |
| 11752 | |
| 11753 | MODULESOPT_camlp4='$(GLOBALOPT_camlp4)' |
| 11754 | |
| 11755 | |
| 11756 | fi |
| 11757 | |
| 11758 | fi |
| 11759 | |
| 11760 | if test "x$enable_camlp4" = xno; then : |
| 11761 | as_fn_error $? "OCaml package camlp4 is required. Please make sure it is available." "$LINENO" 5 |
| 11762 | |
| 11763 | fi |
| 11764 | |
| 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package menhirLib" >&5 |
| 11766 | $as_echo "$as_me: configuring package menhirLib" >&6;} |
| 11767 | # Check whether --enable-menhirLib was given. |
| 11768 | if test "${enable_menhirLib+set}" = set; then : |
| 11769 | enableval=$enable_menhirLib; |
| 11770 | fi |
| 11771 | |
| 11772 | |
| 11773 | if test "x$enable_menhirLib" != xno; then : |
| 11774 | |
| 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package menhirLib" >&5 |
| 11776 | $as_echo_n "checking for OCaml findlib package menhirLib... " >&6; } |
| 11777 | |
| 11778 | unset found |
| 11779 | unset pkg |
| 11780 | found=no |
| 11781 | for pkg in menhirLib ; do |
| 11782 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 11784 | $as_echo "found" >&6; } |
| 11785 | OCAML_PKG_menhirLib=$pkg |
| 11786 | found=yes |
| 11787 | break |
| 11788 | fi |
| 11789 | done |
| 11790 | if test "$found" = "no" ; then |
| 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 11792 | $as_echo "not found" >&6; } |
| 11793 | OCAML_PKG_menhirLib=no |
| 11794 | fi |
| 11795 | |
| 11796 | |
| 11797 | |
| 11798 | if test "x$OCAML_PKG_menhirLib" != xno; then : |
| 11799 | PATH_menhirLib=`$OCAMLFIND query menhirLib 2>/dev/null` |
| 11800 | |
| 11801 | |
| 11802 | fi |
| 11803 | |
| 11804 | GLOBAL_menhirLib=$OCAML_PKG_menhirLib |
| 11805 | |
| 11806 | |
| 11807 | if test "x$GLOBAL_menhirLib" != xno; then : |
| 11808 | enable_menhirLib=yes |
| 11809 | |
| 11810 | |
| 11811 | else |
| 11812 | if test "x$enable_menhirLib" = xyes; then : |
| 11813 | as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5 |
| 11814 | |
| 11815 | fi |
| 11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package menhirLib is not available" >&5 |
| 11817 | $as_echo "$as_me: OCaml package menhirLib is not available" >&6;} |
| 11818 | enable_menhirLib=no |
| 11819 | |
| 11820 | |
| 11821 | fi |
| 11822 | |
| 11823 | fi |
| 11824 | |
| 11825 | if test "x$enable_menhirLib" = xno; then : |
| 11826 | { pkgdir=; unset pkgdir;} |
| 11827 | pkgdir="$COCCI_OCAML_EXTERNAL/menhirLib/" |
| 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of menhirLib" >&5 |
| 11829 | $as_echo_n "checking for a bundled substitute of menhirLib... " >&6; } |
| 11830 | if test -d "$pkgdir"; then : |
| 11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11832 | $as_echo "yes" >&6; } |
| 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for menhirLib in $pkgdir" >&5 |
| 11834 | $as_echo "$as_me: using bundled substitute for menhirLib in $pkgdir" >&6;} |
| 11835 | enable_menhirLib=local |
| 11836 | |
| 11837 | PATH_menhirLib="$pkgdir" |
| 11838 | |
| 11839 | |
| 11840 | else |
| 11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 |
| 11842 | $as_echo "not available" >&6; } |
| 11843 | fi |
| 11844 | |
| 11845 | fi |
| 11846 | |
| 11847 | if test "x$enable_menhirLib" != xno; then : |
| 11848 | FEATURE_menhirLib=1 |
| 11849 | |
| 11850 | FLAGS_menhirLib='$(FLAGS_menhirLib)' |
| 11851 | |
| 11852 | OPTFLAGS_menhirLib='$(OPTFLAGS_menhirLib)' |
| 11853 | |
| 11854 | |
| 11855 | if test "x$enable_menhirLib" = xlocal; then : |
| 11856 | LOCALLIB_menhirLib=1 |
| 11857 | |
| 11858 | MODULES_menhirLib='$(LOCAL_menhirLib)' |
| 11859 | |
| 11860 | MODULESOPT_menhirLib='$(LOCALOPT_menhirLib)' |
| 11861 | |
| 11862 | |
| 11863 | if test -f "$PATH_menhirLib/Makefile"; then : |
| 11864 | MAKE_menhirLib=$PATH_menhirLib |
| 11865 | |
| 11866 | |
| 11867 | else |
| 11868 | MAKE_menhirLib= |
| 11869 | |
| 11870 | |
| 11871 | fi |
| 11872 | |
| 11873 | else |
| 11874 | MODULES_menhirLib='$(GLOBAL_menhirLib)' |
| 11875 | |
| 11876 | MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)' |
| 11877 | |
| 11878 | |
| 11879 | fi |
| 11880 | |
| 11881 | fi |
| 11882 | |
| 11883 | if test "x$enable_menhirLib" = xno; then : |
| 11884 | as_fn_error $? "OCaml package menhirLib is required. Please make sure it is available." "$LINENO" 5 |
| 11885 | |
| 11886 | fi |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | |
| 11892 | |
| 11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: verifying optional features" >&5 |
| 11894 | $as_echo "$as_me: verifying optional features" >&6;} |
| 11895 | |
| 11896 | if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then : |
| 11897 | OPTIMIZED_dynlink=yes |
| 11898 | |
| 11899 | |
| 11900 | else |
| 11901 | OPTIMIZED_dynlink=no |
| 11902 | |
| 11903 | |
| 11904 | fi |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | |
| 11909 | # Check whether --with-menhir was given. |
| 11910 | if test "${with_menhir+set}" = set; then : |
| 11911 | withval=$with_menhir; |
| 11912 | fi |
| 11913 | |
| 11914 | with_MENHIR="$with_menhir" |
| 11915 | |
| 11916 | if test -n "$with_MENHIR" -a "x$with_MENHIR" != xno -a "x$with_MENHIR" != xyes; then : |
| 11917 | MENHIR="$with_MENHIR" |
| 11918 | |
| 11919 | |
| 11920 | else |
| 11921 | MENHIR="menhir" |
| 11922 | |
| 11923 | |
| 11924 | fi |
| 11925 | |
| 11926 | if test "x$with_MENHIR" = xno; then : |
| 11927 | { $as_echo "$as_me:${as_lineno-$LINENO}: menhir is disabled explicitly" >&5 |
| 11928 | $as_echo "$as_me: menhir is disabled explicitly" >&6;} |
| 11929 | MENHIR=no |
| 11930 | |
| 11931 | |
| 11932 | else |
| 11933 | if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then : |
| 11934 | |
| 11935 | |
| 11936 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 11937 | if test -n "$ac_tool_prefix"; then |
| 11938 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 11939 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11941 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11942 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 11943 | $as_echo_n "(cached) " >&6 |
| 11944 | else |
| 11945 | case $PKG_CONFIG in |
| 11946 | [\\/]* | ?:[\\/]*) |
| 11947 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 11948 | ;; |
| 11949 | *) |
| 11950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11951 | for as_dir in $PATH |
| 11952 | do |
| 11953 | IFS=$as_save_IFS |
| 11954 | test -z "$as_dir" && as_dir=. |
| 11955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11957 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11959 | break 2 |
| 11960 | fi |
| 11961 | done |
| 11962 | done |
| 11963 | IFS=$as_save_IFS |
| 11964 | |
| 11965 | ;; |
| 11966 | esac |
| 11967 | fi |
| 11968 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 11969 | if test -n "$PKG_CONFIG"; then |
| 11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 11971 | $as_echo "$PKG_CONFIG" >&6; } |
| 11972 | else |
| 11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11974 | $as_echo "no" >&6; } |
| 11975 | fi |
| 11976 | |
| 11977 | |
| 11978 | fi |
| 11979 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 11980 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 11981 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 11982 | set dummy pkg-config; ac_word=$2 |
| 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11984 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11985 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 11986 | $as_echo_n "(cached) " >&6 |
| 11987 | else |
| 11988 | case $ac_pt_PKG_CONFIG in |
| 11989 | [\\/]* | ?:[\\/]*) |
| 11990 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 11991 | ;; |
| 11992 | *) |
| 11993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11994 | for as_dir in $PATH |
| 11995 | do |
| 11996 | IFS=$as_save_IFS |
| 11997 | test -z "$as_dir" && as_dir=. |
| 11998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12000 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12002 | break 2 |
| 12003 | fi |
| 12004 | done |
| 12005 | done |
| 12006 | IFS=$as_save_IFS |
| 12007 | |
| 12008 | ;; |
| 12009 | esac |
| 12010 | fi |
| 12011 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 12012 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 12014 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 12015 | else |
| 12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12017 | $as_echo "no" >&6; } |
| 12018 | fi |
| 12019 | |
| 12020 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 12021 | PKG_CONFIG="" |
| 12022 | else |
| 12023 | case $cross_compiling:$ac_tool_warned in |
| 12024 | yes:) |
| 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12026 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12027 | ac_tool_warned=yes ;; |
| 12028 | esac |
| 12029 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 12030 | fi |
| 12031 | else |
| 12032 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 12033 | fi |
| 12034 | |
| 12035 | fi |
| 12036 | if test -n "$PKG_CONFIG"; then |
| 12037 | _pkg_min_version=0.9.0 |
| 12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 12039 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 12040 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12042 | $as_echo "yes" >&6; } |
| 12043 | else |
| 12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12045 | $as_echo "no" >&6; } |
| 12046 | PKG_CONFIG="" |
| 12047 | fi |
| 12048 | |
| 12049 | fi |
| 12050 | |
| 12051 | elif test "x$MENHIR" = xocamllex -a "xMENHIR" = xOCAMLLEX; then : |
| 12052 | # checking for ocamllex |
| 12053 | if test -n "$ac_tool_prefix"; then |
| 12054 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 12055 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12057 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12058 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 12059 | $as_echo_n "(cached) " >&6 |
| 12060 | else |
| 12061 | case $OCAMLLEX in |
| 12062 | [\\/]* | ?:[\\/]*) |
| 12063 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 12064 | ;; |
| 12065 | *) |
| 12066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12067 | for as_dir in $PATH |
| 12068 | do |
| 12069 | IFS=$as_save_IFS |
| 12070 | test -z "$as_dir" && as_dir=. |
| 12071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12073 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 12074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12075 | break 2 |
| 12076 | fi |
| 12077 | done |
| 12078 | done |
| 12079 | IFS=$as_save_IFS |
| 12080 | |
| 12081 | ;; |
| 12082 | esac |
| 12083 | fi |
| 12084 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 12085 | if test -n "$OCAMLLEX"; then |
| 12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 12087 | $as_echo "$OCAMLLEX" >&6; } |
| 12088 | else |
| 12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12090 | $as_echo "no" >&6; } |
| 12091 | fi |
| 12092 | |
| 12093 | |
| 12094 | fi |
| 12095 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 12096 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 12097 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 12098 | set dummy ocamllex; ac_word=$2 |
| 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12100 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12101 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 12102 | $as_echo_n "(cached) " >&6 |
| 12103 | else |
| 12104 | case $ac_pt_OCAMLLEX in |
| 12105 | [\\/]* | ?:[\\/]*) |
| 12106 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 12107 | ;; |
| 12108 | *) |
| 12109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12110 | for as_dir in $PATH |
| 12111 | do |
| 12112 | IFS=$as_save_IFS |
| 12113 | test -z "$as_dir" && as_dir=. |
| 12114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12116 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 12117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12118 | break 2 |
| 12119 | fi |
| 12120 | done |
| 12121 | done |
| 12122 | IFS=$as_save_IFS |
| 12123 | |
| 12124 | ;; |
| 12125 | esac |
| 12126 | fi |
| 12127 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 12128 | if test -n "$ac_pt_OCAMLLEX"; then |
| 12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 12130 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 12131 | else |
| 12132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12133 | $as_echo "no" >&6; } |
| 12134 | fi |
| 12135 | |
| 12136 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 12137 | OCAMLLEX="no" |
| 12138 | else |
| 12139 | case $cross_compiling:$ac_tool_warned in |
| 12140 | yes:) |
| 12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12143 | ac_tool_warned=yes ;; |
| 12144 | esac |
| 12145 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 12146 | fi |
| 12147 | else |
| 12148 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 12149 | fi |
| 12150 | |
| 12151 | if test "$OCAMLLEX" != "no"; then |
| 12152 | if test -n "$ac_tool_prefix"; then |
| 12153 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 12154 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12156 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12157 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 12158 | $as_echo_n "(cached) " >&6 |
| 12159 | else |
| 12160 | case $OCAMLLEXDOTOPT in |
| 12161 | [\\/]* | ?:[\\/]*) |
| 12162 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 12163 | ;; |
| 12164 | *) |
| 12165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12166 | for as_dir in $PATH |
| 12167 | do |
| 12168 | IFS=$as_save_IFS |
| 12169 | test -z "$as_dir" && as_dir=. |
| 12170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12172 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 12173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12174 | break 2 |
| 12175 | fi |
| 12176 | done |
| 12177 | done |
| 12178 | IFS=$as_save_IFS |
| 12179 | |
| 12180 | ;; |
| 12181 | esac |
| 12182 | fi |
| 12183 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 12184 | if test -n "$OCAMLLEXDOTOPT"; then |
| 12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 12186 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 12187 | else |
| 12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12189 | $as_echo "no" >&6; } |
| 12190 | fi |
| 12191 | |
| 12192 | |
| 12193 | fi |
| 12194 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 12195 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 12196 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 12197 | set dummy ocamllex.opt; ac_word=$2 |
| 12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12199 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12200 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 12201 | $as_echo_n "(cached) " >&6 |
| 12202 | else |
| 12203 | case $ac_pt_OCAMLLEXDOTOPT in |
| 12204 | [\\/]* | ?:[\\/]*) |
| 12205 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 12206 | ;; |
| 12207 | *) |
| 12208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12209 | for as_dir in $PATH |
| 12210 | do |
| 12211 | IFS=$as_save_IFS |
| 12212 | test -z "$as_dir" && as_dir=. |
| 12213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12215 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 12216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12217 | break 2 |
| 12218 | fi |
| 12219 | done |
| 12220 | done |
| 12221 | IFS=$as_save_IFS |
| 12222 | |
| 12223 | ;; |
| 12224 | esac |
| 12225 | fi |
| 12226 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 12227 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 12229 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 12230 | else |
| 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12232 | $as_echo "no" >&6; } |
| 12233 | fi |
| 12234 | |
| 12235 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 12236 | OCAMLLEXDOTOPT="no" |
| 12237 | else |
| 12238 | case $cross_compiling:$ac_tool_warned in |
| 12239 | yes:) |
| 12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12242 | ac_tool_warned=yes ;; |
| 12243 | esac |
| 12244 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 12245 | fi |
| 12246 | else |
| 12247 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 12248 | fi |
| 12249 | |
| 12250 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 12251 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 12252 | fi |
| 12253 | fi |
| 12254 | |
| 12255 | |
| 12256 | |
| 12257 | elif test "x$MENHIR" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then : |
| 12258 | if test -n "$ac_tool_prefix"; then |
| 12259 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 12260 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12262 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12263 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 12264 | $as_echo_n "(cached) " >&6 |
| 12265 | else |
| 12266 | case $OCAMLYACC in |
| 12267 | [\\/]* | ?:[\\/]*) |
| 12268 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 12269 | ;; |
| 12270 | *) |
| 12271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12272 | for as_dir in $PATH |
| 12273 | do |
| 12274 | IFS=$as_save_IFS |
| 12275 | test -z "$as_dir" && as_dir=. |
| 12276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12278 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 12279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12280 | break 2 |
| 12281 | fi |
| 12282 | done |
| 12283 | done |
| 12284 | IFS=$as_save_IFS |
| 12285 | |
| 12286 | ;; |
| 12287 | esac |
| 12288 | fi |
| 12289 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 12290 | if test -n "$OCAMLYACC"; then |
| 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 12292 | $as_echo "$OCAMLYACC" >&6; } |
| 12293 | else |
| 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12295 | $as_echo "no" >&6; } |
| 12296 | fi |
| 12297 | |
| 12298 | |
| 12299 | fi |
| 12300 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 12301 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 12302 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 12303 | set dummy ocamlyacc; ac_word=$2 |
| 12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12305 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12306 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 12307 | $as_echo_n "(cached) " >&6 |
| 12308 | else |
| 12309 | case $ac_pt_OCAMLYACC in |
| 12310 | [\\/]* | ?:[\\/]*) |
| 12311 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 12312 | ;; |
| 12313 | *) |
| 12314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12315 | for as_dir in $PATH |
| 12316 | do |
| 12317 | IFS=$as_save_IFS |
| 12318 | test -z "$as_dir" && as_dir=. |
| 12319 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12321 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 12322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12323 | break 2 |
| 12324 | fi |
| 12325 | done |
| 12326 | done |
| 12327 | IFS=$as_save_IFS |
| 12328 | |
| 12329 | ;; |
| 12330 | esac |
| 12331 | fi |
| 12332 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 12333 | if test -n "$ac_pt_OCAMLYACC"; then |
| 12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 12335 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 12336 | else |
| 12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12338 | $as_echo "no" >&6; } |
| 12339 | fi |
| 12340 | |
| 12341 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 12342 | OCAMLYACC="no" |
| 12343 | else |
| 12344 | case $cross_compiling:$ac_tool_warned in |
| 12345 | yes:) |
| 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12347 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12348 | ac_tool_warned=yes ;; |
| 12349 | esac |
| 12350 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 12351 | fi |
| 12352 | else |
| 12353 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 12354 | fi |
| 12355 | |
| 12356 | |
| 12357 | |
| 12358 | |
| 12359 | else |
| 12360 | if test -n "$ac_tool_prefix"; then |
| 12361 | # Extract the first word of "${ac_tool_prefix}[$]MENHIR", so it can be a program name with args. |
| 12362 | set dummy ${ac_tool_prefix}$MENHIR; ac_word=$2 |
| 12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12364 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12365 | if ${ac_cv_path_MENHIR+:} false; then : |
| 12366 | $as_echo_n "(cached) " >&6 |
| 12367 | else |
| 12368 | case $MENHIR in |
| 12369 | [\\/]* | ?:[\\/]*) |
| 12370 | ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path. |
| 12371 | ;; |
| 12372 | *) |
| 12373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12374 | for as_dir in $PATH |
| 12375 | do |
| 12376 | IFS=$as_save_IFS |
| 12377 | test -z "$as_dir" && as_dir=. |
| 12378 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12380 | ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext" |
| 12381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12382 | break 2 |
| 12383 | fi |
| 12384 | done |
| 12385 | done |
| 12386 | IFS=$as_save_IFS |
| 12387 | |
| 12388 | ;; |
| 12389 | esac |
| 12390 | fi |
| 12391 | MENHIR=$ac_cv_path_MENHIR |
| 12392 | if test -n "$MENHIR"; then |
| 12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5 |
| 12394 | $as_echo "$MENHIR" >&6; } |
| 12395 | else |
| 12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12397 | $as_echo "no" >&6; } |
| 12398 | fi |
| 12399 | |
| 12400 | |
| 12401 | fi |
| 12402 | if test -z "$ac_cv_path_MENHIR"; then |
| 12403 | ac_pt_MENHIR=$MENHIR |
| 12404 | # Extract the first word of "[$]MENHIR", so it can be a program name with args. |
| 12405 | set dummy $MENHIR; ac_word=$2 |
| 12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12407 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12408 | if ${ac_cv_path_ac_pt_MENHIR+:} false; then : |
| 12409 | $as_echo_n "(cached) " >&6 |
| 12410 | else |
| 12411 | case $ac_pt_MENHIR in |
| 12412 | [\\/]* | ?:[\\/]*) |
| 12413 | ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path. |
| 12414 | ;; |
| 12415 | *) |
| 12416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12417 | for as_dir in $PATH |
| 12418 | do |
| 12419 | IFS=$as_save_IFS |
| 12420 | test -z "$as_dir" && as_dir=. |
| 12421 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12423 | ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext" |
| 12424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12425 | break 2 |
| 12426 | fi |
| 12427 | done |
| 12428 | done |
| 12429 | IFS=$as_save_IFS |
| 12430 | |
| 12431 | ;; |
| 12432 | esac |
| 12433 | fi |
| 12434 | ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR |
| 12435 | if test -n "$ac_pt_MENHIR"; then |
| 12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5 |
| 12437 | $as_echo "$ac_pt_MENHIR" >&6; } |
| 12438 | else |
| 12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12440 | $as_echo "no" >&6; } |
| 12441 | fi |
| 12442 | |
| 12443 | if test "x$ac_pt_MENHIR" = x; then |
| 12444 | MENHIR="" |
| 12445 | else |
| 12446 | case $cross_compiling:$ac_tool_warned in |
| 12447 | yes:) |
| 12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12449 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12450 | ac_tool_warned=yes ;; |
| 12451 | esac |
| 12452 | MENHIR=$ac_pt_MENHIR |
| 12453 | fi |
| 12454 | else |
| 12455 | MENHIR="$ac_cv_path_MENHIR" |
| 12456 | fi |
| 12457 | |
| 12458 | |
| 12459 | fi |
| 12460 | |
| 12461 | |
| 12462 | fi |
| 12463 | |
| 12464 | if test -z "$MENHIR" -o "x$MENHIR" = xno; then : |
| 12465 | if test "x$with_MENHIR" = xyes; then : |
| 12466 | as_fn_error $? "--with=menhir is given explicitly but not found" "$LINENO" 5 |
| 12467 | |
| 12468 | fi |
| 12469 | |
| 12470 | if test -n "$COCCI_SRCDIR/setup/fake-menhir.sh menhir"; then : |
| 12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&5 |
| 12472 | $as_echo "$as_me: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&6;} |
| 12473 | MENHIR="$COCCI_SRCDIR/setup/fake-menhir.sh menhir" |
| 12474 | |
| 12475 | if test "xmenhir" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then : |
| 12476 | |
| 12477 | |
| 12478 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 12479 | if test -n "$ac_tool_prefix"; then |
| 12480 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 12481 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12483 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12484 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 12485 | $as_echo_n "(cached) " >&6 |
| 12486 | else |
| 12487 | case $PKG_CONFIG in |
| 12488 | [\\/]* | ?:[\\/]*) |
| 12489 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 12490 | ;; |
| 12491 | *) |
| 12492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12493 | for as_dir in $PATH |
| 12494 | do |
| 12495 | IFS=$as_save_IFS |
| 12496 | test -z "$as_dir" && as_dir=. |
| 12497 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12498 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12499 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12501 | break 2 |
| 12502 | fi |
| 12503 | done |
| 12504 | done |
| 12505 | IFS=$as_save_IFS |
| 12506 | |
| 12507 | ;; |
| 12508 | esac |
| 12509 | fi |
| 12510 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 12511 | if test -n "$PKG_CONFIG"; then |
| 12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 12513 | $as_echo "$PKG_CONFIG" >&6; } |
| 12514 | else |
| 12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12516 | $as_echo "no" >&6; } |
| 12517 | fi |
| 12518 | |
| 12519 | |
| 12520 | fi |
| 12521 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 12522 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 12523 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 12524 | set dummy pkg-config; ac_word=$2 |
| 12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12526 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12527 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 12528 | $as_echo_n "(cached) " >&6 |
| 12529 | else |
| 12530 | case $ac_pt_PKG_CONFIG in |
| 12531 | [\\/]* | ?:[\\/]*) |
| 12532 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 12533 | ;; |
| 12534 | *) |
| 12535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12536 | for as_dir in $PATH |
| 12537 | do |
| 12538 | IFS=$as_save_IFS |
| 12539 | test -z "$as_dir" && as_dir=. |
| 12540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12542 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 12543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12544 | break 2 |
| 12545 | fi |
| 12546 | done |
| 12547 | done |
| 12548 | IFS=$as_save_IFS |
| 12549 | |
| 12550 | ;; |
| 12551 | esac |
| 12552 | fi |
| 12553 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 12554 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 12556 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 12557 | else |
| 12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12559 | $as_echo "no" >&6; } |
| 12560 | fi |
| 12561 | |
| 12562 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 12563 | PKG_CONFIG="" |
| 12564 | else |
| 12565 | case $cross_compiling:$ac_tool_warned in |
| 12566 | yes:) |
| 12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12568 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12569 | ac_tool_warned=yes ;; |
| 12570 | esac |
| 12571 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 12572 | fi |
| 12573 | else |
| 12574 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 12575 | fi |
| 12576 | |
| 12577 | fi |
| 12578 | if test -n "$PKG_CONFIG"; then |
| 12579 | _pkg_min_version=0.9.0 |
| 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 12581 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 12582 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12584 | $as_echo "yes" >&6; } |
| 12585 | else |
| 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12587 | $as_echo "no" >&6; } |
| 12588 | PKG_CONFIG="" |
| 12589 | fi |
| 12590 | |
| 12591 | fi |
| 12592 | |
| 12593 | elif test "xmenhir" = xocamllex -a "xMENHIR" = xOCAMLLEX; then : |
| 12594 | # checking for ocamllex |
| 12595 | if test -n "$ac_tool_prefix"; then |
| 12596 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 12597 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12599 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12600 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 12601 | $as_echo_n "(cached) " >&6 |
| 12602 | else |
| 12603 | case $OCAMLLEX in |
| 12604 | [\\/]* | ?:[\\/]*) |
| 12605 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 12606 | ;; |
| 12607 | *) |
| 12608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12609 | for as_dir in $PATH |
| 12610 | do |
| 12611 | IFS=$as_save_IFS |
| 12612 | test -z "$as_dir" && as_dir=. |
| 12613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12615 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 12616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12617 | break 2 |
| 12618 | fi |
| 12619 | done |
| 12620 | done |
| 12621 | IFS=$as_save_IFS |
| 12622 | |
| 12623 | ;; |
| 12624 | esac |
| 12625 | fi |
| 12626 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 12627 | if test -n "$OCAMLLEX"; then |
| 12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 12629 | $as_echo "$OCAMLLEX" >&6; } |
| 12630 | else |
| 12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12632 | $as_echo "no" >&6; } |
| 12633 | fi |
| 12634 | |
| 12635 | |
| 12636 | fi |
| 12637 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 12638 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 12639 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 12640 | set dummy ocamllex; ac_word=$2 |
| 12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12642 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12643 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 12644 | $as_echo_n "(cached) " >&6 |
| 12645 | else |
| 12646 | case $ac_pt_OCAMLLEX in |
| 12647 | [\\/]* | ?:[\\/]*) |
| 12648 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 12649 | ;; |
| 12650 | *) |
| 12651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12652 | for as_dir in $PATH |
| 12653 | do |
| 12654 | IFS=$as_save_IFS |
| 12655 | test -z "$as_dir" && as_dir=. |
| 12656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12658 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 12659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12660 | break 2 |
| 12661 | fi |
| 12662 | done |
| 12663 | done |
| 12664 | IFS=$as_save_IFS |
| 12665 | |
| 12666 | ;; |
| 12667 | esac |
| 12668 | fi |
| 12669 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 12670 | if test -n "$ac_pt_OCAMLLEX"; then |
| 12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 12672 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 12673 | else |
| 12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12675 | $as_echo "no" >&6; } |
| 12676 | fi |
| 12677 | |
| 12678 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 12679 | OCAMLLEX="no" |
| 12680 | else |
| 12681 | case $cross_compiling:$ac_tool_warned in |
| 12682 | yes:) |
| 12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12684 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12685 | ac_tool_warned=yes ;; |
| 12686 | esac |
| 12687 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 12688 | fi |
| 12689 | else |
| 12690 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 12691 | fi |
| 12692 | |
| 12693 | if test "$OCAMLLEX" != "no"; then |
| 12694 | if test -n "$ac_tool_prefix"; then |
| 12695 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 12696 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12698 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12699 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 12700 | $as_echo_n "(cached) " >&6 |
| 12701 | else |
| 12702 | case $OCAMLLEXDOTOPT in |
| 12703 | [\\/]* | ?:[\\/]*) |
| 12704 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 12705 | ;; |
| 12706 | *) |
| 12707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12708 | for as_dir in $PATH |
| 12709 | do |
| 12710 | IFS=$as_save_IFS |
| 12711 | test -z "$as_dir" && as_dir=. |
| 12712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12714 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 12715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12716 | break 2 |
| 12717 | fi |
| 12718 | done |
| 12719 | done |
| 12720 | IFS=$as_save_IFS |
| 12721 | |
| 12722 | ;; |
| 12723 | esac |
| 12724 | fi |
| 12725 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 12726 | if test -n "$OCAMLLEXDOTOPT"; then |
| 12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 12728 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 12729 | else |
| 12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12731 | $as_echo "no" >&6; } |
| 12732 | fi |
| 12733 | |
| 12734 | |
| 12735 | fi |
| 12736 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 12737 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 12738 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 12739 | set dummy ocamllex.opt; ac_word=$2 |
| 12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12741 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12742 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 12743 | $as_echo_n "(cached) " >&6 |
| 12744 | else |
| 12745 | case $ac_pt_OCAMLLEXDOTOPT in |
| 12746 | [\\/]* | ?:[\\/]*) |
| 12747 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 12748 | ;; |
| 12749 | *) |
| 12750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12751 | for as_dir in $PATH |
| 12752 | do |
| 12753 | IFS=$as_save_IFS |
| 12754 | test -z "$as_dir" && as_dir=. |
| 12755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12757 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 12758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12759 | break 2 |
| 12760 | fi |
| 12761 | done |
| 12762 | done |
| 12763 | IFS=$as_save_IFS |
| 12764 | |
| 12765 | ;; |
| 12766 | esac |
| 12767 | fi |
| 12768 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 12769 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 12771 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 12772 | else |
| 12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12774 | $as_echo "no" >&6; } |
| 12775 | fi |
| 12776 | |
| 12777 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 12778 | OCAMLLEXDOTOPT="no" |
| 12779 | else |
| 12780 | case $cross_compiling:$ac_tool_warned in |
| 12781 | yes:) |
| 12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12784 | ac_tool_warned=yes ;; |
| 12785 | esac |
| 12786 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 12787 | fi |
| 12788 | else |
| 12789 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 12790 | fi |
| 12791 | |
| 12792 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 12793 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 12794 | fi |
| 12795 | fi |
| 12796 | |
| 12797 | |
| 12798 | |
| 12799 | elif test "xmenhir" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then : |
| 12800 | if test -n "$ac_tool_prefix"; then |
| 12801 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 12802 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 12803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12804 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12805 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 12806 | $as_echo_n "(cached) " >&6 |
| 12807 | else |
| 12808 | case $OCAMLYACC in |
| 12809 | [\\/]* | ?:[\\/]*) |
| 12810 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 12811 | ;; |
| 12812 | *) |
| 12813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12814 | for as_dir in $PATH |
| 12815 | do |
| 12816 | IFS=$as_save_IFS |
| 12817 | test -z "$as_dir" && as_dir=. |
| 12818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12820 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 12821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12822 | break 2 |
| 12823 | fi |
| 12824 | done |
| 12825 | done |
| 12826 | IFS=$as_save_IFS |
| 12827 | |
| 12828 | ;; |
| 12829 | esac |
| 12830 | fi |
| 12831 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 12832 | if test -n "$OCAMLYACC"; then |
| 12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 12834 | $as_echo "$OCAMLYACC" >&6; } |
| 12835 | else |
| 12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12837 | $as_echo "no" >&6; } |
| 12838 | fi |
| 12839 | |
| 12840 | |
| 12841 | fi |
| 12842 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 12843 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 12844 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 12845 | set dummy ocamlyacc; ac_word=$2 |
| 12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12847 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12848 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 12849 | $as_echo_n "(cached) " >&6 |
| 12850 | else |
| 12851 | case $ac_pt_OCAMLYACC in |
| 12852 | [\\/]* | ?:[\\/]*) |
| 12853 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 12854 | ;; |
| 12855 | *) |
| 12856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12857 | for as_dir in $PATH |
| 12858 | do |
| 12859 | IFS=$as_save_IFS |
| 12860 | test -z "$as_dir" && as_dir=. |
| 12861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12863 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 12864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12865 | break 2 |
| 12866 | fi |
| 12867 | done |
| 12868 | done |
| 12869 | IFS=$as_save_IFS |
| 12870 | |
| 12871 | ;; |
| 12872 | esac |
| 12873 | fi |
| 12874 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 12875 | if test -n "$ac_pt_OCAMLYACC"; then |
| 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 12877 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 12878 | else |
| 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12880 | $as_echo "no" >&6; } |
| 12881 | fi |
| 12882 | |
| 12883 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 12884 | OCAMLYACC="no" |
| 12885 | else |
| 12886 | case $cross_compiling:$ac_tool_warned in |
| 12887 | yes:) |
| 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12889 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12890 | ac_tool_warned=yes ;; |
| 12891 | esac |
| 12892 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 12893 | fi |
| 12894 | else |
| 12895 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 12896 | fi |
| 12897 | |
| 12898 | |
| 12899 | |
| 12900 | |
| 12901 | else |
| 12902 | if test -n "$ac_tool_prefix"; then |
| 12903 | # Extract the first word of "${ac_tool_prefix}menhir", so it can be a program name with args. |
| 12904 | set dummy ${ac_tool_prefix}menhir; ac_word=$2 |
| 12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12906 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12907 | if ${ac_cv_path_MENHIR+:} false; then : |
| 12908 | $as_echo_n "(cached) " >&6 |
| 12909 | else |
| 12910 | case $MENHIR in |
| 12911 | [\\/]* | ?:[\\/]*) |
| 12912 | ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path. |
| 12913 | ;; |
| 12914 | *) |
| 12915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12916 | for as_dir in $PATH |
| 12917 | do |
| 12918 | IFS=$as_save_IFS |
| 12919 | test -z "$as_dir" && as_dir=. |
| 12920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12922 | ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext" |
| 12923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12924 | break 2 |
| 12925 | fi |
| 12926 | done |
| 12927 | done |
| 12928 | IFS=$as_save_IFS |
| 12929 | |
| 12930 | ;; |
| 12931 | esac |
| 12932 | fi |
| 12933 | MENHIR=$ac_cv_path_MENHIR |
| 12934 | if test -n "$MENHIR"; then |
| 12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5 |
| 12936 | $as_echo "$MENHIR" >&6; } |
| 12937 | else |
| 12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12939 | $as_echo "no" >&6; } |
| 12940 | fi |
| 12941 | |
| 12942 | |
| 12943 | fi |
| 12944 | if test -z "$ac_cv_path_MENHIR"; then |
| 12945 | ac_pt_MENHIR=$MENHIR |
| 12946 | # Extract the first word of "menhir", so it can be a program name with args. |
| 12947 | set dummy menhir; ac_word=$2 |
| 12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12949 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12950 | if ${ac_cv_path_ac_pt_MENHIR+:} false; then : |
| 12951 | $as_echo_n "(cached) " >&6 |
| 12952 | else |
| 12953 | case $ac_pt_MENHIR in |
| 12954 | [\\/]* | ?:[\\/]*) |
| 12955 | ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path. |
| 12956 | ;; |
| 12957 | *) |
| 12958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12959 | for as_dir in $PATH |
| 12960 | do |
| 12961 | IFS=$as_save_IFS |
| 12962 | test -z "$as_dir" && as_dir=. |
| 12963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12965 | ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext" |
| 12966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12967 | break 2 |
| 12968 | fi |
| 12969 | done |
| 12970 | done |
| 12971 | IFS=$as_save_IFS |
| 12972 | |
| 12973 | ;; |
| 12974 | esac |
| 12975 | fi |
| 12976 | ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR |
| 12977 | if test -n "$ac_pt_MENHIR"; then |
| 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5 |
| 12979 | $as_echo "$ac_pt_MENHIR" >&6; } |
| 12980 | else |
| 12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12982 | $as_echo "no" >&6; } |
| 12983 | fi |
| 12984 | |
| 12985 | if test "x$ac_pt_MENHIR" = x; then |
| 12986 | MENHIR="" |
| 12987 | else |
| 12988 | case $cross_compiling:$ac_tool_warned in |
| 12989 | yes:) |
| 12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12992 | ac_tool_warned=yes ;; |
| 12993 | esac |
| 12994 | MENHIR=$ac_pt_MENHIR |
| 12995 | fi |
| 12996 | else |
| 12997 | MENHIR="$ac_cv_path_MENHIR" |
| 12998 | fi |
| 12999 | |
| 13000 | |
| 13001 | fi |
| 13002 | |
| 13003 | SUBSTITUTED_MENHIR=yes |
| 13004 | |
| 13005 | |
| 13006 | fi |
| 13007 | |
| 13008 | fi |
| 13009 | |
| 13010 | if test -z "$MENHIR"; then : |
| 13011 | MENHIR=no |
| 13012 | |
| 13013 | fi |
| 13014 | |
| 13015 | if test "x$SUBSTITUTED_MENHIR" = xyes; then : |
| 13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: pregenerated parsers will be required as substitute for Menhir" >&5 |
| 13017 | $as_echo "$as_me: pregenerated parsers will be required as substitute for Menhir" >&6;} |
| 13018 | |
| 13019 | fi |
| 13020 | |
| 13021 | |
| 13022 | # Check whether --enable-ocaml was given. |
| 13023 | if test "${enable_ocaml+set}" = set; then : |
| 13024 | enableval=$enable_ocaml; |
| 13025 | fi |
| 13026 | |
| 13027 | if test "x$OCAML_PKG_dynlink" = xno; then : |
| 13028 | if test -z "$enable_ocaml"; then : |
| 13029 | enable_ocaml=no |
| 13030 | |
| 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because the 'dynlink' package is not installed" >&5 |
| 13032 | $as_echo "$as_me: ocaml scripting is disabled because the 'dynlink' package is not installed" >&6;} |
| 13033 | |
| 13034 | elif test "x$enable_ocaml" != xno; then : |
| 13035 | as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5 |
| 13036 | |
| 13037 | fi |
| 13038 | |
| 13039 | fi |
| 13040 | |
| 13041 | if test "x$OCAMLATLEAST311" = xno; then : |
| 13042 | if test -z "$enable_ocaml"; then : |
| 13043 | enable_ocaml=no |
| 13044 | |
| 13045 | { $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 |
| 13046 | $as_echo "$as_me: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&6;} |
| 13047 | |
| 13048 | elif test "x$enable_ocaml" = xyes; then : |
| 13049 | { $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 |
| 13050 | $as_echo "$as_me: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&6;} |
| 13051 | |
| 13052 | fi |
| 13053 | |
| 13054 | fi |
| 13055 | |
| 13056 | if test "x$OPTIMIZED_dynlink" = xno; then : |
| 13057 | if test -z "$enable_ocaml"; then : |
| 13058 | enable_ocaml=no |
| 13059 | |
| 13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&5 |
| 13061 | $as_echo "$as_me: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&6;} |
| 13062 | |
| 13063 | elif test "x$enable_ocaml" = xyes; then : |
| 13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&5 |
| 13065 | $as_echo "$as_me: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&6;} |
| 13066 | |
| 13067 | fi |
| 13068 | |
| 13069 | fi |
| 13070 | |
| 13071 | if test -n "$SUBSTITUTED_OCAMLFIND"; then : |
| 13072 | if test -z "$enable_ocaml"; then : |
| 13073 | enable_ocaml=no |
| 13074 | |
| 13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it depends on ocamlfind" >&5 |
| 13076 | $as_echo "$as_me: ocaml scripting is disabled because it depends on ocamlfind" >&6;} |
| 13077 | |
| 13078 | elif test "x$enable_ocaml" != xno; then : |
| 13079 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&5 |
| 13080 | $as_echo "$as_me: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&6;} |
| 13081 | |
| 13082 | fi |
| 13083 | |
| 13084 | fi |
| 13085 | |
| 13086 | if test "x$CAMLP4" = xno; then : |
| 13087 | if test -z "$enable_ocaml"; then : |
| 13088 | enable_ocaml=no |
| 13089 | |
| 13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it requires camlp4 which is not available" >&5 |
| 13091 | $as_echo "$as_me: ocaml scripting is disabled because it requires camlp4 which is not available" >&6;} |
| 13092 | |
| 13093 | elif test "x$enable_ocaml" != xno; then : |
| 13094 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: camlp4 is not found but may be required when ocaml scripts are used" >&5 |
| 13095 | $as_echo "$as_me: warning: camlp4 is not found but may be required when ocaml scripts are used" >&6;} |
| 13096 | |
| 13097 | fi |
| 13098 | |
| 13099 | fi |
| 13100 | |
| 13101 | if test "x$enable_ocaml" = xno; then : |
| 13102 | FEATURE_dynlink=0 |
| 13103 | |
| 13104 | LOCALLIB_dynlink=0 |
| 13105 | |
| 13106 | FLAGS_dynlink= |
| 13107 | |
| 13108 | MODULES_dynlink= |
| 13109 | |
| 13110 | MODULESOPT_dynlink= |
| 13111 | |
| 13112 | PATH_dynlink= |
| 13113 | |
| 13114 | OCAMLCOCCI_MODULE=No_prepare_ocamlcocci |
| 13115 | |
| 13116 | OCAMLCOCCI_FILE=no_prepare_ocamlcocci.ml |
| 13117 | |
| 13118 | |
| 13119 | else |
| 13120 | enable_ocaml=yes |
| 13121 | |
| 13122 | OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci |
| 13123 | |
| 13124 | OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml |
| 13125 | |
| 13126 | |
| 13127 | fi |
| 13128 | |
| 13129 | |
| 13130 | |
| 13131 | # Check whether --enable-python was given. |
| 13132 | if test "${enable_python+set}" = set; then : |
| 13133 | enableval=$enable_python; |
| 13134 | fi |
| 13135 | |
| 13136 | if test "x$enable_python" != xno; then : |
| 13137 | if test -n "$enable_python" -a -z "$enable_pycaml"; then : |
| 13138 | { $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 |
| 13139 | $as_echo "$as_me: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&6;} |
| 13140 | enable_pycaml=no |
| 13141 | |
| 13142 | |
| 13143 | fi |
| 13144 | |
| 13145 | if test -z "$PYVER"; then : |
| 13146 | |
| 13147 | |
| 13148 | |
| 13149 | # Check whether --with-python was given. |
| 13150 | if test "${with_python+set}" = set; then : |
| 13151 | withval=$with_python; |
| 13152 | fi |
| 13153 | |
| 13154 | with_PYTHON="$with_python" |
| 13155 | |
| 13156 | if test -n "$with_PYTHON" -a "x$with_PYTHON" != xno -a "x$with_PYTHON" != xyes; then : |
| 13157 | PYTHON="$with_PYTHON" |
| 13158 | |
| 13159 | |
| 13160 | else |
| 13161 | PYTHON="python" |
| 13162 | |
| 13163 | |
| 13164 | fi |
| 13165 | |
| 13166 | if test "x$with_PYTHON" = xno; then : |
| 13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: python is disabled explicitly" >&5 |
| 13168 | $as_echo "$as_me: python is disabled explicitly" >&6;} |
| 13169 | PYTHON=no |
| 13170 | |
| 13171 | |
| 13172 | else |
| 13173 | if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then : |
| 13174 | |
| 13175 | |
| 13176 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 13177 | if test -n "$ac_tool_prefix"; then |
| 13178 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 13179 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13181 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13182 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 13183 | $as_echo_n "(cached) " >&6 |
| 13184 | else |
| 13185 | case $PKG_CONFIG in |
| 13186 | [\\/]* | ?:[\\/]*) |
| 13187 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 13188 | ;; |
| 13189 | *) |
| 13190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13191 | for as_dir in $PATH |
| 13192 | do |
| 13193 | IFS=$as_save_IFS |
| 13194 | test -z "$as_dir" && as_dir=. |
| 13195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13197 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13199 | break 2 |
| 13200 | fi |
| 13201 | done |
| 13202 | done |
| 13203 | IFS=$as_save_IFS |
| 13204 | |
| 13205 | ;; |
| 13206 | esac |
| 13207 | fi |
| 13208 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 13209 | if test -n "$PKG_CONFIG"; then |
| 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 13211 | $as_echo "$PKG_CONFIG" >&6; } |
| 13212 | else |
| 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13214 | $as_echo "no" >&6; } |
| 13215 | fi |
| 13216 | |
| 13217 | |
| 13218 | fi |
| 13219 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 13220 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 13221 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 13222 | set dummy pkg-config; ac_word=$2 |
| 13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13224 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13225 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 13226 | $as_echo_n "(cached) " >&6 |
| 13227 | else |
| 13228 | case $ac_pt_PKG_CONFIG in |
| 13229 | [\\/]* | ?:[\\/]*) |
| 13230 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 13231 | ;; |
| 13232 | *) |
| 13233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13234 | for as_dir in $PATH |
| 13235 | do |
| 13236 | IFS=$as_save_IFS |
| 13237 | test -z "$as_dir" && as_dir=. |
| 13238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13239 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13240 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13242 | break 2 |
| 13243 | fi |
| 13244 | done |
| 13245 | done |
| 13246 | IFS=$as_save_IFS |
| 13247 | |
| 13248 | ;; |
| 13249 | esac |
| 13250 | fi |
| 13251 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 13252 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 13254 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 13255 | else |
| 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13257 | $as_echo "no" >&6; } |
| 13258 | fi |
| 13259 | |
| 13260 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 13261 | PKG_CONFIG="" |
| 13262 | else |
| 13263 | case $cross_compiling:$ac_tool_warned in |
| 13264 | yes:) |
| 13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13266 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13267 | ac_tool_warned=yes ;; |
| 13268 | esac |
| 13269 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 13270 | fi |
| 13271 | else |
| 13272 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 13273 | fi |
| 13274 | |
| 13275 | fi |
| 13276 | if test -n "$PKG_CONFIG"; then |
| 13277 | _pkg_min_version=0.9.0 |
| 13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 13279 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 13280 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13282 | $as_echo "yes" >&6; } |
| 13283 | else |
| 13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13285 | $as_echo "no" >&6; } |
| 13286 | PKG_CONFIG="" |
| 13287 | fi |
| 13288 | |
| 13289 | fi |
| 13290 | |
| 13291 | elif test "x$PYTHON" = xocamllex -a "xPYTHON" = xOCAMLLEX; then : |
| 13292 | # checking for ocamllex |
| 13293 | if test -n "$ac_tool_prefix"; then |
| 13294 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 13295 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13297 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13298 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 13299 | $as_echo_n "(cached) " >&6 |
| 13300 | else |
| 13301 | case $OCAMLLEX in |
| 13302 | [\\/]* | ?:[\\/]*) |
| 13303 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 13304 | ;; |
| 13305 | *) |
| 13306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13307 | for as_dir in $PATH |
| 13308 | do |
| 13309 | IFS=$as_save_IFS |
| 13310 | test -z "$as_dir" && as_dir=. |
| 13311 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13313 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 13314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13315 | break 2 |
| 13316 | fi |
| 13317 | done |
| 13318 | done |
| 13319 | IFS=$as_save_IFS |
| 13320 | |
| 13321 | ;; |
| 13322 | esac |
| 13323 | fi |
| 13324 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 13325 | if test -n "$OCAMLLEX"; then |
| 13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 13327 | $as_echo "$OCAMLLEX" >&6; } |
| 13328 | else |
| 13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13330 | $as_echo "no" >&6; } |
| 13331 | fi |
| 13332 | |
| 13333 | |
| 13334 | fi |
| 13335 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 13336 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 13337 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 13338 | set dummy ocamllex; ac_word=$2 |
| 13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13340 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13341 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 13342 | $as_echo_n "(cached) " >&6 |
| 13343 | else |
| 13344 | case $ac_pt_OCAMLLEX in |
| 13345 | [\\/]* | ?:[\\/]*) |
| 13346 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 13347 | ;; |
| 13348 | *) |
| 13349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13350 | for as_dir in $PATH |
| 13351 | do |
| 13352 | IFS=$as_save_IFS |
| 13353 | test -z "$as_dir" && as_dir=. |
| 13354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13356 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 13357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13358 | break 2 |
| 13359 | fi |
| 13360 | done |
| 13361 | done |
| 13362 | IFS=$as_save_IFS |
| 13363 | |
| 13364 | ;; |
| 13365 | esac |
| 13366 | fi |
| 13367 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 13368 | if test -n "$ac_pt_OCAMLLEX"; then |
| 13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 13370 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 13371 | else |
| 13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13373 | $as_echo "no" >&6; } |
| 13374 | fi |
| 13375 | |
| 13376 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 13377 | OCAMLLEX="no" |
| 13378 | else |
| 13379 | case $cross_compiling:$ac_tool_warned in |
| 13380 | yes:) |
| 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13382 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13383 | ac_tool_warned=yes ;; |
| 13384 | esac |
| 13385 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 13386 | fi |
| 13387 | else |
| 13388 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 13389 | fi |
| 13390 | |
| 13391 | if test "$OCAMLLEX" != "no"; then |
| 13392 | if test -n "$ac_tool_prefix"; then |
| 13393 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 13394 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13396 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13397 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 13398 | $as_echo_n "(cached) " >&6 |
| 13399 | else |
| 13400 | case $OCAMLLEXDOTOPT in |
| 13401 | [\\/]* | ?:[\\/]*) |
| 13402 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 13403 | ;; |
| 13404 | *) |
| 13405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13406 | for as_dir in $PATH |
| 13407 | do |
| 13408 | IFS=$as_save_IFS |
| 13409 | test -z "$as_dir" && as_dir=. |
| 13410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13412 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 13413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13414 | break 2 |
| 13415 | fi |
| 13416 | done |
| 13417 | done |
| 13418 | IFS=$as_save_IFS |
| 13419 | |
| 13420 | ;; |
| 13421 | esac |
| 13422 | fi |
| 13423 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 13424 | if test -n "$OCAMLLEXDOTOPT"; then |
| 13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 13426 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 13427 | else |
| 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13429 | $as_echo "no" >&6; } |
| 13430 | fi |
| 13431 | |
| 13432 | |
| 13433 | fi |
| 13434 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 13435 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 13436 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 13437 | set dummy ocamllex.opt; ac_word=$2 |
| 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13439 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13440 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 13441 | $as_echo_n "(cached) " >&6 |
| 13442 | else |
| 13443 | case $ac_pt_OCAMLLEXDOTOPT in |
| 13444 | [\\/]* | ?:[\\/]*) |
| 13445 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 13446 | ;; |
| 13447 | *) |
| 13448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13449 | for as_dir in $PATH |
| 13450 | do |
| 13451 | IFS=$as_save_IFS |
| 13452 | test -z "$as_dir" && as_dir=. |
| 13453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13455 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 13456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13457 | break 2 |
| 13458 | fi |
| 13459 | done |
| 13460 | done |
| 13461 | IFS=$as_save_IFS |
| 13462 | |
| 13463 | ;; |
| 13464 | esac |
| 13465 | fi |
| 13466 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 13467 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 13469 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 13470 | else |
| 13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13472 | $as_echo "no" >&6; } |
| 13473 | fi |
| 13474 | |
| 13475 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 13476 | OCAMLLEXDOTOPT="no" |
| 13477 | else |
| 13478 | case $cross_compiling:$ac_tool_warned in |
| 13479 | yes:) |
| 13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13482 | ac_tool_warned=yes ;; |
| 13483 | esac |
| 13484 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 13485 | fi |
| 13486 | else |
| 13487 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 13488 | fi |
| 13489 | |
| 13490 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 13491 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 13492 | fi |
| 13493 | fi |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | elif test "x$PYTHON" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then : |
| 13498 | if test -n "$ac_tool_prefix"; then |
| 13499 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 13500 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13502 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13503 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 13504 | $as_echo_n "(cached) " >&6 |
| 13505 | else |
| 13506 | case $OCAMLYACC in |
| 13507 | [\\/]* | ?:[\\/]*) |
| 13508 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 13509 | ;; |
| 13510 | *) |
| 13511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13512 | for as_dir in $PATH |
| 13513 | do |
| 13514 | IFS=$as_save_IFS |
| 13515 | test -z "$as_dir" && as_dir=. |
| 13516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13518 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 13519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13520 | break 2 |
| 13521 | fi |
| 13522 | done |
| 13523 | done |
| 13524 | IFS=$as_save_IFS |
| 13525 | |
| 13526 | ;; |
| 13527 | esac |
| 13528 | fi |
| 13529 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 13530 | if test -n "$OCAMLYACC"; then |
| 13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 13532 | $as_echo "$OCAMLYACC" >&6; } |
| 13533 | else |
| 13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13535 | $as_echo "no" >&6; } |
| 13536 | fi |
| 13537 | |
| 13538 | |
| 13539 | fi |
| 13540 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 13541 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 13542 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 13543 | set dummy ocamlyacc; ac_word=$2 |
| 13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13545 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13546 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 13547 | $as_echo_n "(cached) " >&6 |
| 13548 | else |
| 13549 | case $ac_pt_OCAMLYACC in |
| 13550 | [\\/]* | ?:[\\/]*) |
| 13551 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 13552 | ;; |
| 13553 | *) |
| 13554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13555 | for as_dir in $PATH |
| 13556 | do |
| 13557 | IFS=$as_save_IFS |
| 13558 | test -z "$as_dir" && as_dir=. |
| 13559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13561 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 13562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13563 | break 2 |
| 13564 | fi |
| 13565 | done |
| 13566 | done |
| 13567 | IFS=$as_save_IFS |
| 13568 | |
| 13569 | ;; |
| 13570 | esac |
| 13571 | fi |
| 13572 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 13573 | if test -n "$ac_pt_OCAMLYACC"; then |
| 13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 13575 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 13576 | else |
| 13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13578 | $as_echo "no" >&6; } |
| 13579 | fi |
| 13580 | |
| 13581 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 13582 | OCAMLYACC="no" |
| 13583 | else |
| 13584 | case $cross_compiling:$ac_tool_warned in |
| 13585 | yes:) |
| 13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13587 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13588 | ac_tool_warned=yes ;; |
| 13589 | esac |
| 13590 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 13591 | fi |
| 13592 | else |
| 13593 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 13594 | fi |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | else |
| 13600 | if test -n "$ac_tool_prefix"; then |
| 13601 | # Extract the first word of "${ac_tool_prefix}[$]PYTHON", so it can be a program name with args. |
| 13602 | set dummy ${ac_tool_prefix}$PYTHON; ac_word=$2 |
| 13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13604 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13605 | if ${ac_cv_path_PYTHON+:} false; then : |
| 13606 | $as_echo_n "(cached) " >&6 |
| 13607 | else |
| 13608 | case $PYTHON in |
| 13609 | [\\/]* | ?:[\\/]*) |
| 13610 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 13611 | ;; |
| 13612 | *) |
| 13613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13614 | for as_dir in $PATH |
| 13615 | do |
| 13616 | IFS=$as_save_IFS |
| 13617 | test -z "$as_dir" && as_dir=. |
| 13618 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13620 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 13621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13622 | break 2 |
| 13623 | fi |
| 13624 | done |
| 13625 | done |
| 13626 | IFS=$as_save_IFS |
| 13627 | |
| 13628 | ;; |
| 13629 | esac |
| 13630 | fi |
| 13631 | PYTHON=$ac_cv_path_PYTHON |
| 13632 | if test -n "$PYTHON"; then |
| 13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 13634 | $as_echo "$PYTHON" >&6; } |
| 13635 | else |
| 13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13637 | $as_echo "no" >&6; } |
| 13638 | fi |
| 13639 | |
| 13640 | |
| 13641 | fi |
| 13642 | if test -z "$ac_cv_path_PYTHON"; then |
| 13643 | ac_pt_PYTHON=$PYTHON |
| 13644 | # Extract the first word of "[$]PYTHON", so it can be a program name with args. |
| 13645 | set dummy $PYTHON; ac_word=$2 |
| 13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13647 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13648 | if ${ac_cv_path_ac_pt_PYTHON+:} false; then : |
| 13649 | $as_echo_n "(cached) " >&6 |
| 13650 | else |
| 13651 | case $ac_pt_PYTHON in |
| 13652 | [\\/]* | ?:[\\/]*) |
| 13653 | ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path. |
| 13654 | ;; |
| 13655 | *) |
| 13656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13657 | for as_dir in $PATH |
| 13658 | do |
| 13659 | IFS=$as_save_IFS |
| 13660 | test -z "$as_dir" && as_dir=. |
| 13661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13663 | ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 13664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13665 | break 2 |
| 13666 | fi |
| 13667 | done |
| 13668 | done |
| 13669 | IFS=$as_save_IFS |
| 13670 | |
| 13671 | ;; |
| 13672 | esac |
| 13673 | fi |
| 13674 | ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON |
| 13675 | if test -n "$ac_pt_PYTHON"; then |
| 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5 |
| 13677 | $as_echo "$ac_pt_PYTHON" >&6; } |
| 13678 | else |
| 13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13680 | $as_echo "no" >&6; } |
| 13681 | fi |
| 13682 | |
| 13683 | if test "x$ac_pt_PYTHON" = x; then |
| 13684 | PYTHON="" |
| 13685 | else |
| 13686 | case $cross_compiling:$ac_tool_warned in |
| 13687 | yes:) |
| 13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13689 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13690 | ac_tool_warned=yes ;; |
| 13691 | esac |
| 13692 | PYTHON=$ac_pt_PYTHON |
| 13693 | fi |
| 13694 | else |
| 13695 | PYTHON="$ac_cv_path_PYTHON" |
| 13696 | fi |
| 13697 | |
| 13698 | |
| 13699 | fi |
| 13700 | |
| 13701 | |
| 13702 | fi |
| 13703 | |
| 13704 | if test -z "$PYTHON" -o "x$PYTHON" = xno; then : |
| 13705 | if test "x$with_PYTHON" = xyes; then : |
| 13706 | as_fn_error $? "--with=python is given explicitly but not found" "$LINENO" 5 |
| 13707 | |
| 13708 | fi |
| 13709 | |
| 13710 | if test -n ""; then : |
| 13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: python not found. Trying substitute ." >&5 |
| 13712 | $as_echo "$as_me: python not found. Trying substitute ." >&6;} |
| 13713 | PYTHON="" |
| 13714 | |
| 13715 | if test "xpython" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then : |
| 13716 | |
| 13717 | |
| 13718 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 13719 | if test -n "$ac_tool_prefix"; then |
| 13720 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 13721 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13723 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13724 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 13725 | $as_echo_n "(cached) " >&6 |
| 13726 | else |
| 13727 | case $PKG_CONFIG in |
| 13728 | [\\/]* | ?:[\\/]*) |
| 13729 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 13730 | ;; |
| 13731 | *) |
| 13732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13733 | for as_dir in $PATH |
| 13734 | do |
| 13735 | IFS=$as_save_IFS |
| 13736 | test -z "$as_dir" && as_dir=. |
| 13737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13739 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13741 | break 2 |
| 13742 | fi |
| 13743 | done |
| 13744 | done |
| 13745 | IFS=$as_save_IFS |
| 13746 | |
| 13747 | ;; |
| 13748 | esac |
| 13749 | fi |
| 13750 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 13751 | if test -n "$PKG_CONFIG"; then |
| 13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 13753 | $as_echo "$PKG_CONFIG" >&6; } |
| 13754 | else |
| 13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13756 | $as_echo "no" >&6; } |
| 13757 | fi |
| 13758 | |
| 13759 | |
| 13760 | fi |
| 13761 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 13762 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 13763 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 13764 | set dummy pkg-config; ac_word=$2 |
| 13765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13766 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13767 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 13768 | $as_echo_n "(cached) " >&6 |
| 13769 | else |
| 13770 | case $ac_pt_PKG_CONFIG in |
| 13771 | [\\/]* | ?:[\\/]*) |
| 13772 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 13773 | ;; |
| 13774 | *) |
| 13775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13776 | for as_dir in $PATH |
| 13777 | do |
| 13778 | IFS=$as_save_IFS |
| 13779 | test -z "$as_dir" && as_dir=. |
| 13780 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13782 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 13783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13784 | break 2 |
| 13785 | fi |
| 13786 | done |
| 13787 | done |
| 13788 | IFS=$as_save_IFS |
| 13789 | |
| 13790 | ;; |
| 13791 | esac |
| 13792 | fi |
| 13793 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 13794 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 13796 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 13797 | else |
| 13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13799 | $as_echo "no" >&6; } |
| 13800 | fi |
| 13801 | |
| 13802 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 13803 | PKG_CONFIG="" |
| 13804 | else |
| 13805 | case $cross_compiling:$ac_tool_warned in |
| 13806 | yes:) |
| 13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13808 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13809 | ac_tool_warned=yes ;; |
| 13810 | esac |
| 13811 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 13812 | fi |
| 13813 | else |
| 13814 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 13815 | fi |
| 13816 | |
| 13817 | fi |
| 13818 | if test -n "$PKG_CONFIG"; then |
| 13819 | _pkg_min_version=0.9.0 |
| 13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 13821 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 13822 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13824 | $as_echo "yes" >&6; } |
| 13825 | else |
| 13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13827 | $as_echo "no" >&6; } |
| 13828 | PKG_CONFIG="" |
| 13829 | fi |
| 13830 | |
| 13831 | fi |
| 13832 | |
| 13833 | elif test "xpython" = xocamllex -a "xPYTHON" = xOCAMLLEX; then : |
| 13834 | # checking for ocamllex |
| 13835 | if test -n "$ac_tool_prefix"; then |
| 13836 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 13837 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13839 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13840 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 13841 | $as_echo_n "(cached) " >&6 |
| 13842 | else |
| 13843 | case $OCAMLLEX in |
| 13844 | [\\/]* | ?:[\\/]*) |
| 13845 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 13846 | ;; |
| 13847 | *) |
| 13848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13849 | for as_dir in $PATH |
| 13850 | do |
| 13851 | IFS=$as_save_IFS |
| 13852 | test -z "$as_dir" && as_dir=. |
| 13853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13855 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 13856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13857 | break 2 |
| 13858 | fi |
| 13859 | done |
| 13860 | done |
| 13861 | IFS=$as_save_IFS |
| 13862 | |
| 13863 | ;; |
| 13864 | esac |
| 13865 | fi |
| 13866 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 13867 | if test -n "$OCAMLLEX"; then |
| 13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 13869 | $as_echo "$OCAMLLEX" >&6; } |
| 13870 | else |
| 13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13872 | $as_echo "no" >&6; } |
| 13873 | fi |
| 13874 | |
| 13875 | |
| 13876 | fi |
| 13877 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 13878 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 13879 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 13880 | set dummy ocamllex; ac_word=$2 |
| 13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13882 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13883 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 13884 | $as_echo_n "(cached) " >&6 |
| 13885 | else |
| 13886 | case $ac_pt_OCAMLLEX in |
| 13887 | [\\/]* | ?:[\\/]*) |
| 13888 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 13889 | ;; |
| 13890 | *) |
| 13891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13892 | for as_dir in $PATH |
| 13893 | do |
| 13894 | IFS=$as_save_IFS |
| 13895 | test -z "$as_dir" && as_dir=. |
| 13896 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13898 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 13899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13900 | break 2 |
| 13901 | fi |
| 13902 | done |
| 13903 | done |
| 13904 | IFS=$as_save_IFS |
| 13905 | |
| 13906 | ;; |
| 13907 | esac |
| 13908 | fi |
| 13909 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 13910 | if test -n "$ac_pt_OCAMLLEX"; then |
| 13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 13912 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 13913 | else |
| 13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13915 | $as_echo "no" >&6; } |
| 13916 | fi |
| 13917 | |
| 13918 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 13919 | OCAMLLEX="no" |
| 13920 | else |
| 13921 | case $cross_compiling:$ac_tool_warned in |
| 13922 | yes:) |
| 13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13924 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13925 | ac_tool_warned=yes ;; |
| 13926 | esac |
| 13927 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 13928 | fi |
| 13929 | else |
| 13930 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 13931 | fi |
| 13932 | |
| 13933 | if test "$OCAMLLEX" != "no"; then |
| 13934 | if test -n "$ac_tool_prefix"; then |
| 13935 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 13936 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13938 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13939 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 13940 | $as_echo_n "(cached) " >&6 |
| 13941 | else |
| 13942 | case $OCAMLLEXDOTOPT in |
| 13943 | [\\/]* | ?:[\\/]*) |
| 13944 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 13945 | ;; |
| 13946 | *) |
| 13947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13948 | for as_dir in $PATH |
| 13949 | do |
| 13950 | IFS=$as_save_IFS |
| 13951 | test -z "$as_dir" && as_dir=. |
| 13952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13954 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 13955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13956 | break 2 |
| 13957 | fi |
| 13958 | done |
| 13959 | done |
| 13960 | IFS=$as_save_IFS |
| 13961 | |
| 13962 | ;; |
| 13963 | esac |
| 13964 | fi |
| 13965 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 13966 | if test -n "$OCAMLLEXDOTOPT"; then |
| 13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 13968 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 13969 | else |
| 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13971 | $as_echo "no" >&6; } |
| 13972 | fi |
| 13973 | |
| 13974 | |
| 13975 | fi |
| 13976 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 13977 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 13978 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 13979 | set dummy ocamllex.opt; ac_word=$2 |
| 13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13981 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13982 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 13983 | $as_echo_n "(cached) " >&6 |
| 13984 | else |
| 13985 | case $ac_pt_OCAMLLEXDOTOPT in |
| 13986 | [\\/]* | ?:[\\/]*) |
| 13987 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 13988 | ;; |
| 13989 | *) |
| 13990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13991 | for as_dir in $PATH |
| 13992 | do |
| 13993 | IFS=$as_save_IFS |
| 13994 | test -z "$as_dir" && as_dir=. |
| 13995 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13996 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13997 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 13998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13999 | break 2 |
| 14000 | fi |
| 14001 | done |
| 14002 | done |
| 14003 | IFS=$as_save_IFS |
| 14004 | |
| 14005 | ;; |
| 14006 | esac |
| 14007 | fi |
| 14008 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 14009 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 14011 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 14012 | else |
| 14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14014 | $as_echo "no" >&6; } |
| 14015 | fi |
| 14016 | |
| 14017 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 14018 | OCAMLLEXDOTOPT="no" |
| 14019 | else |
| 14020 | case $cross_compiling:$ac_tool_warned in |
| 14021 | yes:) |
| 14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 14023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 14024 | ac_tool_warned=yes ;; |
| 14025 | esac |
| 14026 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 14027 | fi |
| 14028 | else |
| 14029 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 14030 | fi |
| 14031 | |
| 14032 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 14033 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 14034 | fi |
| 14035 | fi |
| 14036 | |
| 14037 | |
| 14038 | |
| 14039 | elif test "xpython" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then : |
| 14040 | if test -n "$ac_tool_prefix"; then |
| 14041 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 14042 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14044 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14045 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 14046 | $as_echo_n "(cached) " >&6 |
| 14047 | else |
| 14048 | case $OCAMLYACC in |
| 14049 | [\\/]* | ?:[\\/]*) |
| 14050 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 14051 | ;; |
| 14052 | *) |
| 14053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14054 | for as_dir in $PATH |
| 14055 | do |
| 14056 | IFS=$as_save_IFS |
| 14057 | test -z "$as_dir" && as_dir=. |
| 14058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14060 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 14061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14062 | break 2 |
| 14063 | fi |
| 14064 | done |
| 14065 | done |
| 14066 | IFS=$as_save_IFS |
| 14067 | |
| 14068 | ;; |
| 14069 | esac |
| 14070 | fi |
| 14071 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 14072 | if test -n "$OCAMLYACC"; then |
| 14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 14074 | $as_echo "$OCAMLYACC" >&6; } |
| 14075 | else |
| 14076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14077 | $as_echo "no" >&6; } |
| 14078 | fi |
| 14079 | |
| 14080 | |
| 14081 | fi |
| 14082 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 14083 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 14084 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 14085 | set dummy ocamlyacc; ac_word=$2 |
| 14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14087 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14088 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 14089 | $as_echo_n "(cached) " >&6 |
| 14090 | else |
| 14091 | case $ac_pt_OCAMLYACC in |
| 14092 | [\\/]* | ?:[\\/]*) |
| 14093 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 14094 | ;; |
| 14095 | *) |
| 14096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14097 | for as_dir in $PATH |
| 14098 | do |
| 14099 | IFS=$as_save_IFS |
| 14100 | test -z "$as_dir" && as_dir=. |
| 14101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14103 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 14104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14105 | break 2 |
| 14106 | fi |
| 14107 | done |
| 14108 | done |
| 14109 | IFS=$as_save_IFS |
| 14110 | |
| 14111 | ;; |
| 14112 | esac |
| 14113 | fi |
| 14114 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 14115 | if test -n "$ac_pt_OCAMLYACC"; then |
| 14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 14117 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 14118 | else |
| 14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14120 | $as_echo "no" >&6; } |
| 14121 | fi |
| 14122 | |
| 14123 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 14124 | OCAMLYACC="no" |
| 14125 | else |
| 14126 | case $cross_compiling:$ac_tool_warned in |
| 14127 | yes:) |
| 14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 14129 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 14130 | ac_tool_warned=yes ;; |
| 14131 | esac |
| 14132 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 14133 | fi |
| 14134 | else |
| 14135 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 14136 | fi |
| 14137 | |
| 14138 | |
| 14139 | |
| 14140 | |
| 14141 | else |
| 14142 | if test -n "$ac_tool_prefix"; then |
| 14143 | # Extract the first word of "${ac_tool_prefix}python", so it can be a program name with args. |
| 14144 | set dummy ${ac_tool_prefix}python; ac_word=$2 |
| 14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14146 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14147 | if ${ac_cv_path_PYTHON+:} false; then : |
| 14148 | $as_echo_n "(cached) " >&6 |
| 14149 | else |
| 14150 | case $PYTHON in |
| 14151 | [\\/]* | ?:[\\/]*) |
| 14152 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 14153 | ;; |
| 14154 | *) |
| 14155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14156 | for as_dir in $PATH |
| 14157 | do |
| 14158 | IFS=$as_save_IFS |
| 14159 | test -z "$as_dir" && as_dir=. |
| 14160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14162 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 14163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14164 | break 2 |
| 14165 | fi |
| 14166 | done |
| 14167 | done |
| 14168 | IFS=$as_save_IFS |
| 14169 | |
| 14170 | ;; |
| 14171 | esac |
| 14172 | fi |
| 14173 | PYTHON=$ac_cv_path_PYTHON |
| 14174 | if test -n "$PYTHON"; then |
| 14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 14176 | $as_echo "$PYTHON" >&6; } |
| 14177 | else |
| 14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14179 | $as_echo "no" >&6; } |
| 14180 | fi |
| 14181 | |
| 14182 | |
| 14183 | fi |
| 14184 | if test -z "$ac_cv_path_PYTHON"; then |
| 14185 | ac_pt_PYTHON=$PYTHON |
| 14186 | # Extract the first word of "python", so it can be a program name with args. |
| 14187 | set dummy python; ac_word=$2 |
| 14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14189 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14190 | if ${ac_cv_path_ac_pt_PYTHON+:} false; then : |
| 14191 | $as_echo_n "(cached) " >&6 |
| 14192 | else |
| 14193 | case $ac_pt_PYTHON in |
| 14194 | [\\/]* | ?:[\\/]*) |
| 14195 | ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path. |
| 14196 | ;; |
| 14197 | *) |
| 14198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14199 | for as_dir in $PATH |
| 14200 | do |
| 14201 | IFS=$as_save_IFS |
| 14202 | test -z "$as_dir" && as_dir=. |
| 14203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14205 | ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 14206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14207 | break 2 |
| 14208 | fi |
| 14209 | done |
| 14210 | done |
| 14211 | IFS=$as_save_IFS |
| 14212 | |
| 14213 | ;; |
| 14214 | esac |
| 14215 | fi |
| 14216 | ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON |
| 14217 | if test -n "$ac_pt_PYTHON"; then |
| 14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5 |
| 14219 | $as_echo "$ac_pt_PYTHON" >&6; } |
| 14220 | else |
| 14221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14222 | $as_echo "no" >&6; } |
| 14223 | fi |
| 14224 | |
| 14225 | if test "x$ac_pt_PYTHON" = x; then |
| 14226 | PYTHON="" |
| 14227 | else |
| 14228 | case $cross_compiling:$ac_tool_warned in |
| 14229 | yes:) |
| 14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 14231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 14232 | ac_tool_warned=yes ;; |
| 14233 | esac |
| 14234 | PYTHON=$ac_pt_PYTHON |
| 14235 | fi |
| 14236 | else |
| 14237 | PYTHON="$ac_cv_path_PYTHON" |
| 14238 | fi |
| 14239 | |
| 14240 | |
| 14241 | fi |
| 14242 | |
| 14243 | SUBSTITUTED_PYTHON=yes |
| 14244 | |
| 14245 | |
| 14246 | fi |
| 14247 | |
| 14248 | fi |
| 14249 | |
| 14250 | if test -z "$PYTHON"; then : |
| 14251 | PYTHON=no |
| 14252 | |
| 14253 | fi |
| 14254 | |
| 14255 | |
| 14256 | if test "x$PYTHON" = xno -a -z "$with_python"; then : |
| 14257 | for ac_prog in python python3 python3.2 python3.1 python2 python2.7 python2.6 python2.5 |
| 14258 | do |
| 14259 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14260 | set dummy $ac_prog; ac_word=$2 |
| 14261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14262 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14263 | if ${ac_cv_path_PYTHON+:} false; then : |
| 14264 | $as_echo_n "(cached) " >&6 |
| 14265 | else |
| 14266 | case $PYTHON in |
| 14267 | [\\/]* | ?:[\\/]*) |
| 14268 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 14269 | ;; |
| 14270 | *) |
| 14271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14272 | for as_dir in $PATH |
| 14273 | do |
| 14274 | IFS=$as_save_IFS |
| 14275 | test -z "$as_dir" && as_dir=. |
| 14276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14278 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
| 14279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14280 | break 2 |
| 14281 | fi |
| 14282 | done |
| 14283 | done |
| 14284 | IFS=$as_save_IFS |
| 14285 | |
| 14286 | ;; |
| 14287 | esac |
| 14288 | fi |
| 14289 | PYTHON=$ac_cv_path_PYTHON |
| 14290 | if test -n "$PYTHON"; then |
| 14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 14292 | $as_echo "$PYTHON" >&6; } |
| 14293 | else |
| 14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14295 | $as_echo "no" >&6; } |
| 14296 | fi |
| 14297 | |
| 14298 | |
| 14299 | test -n "$PYTHON" && break |
| 14300 | done |
| 14301 | |
| 14302 | if test -z "$PYTHON"; then : |
| 14303 | PYTHON=no |
| 14304 | |
| 14305 | fi |
| 14306 | |
| 14307 | fi |
| 14308 | |
| 14309 | if test "x$PYTHON" = xno -a -n "$with_python" -a "x$with_python" != xyes; then : |
| 14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: $with_python is not a found as tool, therefore interpreted as version" >&5 |
| 14311 | $as_echo "$as_me: $with_python is not a found as tool, therefore interpreted as version" >&6;} |
| 14312 | PYVER="$with_python" |
| 14313 | |
| 14314 | |
| 14315 | fi |
| 14316 | |
| 14317 | if test "x$PYTHON" != xno; then : |
| 14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking python version" >&5 |
| 14319 | $as_echo_n "checking python version... " >&6; } |
| 14320 | PYVER=`$PYTHON -c "import sys; print(sys.version[:3])"` |
| 14321 | if test -n "$PYVER"; then : |
| 14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER found" >&5 |
| 14323 | $as_echo "$PYVER found" >&6; } |
| 14324 | else |
| 14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 14326 | $as_echo "failed" >&6; } |
| 14327 | fi |
| 14328 | |
| 14329 | |
| 14330 | fi |
| 14331 | |
| 14332 | else |
| 14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: python version assumed to be $PYVER" >&5 |
| 14334 | $as_echo "$as_me: python version assumed to be $PYVER" >&6;} |
| 14335 | |
| 14336 | fi |
| 14337 | |
| 14338 | PYVER_MAJOR=${PYVER%%.*} |
| 14339 | |
| 14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: python major version: $PYVER_MAJOR" >&5 |
| 14341 | $as_echo "$as_me: python major version: $PYVER_MAJOR" >&6;} |
| 14342 | |
| 14343 | |
| 14344 | if test -z "$PYVER"; then : |
| 14345 | if test "x$enable_python" = xyes; then : |
| 14346 | as_fn_error $? "python scripting is enabled explicitly but the version of python could not be determined" "$LINENO" 5 |
| 14347 | |
| 14348 | fi |
| 14349 | |
| 14350 | else |
| 14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: looking for the corresponding python library" >&5 |
| 14352 | $as_echo "$as_me: looking for the corresponding python library" >&6;} |
| 14353 | |
| 14354 | pkg_failed=no |
| 14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 |
| 14356 | $as_echo_n "checking for PYTHON... " >&6; } |
| 14357 | |
| 14358 | if test -n "$PYTHON_CFLAGS"; then |
| 14359 | pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" |
| 14360 | elif test -n "$PKG_CONFIG"; then |
| 14361 | if test -n "$PKG_CONFIG" && \ |
| 14362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5 |
| 14363 | ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5 |
| 14364 | ac_status=$? |
| 14365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14366 | test $ac_status = 0; }; then |
| 14367 | pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYVER" 2>/dev/null` |
| 14368 | else |
| 14369 | pkg_failed=yes |
| 14370 | fi |
| 14371 | else |
| 14372 | pkg_failed=untried |
| 14373 | fi |
| 14374 | if test -n "$PYTHON_LIBS"; then |
| 14375 | pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" |
| 14376 | elif test -n "$PKG_CONFIG"; then |
| 14377 | if test -n "$PKG_CONFIG" && \ |
| 14378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5 |
| 14379 | ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5 |
| 14380 | ac_status=$? |
| 14381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14382 | test $ac_status = 0; }; then |
| 14383 | pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYVER" 2>/dev/null` |
| 14384 | else |
| 14385 | pkg_failed=yes |
| 14386 | fi |
| 14387 | else |
| 14388 | pkg_failed=untried |
| 14389 | fi |
| 14390 | |
| 14391 | |
| 14392 | |
| 14393 | if test $pkg_failed = yes; then |
| 14394 | |
| 14395 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 14396 | _pkg_short_errors_supported=yes |
| 14397 | else |
| 14398 | _pkg_short_errors_supported=no |
| 14399 | fi |
| 14400 | if test $_pkg_short_errors_supported = yes; then |
| 14401 | PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python-$PYVER" 2>&1` |
| 14402 | else |
| 14403 | PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python-$PYVER" 2>&1` |
| 14404 | fi |
| 14405 | # Put the nasty error message in config.log where it belongs |
| 14406 | echo "$PYTHON_PKG_ERRORS" >&5 |
| 14407 | |
| 14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14409 | $as_echo "no" >&6; } |
| 14410 | HAVE_PYTHON=no |
| 14411 | |
| 14412 | elif test $pkg_failed = untried; then |
| 14413 | HAVE_PYTHON=no |
| 14414 | |
| 14415 | else |
| 14416 | PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS |
| 14417 | PYTHON_LIBS=$pkg_cv_PYTHON_LIBS |
| 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14419 | $as_echo "yes" >&6; } |
| 14420 | HAVE_PYTHON=yes |
| 14421 | |
| 14422 | fi |
| 14423 | |
| 14424 | if test "x$HAVE_PYTHON" != xyes -a "x$enable_python" != xyes; then : |
| 14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: trying the default python library as fallback" >&5 |
| 14426 | $as_echo "$as_me: trying the default python library as fallback" >&6;} |
| 14427 | |
| 14428 | pkg_failed=no |
| 14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 |
| 14430 | $as_echo_n "checking for PYTHON... " >&6; } |
| 14431 | |
| 14432 | if test -n "$PYTHON_CFLAGS"; then |
| 14433 | pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" |
| 14434 | elif test -n "$PKG_CONFIG"; then |
| 14435 | if test -n "$PKG_CONFIG" && \ |
| 14436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 |
| 14437 | ($PKG_CONFIG --exists --print-errors "python") 2>&5 |
| 14438 | ac_status=$? |
| 14439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14440 | test $ac_status = 0; }; then |
| 14441 | pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` |
| 14442 | else |
| 14443 | pkg_failed=yes |
| 14444 | fi |
| 14445 | else |
| 14446 | pkg_failed=untried |
| 14447 | fi |
| 14448 | if test -n "$PYTHON_LIBS"; then |
| 14449 | pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" |
| 14450 | elif test -n "$PKG_CONFIG"; then |
| 14451 | if test -n "$PKG_CONFIG" && \ |
| 14452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 |
| 14453 | ($PKG_CONFIG --exists --print-errors "python") 2>&5 |
| 14454 | ac_status=$? |
| 14455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14456 | test $ac_status = 0; }; then |
| 14457 | pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` |
| 14458 | else |
| 14459 | pkg_failed=yes |
| 14460 | fi |
| 14461 | else |
| 14462 | pkg_failed=untried |
| 14463 | fi |
| 14464 | |
| 14465 | |
| 14466 | |
| 14467 | if test $pkg_failed = yes; then |
| 14468 | |
| 14469 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 14470 | _pkg_short_errors_supported=yes |
| 14471 | else |
| 14472 | _pkg_short_errors_supported=no |
| 14473 | fi |
| 14474 | if test $_pkg_short_errors_supported = yes; then |
| 14475 | PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python" 2>&1` |
| 14476 | else |
| 14477 | PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python" 2>&1` |
| 14478 | fi |
| 14479 | # Put the nasty error message in config.log where it belongs |
| 14480 | echo "$PYTHON_PKG_ERRORS" >&5 |
| 14481 | |
| 14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14483 | $as_echo "no" >&6; } |
| 14484 | HAVE_PYTHON=no |
| 14485 | |
| 14486 | elif test $pkg_failed = untried; then |
| 14487 | HAVE_PYTHON=no |
| 14488 | |
| 14489 | else |
| 14490 | PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS |
| 14491 | PYTHON_LIBS=$pkg_cv_PYTHON_LIBS |
| 14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14493 | $as_echo "yes" >&6; } |
| 14494 | HAVE_PYTHON=yes |
| 14495 | |
| 14496 | fi |
| 14497 | |
| 14498 | fi |
| 14499 | |
| 14500 | fi |
| 14501 | |
| 14502 | fi |
| 14503 | |
| 14504 | if test -z "$enable_python"; then : |
| 14505 | if test "x$HAVE_PYTHON" = xyes; then : |
| 14506 | enable_python=yes |
| 14507 | |
| 14508 | |
| 14509 | else |
| 14510 | enable_python=no |
| 14511 | |
| 14512 | |
| 14513 | fi |
| 14514 | |
| 14515 | fi |
| 14516 | |
| 14517 | if test "x$enable_python" != xno; then : |
| 14518 | if test "x$HAVE_PYTHON" = xyes; then : |
| 14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: support for python scripts is enabled" >&5 |
| 14520 | $as_echo "$as_me: support for python scripts is enabled" >&6;} |
| 14521 | |
| 14522 | else |
| 14523 | as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5 |
| 14524 | |
| 14525 | fi |
| 14526 | |
| 14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pycaml" >&5 |
| 14528 | $as_echo "$as_me: configuring package pycaml" >&6;} |
| 14529 | # Check whether --enable-pycaml was given. |
| 14530 | if test "${enable_pycaml+set}" = set; then : |
| 14531 | enableval=$enable_pycaml; |
| 14532 | fi |
| 14533 | |
| 14534 | |
| 14535 | if test "x$enable_pycaml" != xno; then : |
| 14536 | |
| 14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pycaml" >&5 |
| 14538 | $as_echo_n "checking for OCaml findlib package pycaml... " >&6; } |
| 14539 | |
| 14540 | unset found |
| 14541 | unset pkg |
| 14542 | found=no |
| 14543 | for pkg in pycaml ; do |
| 14544 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 14546 | $as_echo "found" >&6; } |
| 14547 | OCAML_PKG_pycaml=$pkg |
| 14548 | found=yes |
| 14549 | break |
| 14550 | fi |
| 14551 | done |
| 14552 | if test "$found" = "no" ; then |
| 14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 14554 | $as_echo "not found" >&6; } |
| 14555 | OCAML_PKG_pycaml=no |
| 14556 | fi |
| 14557 | |
| 14558 | |
| 14559 | |
| 14560 | if test "x$OCAML_PKG_pycaml" != xno; then : |
| 14561 | PATH_pycaml=`$OCAMLFIND query pycaml 2>/dev/null` |
| 14562 | |
| 14563 | |
| 14564 | fi |
| 14565 | |
| 14566 | GLOBAL_pycaml=$OCAML_PKG_pycaml |
| 14567 | |
| 14568 | |
| 14569 | if test "x$GLOBAL_pycaml" != xno; then : |
| 14570 | enable_pycaml=yes |
| 14571 | |
| 14572 | |
| 14573 | else |
| 14574 | if test "x$enable_pycaml" = xyes; then : |
| 14575 | as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5 |
| 14576 | |
| 14577 | fi |
| 14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pycaml is not available" >&5 |
| 14579 | $as_echo "$as_me: OCaml package pycaml is not available" >&6;} |
| 14580 | enable_pycaml=no |
| 14581 | |
| 14582 | |
| 14583 | fi |
| 14584 | |
| 14585 | fi |
| 14586 | |
| 14587 | if test "x$enable_pycaml" = xno; then : |
| 14588 | { pkgdir=; unset pkgdir;} |
| 14589 | pkgdir="$COCCI_OCAML_EXTERNAL/pycaml/" |
| 14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pycaml" >&5 |
| 14591 | $as_echo_n "checking for a bundled substitute of pycaml... " >&6; } |
| 14592 | if test -d "$pkgdir"; then : |
| 14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14594 | $as_echo "yes" >&6; } |
| 14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pycaml in $pkgdir" >&5 |
| 14596 | $as_echo "$as_me: using bundled substitute for pycaml in $pkgdir" >&6;} |
| 14597 | enable_pycaml=local |
| 14598 | |
| 14599 | PATH_pycaml="$pkgdir" |
| 14600 | |
| 14601 | |
| 14602 | else |
| 14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 |
| 14604 | $as_echo "not available" >&6; } |
| 14605 | fi |
| 14606 | |
| 14607 | fi |
| 14608 | |
| 14609 | if test "x$enable_pycaml" != xno; then : |
| 14610 | FEATURE_pycaml=1 |
| 14611 | |
| 14612 | FLAGS_pycaml='$(FLAGS_pycaml)' |
| 14613 | |
| 14614 | OPTFLAGS_pycaml='$(OPTFLAGS_pycaml)' |
| 14615 | |
| 14616 | |
| 14617 | if test "x$enable_pycaml" = xlocal; then : |
| 14618 | LOCALLIB_pycaml=1 |
| 14619 | |
| 14620 | MODULES_pycaml='$(LOCAL_pycaml)' |
| 14621 | |
| 14622 | MODULESOPT_pycaml='$(LOCALOPT_pycaml)' |
| 14623 | |
| 14624 | |
| 14625 | if test -f "$PATH_pycaml/Makefile"; then : |
| 14626 | MAKE_pycaml=$PATH_pycaml |
| 14627 | |
| 14628 | |
| 14629 | else |
| 14630 | MAKE_pycaml= |
| 14631 | |
| 14632 | |
| 14633 | fi |
| 14634 | |
| 14635 | else |
| 14636 | MODULES_pycaml='$(GLOBAL_pycaml)' |
| 14637 | |
| 14638 | MODULESOPT_pycaml='$(GLOBALOPT_pycaml)' |
| 14639 | |
| 14640 | |
| 14641 | fi |
| 14642 | |
| 14643 | fi |
| 14644 | |
| 14645 | if test "x$enable_pycaml" = xno; then : |
| 14646 | as_fn_error $? "OCaml package pycaml is required. Please make sure it is available." "$LINENO" 5 |
| 14647 | |
| 14648 | fi |
| 14649 | |
| 14650 | PYCOCCI_MODULE=Yes_pycocci |
| 14651 | |
| 14652 | PYCOCCI_FILE=yes_pycocci.ml |
| 14653 | |
| 14654 | |
| 14655 | else |
| 14656 | FEATURE_pycaml=0 |
| 14657 | |
| 14658 | LOCALLIB_pycaml=0 |
| 14659 | |
| 14660 | FLAGS_pycaml= |
| 14661 | |
| 14662 | MODULES_pycaml= |
| 14663 | |
| 14664 | MODULESOPT_pycaml= |
| 14665 | |
| 14666 | PATH_pycaml= |
| 14667 | |
| 14668 | |
| 14669 | PYCOCCI_MODULE=No_pycocci |
| 14670 | |
| 14671 | PYCOCCI_FILE=no_pycocci.ml |
| 14672 | |
| 14673 | |
| 14674 | fi |
| 14675 | |
| 14676 | |
| 14677 | # Check whether --enable-pcre-syntax was given. |
| 14678 | if test "${enable_pcre_syntax+set}" = set; then : |
| 14679 | enableval=$enable_pcre_syntax; |
| 14680 | fi |
| 14681 | |
| 14682 | if test "x$enable_pcre_syntax" != "xno"; then : |
| 14683 | |
| 14684 | pkg_failed=no |
| 14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5 |
| 14686 | $as_echo_n "checking for PCRE... " >&6; } |
| 14687 | |
| 14688 | if test -n "$PCRE_CFLAGS"; then |
| 14689 | pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS" |
| 14690 | elif test -n "$PKG_CONFIG"; then |
| 14691 | if test -n "$PKG_CONFIG" && \ |
| 14692 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5 |
| 14693 | ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5 |
| 14694 | ac_status=$? |
| 14695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14696 | test $ac_status = 0; }; then |
| 14697 | pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null` |
| 14698 | else |
| 14699 | pkg_failed=yes |
| 14700 | fi |
| 14701 | else |
| 14702 | pkg_failed=untried |
| 14703 | fi |
| 14704 | if test -n "$PCRE_LIBS"; then |
| 14705 | pkg_cv_PCRE_LIBS="$PCRE_LIBS" |
| 14706 | elif test -n "$PKG_CONFIG"; then |
| 14707 | if test -n "$PKG_CONFIG" && \ |
| 14708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5 |
| 14709 | ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5 |
| 14710 | ac_status=$? |
| 14711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14712 | test $ac_status = 0; }; then |
| 14713 | pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null` |
| 14714 | else |
| 14715 | pkg_failed=yes |
| 14716 | fi |
| 14717 | else |
| 14718 | pkg_failed=untried |
| 14719 | fi |
| 14720 | |
| 14721 | |
| 14722 | |
| 14723 | if test $pkg_failed = yes; then |
| 14724 | |
| 14725 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 14726 | _pkg_short_errors_supported=yes |
| 14727 | else |
| 14728 | _pkg_short_errors_supported=no |
| 14729 | fi |
| 14730 | if test $_pkg_short_errors_supported = yes; then |
| 14731 | PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1` |
| 14732 | else |
| 14733 | PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1` |
| 14734 | fi |
| 14735 | # Put the nasty error message in config.log where it belongs |
| 14736 | echo "$PCRE_PKG_ERRORS" >&5 |
| 14737 | |
| 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14739 | $as_echo "no" >&6; } |
| 14740 | HAVE_PCRE=no |
| 14741 | |
| 14742 | elif test $pkg_failed = untried; then |
| 14743 | HAVE_PCRE=no |
| 14744 | |
| 14745 | else |
| 14746 | PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS |
| 14747 | PCRE_LIBS=$pkg_cv_PCRE_LIBS |
| 14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14749 | $as_echo "yes" >&6; } |
| 14750 | HAVE_PCRE=yes |
| 14751 | |
| 14752 | fi |
| 14753 | if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then : |
| 14754 | enable_pcre_syntax=no |
| 14755 | |
| 14756 | |
| 14757 | else |
| 14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pcre" >&5 |
| 14759 | $as_echo "$as_me: configuring package pcre" >&6;} |
| 14760 | # Check whether --enable-pcre was given. |
| 14761 | if test "${enable_pcre+set}" = set; then : |
| 14762 | enableval=$enable_pcre; |
| 14763 | fi |
| 14764 | |
| 14765 | |
| 14766 | if test "x$enable_pcre" != xno; then : |
| 14767 | |
| 14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pcre" >&5 |
| 14769 | $as_echo_n "checking for OCaml findlib package pcre... " >&6; } |
| 14770 | |
| 14771 | unset found |
| 14772 | unset pkg |
| 14773 | found=no |
| 14774 | for pkg in pcre ; do |
| 14775 | if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then |
| 14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 14777 | $as_echo "found" >&6; } |
| 14778 | OCAML_PKG_pcre=$pkg |
| 14779 | found=yes |
| 14780 | break |
| 14781 | fi |
| 14782 | done |
| 14783 | if test "$found" = "no" ; then |
| 14784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 14785 | $as_echo "not found" >&6; } |
| 14786 | OCAML_PKG_pcre=no |
| 14787 | fi |
| 14788 | |
| 14789 | |
| 14790 | |
| 14791 | if test "x$OCAML_PKG_pcre" != xno; then : |
| 14792 | PATH_pcre=`$OCAMLFIND query pcre 2>/dev/null` |
| 14793 | |
| 14794 | |
| 14795 | fi |
| 14796 | |
| 14797 | GLOBAL_pcre=$OCAML_PKG_pcre |
| 14798 | |
| 14799 | |
| 14800 | if test "x$GLOBAL_pcre" != xno; then : |
| 14801 | enable_pcre=yes |
| 14802 | |
| 14803 | |
| 14804 | else |
| 14805 | if test "x$enable_pcre" = xyes; then : |
| 14806 | as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5 |
| 14807 | |
| 14808 | fi |
| 14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pcre is not available" >&5 |
| 14810 | $as_echo "$as_me: OCaml package pcre is not available" >&6;} |
| 14811 | enable_pcre=no |
| 14812 | |
| 14813 | |
| 14814 | fi |
| 14815 | |
| 14816 | fi |
| 14817 | |
| 14818 | if test "x$enable_pcre" = xno; then : |
| 14819 | { pkgdir=; unset pkgdir;} |
| 14820 | pkgdir="$COCCI_OCAML_EXTERNAL/pcre/" |
| 14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pcre" >&5 |
| 14822 | $as_echo_n "checking for a bundled substitute of pcre... " >&6; } |
| 14823 | if test -d "$pkgdir"; then : |
| 14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14825 | $as_echo "yes" >&6; } |
| 14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pcre in $pkgdir" >&5 |
| 14827 | $as_echo "$as_me: using bundled substitute for pcre in $pkgdir" >&6;} |
| 14828 | enable_pcre=local |
| 14829 | |
| 14830 | PATH_pcre="$pkgdir" |
| 14831 | |
| 14832 | |
| 14833 | else |
| 14834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 |
| 14835 | $as_echo "not available" >&6; } |
| 14836 | fi |
| 14837 | |
| 14838 | fi |
| 14839 | |
| 14840 | if test "x$enable_pcre" != xno; then : |
| 14841 | FEATURE_pcre=1 |
| 14842 | |
| 14843 | FLAGS_pcre='$(FLAGS_pcre)' |
| 14844 | |
| 14845 | OPTFLAGS_pcre='$(OPTFLAGS_pcre)' |
| 14846 | |
| 14847 | |
| 14848 | if test "x$enable_pcre" = xlocal; then : |
| 14849 | LOCALLIB_pcre=1 |
| 14850 | |
| 14851 | MODULES_pcre='$(LOCAL_pcre)' |
| 14852 | |
| 14853 | MODULESOPT_pcre='$(LOCALOPT_pcre)' |
| 14854 | |
| 14855 | |
| 14856 | if test -f "$PATH_pcre/Makefile"; then : |
| 14857 | MAKE_pcre=$PATH_pcre |
| 14858 | |
| 14859 | |
| 14860 | else |
| 14861 | MAKE_pcre= |
| 14862 | |
| 14863 | |
| 14864 | fi |
| 14865 | |
| 14866 | else |
| 14867 | MODULES_pcre='$(GLOBAL_pcre)' |
| 14868 | |
| 14869 | MODULESOPT_pcre='$(GLOBALOPT_pcre)' |
| 14870 | |
| 14871 | |
| 14872 | fi |
| 14873 | |
| 14874 | fi |
| 14875 | enable_pcre_syntax=$enable_pcre |
| 14876 | |
| 14877 | fi |
| 14878 | |
| 14879 | fi |
| 14880 | |
| 14881 | if test "x$enable_pcre_syntax" != xno; then : |
| 14882 | if test "x$HAVE_PCRE" = xyes; then : |
| 14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: support for pcre syntax is enabled" >&5 |
| 14884 | $as_echo "$as_me: support for pcre syntax is enabled" >&6;} |
| 14885 | |
| 14886 | else |
| 14887 | as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5 |
| 14888 | |
| 14889 | fi |
| 14890 | |
| 14891 | REGEXP_MODULE=Regexp_pcre |
| 14892 | |
| 14893 | REGEXP_FILE=regexp_pcre.ml |
| 14894 | |
| 14895 | |
| 14896 | else |
| 14897 | FEATURE_pcre=0 |
| 14898 | |
| 14899 | LOCALLIB_pcre=0 |
| 14900 | |
| 14901 | FLAGS_pcre= |
| 14902 | |
| 14903 | MODULES_pcre= |
| 14904 | |
| 14905 | MODULESOPT_pcre= |
| 14906 | |
| 14907 | PATH_pcre= |
| 14908 | |
| 14909 | |
| 14910 | REGEXP_MODULE=Regexp_str |
| 14911 | |
| 14912 | REGEXP_FILE=regexp_str.ml |
| 14913 | |
| 14914 | |
| 14915 | fi |
| 14916 | |
| 14917 | |
| 14918 | |
| 14919 | |
| 14920 | if test "$prefix" = "NONE"; then : |
| 14921 | prefix=$ac_default_prefix |
| 14922 | fi |
| 14923 | |
| 14924 | |
| 14925 | |
| 14926 | SHAREDIR="${prefix}/share/coccinelle" |
| 14927 | |
| 14928 | |
| 14929 | if test "x$enable_python" != xno; then : |
| 14930 | FEATURE_PYTHON=1 |
| 14931 | |
| 14932 | |
| 14933 | else |
| 14934 | FEATURE_PYTHON=0 |
| 14935 | |
| 14936 | |
| 14937 | fi |
| 14938 | |
| 14939 | if test "x$enable_ocaml" != xno; then : |
| 14940 | FEATURE_OCAML=1 |
| 14941 | |
| 14942 | |
| 14943 | else |
| 14944 | FEATURE_OCAML=0 |
| 14945 | |
| 14946 | |
| 14947 | fi |
| 14948 | |
| 14949 | if test "x$OCAMLATLEAST311" = xyes -a "x$enable_ocaml" = xyes -a "x$OCAMLOPT" != xno; then : |
| 14950 | DYNLINK_IS_NATIVE=Dynlink.is_native |
| 14951 | |
| 14952 | |
| 14953 | else |
| 14954 | DYNLINK_IS_NATIVE=false |
| 14955 | |
| 14956 | |
| 14957 | fi |
| 14958 | |
| 14959 | |
| 14960 | |
| 14961 | # Check whether --with-pdflatex was given. |
| 14962 | if test "${with_pdflatex+set}" = set; then : |
| 14963 | withval=$with_pdflatex; |
| 14964 | fi |
| 14965 | |
| 14966 | with_PDFLATEX="$with_pdflatex" |
| 14967 | |
| 14968 | if test -n "$with_PDFLATEX" -a "x$with_PDFLATEX" != xno -a "x$with_PDFLATEX" != xyes; then : |
| 14969 | PDFLATEX="$with_PDFLATEX" |
| 14970 | |
| 14971 | |
| 14972 | else |
| 14973 | PDFLATEX="pdflatex" |
| 14974 | |
| 14975 | |
| 14976 | fi |
| 14977 | |
| 14978 | if test "x$with_PDFLATEX" = xno; then : |
| 14979 | { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex is disabled explicitly" >&5 |
| 14980 | $as_echo "$as_me: pdflatex is disabled explicitly" >&6;} |
| 14981 | PDFLATEX=no |
| 14982 | |
| 14983 | |
| 14984 | else |
| 14985 | if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then : |
| 14986 | |
| 14987 | |
| 14988 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 14989 | if test -n "$ac_tool_prefix"; then |
| 14990 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 14991 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14993 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14994 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 14995 | $as_echo_n "(cached) " >&6 |
| 14996 | else |
| 14997 | case $PKG_CONFIG in |
| 14998 | [\\/]* | ?:[\\/]*) |
| 14999 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15000 | ;; |
| 15001 | *) |
| 15002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15003 | for as_dir in $PATH |
| 15004 | do |
| 15005 | IFS=$as_save_IFS |
| 15006 | test -z "$as_dir" && as_dir=. |
| 15007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15009 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15011 | break 2 |
| 15012 | fi |
| 15013 | done |
| 15014 | done |
| 15015 | IFS=$as_save_IFS |
| 15016 | |
| 15017 | ;; |
| 15018 | esac |
| 15019 | fi |
| 15020 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15021 | if test -n "$PKG_CONFIG"; then |
| 15022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 15023 | $as_echo "$PKG_CONFIG" >&6; } |
| 15024 | else |
| 15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15026 | $as_echo "no" >&6; } |
| 15027 | fi |
| 15028 | |
| 15029 | |
| 15030 | fi |
| 15031 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15032 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15033 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15034 | set dummy pkg-config; ac_word=$2 |
| 15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15036 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15037 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 15038 | $as_echo_n "(cached) " >&6 |
| 15039 | else |
| 15040 | case $ac_pt_PKG_CONFIG in |
| 15041 | [\\/]* | ?:[\\/]*) |
| 15042 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15043 | ;; |
| 15044 | *) |
| 15045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15046 | for as_dir in $PATH |
| 15047 | do |
| 15048 | IFS=$as_save_IFS |
| 15049 | test -z "$as_dir" && as_dir=. |
| 15050 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15052 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15054 | break 2 |
| 15055 | fi |
| 15056 | done |
| 15057 | done |
| 15058 | IFS=$as_save_IFS |
| 15059 | |
| 15060 | ;; |
| 15061 | esac |
| 15062 | fi |
| 15063 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15064 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 15066 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 15067 | else |
| 15068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15069 | $as_echo "no" >&6; } |
| 15070 | fi |
| 15071 | |
| 15072 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15073 | PKG_CONFIG="" |
| 15074 | else |
| 15075 | case $cross_compiling:$ac_tool_warned in |
| 15076 | yes:) |
| 15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15079 | ac_tool_warned=yes ;; |
| 15080 | esac |
| 15081 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15082 | fi |
| 15083 | else |
| 15084 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15085 | fi |
| 15086 | |
| 15087 | fi |
| 15088 | if test -n "$PKG_CONFIG"; then |
| 15089 | _pkg_min_version=0.9.0 |
| 15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 15091 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 15092 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15094 | $as_echo "yes" >&6; } |
| 15095 | else |
| 15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15097 | $as_echo "no" >&6; } |
| 15098 | PKG_CONFIG="" |
| 15099 | fi |
| 15100 | |
| 15101 | fi |
| 15102 | |
| 15103 | elif test "x$PDFLATEX" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then : |
| 15104 | # checking for ocamllex |
| 15105 | if test -n "$ac_tool_prefix"; then |
| 15106 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 15107 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 15108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15109 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15110 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 15111 | $as_echo_n "(cached) " >&6 |
| 15112 | else |
| 15113 | case $OCAMLLEX in |
| 15114 | [\\/]* | ?:[\\/]*) |
| 15115 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 15116 | ;; |
| 15117 | *) |
| 15118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15119 | for as_dir in $PATH |
| 15120 | do |
| 15121 | IFS=$as_save_IFS |
| 15122 | test -z "$as_dir" && as_dir=. |
| 15123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15125 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 15126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15127 | break 2 |
| 15128 | fi |
| 15129 | done |
| 15130 | done |
| 15131 | IFS=$as_save_IFS |
| 15132 | |
| 15133 | ;; |
| 15134 | esac |
| 15135 | fi |
| 15136 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 15137 | if test -n "$OCAMLLEX"; then |
| 15138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 15139 | $as_echo "$OCAMLLEX" >&6; } |
| 15140 | else |
| 15141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15142 | $as_echo "no" >&6; } |
| 15143 | fi |
| 15144 | |
| 15145 | |
| 15146 | fi |
| 15147 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 15148 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 15149 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 15150 | set dummy ocamllex; ac_word=$2 |
| 15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15152 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15153 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 15154 | $as_echo_n "(cached) " >&6 |
| 15155 | else |
| 15156 | case $ac_pt_OCAMLLEX in |
| 15157 | [\\/]* | ?:[\\/]*) |
| 15158 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 15159 | ;; |
| 15160 | *) |
| 15161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15162 | for as_dir in $PATH |
| 15163 | do |
| 15164 | IFS=$as_save_IFS |
| 15165 | test -z "$as_dir" && as_dir=. |
| 15166 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15168 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 15169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15170 | break 2 |
| 15171 | fi |
| 15172 | done |
| 15173 | done |
| 15174 | IFS=$as_save_IFS |
| 15175 | |
| 15176 | ;; |
| 15177 | esac |
| 15178 | fi |
| 15179 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 15180 | if test -n "$ac_pt_OCAMLLEX"; then |
| 15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 15182 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 15183 | else |
| 15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15185 | $as_echo "no" >&6; } |
| 15186 | fi |
| 15187 | |
| 15188 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 15189 | OCAMLLEX="no" |
| 15190 | else |
| 15191 | case $cross_compiling:$ac_tool_warned in |
| 15192 | yes:) |
| 15193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15195 | ac_tool_warned=yes ;; |
| 15196 | esac |
| 15197 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 15198 | fi |
| 15199 | else |
| 15200 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 15201 | fi |
| 15202 | |
| 15203 | if test "$OCAMLLEX" != "no"; then |
| 15204 | if test -n "$ac_tool_prefix"; then |
| 15205 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 15206 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15208 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15209 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 15210 | $as_echo_n "(cached) " >&6 |
| 15211 | else |
| 15212 | case $OCAMLLEXDOTOPT in |
| 15213 | [\\/]* | ?:[\\/]*) |
| 15214 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 15215 | ;; |
| 15216 | *) |
| 15217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15218 | for as_dir in $PATH |
| 15219 | do |
| 15220 | IFS=$as_save_IFS |
| 15221 | test -z "$as_dir" && as_dir=. |
| 15222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15224 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 15225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15226 | break 2 |
| 15227 | fi |
| 15228 | done |
| 15229 | done |
| 15230 | IFS=$as_save_IFS |
| 15231 | |
| 15232 | ;; |
| 15233 | esac |
| 15234 | fi |
| 15235 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 15236 | if test -n "$OCAMLLEXDOTOPT"; then |
| 15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 15238 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 15239 | else |
| 15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15241 | $as_echo "no" >&6; } |
| 15242 | fi |
| 15243 | |
| 15244 | |
| 15245 | fi |
| 15246 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 15247 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 15248 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 15249 | set dummy ocamllex.opt; ac_word=$2 |
| 15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15251 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15252 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 15253 | $as_echo_n "(cached) " >&6 |
| 15254 | else |
| 15255 | case $ac_pt_OCAMLLEXDOTOPT in |
| 15256 | [\\/]* | ?:[\\/]*) |
| 15257 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 15258 | ;; |
| 15259 | *) |
| 15260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15261 | for as_dir in $PATH |
| 15262 | do |
| 15263 | IFS=$as_save_IFS |
| 15264 | test -z "$as_dir" && as_dir=. |
| 15265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15267 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 15268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15269 | break 2 |
| 15270 | fi |
| 15271 | done |
| 15272 | done |
| 15273 | IFS=$as_save_IFS |
| 15274 | |
| 15275 | ;; |
| 15276 | esac |
| 15277 | fi |
| 15278 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 15279 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 15280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 15281 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 15282 | else |
| 15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15284 | $as_echo "no" >&6; } |
| 15285 | fi |
| 15286 | |
| 15287 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 15288 | OCAMLLEXDOTOPT="no" |
| 15289 | else |
| 15290 | case $cross_compiling:$ac_tool_warned in |
| 15291 | yes:) |
| 15292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15293 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15294 | ac_tool_warned=yes ;; |
| 15295 | esac |
| 15296 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 15297 | fi |
| 15298 | else |
| 15299 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 15300 | fi |
| 15301 | |
| 15302 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 15303 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 15304 | fi |
| 15305 | fi |
| 15306 | |
| 15307 | |
| 15308 | |
| 15309 | elif test "x$PDFLATEX" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then : |
| 15310 | if test -n "$ac_tool_prefix"; then |
| 15311 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 15312 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15314 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15315 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 15316 | $as_echo_n "(cached) " >&6 |
| 15317 | else |
| 15318 | case $OCAMLYACC in |
| 15319 | [\\/]* | ?:[\\/]*) |
| 15320 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 15321 | ;; |
| 15322 | *) |
| 15323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15324 | for as_dir in $PATH |
| 15325 | do |
| 15326 | IFS=$as_save_IFS |
| 15327 | test -z "$as_dir" && as_dir=. |
| 15328 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15330 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 15331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15332 | break 2 |
| 15333 | fi |
| 15334 | done |
| 15335 | done |
| 15336 | IFS=$as_save_IFS |
| 15337 | |
| 15338 | ;; |
| 15339 | esac |
| 15340 | fi |
| 15341 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 15342 | if test -n "$OCAMLYACC"; then |
| 15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 15344 | $as_echo "$OCAMLYACC" >&6; } |
| 15345 | else |
| 15346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15347 | $as_echo "no" >&6; } |
| 15348 | fi |
| 15349 | |
| 15350 | |
| 15351 | fi |
| 15352 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 15353 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 15354 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 15355 | set dummy ocamlyacc; ac_word=$2 |
| 15356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15357 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15358 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 15359 | $as_echo_n "(cached) " >&6 |
| 15360 | else |
| 15361 | case $ac_pt_OCAMLYACC in |
| 15362 | [\\/]* | ?:[\\/]*) |
| 15363 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 15364 | ;; |
| 15365 | *) |
| 15366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15367 | for as_dir in $PATH |
| 15368 | do |
| 15369 | IFS=$as_save_IFS |
| 15370 | test -z "$as_dir" && as_dir=. |
| 15371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15373 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 15374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15375 | break 2 |
| 15376 | fi |
| 15377 | done |
| 15378 | done |
| 15379 | IFS=$as_save_IFS |
| 15380 | |
| 15381 | ;; |
| 15382 | esac |
| 15383 | fi |
| 15384 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 15385 | if test -n "$ac_pt_OCAMLYACC"; then |
| 15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 15387 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 15388 | else |
| 15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15390 | $as_echo "no" >&6; } |
| 15391 | fi |
| 15392 | |
| 15393 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 15394 | OCAMLYACC="no" |
| 15395 | else |
| 15396 | case $cross_compiling:$ac_tool_warned in |
| 15397 | yes:) |
| 15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15399 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15400 | ac_tool_warned=yes ;; |
| 15401 | esac |
| 15402 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 15403 | fi |
| 15404 | else |
| 15405 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 15406 | fi |
| 15407 | |
| 15408 | |
| 15409 | |
| 15410 | |
| 15411 | else |
| 15412 | if test -n "$ac_tool_prefix"; then |
| 15413 | # Extract the first word of "${ac_tool_prefix}[$]PDFLATEX", so it can be a program name with args. |
| 15414 | set dummy ${ac_tool_prefix}$PDFLATEX; ac_word=$2 |
| 15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15416 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15417 | if ${ac_cv_path_PDFLATEX+:} false; then : |
| 15418 | $as_echo_n "(cached) " >&6 |
| 15419 | else |
| 15420 | case $PDFLATEX in |
| 15421 | [\\/]* | ?:[\\/]*) |
| 15422 | ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. |
| 15423 | ;; |
| 15424 | *) |
| 15425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15426 | for as_dir in $PATH |
| 15427 | do |
| 15428 | IFS=$as_save_IFS |
| 15429 | test -z "$as_dir" && as_dir=. |
| 15430 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15432 | ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 15433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15434 | break 2 |
| 15435 | fi |
| 15436 | done |
| 15437 | done |
| 15438 | IFS=$as_save_IFS |
| 15439 | |
| 15440 | ;; |
| 15441 | esac |
| 15442 | fi |
| 15443 | PDFLATEX=$ac_cv_path_PDFLATEX |
| 15444 | if test -n "$PDFLATEX"; then |
| 15445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 |
| 15446 | $as_echo "$PDFLATEX" >&6; } |
| 15447 | else |
| 15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15449 | $as_echo "no" >&6; } |
| 15450 | fi |
| 15451 | |
| 15452 | |
| 15453 | fi |
| 15454 | if test -z "$ac_cv_path_PDFLATEX"; then |
| 15455 | ac_pt_PDFLATEX=$PDFLATEX |
| 15456 | # Extract the first word of "[$]PDFLATEX", so it can be a program name with args. |
| 15457 | set dummy $PDFLATEX; ac_word=$2 |
| 15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15459 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15460 | if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then : |
| 15461 | $as_echo_n "(cached) " >&6 |
| 15462 | else |
| 15463 | case $ac_pt_PDFLATEX in |
| 15464 | [\\/]* | ?:[\\/]*) |
| 15465 | ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path. |
| 15466 | ;; |
| 15467 | *) |
| 15468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15469 | for as_dir in $PATH |
| 15470 | do |
| 15471 | IFS=$as_save_IFS |
| 15472 | test -z "$as_dir" && as_dir=. |
| 15473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15475 | ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 15476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15477 | break 2 |
| 15478 | fi |
| 15479 | done |
| 15480 | done |
| 15481 | IFS=$as_save_IFS |
| 15482 | |
| 15483 | ;; |
| 15484 | esac |
| 15485 | fi |
| 15486 | ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX |
| 15487 | if test -n "$ac_pt_PDFLATEX"; then |
| 15488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5 |
| 15489 | $as_echo "$ac_pt_PDFLATEX" >&6; } |
| 15490 | else |
| 15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15492 | $as_echo "no" >&6; } |
| 15493 | fi |
| 15494 | |
| 15495 | if test "x$ac_pt_PDFLATEX" = x; then |
| 15496 | PDFLATEX="" |
| 15497 | else |
| 15498 | case $cross_compiling:$ac_tool_warned in |
| 15499 | yes:) |
| 15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15502 | ac_tool_warned=yes ;; |
| 15503 | esac |
| 15504 | PDFLATEX=$ac_pt_PDFLATEX |
| 15505 | fi |
| 15506 | else |
| 15507 | PDFLATEX="$ac_cv_path_PDFLATEX" |
| 15508 | fi |
| 15509 | |
| 15510 | |
| 15511 | fi |
| 15512 | |
| 15513 | |
| 15514 | fi |
| 15515 | |
| 15516 | if test -z "$PDFLATEX" -o "x$PDFLATEX" = xno; then : |
| 15517 | if test "x$with_PDFLATEX" = xyes; then : |
| 15518 | as_fn_error $? "--with=pdflatex is given explicitly but not found" "$LINENO" 5 |
| 15519 | |
| 15520 | fi |
| 15521 | |
| 15522 | if test -n "$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"; then : |
| 15523 | { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&5 |
| 15524 | $as_echo "$as_me: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&6;} |
| 15525 | PDFLATEX="$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex" |
| 15526 | |
| 15527 | if test "xpdflatex" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then : |
| 15528 | |
| 15529 | |
| 15530 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 15531 | if test -n "$ac_tool_prefix"; then |
| 15532 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 15533 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 15534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15535 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15536 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 15537 | $as_echo_n "(cached) " >&6 |
| 15538 | else |
| 15539 | case $PKG_CONFIG in |
| 15540 | [\\/]* | ?:[\\/]*) |
| 15541 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 15542 | ;; |
| 15543 | *) |
| 15544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15545 | for as_dir in $PATH |
| 15546 | do |
| 15547 | IFS=$as_save_IFS |
| 15548 | test -z "$as_dir" && as_dir=. |
| 15549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15551 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15553 | break 2 |
| 15554 | fi |
| 15555 | done |
| 15556 | done |
| 15557 | IFS=$as_save_IFS |
| 15558 | |
| 15559 | ;; |
| 15560 | esac |
| 15561 | fi |
| 15562 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 15563 | if test -n "$PKG_CONFIG"; then |
| 15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 15565 | $as_echo "$PKG_CONFIG" >&6; } |
| 15566 | else |
| 15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15568 | $as_echo "no" >&6; } |
| 15569 | fi |
| 15570 | |
| 15571 | |
| 15572 | fi |
| 15573 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 15574 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 15575 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 15576 | set dummy pkg-config; ac_word=$2 |
| 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15578 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15579 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 15580 | $as_echo_n "(cached) " >&6 |
| 15581 | else |
| 15582 | case $ac_pt_PKG_CONFIG in |
| 15583 | [\\/]* | ?:[\\/]*) |
| 15584 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 15585 | ;; |
| 15586 | *) |
| 15587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15588 | for as_dir in $PATH |
| 15589 | do |
| 15590 | IFS=$as_save_IFS |
| 15591 | test -z "$as_dir" && as_dir=. |
| 15592 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15594 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 15595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15596 | break 2 |
| 15597 | fi |
| 15598 | done |
| 15599 | done |
| 15600 | IFS=$as_save_IFS |
| 15601 | |
| 15602 | ;; |
| 15603 | esac |
| 15604 | fi |
| 15605 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 15606 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 15608 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 15609 | else |
| 15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15611 | $as_echo "no" >&6; } |
| 15612 | fi |
| 15613 | |
| 15614 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 15615 | PKG_CONFIG="" |
| 15616 | else |
| 15617 | case $cross_compiling:$ac_tool_warned in |
| 15618 | yes:) |
| 15619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15620 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15621 | ac_tool_warned=yes ;; |
| 15622 | esac |
| 15623 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 15624 | fi |
| 15625 | else |
| 15626 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 15627 | fi |
| 15628 | |
| 15629 | fi |
| 15630 | if test -n "$PKG_CONFIG"; then |
| 15631 | _pkg_min_version=0.9.0 |
| 15632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 15633 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 15634 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 15636 | $as_echo "yes" >&6; } |
| 15637 | else |
| 15638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15639 | $as_echo "no" >&6; } |
| 15640 | PKG_CONFIG="" |
| 15641 | fi |
| 15642 | |
| 15643 | fi |
| 15644 | |
| 15645 | elif test "xpdflatex" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then : |
| 15646 | # checking for ocamllex |
| 15647 | if test -n "$ac_tool_prefix"; then |
| 15648 | # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args. |
| 15649 | set dummy ${ac_tool_prefix}ocamllex; ac_word=$2 |
| 15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15651 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15652 | if ${ac_cv_path_OCAMLLEX+:} false; then : |
| 15653 | $as_echo_n "(cached) " >&6 |
| 15654 | else |
| 15655 | case $OCAMLLEX in |
| 15656 | [\\/]* | ?:[\\/]*) |
| 15657 | ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path. |
| 15658 | ;; |
| 15659 | *) |
| 15660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15661 | for as_dir in $PATH |
| 15662 | do |
| 15663 | IFS=$as_save_IFS |
| 15664 | test -z "$as_dir" && as_dir=. |
| 15665 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15666 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15667 | ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 15668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15669 | break 2 |
| 15670 | fi |
| 15671 | done |
| 15672 | done |
| 15673 | IFS=$as_save_IFS |
| 15674 | |
| 15675 | ;; |
| 15676 | esac |
| 15677 | fi |
| 15678 | OCAMLLEX=$ac_cv_path_OCAMLLEX |
| 15679 | if test -n "$OCAMLLEX"; then |
| 15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5 |
| 15681 | $as_echo "$OCAMLLEX" >&6; } |
| 15682 | else |
| 15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15684 | $as_echo "no" >&6; } |
| 15685 | fi |
| 15686 | |
| 15687 | |
| 15688 | fi |
| 15689 | if test -z "$ac_cv_path_OCAMLLEX"; then |
| 15690 | ac_pt_OCAMLLEX=$OCAMLLEX |
| 15691 | # Extract the first word of "ocamllex", so it can be a program name with args. |
| 15692 | set dummy ocamllex; ac_word=$2 |
| 15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15694 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15695 | if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then : |
| 15696 | $as_echo_n "(cached) " >&6 |
| 15697 | else |
| 15698 | case $ac_pt_OCAMLLEX in |
| 15699 | [\\/]* | ?:[\\/]*) |
| 15700 | ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path. |
| 15701 | ;; |
| 15702 | *) |
| 15703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15704 | for as_dir in $PATH |
| 15705 | do |
| 15706 | IFS=$as_save_IFS |
| 15707 | test -z "$as_dir" && as_dir=. |
| 15708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15710 | ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext" |
| 15711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15712 | break 2 |
| 15713 | fi |
| 15714 | done |
| 15715 | done |
| 15716 | IFS=$as_save_IFS |
| 15717 | |
| 15718 | ;; |
| 15719 | esac |
| 15720 | fi |
| 15721 | ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX |
| 15722 | if test -n "$ac_pt_OCAMLLEX"; then |
| 15723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5 |
| 15724 | $as_echo "$ac_pt_OCAMLLEX" >&6; } |
| 15725 | else |
| 15726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15727 | $as_echo "no" >&6; } |
| 15728 | fi |
| 15729 | |
| 15730 | if test "x$ac_pt_OCAMLLEX" = x; then |
| 15731 | OCAMLLEX="no" |
| 15732 | else |
| 15733 | case $cross_compiling:$ac_tool_warned in |
| 15734 | yes:) |
| 15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15736 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15737 | ac_tool_warned=yes ;; |
| 15738 | esac |
| 15739 | OCAMLLEX=$ac_pt_OCAMLLEX |
| 15740 | fi |
| 15741 | else |
| 15742 | OCAMLLEX="$ac_cv_path_OCAMLLEX" |
| 15743 | fi |
| 15744 | |
| 15745 | if test "$OCAMLLEX" != "no"; then |
| 15746 | if test -n "$ac_tool_prefix"; then |
| 15747 | # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args. |
| 15748 | set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2 |
| 15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15750 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15751 | if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then : |
| 15752 | $as_echo_n "(cached) " >&6 |
| 15753 | else |
| 15754 | case $OCAMLLEXDOTOPT in |
| 15755 | [\\/]* | ?:[\\/]*) |
| 15756 | ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 15757 | ;; |
| 15758 | *) |
| 15759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15760 | for as_dir in $PATH |
| 15761 | do |
| 15762 | IFS=$as_save_IFS |
| 15763 | test -z "$as_dir" && as_dir=. |
| 15764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15766 | ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 15767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15768 | break 2 |
| 15769 | fi |
| 15770 | done |
| 15771 | done |
| 15772 | IFS=$as_save_IFS |
| 15773 | |
| 15774 | ;; |
| 15775 | esac |
| 15776 | fi |
| 15777 | OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT |
| 15778 | if test -n "$OCAMLLEXDOTOPT"; then |
| 15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5 |
| 15780 | $as_echo "$OCAMLLEXDOTOPT" >&6; } |
| 15781 | else |
| 15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15783 | $as_echo "no" >&6; } |
| 15784 | fi |
| 15785 | |
| 15786 | |
| 15787 | fi |
| 15788 | if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then |
| 15789 | ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT |
| 15790 | # Extract the first word of "ocamllex.opt", so it can be a program name with args. |
| 15791 | set dummy ocamllex.opt; ac_word=$2 |
| 15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15793 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15794 | if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then : |
| 15795 | $as_echo_n "(cached) " >&6 |
| 15796 | else |
| 15797 | case $ac_pt_OCAMLLEXDOTOPT in |
| 15798 | [\\/]* | ?:[\\/]*) |
| 15799 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path. |
| 15800 | ;; |
| 15801 | *) |
| 15802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15803 | for as_dir in $PATH |
| 15804 | do |
| 15805 | IFS=$as_save_IFS |
| 15806 | test -z "$as_dir" && as_dir=. |
| 15807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15808 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15809 | ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext" |
| 15810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15811 | break 2 |
| 15812 | fi |
| 15813 | done |
| 15814 | done |
| 15815 | IFS=$as_save_IFS |
| 15816 | |
| 15817 | ;; |
| 15818 | esac |
| 15819 | fi |
| 15820 | ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT |
| 15821 | if test -n "$ac_pt_OCAMLLEXDOTOPT"; then |
| 15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5 |
| 15823 | $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; } |
| 15824 | else |
| 15825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15826 | $as_echo "no" >&6; } |
| 15827 | fi |
| 15828 | |
| 15829 | if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then |
| 15830 | OCAMLLEXDOTOPT="no" |
| 15831 | else |
| 15832 | case $cross_compiling:$ac_tool_warned in |
| 15833 | yes:) |
| 15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15835 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15836 | ac_tool_warned=yes ;; |
| 15837 | esac |
| 15838 | OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT |
| 15839 | fi |
| 15840 | else |
| 15841 | OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT" |
| 15842 | fi |
| 15843 | |
| 15844 | if test "$OCAMLLEXDOTOPT" != "no"; then |
| 15845 | OCAMLLEX=$OCAMLLEXDOTOPT |
| 15846 | fi |
| 15847 | fi |
| 15848 | |
| 15849 | |
| 15850 | |
| 15851 | elif test "xpdflatex" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then : |
| 15852 | if test -n "$ac_tool_prefix"; then |
| 15853 | # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args. |
| 15854 | set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2 |
| 15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15856 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15857 | if ${ac_cv_path_OCAMLYACC+:} false; then : |
| 15858 | $as_echo_n "(cached) " >&6 |
| 15859 | else |
| 15860 | case $OCAMLYACC in |
| 15861 | [\\/]* | ?:[\\/]*) |
| 15862 | ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path. |
| 15863 | ;; |
| 15864 | *) |
| 15865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15866 | for as_dir in $PATH |
| 15867 | do |
| 15868 | IFS=$as_save_IFS |
| 15869 | test -z "$as_dir" && as_dir=. |
| 15870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15872 | ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 15873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15874 | break 2 |
| 15875 | fi |
| 15876 | done |
| 15877 | done |
| 15878 | IFS=$as_save_IFS |
| 15879 | |
| 15880 | ;; |
| 15881 | esac |
| 15882 | fi |
| 15883 | OCAMLYACC=$ac_cv_path_OCAMLYACC |
| 15884 | if test -n "$OCAMLYACC"; then |
| 15885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5 |
| 15886 | $as_echo "$OCAMLYACC" >&6; } |
| 15887 | else |
| 15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15889 | $as_echo "no" >&6; } |
| 15890 | fi |
| 15891 | |
| 15892 | |
| 15893 | fi |
| 15894 | if test -z "$ac_cv_path_OCAMLYACC"; then |
| 15895 | ac_pt_OCAMLYACC=$OCAMLYACC |
| 15896 | # Extract the first word of "ocamlyacc", so it can be a program name with args. |
| 15897 | set dummy ocamlyacc; ac_word=$2 |
| 15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15899 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15900 | if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then : |
| 15901 | $as_echo_n "(cached) " >&6 |
| 15902 | else |
| 15903 | case $ac_pt_OCAMLYACC in |
| 15904 | [\\/]* | ?:[\\/]*) |
| 15905 | ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path. |
| 15906 | ;; |
| 15907 | *) |
| 15908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15909 | for as_dir in $PATH |
| 15910 | do |
| 15911 | IFS=$as_save_IFS |
| 15912 | test -z "$as_dir" && as_dir=. |
| 15913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15915 | ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext" |
| 15916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15917 | break 2 |
| 15918 | fi |
| 15919 | done |
| 15920 | done |
| 15921 | IFS=$as_save_IFS |
| 15922 | |
| 15923 | ;; |
| 15924 | esac |
| 15925 | fi |
| 15926 | ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC |
| 15927 | if test -n "$ac_pt_OCAMLYACC"; then |
| 15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5 |
| 15929 | $as_echo "$ac_pt_OCAMLYACC" >&6; } |
| 15930 | else |
| 15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15932 | $as_echo "no" >&6; } |
| 15933 | fi |
| 15934 | |
| 15935 | if test "x$ac_pt_OCAMLYACC" = x; then |
| 15936 | OCAMLYACC="no" |
| 15937 | else |
| 15938 | case $cross_compiling:$ac_tool_warned in |
| 15939 | yes:) |
| 15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15941 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15942 | ac_tool_warned=yes ;; |
| 15943 | esac |
| 15944 | OCAMLYACC=$ac_pt_OCAMLYACC |
| 15945 | fi |
| 15946 | else |
| 15947 | OCAMLYACC="$ac_cv_path_OCAMLYACC" |
| 15948 | fi |
| 15949 | |
| 15950 | |
| 15951 | |
| 15952 | |
| 15953 | else |
| 15954 | if test -n "$ac_tool_prefix"; then |
| 15955 | # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. |
| 15956 | set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 |
| 15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15958 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15959 | if ${ac_cv_path_PDFLATEX+:} false; then : |
| 15960 | $as_echo_n "(cached) " >&6 |
| 15961 | else |
| 15962 | case $PDFLATEX in |
| 15963 | [\\/]* | ?:[\\/]*) |
| 15964 | ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. |
| 15965 | ;; |
| 15966 | *) |
| 15967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15968 | for as_dir in $PATH |
| 15969 | do |
| 15970 | IFS=$as_save_IFS |
| 15971 | test -z "$as_dir" && as_dir=. |
| 15972 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15974 | ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 15975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15976 | break 2 |
| 15977 | fi |
| 15978 | done |
| 15979 | done |
| 15980 | IFS=$as_save_IFS |
| 15981 | |
| 15982 | ;; |
| 15983 | esac |
| 15984 | fi |
| 15985 | PDFLATEX=$ac_cv_path_PDFLATEX |
| 15986 | if test -n "$PDFLATEX"; then |
| 15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 |
| 15988 | $as_echo "$PDFLATEX" >&6; } |
| 15989 | else |
| 15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15991 | $as_echo "no" >&6; } |
| 15992 | fi |
| 15993 | |
| 15994 | |
| 15995 | fi |
| 15996 | if test -z "$ac_cv_path_PDFLATEX"; then |
| 15997 | ac_pt_PDFLATEX=$PDFLATEX |
| 15998 | # Extract the first word of "pdflatex", so it can be a program name with args. |
| 15999 | set dummy pdflatex; ac_word=$2 |
| 16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16001 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16002 | if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then : |
| 16003 | $as_echo_n "(cached) " >&6 |
| 16004 | else |
| 16005 | case $ac_pt_PDFLATEX in |
| 16006 | [\\/]* | ?:[\\/]*) |
| 16007 | ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path. |
| 16008 | ;; |
| 16009 | *) |
| 16010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16011 | for as_dir in $PATH |
| 16012 | do |
| 16013 | IFS=$as_save_IFS |
| 16014 | test -z "$as_dir" && as_dir=. |
| 16015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16017 | ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 16018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16019 | break 2 |
| 16020 | fi |
| 16021 | done |
| 16022 | done |
| 16023 | IFS=$as_save_IFS |
| 16024 | |
| 16025 | ;; |
| 16026 | esac |
| 16027 | fi |
| 16028 | ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX |
| 16029 | if test -n "$ac_pt_PDFLATEX"; then |
| 16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5 |
| 16031 | $as_echo "$ac_pt_PDFLATEX" >&6; } |
| 16032 | else |
| 16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16034 | $as_echo "no" >&6; } |
| 16035 | fi |
| 16036 | |
| 16037 | if test "x$ac_pt_PDFLATEX" = x; then |
| 16038 | PDFLATEX="" |
| 16039 | else |
| 16040 | case $cross_compiling:$ac_tool_warned in |
| 16041 | yes:) |
| 16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16044 | ac_tool_warned=yes ;; |
| 16045 | esac |
| 16046 | PDFLATEX=$ac_pt_PDFLATEX |
| 16047 | fi |
| 16048 | else |
| 16049 | PDFLATEX="$ac_cv_path_PDFLATEX" |
| 16050 | fi |
| 16051 | |
| 16052 | |
| 16053 | fi |
| 16054 | |
| 16055 | SUBSTITUTED_PDFLATEX=yes |
| 16056 | |
| 16057 | |
| 16058 | fi |
| 16059 | |
| 16060 | fi |
| 16061 | |
| 16062 | if test -z "$PDFLATEX"; then : |
| 16063 | PDFLATEX=no |
| 16064 | |
| 16065 | fi |
| 16066 | |
| 16067 | |
| 16068 | |
| 16069 | # Check whether --enable-release was given. |
| 16070 | if test "${enable_release+set}" = set; then : |
| 16071 | enableval=$enable_release; |
| 16072 | fi |
| 16073 | |
| 16074 | if test -z "$enable_release"; then : |
| 16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&5 |
| 16076 | $as_echo "$as_me: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&6;} |
| 16077 | enable_release=no |
| 16078 | |
| 16079 | |
| 16080 | fi |
| 16081 | |
| 16082 | |
| 16083 | if test "x$enable_release" = xyes; then : |
| 16084 | MAKETARGET_ALL=all-release |
| 16085 | |
| 16086 | |
| 16087 | elif test "x$enable_release" = xno; then : |
| 16088 | MAKETARGET_ALL=all-dev |
| 16089 | |
| 16090 | |
| 16091 | elif test "x$enable_release" = xprofile; then : |
| 16092 | if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then : |
| 16093 | as_fn_error $? "ocamlprof is required for profiling, but is absent." "$LINENO" 5 |
| 16094 | |
| 16095 | fi |
| 16096 | |
| 16097 | MAKETARGET_ALL=all-dev |
| 16098 | |
| 16099 | OCAMLC="$COCCI_SRCDIR/setup/wrapper-ocamlcp.sh \"$OCAMLCORIG\" \"$OCAMLPROF\"" |
| 16100 | |
| 16101 | MODULES_profiling=profiling.cmo |
| 16102 | |
| 16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: configured coccinelle for profiling" >&5 |
| 16104 | $as_echo "$as_me: configured coccinelle for profiling" >&6;} |
| 16105 | |
| 16106 | else |
| 16107 | MAKETARGET_ALL="$enable_release" |
| 16108 | |
| 16109 | |
| 16110 | fi |
| 16111 | |
| 16112 | # Check whether --enable-opt was given. |
| 16113 | if test "${enable_opt+set}" = set; then : |
| 16114 | enableval=$enable_opt; |
| 16115 | fi |
| 16116 | |
| 16117 | if test "x$OCAMLOPT" = xno -a "x$enable_opt" != xno; then : |
| 16118 | if test -n "$enable_release" -a "x$enable_release" != xyes -a "x$enable_release" != xno; then : |
| 16119 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&5 |
| 16120 | $as_echo "$as_me: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&6;} |
| 16121 | |
| 16122 | elif test "x$enable_opt" = xyes; then : |
| 16123 | as_fn_error $? "the optimized version of coccinelle is requested explicitly, but ocamlopt is absent" "$LINENO" 5 |
| 16124 | |
| 16125 | else |
| 16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build because ocamlopt is not present" >&5 |
| 16127 | $as_echo "$as_me: the optimized version of coccinelle will not be build because ocamlopt is not present" >&6;} |
| 16128 | enable_opt=no |
| 16129 | |
| 16130 | |
| 16131 | fi |
| 16132 | |
| 16133 | fi |
| 16134 | |
| 16135 | if test "x$OCAMLVERSION" = x3.11.2 -a -z "$enable_opt"; then : |
| 16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&5 |
| 16137 | $as_echo "$as_me: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&6;} |
| 16138 | enable_opt=no |
| 16139 | |
| 16140 | |
| 16141 | fi |
| 16142 | |
| 16143 | if test "x$OPTIMIZED_dynlink" = xno -a "x$enable_ocaml" = xyes; then : |
| 16144 | if test -z "$enable_opt"; then : |
| 16145 | { $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 |
| 16146 | $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;} |
| 16147 | enable_opt=no |
| 16148 | |
| 16149 | |
| 16150 | elif test "x$enable_opt" = xyes; then : |
| 16151 | 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 |
| 16152 | |
| 16153 | fi |
| 16154 | |
| 16155 | fi |
| 16156 | |
| 16157 | # set the default enable-opt setting |
| 16158 | if test -z "$enable_opt"; then : |
| 16159 | if test "x$enable_release" = xyes -o "x$enable_release" = xno; then : |
| 16160 | enable_opt="$enable_release" |
| 16161 | |
| 16162 | |
| 16163 | fi |
| 16164 | |
| 16165 | fi |
| 16166 | |
| 16167 | if test "x$enable_opt" = xyes; then : |
| 16168 | SPATCHNAME=spatch.opt |
| 16169 | |
| 16170 | MAKETARGET_SPATCH=opt-only |
| 16171 | |
| 16172 | |
| 16173 | else |
| 16174 | SPATCHNAME=spatch |
| 16175 | |
| 16176 | MAKETARGET_SPATCH=byte-only |
| 16177 | |
| 16178 | |
| 16179 | fi |
| 16180 | |
| 16181 | |
| 16182 | |
| 16183 | 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" |
| 16184 | |
| 16185 | |
| 16186 | cat >confcache <<\_ACEOF |
| 16187 | # This file is a shell script that caches the results of configure |
| 16188 | # tests run on this system so they can be shared between configure |
| 16189 | # scripts and configure runs, see configure's option --config-cache. |
| 16190 | # It is not useful on other systems. If it contains results you don't |
| 16191 | # want to keep, you may remove or edit it. |
| 16192 | # |
| 16193 | # config.status only pays attention to the cache file if you give it |
| 16194 | # the --recheck option to rerun configure. |
| 16195 | # |
| 16196 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 16197 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16198 | # following values. |
| 16199 | |
| 16200 | _ACEOF |
| 16201 | |
| 16202 | # The following way of writing the cache mishandles newlines in values, |
| 16203 | # but we know of no workaround that is simple, portable, and efficient. |
| 16204 | # So, we kill variables containing newlines. |
| 16205 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16206 | # and sets the high bit in the cache file unless we assign to the vars. |
| 16207 | ( |
| 16208 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 16209 | eval ac_val=\$$ac_var |
| 16210 | case $ac_val in #( |
| 16211 | *${as_nl}*) |
| 16212 | case $ac_var in #( |
| 16213 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 16214 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 16215 | esac |
| 16216 | case $ac_var in #( |
| 16217 | _ | IFS | as_nl) ;; #( |
| 16218 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 16219 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 16220 | esac ;; |
| 16221 | esac |
| 16222 | done |
| 16223 | |
| 16224 | (set) 2>&1 | |
| 16225 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 16226 | *${as_nl}ac_space=\ *) |
| 16227 | # `set' does not quote correctly, so add quotes: double-quote |
| 16228 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 16229 | sed -n \ |
| 16230 | "s/'/'\\\\''/g; |
| 16231 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16232 | ;; #( |
| 16233 | *) |
| 16234 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16235 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 16236 | ;; |
| 16237 | esac | |
| 16238 | sort |
| 16239 | ) | |
| 16240 | sed ' |
| 16241 | /^ac_cv_env_/b end |
| 16242 | t clear |
| 16243 | :clear |
| 16244 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16245 | t end |
| 16246 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16247 | :end' >>confcache |
| 16248 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 16249 | if test -w "$cache_file"; then |
| 16250 | if test "x$cache_file" != "x/dev/null"; then |
| 16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 16252 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 16253 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 16254 | cat confcache >"$cache_file" |
| 16255 | else |
| 16256 | case $cache_file in #( |
| 16257 | */* | ?:*) |
| 16258 | mv -f confcache "$cache_file"$$ && |
| 16259 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 16260 | *) |
| 16261 | mv -f confcache "$cache_file" ;; |
| 16262 | esac |
| 16263 | fi |
| 16264 | fi |
| 16265 | else |
| 16266 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 16267 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 16268 | fi |
| 16269 | fi |
| 16270 | rm -f confcache |
| 16271 | |
| 16272 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16273 | # Let make expand exec_prefix. |
| 16274 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 16275 | |
| 16276 | # Transform confdefs.h into DEFS. |
| 16277 | # Protect against shell expansion while executing Makefile rules. |
| 16278 | # Protect against Makefile macro expansion. |
| 16279 | # |
| 16280 | # If the first sed substitution is executed (which looks for macros that |
| 16281 | # take arguments), then branch to the quote section. Otherwise, |
| 16282 | # look for a macro that doesn't take arguments. |
| 16283 | ac_script=' |
| 16284 | :mline |
| 16285 | /\\$/{ |
| 16286 | N |
| 16287 | s,\\\n,, |
| 16288 | b mline |
| 16289 | } |
| 16290 | t clear |
| 16291 | :clear |
| 16292 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 16293 | t quote |
| 16294 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 16295 | t quote |
| 16296 | b any |
| 16297 | :quote |
| 16298 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 16299 | s/\[/\\&/g |
| 16300 | s/\]/\\&/g |
| 16301 | s/\$/$$/g |
| 16302 | H |
| 16303 | :any |
| 16304 | ${ |
| 16305 | g |
| 16306 | s/^\n// |
| 16307 | s/\n/ /g |
| 16308 | p |
| 16309 | } |
| 16310 | ' |
| 16311 | DEFS=`sed -n "$ac_script" confdefs.h` |
| 16312 | |
| 16313 | |
| 16314 | ac_libobjs= |
| 16315 | ac_ltlibobjs= |
| 16316 | U= |
| 16317 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 16318 | # 1. Remove the extension, and $U if already installed. |
| 16319 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 16320 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 16321 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 16322 | # will be set to the directory where LIBOBJS objects are built. |
| 16323 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 16324 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 16325 | done |
| 16326 | LIBOBJS=$ac_libobjs |
| 16327 | |
| 16328 | LTLIBOBJS=$ac_ltlibobjs |
| 16329 | |
| 16330 | |
| 16331 | |
| 16332 | : "${CONFIG_STATUS=./config.status}" |
| 16333 | ac_write_fail=0 |
| 16334 | ac_clean_files_save=$ac_clean_files |
| 16335 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16336 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 16337 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16338 | as_write_fail=0 |
| 16339 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 16340 | #! $SHELL |
| 16341 | # Generated by $as_me. |
| 16342 | # Run this file to recreate the current configuration. |
| 16343 | # Compiler output produced by configure, useful for debugging |
| 16344 | # configure, is in config.log if it exists. |
| 16345 | |
| 16346 | debug=false |
| 16347 | ac_cs_recheck=false |
| 16348 | ac_cs_silent=false |
| 16349 | |
| 16350 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16351 | export SHELL |
| 16352 | _ASEOF |
| 16353 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 16354 | ## -------------------- ## |
| 16355 | ## M4sh Initialization. ## |
| 16356 | ## -------------------- ## |
| 16357 | |
| 16358 | # Be more Bourne compatible |
| 16359 | DUALCASE=1; export DUALCASE # for MKS sh |
| 16360 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 16361 | emulate sh |
| 16362 | NULLCMD=: |
| 16363 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 16364 | # is contrary to our usage. Disable this feature. |
| 16365 | alias -g '${1+"$@"}'='"$@"' |
| 16366 | setopt NO_GLOB_SUBST |
| 16367 | else |
| 16368 | case `(set -o) 2>/dev/null` in #( |
| 16369 | *posix*) : |
| 16370 | set -o posix ;; #( |
| 16371 | *) : |
| 16372 | ;; |
| 16373 | esac |
| 16374 | fi |
| 16375 | |
| 16376 | |
| 16377 | as_nl=' |
| 16378 | ' |
| 16379 | export as_nl |
| 16380 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 16381 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 16382 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16383 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 16384 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 16385 | # but without wasting forks for bash or zsh. |
| 16386 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 16387 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16388 | as_echo='print -r --' |
| 16389 | as_echo_n='print -rn --' |
| 16390 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 16391 | as_echo='printf %s\n' |
| 16392 | as_echo_n='printf %s' |
| 16393 | else |
| 16394 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 16395 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 16396 | as_echo_n='/usr/ucb/echo -n' |
| 16397 | else |
| 16398 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 16399 | as_echo_n_body='eval |
| 16400 | arg=$1; |
| 16401 | case $arg in #( |
| 16402 | *"$as_nl"*) |
| 16403 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 16404 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 16405 | esac; |
| 16406 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 16407 | ' |
| 16408 | export as_echo_n_body |
| 16409 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 16410 | fi |
| 16411 | export as_echo_body |
| 16412 | as_echo='sh -c $as_echo_body as_echo' |
| 16413 | fi |
| 16414 | |
| 16415 | # The user is always right. |
| 16416 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16417 | PATH_SEPARATOR=: |
| 16418 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 16419 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 16420 | PATH_SEPARATOR=';' |
| 16421 | } |
| 16422 | fi |
| 16423 | |
| 16424 | |
| 16425 | # IFS |
| 16426 | # We need space, tab and new line, in precisely that order. Quoting is |
| 16427 | # there to prevent editors from complaining about space-tab. |
| 16428 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 16429 | # splitting by setting IFS to empty value.) |
| 16430 | IFS=" "" $as_nl" |
| 16431 | |
| 16432 | # Find who we are. Look in the path if we contain no directory separator. |
| 16433 | as_myself= |
| 16434 | case $0 in #(( |
| 16435 | *[\\/]* ) as_myself=$0 ;; |
| 16436 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16437 | for as_dir in $PATH |
| 16438 | do |
| 16439 | IFS=$as_save_IFS |
| 16440 | test -z "$as_dir" && as_dir=. |
| 16441 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16442 | done |
| 16443 | IFS=$as_save_IFS |
| 16444 | |
| 16445 | ;; |
| 16446 | esac |
| 16447 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16448 | # in which case we are not to be found in the path. |
| 16449 | if test "x$as_myself" = x; then |
| 16450 | as_myself=$0 |
| 16451 | fi |
| 16452 | if test ! -f "$as_myself"; then |
| 16453 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 16454 | exit 1 |
| 16455 | fi |
| 16456 | |
| 16457 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 16458 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 16459 | # suppresses any "Segmentation fault" message there. '((' could |
| 16460 | # trigger a bug in pdksh 5.2.14. |
| 16461 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 16462 | do eval test x\${$as_var+set} = xset \ |
| 16463 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 16464 | done |
| 16465 | PS1='$ ' |
| 16466 | PS2='> ' |
| 16467 | PS4='+ ' |
| 16468 | |
| 16469 | # NLS nuisances. |
| 16470 | LC_ALL=C |
| 16471 | export LC_ALL |
| 16472 | LANGUAGE=C |
| 16473 | export LANGUAGE |
| 16474 | |
| 16475 | # CDPATH. |
| 16476 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 16477 | |
| 16478 | |
| 16479 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 16480 | # ---------------------------------------- |
| 16481 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 16482 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 16483 | # script with STATUS, using 1 if that was 0. |
| 16484 | as_fn_error () |
| 16485 | { |
| 16486 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 16487 | if test "$4"; then |
| 16488 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 16489 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 16490 | fi |
| 16491 | $as_echo "$as_me: error: $2" >&2 |
| 16492 | as_fn_exit $as_status |
| 16493 | } # as_fn_error |
| 16494 | |
| 16495 | |
| 16496 | # as_fn_set_status STATUS |
| 16497 | # ----------------------- |
| 16498 | # Set $? to STATUS, without forking. |
| 16499 | as_fn_set_status () |
| 16500 | { |
| 16501 | return $1 |
| 16502 | } # as_fn_set_status |
| 16503 | |
| 16504 | # as_fn_exit STATUS |
| 16505 | # ----------------- |
| 16506 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 16507 | as_fn_exit () |
| 16508 | { |
| 16509 | set +e |
| 16510 | as_fn_set_status $1 |
| 16511 | exit $1 |
| 16512 | } # as_fn_exit |
| 16513 | |
| 16514 | # as_fn_unset VAR |
| 16515 | # --------------- |
| 16516 | # Portably unset VAR. |
| 16517 | as_fn_unset () |
| 16518 | { |
| 16519 | { eval $1=; unset $1;} |
| 16520 | } |
| 16521 | as_unset=as_fn_unset |
| 16522 | # as_fn_append VAR VALUE |
| 16523 | # ---------------------- |
| 16524 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 16525 | # advantage of any shell optimizations that allow amortized linear growth over |
| 16526 | # repeated appends, instead of the typical quadratic growth present in naive |
| 16527 | # implementations. |
| 16528 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 16529 | eval 'as_fn_append () |
| 16530 | { |
| 16531 | eval $1+=\$2 |
| 16532 | }' |
| 16533 | else |
| 16534 | as_fn_append () |
| 16535 | { |
| 16536 | eval $1=\$$1\$2 |
| 16537 | } |
| 16538 | fi # as_fn_append |
| 16539 | |
| 16540 | # as_fn_arith ARG... |
| 16541 | # ------------------ |
| 16542 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 16543 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 16544 | # must be portable across $(()) and expr. |
| 16545 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 16546 | eval 'as_fn_arith () |
| 16547 | { |
| 16548 | as_val=$(( $* )) |
| 16549 | }' |
| 16550 | else |
| 16551 | as_fn_arith () |
| 16552 | { |
| 16553 | as_val=`expr "$@" || test $? -eq 1` |
| 16554 | } |
| 16555 | fi # as_fn_arith |
| 16556 | |
| 16557 | |
| 16558 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16559 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16560 | as_expr=expr |
| 16561 | else |
| 16562 | as_expr=false |
| 16563 | fi |
| 16564 | |
| 16565 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16566 | as_basename=basename |
| 16567 | else |
| 16568 | as_basename=false |
| 16569 | fi |
| 16570 | |
| 16571 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16572 | as_dirname=dirname |
| 16573 | else |
| 16574 | as_dirname=false |
| 16575 | fi |
| 16576 | |
| 16577 | as_me=`$as_basename -- "$0" || |
| 16578 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16579 | X"$0" : 'X\(//\)$' \| \ |
| 16580 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 16581 | $as_echo X/"$0" | |
| 16582 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16583 | s//\1/ |
| 16584 | q |
| 16585 | } |
| 16586 | /^X\/\(\/\/\)$/{ |
| 16587 | s//\1/ |
| 16588 | q |
| 16589 | } |
| 16590 | /^X\/\(\/\).*/{ |
| 16591 | s//\1/ |
| 16592 | q |
| 16593 | } |
| 16594 | s/.*/./; q'` |
| 16595 | |
| 16596 | # Avoid depending upon Character Ranges. |
| 16597 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16598 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16599 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16600 | as_cr_digits='0123456789' |
| 16601 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16602 | |
| 16603 | ECHO_C= ECHO_N= ECHO_T= |
| 16604 | case `echo -n x` in #((((( |
| 16605 | -n*) |
| 16606 | case `echo 'xy\c'` in |
| 16607 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16608 | xy) ECHO_C='\c';; |
| 16609 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 16610 | ECHO_T=' ';; |
| 16611 | esac;; |
| 16612 | *) |
| 16613 | ECHO_N='-n';; |
| 16614 | esac |
| 16615 | |
| 16616 | rm -f conf$$ conf$$.exe conf$$.file |
| 16617 | if test -d conf$$.dir; then |
| 16618 | rm -f conf$$.dir/conf$$.file |
| 16619 | else |
| 16620 | rm -f conf$$.dir |
| 16621 | mkdir conf$$.dir 2>/dev/null |
| 16622 | fi |
| 16623 | if (echo >conf$$.file) 2>/dev/null; then |
| 16624 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16625 | as_ln_s='ln -s' |
| 16626 | # ... but there are two gotchas: |
| 16627 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16628 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16629 | # In both cases, we have to default to `cp -pR'. |
| 16630 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 16631 | as_ln_s='cp -pR' |
| 16632 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16633 | as_ln_s=ln |
| 16634 | else |
| 16635 | as_ln_s='cp -pR' |
| 16636 | fi |
| 16637 | else |
| 16638 | as_ln_s='cp -pR' |
| 16639 | fi |
| 16640 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16641 | rmdir conf$$.dir 2>/dev/null |
| 16642 | |
| 16643 | |
| 16644 | # as_fn_mkdir_p |
| 16645 | # ------------- |
| 16646 | # Create "$as_dir" as a directory, including parents if necessary. |
| 16647 | as_fn_mkdir_p () |
| 16648 | { |
| 16649 | |
| 16650 | case $as_dir in #( |
| 16651 | -*) as_dir=./$as_dir;; |
| 16652 | esac |
| 16653 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 16654 | as_dirs= |
| 16655 | while :; do |
| 16656 | case $as_dir in #( |
| 16657 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 16658 | *) as_qdir=$as_dir;; |
| 16659 | esac |
| 16660 | as_dirs="'$as_qdir' $as_dirs" |
| 16661 | as_dir=`$as_dirname -- "$as_dir" || |
| 16662 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16663 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16664 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16665 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 16666 | $as_echo X"$as_dir" | |
| 16667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16668 | s//\1/ |
| 16669 | q |
| 16670 | } |
| 16671 | /^X\(\/\/\)[^/].*/{ |
| 16672 | s//\1/ |
| 16673 | q |
| 16674 | } |
| 16675 | /^X\(\/\/\)$/{ |
| 16676 | s//\1/ |
| 16677 | q |
| 16678 | } |
| 16679 | /^X\(\/\).*/{ |
| 16680 | s//\1/ |
| 16681 | q |
| 16682 | } |
| 16683 | s/.*/./; q'` |
| 16684 | test -d "$as_dir" && break |
| 16685 | done |
| 16686 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16687 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 16688 | |
| 16689 | |
| 16690 | } # as_fn_mkdir_p |
| 16691 | if mkdir -p . 2>/dev/null; then |
| 16692 | as_mkdir_p='mkdir -p "$as_dir"' |
| 16693 | else |
| 16694 | test -d ./-p && rmdir ./-p |
| 16695 | as_mkdir_p=false |
| 16696 | fi |
| 16697 | |
| 16698 | |
| 16699 | # as_fn_executable_p FILE |
| 16700 | # ----------------------- |
| 16701 | # Test if FILE is an executable regular file. |
| 16702 | as_fn_executable_p () |
| 16703 | { |
| 16704 | test -f "$1" && test -x "$1" |
| 16705 | } # as_fn_executable_p |
| 16706 | as_test_x='test -x' |
| 16707 | as_executable_p=as_fn_executable_p |
| 16708 | |
| 16709 | # Sed expression to map a string onto a valid CPP name. |
| 16710 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16711 | |
| 16712 | # Sed expression to map a string onto a valid variable name. |
| 16713 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16714 | |
| 16715 | |
| 16716 | exec 6>&1 |
| 16717 | ## ----------------------------------- ## |
| 16718 | ## Main body of $CONFIG_STATUS script. ## |
| 16719 | ## ----------------------------------- ## |
| 16720 | _ASEOF |
| 16721 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 16722 | |
| 16723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16724 | # Save the log message, to keep $0 and so on meaningful, and to |
| 16725 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16726 | # values after options handling. |
| 16727 | ac_log=" |
| 16728 | This file was extended by coccinelle $as_me 1.0.0-rc14, which was |
| 16729 | generated by GNU Autoconf 2.69. Invocation command line was |
| 16730 | |
| 16731 | CONFIG_FILES = $CONFIG_FILES |
| 16732 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16733 | CONFIG_LINKS = $CONFIG_LINKS |
| 16734 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16735 | $ $0 $@ |
| 16736 | |
| 16737 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16738 | " |
| 16739 | |
| 16740 | _ACEOF |
| 16741 | |
| 16742 | case $ac_config_files in *" |
| 16743 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 16744 | esac |
| 16745 | |
| 16746 | |
| 16747 | |
| 16748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16749 | # Files that config.status was made for. |
| 16750 | config_files="$ac_config_files" |
| 16751 | |
| 16752 | _ACEOF |
| 16753 | |
| 16754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16755 | ac_cs_usage="\ |
| 16756 | \`$as_me' instantiates files and other configuration actions |
| 16757 | from templates according to the current configuration. Unless the files |
| 16758 | and actions are specified as TAGs, all are instantiated by default. |
| 16759 | |
| 16760 | Usage: $0 [OPTION]... [TAG]... |
| 16761 | |
| 16762 | -h, --help print this help, then exit |
| 16763 | -V, --version print version number and configuration settings, then exit |
| 16764 | --config print configuration, then exit |
| 16765 | -q, --quiet, --silent |
| 16766 | do not print progress messages |
| 16767 | -d, --debug don't remove temporary files |
| 16768 | --recheck update $as_me by reconfiguring in the same conditions |
| 16769 | --file=FILE[:TEMPLATE] |
| 16770 | instantiate the configuration file FILE |
| 16771 | |
| 16772 | Configuration files: |
| 16773 | $config_files |
| 16774 | |
| 16775 | Report bugs to <cocci@diku.dk>. |
| 16776 | coccinelle home page: <http://coccinelle.lip6.fr/>." |
| 16777 | |
| 16778 | _ACEOF |
| 16779 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16780 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 16781 | ac_cs_version="\\ |
| 16782 | coccinelle config.status 1.0.0-rc14 |
| 16783 | configured by $0, generated by GNU Autoconf 2.69, |
| 16784 | with options \\"\$ac_cs_config\\" |
| 16785 | |
| 16786 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 16787 | This config.status script is free software; the Free Software Foundation |
| 16788 | gives unlimited permission to copy, distribute and modify it." |
| 16789 | |
| 16790 | ac_pwd='$ac_pwd' |
| 16791 | srcdir='$srcdir' |
| 16792 | INSTALL='$INSTALL' |
| 16793 | MKDIR_P='$MKDIR_P' |
| 16794 | test -n "\$AWK" || AWK=awk |
| 16795 | _ACEOF |
| 16796 | |
| 16797 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16798 | # The default lists apply if the user does not specify any file. |
| 16799 | ac_need_defaults=: |
| 16800 | while test $# != 0 |
| 16801 | do |
| 16802 | case $1 in |
| 16803 | --*=?*) |
| 16804 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16805 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 16806 | ac_shift=: |
| 16807 | ;; |
| 16808 | --*=) |
| 16809 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16810 | ac_optarg= |
| 16811 | ac_shift=: |
| 16812 | ;; |
| 16813 | *) |
| 16814 | ac_option=$1 |
| 16815 | ac_optarg=$2 |
| 16816 | ac_shift=shift |
| 16817 | ;; |
| 16818 | esac |
| 16819 | |
| 16820 | case $ac_option in |
| 16821 | # Handling of the options. |
| 16822 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16823 | ac_cs_recheck=: ;; |
| 16824 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 16825 | $as_echo "$ac_cs_version"; exit ;; |
| 16826 | --config | --confi | --conf | --con | --co | --c ) |
| 16827 | $as_echo "$ac_cs_config"; exit ;; |
| 16828 | --debug | --debu | --deb | --de | --d | -d ) |
| 16829 | debug=: ;; |
| 16830 | --file | --fil | --fi | --f ) |
| 16831 | $ac_shift |
| 16832 | case $ac_optarg in |
| 16833 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 16834 | '') as_fn_error $? "missing file argument" ;; |
| 16835 | esac |
| 16836 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 16837 | ac_need_defaults=false;; |
| 16838 | --he | --h | --help | --hel | -h ) |
| 16839 | $as_echo "$ac_cs_usage"; exit ;; |
| 16840 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16841 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16842 | ac_cs_silent=: ;; |
| 16843 | |
| 16844 | # This is an error. |
| 16845 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 16846 | Try \`$0 --help' for more information." ;; |
| 16847 | |
| 16848 | *) as_fn_append ac_config_targets " $1" |
| 16849 | ac_need_defaults=false ;; |
| 16850 | |
| 16851 | esac |
| 16852 | shift |
| 16853 | done |
| 16854 | |
| 16855 | ac_configure_extra_args= |
| 16856 | |
| 16857 | if $ac_cs_silent; then |
| 16858 | exec 6>/dev/null |
| 16859 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16860 | fi |
| 16861 | |
| 16862 | _ACEOF |
| 16863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16864 | if \$ac_cs_recheck; then |
| 16865 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16866 | shift |
| 16867 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 16868 | CONFIG_SHELL='$SHELL' |
| 16869 | export CONFIG_SHELL |
| 16870 | exec "\$@" |
| 16871 | fi |
| 16872 | |
| 16873 | _ACEOF |
| 16874 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16875 | exec 5>>config.log |
| 16876 | { |
| 16877 | echo |
| 16878 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16879 | ## Running $as_me. ## |
| 16880 | _ASBOX |
| 16881 | $as_echo "$ac_log" |
| 16882 | } >&5 |
| 16883 | |
| 16884 | _ACEOF |
| 16885 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16886 | _ACEOF |
| 16887 | |
| 16888 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16889 | |
| 16890 | # Handling of arguments. |
| 16891 | for ac_config_target in $ac_config_targets |
| 16892 | do |
| 16893 | case $ac_config_target in |
| 16894 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
| 16895 | "version.ml") CONFIG_FILES="$CONFIG_FILES version.ml" ;; |
| 16896 | "commons/commands.ml") CONFIG_FILES="$CONFIG_FILES commons/commands.ml" ;; |
| 16897 | "globals/config.ml") CONFIG_FILES="$CONFIG_FILES globals/config.ml" ;; |
| 16898 | "globals/regexp.ml") CONFIG_FILES="$CONFIG_FILES globals/regexp.ml" ;; |
| 16899 | "python/pycocci.ml") CONFIG_FILES="$CONFIG_FILES python/pycocci.ml" ;; |
| 16900 | "ocaml/prepare_ocamlcocci.ml") CONFIG_FILES="$CONFIG_FILES ocaml/prepare_ocamlcocci.ml" ;; |
| 16901 | "scripts/spatch.sh") CONFIG_FILES="$CONFIG_FILES scripts/spatch.sh" ;; |
| 16902 | "docs/spatch.1") CONFIG_FILES="$CONFIG_FILES docs/spatch.1" ;; |
| 16903 | |
| 16904 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 16905 | esac |
| 16906 | done |
| 16907 | |
| 16908 | |
| 16909 | # If the user did not use the arguments to specify the items to instantiate, |
| 16910 | # then the envvar interface is used. Set only those that are not. |
| 16911 | # We use the long form for the default assignment because of an extremely |
| 16912 | # bizarre bug on SunOS 4.1.3. |
| 16913 | if $ac_need_defaults; then |
| 16914 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16915 | fi |
| 16916 | |
| 16917 | # Have a temporary directory for convenience. Make it in the build tree |
| 16918 | # simply because there is no reason against having it here, and in addition, |
| 16919 | # creating and moving files from /tmp can sometimes cause problems. |
| 16920 | # Hook for its removal unless debugging. |
| 16921 | # Note that there is a small window in which the directory will not be cleaned: |
| 16922 | # after its creation but before its name has been assigned to `$tmp'. |
| 16923 | $debug || |
| 16924 | { |
| 16925 | tmp= ac_tmp= |
| 16926 | trap 'exit_status=$? |
| 16927 | : "${ac_tmp:=$tmp}" |
| 16928 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 16929 | ' 0 |
| 16930 | trap 'as_fn_exit 1' 1 2 13 15 |
| 16931 | } |
| 16932 | # Create a (secure) tmp directory for tmp files. |
| 16933 | |
| 16934 | { |
| 16935 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 16936 | test -d "$tmp" |
| 16937 | } || |
| 16938 | { |
| 16939 | tmp=./conf$$-$RANDOM |
| 16940 | (umask 077 && mkdir "$tmp") |
| 16941 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 16942 | ac_tmp=$tmp |
| 16943 | |
| 16944 | # Set up the scripts for CONFIG_FILES section. |
| 16945 | # No need to generate them if there are no CONFIG_FILES. |
| 16946 | # This happens for instance with `./config.status config.h'. |
| 16947 | if test -n "$CONFIG_FILES"; then |
| 16948 | |
| 16949 | |
| 16950 | ac_cr=`echo X | tr X '\015'` |
| 16951 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16952 | # But we know of no other shell where ac_cr would be empty at this |
| 16953 | # point, so we can use a bashism as a fallback. |
| 16954 | if test "x$ac_cr" = x; then |
| 16955 | eval ac_cr=\$\'\\r\' |
| 16956 | fi |
| 16957 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16958 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16959 | ac_cs_awk_cr='\\r' |
| 16960 | else |
| 16961 | ac_cs_awk_cr=$ac_cr |
| 16962 | fi |
| 16963 | |
| 16964 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 16965 | _ACEOF |
| 16966 | |
| 16967 | |
| 16968 | { |
| 16969 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16970 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16971 | echo "_ACEOF" |
| 16972 | } >conf$$subs.sh || |
| 16973 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16974 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 16975 | ac_delim='%!_!# ' |
| 16976 | for ac_last_try in false false false false false :; do |
| 16977 | . ./conf$$subs.sh || |
| 16978 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16979 | |
| 16980 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16981 | if test $ac_delim_n = $ac_delim_num; then |
| 16982 | break |
| 16983 | elif $ac_last_try; then |
| 16984 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16985 | else |
| 16986 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16987 | fi |
| 16988 | done |
| 16989 | rm -f conf$$subs.sh |
| 16990 | |
| 16991 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16992 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 16993 | _ACEOF |
| 16994 | sed -n ' |
| 16995 | h |
| 16996 | s/^/S["/; s/!.*/"]=/ |
| 16997 | p |
| 16998 | g |
| 16999 | s/^[^!]*!// |
| 17000 | :repl |
| 17001 | t repl |
| 17002 | s/'"$ac_delim"'$// |
| 17003 | t delim |
| 17004 | :nl |
| 17005 | h |
| 17006 | s/\(.\{148\}\)..*/\1/ |
| 17007 | t more1 |
| 17008 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 17009 | p |
| 17010 | n |
| 17011 | b repl |
| 17012 | :more1 |
| 17013 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17014 | p |
| 17015 | g |
| 17016 | s/.\{148\}// |
| 17017 | t nl |
| 17018 | :delim |
| 17019 | h |
| 17020 | s/\(.\{148\}\)..*/\1/ |
| 17021 | t more2 |
| 17022 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 17023 | p |
| 17024 | b |
| 17025 | :more2 |
| 17026 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 17027 | p |
| 17028 | g |
| 17029 | s/.\{148\}// |
| 17030 | t delim |
| 17031 | ' <conf$$subs.awk | sed ' |
| 17032 | /^[^""]/{ |
| 17033 | N |
| 17034 | s/\n// |
| 17035 | } |
| 17036 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 17037 | rm -f conf$$subs.awk |
| 17038 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17039 | _ACAWK |
| 17040 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 17041 | for (key in S) S_is_set[key] = 1 |
| 17042 | FS = "\a" |
| 17043 | |
| 17044 | } |
| 17045 | { |
| 17046 | line = $ 0 |
| 17047 | nfields = split(line, field, "@") |
| 17048 | substed = 0 |
| 17049 | len = length(field[1]) |
| 17050 | for (i = 2; i < nfields; i++) { |
| 17051 | key = field[i] |
| 17052 | keylen = length(key) |
| 17053 | if (S_is_set[key]) { |
| 17054 | value = S[key] |
| 17055 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 17056 | len += length(value) + length(field[++i]) |
| 17057 | substed = 1 |
| 17058 | } else |
| 17059 | len += 1 + keylen |
| 17060 | } |
| 17061 | |
| 17062 | print line |
| 17063 | } |
| 17064 | |
| 17065 | _ACAWK |
| 17066 | _ACEOF |
| 17067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17068 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 17069 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 17070 | else |
| 17071 | cat |
| 17072 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 17073 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 17074 | _ACEOF |
| 17075 | |
| 17076 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 17077 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 17078 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17079 | # (actually we leave an empty line to preserve line numbers). |
| 17080 | if test "x$srcdir" = x.; then |
| 17081 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 17082 | h |
| 17083 | s/// |
| 17084 | s/^/:/ |
| 17085 | s/[ ]*$/:/ |
| 17086 | s/:\$(srcdir):/:/g |
| 17087 | s/:\${srcdir}:/:/g |
| 17088 | s/:@srcdir@:/:/g |
| 17089 | s/^:*// |
| 17090 | s/:*$// |
| 17091 | x |
| 17092 | s/\(=[ ]*\).*/\1/ |
| 17093 | G |
| 17094 | s/\n// |
| 17095 | s/^[^=]*=[ ]*$// |
| 17096 | }' |
| 17097 | fi |
| 17098 | |
| 17099 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17100 | fi # test -n "$CONFIG_FILES" |
| 17101 | |
| 17102 | |
| 17103 | eval set X " :F $CONFIG_FILES " |
| 17104 | shift |
| 17105 | for ac_tag |
| 17106 | do |
| 17107 | case $ac_tag in |
| 17108 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 17109 | esac |
| 17110 | case $ac_mode$ac_tag in |
| 17111 | :[FHL]*:*);; |
| 17112 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 17113 | :[FH]-) ac_tag=-:-;; |
| 17114 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 17115 | esac |
| 17116 | ac_save_IFS=$IFS |
| 17117 | IFS=: |
| 17118 | set x $ac_tag |
| 17119 | IFS=$ac_save_IFS |
| 17120 | shift |
| 17121 | ac_file=$1 |
| 17122 | shift |
| 17123 | |
| 17124 | case $ac_mode in |
| 17125 | :L) ac_source=$1;; |
| 17126 | :[FH]) |
| 17127 | ac_file_inputs= |
| 17128 | for ac_f |
| 17129 | do |
| 17130 | case $ac_f in |
| 17131 | -) ac_f="$ac_tmp/stdin";; |
| 17132 | *) # Look for the file first in the build tree, then in the source tree |
| 17133 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 17134 | # because $ac_f cannot contain `:'. |
| 17135 | test -f "$ac_f" || |
| 17136 | case $ac_f in |
| 17137 | [\\/$]*) false;; |
| 17138 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 17139 | esac || |
| 17140 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 17141 | esac |
| 17142 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 17143 | as_fn_append ac_file_inputs " '$ac_f'" |
| 17144 | done |
| 17145 | |
| 17146 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17147 | # use $as_me), people would be surprised to read: |
| 17148 | # /* config.h. Generated by config.status. */ |
| 17149 | configure_input='Generated from '` |
| 17150 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 17151 | `' by configure.' |
| 17152 | if test x"$ac_file" != x-; then |
| 17153 | configure_input="$ac_file. $configure_input" |
| 17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 17155 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 17156 | fi |
| 17157 | # Neutralize special characters interpreted by sed in replacement strings. |
| 17158 | case $configure_input in #( |
| 17159 | *\&* | *\|* | *\\* ) |
| 17160 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 17161 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 17162 | *) ac_sed_conf_input=$configure_input;; |
| 17163 | esac |
| 17164 | |
| 17165 | case $ac_tag in |
| 17166 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 17167 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 17168 | esac |
| 17169 | ;; |
| 17170 | esac |
| 17171 | |
| 17172 | ac_dir=`$as_dirname -- "$ac_file" || |
| 17173 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17174 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17175 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17176 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 17177 | $as_echo X"$ac_file" | |
| 17178 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 17179 | s//\1/ |
| 17180 | q |
| 17181 | } |
| 17182 | /^X\(\/\/\)[^/].*/{ |
| 17183 | s//\1/ |
| 17184 | q |
| 17185 | } |
| 17186 | /^X\(\/\/\)$/{ |
| 17187 | s//\1/ |
| 17188 | q |
| 17189 | } |
| 17190 | /^X\(\/\).*/{ |
| 17191 | s//\1/ |
| 17192 | q |
| 17193 | } |
| 17194 | s/.*/./; q'` |
| 17195 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 17196 | ac_builddir=. |
| 17197 | |
| 17198 | case "$ac_dir" in |
| 17199 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17200 | *) |
| 17201 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 17202 | # A ".." for each directory in $ac_dir_suffix. |
| 17203 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 17204 | case $ac_top_builddir_sub in |
| 17205 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 17206 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 17207 | esac ;; |
| 17208 | esac |
| 17209 | ac_abs_top_builddir=$ac_pwd |
| 17210 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 17211 | # for backward compatibility: |
| 17212 | ac_top_builddir=$ac_top_build_prefix |
| 17213 | |
| 17214 | case $srcdir in |
| 17215 | .) # We are building in place. |
| 17216 | ac_srcdir=. |
| 17217 | ac_top_srcdir=$ac_top_builddir_sub |
| 17218 | ac_abs_top_srcdir=$ac_pwd ;; |
| 17219 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 17220 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17221 | ac_top_srcdir=$srcdir |
| 17222 | ac_abs_top_srcdir=$srcdir ;; |
| 17223 | *) # Relative name. |
| 17224 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 17225 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 17226 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 17227 | esac |
| 17228 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 17229 | |
| 17230 | |
| 17231 | case $ac_mode in |
| 17232 | :F) |
| 17233 | # |
| 17234 | # CONFIG_FILE |
| 17235 | # |
| 17236 | |
| 17237 | case $INSTALL in |
| 17238 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17239 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 17240 | esac |
| 17241 | ac_MKDIR_P=$MKDIR_P |
| 17242 | case $MKDIR_P in |
| 17243 | [\\/$]* | ?:[\\/]* ) ;; |
| 17244 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 17245 | esac |
| 17246 | _ACEOF |
| 17247 | |
| 17248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17249 | # If the template does not know about datarootdir, expand it. |
| 17250 | # FIXME: This hack should be removed a few years after 2.60. |
| 17251 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 17252 | ac_sed_dataroot=' |
| 17253 | /datarootdir/ { |
| 17254 | p |
| 17255 | q |
| 17256 | } |
| 17257 | /@datadir@/p |
| 17258 | /@docdir@/p |
| 17259 | /@infodir@/p |
| 17260 | /@localedir@/p |
| 17261 | /@mandir@/p' |
| 17262 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 17263 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 17264 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 17266 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 17267 | _ACEOF |
| 17268 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17269 | ac_datarootdir_hack=' |
| 17270 | s&@datadir@&$datadir&g |
| 17271 | s&@docdir@&$docdir&g |
| 17272 | s&@infodir@&$infodir&g |
| 17273 | s&@localedir@&$localedir&g |
| 17274 | s&@mandir@&$mandir&g |
| 17275 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 17276 | esac |
| 17277 | _ACEOF |
| 17278 | |
| 17279 | # Neutralize VPATH when `$srcdir' = `.'. |
| 17280 | # Shell code in configure.ac might set extrasub. |
| 17281 | # FIXME: do we really want to maintain this feature? |
| 17282 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 17283 | ac_sed_extra="$ac_vpsub |
| 17284 | $extrasub |
| 17285 | _ACEOF |
| 17286 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 17287 | :t |
| 17288 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17289 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 17290 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 17291 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 17292 | s&@srcdir@&$ac_srcdir&;t t |
| 17293 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 17294 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 17295 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 17296 | s&@builddir@&$ac_builddir&;t t |
| 17297 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 17298 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 17299 | s&@INSTALL@&$ac_INSTALL&;t t |
| 17300 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 17301 | $ac_datarootdir_hack |
| 17302 | " |
| 17303 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 17304 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17305 | |
| 17306 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 17307 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 17308 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 17309 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 17310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17311 | which seems to be undefined. Please make sure it is defined" >&5 |
| 17312 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 17313 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 17314 | |
| 17315 | rm -f "$ac_tmp/stdin" |
| 17316 | case $ac_file in |
| 17317 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 17318 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 17319 | esac \ |
| 17320 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 17321 | ;; |
| 17322 | |
| 17323 | |
| 17324 | |
| 17325 | esac |
| 17326 | |
| 17327 | done # for ac_tag |
| 17328 | |
| 17329 | |
| 17330 | as_fn_exit 0 |
| 17331 | _ACEOF |
| 17332 | ac_clean_files=$ac_clean_files_save |
| 17333 | |
| 17334 | test $ac_write_fail = 0 || |
| 17335 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17336 | |
| 17337 | |
| 17338 | # configure is writing to config.log, and then calls config.status. |
| 17339 | # config.status does its own redirection, appending to config.log. |
| 17340 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17341 | # by configure, so config.status won't be able to write to it; its |
| 17342 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17343 | # effectively closing config.log, so it can be properly (re)opened and |
| 17344 | # appended to by config.status. When coming back to configure, we |
| 17345 | # need to make the FD available again. |
| 17346 | if test "$no_create" != yes; then |
| 17347 | ac_cs_success=: |
| 17348 | ac_config_status_args= |
| 17349 | test "$silent" = yes && |
| 17350 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17351 | exec 5>/dev/null |
| 17352 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17353 | exec 5>>config.log |
| 17354 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17355 | # would make configure fail if this is the last instruction. |
| 17356 | $ac_cs_success || as_fn_exit 1 |
| 17357 | fi |
| 17358 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17360 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 17361 | fi |
| 17362 | |
| 17363 | |
| 17364 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5 |
| 17365 | $as_echo "$as_me: configuration completed" >&6;} |
| 17366 | |
| 17367 | cat << EOF |
| 17368 | ------------------------------------------------------------------------------ |
| 17369 | Summary |
| 17370 | |
| 17371 | configure flags: $CONFIGURE_FLAGS |
| 17372 | findlib: $OCAMLFIND (an actual version is strongly recommended) |
| 17373 | menhir: $MENHIR (should be an optional tool) |
| 17374 | menhirLib module: $enable_menhirLib (for local package use --disable-menhirLib) |
| 17375 | |
| 17376 | ocaml scripting: $enable_ocaml (overridable with --enable-ocaml) |
| 17377 | python scripting: $enable_python (overridable with --enable-python) |
| 17378 | pycaml module: $enable_pycaml (for local package use --disable-pycaml) |
| 17379 | |
| 17380 | pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax) |
| 17381 | pcre module: $enable_pcre (for local package use --disable-pcre) |
| 17382 | pcre library: $HAVE_PCRE (requires the dev version of libpcre) |
| 17383 | |
| 17384 | release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release) |
| 17385 | optimized spatch: $enable_opt (overridable with --disable-opt) |
| 17386 | |
| 17387 | ------------------------------------------------------------------------------ |
| 17388 | Coccinelle can now be compiled and installed. |
| 17389 | |
| 17390 | |
| 17391 | If you compile coccinelle again after source code changes or |
| 17392 | configuration changes, you may need to run first: |
| 17393 | \$ make clean |
| 17394 | |
| 17395 | To compile coccinelle, run: |
| 17396 | \$ make all |
| 17397 | |
| 17398 | To install coccinelle, run: |
| 17399 | \$ make install |
| 17400 | |
| 17401 | Then, to test coccinelle, run for example: |
| 17402 | \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c |
| 17403 | |
| 17404 | Or when coccinelle is not installed yet: |
| 17405 | \$ COCCINELLE_HOME=$(pwd) ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c |
| 17406 | EOF |
| 17407 | |
| 17408 | if test "x$enable_python" != "xno"; then |
| 17409 | cat << EOF |
| 17410 | ------------------------------------------------------------------------------ |
| 17411 | You may need to set some environment variables so that the python |
| 17412 | libraries are found. The frontend 'spatch' sets the following variables: |
| 17413 | |
| 17414 | \$ export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib |
| 17415 | \$ export PYTHONPATH=\$PYTHONPATH:$prefix/share/coccinelle/python |
| 17416 | |
| 17417 | EOF |
| 17418 | fi |
| 17419 | |
| 17420 | cat << EOF |
| 17421 | ------------------------------------------------------------------------------ |
| 17422 | EOF |