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