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