Debian Codegraph @

configure

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