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