Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ocaml-libvirt 0.6.1.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199 if (eval "$as_required") 2>/dev/null; then :
200 as_have_required=yes
201 else
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265 else
266 $as_echo "$0: Please tell [email protected] about your system,
267 $0: including any error possibly output before this
268 $0: message. Then install a modern shell, or manually run
269 $0: the script under such a shell if you do have one."
270 fi
271 exit 1
272 fi
273 fi
274 fi
275 SHELL=${CONFIG_SHELL-/bin/sh}
276 export SHELL
277 # Unset more variables known to interfere with behavior of common tools.
278 CLICOLOR_FORCE= GREP_OPTIONS=
279 unset CLICOLOR_FORCE GREP_OPTIONS
280
281 ## --------------------- ##
282 ## M4sh Shell Functions. ##
283 ## --------------------- ##
284 # as_fn_unset VAR
285 # ---------------
286 # Portably unset VAR.
287 as_fn_unset ()
288 {
289 { eval $1=; unset $1;}
290 }
291 as_unset=as_fn_unset
292
293 # as_fn_set_status STATUS
294 # -----------------------
295 # Set $? to STATUS, without forking.
296 as_fn_set_status ()
297 {
298 return $1
299 } # as_fn_set_status
300
301 # as_fn_exit STATUS
302 # -----------------
303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304 as_fn_exit ()
305 {
306 set +e
307 as_fn_set_status $1
308 exit $1
309 } # as_fn_exit
310
311 # as_fn_mkdir_p
312 # -------------
313 # Create "$as_dir" as a directory, including parents if necessary.
314 as_fn_mkdir_p ()
315 {
316
317 case $as_dir in #(
318 -*) as_dir=./$as_dir;;
319 esac
320 test -d "$as_dir" || eval $as_mkdir_p || {
321 as_dirs=
322 while :; do
323 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325 *) as_qdir=$as_dir;;
326 esac
327 as_dirs="'$as_qdir' $as_dirs"
328 as_dir=`$as_dirname -- "$as_dir" ||
329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330 X"$as_dir" : 'X\(//\)[^/]' \| \
331 X"$as_dir" : 'X\(//\)$' \| \
332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333 $as_echo X"$as_dir" |
334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 s//\1/
336 q
337 }
338 /^X\(\/\/\)[^/].*/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\).*/{
347 s//\1/
348 q
349 }
350 s/.*/./; q'`
351 test -d "$as_dir" && break
352 done
353 test -z "$as_dirs" || eval "mkdir $as_dirs"
354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357 } # as_fn_mkdir_p
358
359 # as_fn_executable_p FILE
360 # -----------------------
361 # Test if FILE is an executable regular file.
362 as_fn_executable_p ()
363 {
364 test -f "$1" && test -x "$1"
365 } # as_fn_executable_p
366 # as_fn_append VAR VALUE
367 # ----------------------
368 # Append the text in VALUE to the end of the definition contained in VAR. Take
369 # advantage of any shell optimizations that allow amortized linear growth over
370 # repeated appends, instead of the typical quadratic growth present in naive
371 # implementations.
372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373 eval 'as_fn_append ()
374 {
375 eval $1+=\$2
376 }'
377 else
378 as_fn_append ()
379 {
380 eval $1=\$$1\$2
381 }
382 fi # as_fn_append
383
384 # as_fn_arith ARG...
385 # ------------------
386 # Perform arithmetic evaluation on the ARGs, and store the result in the
387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
388 # must be portable across $(()) and expr.
389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390 eval 'as_fn_arith ()
391 {
392 as_val=$(( $* ))
393 }'
394 else
395 as_fn_arith ()
396 {
397 as_val=`expr "$@" || test $? -eq 1`
398 }
399 fi # as_fn_arith
400
401
402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
403 # ----------------------------------------
404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406 # script with STATUS, using 1 if that was 0.
407 as_fn_error ()
408 {
409 as_status=$1; test $as_status -eq 0 && as_status=1
410 if test "$4"; then
411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413 fi
414 $as_echo "$as_me: error: $2" >&2
415 as_fn_exit $as_status
416 } # as_fn_error
417
418 if expr a : '\(a\)' >/dev/null 2>&1 &&
419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
420 as_expr=expr
421 else
422 as_expr=false
423 fi
424
425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426 as_basename=basename
427 else
428 as_basename=false
429 fi
430
431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432 as_dirname=dirname
433 else
434 as_dirname=false
435 fi
436
437 as_me=`$as_basename -- "$0" ||
438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439 X"$0" : 'X\(//\)$' \| \
440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441 $as_echo X/"$0" |
442 sed '/^.*\/\([^/][^/]*\)\/*$/{
443 s//\1/
444 q
445 }
446 /^X\/\(\/\/\)$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\).*/{
451 s//\1/
452 q
453 }
454 s/.*/./; q'`
455
456 # Avoid depending upon Character Ranges.
457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460 as_cr_digits='0123456789'
461 as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464 as_lineno_1=$LINENO as_lineno_1a=$LINENO
465 as_lineno_2=$LINENO as_lineno_2a=$LINENO
466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469 sed -n '
470 p
471 /[$]LINENO/=
472 ' <$as_myself |
473 sed '
474 s/[$]LINENO.*/&-/
475 t lineno
476 b
477 :lineno
478 N
479 :loop
480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481 t loop
482 s/-\n.*//
483 ' >$as_me.lineno &&
484 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488 # already done that, so ensure we don't try to do so again and fall
489 # in an infinite loop. This has already happened in practice.
490 _as_can_reexec=no; export _as_can_reexec
491 # Don't try to exec as it changes $[0], causing all sort of problems
492 # (the dirname of $[0] is not the place where we might find the
493 # original and so on. Autoconf is especially sensitive to this).
494 . "./$as_me.lineno"
495 # Exit status is that of the last command.
496 exit
497 }
498
499 ECHO_C= ECHO_N= ECHO_T=
500 case `echo -n x` in #(((((
501 -n*)
502 case `echo 'xy\c'` in
503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 xy) ECHO_C='\c';;
505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506 ECHO_T=' ';;
507 esac;;
508 *)
509 ECHO_N='-n';;
510 esac
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -pR'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -pR'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -pR'
532 fi
533 else
534 as_ln_s='cp -pR'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p='mkdir -p "$as_dir"'
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544 fi
545
546 as_test_x='test -x'
547 as_executable_p=as_fn_executable_p
548
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556 test -n "$DJDIR" || exec 7<&0 </dev/null
557 exec 6>&1
558
559 # Name of the host.
560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564 #
565 # Initializations.
566 #
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575
576 # Identity of this package.
577 PACKAGE_NAME='ocaml-libvirt'
578 PACKAGE_TARNAME='ocaml-libvirt'
579 PACKAGE_VERSION='0.6.1.5'
580 PACKAGE_STRING='ocaml-libvirt 0.6.1.5'
581 PACKAGE_BUGREPORT=''
582 PACKAGE_URL=''
583
584 ac_subst_vars='LTLIBOBJS
585 LIBOBJS
586 OCAML_PKG_unix
587 OCAMLFIND
588 OCAMLBUILD
589 OCAMLDOC
590 OCAMLMKLIB
591 OCAMLMKTOP
592 OCAMLDEP
593 OCAMLOPTDOTOPT
594 OCAMLCDOTOPT
595 OCAMLBEST
596 OCAMLOPT
597 OCAMLLIB
598 OCAMLVERSION
599 OCAMLC
600 LIBVIRT_LIBS
601 LIBVIRT_CFLAGS
602 PKG_CONFIG_LIBDIR
603 PKG_CONFIG_PATH
604 PKG_CONFIG
605 PERL
606 WIN32
607 CFLAGS_FPIC
608 WARNINGS
609 DEBUG
610 host_os
611 host_vendor
612 host_cpu
613 host
614 build_os
615 build_vendor
616 build_cpu
617 build
618 CPP
619 INSTALL_DATA
620 INSTALL_SCRIPT
621 INSTALL_PROGRAM
622 OBJEXT
623 EXEEXT
624 ac_ct_CC
625 CPPFLAGS
626 LDFLAGS
627 CFLAGS
628 CC
629 target_alias
630 host_alias
631 build_alias
632 LIBS
633 ECHO_T
634 ECHO_N
635 ECHO_C
636 DEFS
637 mandir
638 localedir
639 libdir
640 psdir
641 pdfdir
642 dvidir
643 htmldir
644 infodir
645 docdir
646 oldincludedir
647 includedir
648 localstatedir
649 sharedstatedir
650 sysconfdir
651 datadir
652 datarootdir
653 libexecdir
654 sbindir
655 bindir
656 program_transform_name
657 prefix
658 exec_prefix
659 PACKAGE_URL
660 PACKAGE_BUGREPORT
661 PACKAGE_STRING
662 PACKAGE_VERSION
663 PACKAGE_TARNAME
664 PACKAGE_NAME
665 PATH_SEPARATOR
666 SHELL'
667 ac_subst_files=''
668 ac_user_opts='
669 enable_option_checking
670 '
671 ac_precious_vars='build_alias
672 host_alias
673 target_alias
674 CC
675 CFLAGS
676 LDFLAGS
677 LIBS
678 CPPFLAGS
679 CPP
680 PKG_CONFIG
681 PKG_CONFIG_PATH
682 PKG_CONFIG_LIBDIR
683 LIBVIRT_CFLAGS
684 LIBVIRT_LIBS'
685
686
687 # Initialize some variables set by options.
688 ac_init_help=
689 ac_init_version=false
690 ac_unrecognized_opts=
691 ac_unrecognized_sep=
692 # The variables have the same names as the options, with
693 # dashes changed to underlines.
694 cache_file=/dev/null
695 exec_prefix=NONE
696 no_create=
697 no_recursion=
698 prefix=NONE
699 program_prefix=NONE
700 program_suffix=NONE
701 program_transform_name=s,x,x,
702 silent=
703 site=
704 srcdir=
705 verbose=
706 x_includes=NONE
707 x_libraries=NONE
708
709 # Installation directory options.
710 # These are left unexpanded so users can "make install exec_prefix=/foo"
711 # and all the variables that are supposed to be based on exec_prefix
712 # by default will actually change.
713 # Use braces instead of parens because sh, perl, etc. also accept them.
714 # (The list follows the same order as the GNU Coding Standards.)
715 bindir='${exec_prefix}/bin'
716 sbindir='${exec_prefix}/sbin'
717 libexecdir='${exec_prefix}/libexec'
718 datarootdir='${prefix}/share'
719 datadir='${datarootdir}'
720 sysconfdir='${prefix}/etc'
721 sharedstatedir='${prefix}/com'
722 localstatedir='${prefix}/var'
723 includedir='${prefix}/include'
724 oldincludedir='/usr/include'
725 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
726 infodir='${datarootdir}/info'
727 htmldir='${docdir}'
728 dvidir='${docdir}'
729 pdfdir='${docdir}'
730 psdir='${docdir}'
731 libdir='${exec_prefix}/lib'
732 localedir='${datarootdir}/locale'
733 mandir='${datarootdir}/man'
734
735 ac_prev=
736 ac_dashdash=
737 for ac_option
738 do
739 # If the previous option needs an argument, assign it.
740 if test -n "$ac_prev"; then
741 eval $ac_prev=\$ac_option
742 ac_prev=
743 continue
744 fi
745
746 case $ac_option in
747 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748 *=) ac_optarg= ;;
749 *) ac_optarg=yes ;;
750 esac
751
752 # Accept the important Cygnus configure options, so we can diagnose typos.
753
754 case $ac_dashdash$ac_option in
755 --)
756 ac_dashdash=yes ;;
757
758 -bindir | --bindir | --bindi | --bind | --bin | --bi)
759 ac_prev=bindir ;;
760 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761 bindir=$ac_optarg ;;
762
763 -build | --build | --buil | --bui | --bu)
764 ac_prev=build_alias ;;
765 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766 build_alias=$ac_optarg ;;
767
768 -cache-file | --cache-file | --cache-fil | --cache-fi \
769 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770 ac_prev=cache_file ;;
771 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773 cache_file=$ac_optarg ;;
774
775 --config-cache | -C)
776 cache_file=config.cache ;;
777
778 -datadir | --datadir | --datadi | --datad)
779 ac_prev=datadir ;;
780 -datadir=* | --datadir=* | --datadi=* | --datad=*)
781 datadir=$ac_optarg ;;
782
783 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784 | --dataroo | --dataro | --datar)
785 ac_prev=datarootdir ;;
786 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788 datarootdir=$ac_optarg ;;
789
790 -disable-* | --disable-*)
791 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794 as_fn_error $? "invalid feature name: $ac_useropt"
795 ac_useropt_orig=$ac_useropt
796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797 case $ac_user_opts in
798 *"
799 "enable_$ac_useropt"
800 "*) ;;
801 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802 ac_unrecognized_sep=', ';;
803 esac
804 eval enable_$ac_useropt=no ;;
805
806 -docdir | --docdir | --docdi | --doc | --do)
807 ac_prev=docdir ;;
808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809 docdir=$ac_optarg ;;
810
811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 ac_prev=dvidir ;;
813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814 dvidir=$ac_optarg ;;
815
816 -enable-* | --enable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=\$ac_optarg ;;
831
832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834 | --exec | --exe | --ex)
835 ac_prev=exec_prefix ;;
836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838 | --exec=* | --exe=* | --ex=*)
839 exec_prefix=$ac_optarg ;;
840
841 -gas | --gas | --ga | --g)
842 # Obsolete; use --with-gas.
843 with_gas=yes ;;
844
845 -help | --help | --hel | --he | -h)
846 ac_init_help=long ;;
847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848 ac_init_help=recursive ;;
849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850 ac_init_help=short ;;
851
852 -host | --host | --hos | --ho)
853 ac_prev=host_alias ;;
854 -host=* | --host=* | --hos=* | --ho=*)
855 host_alias=$ac_optarg ;;
856
857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858 ac_prev=htmldir ;;
859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860 | --ht=*)
861 htmldir=$ac_optarg ;;
862
863 -includedir | --includedir | --includedi | --included | --include \
864 | --includ | --inclu | --incl | --inc)
865 ac_prev=includedir ;;
866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867 | --includ=* | --inclu=* | --incl=* | --inc=*)
868 includedir=$ac_optarg ;;
869
870 -infodir | --infodir | --infodi | --infod | --info | --inf)
871 ac_prev=infodir ;;
872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873 infodir=$ac_optarg ;;
874
875 -libdir | --libdir | --libdi | --libd)
876 ac_prev=libdir ;;
877 -libdir=* | --libdir=* | --libdi=* | --libd=*)
878 libdir=$ac_optarg ;;
879
880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881 | --libexe | --libex | --libe)
882 ac_prev=libexecdir ;;
883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884 | --libexe=* | --libex=* | --libe=*)
885 libexecdir=$ac_optarg ;;
886
887 -localedir | --localedir | --localedi | --localed | --locale)
888 ac_prev=localedir ;;
889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890 localedir=$ac_optarg ;;
891
892 -localstatedir | --localstatedir | --localstatedi | --localstated \
893 | --localstate | --localstat | --localsta | --localst | --locals)
894 ac_prev=localstatedir ;;
895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897 localstatedir=$ac_optarg ;;
898
899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900 ac_prev=mandir ;;
901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 mandir=$ac_optarg ;;
903
904 -nfp | --nfp | --nf)
905 # Obsolete; use --without-fp.
906 with_fp=no ;;
907
908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909 | --no-cr | --no-c | -n)
910 no_create=yes ;;
911
912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914 no_recursion=yes ;;
915
916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918 | --oldin | --oldi | --old | --ol | --o)
919 ac_prev=oldincludedir ;;
920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923 oldincludedir=$ac_optarg ;;
924
925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926 ac_prev=prefix ;;
927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928 prefix=$ac_optarg ;;
929
930 -program-prefix | --program-prefix | --program-prefi | --program-pref \
931 | --program-pre | --program-pr | --program-p)
932 ac_prev=program_prefix ;;
933 -program-prefix=* | --program-prefix=* | --program-prefi=* \
934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935 program_prefix=$ac_optarg ;;
936
937 -program-suffix | --program-suffix | --program-suffi | --program-suff \
938 | --program-suf | --program-su | --program-s)
939 ac_prev=program_suffix ;;
940 -program-suffix=* | --program-suffix=* | --program-suffi=* \
941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942 program_suffix=$ac_optarg ;;
943
944 -program-transform-name | --program-transform-name \
945 | --program-transform-nam | --program-transform-na \
946 | --program-transform-n | --program-transform- \
947 | --program-transform | --program-transfor \
948 | --program-transfo | --program-transf \
949 | --program-trans | --program-tran \
950 | --progr-tra | --program-tr | --program-t)
951 ac_prev=program_transform_name ;;
952 -program-transform-name=* | --program-transform-name=* \
953 | --program-transform-nam=* | --program-transform-na=* \
954 | --program-transform-n=* | --program-transform-=* \
955 | --program-transform=* | --program-transfor=* \
956 | --program-transfo=* | --program-transf=* \
957 | --program-trans=* | --program-tran=* \
958 | --progr-tra=* | --program-tr=* | --program-t=*)
959 program_transform_name=$ac_optarg ;;
960
961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962 ac_prev=pdfdir ;;
963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964 pdfdir=$ac_optarg ;;
965
966 -psdir | --psdir | --psdi | --psd | --ps)
967 ac_prev=psdir ;;
968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969 psdir=$ac_optarg ;;
970
971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972 | -silent | --silent | --silen | --sile | --sil)
973 silent=yes ;;
974
975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976 ac_prev=sbindir ;;
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978 | --sbi=* | --sb=*)
979 sbindir=$ac_optarg ;;
980
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
984 | --sha | --sh)
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989 | --sha=* | --sh=*)
990 sharedstatedir=$ac_optarg ;;
991
992 -site | --site | --sit)
993 ac_prev=site ;;
994 -site=* | --site=* | --sit=*)
995 site=$ac_optarg ;;
996
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998 ac_prev=srcdir ;;
999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000 srcdir=$ac_optarg ;;
1001
1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003 | --syscon | --sysco | --sysc | --sys | --sy)
1004 ac_prev=sysconfdir ;;
1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007 sysconfdir=$ac_optarg ;;
1008
1009 -target | --target | --targe | --targ | --tar | --ta | --t)
1010 ac_prev=target_alias ;;
1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012 target_alias=$ac_optarg ;;
1013
1014 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015 verbose=yes ;;
1016
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1019
1020 -with-* | --with-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid package name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "with_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval with_$ac_useropt=\$ac_optarg ;;
1035
1036 -without-* | --without-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid package name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "with_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval with_$ac_useropt=no ;;
1051
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1055
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1062
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1069
1070 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1071 Try \`$0 --help' for more information"
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 case $ac_envvar in #(
1078 '' | [0-9]* | *[!_$as_cr_alnum]* )
1079 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1080 esac
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1083
1084 *)
1085 # FIXME: should be removed in autoconf 3.0.
1086 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1090 ;;
1091
1092 esac
1093 done
1094
1095 if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 as_fn_error $? "missing argument to $ac_option"
1098 fi
1099
1100 if test -n "$ac_unrecognized_opts"; then
1101 case $enable_option_checking in
1102 no) ;;
1103 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 esac
1106 fi
1107
1108 # Check all directory arguments for consistency.
1109 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112 libdir localedir mandir
1113 do
1114 eval ac_val=\$$ac_var
1115 # Remove trailing slashes.
1116 case $ac_val in
1117 */ )
1118 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119 eval $ac_var=\$ac_val;;
1120 esac
1121 # Be sure to have absolute directory names.
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127 done
1128
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 elif test "x$build_alias" != "x$host_alias"; then
1141 cross_compiling=yes
1142 fi
1143 fi
1144
1145 ac_tool_prefix=
1146 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148 test "$silent" = yes && exec 6>/dev/null
1149
1150
1151 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di=`ls -di .` &&
1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error $? "working directory cannot be determined"
1155 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error $? "pwd does not report name of working directory"
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161 ac_srcdir_defaulted=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1164 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168 $as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\/\)[^/].*/{
1174 s//\1/
1175 q
1176 }
1177 /^X\(\/\/\)$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\).*/{
1182 s//\1/
1183 q
1184 }
1185 s/.*/./; q'`
1186 srcdir=$ac_confdir
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1188 srcdir=..
1189 fi
1190 else
1191 ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1196 fi
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1200 pwd)`
1201 # When building in place, set srcdir=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204 fi
1205 # Remove unnecessary trailing slashes from srcdir.
1206 # Double slashes in file names in object file debugging info
1207 # mess up M-x gdb in Emacs.
1208 case $srcdir in
1209 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 esac
1211 for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216 done
1217
1218 #
1219 # Report the --help message.
1220 #
1221 if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225 \`configure' configures ocaml-libvirt 0.6.1.5 to adapt to many kinds of systems.
1226
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232 Defaults for the options are specified in brackets.
1233
1234 Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking ...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245 Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1255
1256 For better control, use the options below.
1257
1258 Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/ocaml-libvirt]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1278 _ACEOF
1279
1280 cat <<\_ACEOF
1281
1282 System types:
1283 --build=BUILD configure for building on BUILD [guessed]
1284 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285 _ACEOF
1286 fi
1287
1288 if test -n "$ac_init_help"; then
1289 case $ac_init_help in
1290 short | recursive ) echo "Configuration of ocaml-libvirt 0.6.1.5:";;
1291 esac
1292 cat <<\_ACEOF
1293
1294 Some influential environment variables:
1295 CC C compiler command
1296 CFLAGS C compiler flags
1297 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1298 nonstandard directory <lib dir>
1299 LIBS libraries to pass to the linker, e.g. -l<library>
1300 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1301 you have headers in a nonstandard directory <include dir>
1302 CPP C preprocessor
1303 PKG_CONFIG path to pkg-config utility
1304 PKG_CONFIG_PATH
1305 directories to add to pkg-config's search path
1306 PKG_CONFIG_LIBDIR
1307 path overriding pkg-config's built-in search path
1308 LIBVIRT_CFLAGS
1309 C compiler flags for LIBVIRT, overriding pkg-config
1310 LIBVIRT_LIBS
1311 linker flags for LIBVIRT, overriding pkg-config
1312
1313 Use these variables to override the choices made by `configure' or to help
1314 it to find libraries and programs with nonstandard names/locations.
1315
1316 Report bugs to the package provider.
1317 _ACEOF
1318 ac_status=$?
1319 fi
1320
1321 if test "$ac_init_help" = "recursive"; then
1322 # If there are subdirs, report their specific --help.
1323 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1324 test -d "$ac_dir" ||
1325 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1326 continue
1327 ac_builddir=.
1328
1329 case "$ac_dir" in
1330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 *)
1332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1333 # A ".." for each directory in $ac_dir_suffix.
1334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1335 case $ac_top_builddir_sub in
1336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 esac ;;
1339 esac
1340 ac_abs_top_builddir=$ac_pwd
1341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342 # for backward compatibility:
1343 ac_top_builddir=$ac_top_build_prefix
1344
1345 case $srcdir in
1346 .) # We are building in place.
1347 ac_srcdir=.
1348 ac_top_srcdir=$ac_top_builddir_sub
1349 ac_abs_top_srcdir=$ac_pwd ;;
1350 [\\/]* | ?:[\\/]* ) # Absolute name.
1351 ac_srcdir=$srcdir$ac_dir_suffix;
1352 ac_top_srcdir=$srcdir
1353 ac_abs_top_srcdir=$srcdir ;;
1354 *) # Relative name.
1355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356 ac_top_srcdir=$ac_top_build_prefix$srcdir
1357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1358 esac
1359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360
1361 cd "$ac_dir" || { ac_status=$?; continue; }
1362 # Check for guested configure.
1363 if test -f "$ac_srcdir/configure.gnu"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366 elif test -f "$ac_srcdir/configure"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure" --help=recursive
1369 else
1370 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371 fi || ac_status=$?
1372 cd "$ac_pwd" || { ac_status=$?; break; }
1373 done
1374 fi
1375
1376 test -n "$ac_init_help" && exit $ac_status
1377 if $ac_init_version; then
1378 cat <<\_ACEOF
1379 ocaml-libvirt configure 0.6.1.5
1380 generated by GNU Autoconf 2.69
1381
1382 Copyright (C) 2012 Free Software Foundation, Inc.
1383 This configure script is free software; the Free Software Foundation
1384 gives unlimited permission to copy, distribute and modify it.
1385 _ACEOF
1386 exit
1387 fi
1388
1389 ## ------------------------ ##
1390 ## Autoconf initialization. ##
1391 ## ------------------------ ##
1392
1393 # ac_fn_c_try_compile LINENO
1394 # --------------------------
1395 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1396 ac_fn_c_try_compile ()
1397 {
1398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1399 rm -f conftest.$ac_objext
1400 if { { ac_try="$ac_compile"
1401 case "(($ac_try" in
1402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1403 *) ac_try_echo=$ac_try;;
1404 esac
1405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1406 $as_echo "$ac_try_echo"; } >&5
1407 (eval "$ac_compile") 2>conftest.err
1408 ac_status=$?
1409 if test -s conftest.err; then
1410 grep -v '^ *+' conftest.err >conftest.er1
1411 cat conftest.er1 >&5
1412 mv -f conftest.er1 conftest.err
1413 fi
1414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1415 test $ac_status = 0; } && {
1416 test -z "$ac_c_werror_flag" ||
1417 test ! -s conftest.err
1418 } && test -s conftest.$ac_objext; then :
1419 ac_retval=0
1420 else
1421 $as_echo "$as_me: failed program was:" >&5
1422 sed 's/^/| /' conftest.$ac_ext >&5
1423
1424 ac_retval=1
1425 fi
1426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1427 as_fn_set_status $ac_retval
1428
1429 } # ac_fn_c_try_compile
1430
1431 # ac_fn_c_try_cpp LINENO
1432 # ----------------------
1433 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1434 ac_fn_c_try_cpp ()
1435 {
1436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1437 if { { ac_try="$ac_cpp conftest.$ac_ext"
1438 case "(($ac_try" in
1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1441 esac
1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443 $as_echo "$ac_try_echo"; } >&5
1444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1445 ac_status=$?
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1450 fi
1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } > conftest.i && {
1453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1454 test ! -s conftest.err
1455 }; then :
1456 ac_retval=0
1457 else
1458 $as_echo "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1460
1461 ac_retval=1
1462 fi
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1465
1466 } # ac_fn_c_try_cpp
1467 cat >config.log <<_ACEOF
1468 This file contains any messages produced by compilers while
1469 running configure, to aid debugging if configure makes a mistake.
1470
1471 It was created by ocaml-libvirt $as_me 0.6.1.5, which was
1472 generated by GNU Autoconf 2.69. Invocation command line was
1473
1474 $ $0 $@
1475
1476 _ACEOF
1477 exec 5>>config.log
1478 {
1479 cat <<_ASUNAME
1480 ## --------- ##
1481 ## Platform. ##
1482 ## --------- ##
1483
1484 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1485 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1486 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1487 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1488 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1489
1490 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1491 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1492
1493 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1494 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1495 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1496 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1497 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1498 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1499 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500
1501 _ASUNAME
1502
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 $as_echo "PATH: $as_dir"
1509 done
1510 IFS=$as_save_IFS
1511
1512 } >&5
1513
1514 cat >&5 <<_ACEOF
1515
1516
1517 ## ----------- ##
1518 ## Core tests. ##
1519 ## ----------- ##
1520
1521 _ACEOF
1522
1523
1524 # Keep a trace of the command line.
1525 # Strip out --no-create and --no-recursion so they do not pile up.
1526 # Strip out --silent because we don't want to record it for future runs.
1527 # Also quote any args containing shell meta-characters.
1528 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_configure_args=
1530 ac_configure_args0=
1531 ac_configure_args1=
1532 ac_must_keep_next=false
1533 for ac_pass in 1 2
1534 do
1535 for ac_arg
1536 do
1537 case $ac_arg in
1538 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1541 continue ;;
1542 *\'*)
1543 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1544 esac
1545 case $ac_pass in
1546 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1547 2)
1548 as_fn_append ac_configure_args1 " '$ac_arg'"
1549 if test $ac_must_keep_next = true; then
1550 ac_must_keep_next=false # Got value, back to normal.
1551 else
1552 case $ac_arg in
1553 *=* | --config-cache | -C | -disable-* | --disable-* \
1554 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1555 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1556 | -with-* | --with-* | -without-* | --without-* | --x)
1557 case "$ac_configure_args0 " in
1558 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1559 esac
1560 ;;
1561 -* ) ac_must_keep_next=true ;;
1562 esac
1563 fi
1564 as_fn_append ac_configure_args " '$ac_arg'"
1565 ;;
1566 esac
1567 done
1568 done
1569 { ac_configure_args0=; unset ac_configure_args0;}
1570 { ac_configure_args1=; unset ac_configure_args1;}
1571
1572 # When interrupted or exit'd, cleanup temporary files, and complete
1573 # config.log. We remove comments because anyway the quotes in there
1574 # would cause problems or look ugly.
1575 # WARNING: Use '\'' to represent an apostrophe within the trap.
1576 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1577 trap 'exit_status=$?
1578 # Save into config.log some information that might help in debugging.
1579 {
1580 echo
1581
1582 $as_echo "## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##"
1585 echo
1586 # The following way of writing the cache mishandles newlines in values,
1587 (
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in #(
1591 *${as_nl}*)
1592 case $ac_var in #(
1593 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac
1596 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #(
1598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1599 *) { eval $ac_var=; unset $ac_var;} ;;
1600 esac ;;
1601 esac
1602 done
1603 (set) 2>&1 |
1604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1606 sed -n \
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 ;; #(
1610 *)
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612 ;;
1613 esac |
1614 sort
1615 )
1616 echo
1617
1618 $as_echo "## ----------------- ##
1619 ## Output variables. ##
1620 ## ----------------- ##"
1621 echo
1622 for ac_var in $ac_subst_vars
1623 do
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 $as_echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1631
1632 if test -n "$ac_subst_files"; then
1633 $as_echo "## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##"
1636 echo
1637 for ac_var in $ac_subst_files
1638 do
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 $as_echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1646 fi
1647
1648 if test -s confdefs.h; then
1649 $as_echo "## ----------- ##
1650 ## confdefs.h. ##
1651 ## ----------- ##"
1652 echo
1653 cat confdefs.h
1654 echo
1655 fi
1656 test "$ac_signal" != 0 &&
1657 $as_echo "$as_me: caught signal $ac_signal"
1658 $as_echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1663 ' 0
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1666 done
1667 ac_signal=0
1668
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1671
1672 $as_echo "/* confdefs.h */" > confdefs.h
1673
1674 # Predefined preprocessor variables.
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 _ACEOF
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1686 _ACEOF
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 _ACEOF
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 _ACEOF
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_URL "$PACKAGE_URL"
1698 _ACEOF
1699
1700
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer an explicitly selected file to automatically selected ones.
1703 ac_site_file1=NONE
1704 ac_site_file2=NONE
1705 if test -n "$CONFIG_SITE"; then
1706 # We do not want a PATH search for config.site.
1707 case $CONFIG_SITE in #((
1708 -*) ac_site_file1=./$CONFIG_SITE;;
1709 */*) ac_site_file1=$CONFIG_SITE;;
1710 *) ac_site_file1=./$CONFIG_SITE;;
1711 esac
1712 elif test "x$prefix" != xNONE; then
1713 ac_site_file1=$prefix/share/config.site
1714 ac_site_file2=$prefix/etc/config.site
1715 else
1716 ac_site_file1=$ac_default_prefix/share/config.site
1717 ac_site_file2=$ac_default_prefix/etc/config.site
1718 fi
1719 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1720 do
1721 test "x$ac_site_file" = xNONE && continue
1722 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1724 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1725 sed 's/^/| /' "$ac_site_file" >&5
1726 . "$ac_site_file" \
1727 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1729 as_fn_error $? "failed to load site script $ac_site_file
1730 See \`config.log' for more details" "$LINENO" 5; }
1731 fi
1732 done
1733
1734 if test -r "$cache_file"; then
1735 # Some versions of bash will fail to source /dev/null (special files
1736 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1737 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1739 $as_echo "$as_me: loading cache $cache_file" >&6;}
1740 case $cache_file in
1741 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1742 *) . "./$cache_file";;
1743 esac
1744 fi
1745 else
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1747 $as_echo "$as_me: creating cache $cache_file" >&6;}
1748 >$cache_file
1749 fi
1750
1751 # Check that the precious variables saved in the cache have kept the same
1752 # value.
1753 ac_cache_corrupted=false
1754 for ac_var in $ac_precious_vars; do
1755 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1756 eval ac_new_set=\$ac_env_${ac_var}_set
1757 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1758 eval ac_new_val=\$ac_env_${ac_var}_value
1759 case $ac_old_set,$ac_new_set in
1760 set,)
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1762 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1763 ac_cache_corrupted=: ;;
1764 ,set)
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1766 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,);;
1769 *)
1770 if test "x$ac_old_val" != "x$ac_new_val"; then
1771 # differences in whitespace do not lead to failure.
1772 ac_old_val_w=`echo x $ac_old_val`
1773 ac_new_val_w=`echo x $ac_new_val`
1774 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1776 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 ac_cache_corrupted=:
1778 else
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1780 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1781 eval $ac_var=\$ac_old_val
1782 fi
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1784 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1786 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1787 fi;;
1788 esac
1789 # Pass precious variables to config.status.
1790 if test "$ac_new_set" = set; then
1791 case $ac_new_val in
1792 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 *) ac_arg=$ac_var=$ac_new_val ;;
1794 esac
1795 case " $ac_configure_args " in
1796 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1797 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1798 esac
1799 fi
1800 done
1801 if $ac_cache_corrupted; then
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1805 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1807 fi
1808 ## -------------------- ##
1809 ## Main body of script. ##
1810 ## -------------------- ##
1811
1812 ac_ext=c
1813 ac_cpp='$CPP $CPPFLAGS'
1814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817
1818
1819
1820
1821 ac_ext=c
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 if test -n "$ac_tool_prefix"; then
1827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1830 $as_echo_n "checking for $ac_word... " >&6; }
1831 if ${ac_cv_prog_CC+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 else
1834 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1839 do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848 done
1849 done
1850 IFS=$as_save_IFS
1851
1852 fi
1853 fi
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1857 $as_echo "$CC" >&6; }
1858 else
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1860 $as_echo "no" >&6; }
1861 fi
1862
1863
1864 fi
1865 if test -z "$ac_cv_prog_CC"; then
1866 ac_ct_CC=$CC
1867 # Extract the first word of "gcc", so it can be a program name with args.
1868 set dummy gcc; ac_word=$2
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1870 $as_echo_n "checking for $ac_word... " >&6; }
1871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="gcc"
1885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888 done
1889 done
1890 IFS=$as_save_IFS
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1897 $as_echo "$ac_ct_CC" >&6; }
1898 else
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1900 $as_echo "no" >&6; }
1901 fi
1902
1903 if test "x$ac_ct_CC" = x; then
1904 CC=""
1905 else
1906 case $cross_compiling:$ac_tool_warned in
1907 yes:)
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1910 ac_tool_warned=yes ;;
1911 esac
1912 CC=$ac_ct_CC
1913 fi
1914 else
1915 CC="$ac_cv_prog_CC"
1916 fi
1917
1918 if test -z "$CC"; then
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}cc; ac_word=$2
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1923 $as_echo_n "checking for $ac_word... " >&6; }
1924 if ${ac_cv_prog_CC+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_CC="${ac_tool_prefix}cc"
1938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943 IFS=$as_save_IFS
1944
1945 fi
1946 fi
1947 CC=$ac_cv_prog_CC
1948 if test -n "$CC"; then
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1950 $as_echo "$CC" >&6; }
1951 else
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1953 $as_echo "no" >&6; }
1954 fi
1955
1956
1957 fi
1958 fi
1959 if test -z "$CC"; then
1960 # Extract the first word of "cc", so it can be a program name with args.
1961 set dummy cc; ac_word=$2
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1963 $as_echo_n "checking for $ac_word... " >&6; }
1964 if ${ac_cv_prog_CC+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 else
1970 ac_prog_rejected=no
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974 IFS=$as_save_IFS
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1979 ac_prog_rejected=yes
1980 continue
1981 fi
1982 ac_cv_prog_CC="cc"
1983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1985 fi
1986 done
1987 done
1988 IFS=$as_save_IFS
1989
1990 if test $ac_prog_rejected = yes; then
1991 # We found a bogon in the path, so make sure we never use it.
1992 set dummy $ac_cv_prog_CC
1993 shift
1994 if test $# != 0; then
1995 # We chose a different compiler from the bogus one.
1996 # However, it has the same basename, so the bogon will be chosen
1997 # first if we set CC to just the basename; use the full file name.
1998 shift
1999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2000 fi
2001 fi
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2007 $as_echo "$CC" >&6; }
2008 else
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2010 $as_echo "no" >&6; }
2011 fi
2012
2013
2014 fi
2015 if test -z "$CC"; then
2016 if test -n "$ac_tool_prefix"; then
2017 for ac_prog in cl.exe
2018 do
2019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2022 $as_echo_n "checking for $ac_word... " >&6; }
2023 if ${ac_cv_prog_CC+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040 done
2041 done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2049 $as_echo "$CC" >&6; }
2050 else
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2052 $as_echo "no" >&6; }
2053 fi
2054
2055
2056 test -n "$CC" && break
2057 done
2058 fi
2059 if test -z "$CC"; then
2060 ac_ct_CC=$CC
2061 for ac_prog in cl.exe
2062 do
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2066 $as_echo_n "checking for $ac_word... " >&6; }
2067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 if test -n "$ac_ct_CC"; then
2071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_ac_ct_CC="$ac_prog"
2081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2083 fi
2084 done
2085 done
2086 IFS=$as_save_IFS
2087
2088 fi
2089 fi
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2093 $as_echo "$ac_ct_CC" >&6; }
2094 else
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2096 $as_echo "no" >&6; }
2097 fi
2098
2099
2100 test -n "$ac_ct_CC" && break
2101 done
2102
2103 if test "x$ac_ct_CC" = x; then
2104 CC=""
2105 else
2106 case $cross_compiling:$ac_tool_warned in
2107 yes:)
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2110 ac_tool_warned=yes ;;
2111 esac
2112 CC=$ac_ct_CC
2113 fi
2114 fi
2115
2116 fi
2117
2118
2119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 as_fn_error $? "no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details" "$LINENO" 5; }
2123
2124 # Provide some information about the compiler.
2125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2126 set X $ac_compile
2127 ac_compiler=$2
2128 for ac_option in --version -v -V -qversion; do
2129 { { ac_try="$ac_compiler $ac_option >&5"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 sed '10a\
2140 ... rest of stderr output deleted ...
2141 10q' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 fi
2144 rm -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; }
2147 done
2148
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151
2152 int
2153 main ()
2154 {
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2166 $as_echo_n "checking whether the C compiler works... " >&6; }
2167 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168
2169 # The possible output files:
2170 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2171
2172 ac_rmfiles=
2173 for ac_file in $ac_files
2174 do
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178 esac
2179 done
2180 rm -f $ac_rmfiles
2181
2182 if { { ac_try="$ac_link_default"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link_default") 2>&5
2190 ac_status=$?
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; }; then :
2193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2196 # so that the user can short-circuit this test for compilers unknown to
2197 # Autoconf.
2198 for ac_file in $ac_files ''
2199 do
2200 test -f "$ac_file" || continue
2201 case $ac_file in
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2203 ;;
2204 [ab].out )
2205 # We found the default executable, but exeext='' is most
2206 # certainly right.
2207 break;;
2208 *.* )
2209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210 then :; else
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 fi
2213 # We set ac_cv_exeext here because the later test for it is not
2214 # safe: cross compilers may not add the suffix if given an `-o'
2215 # argument, so we may need to know it at that point already.
2216 # Even if this section looks crufty: it has the advantage of
2217 # actually working.
2218 break;;
2219 * )
2220 break;;
2221 esac
2222 done
2223 test "$ac_cv_exeext" = no && ac_cv_exeext=
2224
2225 else
2226 ac_file=''
2227 fi
2228 if test -z "$ac_file"; then :
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2230 $as_echo "no" >&6; }
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error 77 "C compiler cannot create executables
2237 See \`config.log' for more details" "$LINENO" 5; }
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2240 $as_echo "yes" >&6; }
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2243 $as_echo_n "checking for C compiler default output file name... " >&6; }
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2245 $as_echo "$ac_file" >&6; }
2246 ac_exeext=$ac_cv_exeext
2247
2248 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2251 $as_echo_n "checking for suffix of executables... " >&6; }
2252 if { { ac_try="$ac_link"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262 test $ac_status = 0; }; then :
2263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 # `rm'.
2267 for ac_file in conftest.exe conftest conftest.*; do
2268 test -f "$ac_file" || continue
2269 case $ac_file in
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272 break;;
2273 * ) break;;
2274 esac
2275 done
2276 else
2277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details" "$LINENO" 5; }
2281 fi
2282 rm -f conftest conftest$ac_cv_exeext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2284 $as_echo "$ac_cv_exeext" >&6; }
2285
2286 rm -f conftest.$ac_ext
2287 EXEEXT=$ac_cv_exeext
2288 ac_exeext=$EXEEXT
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2291 #include <stdio.h>
2292 int
2293 main ()
2294 {
2295 FILE *f = fopen ("conftest.out", "w");
2296 return ferror (f) || fclose (f) != 0;
2297
2298 ;
2299 return 0;
2300 }
2301 _ACEOF
2302 ac_clean_files="$ac_clean_files conftest.out"
2303 # Check that the compiler produces executables we can run. If not, either
2304 # the compiler is broken, or we cross compile.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2306 $as_echo_n "checking whether we are cross compiling... " >&6; }
2307 if test "$cross_compiling" != yes; then
2308 { { ac_try="$ac_link"
2309 case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_link") 2>&5
2316 ac_status=$?
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; }
2319 if { ac_try='./conftest$ac_cv_exeext'
2320 { { case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_try") 2>&5
2327 ac_status=$?
2328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; }; }; then
2330 cross_compiling=no
2331 else
2332 if test "$cross_compiling" = maybe; then
2333 cross_compiling=yes
2334 else
2335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 as_fn_error $? "cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details" "$LINENO" 5; }
2340 fi
2341 fi
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2344 $as_echo "$cross_compiling" >&6; }
2345
2346 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2347 ac_clean_files=$ac_clean_files_save
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2349 $as_echo_n "checking for suffix of object files... " >&6; }
2350 if ${ac_cv_objext+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355
2356 int
2357 main ()
2358 {
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.o conftest.obj
2365 if { { ac_try="$ac_compile"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_compile") 2>&5
2373 ac_status=$?
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; }; then :
2376 for ac_file in conftest.o conftest.obj conftest.*; do
2377 test -f "$ac_file" || continue;
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2381 break;;
2382 esac
2383 done
2384 else
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 as_fn_error $? "cannot compute suffix of object files: cannot compile
2391 See \`config.log' for more details" "$LINENO" 5; }
2392 fi
2393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394 fi
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2396 $as_echo "$ac_cv_objext" >&6; }
2397 OBJEXT=$ac_cv_objext
2398 ac_objext=$OBJEXT
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2401 if ${ac_cv_c_compiler_gnu+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406
2407 int
2408 main ()
2409 {
2410 #ifndef __GNUC__
2411 choke me
2412 #endif
2413
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 ac_compiler_gnu=yes
2420 else
2421 ac_compiler_gnu=no
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2429 if test $ac_compiler_gnu = yes; then
2430 GCC=yes
2431 else
2432 GCC=
2433 fi
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2438 if ${ac_cv_prog_cc_g+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 ac_save_c_werror_flag=$ac_c_werror_flag
2442 ac_c_werror_flag=yes
2443 ac_cv_prog_cc_g=no
2444 CFLAGS="-g"
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2447
2448 int
2449 main ()
2450 {
2451
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_cv_prog_cc_g=yes
2458 else
2459 CFLAGS=""
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462
2463 int
2464 main ()
2465 {
2466
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_c_try_compile "$LINENO"; then :
2472
2473 else
2474 ac_c_werror_flag=$ac_save_c_werror_flag
2475 CFLAGS="-g"
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478
2479 int
2480 main ()
2481 {
2482
2483 ;
2484 return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_cv_prog_cc_g=yes
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_c_werror_flag=$ac_save_c_werror_flag
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2498 $as_echo "$ac_cv_prog_cc_g" >&6; }
2499 if test "$ac_test_CFLAGS" = set; then
2500 CFLAGS=$ac_save_CFLAGS
2501 elif test $ac_cv_prog_cc_g = yes; then
2502 if test "$GCC" = yes; then
2503 CFLAGS="-g -O2"
2504 else
2505 CFLAGS="-g"
2506 fi
2507 else
2508 if test "$GCC" = yes; then
2509 CFLAGS="-O2"
2510 else
2511 CFLAGS=
2512 fi
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2516 if ${ac_cv_prog_cc_c89+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 ac_cv_prog_cc_c89=no
2520 ac_save_CC=$CC
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 #include <stdarg.h>
2524 #include <stdio.h>
2525 struct stat;
2526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2527 struct buf { int x; };
2528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2529 static char *e (p, i)
2530 char **p;
2531 int i;
2532 {
2533 return p[i];
2534 }
2535 static char *f (char * (*g) (char **, int), char **p, ...)
2536 {
2537 char *s;
2538 va_list v;
2539 va_start (v,p);
2540 s = g (p, va_arg (v,int));
2541 va_end (v);
2542 return s;
2543 }
2544
2545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2546 function prototypes and stuff, but not '\xHH' hex character constants.
2547 These don't provoke an error unfortunately, instead are silently treated
2548 as 'x'. The following induces an error, until -std is added to get
2549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2550 array size at least. It's necessary to write '\x00'==0 to get something
2551 that's true only with -std. */
2552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2553
2554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2555 inside strings and character constants. */
2556 #define FOO(x) 'x'
2557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2558
2559 int test (int i, double x);
2560 struct s1 {int (*f) (int a);};
2561 struct s2 {int (*f) (double a);};
2562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2563 int argc;
2564 char **argv;
2565 int
2566 main ()
2567 {
2568 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2575 do
2576 CC="$ac_save_CC $ac_arg"
2577 if ac_fn_c_try_compile "$LINENO"; then :
2578 ac_cv_prog_cc_c89=$ac_arg
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext
2581 test "x$ac_cv_prog_cc_c89" != "xno" && break
2582 done
2583 rm -f conftest.$ac_ext
2584 CC=$ac_save_CC
2585
2586 fi
2587 # AC_CACHE_VAL
2588 case "x$ac_cv_prog_cc_c89" in
2589 x)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2591 $as_echo "none needed" >&6; } ;;
2592 xno)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2594 $as_echo "unsupported" >&6; } ;;
2595 *)
2596 CC="$CC $ac_cv_prog_cc_c89"
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2599 esac
2600 if test "x$ac_cv_prog_cc_c89" != xno; then :
2601
2602 fi
2603
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610 ac_aux_dir=
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 if test -f "$ac_dir/install-sh"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/install-sh -c"
2615 break
2616 elif test -f "$ac_dir/install.sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2619 break
2620 elif test -f "$ac_dir/shtool"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2623 break
2624 fi
2625 done
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2628 fi
2629
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2637
2638
2639 # Find a good install program. We prefer a C program (faster),
2640 # so one script is as good as another. But avoid the broken or
2641 # incompatible versions:
2642 # SysV /etc/install, /usr/sbin/install
2643 # SunOS /usr/etc/install
2644 # IRIX /sbin/install
2645 # AIX /bin/install
2646 # AmigaOS /C/install, which installs bootblocks on floppy discs
2647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2650 # OS/2's system install, which has a completely different semantic
2651 # ./install, which can be erroneously created by make from ./install.sh.
2652 # Reject install programs that cannot install multiple files.
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2655 if test -z "$INSTALL"; then
2656 if ${ac_cv_path_install+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 # Account for people who put trailing slashes in PATH elements.
2665 case $as_dir/ in #((
2666 ./ | .// | /[cC]/* | \
2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2669 /usr/ucb/* ) ;;
2670 *)
2671 # OSF1 and SCO ODT 3.0 have their own names for install.
2672 # Don't use installbsd from OSF since it installs stuff as root
2673 # by default.
2674 for ac_prog in ginstall scoinst install; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2677 if test $ac_prog = install &&
2678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2679 # AIX install. It has an incompatible calling convention.
2680 :
2681 elif test $ac_prog = install &&
2682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # program-specific install script used by HP pwplus--don't use.
2684 :
2685 else
2686 rm -rf conftest.one conftest.two conftest.dir
2687 echo one > conftest.one
2688 echo two > conftest.two
2689 mkdir conftest.dir
2690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2691 test -s conftest.one && test -s conftest.two &&
2692 test -s conftest.dir/conftest.one &&
2693 test -s conftest.dir/conftest.two
2694 then
2695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2696 break 3
2697 fi
2698 fi
2699 fi
2700 done
2701 done
2702 ;;
2703 esac
2704
2705 done
2706 IFS=$as_save_IFS
2707
2708 rm -rf conftest.one conftest.two conftest.dir
2709
2710 fi
2711 if test "${ac_cv_path_install+set}" = set; then
2712 INSTALL=$ac_cv_path_install
2713 else
2714 # As a last resort, use the slow shell script. Don't cache a
2715 # value for INSTALL within a source directory, because that will
2716 # break other packages using the cache if that directory is
2717 # removed, or if the value is a relative name.
2718 INSTALL=$ac_install_sh
2719 fi
2720 fi
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2722 $as_echo "$INSTALL" >&6; }
2723
2724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2725 # It thinks the first close brace ends the variable substitution.
2726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2727
2728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2729
2730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2739 # On Suns, sometimes $CPP names a directory.
2740 if test -n "$CPP" && test -d "$CPP"; then
2741 CPP=
2742 fi
2743 if test -z "$CPP"; then
2744 if ${ac_cv_prog_CPP+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 # Double quotes because CPP needs to be expanded
2748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2749 do
2750 ac_preproc_ok=false
2751 for ac_c_preproc_warn_flag in '' yes
2752 do
2753 # Use a header file that comes with gcc, so configuring glibc
2754 # with a fresh cross-compiler works.
2755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2756 # <limits.h> exists even on freestanding compilers.
2757 # On the NeXT, cc -E runs the code through the compiler's parser,
2758 # not just through cpp. "Syntax error" is here to catch this case.
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #ifdef __STDC__
2762 # include <limits.h>
2763 #else
2764 # include <assert.h>
2765 #endif
2766 Syntax error
2767 _ACEOF
2768 if ac_fn_c_try_cpp "$LINENO"; then :
2769
2770 else
2771 # Broken: fails on valid input.
2772 continue
2773 fi
2774 rm -f conftest.err conftest.i conftest.$ac_ext
2775
2776 # OK, works on sane cases. Now check whether nonexistent headers
2777 # can be detected and how.
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 #include <ac_nonexistent.h>
2781 _ACEOF
2782 if ac_fn_c_try_cpp "$LINENO"; then :
2783 # Broken: success on invalid input.
2784 continue
2785 else
2786 # Passes both tests.
2787 ac_preproc_ok=:
2788 break
2789 fi
2790 rm -f conftest.err conftest.i conftest.$ac_ext
2791
2792 done
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.i conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then :
2796 break
2797 fi
2798
2799 done
2800 ac_cv_prog_CPP=$CPP
2801
2802 fi
2803 CPP=$ac_cv_prog_CPP
2804 else
2805 ac_cv_prog_CPP=$CPP
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2808 $as_echo "$CPP" >&6; }
2809 ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2820 #ifdef __STDC__
2821 # include <limits.h>
2822 #else
2823 # include <assert.h>
2824 #endif
2825 Syntax error
2826 _ACEOF
2827 if ac_fn_c_try_cpp "$LINENO"; then :
2828
2829 else
2830 # Broken: fails on valid input.
2831 continue
2832 fi
2833 rm -f conftest.err conftest.i conftest.$ac_ext
2834
2835 # OK, works on sane cases. Now check whether nonexistent headers
2836 # can be detected and how.
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839 #include <ac_nonexistent.h>
2840 _ACEOF
2841 if ac_fn_c_try_cpp "$LINENO"; then :
2842 # Broken: success on invalid input.
2843 continue
2844 else
2845 # Passes both tests.
2846 ac_preproc_ok=:
2847 break
2848 fi
2849 rm -f conftest.err conftest.i conftest.$ac_ext
2850
2851 done
2852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2853 rm -f conftest.i conftest.err conftest.$ac_ext
2854 if $ac_preproc_ok; then :
2855
2856 else
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2860 See \`config.log' for more details" "$LINENO" 5; }
2861 fi
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
2871 $as_echo_n "checking for function prototypes... " >&6; }
2872 if test "$ac_cv_prog_cc_c89" != no; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875
2876 $as_echo "#define PROTOTYPES 1" >>confdefs.h
2877
2878
2879 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
2880
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
2887
2888 if test "x$CC" != xcc; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
2890 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
2893 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
2894 fi
2895 set dummy $CC; ac_cc=`$as_echo "$2" |
2896 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2897 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 # Make sure it works both with $CC and with simple cc.
2912 # We do the test twice because some compilers refuse to overwrite an
2913 # existing .o file with -o, though they will create one.
2914 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2915 rm -f conftest2.*
2916 if { { case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; } &&
2926 test -f conftest2.$ac_objext && { { case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_try") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; };
2936 then
2937 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2938 if test "x$CC" != xcc; then
2939 # Test first that cc exists at all.
2940 if { ac_try='cc -c conftest.$ac_ext >&5'
2941 { { case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }; }; then
2951 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2952 rm -f conftest2.*
2953 if { { case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_try") 2>&5
2960 ac_status=$?
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; } &&
2963 test -f conftest2.$ac_objext && { { case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; };
2973 then
2974 # cc works too.
2975 :
2976 else
2977 # cc exists but doesn't like -o.
2978 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2979 fi
2980 fi
2981 fi
2982 else
2983 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2984 fi
2985 rm -f core conftest*
2986
2987 fi
2988 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994
2995 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
2996
2997 fi
2998
2999
3000 # Make sure we can run config.sub.
3001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005 $as_echo_n "checking build system type... " >&6; }
3006 if ${ac_cv_build+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 ac_build_alias=$build_alias
3010 test "x$ac_build_alias" = x &&
3011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012 test "x$ac_build_alias" = x &&
3013 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3016
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019 $as_echo "$ac_cv_build" >&6; }
3020 case $ac_cv_build in
3021 *-*-*) ;;
3022 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3023 esac
3024 build=$ac_cv_build
3025 ac_save_IFS=$IFS; IFS='-'
3026 set x $ac_cv_build
3027 shift
3028 build_cpu=$1
3029 build_vendor=$2
3030 shift; shift
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3033 build_os=$*
3034 IFS=$ac_save_IFS
3035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3036
3037
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039 $as_echo_n "checking host system type... " >&6; }
3040 if ${ac_cv_host+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test "x$host_alias" = x; then
3044 ac_cv_host=$ac_cv_build
3045 else
3046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3048 fi
3049
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052 $as_echo "$ac_cv_host" >&6; }
3053 case $ac_cv_host in
3054 *-*-*) ;;
3055 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3056 esac
3057 host=$ac_cv_host
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_host
3060 shift
3061 host_cpu=$1
3062 host_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 host_os=$*
3067 IFS=$ac_save_IFS
3068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3069
3070
3071
3072 DEBUG="-g"
3073 WARNINGS="-Wall -Werror"
3074 CFLAGS_FPIC="-fPIC"
3075 WIN32=no
3076 case "$host" in
3077 *-*-mingw*)
3078 WARNINGS="$WARNINGS -Wno-unused"
3079 CFLAGS_FPIC=""
3080 WIN32=yes
3081 esac
3082
3083
3084
3085
3086
3087 # Extract the first word of "perl", so it can be a program name with args.
3088 set dummy perl; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_PERL+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$PERL"; then
3095 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_PERL="perl"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"
3113 fi
3114 fi
3115 PERL=$ac_cv_prog_PERL
3116 if test -n "$PERL"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3118 $as_echo "$PERL" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 if test "x$PERL" = "xno"; then
3126 as_fn_error $? "Perl must be installed to build" "$LINENO" 5
3127 fi
3128
3129
3130
3131
3132
3133
3134
3135
3136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 case $PKG_CONFIG in
3146 [\\/]* | ?:[\\/]*)
3147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3148 ;;
3149 *)
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 ;;
3166 esac
3167 fi
3168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3169 if test -n "$PKG_CONFIG"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3171 $as_echo "$PKG_CONFIG" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 if test -z "$ac_cv_path_PKG_CONFIG"; then
3180 ac_pt_PKG_CONFIG=$PKG_CONFIG
3181 # Extract the first word of "pkg-config", so it can be a program name with args.
3182 set dummy pkg-config; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 case $ac_pt_PKG_CONFIG in
3189 [\\/]* | ?:[\\/]*)
3190 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3191 ;;
3192 *)
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 ;;
3209 esac
3210 fi
3211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3212 if test -n "$ac_pt_PKG_CONFIG"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220 if test "x$ac_pt_PKG_CONFIG" = x; then
3221 PKG_CONFIG=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229 PKG_CONFIG=$ac_pt_PKG_CONFIG
3230 fi
3231 else
3232 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3233 fi
3234
3235 fi
3236 if test -n "$PKG_CONFIG"; then
3237 _pkg_min_version=0.9.0
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3240 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 PKG_CONFIG=""
3247 fi
3248 fi
3249
3250 pkg_failed=no
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVIRT" >&5
3252 $as_echo_n "checking for LIBVIRT... " >&6; }
3253
3254 if test -n "$LIBVIRT_CFLAGS"; then
3255 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
3256 elif test -n "$PKG_CONFIG"; then
3257 if test -n "$PKG_CONFIG" && \
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.2.8\""; } >&5
3259 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.2.8") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then
3263 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.2.8" 2>/dev/null`
3264 test "x$?" != "x0" && pkg_failed=yes
3265 else
3266 pkg_failed=yes
3267 fi
3268 else
3269 pkg_failed=untried
3270 fi
3271 if test -n "$LIBVIRT_LIBS"; then
3272 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
3273 elif test -n "$PKG_CONFIG"; then
3274 if test -n "$PKG_CONFIG" && \
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.2.8\""; } >&5
3276 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.2.8") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then
3280 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.2.8" 2>/dev/null`
3281 test "x$?" != "x0" && pkg_failed=yes
3282 else
3283 pkg_failed=yes
3284 fi
3285 else
3286 pkg_failed=untried
3287 fi
3288
3289
3290
3291 if test $pkg_failed = yes; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294
3295 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3296 _pkg_short_errors_supported=yes
3297 else
3298 _pkg_short_errors_supported=no
3299 fi
3300 if test $_pkg_short_errors_supported = yes; then
3301 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.2.8" 2>&1`
3302 else
3303 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.2.8" 2>&1`
3304 fi
3305 # Put the nasty error message in config.log where it belongs
3306 echo "$LIBVIRT_PKG_ERRORS" >&5
3307
3308 as_fn_error $? "Package requirements (libvirt >= 1.2.8) were not met:
3309
3310 $LIBVIRT_PKG_ERRORS
3311
3312 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3313 installed software in a non-standard prefix.
3314
3315 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3316 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3317 See the pkg-config man page for more details." "$LINENO" 5
3318 elif test $pkg_failed = untried; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
3324 is in your PATH or set the PKG_CONFIG environment variable to the full
3325 path to pkg-config.
3326
3327 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3328 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3329 See the pkg-config man page for more details.
3330
3331 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3332 See \`config.log' for more details" "$LINENO" 5; }
3333 else
3334 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
3335 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338
3339 fi
3340
3341 # checking for ocamlc
3342 if test -n "$ac_tool_prefix"; then
3343 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
3344 set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_OCAMLC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if test -n "$OCAMLC"; then
3351 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_OCAMLC="${ac_tool_prefix}ocamlc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 OCAMLC=$ac_cv_prog_OCAMLC
3371 if test -n "$OCAMLC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
3373 $as_echo "$OCAMLC" >&6; }
3374 else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$ac_cv_prog_OCAMLC"; then
3382 ac_ct_OCAMLC=$OCAMLC
3383 # Extract the first word of "ocamlc", so it can be a program name with args.
3384 set dummy ocamlc; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if ${ac_cv_prog_ac_ct_OCAMLC+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$ac_ct_OCAMLC"; then
3391 ac_cv_prog_ac_ct_OCAMLC="$ac_ct_OCAMLC" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_ac_ct_OCAMLC="ocamlc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404 done
3405 done
3406 IFS=$as_save_IFS
3407
3408 fi
3409 fi
3410 ac_ct_OCAMLC=$ac_cv_prog_ac_ct_OCAMLC
3411 if test -n "$ac_ct_OCAMLC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5
3413 $as_echo "$ac_ct_OCAMLC" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3417 fi
3418
3419 if test "x$ac_ct_OCAMLC" = x; then
3420 OCAMLC="no"
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428 OCAMLC=$ac_ct_OCAMLC
3429 fi
3430 else
3431 OCAMLC="$ac_cv_prog_OCAMLC"
3432 fi
3433
3434
3435 if test "$OCAMLC" != "no"; then
3436 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
3438 $as_echo "OCaml version is $OCAMLVERSION" >&6; }
3439 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
3441 $as_echo "OCaml library path is $OCAMLLIB" >&6; }
3442
3443
3444
3445
3446 # checking for ocamlopt
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}ocamlopt; 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_prog_OCAMLOPT+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$OCAMLOPT"; then
3456 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_OCAMLOPT="${ac_tool_prefix}ocamlopt"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 OCAMLOPT=$ac_cv_prog_OCAMLOPT
3476 if test -n "$OCAMLOPT"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
3478 $as_echo "$OCAMLOPT" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$ac_cv_prog_OCAMLOPT"; then
3487 ac_ct_OCAMLOPT=$OCAMLOPT
3488 # Extract the first word of "ocamlopt", so it can be a program name with args.
3489 set dummy ocamlopt; 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_prog_ac_ct_OCAMLOPT+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494 else
3495 if test -n "$ac_ct_OCAMLOPT"; then
3496 ac_cv_prog_ac_ct_OCAMLOPT="$ac_ct_OCAMLOPT" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_ac_ct_OCAMLOPT="ocamlopt"
3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 ac_ct_OCAMLOPT=$ac_cv_prog_ac_ct_OCAMLOPT
3516 if test -n "$ac_ct_OCAMLOPT"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5
3518 $as_echo "$ac_ct_OCAMLOPT" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524 if test "x$ac_ct_OCAMLOPT" = x; then
3525 OCAMLOPT="no"
3526 else
3527 case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3532 esac
3533 OCAMLOPT=$ac_ct_OCAMLOPT
3534 fi
3535 else
3536 OCAMLOPT="$ac_cv_prog_OCAMLOPT"
3537 fi
3538
3539 OCAMLBEST=byte
3540 if test "$OCAMLOPT" = "no"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
3542 $as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
3543 else
3544 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
3545 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
3547 $as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
3548 OCAMLOPT=no
3549 else
3550 OCAMLBEST=opt
3551 fi
3552 fi
3553
3554
3555
3556 # checking for ocamlc.opt
3557 if test -n "$ac_tool_prefix"; then
3558 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
3559 set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_OCAMLCDOTOPT+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$OCAMLCDOTOPT"; then
3566 ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_OCAMLCDOTOPT="${ac_tool_prefix}ocamlc.opt"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT
3586 if test -n "$OCAMLCDOTOPT"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
3588 $as_echo "$OCAMLCDOTOPT" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594
3595 fi
3596 if test -z "$ac_cv_prog_OCAMLCDOTOPT"; then
3597 ac_ct_OCAMLCDOTOPT=$OCAMLCDOTOPT
3598 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
3599 set dummy ocamlc.opt; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_OCAMLCDOTOPT"; then
3606 ac_cv_prog_ac_ct_OCAMLCDOTOPT="$ac_ct_OCAMLCDOTOPT" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_OCAMLCDOTOPT="ocamlc.opt"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 ac_ct_OCAMLCDOTOPT=$ac_cv_prog_ac_ct_OCAMLCDOTOPT
3626 if test -n "$ac_ct_OCAMLCDOTOPT"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5
3628 $as_echo "$ac_ct_OCAMLCDOTOPT" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634 if test "x$ac_ct_OCAMLCDOTOPT" = x; then
3635 OCAMLCDOTOPT="no"
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 OCAMLCDOTOPT=$ac_ct_OCAMLCDOTOPT
3644 fi
3645 else
3646 OCAMLCDOTOPT="$ac_cv_prog_OCAMLCDOTOPT"
3647 fi
3648
3649 if test "$OCAMLCDOTOPT" != "no"; then
3650 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
3651 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
3653 $as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
3654 else
3655 OCAMLC=$OCAMLCDOTOPT
3656 fi
3657 fi
3658
3659 # checking for ocamlopt.opt
3660 if test "$OCAMLOPT" != "no" ; then
3661 if test -n "$ac_tool_prefix"; then
3662 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
3663 set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if ${ac_cv_prog_OCAMLOPTDOTOPT+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$OCAMLOPTDOTOPT"; then
3670 ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_OCAMLOPTDOTOPT="${ac_tool_prefix}ocamlopt.opt"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT
3690 if test -n "$OCAMLOPTDOTOPT"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
3692 $as_echo "$OCAMLOPTDOTOPT" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 fi
3697
3698
3699 fi
3700 if test -z "$ac_cv_prog_OCAMLOPTDOTOPT"; then
3701 ac_ct_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
3702 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
3703 set dummy ocamlopt.opt; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
3710 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="$ac_ct_OCAMLOPTDOTOPT" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="ocamlopt.opt"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3722 fi
3723 done
3724 done
3725 IFS=$as_save_IFS
3726
3727 fi
3728 fi
3729 ac_ct_OCAMLOPTDOTOPT=$ac_cv_prog_ac_ct_OCAMLOPTDOTOPT
3730 if test -n "$ac_ct_OCAMLOPTDOTOPT"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5
3732 $as_echo "$ac_ct_OCAMLOPTDOTOPT" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3736 fi
3737
3738 if test "x$ac_ct_OCAMLOPTDOTOPT" = x; then
3739 OCAMLOPTDOTOPT="no"
3740 else
3741 case $cross_compiling:$ac_tool_warned in
3742 yes:)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3746 esac
3747 OCAMLOPTDOTOPT=$ac_ct_OCAMLOPTDOTOPT
3748 fi
3749 else
3750 OCAMLOPTDOTOPT="$ac_cv_prog_OCAMLOPTDOTOPT"
3751 fi
3752
3753 if test "$OCAMLOPTDOTOPT" != "no"; then
3754 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
3755 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
3757 $as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
3758 else
3759 OCAMLOPT=$OCAMLOPTDOTOPT
3760 fi
3761 fi
3762 fi
3763
3764
3765 fi
3766
3767
3768
3769 # checking for ocamldep
3770 if test -n "$ac_tool_prefix"; then
3771 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
3772 set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if ${ac_cv_prog_OCAMLDEP+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$OCAMLDEP"; then
3779 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_OCAMLDEP="${ac_tool_prefix}ocamldep"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 OCAMLDEP=$ac_cv_prog_OCAMLDEP
3799 if test -n "$OCAMLDEP"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
3801 $as_echo "$OCAMLDEP" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807
3808 fi
3809 if test -z "$ac_cv_prog_OCAMLDEP"; then
3810 ac_ct_OCAMLDEP=$OCAMLDEP
3811 # Extract the first word of "ocamldep", so it can be a program name with args.
3812 set dummy ocamldep; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_OCAMLDEP+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$ac_ct_OCAMLDEP"; then
3819 ac_cv_prog_ac_ct_OCAMLDEP="$ac_ct_OCAMLDEP" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_OCAMLDEP="ocamldep"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_OCAMLDEP=$ac_cv_prog_ac_ct_OCAMLDEP
3839 if test -n "$ac_ct_OCAMLDEP"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5
3841 $as_echo "$ac_ct_OCAMLDEP" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847 if test "x$ac_ct_OCAMLDEP" = x; then
3848 OCAMLDEP="no"
3849 else
3850 case $cross_compiling:$ac_tool_warned in
3851 yes:)
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3854 ac_tool_warned=yes ;;
3855 esac
3856 OCAMLDEP=$ac_ct_OCAMLDEP
3857 fi
3858 else
3859 OCAMLDEP="$ac_cv_prog_OCAMLDEP"
3860 fi
3861
3862
3863 # checking for ocamlmktop
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_OCAMLMKTOP+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$OCAMLMKTOP"; then
3873 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_OCAMLMKTOP="${ac_tool_prefix}ocamlmktop"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
3893 if test -n "$OCAMLMKTOP"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
3895 $as_echo "$OCAMLMKTOP" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902 fi
3903 if test -z "$ac_cv_prog_OCAMLMKTOP"; then
3904 ac_ct_OCAMLMKTOP=$OCAMLMKTOP
3905 # Extract the first word of "ocamlmktop", so it can be a program name with args.
3906 set dummy ocamlmktop; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_ac_ct_OCAMLMKTOP+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -n "$ac_ct_OCAMLMKTOP"; then
3913 ac_cv_prog_ac_ct_OCAMLMKTOP="$ac_ct_OCAMLMKTOP" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_ac_ct_OCAMLMKTOP="ocamlmktop"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 ac_ct_OCAMLMKTOP=$ac_cv_prog_ac_ct_OCAMLMKTOP
3933 if test -n "$ac_ct_OCAMLMKTOP"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5
3935 $as_echo "$ac_ct_OCAMLMKTOP" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941 if test "x$ac_ct_OCAMLMKTOP" = x; then
3942 OCAMLMKTOP="no"
3943 else
3944 case $cross_compiling:$ac_tool_warned in
3945 yes:)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948 ac_tool_warned=yes ;;
3949 esac
3950 OCAMLMKTOP=$ac_ct_OCAMLMKTOP
3951 fi
3952 else
3953 OCAMLMKTOP="$ac_cv_prog_OCAMLMKTOP"
3954 fi
3955
3956
3957 # checking for ocamlmklib
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if ${ac_cv_prog_OCAMLMKLIB+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test -n "$OCAMLMKLIB"; then
3967 ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_OCAMLMKLIB="${ac_tool_prefix}ocamlmklib"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB
3987 if test -n "$OCAMLMKLIB"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
3989 $as_echo "$OCAMLMKLIB" >&6; }
3990 else
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995
3996 fi
3997 if test -z "$ac_cv_prog_OCAMLMKLIB"; then
3998 ac_ct_OCAMLMKLIB=$OCAMLMKLIB
3999 # Extract the first word of "ocamlmklib", so it can be a program name with args.
4000 set dummy ocamlmklib; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_prog_ac_ct_OCAMLMKLIB+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$ac_ct_OCAMLMKLIB"; then
4007 ac_cv_prog_ac_ct_OCAMLMKLIB="$ac_ct_OCAMLMKLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_OCAMLMKLIB="ocamlmklib"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4022 IFS=$as_save_IFS
4023
4024 fi
4025 fi
4026 ac_ct_OCAMLMKLIB=$ac_cv_prog_ac_ct_OCAMLMKLIB
4027 if test -n "$ac_ct_OCAMLMKLIB"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5
4029 $as_echo "$ac_ct_OCAMLMKLIB" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4033 fi
4034
4035 if test "x$ac_ct_OCAMLMKLIB" = x; then
4036 OCAMLMKLIB="no"
4037 else
4038 case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4043 esac
4044 OCAMLMKLIB=$ac_ct_OCAMLMKLIB
4045 fi
4046 else
4047 OCAMLMKLIB="$ac_cv_prog_OCAMLMKLIB"
4048 fi
4049
4050
4051 # checking for ocamldoc
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_OCAMLDOC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$OCAMLDOC"; then
4061 ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_OCAMLDOC="${ac_tool_prefix}ocamldoc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 OCAMLDOC=$ac_cv_prog_OCAMLDOC
4081 if test -n "$OCAMLDOC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
4083 $as_echo "$OCAMLDOC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 fi
4091 if test -z "$ac_cv_prog_OCAMLDOC"; then
4092 ac_ct_OCAMLDOC=$OCAMLDOC
4093 # Extract the first word of "ocamldoc", so it can be a program name with args.
4094 set dummy ocamldoc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_ac_ct_OCAMLDOC+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$ac_ct_OCAMLDOC"; then
4101 ac_cv_prog_ac_ct_OCAMLDOC="$ac_ct_OCAMLDOC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_ac_ct_OCAMLDOC="ocamldoc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4113 fi
4114 done
4115 done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 ac_ct_OCAMLDOC=$ac_cv_prog_ac_ct_OCAMLDOC
4121 if test -n "$ac_ct_OCAMLDOC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5
4123 $as_echo "$ac_ct_OCAMLDOC" >&6; }
4124 else
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129 if test "x$ac_ct_OCAMLDOC" = x; then
4130 OCAMLDOC="no"
4131 else
4132 case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138 OCAMLDOC=$ac_ct_OCAMLDOC
4139 fi
4140 else
4141 OCAMLDOC="$ac_cv_prog_OCAMLDOC"
4142 fi
4143
4144
4145 # checking for ocamlbuild
4146 if test -n "$ac_tool_prefix"; then
4147 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
4148 set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_OCAMLBUILD+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -n "$OCAMLBUILD"; then
4155 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_OCAMLBUILD="${ac_tool_prefix}ocamlbuild"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
4175 if test -n "$OCAMLBUILD"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
4177 $as_echo "$OCAMLBUILD" >&6; }
4178 else
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184 fi
4185 if test -z "$ac_cv_prog_OCAMLBUILD"; then
4186 ac_ct_OCAMLBUILD=$OCAMLBUILD
4187 # Extract the first word of "ocamlbuild", so it can be a program name with args.
4188 set dummy ocamlbuild; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_ac_ct_OCAMLBUILD+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$ac_ct_OCAMLBUILD"; then
4195 ac_cv_prog_ac_ct_OCAMLBUILD="$ac_ct_OCAMLBUILD" # Let the user override the test.
4196 else
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_prog_ac_ct_OCAMLBUILD="ocamlbuild"
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 fi
4213 fi
4214 ac_ct_OCAMLBUILD=$ac_cv_prog_ac_ct_OCAMLBUILD
4215 if test -n "$ac_ct_OCAMLBUILD"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5
4217 $as_echo "$ac_ct_OCAMLBUILD" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223 if test "x$ac_ct_OCAMLBUILD" = x; then
4224 OCAMLBUILD="no"
4225 else
4226 case $cross_compiling:$ac_tool_warned in
4227 yes:)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230 ac_tool_warned=yes ;;
4231 esac
4232 OCAMLBUILD=$ac_ct_OCAMLBUILD
4233 fi
4234 else
4235 OCAMLBUILD="$ac_cv_prog_OCAMLBUILD"
4236 fi
4237
4238
4239
4240 # checking for ocamlfind
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_OCAMLFIND+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$OCAMLFIND"; then
4250 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_OCAMLFIND="${ac_tool_prefix}ocamlfind"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 OCAMLFIND=$ac_cv_prog_OCAMLFIND
4270 if test -n "$OCAMLFIND"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
4272 $as_echo "$OCAMLFIND" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 if test -z "$ac_cv_prog_OCAMLFIND"; then
4281 ac_ct_OCAMLFIND=$OCAMLFIND
4282 # Extract the first word of "ocamlfind", so it can be a program name with args.
4283 set dummy ocamlfind; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_OCAMLFIND+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$ac_ct_OCAMLFIND"; then
4290 ac_cv_prog_ac_ct_OCAMLFIND="$ac_ct_OCAMLFIND" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_OCAMLFIND="ocamlfind"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_OCAMLFIND=$ac_cv_prog_ac_ct_OCAMLFIND
4310 if test -n "$ac_ct_OCAMLFIND"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLFIND" >&5
4312 $as_echo "$ac_ct_OCAMLFIND" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318 if test "x$ac_ct_OCAMLFIND" = x; then
4319 OCAMLFIND="no"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 OCAMLFIND=$ac_ct_OCAMLFIND
4328 fi
4329 else
4330 OCAMLFIND="$ac_cv_prog_OCAMLFIND"
4331 fi
4332
4333
4334
4335
4336 if test "x$OCAMLFIND" = "x"; then
4337 as_fn_error $? "OCaml findlib is required" "$LINENO" 5
4338 fi
4339
4340 OCAML_PKG_unix=no
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5
4343 $as_echo_n "checking for OCaml findlib package unix... " >&6; }
4344
4345 unset found
4346 unset pkg
4347 found=no
4348 for pkg in unix ; do
4349 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4351 $as_echo "found" >&6; }
4352 OCAML_PKG_unix=$pkg
4353 found=yes
4354 break
4355 fi
4356 done
4357 if test "$found" = "no" ; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4359 $as_echo "not found" >&6; }
4360 OCAML_PKG_unix=no
4361 fi
4362
4363
4364
4365 if test "x$OCAML_PKG_unix" = "xno"; then
4366 as_fn_error $? "Cannot find required OCaml package 'unix'" "$LINENO" 5
4367 fi
4368
4369 echo "------------------------------------------------------------"
4370 echo "Thanks for downloading" $PACKAGE_STRING
4371 echo "------------------------------------------------------------"
4372
4373 ac_config_headers="$ac_config_headers config.h"
4374
4375 ac_config_files="$ac_config_files META libvirt/libvirt_version.ml Makefile Make.rules libvirt/Makefile examples/Makefile"
4376
4377 cat >confcache <<\_ACEOF
4378 # This file is a shell script that caches the results of configure
4379 # tests run on this system so they can be shared between configure
4380 # scripts and configure runs, see configure's option --config-cache.
4381 # It is not useful on other systems. If it contains results you don't
4382 # want to keep, you may remove or edit it.
4383 #
4384 # config.status only pays attention to the cache file if you give it
4385 # the --recheck option to rerun configure.
4386 #
4387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4389 # following values.
4390
4391 _ACEOF
4392
4393 # The following way of writing the cache mishandles newlines in values,
4394 # but we know of no workaround that is simple, portable, and efficient.
4395 # So, we kill variables containing newlines.
4396 # Ultrix sh set writes to stderr and can't be redirected directly,
4397 # and sets the high bit in the cache file unless we assign to the vars.
4398 (
4399 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4400 eval ac_val=\$$ac_var
4401 case $ac_val in #(
4402 *${as_nl}*)
4403 case $ac_var in #(
4404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4406 esac
4407 case $ac_var in #(
4408 _ | IFS | as_nl) ;; #(
4409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4410 *) { eval $ac_var=; unset $ac_var;} ;;
4411 esac ;;
4412 esac
4413 done
4414
4415 (set) 2>&1 |
4416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4417 *${as_nl}ac_space=\ *)
4418 # `set' does not quote correctly, so add quotes: double-quote
4419 # substitution turns \\\\ into \\, and sed turns \\ into \.
4420 sed -n \
4421 "s/'/'\\\\''/g;
4422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4423 ;; #(
4424 *)
4425 # `set' quotes correctly as required by POSIX, so do not add quotes.
4426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4427 ;;
4428 esac |
4429 sort
4430 ) |
4431 sed '
4432 /^ac_cv_env_/b end
4433 t clear
4434 :clear
4435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4436 t end
4437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4438 :end' >>confcache
4439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4440 if test -w "$cache_file"; then
4441 if test "x$cache_file" != "x/dev/null"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4443 $as_echo "$as_me: updating cache $cache_file" >&6;}
4444 if test ! -f "$cache_file" || test -h "$cache_file"; then
4445 cat confcache >"$cache_file"
4446 else
4447 case $cache_file in #(
4448 */* | ?:*)
4449 mv -f confcache "$cache_file"$$ &&
4450 mv -f "$cache_file"$$ "$cache_file" ;; #(
4451 *)
4452 mv -f confcache "$cache_file" ;;
4453 esac
4454 fi
4455 fi
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4458 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4459 fi
4460 fi
4461 rm -f confcache
4462
4463 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4464 # Let make expand exec_prefix.
4465 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4466
4467 DEFS=-DHAVE_CONFIG_H
4468
4469 ac_libobjs=
4470 ac_ltlibobjs=
4471 U=
4472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4473 # 1. Remove the extension, and $U if already installed.
4474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4477 # will be set to the directory where LIBOBJS objects are built.
4478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4480 done
4481 LIBOBJS=$ac_libobjs
4482
4483 LTLIBOBJS=$ac_ltlibobjs
4484
4485
4486
4487 : "${CONFIG_STATUS=./config.status}"
4488 ac_write_fail=0
4489 ac_clean_files_save=$ac_clean_files
4490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4493 as_write_fail=0
4494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4495 #! $SHELL
4496 # Generated by $as_me.
4497 # Run this file to recreate the current configuration.
4498 # Compiler output produced by configure, useful for debugging
4499 # configure, is in config.log if it exists.
4500
4501 debug=false
4502 ac_cs_recheck=false
4503 ac_cs_silent=false
4504
4505 SHELL=\${CONFIG_SHELL-$SHELL}
4506 export SHELL
4507 _ASEOF
4508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4509 ## -------------------- ##
4510 ## M4sh Initialization. ##
4511 ## -------------------- ##
4512
4513 # Be more Bourne compatible
4514 DUALCASE=1; export DUALCASE # for MKS sh
4515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4516 emulate sh
4517 NULLCMD=:
4518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4519 # is contrary to our usage. Disable this feature.
4520 alias -g '${1+"$@"}'='"$@"'
4521 setopt NO_GLOB_SUBST
4522 else
4523 case `(set -o) 2>/dev/null` in #(
4524 *posix*) :
4525 set -o posix ;; #(
4526 *) :
4527 ;;
4528 esac
4529 fi
4530
4531
4532 as_nl='
4533 '
4534 export as_nl
4535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4536 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4539 # Prefer a ksh shell builtin over an external printf program on Solaris,
4540 # but without wasting forks for bash or zsh.
4541 if test -z "$BASH_VERSION$ZSH_VERSION" \
4542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4543 as_echo='print -r --'
4544 as_echo_n='print -rn --'
4545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4546 as_echo='printf %s\n'
4547 as_echo_n='printf %s'
4548 else
4549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4551 as_echo_n='/usr/ucb/echo -n'
4552 else
4553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4554 as_echo_n_body='eval
4555 arg=$1;
4556 case $arg in #(
4557 *"$as_nl"*)
4558 expr "X$arg" : "X\\(.*\\)$as_nl";
4559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4560 esac;
4561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4562 '
4563 export as_echo_n_body
4564 as_echo_n='sh -c $as_echo_n_body as_echo'
4565 fi
4566 export as_echo_body
4567 as_echo='sh -c $as_echo_body as_echo'
4568 fi
4569
4570 # The user is always right.
4571 if test "${PATH_SEPARATOR+set}" != set; then
4572 PATH_SEPARATOR=:
4573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4575 PATH_SEPARATOR=';'
4576 }
4577 fi
4578
4579
4580 # IFS
4581 # We need space, tab and new line, in precisely that order. Quoting is
4582 # there to prevent editors from complaining about space-tab.
4583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4584 # splitting by setting IFS to empty value.)
4585 IFS=" "" $as_nl"
4586
4587 # Find who we are. Look in the path if we contain no directory separator.
4588 as_myself=
4589 case $0 in #((
4590 *[\\/]* ) as_myself=$0 ;;
4591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4597 done
4598 IFS=$as_save_IFS
4599
4600 ;;
4601 esac
4602 # We did not find ourselves, most probably we were run as `sh COMMAND'
4603 # in which case we are not to be found in the path.
4604 if test "x$as_myself" = x; then
4605 as_myself=$0
4606 fi
4607 if test ! -f "$as_myself"; then
4608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4609 exit 1
4610 fi
4611
4612 # Unset variables that we do not need and which cause bugs (e.g. in
4613 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4614 # suppresses any "Segmentation fault" message there. '((' could
4615 # trigger a bug in pdksh 5.2.14.
4616 for as_var in BASH_ENV ENV MAIL MAILPATH
4617 do eval test x\${$as_var+set} = xset \
4618 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4619 done
4620 PS1='$ '
4621 PS2='> '
4622 PS4='+ '
4623
4624 # NLS nuisances.
4625 LC_ALL=C
4626 export LC_ALL
4627 LANGUAGE=C
4628 export LANGUAGE
4629
4630 # CDPATH.
4631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4632
4633
4634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4635 # ----------------------------------------
4636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4638 # script with STATUS, using 1 if that was 0.
4639 as_fn_error ()
4640 {
4641 as_status=$1; test $as_status -eq 0 && as_status=1
4642 if test "$4"; then
4643 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4645 fi
4646 $as_echo "$as_me: error: $2" >&2
4647 as_fn_exit $as_status
4648 } # as_fn_error
4649
4650
4651 # as_fn_set_status STATUS
4652 # -----------------------
4653 # Set $? to STATUS, without forking.
4654 as_fn_set_status ()
4655 {
4656 return $1
4657 } # as_fn_set_status
4658
4659 # as_fn_exit STATUS
4660 # -----------------
4661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4662 as_fn_exit ()
4663 {
4664 set +e
4665 as_fn_set_status $1
4666 exit $1
4667 } # as_fn_exit
4668
4669 # as_fn_unset VAR
4670 # ---------------
4671 # Portably unset VAR.
4672 as_fn_unset ()
4673 {
4674 { eval $1=; unset $1;}
4675 }
4676 as_unset=as_fn_unset
4677 # as_fn_append VAR VALUE
4678 # ----------------------
4679 # Append the text in VALUE to the end of the definition contained in VAR. Take
4680 # advantage of any shell optimizations that allow amortized linear growth over
4681 # repeated appends, instead of the typical quadratic growth present in naive
4682 # implementations.
4683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4684 eval 'as_fn_append ()
4685 {
4686 eval $1+=\$2
4687 }'
4688 else
4689 as_fn_append ()
4690 {
4691 eval $1=\$$1\$2
4692 }
4693 fi # as_fn_append
4694
4695 # as_fn_arith ARG...
4696 # ------------------
4697 # Perform arithmetic evaluation on the ARGs, and store the result in the
4698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4699 # must be portable across $(()) and expr.
4700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4701 eval 'as_fn_arith ()
4702 {
4703 as_val=$(( $* ))
4704 }'
4705 else
4706 as_fn_arith ()
4707 {
4708 as_val=`expr "$@" || test $? -eq 1`
4709 }
4710 fi # as_fn_arith
4711
4712
4713 if expr a : '\(a\)' >/dev/null 2>&1 &&
4714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4715 as_expr=expr
4716 else
4717 as_expr=false
4718 fi
4719
4720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4721 as_basename=basename
4722 else
4723 as_basename=false
4724 fi
4725
4726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4727 as_dirname=dirname
4728 else
4729 as_dirname=false
4730 fi
4731
4732 as_me=`$as_basename -- "$0" ||
4733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4734 X"$0" : 'X\(//\)$' \| \
4735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4736 $as_echo X/"$0" |
4737 sed '/^.*\/\([^/][^/]*\)\/*$/{
4738 s//\1/
4739 q
4740 }
4741 /^X\/\(\/\/\)$/{
4742 s//\1/
4743 q
4744 }
4745 /^X\/\(\/\).*/{
4746 s//\1/
4747 q
4748 }
4749 s/.*/./; q'`
4750
4751 # Avoid depending upon Character Ranges.
4752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4755 as_cr_digits='0123456789'
4756 as_cr_alnum=$as_cr_Letters$as_cr_digits
4757
4758 ECHO_C= ECHO_N= ECHO_T=
4759 case `echo -n x` in #(((((
4760 -n*)
4761 case `echo 'xy\c'` in
4762 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4763 xy) ECHO_C='\c';;
4764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4765 ECHO_T=' ';;
4766 esac;;
4767 *)
4768 ECHO_N='-n';;
4769 esac
4770
4771 rm -f conf$$ conf$$.exe conf$$.file
4772 if test -d conf$$.dir; then
4773 rm -f conf$$.dir/conf$$.file
4774 else
4775 rm -f conf$$.dir
4776 mkdir conf$$.dir 2>/dev/null
4777 fi
4778 if (echo >conf$$.file) 2>/dev/null; then
4779 if ln -s conf$$.file conf$$ 2>/dev/null; then
4780 as_ln_s='ln -s'
4781 # ... but there are two gotchas:
4782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4784 # In both cases, we have to default to `cp -pR'.
4785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4786 as_ln_s='cp -pR'
4787 elif ln conf$$.file conf$$ 2>/dev/null; then
4788 as_ln_s=ln
4789 else
4790 as_ln_s='cp -pR'
4791 fi
4792 else
4793 as_ln_s='cp -pR'
4794 fi
4795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4796 rmdir conf$$.dir 2>/dev/null
4797
4798
4799 # as_fn_mkdir_p
4800 # -------------
4801 # Create "$as_dir" as a directory, including parents if necessary.
4802 as_fn_mkdir_p ()
4803 {
4804
4805 case $as_dir in #(
4806 -*) as_dir=./$as_dir;;
4807 esac
4808 test -d "$as_dir" || eval $as_mkdir_p || {
4809 as_dirs=
4810 while :; do
4811 case $as_dir in #(
4812 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4813 *) as_qdir=$as_dir;;
4814 esac
4815 as_dirs="'$as_qdir' $as_dirs"
4816 as_dir=`$as_dirname -- "$as_dir" ||
4817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4818 X"$as_dir" : 'X\(//\)[^/]' \| \
4819 X"$as_dir" : 'X\(//\)$' \| \
4820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4821 $as_echo X"$as_dir" |
4822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4823 s//\1/
4824 q
4825 }
4826 /^X\(\/\/\)[^/].*/{
4827 s//\1/
4828 q
4829 }
4830 /^X\(\/\/\)$/{
4831 s//\1/
4832 q
4833 }
4834 /^X\(\/\).*/{
4835 s//\1/
4836 q
4837 }
4838 s/.*/./; q'`
4839 test -d "$as_dir" && break
4840 done
4841 test -z "$as_dirs" || eval "mkdir $as_dirs"
4842 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4843
4844
4845 } # as_fn_mkdir_p
4846 if mkdir -p . 2>/dev/null; then
4847 as_mkdir_p='mkdir -p "$as_dir"'
4848 else
4849 test -d ./-p && rmdir ./-p
4850 as_mkdir_p=false
4851 fi
4852
4853
4854 # as_fn_executable_p FILE
4855 # -----------------------
4856 # Test if FILE is an executable regular file.
4857 as_fn_executable_p ()
4858 {
4859 test -f "$1" && test -x "$1"
4860 } # as_fn_executable_p
4861 as_test_x='test -x'
4862 as_executable_p=as_fn_executable_p
4863
4864 # Sed expression to map a string onto a valid CPP name.
4865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4866
4867 # Sed expression to map a string onto a valid variable name.
4868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4869
4870
4871 exec 6>&1
4872 ## ----------------------------------- ##
4873 ## Main body of $CONFIG_STATUS script. ##
4874 ## ----------------------------------- ##
4875 _ASEOF
4876 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4877
4878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4879 # Save the log message, to keep $0 and so on meaningful, and to
4880 # report actual input values of CONFIG_FILES etc. instead of their
4881 # values after options handling.
4882 ac_log="
4883 This file was extended by ocaml-libvirt $as_me 0.6.1.5, which was
4884 generated by GNU Autoconf 2.69. Invocation command line was
4885
4886 CONFIG_FILES = $CONFIG_FILES
4887 CONFIG_HEADERS = $CONFIG_HEADERS
4888 CONFIG_LINKS = $CONFIG_LINKS
4889 CONFIG_COMMANDS = $CONFIG_COMMANDS
4890 $ $0 $@
4891
4892 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4893 "
4894
4895 _ACEOF
4896
4897 case $ac_config_files in *"
4898 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4899 esac
4900
4901 case $ac_config_headers in *"
4902 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4903 esac
4904
4905
4906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4907 # Files that config.status was made for.
4908 config_files="$ac_config_files"
4909 config_headers="$ac_config_headers"
4910
4911 _ACEOF
4912
4913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4914 ac_cs_usage="\
4915 \`$as_me' instantiates files and other configuration actions
4916 from templates according to the current configuration. Unless the files
4917 and actions are specified as TAGs, all are instantiated by default.
4918
4919 Usage: $0 [OPTION]... [TAG]...
4920
4921 -h, --help print this help, then exit
4922 -V, --version print version number and configuration settings, then exit
4923 --config print configuration, then exit
4924 -q, --quiet, --silent
4925 do not print progress messages
4926 -d, --debug don't remove temporary files
4927 --recheck update $as_me by reconfiguring in the same conditions
4928 --file=FILE[:TEMPLATE]
4929 instantiate the configuration file FILE
4930 --header=FILE[:TEMPLATE]
4931 instantiate the configuration header FILE
4932
4933 Configuration files:
4934 $config_files
4935
4936 Configuration headers:
4937 $config_headers
4938
4939 Report bugs to the package provider."
4940
4941 _ACEOF
4942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4943 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4944 ac_cs_version="\\
4945 ocaml-libvirt config.status 0.6.1.5
4946 configured by $0, generated by GNU Autoconf 2.69,
4947 with options \\"\$ac_cs_config\\"
4948
4949 Copyright (C) 2012 Free Software Foundation, Inc.
4950 This config.status script is free software; the Free Software Foundation
4951 gives unlimited permission to copy, distribute and modify it."
4952
4953 ac_pwd='$ac_pwd'
4954 srcdir='$srcdir'
4955 INSTALL='$INSTALL'
4956 test -n "\$AWK" || AWK=awk
4957 _ACEOF
4958
4959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4960 # The default lists apply if the user does not specify any file.
4961 ac_need_defaults=:
4962 while test $# != 0
4963 do
4964 case $1 in
4965 --*=?*)
4966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4968 ac_shift=:
4969 ;;
4970 --*=)
4971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4972 ac_optarg=
4973 ac_shift=:
4974 ;;
4975 *)
4976 ac_option=$1
4977 ac_optarg=$2
4978 ac_shift=shift
4979 ;;
4980 esac
4981
4982 case $ac_option in
4983 # Handling of the options.
4984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4985 ac_cs_recheck=: ;;
4986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4987 $as_echo "$ac_cs_version"; exit ;;
4988 --config | --confi | --conf | --con | --co | --c )
4989 $as_echo "$ac_cs_config"; exit ;;
4990 --debug | --debu | --deb | --de | --d | -d )
4991 debug=: ;;
4992 --file | --fil | --fi | --f )
4993 $ac_shift
4994 case $ac_optarg in
4995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4996 '') as_fn_error $? "missing file argument" ;;
4997 esac
4998 as_fn_append CONFIG_FILES " '$ac_optarg'"
4999 ac_need_defaults=false;;
5000 --header | --heade | --head | --hea )
5001 $ac_shift
5002 case $ac_optarg in
5003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5004 esac
5005 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5006 ac_need_defaults=false;;
5007 --he | --h)
5008 # Conflict between --help and --header
5009 as_fn_error $? "ambiguous option: \`$1'
5010 Try \`$0 --help' for more information.";;
5011 --help | --hel | -h )
5012 $as_echo "$ac_cs_usage"; exit ;;
5013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5015 ac_cs_silent=: ;;
5016
5017 # This is an error.
5018 -*) as_fn_error $? "unrecognized option: \`$1'
5019 Try \`$0 --help' for more information." ;;
5020
5021 *) as_fn_append ac_config_targets " $1"
5022 ac_need_defaults=false ;;
5023
5024 esac
5025 shift
5026 done
5027
5028 ac_configure_extra_args=
5029
5030 if $ac_cs_silent; then
5031 exec 6>/dev/null
5032 ac_configure_extra_args="$ac_configure_extra_args --silent"
5033 fi
5034
5035 _ACEOF
5036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5037 if \$ac_cs_recheck; then
5038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5039 shift
5040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5041 CONFIG_SHELL='$SHELL'
5042 export CONFIG_SHELL
5043 exec "\$@"
5044 fi
5045
5046 _ACEOF
5047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5048 exec 5>>config.log
5049 {
5050 echo
5051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5052 ## Running $as_me. ##
5053 _ASBOX
5054 $as_echo "$ac_log"
5055 } >&5
5056
5057 _ACEOF
5058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5059 _ACEOF
5060
5061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5062
5063 # Handling of arguments.
5064 for ac_config_target in $ac_config_targets
5065 do
5066 case $ac_config_target in
5067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5068 "META") CONFIG_FILES="$CONFIG_FILES META" ;;
5069 "libvirt/libvirt_version.ml") CONFIG_FILES="$CONFIG_FILES libvirt/libvirt_version.ml" ;;
5070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5071 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
5072 "libvirt/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt/Makefile" ;;
5073 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
5074
5075 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5076 esac
5077 done
5078
5079
5080 # If the user did not use the arguments to specify the items to instantiate,
5081 # then the envvar interface is used. Set only those that are not.
5082 # We use the long form for the default assignment because of an extremely
5083 # bizarre bug on SunOS 4.1.3.
5084 if $ac_need_defaults; then
5085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5087 fi
5088
5089 # Have a temporary directory for convenience. Make it in the build tree
5090 # simply because there is no reason against having it here, and in addition,
5091 # creating and moving files from /tmp can sometimes cause problems.
5092 # Hook for its removal unless debugging.
5093 # Note that there is a small window in which the directory will not be cleaned:
5094 # after its creation but before its name has been assigned to `$tmp'.
5095 $debug ||
5096 {
5097 tmp= ac_tmp=
5098 trap 'exit_status=$?
5099 : "${ac_tmp:=$tmp}"
5100 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5101 ' 0
5102 trap 'as_fn_exit 1' 1 2 13 15
5103 }
5104 # Create a (secure) tmp directory for tmp files.
5105
5106 {
5107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5108 test -d "$tmp"
5109 } ||
5110 {
5111 tmp=./conf$$-$RANDOM
5112 (umask 077 && mkdir "$tmp")
5113 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5114 ac_tmp=$tmp
5115
5116 # Set up the scripts for CONFIG_FILES section.
5117 # No need to generate them if there are no CONFIG_FILES.
5118 # This happens for instance with `./config.status config.h'.
5119 if test -n "$CONFIG_FILES"; then
5120
5121
5122 ac_cr=`echo X | tr X '\015'`
5123 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5124 # But we know of no other shell where ac_cr would be empty at this
5125 # point, so we can use a bashism as a fallback.
5126 if test "x$ac_cr" = x; then
5127 eval ac_cr=\$\'\\r\'
5128 fi
5129 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5130 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5131 ac_cs_awk_cr='\\r'
5132 else
5133 ac_cs_awk_cr=$ac_cr
5134 fi
5135
5136 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5137 _ACEOF
5138
5139
5140 {
5141 echo "cat >conf$$subs.awk <<_ACEOF" &&
5142 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5143 echo "_ACEOF"
5144 } >conf$$subs.sh ||
5145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5146 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5147 ac_delim='%!_!# '
5148 for ac_last_try in false false false false false :; do
5149 . ./conf$$subs.sh ||
5150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5151
5152 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5153 if test $ac_delim_n = $ac_delim_num; then
5154 break
5155 elif $ac_last_try; then
5156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5157 else
5158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5159 fi
5160 done
5161 rm -f conf$$subs.sh
5162
5163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5164 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5165 _ACEOF
5166 sed -n '
5167 h
5168 s/^/S["/; s/!.*/"]=/
5169 p
5170 g
5171 s/^[^!]*!//
5172 :repl
5173 t repl
5174 s/'"$ac_delim"'$//
5175 t delim
5176 :nl
5177 h
5178 s/\(.\{148\}\)..*/\1/
5179 t more1
5180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5181 p
5182 n
5183 b repl
5184 :more1
5185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5186 p
5187 g
5188 s/.\{148\}//
5189 t nl
5190 :delim
5191 h
5192 s/\(.\{148\}\)..*/\1/
5193 t more2
5194 s/["\\]/\\&/g; s/^/"/; s/$/"/
5195 p
5196 b
5197 :more2
5198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5199 p
5200 g
5201 s/.\{148\}//
5202 t delim
5203 ' <conf$$subs.awk | sed '
5204 /^[^""]/{
5205 N
5206 s/\n//
5207 }
5208 ' >>$CONFIG_STATUS || ac_write_fail=1
5209 rm -f conf$$subs.awk
5210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5211 _ACAWK
5212 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213 for (key in S) S_is_set[key] = 1
5214 FS = ""
5215
5216 }
5217 {
5218 line = $ 0
5219 nfields = split(line, field, "@")
5220 substed = 0
5221 len = length(field[1])
5222 for (i = 2; i < nfields; i++) {
5223 key = field[i]
5224 keylen = length(key)
5225 if (S_is_set[key]) {
5226 value = S[key]
5227 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5228 len += length(value) + length(field[++i])
5229 substed = 1
5230 } else
5231 len += 1 + keylen
5232 }
5233
5234 print line
5235 }
5236
5237 _ACAWK
5238 _ACEOF
5239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5241 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5242 else
5243 cat
5244 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5245 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5246 _ACEOF
5247
5248 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5249 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5250 # trailing colons and then remove the whole line if VPATH becomes empty
5251 # (actually we leave an empty line to preserve line numbers).
5252 if test "x$srcdir" = x.; then
5253 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5254 h
5255 s///
5256 s/^/:/
5257 s/[ ]*$/:/
5258 s/:\$(srcdir):/:/g
5259 s/:\${srcdir}:/:/g
5260 s/:@srcdir@:/:/g
5261 s/^:*//
5262 s/:*$//
5263 x
5264 s/\(=[ ]*\).*/\1/
5265 G
5266 s/\n//
5267 s/^[^=]*=[ ]*$//
5268 }'
5269 fi
5270
5271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5272 fi # test -n "$CONFIG_FILES"
5273
5274 # Set up the scripts for CONFIG_HEADERS section.
5275 # No need to generate them if there are no CONFIG_HEADERS.
5276 # This happens for instance with `./config.status Makefile'.
5277 if test -n "$CONFIG_HEADERS"; then
5278 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5279 BEGIN {
5280 _ACEOF
5281
5282 # Transform confdefs.h into an awk script `defines.awk', embedded as
5283 # here-document in config.status, that substitutes the proper values into
5284 # config.h.in to produce config.h.
5285
5286 # Create a delimiter string that does not exist in confdefs.h, to ease
5287 # handling of long lines.
5288 ac_delim='%!_!# '
5289 for ac_last_try in false false :; do
5290 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5291 if test -z "$ac_tt"; then
5292 break
5293 elif $ac_last_try; then
5294 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5295 else
5296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5297 fi
5298 done
5299
5300 # For the awk script, D is an array of macro values keyed by name,
5301 # likewise P contains macro parameters if any. Preserve backslash
5302 # newline sequences.
5303
5304 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5305 sed -n '
5306 s/.\{148\}/&'"$ac_delim"'/g
5307 t rset
5308 :rset
5309 s/^[ ]*#[ ]*define[ ][ ]*/ /
5310 t def
5311 d
5312 :def
5313 s/\\$//
5314 t bsnl
5315 s/["\\]/\\&/g
5316 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5317 D["\1"]=" \3"/p
5318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5319 d
5320 :bsnl
5321 s/["\\]/\\&/g
5322 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5323 D["\1"]=" \3\\\\\\n"\\/p
5324 t cont
5325 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5326 t cont
5327 d
5328 :cont
5329 n
5330 s/.\{148\}/&'"$ac_delim"'/g
5331 t clear
5332 :clear
5333 s/\\$//
5334 t bsnlc
5335 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5336 d
5337 :bsnlc
5338 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5339 b cont
5340 ' <confdefs.h | sed '
5341 s/'"$ac_delim"'/"\\\
5342 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5343
5344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5345 for (key in D) D_is_set[key] = 1
5346 FS = ""
5347 }
5348 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5349 line = \$ 0
5350 split(line, arg, " ")
5351 if (arg[1] == "#") {
5352 defundef = arg[2]
5353 mac1 = arg[3]
5354 } else {
5355 defundef = substr(arg[1], 2)
5356 mac1 = arg[2]
5357 }
5358 split(mac1, mac2, "(") #)
5359 macro = mac2[1]
5360 prefix = substr(line, 1, index(line, defundef) - 1)
5361 if (D_is_set[macro]) {
5362 # Preserve the white space surrounding the "#".
5363 print prefix "define", macro P[macro] D[macro]
5364 next
5365 } else {
5366 # Replace #undef with comments. This is necessary, for example,
5367 # in the case of _POSIX_SOURCE, which is predefined and required
5368 # on some systems where configure will not decide to define it.
5369 if (defundef == "undef") {
5370 print "/*", prefix defundef, macro, "*/"
5371 next
5372 }
5373 }
5374 }
5375 { print }
5376 _ACAWK
5377 _ACEOF
5378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5379 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5380 fi # test -n "$CONFIG_HEADERS"
5381
5382
5383 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5384 shift
5385 for ac_tag
5386 do
5387 case $ac_tag in
5388 :[FHLC]) ac_mode=$ac_tag; continue;;
5389 esac
5390 case $ac_mode$ac_tag in
5391 :[FHL]*:*);;
5392 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5393 :[FH]-) ac_tag=-:-;;
5394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5395 esac
5396 ac_save_IFS=$IFS
5397 IFS=:
5398 set x $ac_tag
5399 IFS=$ac_save_IFS
5400 shift
5401 ac_file=$1
5402 shift
5403
5404 case $ac_mode in
5405 :L) ac_source=$1;;
5406 :[FH])
5407 ac_file_inputs=
5408 for ac_f
5409 do
5410 case $ac_f in
5411 -) ac_f="$ac_tmp/stdin";;
5412 *) # Look for the file first in the build tree, then in the source tree
5413 # (if the path is not absolute). The absolute path cannot be DOS-style,
5414 # because $ac_f cannot contain `:'.
5415 test -f "$ac_f" ||
5416 case $ac_f in
5417 [\\/$]*) false;;
5418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5419 esac ||
5420 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5421 esac
5422 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5423 as_fn_append ac_file_inputs " '$ac_f'"
5424 done
5425
5426 # Let's still pretend it is `configure' which instantiates (i.e., don't
5427 # use $as_me), people would be surprised to read:
5428 # /* config.h. Generated by config.status. */
5429 configure_input='Generated from '`
5430 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5431 `' by configure.'
5432 if test x"$ac_file" != x-; then
5433 configure_input="$ac_file. $configure_input"
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5435 $as_echo "$as_me: creating $ac_file" >&6;}
5436 fi
5437 # Neutralize special characters interpreted by sed in replacement strings.
5438 case $configure_input in #(
5439 *\&* | *\|* | *\\* )
5440 ac_sed_conf_input=`$as_echo "$configure_input" |
5441 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5442 *) ac_sed_conf_input=$configure_input;;
5443 esac
5444
5445 case $ac_tag in
5446 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5448 esac
5449 ;;
5450 esac
5451
5452 ac_dir=`$as_dirname -- "$ac_file" ||
5453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5454 X"$ac_file" : 'X\(//\)[^/]' \| \
5455 X"$ac_file" : 'X\(//\)$' \| \
5456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5457 $as_echo X"$ac_file" |
5458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5459 s//\1/
5460 q
5461 }
5462 /^X\(\/\/\)[^/].*/{
5463 s//\1/
5464 q
5465 }
5466 /^X\(\/\/\)$/{
5467 s//\1/
5468 q
5469 }
5470 /^X\(\/\).*/{
5471 s//\1/
5472 q
5473 }
5474 s/.*/./; q'`
5475 as_dir="$ac_dir"; as_fn_mkdir_p
5476 ac_builddir=.
5477
5478 case "$ac_dir" in
5479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5480 *)
5481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5482 # A ".." for each directory in $ac_dir_suffix.
5483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5484 case $ac_top_builddir_sub in
5485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5487 esac ;;
5488 esac
5489 ac_abs_top_builddir=$ac_pwd
5490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5491 # for backward compatibility:
5492 ac_top_builddir=$ac_top_build_prefix
5493
5494 case $srcdir in
5495 .) # We are building in place.
5496 ac_srcdir=.
5497 ac_top_srcdir=$ac_top_builddir_sub
5498 ac_abs_top_srcdir=$ac_pwd ;;
5499 [\\/]* | ?:[\\/]* ) # Absolute name.
5500 ac_srcdir=$srcdir$ac_dir_suffix;
5501 ac_top_srcdir=$srcdir
5502 ac_abs_top_srcdir=$srcdir ;;
5503 *) # Relative name.
5504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5505 ac_top_srcdir=$ac_top_build_prefix$srcdir
5506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5507 esac
5508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5509
5510
5511 case $ac_mode in
5512 :F)
5513 #
5514 # CONFIG_FILE
5515 #
5516
5517 case $INSTALL in
5518 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5519 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5520 esac
5521 _ACEOF
5522
5523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5524 # If the template does not know about datarootdir, expand it.
5525 # FIXME: This hack should be removed a few years after 2.60.
5526 ac_datarootdir_hack=; ac_datarootdir_seen=
5527 ac_sed_dataroot='
5528 /datarootdir/ {
5529 p
5530 q
5531 }
5532 /@datadir@/p
5533 /@docdir@/p
5534 /@infodir@/p
5535 /@localedir@/p
5536 /@mandir@/p'
5537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5538 *datarootdir*) ac_datarootdir_seen=yes;;
5539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5542 _ACEOF
5543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5544 ac_datarootdir_hack='
5545 s&@datadir@&$datadir&g
5546 s&@docdir@&$docdir&g
5547 s&@infodir@&$infodir&g
5548 s&@localedir@&$localedir&g
5549 s&@mandir@&$mandir&g
5550 s&\\\${datarootdir}&$datarootdir&g' ;;
5551 esac
5552 _ACEOF
5553
5554 # Neutralize VPATH when `$srcdir' = `.'.
5555 # Shell code in configure.ac might set extrasub.
5556 # FIXME: do we really want to maintain this feature?
5557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5558 ac_sed_extra="$ac_vpsub
5559 $extrasub
5560 _ACEOF
5561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5562 :t
5563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5564 s|@configure_input@|$ac_sed_conf_input|;t t
5565 s&@top_builddir@&$ac_top_builddir_sub&;t t
5566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5567 s&@srcdir@&$ac_srcdir&;t t
5568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5569 s&@top_srcdir@&$ac_top_srcdir&;t t
5570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5571 s&@builddir@&$ac_builddir&;t t
5572 s&@abs_builddir@&$ac_abs_builddir&;t t
5573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5574 s&@INSTALL@&$ac_INSTALL&;t t
5575 $ac_datarootdir_hack
5576 "
5577 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5578 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5579
5580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5581 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5583 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5585 which seems to be undefined. Please make sure it is defined" >&5
5586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5587 which seems to be undefined. Please make sure it is defined" >&2;}
5588
5589 rm -f "$ac_tmp/stdin"
5590 case $ac_file in
5591 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5592 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5593 esac \
5594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5595 ;;
5596 :H)
5597 #
5598 # CONFIG_HEADER
5599 #
5600 if test x"$ac_file" != x-; then
5601 {
5602 $as_echo "/* $configure_input */" \
5603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5604 } >"$ac_tmp/config.h" \
5605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5606 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5609 else
5610 rm -f "$ac_file"
5611 mv "$ac_tmp/config.h" "$ac_file" \
5612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5613 fi
5614 else
5615 $as_echo "/* $configure_input */" \
5616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5617 || as_fn_error $? "could not create -" "$LINENO" 5
5618 fi
5619 ;;
5620
5621
5622 esac
5623
5624 done # for ac_tag
5625
5626
5627 as_fn_exit 0
5628 _ACEOF
5629 ac_clean_files=$ac_clean_files_save
5630
5631 test $ac_write_fail = 0 ||
5632 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5633
5634
5635 # configure is writing to config.log, and then calls config.status.
5636 # config.status does its own redirection, appending to config.log.
5637 # Unfortunately, on DOS this fails, as config.log is still kept open
5638 # by configure, so config.status won't be able to write to it; its
5639 # output is simply discarded. So we exec the FD to /dev/null,
5640 # effectively closing config.log, so it can be properly (re)opened and
5641 # appended to by config.status. When coming back to configure, we
5642 # need to make the FD available again.
5643 if test "$no_create" != yes; then
5644 ac_cs_success=:
5645 ac_config_status_args=
5646 test "$silent" = yes &&
5647 ac_config_status_args="$ac_config_status_args --quiet"
5648 exec 5>/dev/null
5649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5650 exec 5>>config.log
5651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5652 # would make configure fail if this is the last instruction.
5653 $ac_cs_success || as_fn_exit 1
5654 fi
5655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5658 fi
5659