Debian Codegraph @

configure

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