configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for XCB Proto 1.6.
4 #
5 # Report bugs to <xcb (at] lists.freedesktop.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
233 $0: xcb (at] lists.freedesktop.org about your system, including
234 $0: any error possibly output before this message. Then
235 $0: install a modern shell, or manually run the script
236 $0: under such a shell if you do have one."
237 fi
238 exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256 { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265 return $1
266 } # as_fn_set_status
267
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273 set +e
274 as_fn_set_status $1
275 exit $1
276 } # as_fn_exit
277
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
283
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\).*/{
314 s//\1/
315 q
316 }
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322
323
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
333 {
334 eval $1+=\$2
335 }'
336 else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341 fi # as_fn_append
342
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353 else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358 fi # as_fn_arith
359
360
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
367 {
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 fi
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375 } # as_fn_error
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380 else
381 as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386 else
387 as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392 else
393 as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\/\)$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\).*/{
410 s//\1/
411 q
412 }
413 s/.*/./; q'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
429 p
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
435 b
436 :lineno
437 N
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
463 *)
464 ECHO_N='-n';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470 else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
487 fi
488 else
489 as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496 else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
533
534 # Name of the host.
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538
539 #
540 # Initializations.
541 #
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
550
551 # Identity of this package.
552 PACKAGE_NAME='XCB Proto'
553 PACKAGE_TARNAME='xcb-proto'
554 PACKAGE_VERSION='1.6'
555 PACKAGE_STRING='XCB Proto 1.6'
556 PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
557 PACKAGE_URL=''
558
559 ac_unique_file="xcb-proto.pc.in"
560 ac_subst_vars='LTLIBOBJS
561 LIBOBJS
562 xcbincludedir
563 pkgpyexecdir
564 pyexecdir
565 pkgpythondir
566 pythondir
567 PYTHON_PLATFORM
568 PYTHON_EXEC_PREFIX
569 PYTHON_PREFIX
570 PYTHON_VERSION
571 PYTHON
572 HAVE_XMLLINT_FALSE
573 HAVE_XMLLINT_TRUE
574 XMLLINT
575 am__untar
576 am__tar
577 AMTAR
578 am__leading_dot
579 SET_MAKE
580 AWK
581 mkdir_p
582 MKDIR_P
583 INSTALL_STRIP_PROGRAM
584 STRIP
585 install_sh
586 MAKEINFO
587 AUTOHEADER
588 AUTOMAKE
589 AUTOCONF
590 ACLOCAL
591 VERSION
592 PACKAGE
593 CYGPATH_W
594 am__isrc
595 INSTALL_DATA
596 INSTALL_SCRIPT
597 INSTALL_PROGRAM
598 target_alias
599 host_alias
600 build_alias
601 LIBS
602 ECHO_T
603 ECHO_N
604 ECHO_C
605 DEFS
606 mandir
607 localedir
608 libdir
609 psdir
610 pdfdir
611 dvidir
612 htmldir
613 infodir
614 docdir
615 oldincludedir
616 includedir
617 localstatedir
618 sharedstatedir
619 sysconfdir
620 datadir
621 datarootdir
622 libexecdir
623 sbindir
624 bindir
625 program_transform_name
626 prefix
627 exec_prefix
628 PACKAGE_URL
629 PACKAGE_BUGREPORT
630 PACKAGE_STRING
631 PACKAGE_VERSION
632 PACKAGE_TARNAME
633 PACKAGE_NAME
634 PATH_SEPARATOR
635 SHELL'
636 ac_subst_files=''
637 ac_user_opts='
638 enable_option_checking
639 '
640 ac_precious_vars='build_alias
641 host_alias
642 target_alias'
643
644
645 # Initialize some variables set by options.
646 ac_init_help=
647 ac_init_version=false
648 ac_unrecognized_opts=
649 ac_unrecognized_sep=
650 # The variables have the same names as the options, with
651 # dashes changed to underlines.
652 cache_file=/dev/null
653 exec_prefix=NONE
654 no_create=
655 no_recursion=
656 prefix=NONE
657 program_prefix=NONE
658 program_suffix=NONE
659 program_transform_name=s,x,x,
660 silent=
661 site=
662 srcdir=
663 verbose=
664 x_includes=NONE
665 x_libraries=NONE
666
667 # Installation directory options.
668 # These are left unexpanded so users can "make install exec_prefix=/foo"
669 # and all the variables that are supposed to be based on exec_prefix
670 # by default will actually change.
671 # Use braces instead of parens because sh, perl, etc. also accept them.
672 # (The list follows the same order as the GNU Coding Standards.)
673 bindir='${exec_prefix}/bin'
674 sbindir='${exec_prefix}/sbin'
675 libexecdir='${exec_prefix}/libexec'
676 datarootdir='${prefix}/share'
677 datadir='${datarootdir}'
678 sysconfdir='${prefix}/etc'
679 sharedstatedir='${prefix}/com'
680 localstatedir='${prefix}/var'
681 includedir='${prefix}/include'
682 oldincludedir='/usr/include'
683 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
684 infodir='${datarootdir}/info'
685 htmldir='${docdir}'
686 dvidir='${docdir}'
687 pdfdir='${docdir}'
688 psdir='${docdir}'
689 libdir='${exec_prefix}/lib'
690 localedir='${datarootdir}/locale'
691 mandir='${datarootdir}/man'
692
693 ac_prev=
694 ac_dashdash=
695 for ac_option
696 do
697 # If the previous option needs an argument, assign it.
698 if test -n "$ac_prev"; then
699 eval $ac_prev=\$ac_option
700 ac_prev=
701 continue
702 fi
703
704 case $ac_option in
705 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
706 *) ac_optarg=yes ;;
707 esac
708
709 # Accept the important Cygnus configure options, so we can diagnose typos.
710
711 case $ac_dashdash$ac_option in
712 --)
713 ac_dashdash=yes ;;
714
715 -bindir | --bindir | --bindi | --bind | --bin | --bi)
716 ac_prev=bindir ;;
717 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
718 bindir=$ac_optarg ;;
719
720 -build | --build | --buil | --bui | --bu)
721 ac_prev=build_alias ;;
722 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
723 build_alias=$ac_optarg ;;
724
725 -cache-file | --cache-file | --cache-fil | --cache-fi \
726 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
727 ac_prev=cache_file ;;
728 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
729 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
730 cache_file=$ac_optarg ;;
731
732 --config-cache | -C)
733 cache_file=config.cache ;;
734
735 -datadir | --datadir | --datadi | --datad)
736 ac_prev=datadir ;;
737 -datadir=* | --datadir=* | --datadi=* | --datad=*)
738 datadir=$ac_optarg ;;
739
740 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
741 | --dataroo | --dataro | --datar)
742 ac_prev=datarootdir ;;
743 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
744 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
745 datarootdir=$ac_optarg ;;
746
747 -disable-* | --disable-*)
748 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
751 as_fn_error "invalid feature name: $ac_useropt"
752 ac_useropt_orig=$ac_useropt
753 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
754 case $ac_user_opts in
755 *"
756 "enable_$ac_useropt"
757 "*) ;;
758 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
759 ac_unrecognized_sep=', ';;
760 esac
761 eval enable_$ac_useropt=no ;;
762
763 -docdir | --docdir | --docdi | --doc | --do)
764 ac_prev=docdir ;;
765 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
766 docdir=$ac_optarg ;;
767
768 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
769 ac_prev=dvidir ;;
770 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
771 dvidir=$ac_optarg ;;
772
773 -enable-* | --enable-*)
774 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
775 # Reject names that are not valid shell variable names.
776 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
777 as_fn_error "invalid feature name: $ac_useropt"
778 ac_useropt_orig=$ac_useropt
779 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
780 case $ac_user_opts in
781 *"
782 "enable_$ac_useropt"
783 "*) ;;
784 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
785 ac_unrecognized_sep=', ';;
786 esac
787 eval enable_$ac_useropt=\$ac_optarg ;;
788
789 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
790 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
791 | --exec | --exe | --ex)
792 ac_prev=exec_prefix ;;
793 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
794 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
795 | --exec=* | --exe=* | --ex=*)
796 exec_prefix=$ac_optarg ;;
797
798 -gas | --gas | --ga | --g)
799 # Obsolete; use --with-gas.
800 with_gas=yes ;;
801
802 -help | --help | --hel | --he | -h)
803 ac_init_help=long ;;
804 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
805 ac_init_help=recursive ;;
806 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
807 ac_init_help=short ;;
808
809 -host | --host | --hos | --ho)
810 ac_prev=host_alias ;;
811 -host=* | --host=* | --hos=* | --ho=*)
812 host_alias=$ac_optarg ;;
813
814 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
815 ac_prev=htmldir ;;
816 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
817 | --ht=*)
818 htmldir=$ac_optarg ;;
819
820 -includedir | --includedir | --includedi | --included | --include \
821 | --includ | --inclu | --incl | --inc)
822 ac_prev=includedir ;;
823 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
824 | --includ=* | --inclu=* | --incl=* | --inc=*)
825 includedir=$ac_optarg ;;
826
827 -infodir | --infodir | --infodi | --infod | --info | --inf)
828 ac_prev=infodir ;;
829 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
830 infodir=$ac_optarg ;;
831
832 -libdir | --libdir | --libdi | --libd)
833 ac_prev=libdir ;;
834 -libdir=* | --libdir=* | --libdi=* | --libd=*)
835 libdir=$ac_optarg ;;
836
837 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
838 | --libexe | --libex | --libe)
839 ac_prev=libexecdir ;;
840 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
841 | --libexe=* | --libex=* | --libe=*)
842 libexecdir=$ac_optarg ;;
843
844 -localedir | --localedir | --localedi | --localed | --locale)
845 ac_prev=localedir ;;
846 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
847 localedir=$ac_optarg ;;
848
849 -localstatedir | --localstatedir | --localstatedi | --localstated \
850 | --localstate | --localstat | --localsta | --localst | --locals)
851 ac_prev=localstatedir ;;
852 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
853 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
854 localstatedir=$ac_optarg ;;
855
856 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
857 ac_prev=mandir ;;
858 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
859 mandir=$ac_optarg ;;
860
861 -nfp | --nfp | --nf)
862 # Obsolete; use --without-fp.
863 with_fp=no ;;
864
865 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
866 | --no-cr | --no-c | -n)
867 no_create=yes ;;
868
869 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
870 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
871 no_recursion=yes ;;
872
873 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
874 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
875 | --oldin | --oldi | --old | --ol | --o)
876 ac_prev=oldincludedir ;;
877 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
878 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
879 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
880 oldincludedir=$ac_optarg ;;
881
882 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
883 ac_prev=prefix ;;
884 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
885 prefix=$ac_optarg ;;
886
887 -program-prefix | --program-prefix | --program-prefi | --program-pref \
888 | --program-pre | --program-pr | --program-p)
889 ac_prev=program_prefix ;;
890 -program-prefix=* | --program-prefix=* | --program-prefi=* \
891 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
892 program_prefix=$ac_optarg ;;
893
894 -program-suffix | --program-suffix | --program-suffi | --program-suff \
895 | --program-suf | --program-su | --program-s)
896 ac_prev=program_suffix ;;
897 -program-suffix=* | --program-suffix=* | --program-suffi=* \
898 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
899 program_suffix=$ac_optarg ;;
900
901 -program-transform-name | --program-transform-name \
902 | --program-transform-nam | --program-transform-na \
903 | --program-transform-n | --program-transform- \
904 | --program-transform | --program-transfor \
905 | --program-transfo | --program-transf \
906 | --program-trans | --program-tran \
907 | --progr-tra | --program-tr | --program-t)
908 ac_prev=program_transform_name ;;
909 -program-transform-name=* | --program-transform-name=* \
910 | --program-transform-nam=* | --program-transform-na=* \
911 | --program-transform-n=* | --program-transform-=* \
912 | --program-transform=* | --program-transfor=* \
913 | --program-transfo=* | --program-transf=* \
914 | --program-trans=* | --program-tran=* \
915 | --progr-tra=* | --program-tr=* | --program-t=*)
916 program_transform_name=$ac_optarg ;;
917
918 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
919 ac_prev=pdfdir ;;
920 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
921 pdfdir=$ac_optarg ;;
922
923 -psdir | --psdir | --psdi | --psd | --ps)
924 ac_prev=psdir ;;
925 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
926 psdir=$ac_optarg ;;
927
928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
929 | -silent | --silent | --silen | --sile | --sil)
930 silent=yes ;;
931
932 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
933 ac_prev=sbindir ;;
934 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
935 | --sbi=* | --sb=*)
936 sbindir=$ac_optarg ;;
937
938 -sharedstatedir | --sharedstatedir | --sharedstatedi \
939 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
940 | --sharedst | --shareds | --shared | --share | --shar \
941 | --sha | --sh)
942 ac_prev=sharedstatedir ;;
943 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
944 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
945 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
946 | --sha=* | --sh=*)
947 sharedstatedir=$ac_optarg ;;
948
949 -site | --site | --sit)
950 ac_prev=site ;;
951 -site=* | --site=* | --sit=*)
952 site=$ac_optarg ;;
953
954 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
955 ac_prev=srcdir ;;
956 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
957 srcdir=$ac_optarg ;;
958
959 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
960 | --syscon | --sysco | --sysc | --sys | --sy)
961 ac_prev=sysconfdir ;;
962 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
963 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
964 sysconfdir=$ac_optarg ;;
965
966 -target | --target | --targe | --targ | --tar | --ta | --t)
967 ac_prev=target_alias ;;
968 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
969 target_alias=$ac_optarg ;;
970
971 -v | -verbose | --verbose | --verbos | --verbo | --verb)
972 verbose=yes ;;
973
974 -version | --version | --versio | --versi | --vers | -V)
975 ac_init_version=: ;;
976
977 -with-* | --with-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid package name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "with_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval with_$ac_useropt=\$ac_optarg ;;
992
993 -without-* | --without-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error "invalid package name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "with_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval with_$ac_useropt=no ;;
1008
1009 --x)
1010 # Obsolete; use --with-x.
1011 with_x=yes ;;
1012
1013 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1014 | --x-incl | --x-inc | --x-in | --x-i)
1015 ac_prev=x_includes ;;
1016 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1017 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1018 x_includes=$ac_optarg ;;
1019
1020 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1021 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1022 ac_prev=x_libraries ;;
1023 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1024 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1025 x_libraries=$ac_optarg ;;
1026
1027 -*) as_fn_error "unrecognized option: \`$ac_option'
1028 Try \`$0 --help' for more information."
1029 ;;
1030
1031 *=*)
1032 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1033 # Reject names that are not valid shell variable names.
1034 case $ac_envvar in #(
1035 '' | [0-9]* | *[!_$as_cr_alnum]* )
1036 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1037 esac
1038 eval $ac_envvar=\$ac_optarg
1039 export $ac_envvar ;;
1040
1041 *)
1042 # FIXME: should be removed in autoconf 3.0.
1043 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1044 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1046 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1047 ;;
1048
1049 esac
1050 done
1051
1052 if test -n "$ac_prev"; then
1053 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1054 as_fn_error "missing argument to $ac_option"
1055 fi
1056
1057 if test -n "$ac_unrecognized_opts"; then
1058 case $enable_option_checking in
1059 no) ;;
1060 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1061 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1062 esac
1063 fi
1064
1065 # Check all directory arguments for consistency.
1066 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1067 datadir sysconfdir sharedstatedir localstatedir includedir \
1068 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1069 libdir localedir mandir
1070 do
1071 eval ac_val=\$$ac_var
1072 # Remove trailing slashes.
1073 case $ac_val in
1074 */ )
1075 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1076 eval $ac_var=\$ac_val;;
1077 esac
1078 # Be sure to have absolute directory names.
1079 case $ac_val in
1080 [\\/$]* | ?:[\\/]* ) continue;;
1081 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1082 esac
1083 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1084 done
1085
1086 # There might be people who depend on the old broken behavior: `$host'
1087 # used to hold the argument of --host etc.
1088 # FIXME: To remove some day.
1089 build=$build_alias
1090 host=$host_alias
1091 target=$target_alias
1092
1093 # FIXME: To remove some day.
1094 if test "x$host_alias" != x; then
1095 if test "x$build_alias" = x; then
1096 cross_compiling=maybe
1097 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1098 If a cross compiler is detected then cross compile mode will be used." >&2
1099 elif test "x$build_alias" != "x$host_alias"; then
1100 cross_compiling=yes
1101 fi
1102 fi
1103
1104 ac_tool_prefix=
1105 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1106
1107 test "$silent" = yes && exec 6>/dev/null
1108
1109
1110 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1111 ac_ls_di=`ls -di .` &&
1112 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1113 as_fn_error "working directory cannot be determined"
1114 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1115 as_fn_error "pwd does not report name of working directory"
1116
1117
1118 # Find the source files, if location was not specified.
1119 if test -z "$srcdir"; then
1120 ac_srcdir_defaulted=yes
1121 # Try the directory containing this script, then the parent directory.
1122 ac_confdir=`$as_dirname -- "$as_myself" ||
1123 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1124 X"$as_myself" : 'X\(//\)[^/]' \| \
1125 X"$as_myself" : 'X\(//\)$' \| \
1126 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1127 $as_echo X"$as_myself" |
1128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1129 s//\1/
1130 q
1131 }
1132 /^X\(\/\/\)[^/].*/{
1133 s//\1/
1134 q
1135 }
1136 /^X\(\/\/\)$/{
1137 s//\1/
1138 q
1139 }
1140 /^X\(\/\).*/{
1141 s//\1/
1142 q
1143 }
1144 s/.*/./; q'`
1145 srcdir=$ac_confdir
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 srcdir=..
1148 fi
1149 else
1150 ac_srcdir_defaulted=no
1151 fi
1152 if test ! -r "$srcdir/$ac_unique_file"; then
1153 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1154 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1155 fi
1156 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1157 ac_abs_confdir=`(
1158 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1159 pwd)`
1160 # When building in place, set srcdir=.
1161 if test "$ac_abs_confdir" = "$ac_pwd"; then
1162 srcdir=.
1163 fi
1164 # Remove unnecessary trailing slashes from srcdir.
1165 # Double slashes in file names in object file debugging info
1166 # mess up M-x gdb in Emacs.
1167 case $srcdir in
1168 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1169 esac
1170 for ac_var in $ac_precious_vars; do
1171 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1172 eval ac_env_${ac_var}_value=\$${ac_var}
1173 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1174 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1175 done
1176
1177 #
1178 # Report the --help message.
1179 #
1180 if test "$ac_init_help" = "long"; then
1181 # Omit some internal or obsolete options to make the list less imposing.
1182 # This message is too long to be a string in the A/UX 3.1 sh.
1183 cat <<_ACEOF
1184 \`configure' configures XCB Proto 1.6 to adapt to many kinds of systems.
1185
1186 Usage: $0 [OPTION]... [VAR=VALUE]...
1187
1188 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1189 VAR=VALUE. See below for descriptions of some of the useful variables.
1190
1191 Defaults for the options are specified in brackets.
1192
1193 Configuration:
1194 -h, --help display this help and exit
1195 --help=short display options specific to this package
1196 --help=recursive display the short help of all the included packages
1197 -V, --version display version information and exit
1198 -q, --quiet, --silent do not print \`checking...' messages
1199 --cache-file=FILE cache test results in FILE [disabled]
1200 -C, --config-cache alias for \`--cache-file=config.cache'
1201 -n, --no-create do not create output files
1202 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1203
1204 Installation directories:
1205 --prefix=PREFIX install architecture-independent files in PREFIX
1206 [$ac_default_prefix]
1207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1208 [PREFIX]
1209
1210 By default, \`make install' will install all the files in
1211 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1212 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1213 for instance \`--prefix=\$HOME'.
1214
1215 For better control, use the options below.
1216
1217 Fine tuning of the installation directories:
1218 --bindir=DIR user executables [EPREFIX/bin]
1219 --sbindir=DIR system admin executables [EPREFIX/sbin]
1220 --libexecdir=DIR program executables [EPREFIX/libexec]
1221 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1222 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1223 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1224 --libdir=DIR object code libraries [EPREFIX/lib]
1225 --includedir=DIR C header files [PREFIX/include]
1226 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1227 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1228 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1229 --infodir=DIR info documentation [DATAROOTDIR/info]
1230 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1231 --mandir=DIR man documentation [DATAROOTDIR/man]
1232 --docdir=DIR documentation root [DATAROOTDIR/doc/xcb-proto]
1233 --htmldir=DIR html documentation [DOCDIR]
1234 --dvidir=DIR dvi documentation [DOCDIR]
1235 --pdfdir=DIR pdf documentation [DOCDIR]
1236 --psdir=DIR ps documentation [DOCDIR]
1237 _ACEOF
1238
1239 cat <<\_ACEOF
1240
1241 Program names:
1242 --program-prefix=PREFIX prepend PREFIX to installed program names
1243 --program-suffix=SUFFIX append SUFFIX to installed program names
1244 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1245 _ACEOF
1246 fi
1247
1248 if test -n "$ac_init_help"; then
1249 case $ac_init_help in
1250 short | recursive ) echo "Configuration of XCB Proto 1.6:";;
1251 esac
1252 cat <<\_ACEOF
1253
1254 Report bugs to <xcb (at] lists.freedesktop.org>.
1255 _ACEOF
1256 ac_status=$?
1257 fi
1258
1259 if test "$ac_init_help" = "recursive"; then
1260 # If there are subdirs, report their specific --help.
1261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1262 test -d "$ac_dir" ||
1263 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1264 continue
1265 ac_builddir=.
1266
1267 case "$ac_dir" in
1268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1269 *)
1270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1271 # A ".." for each directory in $ac_dir_suffix.
1272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1273 case $ac_top_builddir_sub in
1274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1276 esac ;;
1277 esac
1278 ac_abs_top_builddir=$ac_pwd
1279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1280 # for backward compatibility:
1281 ac_top_builddir=$ac_top_build_prefix
1282
1283 case $srcdir in
1284 .) # We are building in place.
1285 ac_srcdir=.
1286 ac_top_srcdir=$ac_top_builddir_sub
1287 ac_abs_top_srcdir=$ac_pwd ;;
1288 [\\/]* | ?:[\\/]* ) # Absolute name.
1289 ac_srcdir=$srcdir$ac_dir_suffix;
1290 ac_top_srcdir=$srcdir
1291 ac_abs_top_srcdir=$srcdir ;;
1292 *) # Relative name.
1293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1294 ac_top_srcdir=$ac_top_build_prefix$srcdir
1295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1296 esac
1297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1298
1299 cd "$ac_dir" || { ac_status=$?; continue; }
1300 # Check for guested configure.
1301 if test -f "$ac_srcdir/configure.gnu"; then
1302 echo &&
1303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1304 elif test -f "$ac_srcdir/configure"; then
1305 echo &&
1306 $SHELL "$ac_srcdir/configure" --help=recursive
1307 else
1308 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1309 fi || ac_status=$?
1310 cd "$ac_pwd" || { ac_status=$?; break; }
1311 done
1312 fi
1313
1314 test -n "$ac_init_help" && exit $ac_status
1315 if $ac_init_version; then
1316 cat <<\_ACEOF
1317 XCB Proto configure 1.6
1318 generated by GNU Autoconf 2.65
1319
1320 Copyright (C) 2009 Free Software Foundation, Inc.
1321 This configure script is free software; the Free Software Foundation
1322 gives unlimited permission to copy, distribute and modify it.
1323 _ACEOF
1324 exit
1325 fi
1326
1327 ## ------------------------ ##
1328 ## Autoconf initialization. ##
1329 ## ------------------------ ##
1330 cat >config.log <<_ACEOF
1331 This file contains any messages produced by compilers while
1332 running configure, to aid debugging if configure makes a mistake.
1333
1334 It was created by XCB Proto $as_me 1.6, which was
1335 generated by GNU Autoconf 2.65. Invocation command line was
1336
1337 $ $0 $@
1338
1339 _ACEOF
1340 exec 5>>config.log
1341 {
1342 cat <<_ASUNAME
1343 ## --------- ##
1344 ## Platform. ##
1345 ## --------- ##
1346
1347 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1348 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1349 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1350 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1351 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1352
1353 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1354 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1355
1356 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1357 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1358 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1359 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1360 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1361 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1362 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1363
1364 _ASUNAME
1365
1366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 for as_dir in $PATH
1368 do
1369 IFS=$as_save_IFS
1370 test -z "$as_dir" && as_dir=.
1371 $as_echo "PATH: $as_dir"
1372 done
1373 IFS=$as_save_IFS
1374
1375 } >&5
1376
1377 cat >&5 <<_ACEOF
1378
1379
1380 ## ----------- ##
1381 ## Core tests. ##
1382 ## ----------- ##
1383
1384 _ACEOF
1385
1386
1387 # Keep a trace of the command line.
1388 # Strip out --no-create and --no-recursion so they do not pile up.
1389 # Strip out --silent because we don't want to record it for future runs.
1390 # Also quote any args containing shell meta-characters.
1391 # Make two passes to allow for proper duplicate-argument suppression.
1392 ac_configure_args=
1393 ac_configure_args0=
1394 ac_configure_args1=
1395 ac_must_keep_next=false
1396 for ac_pass in 1 2
1397 do
1398 for ac_arg
1399 do
1400 case $ac_arg in
1401 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1403 | -silent | --silent | --silen | --sile | --sil)
1404 continue ;;
1405 *\'*)
1406 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1407 esac
1408 case $ac_pass in
1409 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1410 2)
1411 as_fn_append ac_configure_args1 " '$ac_arg'"
1412 if test $ac_must_keep_next = true; then
1413 ac_must_keep_next=false # Got value, back to normal.
1414 else
1415 case $ac_arg in
1416 *=* | --config-cache | -C | -disable-* | --disable-* \
1417 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1418 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1419 | -with-* | --with-* | -without-* | --without-* | --x)
1420 case "$ac_configure_args0 " in
1421 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1422 esac
1423 ;;
1424 -* ) ac_must_keep_next=true ;;
1425 esac
1426 fi
1427 as_fn_append ac_configure_args " '$ac_arg'"
1428 ;;
1429 esac
1430 done
1431 done
1432 { ac_configure_args0=; unset ac_configure_args0;}
1433 { ac_configure_args1=; unset ac_configure_args1;}
1434
1435 # When interrupted or exit'd, cleanup temporary files, and complete
1436 # config.log. We remove comments because anyway the quotes in there
1437 # would cause problems or look ugly.
1438 # WARNING: Use '\'' to represent an apostrophe within the trap.
1439 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1440 trap 'exit_status=$?
1441 # Save into config.log some information that might help in debugging.
1442 {
1443 echo
1444
1445 cat <<\_ASBOX
1446 ## ---------------- ##
1447 ## Cache variables. ##
1448 ## ---------------- ##
1449 _ASBOX
1450 echo
1451 # The following way of writing the cache mishandles newlines in values,
1452 (
1453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1454 eval ac_val=\$$ac_var
1455 case $ac_val in #(
1456 *${as_nl}*)
1457 case $ac_var in #(
1458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1460 esac
1461 case $ac_var in #(
1462 _ | IFS | as_nl) ;; #(
1463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1464 *) { eval $ac_var=; unset $ac_var;} ;;
1465 esac ;;
1466 esac
1467 done
1468 (set) 2>&1 |
1469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1470 *${as_nl}ac_space=\ *)
1471 sed -n \
1472 "s/'\''/'\''\\\\'\'''\''/g;
1473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1474 ;; #(
1475 *)
1476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1477 ;;
1478 esac |
1479 sort
1480 )
1481 echo
1482
1483 cat <<\_ASBOX
1484 ## ----------------- ##
1485 ## Output variables. ##
1486 ## ----------------- ##
1487 _ASBOX
1488 echo
1489 for ac_var in $ac_subst_vars
1490 do
1491 eval ac_val=\$$ac_var
1492 case $ac_val in
1493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1494 esac
1495 $as_echo "$ac_var='\''$ac_val'\''"
1496 done | sort
1497 echo
1498
1499 if test -n "$ac_subst_files"; then
1500 cat <<\_ASBOX
1501 ## ------------------- ##
1502 ## File substitutions. ##
1503 ## ------------------- ##
1504 _ASBOX
1505 echo
1506 for ac_var in $ac_subst_files
1507 do
1508 eval ac_val=\$$ac_var
1509 case $ac_val in
1510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1511 esac
1512 $as_echo "$ac_var='\''$ac_val'\''"
1513 done | sort
1514 echo
1515 fi
1516
1517 if test -s confdefs.h; then
1518 cat <<\_ASBOX
1519 ## ----------- ##
1520 ## confdefs.h. ##
1521 ## ----------- ##
1522 _ASBOX
1523 echo
1524 cat confdefs.h
1525 echo
1526 fi
1527 test "$ac_signal" != 0 &&
1528 $as_echo "$as_me: caught signal $ac_signal"
1529 $as_echo "$as_me: exit $exit_status"
1530 } >&5
1531 rm -f core *.core core.conftest.* &&
1532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1533 exit $exit_status
1534 ' 0
1535 for ac_signal in 1 2 13 15; do
1536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1537 done
1538 ac_signal=0
1539
1540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1541 rm -f -r conftest* confdefs.h
1542
1543 $as_echo "/* confdefs.h */" > confdefs.h
1544
1545 # Predefined preprocessor variables.
1546
1547 cat >>confdefs.h <<_ACEOF
1548 #define PACKAGE_NAME "$PACKAGE_NAME"
1549 _ACEOF
1550
1551 cat >>confdefs.h <<_ACEOF
1552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1553 _ACEOF
1554
1555 cat >>confdefs.h <<_ACEOF
1556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1557 _ACEOF
1558
1559 cat >>confdefs.h <<_ACEOF
1560 #define PACKAGE_STRING "$PACKAGE_STRING"
1561 _ACEOF
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565 _ACEOF
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define PACKAGE_URL "$PACKAGE_URL"
1569 _ACEOF
1570
1571
1572 # Let the site file select an alternate cache file if it wants to.
1573 # Prefer an explicitly selected file to automatically selected ones.
1574 ac_site_file1=NONE
1575 ac_site_file2=NONE
1576 if test -n "$CONFIG_SITE"; then
1577 ac_site_file1=$CONFIG_SITE
1578 elif test "x$prefix" != xNONE; then
1579 ac_site_file1=$prefix/share/config.site
1580 ac_site_file2=$prefix/etc/config.site
1581 else
1582 ac_site_file1=$ac_default_prefix/share/config.site
1583 ac_site_file2=$ac_default_prefix/etc/config.site
1584 fi
1585 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1586 do
1587 test "x$ac_site_file" = xNONE && continue
1588 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1590 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1591 sed 's/^/| /' "$ac_site_file" >&5
1592 . "$ac_site_file"
1593 fi
1594 done
1595
1596 if test -r "$cache_file"; then
1597 # Some versions of bash will fail to source /dev/null (special files
1598 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1599 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1601 $as_echo "$as_me: loading cache $cache_file" >&6;}
1602 case $cache_file in
1603 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1604 *) . "./$cache_file";;
1605 esac
1606 fi
1607 else
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1609 $as_echo "$as_me: creating cache $cache_file" >&6;}
1610 >$cache_file
1611 fi
1612
1613 # Check that the precious variables saved in the cache have kept the same
1614 # value.
1615 ac_cache_corrupted=false
1616 for ac_var in $ac_precious_vars; do
1617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1618 eval ac_new_set=\$ac_env_${ac_var}_set
1619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1620 eval ac_new_val=\$ac_env_${ac_var}_value
1621 case $ac_old_set,$ac_new_set in
1622 set,)
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1624 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1625 ac_cache_corrupted=: ;;
1626 ,set)
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1628 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1629 ac_cache_corrupted=: ;;
1630 ,);;
1631 *)
1632 if test "x$ac_old_val" != "x$ac_new_val"; then
1633 # differences in whitespace do not lead to failure.
1634 ac_old_val_w=`echo x $ac_old_val`
1635 ac_new_val_w=`echo x $ac_new_val`
1636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1638 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1639 ac_cache_corrupted=:
1640 else
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1642 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1643 eval $ac_var=\$ac_old_val
1644 fi
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1646 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1648 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1649 fi;;
1650 esac
1651 # Pass precious variables to config.status.
1652 if test "$ac_new_set" = set; then
1653 case $ac_new_val in
1654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 *) ac_arg=$ac_var=$ac_new_val ;;
1656 esac
1657 case " $ac_configure_args " in
1658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1660 esac
1661 fi
1662 done
1663 if $ac_cache_corrupted; then
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1667 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1668 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1669 fi
1670 ## -------------------- ##
1671 ## Main body of script. ##
1672 ## -------------------- ##
1673
1674 ac_ext=c
1675 ac_cpp='$CPP $CPPFLAGS'
1676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679
1680
1681
1682 am__api_version='1.11'
1683
1684 ac_aux_dir=
1685 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1686 for ac_t in install-sh install.sh shtool; do
1687 if test -f "$ac_dir/$ac_t"; then
1688 ac_aux_dir=$ac_dir
1689 ac_install_sh="$ac_aux_dir/$ac_t -c"
1690 break 2
1691 fi
1692 done
1693 done
1694 if test -z "$ac_aux_dir"; then
1695 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1696 fi
1697
1698 # These three variables are undocumented and unsupported,
1699 # and are intended to be withdrawn in a future Autoconf release.
1700 # They can cause serious problems if a builder's source tree is in a directory
1701 # whose full name contains unusual characters.
1702 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1703 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1704 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1705
1706
1707 # Find a good install program. We prefer a C program (faster),
1708 # so one script is as good as another. But avoid the broken or
1709 # incompatible versions:
1710 # SysV /etc/install, /usr/sbin/install
1711 # SunOS /usr/etc/install
1712 # IRIX /sbin/install
1713 # AIX /bin/install
1714 # AmigaOS /C/install, which installs bootblocks on floppy discs
1715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1718 # OS/2's system install, which has a completely different semantic
1719 # ./install, which can be erroneously created by make from ./install.sh.
1720 # Reject install programs that cannot install multiple files.
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1723 if test -z "$INSTALL"; then
1724 if test "${ac_cv_path_install+set}" = set; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 # Account for people who put trailing slashes in PATH elements.
1733 case $as_dir/ in #((
1734 ./ | .// | /[cC]/* | \
1735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1737 /usr/ucb/* ) ;;
1738 *)
1739 # OSF1 and SCO ODT 3.0 have their own names for install.
1740 # Don't use installbsd from OSF since it installs stuff as root
1741 # by default.
1742 for ac_prog in ginstall scoinst install; do
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1745 if test $ac_prog = install &&
1746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1747 # AIX install. It has an incompatible calling convention.
1748 :
1749 elif test $ac_prog = install &&
1750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751 # program-specific install script used by HP pwplus--don't use.
1752 :
1753 else
1754 rm -rf conftest.one conftest.two conftest.dir
1755 echo one > conftest.one
1756 echo two > conftest.two
1757 mkdir conftest.dir
1758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1759 test -s conftest.one && test -s conftest.two &&
1760 test -s conftest.dir/conftest.one &&
1761 test -s conftest.dir/conftest.two
1762 then
1763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1764 break 3
1765 fi
1766 fi
1767 fi
1768 done
1769 done
1770 ;;
1771 esac
1772
1773 done
1774 IFS=$as_save_IFS
1775
1776 rm -rf conftest.one conftest.two conftest.dir
1777
1778 fi
1779 if test "${ac_cv_path_install+set}" = set; then
1780 INSTALL=$ac_cv_path_install
1781 else
1782 # As a last resort, use the slow shell script. Don't cache a
1783 # value for INSTALL within a source directory, because that will
1784 # break other packages using the cache if that directory is
1785 # removed, or if the value is a relative name.
1786 INSTALL=$ac_install_sh
1787 fi
1788 fi
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1790 $as_echo "$INSTALL" >&6; }
1791
1792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1793 # It thinks the first close brace ends the variable substitution.
1794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1795
1796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1797
1798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1799
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1801 $as_echo_n "checking whether build environment is sane... " >&6; }
1802 # Just in case
1803 sleep 1
1804 echo timestamp > conftest.file
1805 # Reject unsafe characters in $srcdir or the absolute working directory
1806 # name. Accept space and tab only in the latter.
1807 am_lf='
1808 '
1809 case `pwd` in
1810 *[\\\"\#\$\&\'\`$am_lf]*)
1811 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
1812 esac
1813 case $srcdir in
1814 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1815 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1816 esac
1817
1818 # Do `set' in a subshell so we don't clobber the current shell's
1819 # arguments. Must try -L first in case configure is actually a
1820 # symlink; some systems play weird games with the mod time of symlinks
1821 # (eg FreeBSD returns the mod time of the symlink's containing
1822 # directory).
1823 if (
1824 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1825 if test "$*" = "X"; then
1826 # -L didn't work.
1827 set X `ls -t "$srcdir/configure" conftest.file`
1828 fi
1829 rm -f conftest.file
1830 if test "$*" != "X $srcdir/configure conftest.file" \
1831 && test "$*" != "X conftest.file $srcdir/configure"; then
1832
1833 # If neither matched, then we have a broken ls. This can happen
1834 # if, for instance, CONFIG_SHELL is bash and it inherits a
1835 # broken ls alias from the environment. This has actually
1836 # happened. Such a system could not be considered "sane".
1837 as_fn_error "ls -t appears to fail. Make sure there is not a broken
1838 alias in your environment" "$LINENO" 5
1839 fi
1840
1841 test "$2" = conftest.file
1842 )
1843 then
1844 # Ok.
1845 :
1846 else
1847 as_fn_error "newly created file is older than distributed files!
1848 Check your system clock" "$LINENO" 5
1849 fi
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1851 $as_echo "yes" >&6; }
1852 test "$program_prefix" != NONE &&
1853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1854 # Use a double $ so make ignores it.
1855 test "$program_suffix" != NONE &&
1856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1857 # Double any \ or $.
1858 # By default was `s,x,x', remove it if useless.
1859 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1860 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1861
1862 # expand $ac_aux_dir to an absolute path
1863 am_aux_dir=`cd $ac_aux_dir && pwd`
1864
1865 if test x"${MISSING+set}" != xset; then
1866 case $am_aux_dir in
1867 *\ * | *\ *)
1868 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1869 *)
1870 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1871 esac
1872 fi
1873 # Use eval to expand $SHELL
1874 if eval "$MISSING --run true"; then
1875 am_missing_run="$MISSING --run "
1876 else
1877 am_missing_run=
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1879 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1880 fi
1881
1882 if test x"${install_sh}" != xset; then
1883 case $am_aux_dir in
1884 *\ * | *\ *)
1885 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1886 *)
1887 install_sh="\${SHELL} $am_aux_dir/install-sh"
1888 esac
1889 fi
1890
1891 # Installed binaries are usually stripped using `strip' when the user
1892 # run `make install-strip'. However `strip' might not be the right
1893 # tool to use in cross-compilation environments, therefore Automake
1894 # will honor the `STRIP' environment variable to overrule this program.
1895 if test "$cross_compiling" != no; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}strip; ac_word=$2
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1900 $as_echo_n "checking for $ac_word... " >&6; }
1901 if test "${ac_cv_prog_STRIP+set}" = set; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 if test -n "$STRIP"; then
1905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918 done
1919 done
1920 IFS=$as_save_IFS
1921
1922 fi
1923 fi
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
1927 $as_echo "$STRIP" >&6; }
1928 else
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1930 $as_echo "no" >&6; }
1931 fi
1932
1933
1934 fi
1935 if test -z "$ac_cv_prog_STRIP"; then
1936 ac_ct_STRIP=$STRIP
1937 # Extract the first word of "strip", so it can be a program name with args.
1938 set dummy strip; ac_word=$2
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1940 $as_echo_n "checking for $ac_word... " >&6; }
1941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 if test -n "$ac_ct_STRIP"; then
1945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1954 ac_cv_prog_ac_ct_STRIP="strip"
1955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1957 fi
1958 done
1959 done
1960 IFS=$as_save_IFS
1961
1962 fi
1963 fi
1964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1965 if test -n "$ac_ct_STRIP"; then
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
1967 $as_echo "$ac_ct_STRIP" >&6; }
1968 else
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1970 $as_echo "no" >&6; }
1971 fi
1972
1973 if test "x$ac_ct_STRIP" = x; then
1974 STRIP=":"
1975 else
1976 case $cross_compiling:$ac_tool_warned in
1977 yes:)
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1980 ac_tool_warned=yes ;;
1981 esac
1982 STRIP=$ac_ct_STRIP
1983 fi
1984 else
1985 STRIP="$ac_cv_prog_STRIP"
1986 fi
1987
1988 fi
1989 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1990
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
1992 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
1993 if test -z "$MKDIR_P"; then
1994 if test "${ac_cv_path_mkdir+set}" = set; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_prog in mkdir gmkdir; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2006 'mkdir (GNU coreutils) '* | \
2007 'mkdir (coreutils) '* | \
2008 'mkdir (fileutils) '4.1*)
2009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2010 break 3;;
2011 esac
2012 done
2013 done
2014 done
2015 IFS=$as_save_IFS
2016
2017 fi
2018
2019 test -d ./--version && rmdir ./--version
2020 if test "${ac_cv_path_mkdir+set}" = set; then
2021 MKDIR_P="$ac_cv_path_mkdir -p"
2022 else
2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for MKDIR_P within a source directory, because that will
2025 # break other packages using the cache if that directory is
2026 # removed, or if the value is a relative name.
2027 MKDIR_P="$ac_install_sh -d"
2028 fi
2029 fi
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2031 $as_echo "$MKDIR_P" >&6; }
2032
2033 mkdir_p="$MKDIR_P"
2034 case $mkdir_p in
2035 [\\/$]* | ?:[\\/]*) ;;
2036 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2037 esac
2038
2039 for ac_prog in gawk mawk nawk awk
2040 do
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2044 $as_echo_n "checking for $ac_word... " >&6; }
2045 if test "${ac_cv_prog_AWK+set}" = set; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 if test -n "$AWK"; then
2049 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_AWK="$ac_prog"
2059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064 IFS=$as_save_IFS
2065
2066 fi
2067 fi
2068 AWK=$ac_cv_prog_AWK
2069 if test -n "$AWK"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2071 $as_echo "$AWK" >&6; }
2072 else
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2074 $as_echo "no" >&6; }
2075 fi
2076
2077
2078 test -n "$AWK" && break
2079 done
2080
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2082 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2083 set x ${MAKE-make}
2084 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2085 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat >conftest.make <<\_ACEOF
2089 SHELL = /bin/sh
2090 all:
2091 @echo '@@@%%%=$(MAKE)=@@@%%%'
2092 _ACEOF
2093 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2095 *@@@%%%=?*=@@@%%%*)
2096 eval ac_cv_prog_make_${ac_make}_set=yes;;
2097 *)
2098 eval ac_cv_prog_make_${ac_make}_set=no;;
2099 esac
2100 rm -f conftest.make
2101 fi
2102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2104 $as_echo "yes" >&6; }
2105 SET_MAKE=
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2108 $as_echo "no" >&6; }
2109 SET_MAKE="MAKE=${MAKE-make}"
2110 fi
2111
2112 rm -rf .tst 2>/dev/null
2113 mkdir .tst 2>/dev/null
2114 if test -d .tst; then
2115 am__leading_dot=.
2116 else
2117 am__leading_dot=_
2118 fi
2119 rmdir .tst 2>/dev/null
2120
2121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2123 # is not polluted with repeated "-I."
2124 am__isrc=' -I$(srcdir)'
2125 # test to see if srcdir already configured
2126 if test -f $srcdir/config.status; then
2127 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2128 fi
2129 fi
2130
2131 # test whether we have cygpath
2132 if test -z "$CYGPATH_W"; then
2133 if (cygpath --version) >/dev/null 2>/dev/null; then
2134 CYGPATH_W='cygpath -w'
2135 else
2136 CYGPATH_W=echo
2137 fi
2138 fi
2139
2140
2141 # Define the identity of the package.
2142 PACKAGE='xcb-proto'
2143 VERSION='1.6'
2144
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE "$PACKAGE"
2148 _ACEOF
2149
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define VERSION "$VERSION"
2153 _ACEOF
2154
2155 # Some tools Automake needs.
2156
2157 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2158
2159
2160 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2161
2162
2163 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2164
2165
2166 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2167
2168
2169 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2170
2171 # We need awk for the "check" target. The system "awk" is bad on
2172 # some platforms.
2173 # Always define AMTAR for backward compatibility.
2174
2175 AMTAR=${AMTAR-"${am_missing_run}tar"}
2176
2177 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2178
2179
2180
2181
2182
2183
2184 # Extract the first word of "xmllint", so it can be a program name with args.
2185 set dummy xmllint; ac_word=$2
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2187 $as_echo_n "checking for $ac_word... " >&6; }
2188 if test "${ac_cv_path_XMLLINT+set}" = set; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 case $XMLLINT in
2192 [\\/]* | ?:[\\/]*)
2193 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
2194 ;;
2195 *)
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
2204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
2212 ;;
2213 esac
2214 fi
2215 XMLLINT=$ac_cv_path_XMLLINT
2216 if test -n "$XMLLINT"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
2218 $as_echo "$XMLLINT" >&6; }
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2221 $as_echo "no" >&6; }
2222 fi
2223
2224
2225 if test "x$XMLLINT" != "xno"; then
2226 HAVE_XMLLINT_TRUE=
2227 HAVE_XMLLINT_FALSE='#'
2228 else
2229 HAVE_XMLLINT_TRUE='#'
2230 HAVE_XMLLINT_FALSE=
2231 fi
2232
2233 if test "$XMLLINT" = "no"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmllint not found; unable to validate against schema." >&5
2235 $as_echo "$as_me: WARNING: xmllint not found; unable to validate against schema." >&2;}
2236 fi
2237
2238
2239
2240
2241
2242 if test -n "$PYTHON"; then
2243 # If the user set $PYTHON, use it and don't search something else.
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
2245 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
2246 prog="import sys
2247 # split strings by '.' and convert to numeric. Append some zeros
2248 # because we need at least 4 digits for the hex conversion.
2249 # map returns an iterator in Python 3.0 and a list in 2.x
2250 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
2251 minverhex = 0
2252 # xrange is not present in Python 3.0 and range returns an iterator
2253 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
2254 sys.exit(sys.hexversion < minverhex)"
2255 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
2256 ($PYTHON -c "$prog") >&5 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then :
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2261 $as_echo "yes" >&6; }
2262 else
2263 as_fn_error "too old" "$LINENO" 5
2264 fi
2265 am_display_PYTHON=$PYTHON
2266 else
2267 # Otherwise, try each interpreter until we find one that satisfies
2268 # VERSION.
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
2270 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
2271 if test "${am_cv_pathless_PYTHON+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274
2275 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
2276 test "$am_cv_pathless_PYTHON" = none && break
2277 prog="import sys
2278 # split strings by '.' and convert to numeric. Append some zeros
2279 # because we need at least 4 digits for the hex conversion.
2280 # map returns an iterator in Python 3.0 and a list in 2.x
2281 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
2282 minverhex = 0
2283 # xrange is not present in Python 3.0 and range returns an iterator
2284 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
2285 sys.exit(sys.hexversion < minverhex)"
2286 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
2287 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then :
2291 break
2292 fi
2293 done
2294 fi
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
2296 $as_echo "$am_cv_pathless_PYTHON" >&6; }
2297 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
2298 if test "$am_cv_pathless_PYTHON" = none; then
2299 PYTHON=:
2300 else
2301 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
2302 set dummy $am_cv_pathless_PYTHON; ac_word=$2
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2304 $as_echo_n "checking for $ac_word... " >&6; }
2305 if test "${ac_cv_path_PYTHON+set}" = set; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 case $PYTHON in
2309 [\\/]* | ?:[\\/]*)
2310 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2311 ;;
2312 *)
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 ;;
2329 esac
2330 fi
2331 PYTHON=$ac_cv_path_PYTHON
2332 if test -n "$PYTHON"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
2334 $as_echo "$PYTHON" >&6; }
2335 else
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2337 $as_echo "no" >&6; }
2338 fi
2339
2340
2341 fi
2342 am_display_PYTHON=$am_cv_pathless_PYTHON
2343 fi
2344
2345
2346 if test "$PYTHON" = :; then
2347 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
2348 else
2349
2350
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
2352 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
2353 if test "${am_cv_python_version+set}" = set; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
2359 $as_echo "$am_cv_python_version" >&6; }
2360 PYTHON_VERSION=$am_cv_python_version
2361
2362
2363
2364 PYTHON_PREFIX='${prefix}'
2365
2366 PYTHON_EXEC_PREFIX='${exec_prefix}'
2367
2368
2369
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
2371 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
2372 if test "${am_cv_python_platform+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
2378 $as_echo "$am_cv_python_platform" >&6; }
2379 PYTHON_PLATFORM=$am_cv_python_platform
2380
2381
2382
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
2385 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
2386 if test "${am_cv_python_pythondir+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test "x$prefix" = xNONE
2390 then
2391 am_py_prefix=$ac_default_prefix
2392 else
2393 am_py_prefix=$prefix
2394 fi
2395 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
2396 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
2397 case $am_cv_python_pythondir in
2398 $am_py_prefix*)
2399 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
2400 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
2401 ;;
2402 esac
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2406 $as_echo "$am_cv_python_pythondir" >&6; }
2407 pythondir=$am_cv_python_pythondir
2408
2409
2410
2411 pkgpythondir=\${pythondir}/$PACKAGE
2412
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2415 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2416 if test "${am_cv_python_pyexecdir+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test "x$exec_prefix" = xNONE
2420 then
2421 am_py_exec_prefix=$am_py_prefix
2422 else
2423 am_py_exec_prefix=$exec_prefix
2424 fi
2425 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
2426 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
2427 case $am_cv_python_pyexecdir in
2428 $am_py_exec_prefix*)
2429 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2430 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2431 ;;
2432 esac
2433
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2436 $as_echo "$am_cv_python_pyexecdir" >&6; }
2437 pyexecdir=$am_cv_python_pyexecdir
2438
2439
2440
2441 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2442
2443
2444
2445 fi
2446
2447
2448
2449 xcbincludedir='${datadir}/xcb'
2450
2451
2452 ac_config_files="$ac_config_files Makefile src/Makefile xcbgen/Makefile xcb-proto.pc"
2453
2454 cat >confcache <<\_ACEOF
2455 # This file is a shell script that caches the results of configure
2456 # tests run on this system so they can be shared between configure
2457 # scripts and configure runs, see configure's option --config-cache.
2458 # It is not useful on other systems. If it contains results you don't
2459 # want to keep, you may remove or edit it.
2460 #
2461 # config.status only pays attention to the cache file if you give it
2462 # the --recheck option to rerun configure.
2463 #
2464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2466 # following values.
2467
2468 _ACEOF
2469
2470 # The following way of writing the cache mishandles newlines in values,
2471 # but we know of no workaround that is simple, portable, and efficient.
2472 # So, we kill variables containing newlines.
2473 # Ultrix sh set writes to stderr and can't be redirected directly,
2474 # and sets the high bit in the cache file unless we assign to the vars.
2475 (
2476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in #(
2479 *${as_nl}*)
2480 case $ac_var in #(
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 esac
2484 case $ac_var in #(
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2488 esac ;;
2489 esac
2490 done
2491
2492 (set) 2>&1 |
2493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2494 *${as_nl}ac_space=\ *)
2495 # `set' does not quote correctly, so add quotes: double-quote
2496 # substitution turns \\\\ into \\, and sed turns \\ into \.
2497 sed -n \
2498 "s/'/'\\\\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2500 ;; #(
2501 *)
2502 # `set' quotes correctly as required by POSIX, so do not add quotes.
2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 ;;
2505 esac |
2506 sort
2507 ) |
2508 sed '
2509 /^ac_cv_env_/b end
2510 t clear
2511 :clear
2512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2513 t end
2514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2515 :end' >>confcache
2516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2517 if test -w "$cache_file"; then
2518 test "x$cache_file" != "x/dev/null" &&
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2520 $as_echo "$as_me: updating cache $cache_file" >&6;}
2521 cat confcache >$cache_file
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2524 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2525 fi
2526 fi
2527 rm -f confcache
2528
2529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2530 # Let make expand exec_prefix.
2531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2532
2533 # Transform confdefs.h into DEFS.
2534 # Protect against shell expansion while executing Makefile rules.
2535 # Protect against Makefile macro expansion.
2536 #
2537 # If the first sed substitution is executed (which looks for macros that
2538 # take arguments), then branch to the quote section. Otherwise,
2539 # look for a macro that doesn't take arguments.
2540 ac_script='
2541 :mline
2542 /\\$/{
2543 N
2544 s,\\\n,,
2545 b mline
2546 }
2547 t clear
2548 :clear
2549 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2550 t quote
2551 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2552 t quote
2553 b any
2554 :quote
2555 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2556 s/\[/\\&/g
2557 s/\]/\\&/g
2558 s/\$/$$/g
2559 H
2560 :any
2561 ${
2562 g
2563 s/^\n//
2564 s/\n/ /g
2565 p
2566 }
2567 '
2568 DEFS=`sed -n "$ac_script" confdefs.h`
2569
2570
2571 ac_libobjs=
2572 ac_ltlibobjs=
2573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2574 # 1. Remove the extension, and $U if already installed.
2575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2578 # will be set to the directory where LIBOBJS objects are built.
2579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2581 done
2582 LIBOBJS=$ac_libobjs
2583
2584 LTLIBOBJS=$ac_ltlibobjs
2585
2586
2587
2588 if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then
2589 as_fn_error "conditional \"HAVE_XMLLINT\" was never defined.
2590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2591 fi
2592
2593 : ${CONFIG_STATUS=./config.status}
2594 ac_write_fail=0
2595 ac_clean_files_save=$ac_clean_files
2596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2598 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2599 as_write_fail=0
2600 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2601 #! $SHELL
2602 # Generated by $as_me.
2603 # Run this file to recreate the current configuration.
2604 # Compiler output produced by configure, useful for debugging
2605 # configure, is in config.log if it exists.
2606
2607 debug=false
2608 ac_cs_recheck=false
2609 ac_cs_silent=false
2610
2611 SHELL=\${CONFIG_SHELL-$SHELL}
2612 export SHELL
2613 _ASEOF
2614 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2615 ## -------------------- ##
2616 ## M4sh Initialization. ##
2617 ## -------------------- ##
2618
2619 # Be more Bourne compatible
2620 DUALCASE=1; export DUALCASE # for MKS sh
2621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2622 emulate sh
2623 NULLCMD=:
2624 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2625 # is contrary to our usage. Disable this feature.
2626 alias -g '${1+"$@"}'='"$@"'
2627 setopt NO_GLOB_SUBST
2628 else
2629 case `(set -o) 2>/dev/null` in #(
2630 *posix*) :
2631 set -o posix ;; #(
2632 *) :
2633 ;;
2634 esac
2635 fi
2636
2637
2638 as_nl='
2639 '
2640 export as_nl
2641 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2642 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2645 # Prefer a ksh shell builtin over an external printf program on Solaris,
2646 # but without wasting forks for bash or zsh.
2647 if test -z "$BASH_VERSION$ZSH_VERSION" \
2648 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2649 as_echo='print -r --'
2650 as_echo_n='print -rn --'
2651 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2652 as_echo='printf %s\n'
2653 as_echo_n='printf %s'
2654 else
2655 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2656 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2657 as_echo_n='/usr/ucb/echo -n'
2658 else
2659 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2660 as_echo_n_body='eval
2661 arg=$1;
2662 case $arg in #(
2663 *"$as_nl"*)
2664 expr "X$arg" : "X\\(.*\\)$as_nl";
2665 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2666 esac;
2667 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2668 '
2669 export as_echo_n_body
2670 as_echo_n='sh -c $as_echo_n_body as_echo'
2671 fi
2672 export as_echo_body
2673 as_echo='sh -c $as_echo_body as_echo'
2674 fi
2675
2676 # The user is always right.
2677 if test "${PATH_SEPARATOR+set}" != set; then
2678 PATH_SEPARATOR=:
2679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2680 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2681 PATH_SEPARATOR=';'
2682 }
2683 fi
2684
2685
2686 # IFS
2687 # We need space, tab and new line, in precisely that order. Quoting is
2688 # there to prevent editors from complaining about space-tab.
2689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2690 # splitting by setting IFS to empty value.)
2691 IFS=" "" $as_nl"
2692
2693 # Find who we are. Look in the path if we contain no directory separator.
2694 case $0 in #((
2695 *[\\/]* ) as_myself=$0 ;;
2696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2702 done
2703 IFS=$as_save_IFS
2704
2705 ;;
2706 esac
2707 # We did not find ourselves, most probably we were run as `sh COMMAND'
2708 # in which case we are not to be found in the path.
2709 if test "x$as_myself" = x; then
2710 as_myself=$0
2711 fi
2712 if test ! -f "$as_myself"; then
2713 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2714 exit 1
2715 fi
2716
2717 # Unset variables that we do not need and which cause bugs (e.g. in
2718 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2719 # suppresses any "Segmentation fault" message there. '((' could
2720 # trigger a bug in pdksh 5.2.14.
2721 for as_var in BASH_ENV ENV MAIL MAILPATH
2722 do eval test x\${$as_var+set} = xset \
2723 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2724 done
2725 PS1='$ '
2726 PS2='> '
2727 PS4='+ '
2728
2729 # NLS nuisances.
2730 LC_ALL=C
2731 export LC_ALL
2732 LANGUAGE=C
2733 export LANGUAGE
2734
2735 # CDPATH.
2736 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2737
2738
2739 # as_fn_error ERROR [LINENO LOG_FD]
2740 # ---------------------------------
2741 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2742 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2743 # script with status $?, using 1 if that was 0.
2744 as_fn_error ()
2745 {
2746 as_status=$?; test $as_status -eq 0 && as_status=1
2747 if test "$3"; then
2748 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
2750 fi
2751 $as_echo "$as_me: error: $1" >&2
2752 as_fn_exit $as_status
2753 } # as_fn_error
2754
2755
2756 # as_fn_set_status STATUS
2757 # -----------------------
2758 # Set $? to STATUS, without forking.
2759 as_fn_set_status ()
2760 {
2761 return $1
2762 } # as_fn_set_status
2763
2764 # as_fn_exit STATUS
2765 # -----------------
2766 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2767 as_fn_exit ()
2768 {
2769 set +e
2770 as_fn_set_status $1
2771 exit $1
2772 } # as_fn_exit
2773
2774 # as_fn_unset VAR
2775 # ---------------
2776 # Portably unset VAR.
2777 as_fn_unset ()
2778 {
2779 { eval $1=; unset $1;}
2780 }
2781 as_unset=as_fn_unset
2782 # as_fn_append VAR VALUE
2783 # ----------------------
2784 # Append the text in VALUE to the end of the definition contained in VAR. Take
2785 # advantage of any shell optimizations that allow amortized linear growth over
2786 # repeated appends, instead of the typical quadratic growth present in naive
2787 # implementations.
2788 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2789 eval 'as_fn_append ()
2790 {
2791 eval $1+=\$2
2792 }'
2793 else
2794 as_fn_append ()
2795 {
2796 eval $1=\$$1\$2
2797 }
2798 fi # as_fn_append
2799
2800 # as_fn_arith ARG...
2801 # ------------------
2802 # Perform arithmetic evaluation on the ARGs, and store the result in the
2803 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2804 # must be portable across $(()) and expr.
2805 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2806 eval 'as_fn_arith ()
2807 {
2808 as_val=$(( $* ))
2809 }'
2810 else
2811 as_fn_arith ()
2812 {
2813 as_val=`expr "$@" || test $? -eq 1`
2814 }
2815 fi # as_fn_arith
2816
2817
2818 if expr a : '\(a\)' >/dev/null 2>&1 &&
2819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2820 as_expr=expr
2821 else
2822 as_expr=false
2823 fi
2824
2825 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2826 as_basename=basename
2827 else
2828 as_basename=false
2829 fi
2830
2831 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2832 as_dirname=dirname
2833 else
2834 as_dirname=false
2835 fi
2836
2837 as_me=`$as_basename -- "$0" ||
2838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2839 X"$0" : 'X\(//\)$' \| \
2840 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2841 $as_echo X/"$0" |
2842 sed '/^.*\/\([^/][^/]*\)\/*$/{
2843 s//\1/
2844 q
2845 }
2846 /^X\/\(\/\/\)$/{
2847 s//\1/
2848 q
2849 }
2850 /^X\/\(\/\).*/{
2851 s//\1/
2852 q
2853 }
2854 s/.*/./; q'`
2855
2856 # Avoid depending upon Character Ranges.
2857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2860 as_cr_digits='0123456789'
2861 as_cr_alnum=$as_cr_Letters$as_cr_digits
2862
2863 ECHO_C= ECHO_N= ECHO_T=
2864 case `echo -n x` in #(((((
2865 -n*)
2866 case `echo 'xy\c'` in
2867 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2868 xy) ECHO_C='\c';;
2869 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2870 ECHO_T=' ';;
2871 esac;;
2872 *)
2873 ECHO_N='-n';;
2874 esac
2875
2876 rm -f conf$$ conf$$.exe conf$$.file
2877 if test -d conf$$.dir; then
2878 rm -f conf$$.dir/conf$$.file
2879 else
2880 rm -f conf$$.dir
2881 mkdir conf$$.dir 2>/dev/null
2882 fi
2883 if (echo >conf$$.file) 2>/dev/null; then
2884 if ln -s conf$$.file conf$$ 2>/dev/null; then
2885 as_ln_s='ln -s'
2886 # ... but there are two gotchas:
2887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2889 # In both cases, we have to default to `cp -p'.
2890 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2891 as_ln_s='cp -p'
2892 elif ln conf$$.file conf$$ 2>/dev/null; then
2893 as_ln_s=ln
2894 else
2895 as_ln_s='cp -p'
2896 fi
2897 else
2898 as_ln_s='cp -p'
2899 fi
2900 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2901 rmdir conf$$.dir 2>/dev/null
2902
2903
2904 # as_fn_mkdir_p
2905 # -------------
2906 # Create "$as_dir" as a directory, including parents if necessary.
2907 as_fn_mkdir_p ()
2908 {
2909
2910 case $as_dir in #(
2911 -*) as_dir=./$as_dir;;
2912 esac
2913 test -d "$as_dir" || eval $as_mkdir_p || {
2914 as_dirs=
2915 while :; do
2916 case $as_dir in #(
2917 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2918 *) as_qdir=$as_dir;;
2919 esac
2920 as_dirs="'$as_qdir' $as_dirs"
2921 as_dir=`$as_dirname -- "$as_dir" ||
2922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2923 X"$as_dir" : 'X\(//\)[^/]' \| \
2924 X"$as_dir" : 'X\(//\)$' \| \
2925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2926 $as_echo X"$as_dir" |
2927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2928 s//\1/
2929 q
2930 }
2931 /^X\(\/\/\)[^/].*/{
2932 s//\1/
2933 q
2934 }
2935 /^X\(\/\/\)$/{
2936 s//\1/
2937 q
2938 }
2939 /^X\(\/\).*/{
2940 s//\1/
2941 q
2942 }
2943 s/.*/./; q'`
2944 test -d "$as_dir" && break
2945 done
2946 test -z "$as_dirs" || eval "mkdir $as_dirs"
2947 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
2948
2949
2950 } # as_fn_mkdir_p
2951 if mkdir -p . 2>/dev/null; then
2952 as_mkdir_p='mkdir -p "$as_dir"'
2953 else
2954 test -d ./-p && rmdir ./-p
2955 as_mkdir_p=false
2956 fi
2957
2958 if test -x / >/dev/null 2>&1; then
2959 as_test_x='test -x'
2960 else
2961 if ls -dL / >/dev/null 2>&1; then
2962 as_ls_L_option=L
2963 else
2964 as_ls_L_option=
2965 fi
2966 as_test_x='
2967 eval sh -c '\''
2968 if test -d "$1"; then
2969 test -d "$1/.";
2970 else
2971 case $1 in #(
2972 -*)set "./$1";;
2973 esac;
2974 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
2975 ???[sx]*):;;*)false;;esac;fi
2976 '\'' sh
2977 '
2978 fi
2979 as_executable_p=$as_test_x
2980
2981 # Sed expression to map a string onto a valid CPP name.
2982 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2983
2984 # Sed expression to map a string onto a valid variable name.
2985 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2986
2987
2988 exec 6>&1
2989 ## ----------------------------------- ##
2990 ## Main body of $CONFIG_STATUS script. ##
2991 ## ----------------------------------- ##
2992 _ASEOF
2993 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2994
2995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2996 # Save the log message, to keep $0 and so on meaningful, and to
2997 # report actual input values of CONFIG_FILES etc. instead of their
2998 # values after options handling.
2999 ac_log="
3000 This file was extended by XCB Proto $as_me 1.6, which was
3001 generated by GNU Autoconf 2.65. Invocation command line was
3002
3003 CONFIG_FILES = $CONFIG_FILES
3004 CONFIG_HEADERS = $CONFIG_HEADERS
3005 CONFIG_LINKS = $CONFIG_LINKS
3006 CONFIG_COMMANDS = $CONFIG_COMMANDS
3007 $ $0 $@
3008
3009 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3010 "
3011
3012 _ACEOF
3013
3014 case $ac_config_files in *"
3015 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3016 esac
3017
3018
3019
3020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3021 # Files that config.status was made for.
3022 config_files="$ac_config_files"
3023
3024 _ACEOF
3025
3026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3027 ac_cs_usage="\
3028 \`$as_me' instantiates files and other configuration actions
3029 from templates according to the current configuration. Unless the files
3030 and actions are specified as TAGs, all are instantiated by default.
3031
3032 Usage: $0 [OPTION]... [TAG]...
3033
3034 -h, --help print this help, then exit
3035 -V, --version print version number and configuration settings, then exit
3036 --config print configuration, then exit
3037 -q, --quiet, --silent
3038 do not print progress messages
3039 -d, --debug don't remove temporary files
3040 --recheck update $as_me by reconfiguring in the same conditions
3041 --file=FILE[:TEMPLATE]
3042 instantiate the configuration file FILE
3043
3044 Configuration files:
3045 $config_files
3046
3047 Report bugs to <xcb (at] lists.freedesktop.org>."
3048
3049 _ACEOF
3050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3052 ac_cs_version="\\
3053 XCB Proto config.status 1.6
3054 configured by $0, generated by GNU Autoconf 2.65,
3055 with options \\"\$ac_cs_config\\"
3056
3057 Copyright (C) 2009 Free Software Foundation, Inc.
3058 This config.status script is free software; the Free Software Foundation
3059 gives unlimited permission to copy, distribute and modify it."
3060
3061 ac_pwd='$ac_pwd'
3062 srcdir='$srcdir'
3063 INSTALL='$INSTALL'
3064 MKDIR_P='$MKDIR_P'
3065 AWK='$AWK'
3066 test -n "\$AWK" || AWK=awk
3067 _ACEOF
3068
3069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3070 # The default lists apply if the user does not specify any file.
3071 ac_need_defaults=:
3072 while test $# != 0
3073 do
3074 case $1 in
3075 --*=*)
3076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3078 ac_shift=:
3079 ;;
3080 *)
3081 ac_option=$1
3082 ac_optarg=$2
3083 ac_shift=shift
3084 ;;
3085 esac
3086
3087 case $ac_option in
3088 # Handling of the options.
3089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3090 ac_cs_recheck=: ;;
3091 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3092 $as_echo "$ac_cs_version"; exit ;;
3093 --config | --confi | --conf | --con | --co | --c )
3094 $as_echo "$ac_cs_config"; exit ;;
3095 --debug | --debu | --deb | --de | --d | -d )
3096 debug=: ;;
3097 --file | --fil | --fi | --f )
3098 $ac_shift
3099 case $ac_optarg in
3100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3101 esac
3102 as_fn_append CONFIG_FILES " '$ac_optarg'"
3103 ac_need_defaults=false;;
3104 --he | --h | --help | --hel | -h )
3105 $as_echo "$ac_cs_usage"; exit ;;
3106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3108 ac_cs_silent=: ;;
3109
3110 # This is an error.
3111 -*) as_fn_error "unrecognized option: \`$1'
3112 Try \`$0 --help' for more information." ;;
3113
3114 *) as_fn_append ac_config_targets " $1"
3115 ac_need_defaults=false ;;
3116
3117 esac
3118 shift
3119 done
3120
3121 ac_configure_extra_args=
3122
3123 if $ac_cs_silent; then
3124 exec 6>/dev/null
3125 ac_configure_extra_args="$ac_configure_extra_args --silent"
3126 fi
3127
3128 _ACEOF
3129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3130 if \$ac_cs_recheck; then
3131 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3132 shift
3133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3134 CONFIG_SHELL='$SHELL'
3135 export CONFIG_SHELL
3136 exec "\$@"
3137 fi
3138
3139 _ACEOF
3140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3141 exec 5>>config.log
3142 {
3143 echo
3144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3145 ## Running $as_me. ##
3146 _ASBOX
3147 $as_echo "$ac_log"
3148 } >&5
3149
3150 _ACEOF
3151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3152 _ACEOF
3153
3154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3155
3156 # Handling of arguments.
3157 for ac_config_target in $ac_config_targets
3158 do
3159 case $ac_config_target in
3160 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3161 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3162 "xcbgen/Makefile") CONFIG_FILES="$CONFIG_FILES xcbgen/Makefile" ;;
3163 "xcb-proto.pc") CONFIG_FILES="$CONFIG_FILES xcb-proto.pc" ;;
3164
3165 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3166 esac
3167 done
3168
3169
3170 # If the user did not use the arguments to specify the items to instantiate,
3171 # then the envvar interface is used. Set only those that are not.
3172 # We use the long form for the default assignment because of an extremely
3173 # bizarre bug on SunOS 4.1.3.
3174 if $ac_need_defaults; then
3175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3176 fi
3177
3178 # Have a temporary directory for convenience. Make it in the build tree
3179 # simply because there is no reason against having it here, and in addition,
3180 # creating and moving files from /tmp can sometimes cause problems.
3181 # Hook for its removal unless debugging.
3182 # Note that there is a small window in which the directory will not be cleaned:
3183 # after its creation but before its name has been assigned to `$tmp'.
3184 $debug ||
3185 {
3186 tmp=
3187 trap 'exit_status=$?
3188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3189 ' 0
3190 trap 'as_fn_exit 1' 1 2 13 15
3191 }
3192 # Create a (secure) tmp directory for tmp files.
3193
3194 {
3195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3196 test -n "$tmp" && test -d "$tmp"
3197 } ||
3198 {
3199 tmp=./conf$$-$RANDOM
3200 (umask 077 && mkdir "$tmp")
3201 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3202
3203 # Set up the scripts for CONFIG_FILES section.
3204 # No need to generate them if there are no CONFIG_FILES.
3205 # This happens for instance with `./config.status config.h'.
3206 if test -n "$CONFIG_FILES"; then
3207
3208
3209 ac_cr=`echo X | tr X '\015'`
3210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3211 # But we know of no other shell where ac_cr would be empty at this
3212 # point, so we can use a bashism as a fallback.
3213 if test "x$ac_cr" = x; then
3214 eval ac_cr=\$\'\\r\'
3215 fi
3216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3218 ac_cs_awk_cr='\r'
3219 else
3220 ac_cs_awk_cr=$ac_cr
3221 fi
3222
3223 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3224 _ACEOF
3225
3226
3227 {
3228 echo "cat >conf$$subs.awk <<_ACEOF" &&
3229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3230 echo "_ACEOF"
3231 } >conf$$subs.sh ||
3232 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3234 ac_delim='%!_!# '
3235 for ac_last_try in false false false false false :; do
3236 . ./conf$$subs.sh ||
3237 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3238
3239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3240 if test $ac_delim_n = $ac_delim_num; then
3241 break
3242 elif $ac_last_try; then
3243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3244 else
3245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3246 fi
3247 done
3248 rm -f conf$$subs.sh
3249
3250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3251 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3252 _ACEOF
3253 sed -n '
3254 h
3255 s/^/S["/; s/!.*/"]=/
3256 p
3257 g
3258 s/^[^!]*!//
3259 :repl
3260 t repl
3261 s/'"$ac_delim"'$//
3262 t delim
3263 :nl
3264 h
3265 s/\(.\{148\}\)..*/\1/
3266 t more1
3267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3268 p
3269 n
3270 b repl
3271 :more1
3272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3273 p
3274 g
3275 s/.\{148\}//
3276 t nl
3277 :delim
3278 h
3279 s/\(.\{148\}\)..*/\1/
3280 t more2
3281 s/["\\]/\\&/g; s/^/"/; s/$/"/
3282 p
3283 b
3284 :more2
3285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3286 p
3287 g
3288 s/.\{148\}//
3289 t delim
3290 ' <conf$$subs.awk | sed '
3291 /^[^""]/{
3292 N
3293 s/\n//
3294 }
3295 ' >>$CONFIG_STATUS || ac_write_fail=1
3296 rm -f conf$$subs.awk
3297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3298 _ACAWK
3299 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3300 for (key in S) S_is_set[key] = 1
3301 FS = ""
3302
3303 }
3304 {
3305 line = $ 0
3306 nfields = split(line, field, "@")
3307 substed = 0
3308 len = length(field[1])
3309 for (i = 2; i < nfields; i++) {
3310 key = field[i]
3311 keylen = length(key)
3312 if (S_is_set[key]) {
3313 value = S[key]
3314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3315 len += length(value) + length(field[++i])
3316 substed = 1
3317 } else
3318 len += 1 + keylen
3319 }
3320
3321 print line
3322 }
3323
3324 _ACAWK
3325 _ACEOF
3326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3329 else
3330 cat
3331 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3332 || as_fn_error "could not setup config files machinery" "$LINENO" 5
3333 _ACEOF
3334
3335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3337 # trailing colons and then remove the whole line if VPATH becomes empty
3338 # (actually we leave an empty line to preserve line numbers).
3339 if test "x$srcdir" = x.; then
3340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3341 s/:*\$(srcdir):*/:/
3342 s/:*\${srcdir}:*/:/
3343 s/:*@srcdir@:*/:/
3344 s/^\([^=]*=[ ]*\):*/\1/
3345 s/:*$//
3346 s/^[^=]*=[ ]*$//
3347 }'
3348 fi
3349
3350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3351 fi # test -n "$CONFIG_FILES"
3352
3353
3354 eval set X " :F $CONFIG_FILES "
3355 shift
3356 for ac_tag
3357 do
3358 case $ac_tag in
3359 :[FHLC]) ac_mode=$ac_tag; continue;;
3360 esac
3361 case $ac_mode$ac_tag in
3362 :[FHL]*:*);;
3363 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3364 :[FH]-) ac_tag=-:-;;
3365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3366 esac
3367 ac_save_IFS=$IFS
3368 IFS=:
3369 set x $ac_tag
3370 IFS=$ac_save_IFS
3371 shift
3372 ac_file=$1
3373 shift
3374
3375 case $ac_mode in
3376 :L) ac_source=$1;;
3377 :[FH])
3378 ac_file_inputs=
3379 for ac_f
3380 do
3381 case $ac_f in
3382 -) ac_f="$tmp/stdin";;
3383 *) # Look for the file first in the build tree, then in the source tree
3384 # (if the path is not absolute). The absolute path cannot be DOS-style,
3385 # because $ac_f cannot contain `:'.
3386 test -f "$ac_f" ||
3387 case $ac_f in
3388 [\\/$]*) false;;
3389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3390 esac ||
3391 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3392 esac
3393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3394 as_fn_append ac_file_inputs " '$ac_f'"
3395 done
3396
3397 # Let's still pretend it is `configure' which instantiates (i.e., don't
3398 # use $as_me), people would be surprised to read:
3399 # /* config.h. Generated by config.status. */
3400 configure_input='Generated from '`
3401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3402 `' by configure.'
3403 if test x"$ac_file" != x-; then
3404 configure_input="$ac_file. $configure_input"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3406 $as_echo "$as_me: creating $ac_file" >&6;}
3407 fi
3408 # Neutralize special characters interpreted by sed in replacement strings.
3409 case $configure_input in #(
3410 *\&* | *\|* | *\\* )
3411 ac_sed_conf_input=`$as_echo "$configure_input" |
3412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3413 *) ac_sed_conf_input=$configure_input;;
3414 esac
3415
3416 case $ac_tag in
3417 *:-:* | *:-) cat >"$tmp/stdin" \
3418 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3419 esac
3420 ;;
3421 esac
3422
3423 ac_dir=`$as_dirname -- "$ac_file" ||
3424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3425 X"$ac_file" : 'X\(//\)[^/]' \| \
3426 X"$ac_file" : 'X\(//\)$' \| \
3427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3428 $as_echo X"$ac_file" |
3429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3430 s//\1/
3431 q
3432 }
3433 /^X\(\/\/\)[^/].*/{
3434 s//\1/
3435 q
3436 }
3437 /^X\(\/\/\)$/{
3438 s//\1/
3439 q
3440 }
3441 /^X\(\/\).*/{
3442 s//\1/
3443 q
3444 }
3445 s/.*/./; q'`
3446 as_dir="$ac_dir"; as_fn_mkdir_p
3447 ac_builddir=.
3448
3449 case "$ac_dir" in
3450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3451 *)
3452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3453 # A ".." for each directory in $ac_dir_suffix.
3454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3455 case $ac_top_builddir_sub in
3456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3458 esac ;;
3459 esac
3460 ac_abs_top_builddir=$ac_pwd
3461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3462 # for backward compatibility:
3463 ac_top_builddir=$ac_top_build_prefix
3464
3465 case $srcdir in
3466 .) # We are building in place.
3467 ac_srcdir=.
3468 ac_top_srcdir=$ac_top_builddir_sub
3469 ac_abs_top_srcdir=$ac_pwd ;;
3470 [\\/]* | ?:[\\/]* ) # Absolute name.
3471 ac_srcdir=$srcdir$ac_dir_suffix;
3472 ac_top_srcdir=$srcdir
3473 ac_abs_top_srcdir=$srcdir ;;
3474 *) # Relative name.
3475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3476 ac_top_srcdir=$ac_top_build_prefix$srcdir
3477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3478 esac
3479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3480
3481
3482 case $ac_mode in
3483 :F)
3484 #
3485 # CONFIG_FILE
3486 #
3487
3488 case $INSTALL in
3489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3491 esac
3492 ac_MKDIR_P=$MKDIR_P
3493 case $MKDIR_P in
3494 [\\/$]* | ?:[\\/]* ) ;;
3495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
3496 esac
3497 _ACEOF
3498
3499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3500 # If the template does not know about datarootdir, expand it.
3501 # FIXME: This hack should be removed a few years after 2.60.
3502 ac_datarootdir_hack=; ac_datarootdir_seen=
3503 ac_sed_dataroot='
3504 /datarootdir/ {
3505 p
3506 q
3507 }
3508 /@datadir@/p
3509 /@docdir@/p
3510 /@infodir@/p
3511 /@localedir@/p
3512 /@mandir@/p'
3513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3514 *datarootdir*) ac_datarootdir_seen=yes;;
3515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3518 _ACEOF
3519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3520 ac_datarootdir_hack='
3521 s&@datadir@&$datadir&g
3522 s&@docdir@&$docdir&g
3523 s&@infodir@&$infodir&g
3524 s&@localedir@&$localedir&g
3525 s&@mandir@&$mandir&g
3526 s&\\\${datarootdir}&$datarootdir&g' ;;
3527 esac
3528 _ACEOF
3529
3530 # Neutralize VPATH when `$srcdir' = `.'.
3531 # Shell code in configure.ac might set extrasub.
3532 # FIXME: do we really want to maintain this feature?
3533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3534 ac_sed_extra="$ac_vpsub
3535 $extrasub
3536 _ACEOF
3537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3538 :t
3539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3540 s|@configure_input@|$ac_sed_conf_input|;t t
3541 s&@top_builddir@&$ac_top_builddir_sub&;t t
3542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3543 s&@srcdir@&$ac_srcdir&;t t
3544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3545 s&@top_srcdir@&$ac_top_srcdir&;t t
3546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3547 s&@builddir@&$ac_builddir&;t t
3548 s&@abs_builddir@&$ac_abs_builddir&;t t
3549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3550 s&@INSTALL@&$ac_INSTALL&;t t
3551 s&@MKDIR_P@&$ac_MKDIR_P&;t t
3552 $ac_datarootdir_hack
3553 "
3554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3555 || as_fn_error "could not create $ac_file" "$LINENO" 5
3556
3557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3561 which seems to be undefined. Please make sure it is defined." >&5
3562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3563 which seems to be undefined. Please make sure it is defined." >&2;}
3564
3565 rm -f "$tmp/stdin"
3566 case $ac_file in
3567 -) cat "$tmp/out" && rm -f "$tmp/out";;
3568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3569 esac \
3570 || as_fn_error "could not create $ac_file" "$LINENO" 5
3571 ;;
3572
3573
3574
3575 esac
3576
3577 done # for ac_tag
3578
3579
3580 as_fn_exit 0
3581 _ACEOF
3582 ac_clean_files=$ac_clean_files_save
3583
3584 test $ac_write_fail = 0 ||
3585 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
3586
3587
3588 # configure is writing to config.log, and then calls config.status.
3589 # config.status does its own redirection, appending to config.log.
3590 # Unfortunately, on DOS this fails, as config.log is still kept open
3591 # by configure, so config.status won't be able to write to it; its
3592 # output is simply discarded. So we exec the FD to /dev/null,
3593 # effectively closing config.log, so it can be properly (re)opened and
3594 # appended to by config.status. When coming back to configure, we
3595 # need to make the FD available again.
3596 if test "$no_create" != yes; then
3597 ac_cs_success=:
3598 ac_config_status_args=
3599 test "$silent" = yes &&
3600 ac_config_status_args="$ac_config_status_args --quiet"
3601 exec 5>/dev/null
3602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3603 exec 5>>config.log
3604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3605 # would make configure fail if this is the last instruction.
3606 $ac_cs_success || as_fn_exit $?
3607 fi
3608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3611 fi
3612
3613