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