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