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