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