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