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