Debian Codegraph @

configure

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