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