Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ripperX 2.8.0.
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='ripperX'
582 PACKAGE_TARNAME='ripperx'
583 PACKAGE_VERSION='2.8.0'
584 PACKAGE_STRING='ripperX 2.8.0'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/main.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 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 TAGLIB_LIBS
630 TAGLIB_CFLAGS
631 GTK_LIBS
632 GTK_CFLAGS
633 GLIB_LIBS
634 GLIB_CFLAGS
635 PKG_CONFIG_LIBDIR
636 PKG_CONFIG_PATH
637 POSUB
638 LTLIBINTL
639 LIBINTL
640 INTLLIBS
641 LTLIBICONV
642 LIBICONV
643 INTL_MACOSX_LIBS
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 XGETTEXT_EXTRA_OPTIONS
653 MSGMERGE
654 XGETTEXT_015
655 XGETTEXT
656 GMSGFMT_015
657 MSGFMT_015
658 GMSGFMT
659 MSGFMT
660 GETTEXT_MACRO_VERSION
661 USE_NLS
662 LIBOBJS
663 EGREP
664 GREP
665 CPP
666 PKG_CONFIG
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 ac_ct_CXX
671 CXXFLAGS
672 CXX
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
689 CC
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_nls
761 with_gnu_ld
762 enable_rpath
763 with_libiconv_prefix
764 with_libintl_prefix
765 enable_deprecated
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CXX
776 CXXFLAGS
777 CCC
778 CPP
779 PKG_CONFIG
780 PKG_CONFIG_PATH
781 PKG_CONFIG_LIBDIR
782 GLIB_CFLAGS
783 GLIB_LIBS
784 GTK_CFLAGS
785 GTK_LIBS
786 TAGLIB_CFLAGS
787 TAGLIB_LIBS'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
847 fi
848
849 case $ac_option in
850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *=) ac_optarg= ;;
852 *) ac_optarg=yes ;;
853 esac
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
865
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
880
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
885
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
918
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
954
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
959
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
989
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1063
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1099
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1122
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1138
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 ;;
1194
1195 esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1216 do
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures ripperX 2.8.0 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/ripperx]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of ripperX 2.8.0:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --disable-nls do not use Native Language Support
1413 --disable-rpath do not hardcode runtime library paths
1414 --disable-deprecated Disable deprecated GTK functions.
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-gnu-ld assume the C compiler uses GNU ld default=no
1420 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1421 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1422 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1423 --without-libintl-prefix don't search for libintl in includedir and libdir
1424
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 CPP C preprocessor
1436 PKG_CONFIG path to pkg-config utility
1437 PKG_CONFIG_PATH
1438 directories to add to pkg-config's search path
1439 PKG_CONFIG_LIBDIR
1440 path overriding pkg-config's built-in search path
1441 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1442 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1443 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1444 GTK_LIBS linker flags for GTK, overriding pkg-config
1445 TAGLIB_CFLAGS
1446 C compiler flags for TAGLIB, overriding pkg-config
1447 TAGLIB_LIBS linker flags for TAGLIB, overriding pkg-config
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <[email protected]>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 ripperX configure 2.8.0
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_cxx_try_compile LINENO
1568 # ----------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_cxx_try_compile ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_cxx_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_cxx_try_compile
1604
1605 # ac_fn_c_try_link LINENO
1606 # -----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_link ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext conftest$ac_exeext
1612 if { { ac_try="$ac_link"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_link") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest$ac_exeext && {
1631 test "$cross_compiling" = yes ||
1632 test -x conftest$ac_exeext
1633 }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643 # interfere with the next link command; also delete a directory that is
1644 # left behind by Apple's compiler. We do this before executing the actions.
1645 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_link
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1691 # the include files in INCLUDES and setting the cache variable VAR
1692 # accordingly.
1693 ac_fn_c_check_header_mongrel ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if eval \${$3+:} false; then :
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 else
1706 # Is the header compilable?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1708 $as_echo_n "checking $2 usability... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_header_compiler=yes
1716 else
1717 ac_header_compiler=no
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1721 $as_echo "$ac_header_compiler" >&6; }
1722
1723 # Is the header present?
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1725 $as_echo_n "checking $2 presence... " >&6; }
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_cpp "$LINENO"; then :
1731 ac_header_preproc=yes
1732 else
1733 ac_header_preproc=no
1734 fi
1735 rm -f conftest.err conftest.i conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1737 $as_echo "$ac_header_preproc" >&6; }
1738
1739 # So? What about this header?
1740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741 yes:no: )
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1743 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ;;
1747 no:yes:* )
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1749 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1751 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1753 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1755 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ( $as_echo "## --------------------------------------------- ##
1759 ## Report this to [email protected] ##
1760 ## --------------------------------------------- ##"
1761 ) | sed "s/^/$as_me: WARNING: /" >&2
1762 ;;
1763 esac
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 eval "$3=\$ac_header_compiler"
1770 fi
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 fi
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_mongrel
1778
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=$ac_status
1814 fi
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_run
1820
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 eval "$3=yes"
1840 else
1841 eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_header_compile
1851
1852 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1853 # -------------------------------------------
1854 # Tests whether TYPE exists after having included INCLUDES, setting cache
1855 # variable VAR accordingly.
1856 ac_fn_c_check_type ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=no"
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main ()
1870 {
1871 if (sizeof ($2))
1872 return 0;
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $4
1881 int
1882 main ()
1883 {
1884 if (sizeof (($2)))
1885 return 0;
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891
1892 else
1893 eval "$3=yes"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_type
1905
1906 # ac_fn_c_check_func LINENO FUNC VAR
1907 # ----------------------------------
1908 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909 ac_fn_c_check_func ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921 #define $2 innocuous_$2
1922
1923 /* System header to define __stub macros and hopefully few prototypes,
1924 which can conflict with char $2 (); below.
1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926 <limits.h> exists even on freestanding compilers. */
1927
1928 #ifdef __STDC__
1929 # include <limits.h>
1930 #else
1931 # include <assert.h>
1932 #endif
1933
1934 #undef $2
1935
1936 /* Override any GCC internal prototype to avoid an error.
1937 Use char because int might match the return type of a GCC
1938 builtin and then its argument prototype would still apply. */
1939 #ifdef __cplusplus
1940 extern "C"
1941 #endif
1942 char $2 ();
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined __stub_$2 || defined __stub___$2
1947 choke me
1948 #endif
1949
1950 int
1951 main ()
1952 {
1953 return $2 ();
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_link "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext \
1964 conftest$ac_exeext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_func
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by ripperX $as_me 2.8.0, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092 (
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120 )
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168 ' 0
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 done
2172 ac_signal=0
2173
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2176
2177 $as_echo "/* confdefs.h */" > confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2208 ac_site_file1=NONE
2209 ac_site_file2=NONE
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237 done
2238
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254 fi
2255
2256 gt_needs="$gt_needs "
2257 # Check that the precious variables saved in the cache have kept the same
2258 # value.
2259 ac_cache_corrupted=false
2260 for ac_var in $ac_precious_vars; do
2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262 eval ac_new_set=\$ac_env_${ac_var}_set
2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264 eval ac_new_val=\$ac_env_${ac_var}_value
2265 case $ac_old_set,$ac_new_set in
2266 set,)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,set)
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2274 ,);;
2275 *)
2276 if test "x$ac_old_val" != "x$ac_new_val"; then
2277 # differences in whitespace do not lead to failure.
2278 ac_old_val_w=`echo x $ac_old_val`
2279 ac_new_val_w=`echo x $ac_new_val`
2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283 ac_cache_corrupted=:
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287 eval $ac_var=\$ac_old_val
2288 fi
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2290 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2292 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 fi;;
2294 esac
2295 # Pass precious variables to config.status.
2296 if test "$ac_new_set" = set; then
2297 case $ac_new_val in
2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 *) ac_arg=$ac_var=$ac_new_val ;;
2300 esac
2301 case " $ac_configure_args " in
2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 esac
2305 fi
2306 done
2307 if $ac_cache_corrupted; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 fi
2314 ## -------------------- ##
2315 ## Main body of script. ##
2316 ## -------------------- ##
2317
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323
2324
2325
2326 ac_aux_dir=
2327 for ac_dir in config "$srcdir"/config; do
2328 if test -f "$ac_dir/install-sh"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/install-sh -c"
2331 break
2332 elif test -f "$ac_dir/install.sh"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/install.sh -c"
2335 break
2336 elif test -f "$ac_dir/shtool"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/shtool install -c"
2339 break
2340 fi
2341 done
2342 if test -z "$ac_aux_dir"; then
2343 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2344 fi
2345
2346 # These three variables are undocumented and unsupported,
2347 # and are intended to be withdrawn in a future Autoconf release.
2348 # They can cause serious problems if a builder's source tree is in a directory
2349 # whose full name contains unusual characters.
2350 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2351 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2352 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353
2354
2355 am__api_version='1.13'
2356
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2363 # AIX /bin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if ${ac_cv_path_install+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2398 :
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
2403 else
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
2416 fi
2417 fi
2418 done
2419 done
2420 ;;
2421 esac
2422
2423 done
2424 IFS=$as_save_IFS
2425
2426 rm -rf conftest.one conftest.two conftest.dir
2427
2428 fi
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2437 fi
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2441
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2451 $as_echo_n "checking whether build environment is sane... " >&6; }
2452 # Reject unsafe characters in $srcdir or the absolute working directory
2453 # name. Accept space and tab only in the latter.
2454 am_lf='
2455 '
2456 case `pwd` in
2457 *[\\\"\#\$\&\'\`$am_lf]*)
2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2459 esac
2460 case $srcdir in
2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2463 esac
2464
2465 # Do 'set' in a subshell so we don't clobber the current shell's
2466 # arguments. Must try -L first in case configure is actually a
2467 # symlink; some systems play weird games with the mod time of symlinks
2468 # (eg FreeBSD returns the mod time of the symlink's containing
2469 # directory).
2470 if (
2471 am_has_slept=no
2472 for am_try in 1 2; do
2473 echo "timestamp, slept: $am_has_slept" > conftest.file
2474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2475 if test "$*" = "X"; then
2476 # -L didn't work.
2477 set X `ls -t "$srcdir/configure" conftest.file`
2478 fi
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2481
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2488 fi
2489 if test "$2" = conftest.file || test $am_try -eq 2; then
2490 break
2491 fi
2492 # Just in case.
2493 sleep 1
2494 am_has_slept=yes
2495 done
2496 test "$2" = conftest.file
2497 )
2498 then
2499 # Ok.
2500 :
2501 else
2502 as_fn_error $? "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 # If we didn't sleep, we still need to ensure time stamps of config.status and
2508 # generated files are strictly newer.
2509 am_sleep_pid=
2510 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2511 ( sleep 1 ) &
2512 am_sleep_pid=$!
2513 fi
2514
2515 rm -f conftest.file
2516
2517 test "$program_prefix" != NONE &&
2518 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2519 # Use a double $ so make ignores it.
2520 test "$program_suffix" != NONE &&
2521 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2522 # Double any \ or $.
2523 # By default was `s,x,x', remove it if useless.
2524 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2525 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2526
2527 # expand $ac_aux_dir to an absolute path
2528 am_aux_dir=`cd $ac_aux_dir && pwd`
2529
2530 if test x"${MISSING+set}" != xset; then
2531 case $am_aux_dir in
2532 *\ * | *\ *)
2533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2534 *)
2535 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2536 esac
2537 fi
2538 # Use eval to expand $SHELL
2539 if eval "$MISSING --is-lightweight"; then
2540 am_missing_run="$MISSING "
2541 else
2542 am_missing_run=
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2544 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2545 fi
2546
2547 if test x"${install_sh}" != xset; then
2548 case $am_aux_dir in
2549 *\ * | *\ *)
2550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2551 *)
2552 install_sh="\${SHELL} $am_aux_dir/install-sh"
2553 esac
2554 fi
2555
2556 # Installed binaries are usually stripped using 'strip' when the user
2557 # run "make install-strip". However 'strip' might not be the right
2558 # tool to use in cross-compilation environments, therefore Automake
2559 # will honor the 'STRIP' environment variable to overrule this program.
2560 if test "$cross_compiling" != no; then
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}strip; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_STRIP+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$STRIP"; then
2570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 STRIP=$ac_cv_prog_STRIP
2590 if test -n "$STRIP"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2592 $as_echo "$STRIP" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if test -z "$ac_cv_prog_STRIP"; then
2601 ac_ct_STRIP=$STRIP
2602 # Extract the first word of "strip", so it can be a program name with args.
2603 set dummy strip; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$ac_ct_STRIP"; then
2610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_ac_ct_STRIP="strip"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2630 if test -n "$ac_ct_STRIP"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2632 $as_echo "$ac_ct_STRIP" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638 if test "x$ac_ct_STRIP" = x; then
2639 STRIP=":"
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 STRIP=$ac_ct_STRIP
2648 fi
2649 else
2650 STRIP="$ac_cv_prog_STRIP"
2651 fi
2652
2653 fi
2654 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2657 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2658 if test -z "$MKDIR_P"; then
2659 if ${ac_cv_path_mkdir+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_prog in mkdir gmkdir; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2671 'mkdir (GNU coreutils) '* | \
2672 'mkdir (coreutils) '* | \
2673 'mkdir (fileutils) '4.1*)
2674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2675 break 3;;
2676 esac
2677 done
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683
2684 test -d ./--version && rmdir ./--version
2685 if test "${ac_cv_path_mkdir+set}" = set; then
2686 MKDIR_P="$ac_cv_path_mkdir -p"
2687 else
2688 # As a last resort, use the slow shell script. Don't cache a
2689 # value for MKDIR_P within a source directory, because that will
2690 # break other packages using the cache if that directory is
2691 # removed, or if the value is a relative name.
2692 MKDIR_P="$ac_install_sh -d"
2693 fi
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2696 $as_echo "$MKDIR_P" >&6; }
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2741 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2742 set x ${MAKE-make}
2743 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2744 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat >conftest.make <<\_ACEOF
2748 SHELL = /bin/sh
2749 all:
2750 @echo '@@@%%%=$(MAKE)=@@@%%%'
2751 _ACEOF
2752 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2753 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2754 *@@@%%%=?*=@@@%%%*)
2755 eval ac_cv_prog_make_${ac_make}_set=yes;;
2756 *)
2757 eval ac_cv_prog_make_${ac_make}_set=no;;
2758 esac
2759 rm -f conftest.make
2760 fi
2761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763 $as_echo "yes" >&6; }
2764 SET_MAKE=
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 SET_MAKE="MAKE=${MAKE-make}"
2769 fi
2770
2771 rm -rf .tst 2>/dev/null
2772 mkdir .tst 2>/dev/null
2773 if test -d .tst; then
2774 am__leading_dot=.
2775 else
2776 am__leading_dot=_
2777 fi
2778 rmdir .tst 2>/dev/null
2779
2780 # Check whether --enable-silent-rules was given.
2781 if test "${enable_silent_rules+set}" = set; then :
2782 enableval=$enable_silent_rules;
2783 fi
2784
2785 case $enable_silent_rules in # (((
2786 yes) AM_DEFAULT_VERBOSITY=0;;
2787 no) AM_DEFAULT_VERBOSITY=1;;
2788 *) AM_DEFAULT_VERBOSITY=1;;
2789 esac
2790 am_make=${MAKE-make}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2792 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2793 if ${am_cv_make_support_nested_variables+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if $as_echo 'TRUE=$(BAR$(V))
2797 BAR0=false
2798 BAR1=true
2799 V=1
2800 am__doit:
2801 @$(TRUE)
2802 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2803 am_cv_make_support_nested_variables=yes
2804 else
2805 am_cv_make_support_nested_variables=no
2806 fi
2807 fi
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2809 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2810 if test $am_cv_make_support_nested_variables = yes; then
2811 AM_V='$(V)'
2812 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2813 else
2814 AM_V=$AM_DEFAULT_VERBOSITY
2815 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2816 fi
2817 AM_BACKSLASH='\'
2818
2819 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2820 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2821 # is not polluted with repeated "-I."
2822 am__isrc=' -I$(srcdir)'
2823 # test to see if srcdir already configured
2824 if test -f $srcdir/config.status; then
2825 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2826 fi
2827 fi
2828
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836 fi
2837
2838
2839 # Define the identity of the package.
2840 PACKAGE='ripperx'
2841 VERSION='2.8.0'
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2852
2853 # Some tools Automake needs.
2854
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868
2869 # For better backward compatibility. To be removed once Automake 1.9.x
2870 # dies out for good. For more background, see:
2871 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2872 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2873 mkdir_p='$(MKDIR_P)'
2874
2875 # We need awk for the "check" target. The system "awk" is bad on
2876 # some platforms.
2877 # Always define AMTAR for backward compatibility. Yes, it's still used
2878 # in the wild :-( We should find a proper way to deprecate it ...
2879 AMTAR='$${TAR-tar}'
2880
2881
2882 # We'll loop over all known methods to create a tar archive until one works.
2883 _am_tools='gnutar pax cpio none'
2884
2885 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2886
2887
2888
2889
2890
2891
2892 ac_config_headers="$ac_config_headers config.h"
2893
2894
2895 # Checks for programs.
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 for ac_prog in g++
2903 do
2904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_CC+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940
2941 test -n "$CC" && break
2942 done
2943 fi
2944 if test -z "$CC"; then
2945 ac_ct_CC=$CC
2946 for ac_prog in g++
2947 do
2948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2949 set dummy $ac_prog; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_CC="$ac_prog"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976 if test -n "$ac_ct_CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978 $as_echo "$ac_ct_CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984
2985 test -n "$ac_ct_CC" && break
2986 done
2987
2988 if test "x$ac_ct_CC" = x; then
2989 CC=""
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
2996 esac
2997 CC=$ac_ct_CC
2998 fi
2999 fi
3000
3001
3002 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error $? "no acceptable C compiler found in \$PATH
3005 See \`config.log' for more details" "$LINENO" 5; }
3006
3007 # Provide some information about the compiler.
3008 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3009 set X $ac_compile
3010 ac_compiler=$2
3011 for ac_option in --version -v -V -qversion; do
3012 { { ac_try="$ac_compiler $ac_option >&5"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3020 ac_status=$?
3021 if test -s conftest.err; then
3022 sed '10a\
3023 ... rest of stderr output deleted ...
3024 10q' conftest.err >conftest.er1
3025 cat conftest.er1 >&5
3026 fi
3027 rm -f conftest.er1 conftest.err
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 done
3031
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3034
3035 int
3036 main ()
3037 {
3038
3039 ;
3040 return 0;
3041 }
3042 _ACEOF
3043 ac_clean_files_save=$ac_clean_files
3044 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3045 # Try to create an executable without -o first, disregard a.out.
3046 # It will help us diagnose broken compilers, and finding out an intuition
3047 # of exeext.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3049 $as_echo_n "checking whether the C compiler works... " >&6; }
3050 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3051
3052 # The possible output files:
3053 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3054
3055 ac_rmfiles=
3056 for ac_file in $ac_files
3057 do
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3060 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3061 esac
3062 done
3063 rm -f $ac_rmfiles
3064
3065 if { { ac_try="$ac_link_default"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_link_default") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; then :
3076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3079 # so that the user can short-circuit this test for compilers unknown to
3080 # Autoconf.
3081 for ac_file in $ac_files ''
3082 do
3083 test -f "$ac_file" || continue
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3086 ;;
3087 [ab].out )
3088 # We found the default executable, but exeext='' is most
3089 # certainly right.
3090 break;;
3091 *.* )
3092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3093 then :; else
3094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 fi
3096 # We set ac_cv_exeext here because the later test for it is not
3097 # safe: cross compilers may not add the suffix if given an `-o'
3098 # argument, so we may need to know it at that point already.
3099 # Even if this section looks crufty: it has the advantage of
3100 # actually working.
3101 break;;
3102 * )
3103 break;;
3104 esac
3105 done
3106 test "$ac_cv_exeext" = no && ac_cv_exeext=
3107
3108 else
3109 ac_file=''
3110 fi
3111 if test -z "$ac_file"; then :
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 $as_echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119 as_fn_error 77 "C compiler cannot create executables
3120 See \`config.log' for more details" "$LINENO" 5; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123 $as_echo "yes" >&6; }
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3126 $as_echo_n "checking for C compiler default output file name... " >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3128 $as_echo "$ac_file" >&6; }
3129 ac_exeext=$ac_cv_exeext
3130
3131 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3134 $as_echo_n "checking for suffix of executables... " >&6; }
3135 if { { ac_try="$ac_link"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 # `rm'.
3150 for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 break;;
3156 * ) break;;
3157 esac
3158 done
3159 else
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details" "$LINENO" 5; }
3164 fi
3165 rm -f conftest conftest$ac_cv_exeext
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3167 $as_echo "$ac_cv_exeext" >&6; }
3168
3169 rm -f conftest.$ac_ext
3170 EXEEXT=$ac_cv_exeext
3171 ac_exeext=$EXEEXT
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174 #include <stdio.h>
3175 int
3176 main ()
3177 {
3178 FILE *f = fopen ("conftest.out", "w");
3179 return ferror (f) || fclose (f) != 0;
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 ac_clean_files="$ac_clean_files conftest.out"
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3189 $as_echo_n "checking whether we are cross compiling... " >&6; }
3190 if test "$cross_compiling" != yes; then
3191 { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 if { ac_try='./conftest$ac_cv_exeext'
3203 { { case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; }; then
3213 cross_compiling=no
3214 else
3215 if test "$cross_compiling" = maybe; then
3216 cross_compiling=yes
3217 else
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $? "cannot run C compiled programs.
3221 If you meant to cross compile, use \`--host'.
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 fi
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3227 $as_echo "$cross_compiling" >&6; }
3228
3229 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3230 ac_clean_files=$ac_clean_files_save
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232 $as_echo_n "checking for suffix of object files... " >&6; }
3233 if ${ac_cv_objext+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238
3239 int
3240 main ()
3241 {
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.o conftest.obj
3248 if { { ac_try="$ac_compile"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_compile") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 for ac_file in conftest.o conftest.obj conftest.*; do
3260 test -f "$ac_file" || continue;
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3264 break;;
3265 esac
3266 done
3267 else
3268 $as_echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot compute suffix of object files: cannot compile
3274 See \`config.log' for more details" "$LINENO" 5; }
3275 fi
3276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3279 $as_echo "$ac_cv_objext" >&6; }
3280 OBJEXT=$ac_cv_objext
3281 ac_objext=$OBJEXT
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3283 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3284 if ${ac_cv_c_compiler_gnu+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293 #ifndef __GNUC__
3294 choke me
3295 #endif
3296
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 if ac_fn_c_try_compile "$LINENO"; then :
3302 ac_compiler_gnu=yes
3303 else
3304 ac_compiler_gnu=no
3305 fi
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3311 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3312 if test $ac_compiler_gnu = yes; then
3313 GCC=yes
3314 else
3315 GCC=
3316 fi
3317 ac_test_CFLAGS=${CFLAGS+set}
3318 ac_save_CFLAGS=$CFLAGS
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3320 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3321 if ${ac_cv_prog_cc_g+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 ac_save_c_werror_flag=$ac_c_werror_flag
3325 ac_c_werror_flag=yes
3326 ac_cv_prog_cc_g=no
3327 CFLAGS="-g"
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_cv_prog_cc_g=yes
3341 else
3342 CFLAGS=""
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345
3346 int
3347 main ()
3348 {
3349
3350 ;
3351 return 0;
3352 }
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355
3356 else
3357 ac_c_werror_flag=$ac_save_c_werror_flag
3358 CFLAGS="-g"
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_g=yes
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3381 $as_echo "$ac_cv_prog_cc_g" >&6; }
3382 if test "$ac_test_CFLAGS" = set; then
3383 CFLAGS=$ac_save_CFLAGS
3384 elif test $ac_cv_prog_cc_g = yes; then
3385 if test "$GCC" = yes; then
3386 CFLAGS="-g -O2"
3387 else
3388 CFLAGS="-g"
3389 fi
3390 else
3391 if test "$GCC" = yes; then
3392 CFLAGS="-O2"
3393 else
3394 CFLAGS=
3395 fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3398 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3399 if ${ac_cv_prog_cc_c89+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_cv_prog_cc_c89=no
3403 ac_save_CC=$CC
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3406 #include <stdarg.h>
3407 #include <stdio.h>
3408 struct stat;
3409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3410 struct buf { int x; };
3411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3412 static char *e (p, i)
3413 char **p;
3414 int i;
3415 {
3416 return p[i];
3417 }
3418 static char *f (char * (*g) (char **, int), char **p, ...)
3419 {
3420 char *s;
3421 va_list v;
3422 va_start (v,p);
3423 s = g (p, va_arg (v,int));
3424 va_end (v);
3425 return s;
3426 }
3427
3428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3429 function prototypes and stuff, but not '\xHH' hex character constants.
3430 These don't provoke an error unfortunately, instead are silently treated
3431 as 'x'. The following induces an error, until -std is added to get
3432 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3433 array size at least. It's necessary to write '\x00'==0 to get something
3434 that's true only with -std. */
3435 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3436
3437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3438 inside strings and character constants. */
3439 #define FOO(x) 'x'
3440 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3441
3442 int test (int i, double x);
3443 struct s1 {int (*f) (int a);};
3444 struct s2 {int (*f) (double a);};
3445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3446 int argc;
3447 char **argv;
3448 int
3449 main ()
3450 {
3451 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3457 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458 do
3459 CC="$ac_save_CC $ac_arg"
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_cv_prog_cc_c89=$ac_arg
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 done
3466 rm -f conftest.$ac_ext
3467 CC=$ac_save_CC
3468
3469 fi
3470 # AC_CACHE_VAL
3471 case "x$ac_cv_prog_cc_c89" in
3472 x)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3474 $as_echo "none needed" >&6; } ;;
3475 xno)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3477 $as_echo "unsupported" >&6; } ;;
3478 *)
3479 CC="$CC $ac_cv_prog_cc_c89"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3481 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3482 esac
3483 if test "x$ac_cv_prog_cc_c89" != xno; then :
3484
3485 fi
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 DEPDIR="${am__leading_dot}deps"
3493
3494 ac_config_commands="$ac_config_commands depfiles"
3495
3496
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3499 am__doit:
3500 @echo this is the am__doit target
3501 .PHONY: am__doit
3502 END
3503 # If we don't find an include directive, just comment out the code.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3506 am__include="#"
3507 am__quote=
3508 _am_result=none
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # Ignore all kinds of additional output from 'make'.
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=include
3515 am__quote=
3516 _am_result=GNU
3517 ;;
3518 esac
3519 # Now try BSD make style include.
3520 if test "$am__include" = "#"; then
3521 echo '.include "confinc"' > confmf
3522 case `$am_make -s -f confmf 2> /dev/null` in #(
3523 *the\ am__doit\ target*)
3524 am__include=.include
3525 am__quote="\""
3526 _am_result=BSD
3527 ;;
3528 esac
3529 fi
3530
3531
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3533 $as_echo "$_am_result" >&6; }
3534 rm -f confinc confmf
3535
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then :
3538 enableval=$enable_dependency_tracking;
3539 fi
3540
3541 if test "x$enable_dependency_tracking" != xno; then
3542 am_depcomp="$ac_aux_dir/depcomp"
3543 AMDEPBACKSLASH='\'
3544 am__nodep='_no'
3545 fi
3546 if test "x$enable_dependency_tracking" != xno; then
3547 AMDEP_TRUE=
3548 AMDEP_FALSE='#'
3549 else
3550 AMDEP_TRUE='#'
3551 AMDEP_FALSE=
3552 fi
3553
3554
3555
3556 depcc="$CC" am_compiler_list=
3557
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3559 $as_echo_n "checking dependency style of $depcc... " >&6; }
3560 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3564 # We make a subdir and do the tests there. Otherwise we can end up
3565 # making bogus files that we don't know about and never remove. For
3566 # instance it was reported that on HP-UX the gcc test will end up
3567 # making a dummy file named 'D' -- because '-MD' means "put the output
3568 # in D".
3569 rm -rf conftest.dir
3570 mkdir conftest.dir
3571 # Copy depcomp to subdir because otherwise we won't find it if we're
3572 # using a relative directory.
3573 cp "$am_depcomp" conftest.dir
3574 cd conftest.dir
3575 # We will build objects and dependencies in a subdirectory because
3576 # it helps to detect inapplicable dependency modes. For instance
3577 # both Tru64's cc and ICC support -MD to output dependencies as a
3578 # side effect of compilation, but ICC will put the dependencies in
3579 # the current directory while Tru64 will put them in the object
3580 # directory.
3581 mkdir sub
3582
3583 am_cv_CC_dependencies_compiler_type=none
3584 if test "$am_compiler_list" = ""; then
3585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3586 fi
3587 am__universal=false
3588 case " $depcc " in #(
3589 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3590 esac
3591
3592 for depmode in $am_compiler_list; do
3593 # Setup a source with many dependencies, because some compilers
3594 # like to wrap large dependency lists on column 80 (with \), and
3595 # we should not choose a depcomp mode which is confused by this.
3596 #
3597 # We need to recreate these files for each test, as the compiler may
3598 # overwrite some of them when testing with obscure command lines.
3599 # This happens at least with the AIX C compiler.
3600 : > sub/conftest.c
3601 for i in 1 2 3 4 5 6; do
3602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3604 # Solaris 10 /bin/sh.
3605 echo '/* dummy */' > sub/conftst$i.h
3606 done
3607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608
3609 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3610 # mode. It turns out that the SunPro C++ compiler does not properly
3611 # handle '-M -o', and we need to detect this. Also, some Intel
3612 # versions had trouble with output in subdirs.
3613 am__obj=sub/conftest.${OBJEXT-o}
3614 am__minus_obj="-o $am__obj"
3615 case $depmode in
3616 gcc)
3617 # This depmode causes a compiler race in universal mode.
3618 test "$am__universal" = false || continue
3619 ;;
3620 nosideeffect)
3621 # After this tag, mechanisms are not by side-effect, so they'll
3622 # only be used when explicitly requested.
3623 if test "x$enable_dependency_tracking" = xyes; then
3624 continue
3625 else
3626 break
3627 fi
3628 ;;
3629 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3630 # This compiler won't grok '-c -o', but also, the minuso test has
3631 # not run yet. These depmodes are late enough in the game, and
3632 # so weak that their functioning should not be impacted.
3633 am__obj=conftest.${OBJEXT-o}
3634 am__minus_obj=
3635 ;;
3636 none) break ;;
3637 esac
3638 if depmode=$depmode \
3639 source=sub/conftest.c object=$am__obj \
3640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3641 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3642 >/dev/null 2>conftest.err &&
3643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3645 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3647 # icc doesn't choke on unknown options, it will just issue warnings
3648 # or remarks (even with -Werror). So we grep stderr for any message
3649 # that says an option was ignored or not supported.
3650 # When given -MP, icc 7.0 and 7.1 complain thusly:
3651 # icc: Command line warning: ignoring option '-M'; no argument required
3652 # The diagnosis changed in icc 8.0:
3653 # icc: Command line remark: option '-MP' not supported
3654 if (grep 'ignoring option' conftest.err ||
3655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3656 am_cv_CC_dependencies_compiler_type=$depmode
3657 break
3658 fi
3659 fi
3660 done
3661
3662 cd ..
3663 rm -rf conftest.dir
3664 else
3665 am_cv_CC_dependencies_compiler_type=none
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3670 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3671 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672
3673 if
3674 test "x$enable_dependency_tracking" != xno \
3675 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3676 am__fastdepCC_TRUE=
3677 am__fastdepCC_FALSE='#'
3678 else
3679 am__fastdepCC_TRUE='#'
3680 am__fastdepCC_FALSE=
3681 fi
3682
3683
3684 ac_ext=cpp
3685 ac_cpp='$CXXCPP $CPPFLAGS'
3686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689 if test -z "$CXX"; then
3690 if test -n "$CCC"; then
3691 CXX=$CCC
3692 else
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3695 do
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CXX+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 if test -n "$CXX"; then
3704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 CXX=$ac_cv_prog_CXX
3724 if test -n "$CXX"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3726 $as_echo "$CXX" >&6; }
3727 else
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732
3733 test -n "$CXX" && break
3734 done
3735 fi
3736 if test -z "$CXX"; then
3737 ac_ct_CXX=$CXX
3738 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3739 do
3740 # Extract the first word of "$ac_prog", so it can be a program name with args.
3741 set dummy $ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$ac_ct_CXX"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_ac_ct_CXX="$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3768 if test -n "$ac_ct_CXX"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3770 $as_echo "$ac_ct_CXX" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 test -n "$ac_ct_CXX" && break
3778 done
3779
3780 if test "x$ac_ct_CXX" = x; then
3781 CXX="g++"
3782 else
3783 case $cross_compiling:$ac_tool_warned in
3784 yes:)
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787 ac_tool_warned=yes ;;
3788 esac
3789 CXX=$ac_ct_CXX
3790 fi
3791 fi
3792
3793 fi
3794 fi
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 ac_status=$?
3809 if test -s conftest.err; then
3810 sed '10a\
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 fi
3815 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 done
3819
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3821 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3822 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831 #ifndef __GNUC__
3832 choke me
3833 #endif
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_cxx_try_compile "$LINENO"; then :
3840 ac_compiler_gnu=yes
3841 else
3842 ac_compiler_gnu=no
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3846
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3849 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3850 if test $ac_compiler_gnu = yes; then
3851 GXX=yes
3852 else
3853 GXX=
3854 fi
3855 ac_test_CXXFLAGS=${CXXFLAGS+set}
3856 ac_save_CXXFLAGS=$CXXFLAGS
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3858 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3859 if ${ac_cv_prog_cxx_g+:} false; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3863 ac_cxx_werror_flag=yes
3864 ac_cv_prog_cxx_g=no
3865 CXXFLAGS="-g"
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_cxx_try_compile "$LINENO"; then :
3878 ac_cv_prog_cxx_g=yes
3879 else
3880 CXXFLAGS=""
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_cxx_try_compile "$LINENO"; then :
3893
3894 else
3895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3896 CXXFLAGS="-g"
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_cxx_try_compile "$LINENO"; then :
3909 ac_cv_prog_cxx_g=yes
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3919 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3920 if test "$ac_test_CXXFLAGS" = set; then
3921 CXXFLAGS=$ac_save_CXXFLAGS
3922 elif test $ac_cv_prog_cxx_g = yes; then
3923 if test "$GXX" = yes; then
3924 CXXFLAGS="-g -O2"
3925 else
3926 CXXFLAGS="-g"
3927 fi
3928 else
3929 if test "$GXX" = yes; then
3930 CXXFLAGS="-O2"
3931 else
3932 CXXFLAGS=
3933 fi
3934 fi
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941 depcc="$CXX" am_compiler_list=
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3944 $as_echo_n "checking dependency style of $depcc... " >&6; }
3945 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3949 # We make a subdir and do the tests there. Otherwise we can end up
3950 # making bogus files that we don't know about and never remove. For
3951 # instance it was reported that on HP-UX the gcc test will end up
3952 # making a dummy file named 'D' -- because '-MD' means "put the output
3953 # in D".
3954 rm -rf conftest.dir
3955 mkdir conftest.dir
3956 # Copy depcomp to subdir because otherwise we won't find it if we're
3957 # using a relative directory.
3958 cp "$am_depcomp" conftest.dir
3959 cd conftest.dir
3960 # We will build objects and dependencies in a subdirectory because
3961 # it helps to detect inapplicable dependency modes. For instance
3962 # both Tru64's cc and ICC support -MD to output dependencies as a
3963 # side effect of compilation, but ICC will put the dependencies in
3964 # the current directory while Tru64 will put them in the object
3965 # directory.
3966 mkdir sub
3967
3968 am_cv_CXX_dependencies_compiler_type=none
3969 if test "$am_compiler_list" = ""; then
3970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3971 fi
3972 am__universal=false
3973 case " $depcc " in #(
3974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3975 esac
3976
3977 for depmode in $am_compiler_list; do
3978 # Setup a source with many dependencies, because some compilers
3979 # like to wrap large dependency lists on column 80 (with \), and
3980 # we should not choose a depcomp mode which is confused by this.
3981 #
3982 # We need to recreate these files for each test, as the compiler may
3983 # overwrite some of them when testing with obscure command lines.
3984 # This happens at least with the AIX C compiler.
3985 : > sub/conftest.c
3986 for i in 1 2 3 4 5 6; do
3987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3989 # Solaris 10 /bin/sh.
3990 echo '/* dummy */' > sub/conftst$i.h
3991 done
3992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993
3994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3995 # mode. It turns out that the SunPro C++ compiler does not properly
3996 # handle '-M -o', and we need to detect this. Also, some Intel
3997 # versions had trouble with output in subdirs.
3998 am__obj=sub/conftest.${OBJEXT-o}
3999 am__minus_obj="-o $am__obj"
4000 case $depmode in
4001 gcc)
4002 # This depmode causes a compiler race in universal mode.
4003 test "$am__universal" = false || continue
4004 ;;
4005 nosideeffect)
4006 # After this tag, mechanisms are not by side-effect, so they'll
4007 # only be used when explicitly requested.
4008 if test "x$enable_dependency_tracking" = xyes; then
4009 continue
4010 else
4011 break
4012 fi
4013 ;;
4014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4015 # This compiler won't grok '-c -o', but also, the minuso test has
4016 # not run yet. These depmodes are late enough in the game, and
4017 # so weak that their functioning should not be impacted.
4018 am__obj=conftest.${OBJEXT-o}
4019 am__minus_obj=
4020 ;;
4021 none) break ;;
4022 esac
4023 if depmode=$depmode \
4024 source=sub/conftest.c object=$am__obj \
4025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4027 >/dev/null 2>conftest.err &&
4028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4032 # icc doesn't choke on unknown options, it will just issue warnings
4033 # or remarks (even with -Werror). So we grep stderr for any message
4034 # that says an option was ignored or not supported.
4035 # When given -MP, icc 7.0 and 7.1 complain thusly:
4036 # icc: Command line warning: ignoring option '-M'; no argument required
4037 # The diagnosis changed in icc 8.0:
4038 # icc: Command line remark: option '-MP' not supported
4039 if (grep 'ignoring option' conftest.err ||
4040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4041 am_cv_CXX_dependencies_compiler_type=$depmode
4042 break
4043 fi
4044 fi
4045 done
4046
4047 cd ..
4048 rm -rf conftest.dir
4049 else
4050 am_cv_CXX_dependencies_compiler_type=none
4051 fi
4052
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4055 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4056 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4057
4058 if
4059 test "x$enable_dependency_tracking" != xno \
4060 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4061 am__fastdepCXX_TRUE=
4062 am__fastdepCXX_FALSE='#'
4063 else
4064 am__fastdepCXX_TRUE='#'
4065 am__fastdepCXX_FALSE=
4066 fi
4067
4068
4069
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 case $PKG_CONFIG in
4078 [\\/]* | ?:[\\/]*)
4079 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4080 ;;
4081 *)
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4098 ;;
4099 esac
4100 fi
4101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4102 if test -n "$PKG_CONFIG"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4104 $as_echo "$PKG_CONFIG" >&6; }
4105 else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4108 fi
4109
4110
4111
4112
4113 # Checks for header files.
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4116 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4117 if ${ac_cv_header_sys_wait_h+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 #include <sys/wait.h>
4124 #ifndef WEXITSTATUS
4125 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4126 #endif
4127 #ifndef WIFEXITED
4128 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4129 #endif
4130
4131 int
4132 main ()
4133 {
4134 int s;
4135 wait (&s);
4136 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_header_sys_wait_h=yes
4143 else
4144 ac_cv_header_sys_wait_h=no
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4149 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4150 if test $ac_cv_header_sys_wait_h = yes; then
4151
4152 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4153
4154 fi
4155
4156 ac_header_dirent=no
4157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4158 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4160 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4161 if eval \${$as_ac_Header+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 #include <$ac_hdr>
4168
4169 int
4170 main ()
4171 {
4172 if ((DIR *) 0)
4173 return 0;
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 eval "$as_ac_Header=yes"
4180 else
4181 eval "$as_ac_Header=no"
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 fi
4185 eval ac_res=\$$as_ac_Header
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4187 $as_echo "$ac_res" >&6; }
4188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4189 cat >>confdefs.h <<_ACEOF
4190 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4191 _ACEOF
4192
4193 ac_header_dirent=$ac_hdr; break
4194 fi
4195
4196 done
4197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4198 if test $ac_header_dirent = dirent.h; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4200 $as_echo_n "checking for library containing opendir... " >&6; }
4201 if ${ac_cv_search_opendir+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_func_search_save_LIBS=$LIBS
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207
4208 /* Override any GCC internal prototype to avoid an error.
4209 Use char because int might match the return type of a GCC
4210 builtin and then its argument prototype would still apply. */
4211 #ifdef __cplusplus
4212 extern "C"
4213 #endif
4214 char opendir ();
4215 int
4216 main ()
4217 {
4218 return opendir ();
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 for ac_lib in '' dir; do
4224 if test -z "$ac_lib"; then
4225 ac_res="none required"
4226 else
4227 ac_res=-l$ac_lib
4228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4229 fi
4230 if ac_fn_c_try_link "$LINENO"; then :
4231 ac_cv_search_opendir=$ac_res
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext \
4234 conftest$ac_exeext
4235 if ${ac_cv_search_opendir+:} false; then :
4236 break
4237 fi
4238 done
4239 if ${ac_cv_search_opendir+:} false; then :
4240
4241 else
4242 ac_cv_search_opendir=no
4243 fi
4244 rm conftest.$ac_ext
4245 LIBS=$ac_func_search_save_LIBS
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4248 $as_echo "$ac_cv_search_opendir" >&6; }
4249 ac_res=$ac_cv_search_opendir
4250 if test "$ac_res" != no; then :
4251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4252
4253 fi
4254
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4257 $as_echo_n "checking for library containing opendir... " >&6; }
4258 if ${ac_cv_search_opendir+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 ac_func_search_save_LIBS=$LIBS
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264
4265 /* Override any GCC internal prototype to avoid an error.
4266 Use char because int might match the return type of a GCC
4267 builtin and then its argument prototype would still apply. */
4268 #ifdef __cplusplus
4269 extern "C"
4270 #endif
4271 char opendir ();
4272 int
4273 main ()
4274 {
4275 return opendir ();
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 for ac_lib in '' x; do
4281 if test -z "$ac_lib"; then
4282 ac_res="none required"
4283 else
4284 ac_res=-l$ac_lib
4285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4286 fi
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 ac_cv_search_opendir=$ac_res
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext
4292 if ${ac_cv_search_opendir+:} false; then :
4293 break
4294 fi
4295 done
4296 if ${ac_cv_search_opendir+:} false; then :
4297
4298 else
4299 ac_cv_search_opendir=no
4300 fi
4301 rm conftest.$ac_ext
4302 LIBS=$ac_func_search_save_LIBS
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4305 $as_echo "$ac_cv_search_opendir" >&6; }
4306 ac_res=$ac_cv_search_opendir
4307 if test "$ac_res" != no; then :
4308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4309
4310 fi
4311
4312 fi
4313
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4320 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4321 # On Suns, sometimes $CPP names a directory.
4322 if test -n "$CPP" && test -d "$CPP"; then
4323 CPP=
4324 fi
4325 if test -z "$CPP"; then
4326 if ${ac_cv_prog_CPP+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 # Double quotes because CPP needs to be expanded
4330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331 do
4332 ac_preproc_ok=false
4333 for ac_c_preproc_warn_flag in '' yes
4334 do
4335 # Use a header file that comes with gcc, so configuring glibc
4336 # with a fresh cross-compiler works.
4337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338 # <limits.h> exists even on freestanding compilers.
4339 # On the NeXT, cc -E runs the code through the compiler's parser,
4340 # not just through cpp. "Syntax error" is here to catch this case.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #ifdef __STDC__
4344 # include <limits.h>
4345 #else
4346 # include <assert.h>
4347 #endif
4348 Syntax error
4349 _ACEOF
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4351
4352 else
4353 # Broken: fails on valid input.
4354 continue
4355 fi
4356 rm -f conftest.err conftest.i conftest.$ac_ext
4357
4358 # OK, works on sane cases. Now check whether nonexistent headers
4359 # can be detected and how.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <ac_nonexistent.h>
4363 _ACEOF
4364 if ac_fn_c_try_cpp "$LINENO"; then :
4365 # Broken: success on invalid input.
4366 continue
4367 else
4368 # Passes both tests.
4369 ac_preproc_ok=:
4370 break
4371 fi
4372 rm -f conftest.err conftest.i conftest.$ac_ext
4373
4374 done
4375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376 rm -f conftest.i conftest.err conftest.$ac_ext
4377 if $ac_preproc_ok; then :
4378 break
4379 fi
4380
4381 done
4382 ac_cv_prog_CPP=$CPP
4383
4384 fi
4385 CPP=$ac_cv_prog_CPP
4386 else
4387 ac_cv_prog_CPP=$CPP
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4390 $as_echo "$CPP" >&6; }
4391 ac_preproc_ok=false
4392 for ac_c_preproc_warn_flag in '' yes
4393 do
4394 # Use a header file that comes with gcc, so configuring glibc
4395 # with a fresh cross-compiler works.
4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397 # <limits.h> exists even on freestanding compilers.
4398 # On the NeXT, cc -E runs the code through the compiler's parser,
4399 # not just through cpp. "Syntax error" is here to catch this case.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4407 Syntax error
4408 _ACEOF
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4410
4411 else
4412 # Broken: fails on valid input.
4413 continue
4414 fi
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4416
4417 # OK, works on sane cases. Now check whether nonexistent headers
4418 # can be detected and how.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <ac_nonexistent.h>
4422 _ACEOF
4423 if ac_fn_c_try_cpp "$LINENO"; then :
4424 # Broken: success on invalid input.
4425 continue
4426 else
4427 # Passes both tests.
4428 ac_preproc_ok=:
4429 break
4430 fi
4431 rm -f conftest.err conftest.i conftest.$ac_ext
4432
4433 done
4434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435 rm -f conftest.i conftest.err conftest.$ac_ext
4436 if $ac_preproc_ok; then :
4437
4438 else
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4442 See \`config.log' for more details" "$LINENO" 5; }
4443 fi
4444
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if ${ac_cv_path_GREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_GREP" || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474 *)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497 $ac_path_GREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505 else
4506 ac_cv_path_GREP=$GREP
4507 fi
4508
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4513
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if ${ac_cv_path_EGREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_EGREP" || continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4540 *)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4562
4563 $ac_path_EGREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571 else
4572 ac_cv_path_EGREP=$EGREP
4573 fi
4574
4575 fi
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583 $as_echo_n "checking for ANSI C header files... " >&6; }
4584 if ${ac_cv_header_stdc+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4593
4594 int
4595 main ()
4596 {
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_header_stdc=yes
4604 else
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <string.h>
4614
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev/null 2>&1; then :
4618
4619 else
4620 ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest*
4623
4624 fi
4625
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4631
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then :
4635
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f conftest*
4640
4641 fi
4642
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then :
4646 :
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <ctype.h>
4651 #include <stdlib.h>
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 #else
4656 # define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #endif
4662
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 int
4665 main ()
4666 {
4667 int i;
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4671 return 2;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_run "$LINENO"; then :
4676
4677 else
4678 ac_cv_header_stdc=no
4679 fi
4680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4681 conftest.$ac_objext conftest.beam conftest.$ac_ext
4682 fi
4683
4684 fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687 $as_echo "$ac_cv_header_stdc" >&6; }
4688 if test $ac_cv_header_stdc = yes; then
4689
4690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691
4692 fi
4693
4694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697 do :
4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700 "
4701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704 _ACEOF
4705
4706 fi
4707
4708 done
4709
4710
4711 for ac_header in fcntl.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h linux/cdrom.h
4712 do :
4713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4716 cat >>confdefs.h <<_ACEOF
4717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 _ACEOF
4719
4720 fi
4721
4722 done
4723
4724
4725 # Checks for typedefs, structures, and compiler characteristics.
4726 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4727 if test "x$ac_cv_type_pid_t" = xyes; then :
4728
4729 else
4730
4731 cat >>confdefs.h <<_ACEOF
4732 #define pid_t int
4733 _ACEOF
4734
4735 fi
4736
4737 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4738 if test "x$ac_cv_type_size_t" = xyes; then :
4739
4740 else
4741
4742 cat >>confdefs.h <<_ACEOF
4743 #define size_t unsigned int
4744 _ACEOF
4745
4746 fi
4747
4748 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4749 if test "x$ac_cv_type_ssize_t" = xyes; then :
4750
4751 else
4752
4753 cat >>confdefs.h <<_ACEOF
4754 #define ssize_t int
4755 _ACEOF
4756
4757 fi
4758
4759
4760 # Checks for library functions.
4761 for ac_header in vfork.h
4762 do :
4763 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4764 if test "x$ac_cv_header_vfork_h" = xyes; then :
4765 cat >>confdefs.h <<_ACEOF
4766 #define HAVE_VFORK_H 1
4767 _ACEOF
4768
4769 fi
4770
4771 done
4772
4773 for ac_func in fork vfork
4774 do :
4775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4777 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4778 cat >>confdefs.h <<_ACEOF
4779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4780 _ACEOF
4781
4782 fi
4783 done
4784
4785 if test "x$ac_cv_func_fork" = xyes; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4787 $as_echo_n "checking for working fork... " >&6; }
4788 if ${ac_cv_func_fork_works+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test "$cross_compiling" = yes; then :
4792 ac_cv_func_fork_works=cross
4793 else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 $ac_includes_default
4797 int
4798 main ()
4799 {
4800
4801 /* By Ruediger Kuhlmann. */
4802 return fork () < 0;
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_run "$LINENO"; then :
4809 ac_cv_func_fork_works=yes
4810 else
4811 ac_cv_func_fork_works=no
4812 fi
4813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4814 conftest.$ac_objext conftest.beam conftest.$ac_ext
4815 fi
4816
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4819 $as_echo "$ac_cv_func_fork_works" >&6; }
4820
4821 else
4822 ac_cv_func_fork_works=$ac_cv_func_fork
4823 fi
4824 if test "x$ac_cv_func_fork_works" = xcross; then
4825 case $host in
4826 *-*-amigaos* | *-*-msdosdjgpp*)
4827 # Override, as these systems have only a dummy fork() stub
4828 ac_cv_func_fork_works=no
4829 ;;
4830 *)
4831 ac_cv_func_fork_works=yes
4832 ;;
4833 esac
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4835 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4836 fi
4837 ac_cv_func_vfork_works=$ac_cv_func_vfork
4838 if test "x$ac_cv_func_vfork" = xyes; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4840 $as_echo_n "checking for working vfork... " >&6; }
4841 if ${ac_cv_func_vfork_works+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test "$cross_compiling" = yes; then :
4845 ac_cv_func_vfork_works=cross
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 /* Thanks to Paul Eggert for this test. */
4850 $ac_includes_default
4851 #include <sys/wait.h>
4852 #ifdef HAVE_VFORK_H
4853 # include <vfork.h>
4854 #endif
4855 /* On some sparc systems, changes by the child to local and incoming
4856 argument registers are propagated back to the parent. The compiler
4857 is told about this with #include <vfork.h>, but some compilers
4858 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4859 static variable whose address is put into a register that is
4860 clobbered by the vfork. */
4861 static void
4862 #ifdef __cplusplus
4863 sparc_address_test (int arg)
4864 # else
4865 sparc_address_test (arg) int arg;
4866 #endif
4867 {
4868 static pid_t child;
4869 if (!child) {
4870 child = vfork ();
4871 if (child < 0) {
4872 perror ("vfork");
4873 _exit(2);
4874 }
4875 if (!child) {
4876 arg = getpid();
4877 write(-1, "", 0);
4878 _exit (arg);
4879 }
4880 }
4881 }
4882
4883 int
4884 main ()
4885 {
4886 pid_t parent = getpid ();
4887 pid_t child;
4888
4889 sparc_address_test (0);
4890
4891 child = vfork ();
4892
4893 if (child == 0) {
4894 /* Here is another test for sparc vfork register problems. This
4895 test uses lots of local variables, at least as many local
4896 variables as main has allocated so far including compiler
4897 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4898 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4899 reuse the register of parent for one of the local variables,
4900 since it will think that parent can't possibly be used any more
4901 in this routine. Assigning to the local variable will thus
4902 munge parent in the parent process. */
4903 pid_t
4904 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4905 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4906 /* Convince the compiler that p..p7 are live; otherwise, it might
4907 use the same hardware register for all 8 local variables. */
4908 if (p != p1 || p != p2 || p != p3 || p != p4
4909 || p != p5 || p != p6 || p != p7)
4910 _exit(1);
4911
4912 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4913 from child file descriptors. If the child closes a descriptor
4914 before it execs or exits, this munges the parent's descriptor
4915 as well. Test for this by closing stdout in the child. */
4916 _exit(close(fileno(stdout)) != 0);
4917 } else {
4918 int status;
4919 struct stat st;
4920
4921 while (wait(&status) != child)
4922 ;
4923 return (
4924 /* Was there some problem with vforking? */
4925 child < 0
4926
4927 /* Did the child fail? (This shouldn't happen.) */
4928 || status
4929
4930 /* Did the vfork/compiler bug occur? */
4931 || parent != getpid()
4932
4933 /* Did the file descriptor bug occur? */
4934 || fstat(fileno(stdout), &st) != 0
4935 );
4936 }
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"; then :
4940 ac_cv_func_vfork_works=yes
4941 else
4942 ac_cv_func_vfork_works=no
4943 fi
4944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945 conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 fi
4947
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4950 $as_echo "$ac_cv_func_vfork_works" >&6; }
4951
4952 fi;
4953 if test "x$ac_cv_func_fork_works" = xcross; then
4954 ac_cv_func_vfork_works=$ac_cv_func_vfork
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4956 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4957 fi
4958
4959 if test "x$ac_cv_func_vfork_works" = xyes; then
4960
4961 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4962
4963 else
4964
4965 $as_echo "#define vfork fork" >>confdefs.h
4966
4967 fi
4968 if test "x$ac_cv_func_fork_works" = xyes; then
4969
4970 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4971
4972 fi
4973
4974 for ac_header in stdlib.h
4975 do :
4976 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4977 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4978 cat >>confdefs.h <<_ACEOF
4979 #define HAVE_STDLIB_H 1
4980 _ACEOF
4981
4982 fi
4983
4984 done
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4987 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4988 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test "$cross_compiling" = yes; then :
4992 ac_cv_func_malloc_0_nonnull=no
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4997 # include <stdlib.h>
4998 #else
4999 char *malloc ();
5000 #endif
5001
5002 int
5003 main ()
5004 {
5005 return ! malloc (0);
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_c_try_run "$LINENO"; then :
5011 ac_cv_func_malloc_0_nonnull=yes
5012 else
5013 ac_cv_func_malloc_0_nonnull=no
5014 fi
5015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5016 conftest.$ac_objext conftest.beam conftest.$ac_ext
5017 fi
5018
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5021 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5022 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5023
5024 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5025
5026 else
5027 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5028
5029 case " $LIBOBJS " in
5030 *" malloc.$ac_objext "* ) ;;
5031 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5032 ;;
5033 esac
5034
5035
5036 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5037
5038 fi
5039
5040
5041
5042 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_func"
5043 if test "x$ac_cv_func_func" = xyes; then :
5044
5045 else
5046 as_fn_error $? "Missing required function: dup2" "$LINENO" 5
5047 fi
5048 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_func"
5049 if test "x$ac_cv_func_func" = xyes; then :
5050
5051 else
5052 as_fn_error $? "Missing required function: gethostbyname" "$LINENO" 5
5053 fi
5054 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_func"
5055 if test "x$ac_cv_func_func" = xyes; then :
5056
5057 else
5058 as_fn_error $? "Missing required function: memset" "$LINENO" 5
5059 fi
5060 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_func"
5061 if test "x$ac_cv_func_func" = xyes; then :
5062
5063 else
5064 as_fn_error $? "Missing required function: mkdir" "$LINENO" 5
5065 fi
5066 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_func"
5067 if test "x$ac_cv_func_func" = xyes; then :
5068
5069 else
5070 as_fn_error $? "Missing required function: rmdir" "$LINENO" 5
5071 fi
5072 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_func"
5073 if test "x$ac_cv_func_func" = xyes; then :
5074
5075 else
5076 as_fn_error $? "Missing required function: setenv" "$LINENO" 5
5077 fi
5078 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_func"
5079 if test "x$ac_cv_func_func" = xyes; then :
5080
5081 else
5082 as_fn_error $? "Missing required function: setlocale" "$LINENO" 5
5083 fi
5084 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_func"
5085 if test "x$ac_cv_func_func" = xyes; then :
5086
5087 else
5088 as_fn_error $? "Missing required function: socket" "$LINENO" 5
5089 fi
5090 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_func"
5091 if test "x$ac_cv_func_func" = xyes; then :
5092
5093 else
5094 as_fn_error $? "Missing required function: strchr" "$LINENO" 5
5095 fi
5096 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_func"
5097 if test "x$ac_cv_func_func" = xyes; then :
5098
5099 else
5100 as_fn_error $? "Missing required function: strcspn" "$LINENO" 5
5101 fi
5102 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_func"
5103 if test "x$ac_cv_func_func" = xyes; then :
5104
5105 else
5106 as_fn_error $? "Missing required function: strdup" "$LINENO" 5
5107 fi
5108 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_func"
5109 if test "x$ac_cv_func_func" = xyes; then :
5110
5111 else
5112 as_fn_error $? "Missing required function: strerror" "$LINENO" 5
5113 fi
5114 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_func"
5115 if test "x$ac_cv_func_func" = xyes; then :
5116
5117 else
5118 as_fn_error $? "Missing required function: strncasecmp" "$LINENO" 5
5119 fi
5120 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_func"
5121 if test "x$ac_cv_func_func" = xyes; then :
5122
5123 else
5124 as_fn_error $? "Missing required function: strndup" "$LINENO" 5
5125 fi
5126 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_func"
5127 if test "x$ac_cv_func_func" = xyes; then :
5128
5129 else
5130 as_fn_error $? "Missing required function: strstr" "$LINENO" 5
5131 fi
5132
5133
5134 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
5135 if test "x$ac_cv_func_openpty" = xyes; then :
5136
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
5139 $as_echo_n "checking for openpty in -lutil... " >&6; }
5140 if ${ac_cv_lib_util_openpty+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 ac_check_lib_save_LIBS=$LIBS
5144 LIBS="-lutil $LIBS"
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5151 #ifdef __cplusplus
5152 extern "C"
5153 #endif
5154 char openpty ();
5155 int
5156 main ()
5157 {
5158 return openpty ();
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_link "$LINENO"; then :
5164 ac_cv_lib_util_openpty=yes
5165 else
5166 ac_cv_lib_util_openpty=no
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_check_lib_save_LIBS
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
5173 $as_echo "$ac_cv_lib_util_openpty" >&6; }
5174 if test "x$ac_cv_lib_util_openpty" = xyes; then :
5175 cat >>confdefs.h <<_ACEOF
5176 #define HAVE_LIBUTIL 1
5177 _ACEOF
5178
5179 LIBS="-lutil $LIBS"
5180
5181 else
5182 as_fn_error $? "Missing required function: openpty" "$LINENO" 5
5183 fi
5184
5185 fi
5186
5187
5188
5189 # Additional libraries
5190
5191 mkdir_p="$MKDIR_P"
5192 case $mkdir_p in
5193 [\\/$]* | ?:[\\/]*) ;;
5194 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5195 esac
5196
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5199 $as_echo_n "checking whether NLS is requested... " >&6; }
5200 # Check whether --enable-nls was given.
5201 if test "${enable_nls+set}" = set; then :
5202 enableval=$enable_nls; USE_NLS=$enableval
5203 else
5204 USE_NLS=yes
5205 fi
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5208 $as_echo "$USE_NLS" >&6; }
5209
5210
5211
5212
5213 GETTEXT_MACRO_VERSION=0.18
5214
5215
5216
5217
5218 # Prepare PATH_SEPARATOR.
5219 # The user is always right.
5220 if test "${PATH_SEPARATOR+set}" != set; then
5221 echo "#! /bin/sh" >conf$$.sh
5222 echo "exit 0" >>conf$$.sh
5223 chmod +x conf$$.sh
5224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5225 PATH_SEPARATOR=';'
5226 else
5227 PATH_SEPARATOR=:
5228 fi
5229 rm -f conf$$.sh
5230 fi
5231
5232 # Find out how to test for executable files. Don't use a zero-byte file,
5233 # as systems may use methods other than mode bits to determine executability.
5234 cat >conf$$.file <<_ASEOF
5235 #! /bin/sh
5236 exit 0
5237 _ASEOF
5238 chmod +x conf$$.file
5239 if test -x conf$$.file >/dev/null 2>&1; then
5240 ac_executable_p="test -x"
5241 else
5242 ac_executable_p="test -f"
5243 fi
5244 rm -f conf$$.file
5245
5246 # Extract the first word of "msgfmt", so it can be a program name with args.
5247 set dummy msgfmt; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_path_MSGFMT+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 case "$MSGFMT" in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5256 ;;
5257 *)
5258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5259 for ac_dir in $PATH; do
5260 IFS="$ac_save_IFS"
5261 test -z "$ac_dir" && ac_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5264 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5265 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5266 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5267 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5268 break 2
5269 fi
5270 fi
5271 done
5272 done
5273 IFS="$ac_save_IFS"
5274 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5275 ;;
5276 esac
5277 fi
5278 MSGFMT="$ac_cv_path_MSGFMT"
5279 if test "$MSGFMT" != ":"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5281 $as_echo "$MSGFMT" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5288 set dummy gmsgfmt; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_path_GMSGFMT+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 case $GMSGFMT in
5295 [\\/]* | ?:[\\/]*)
5296 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5297 ;;
5298 *)
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310 done
5311 done
5312 IFS=$as_save_IFS
5313
5314 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5315 ;;
5316 esac
5317 fi
5318 GMSGFMT=$ac_cv_path_GMSGFMT
5319 if test -n "$GMSGFMT"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5321 $as_echo "$GMSGFMT" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328
5329 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5330 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5331 *) MSGFMT_015=$MSGFMT ;;
5332 esac
5333
5334 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5335 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5336 *) GMSGFMT_015=$GMSGFMT ;;
5337 esac
5338
5339
5340
5341 # Prepare PATH_SEPARATOR.
5342 # The user is always right.
5343 if test "${PATH_SEPARATOR+set}" != set; then
5344 echo "#! /bin/sh" >conf$$.sh
5345 echo "exit 0" >>conf$$.sh
5346 chmod +x conf$$.sh
5347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5348 PATH_SEPARATOR=';'
5349 else
5350 PATH_SEPARATOR=:
5351 fi
5352 rm -f conf$$.sh
5353 fi
5354
5355 # Find out how to test for executable files. Don't use a zero-byte file,
5356 # as systems may use methods other than mode bits to determine executability.
5357 cat >conf$$.file <<_ASEOF
5358 #! /bin/sh
5359 exit 0
5360 _ASEOF
5361 chmod +x conf$$.file
5362 if test -x conf$$.file >/dev/null 2>&1; then
5363 ac_executable_p="test -x"
5364 else
5365 ac_executable_p="test -f"
5366 fi
5367 rm -f conf$$.file
5368
5369 # Extract the first word of "xgettext", so it can be a program name with args.
5370 set dummy xgettext; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_path_XGETTEXT+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 case "$XGETTEXT" in
5377 [\\/]* | ?:[\\/]*)
5378 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5379 ;;
5380 *)
5381 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5382 for ac_dir in $PATH; do
5383 IFS="$ac_save_IFS"
5384 test -z "$ac_dir" && ac_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5387 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5388 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5389 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5390 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5391 break 2
5392 fi
5393 fi
5394 done
5395 done
5396 IFS="$ac_save_IFS"
5397 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5398 ;;
5399 esac
5400 fi
5401 XGETTEXT="$ac_cv_path_XGETTEXT"
5402 if test "$XGETTEXT" != ":"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5404 $as_echo "$XGETTEXT" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410 rm -f messages.po
5411
5412 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5413 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5414 *) XGETTEXT_015=$XGETTEXT ;;
5415 esac
5416
5417
5418
5419 # Prepare PATH_SEPARATOR.
5420 # The user is always right.
5421 if test "${PATH_SEPARATOR+set}" != set; then
5422 echo "#! /bin/sh" >conf$$.sh
5423 echo "exit 0" >>conf$$.sh
5424 chmod +x conf$$.sh
5425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5426 PATH_SEPARATOR=';'
5427 else
5428 PATH_SEPARATOR=:
5429 fi
5430 rm -f conf$$.sh
5431 fi
5432
5433 # Find out how to test for executable files. Don't use a zero-byte file,
5434 # as systems may use methods other than mode bits to determine executability.
5435 cat >conf$$.file <<_ASEOF
5436 #! /bin/sh
5437 exit 0
5438 _ASEOF
5439 chmod +x conf$$.file
5440 if test -x conf$$.file >/dev/null 2>&1; then
5441 ac_executable_p="test -x"
5442 else
5443 ac_executable_p="test -f"
5444 fi
5445 rm -f conf$$.file
5446
5447 # Extract the first word of "msgmerge", so it can be a program name with args.
5448 set dummy msgmerge; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_path_MSGMERGE+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 case "$MSGMERGE" in
5455 [\\/]* | ?:[\\/]*)
5456 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5457 ;;
5458 *)
5459 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5460 for ac_dir in $PATH; do
5461 IFS="$ac_save_IFS"
5462 test -z "$ac_dir" && ac_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5465 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5466 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5467 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5468 break 2
5469 fi
5470 fi
5471 done
5472 done
5473 IFS="$ac_save_IFS"
5474 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5475 ;;
5476 esac
5477 fi
5478 MSGMERGE="$ac_cv_path_MSGMERGE"
5479 if test "$MSGMERGE" != ":"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5481 $as_echo "$MSGMERGE" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 test -n "$localedir" || localedir='${datadir}/locale'
5489
5490
5491 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5492
5493
5494 ac_config_commands="$ac_config_commands po-directories"
5495
5496
5497
5498 if test "X$prefix" = "XNONE"; then
5499 acl_final_prefix="$ac_default_prefix"
5500 else
5501 acl_final_prefix="$prefix"
5502 fi
5503 if test "X$exec_prefix" = "XNONE"; then
5504 acl_final_exec_prefix='${prefix}'
5505 else
5506 acl_final_exec_prefix="$exec_prefix"
5507 fi
5508 acl_save_prefix="$prefix"
5509 prefix="$acl_final_prefix"
5510 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5511 prefix="$acl_save_prefix"
5512
5513 # Make sure we can run config.sub.
5514 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5515 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5518 $as_echo_n "checking build system type... " >&6; }
5519 if ${ac_cv_build+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 ac_build_alias=$build_alias
5523 test "x$ac_build_alias" = x &&
5524 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5525 test "x$ac_build_alias" = x &&
5526 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5527 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5528 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5532 $as_echo "$ac_cv_build" >&6; }
5533 case $ac_cv_build in
5534 *-*-*) ;;
5535 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5536 esac
5537 build=$ac_cv_build
5538 ac_save_IFS=$IFS; IFS='-'
5539 set x $ac_cv_build
5540 shift
5541 build_cpu=$1
5542 build_vendor=$2
5543 shift; shift
5544 # Remember, the first character of IFS is used to create $*,
5545 # except with old shells:
5546 build_os=$*
5547 IFS=$ac_save_IFS
5548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5552 $as_echo_n "checking host system type... " >&6; }
5553 if ${ac_cv_host+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if test "x$host_alias" = x; then
5557 ac_cv_host=$ac_cv_build
5558 else
5559 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5561 fi
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5565 $as_echo "$ac_cv_host" >&6; }
5566 case $ac_cv_host in
5567 *-*-*) ;;
5568 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5569 esac
5570 host=$ac_cv_host
5571 ac_save_IFS=$IFS; IFS='-'
5572 set x $ac_cv_host
5573 shift
5574 host_cpu=$1
5575 host_vendor=$2
5576 shift; shift
5577 # Remember, the first character of IFS is used to create $*,
5578 # except with old shells:
5579 host_os=$*
5580 IFS=$ac_save_IFS
5581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5582
5583
5584
5585 # Check whether --with-gnu-ld was given.
5586 if test "${with_gnu_ld+set}" = set; then :
5587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5588 else
5589 with_gnu_ld=no
5590 fi
5591
5592 # Prepare PATH_SEPARATOR.
5593 # The user is always right.
5594 if test "${PATH_SEPARATOR+set}" != set; then
5595 echo "#! /bin/sh" >conf$$.sh
5596 echo "exit 0" >>conf$$.sh
5597 chmod +x conf$$.sh
5598 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5599 PATH_SEPARATOR=';'
5600 else
5601 PATH_SEPARATOR=:
5602 fi
5603 rm -f conf$$.sh
5604 fi
5605 ac_prog=ld
5606 if test "$GCC" = yes; then
5607 # Check if gcc -print-prog-name=ld gives a path.
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5609 $as_echo_n "checking for ld used by GCC... " >&6; }
5610 case $host in
5611 *-*-mingw*)
5612 # gcc leaves a trailing carriage return which upsets mingw
5613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5614 *)
5615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5616 esac
5617 case $ac_prog in
5618 # Accept absolute paths.
5619 [\\/]* | [A-Za-z]:[\\/]*)
5620 re_direlt='/[^/][^/]*/\.\./'
5621 # Canonicalize the path of ld
5622 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5624 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5625 done
5626 test -z "$LD" && LD="$ac_prog"
5627 ;;
5628 "")
5629 # If it fails, then pretend we aren't using GCC.
5630 ac_prog=ld
5631 ;;
5632 *)
5633 # If it is relative, then search for the first ld in PATH.
5634 with_gnu_ld=unknown
5635 ;;
5636 esac
5637 elif test "$with_gnu_ld" = yes; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5639 $as_echo_n "checking for GNU ld... " >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5642 $as_echo_n "checking for non-GNU ld... " >&6; }
5643 fi
5644 if ${acl_cv_path_LD+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -z "$LD"; then
5648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5649 for ac_dir in $PATH; do
5650 test -z "$ac_dir" && ac_dir=.
5651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5652 acl_cv_path_LD="$ac_dir/$ac_prog"
5653 # Check to see if the program is GNU ld. I'd rather use --version,
5654 # but apparently some GNU ld's only accept -v.
5655 # Break only if it was the GNU/non-GNU ld that we prefer.
5656 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5657 *GNU* | *'with BFD'*)
5658 test "$with_gnu_ld" != no && break ;;
5659 *)
5660 test "$with_gnu_ld" != yes && break ;;
5661 esac
5662 fi
5663 done
5664 IFS="$ac_save_ifs"
5665 else
5666 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5667 fi
5668 fi
5669
5670 LD="$acl_cv_path_LD"
5671 if test -n "$LD"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5673 $as_echo "$LD" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5681 if ${acl_cv_prog_gnu_ld+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5685 case `$LD -v 2>&1 </dev/null` in
5686 *GNU* | *'with BFD'*)
5687 acl_cv_prog_gnu_ld=yes ;;
5688 *)
5689 acl_cv_prog_gnu_ld=no ;;
5690 esac
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5693 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5694 with_gnu_ld=$acl_cv_prog_gnu_ld
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5700 $as_echo_n "checking for shared library run path origin... " >&6; }
5701 if ${acl_cv_rpath+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704
5705 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5706 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5707 . ./conftest.sh
5708 rm -f ./conftest.sh
5709 acl_cv_rpath=done
5710
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5713 $as_echo "$acl_cv_rpath" >&6; }
5714 wl="$acl_cv_wl"
5715 acl_libext="$acl_cv_libext"
5716 acl_shlibext="$acl_cv_shlibext"
5717 acl_libname_spec="$acl_cv_libname_spec"
5718 acl_library_names_spec="$acl_cv_library_names_spec"
5719 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5720 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5721 acl_hardcode_direct="$acl_cv_hardcode_direct"
5722 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5723 # Check whether --enable-rpath was given.
5724 if test "${enable_rpath+set}" = set; then :
5725 enableval=$enable_rpath; :
5726 else
5727 enable_rpath=yes
5728 fi
5729
5730
5731
5732
5733 acl_libdirstem=lib
5734 acl_libdirstem2=
5735 case "$host_os" in
5736 solaris*)
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5738 $as_echo_n "checking for 64-bit host... " >&6; }
5739 if ${gl_cv_solaris_64bit+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744
5745 #ifdef _LP64
5746 sixtyfour bits
5747 #endif
5748
5749 _ACEOF
5750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5751 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5752 gl_cv_solaris_64bit=yes
5753 else
5754 gl_cv_solaris_64bit=no
5755 fi
5756 rm -f conftest*
5757
5758
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5761 $as_echo "$gl_cv_solaris_64bit" >&6; }
5762 if test $gl_cv_solaris_64bit = yes; then
5763 acl_libdirstem=lib/64
5764 case "$host_cpu" in
5765 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5766 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5767 esac
5768 fi
5769 ;;
5770 *)
5771 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5772 if test -n "$searchpath"; then
5773 acl_save_IFS="${IFS= }"; IFS=":"
5774 for searchdir in $searchpath; do
5775 if test -d "$searchdir"; then
5776 case "$searchdir" in
5777 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5778 */../ | */.. )
5779 # Better ignore directories of this form. They are misleading.
5780 ;;
5781 *) searchdir=`cd "$searchdir" && pwd`
5782 case "$searchdir" in
5783 */lib64 ) acl_libdirstem=lib64 ;;
5784 esac ;;
5785 esac
5786 fi
5787 done
5788 IFS="$acl_save_IFS"
5789 fi
5790 ;;
5791 esac
5792 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 use_additional=yes
5806
5807 acl_save_prefix="$prefix"
5808 prefix="$acl_final_prefix"
5809 acl_save_exec_prefix="$exec_prefix"
5810 exec_prefix="$acl_final_exec_prefix"
5811
5812 eval additional_includedir=\"$includedir\"
5813 eval additional_libdir=\"$libdir\"
5814
5815 exec_prefix="$acl_save_exec_prefix"
5816 prefix="$acl_save_prefix"
5817
5818
5819 # Check whether --with-libiconv-prefix was given.
5820 if test "${with_libiconv_prefix+set}" = set; then :
5821 withval=$with_libiconv_prefix;
5822 if test "X$withval" = "Xno"; then
5823 use_additional=no
5824 else
5825 if test "X$withval" = "X"; then
5826
5827 acl_save_prefix="$prefix"
5828 prefix="$acl_final_prefix"
5829 acl_save_exec_prefix="$exec_prefix"
5830 exec_prefix="$acl_final_exec_prefix"
5831
5832 eval additional_includedir=\"$includedir\"
5833 eval additional_libdir=\"$libdir\"
5834
5835 exec_prefix="$acl_save_exec_prefix"
5836 prefix="$acl_save_prefix"
5837
5838 else
5839 additional_includedir="$withval/include"
5840 additional_libdir="$withval/$acl_libdirstem"
5841 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5842 && ! test -d "$withval/$acl_libdirstem"; then
5843 additional_libdir="$withval/$acl_libdirstem2"
5844 fi
5845 fi
5846 fi
5847
5848 fi
5849
5850 LIBICONV=
5851 LTLIBICONV=
5852 INCICONV=
5853 LIBICONV_PREFIX=
5854 HAVE_LIBICONV=
5855 rpathdirs=
5856 ltrpathdirs=
5857 names_already_handled=
5858 names_next_round='iconv '
5859 while test -n "$names_next_round"; do
5860 names_this_round="$names_next_round"
5861 names_next_round=
5862 for name in $names_this_round; do
5863 already_handled=
5864 for n in $names_already_handled; do
5865 if test "$n" = "$name"; then
5866 already_handled=yes
5867 break
5868 fi
5869 done
5870 if test -z "$already_handled"; then
5871 names_already_handled="$names_already_handled $name"
5872 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5873 eval value=\"\$HAVE_LIB$uppername\"
5874 if test -n "$value"; then
5875 if test "$value" = yes; then
5876 eval value=\"\$LIB$uppername\"
5877 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5878 eval value=\"\$LTLIB$uppername\"
5879 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5880 else
5881 :
5882 fi
5883 else
5884 found_dir=
5885 found_la=
5886 found_so=
5887 found_a=
5888 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5889 if test -n "$acl_shlibext"; then
5890 shrext=".$acl_shlibext" # typically: shrext=.so
5891 else
5892 shrext=
5893 fi
5894 if test $use_additional = yes; then
5895 dir="$additional_libdir"
5896 if test -n "$acl_shlibext"; then
5897 if test -f "$dir/$libname$shrext"; then
5898 found_dir="$dir"
5899 found_so="$dir/$libname$shrext"
5900 else
5901 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5902 ver=`(cd "$dir" && \
5903 for f in "$libname$shrext".*; do echo "$f"; done \
5904 | sed -e "s,^$libname$shrext\\\\.,," \
5905 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5906 | sed 1q ) 2>/dev/null`
5907 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5908 found_dir="$dir"
5909 found_so="$dir/$libname$shrext.$ver"
5910 fi
5911 else
5912 eval library_names=\"$acl_library_names_spec\"
5913 for f in $library_names; do
5914 if test -f "$dir/$f"; then
5915 found_dir="$dir"
5916 found_so="$dir/$f"
5917 break
5918 fi
5919 done
5920 fi
5921 fi
5922 fi
5923 if test "X$found_dir" = "X"; then
5924 if test -f "$dir/$libname.$acl_libext"; then
5925 found_dir="$dir"
5926 found_a="$dir/$libname.$acl_libext"
5927 fi
5928 fi
5929 if test "X$found_dir" != "X"; then
5930 if test -f "$dir/$libname.la"; then
5931 found_la="$dir/$libname.la"
5932 fi
5933 fi
5934 fi
5935 if test "X$found_dir" = "X"; then
5936 for x in $LDFLAGS $LTLIBICONV; do
5937
5938 acl_save_prefix="$prefix"
5939 prefix="$acl_final_prefix"
5940 acl_save_exec_prefix="$exec_prefix"
5941 exec_prefix="$acl_final_exec_prefix"
5942 eval x=\"$x\"
5943 exec_prefix="$acl_save_exec_prefix"
5944 prefix="$acl_save_prefix"
5945
5946 case "$x" in
5947 -L*)
5948 dir=`echo "X$x" | sed -e 's/^X-L//'`
5949 if test -n "$acl_shlibext"; then
5950 if test -f "$dir/$libname$shrext"; then
5951 found_dir="$dir"
5952 found_so="$dir/$libname$shrext"
5953 else
5954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5955 ver=`(cd "$dir" && \
5956 for f in "$libname$shrext".*; do echo "$f"; done \
5957 | sed -e "s,^$libname$shrext\\\\.,," \
5958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5959 | sed 1q ) 2>/dev/null`
5960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5961 found_dir="$dir"
5962 found_so="$dir/$libname$shrext.$ver"
5963 fi
5964 else
5965 eval library_names=\"$acl_library_names_spec\"
5966 for f in $library_names; do
5967 if test -f "$dir/$f"; then
5968 found_dir="$dir"
5969 found_so="$dir/$f"
5970 break
5971 fi
5972 done
5973 fi
5974 fi
5975 fi
5976 if test "X$found_dir" = "X"; then
5977 if test -f "$dir/$libname.$acl_libext"; then
5978 found_dir="$dir"
5979 found_a="$dir/$libname.$acl_libext"
5980 fi
5981 fi
5982 if test "X$found_dir" != "X"; then
5983 if test -f "$dir/$libname.la"; then
5984 found_la="$dir/$libname.la"
5985 fi
5986 fi
5987 ;;
5988 esac
5989 if test "X$found_dir" != "X"; then
5990 break
5991 fi
5992 done
5993 fi
5994 if test "X$found_dir" != "X"; then
5995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5996 if test "X$found_so" != "X"; then
5997 if test "$enable_rpath" = no \
5998 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5999 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6000 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6001 else
6002 haveit=
6003 for x in $ltrpathdirs; do
6004 if test "X$x" = "X$found_dir"; then
6005 haveit=yes
6006 break
6007 fi
6008 done
6009 if test -z "$haveit"; then
6010 ltrpathdirs="$ltrpathdirs $found_dir"
6011 fi
6012 if test "$acl_hardcode_direct" = yes; then
6013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6014 else
6015 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6017 haveit=
6018 for x in $rpathdirs; do
6019 if test "X$x" = "X$found_dir"; then
6020 haveit=yes
6021 break
6022 fi
6023 done
6024 if test -z "$haveit"; then
6025 rpathdirs="$rpathdirs $found_dir"
6026 fi
6027 else
6028 haveit=
6029 for x in $LDFLAGS $LIBICONV; do
6030
6031 acl_save_prefix="$prefix"
6032 prefix="$acl_final_prefix"
6033 acl_save_exec_prefix="$exec_prefix"
6034 exec_prefix="$acl_final_exec_prefix"
6035 eval x=\"$x\"
6036 exec_prefix="$acl_save_exec_prefix"
6037 prefix="$acl_save_prefix"
6038
6039 if test "X$x" = "X-L$found_dir"; then
6040 haveit=yes
6041 break
6042 fi
6043 done
6044 if test -z "$haveit"; then
6045 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6046 fi
6047 if test "$acl_hardcode_minus_L" != no; then
6048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6049 else
6050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6051 fi
6052 fi
6053 fi
6054 fi
6055 else
6056 if test "X$found_a" != "X"; then
6057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6058 else
6059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6060 fi
6061 fi
6062 additional_includedir=
6063 case "$found_dir" in
6064 */$acl_libdirstem | */$acl_libdirstem/)
6065 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6066 if test "$name" = 'iconv'; then
6067 LIBICONV_PREFIX="$basedir"
6068 fi
6069 additional_includedir="$basedir/include"
6070 ;;
6071 */$acl_libdirstem2 | */$acl_libdirstem2/)
6072 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6073 if test "$name" = 'iconv'; then
6074 LIBICONV_PREFIX="$basedir"
6075 fi
6076 additional_includedir="$basedir/include"
6077 ;;
6078 esac
6079 if test "X$additional_includedir" != "X"; then
6080 if test "X$additional_includedir" != "X/usr/include"; then
6081 haveit=
6082 if test "X$additional_includedir" = "X/usr/local/include"; then
6083 if test -n "$GCC"; then
6084 case $host_os in
6085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6086 esac
6087 fi
6088 fi
6089 if test -z "$haveit"; then
6090 for x in $CPPFLAGS $INCICONV; do
6091
6092 acl_save_prefix="$prefix"
6093 prefix="$acl_final_prefix"
6094 acl_save_exec_prefix="$exec_prefix"
6095 exec_prefix="$acl_final_exec_prefix"
6096 eval x=\"$x\"
6097 exec_prefix="$acl_save_exec_prefix"
6098 prefix="$acl_save_prefix"
6099
6100 if test "X$x" = "X-I$additional_includedir"; then
6101 haveit=yes
6102 break
6103 fi
6104 done
6105 if test -z "$haveit"; then
6106 if test -d "$additional_includedir"; then
6107 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6108 fi
6109 fi
6110 fi
6111 fi
6112 fi
6113 if test -n "$found_la"; then
6114 save_libdir="$libdir"
6115 case "$found_la" in
6116 */* | *\\*) . "$found_la" ;;
6117 *) . "./$found_la" ;;
6118 esac
6119 libdir="$save_libdir"
6120 for dep in $dependency_libs; do
6121 case "$dep" in
6122 -L*)
6123 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6124 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6125 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6126 haveit=
6127 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6128 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6129 if test -n "$GCC"; then
6130 case $host_os in
6131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6132 esac
6133 fi
6134 fi
6135 if test -z "$haveit"; then
6136 haveit=
6137 for x in $LDFLAGS $LIBICONV; do
6138
6139 acl_save_prefix="$prefix"
6140 prefix="$acl_final_prefix"
6141 acl_save_exec_prefix="$exec_prefix"
6142 exec_prefix="$acl_final_exec_prefix"
6143 eval x=\"$x\"
6144 exec_prefix="$acl_save_exec_prefix"
6145 prefix="$acl_save_prefix"
6146
6147 if test "X$x" = "X-L$additional_libdir"; then
6148 haveit=yes
6149 break
6150 fi
6151 done
6152 if test -z "$haveit"; then
6153 if test -d "$additional_libdir"; then
6154 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6155 fi
6156 fi
6157 haveit=
6158 for x in $LDFLAGS $LTLIBICONV; do
6159
6160 acl_save_prefix="$prefix"
6161 prefix="$acl_final_prefix"
6162 acl_save_exec_prefix="$exec_prefix"
6163 exec_prefix="$acl_final_exec_prefix"
6164 eval x=\"$x\"
6165 exec_prefix="$acl_save_exec_prefix"
6166 prefix="$acl_save_prefix"
6167
6168 if test "X$x" = "X-L$additional_libdir"; then
6169 haveit=yes
6170 break
6171 fi
6172 done
6173 if test -z "$haveit"; then
6174 if test -d "$additional_libdir"; then
6175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6176 fi
6177 fi
6178 fi
6179 fi
6180 ;;
6181 -R*)
6182 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6183 if test "$enable_rpath" != no; then
6184 haveit=
6185 for x in $rpathdirs; do
6186 if test "X$x" = "X$dir"; then
6187 haveit=yes
6188 break
6189 fi
6190 done
6191 if test -z "$haveit"; then
6192 rpathdirs="$rpathdirs $dir"
6193 fi
6194 haveit=
6195 for x in $ltrpathdirs; do
6196 if test "X$x" = "X$dir"; then
6197 haveit=yes
6198 break
6199 fi
6200 done
6201 if test -z "$haveit"; then
6202 ltrpathdirs="$ltrpathdirs $dir"
6203 fi
6204 fi
6205 ;;
6206 -l*)
6207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6208 ;;
6209 *.la)
6210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6211 ;;
6212 *)
6213 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6215 ;;
6216 esac
6217 done
6218 fi
6219 else
6220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6222 fi
6223 fi
6224 fi
6225 done
6226 done
6227 if test "X$rpathdirs" != "X"; then
6228 if test -n "$acl_hardcode_libdir_separator"; then
6229 alldirs=
6230 for found_dir in $rpathdirs; do
6231 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6232 done
6233 acl_save_libdir="$libdir"
6234 libdir="$alldirs"
6235 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6236 libdir="$acl_save_libdir"
6237 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6238 else
6239 for found_dir in $rpathdirs; do
6240 acl_save_libdir="$libdir"
6241 libdir="$found_dir"
6242 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6243 libdir="$acl_save_libdir"
6244 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6245 done
6246 fi
6247 fi
6248 if test "X$ltrpathdirs" != "X"; then
6249 for found_dir in $ltrpathdirs; do
6250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6251 done
6252 fi
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6285 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6286 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 gt_save_LIBS="$LIBS"
6290 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <CoreFoundation/CFPreferences.h>
6294 int
6295 main ()
6296 {
6297 CFPreferencesCopyAppValue(NULL, NULL)
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 gt_cv_func_CFPreferencesCopyAppValue=yes
6304 else
6305 gt_cv_func_CFPreferencesCopyAppValue=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 LIBS="$gt_save_LIBS"
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6312 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6313 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6314
6315 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6319 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6320 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 gt_save_LIBS="$LIBS"
6324 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <CoreFoundation/CFLocale.h>
6328 int
6329 main ()
6330 {
6331 CFLocaleCopyCurrent();
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 gt_cv_func_CFLocaleCopyCurrent=yes
6338 else
6339 gt_cv_func_CFLocaleCopyCurrent=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS="$gt_save_LIBS"
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6346 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6347 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6348
6349 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6350
6351 fi
6352 INTL_MACOSX_LIBS=
6353 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6354 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6355 fi
6356
6357
6358
6359
6360
6361
6362 LIBINTL=
6363 LTLIBINTL=
6364 POSUB=
6365
6366 case " $gt_needs " in
6367 *" need-formatstring-macros "*) gt_api_version=3 ;;
6368 *" need-ngettext "*) gt_api_version=2 ;;
6369 *) gt_api_version=1 ;;
6370 esac
6371 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6372 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6373
6374 if test "$USE_NLS" = "yes"; then
6375 gt_use_preinstalled_gnugettext=no
6376
6377
6378 if test $gt_api_version -ge 3; then
6379 gt_revision_test_code='
6380 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6381 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6382 #endif
6383 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6384 '
6385 else
6386 gt_revision_test_code=
6387 fi
6388 if test $gt_api_version -ge 2; then
6389 gt_expression_test_code=' + * ngettext ("", "", 0)'
6390 else
6391 gt_expression_test_code=
6392 fi
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6395 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6396 if eval \${$gt_func_gnugettext_libc+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <libintl.h>
6402 $gt_revision_test_code
6403 extern int _nl_msg_cat_cntr;
6404 extern int *_nl_domain_bindings;
6405 int
6406 main ()
6407 {
6408 bindtextdomain ("", "");
6409 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"; then :
6415 eval "$gt_func_gnugettext_libc=yes"
6416 else
6417 eval "$gt_func_gnugettext_libc=no"
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 fi
6422 eval ac_res=\$$gt_func_gnugettext_libc
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6424 $as_echo "$ac_res" >&6; }
6425
6426 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6427
6428
6429
6430
6431
6432 am_save_CPPFLAGS="$CPPFLAGS"
6433
6434 for element in $INCICONV; do
6435 haveit=
6436 for x in $CPPFLAGS; do
6437
6438 acl_save_prefix="$prefix"
6439 prefix="$acl_final_prefix"
6440 acl_save_exec_prefix="$exec_prefix"
6441 exec_prefix="$acl_final_exec_prefix"
6442 eval x=\"$x\"
6443 exec_prefix="$acl_save_exec_prefix"
6444 prefix="$acl_save_prefix"
6445
6446 if test "X$x" = "X$element"; then
6447 haveit=yes
6448 break
6449 fi
6450 done
6451 if test -z "$haveit"; then
6452 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6453 fi
6454 done
6455
6456
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6458 $as_echo_n "checking for iconv... " >&6; }
6459 if ${am_cv_func_iconv+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462
6463 am_cv_func_iconv="no, consider installing GNU libiconv"
6464 am_cv_lib_iconv=no
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <stdlib.h>
6468 #include <iconv.h>
6469 int
6470 main ()
6471 {
6472 iconv_t cd = iconv_open("","");
6473 iconv(cd,NULL,NULL,NULL,NULL);
6474 iconv_close(cd);
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 if ac_fn_c_try_link "$LINENO"; then :
6480 am_cv_func_iconv=yes
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 if test "$am_cv_func_iconv" != yes; then
6485 am_save_LIBS="$LIBS"
6486 LIBS="$LIBS $LIBICONV"
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <stdlib.h>
6490 #include <iconv.h>
6491 int
6492 main ()
6493 {
6494 iconv_t cd = iconv_open("","");
6495 iconv(cd,NULL,NULL,NULL,NULL);
6496 iconv_close(cd);
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 am_cv_lib_iconv=yes
6503 am_cv_func_iconv=yes
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext \
6506 conftest$ac_exeext conftest.$ac_ext
6507 LIBS="$am_save_LIBS"
6508 fi
6509
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6512 $as_echo "$am_cv_func_iconv" >&6; }
6513 if test "$am_cv_func_iconv" = yes; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6515 $as_echo_n "checking for working iconv... " >&6; }
6516 if ${am_cv_func_iconv_works+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519
6520 am_save_LIBS="$LIBS"
6521 if test $am_cv_lib_iconv = yes; then
6522 LIBS="$LIBS $LIBICONV"
6523 fi
6524 if test "$cross_compiling" = yes; then :
6525 case "$host_os" in
6526 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6527 *) am_cv_func_iconv_works="guessing yes" ;;
6528 esac
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532
6533 #include <iconv.h>
6534 #include <string.h>
6535 int main ()
6536 {
6537 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6538 returns. */
6539 {
6540 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6541 if (cd_utf8_to_88591 != (iconv_t)(-1))
6542 {
6543 static const char input[] = "\342\202\254"; /* EURO SIGN */
6544 char buf[10];
6545 const char *inptr = input;
6546 size_t inbytesleft = strlen (input);
6547 char *outptr = buf;
6548 size_t outbytesleft = sizeof (buf);
6549 size_t res = iconv (cd_utf8_to_88591,
6550 (char **) &inptr, &inbytesleft,
6551 &outptr, &outbytesleft);
6552 if (res == 0)
6553 return 1;
6554 }
6555 }
6556 /* Test against Solaris 10 bug: Failures are not distinguishable from
6557 successful returns. */
6558 {
6559 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6560 if (cd_ascii_to_88591 != (iconv_t)(-1))
6561 {
6562 static const char input[] = "\263";
6563 char buf[10];
6564 const char *inptr = input;
6565 size_t inbytesleft = strlen (input);
6566 char *outptr = buf;
6567 size_t outbytesleft = sizeof (buf);
6568 size_t res = iconv (cd_ascii_to_88591,
6569 (char **) &inptr, &inbytesleft,
6570 &outptr, &outbytesleft);
6571 if (res == 0)
6572 return 1;
6573 }
6574 }
6575 #if 0 /* This bug could be worked around by the caller. */
6576 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6577 {
6578 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6579 if (cd_88591_to_utf8 != (iconv_t)(-1))
6580 {
6581 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6582 char buf[50];
6583 const char *inptr = input;
6584 size_t inbytesleft = strlen (input);
6585 char *outptr = buf;
6586 size_t outbytesleft = sizeof (buf);
6587 size_t res = iconv (cd_88591_to_utf8,
6588 (char **) &inptr, &inbytesleft,
6589 &outptr, &outbytesleft);
6590 if ((int)res > 0)
6591 return 1;
6592 }
6593 }
6594 #endif
6595 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6596 provided. */
6597 if (/* Try standardized names. */
6598 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6599 /* Try IRIX, OSF/1 names. */
6600 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6601 /* Try AIX names. */
6602 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6603 /* Try HP-UX names. */
6604 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6605 return 1;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_run "$LINENO"; then :
6610 am_cv_func_iconv_works=yes
6611 else
6612 am_cv_func_iconv_works=no
6613 fi
6614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6615 conftest.$ac_objext conftest.beam conftest.$ac_ext
6616 fi
6617
6618 LIBS="$am_save_LIBS"
6619
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6622 $as_echo "$am_cv_func_iconv_works" >&6; }
6623 case "$am_cv_func_iconv_works" in
6624 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6625 *) am_func_iconv=yes ;;
6626 esac
6627 else
6628 am_func_iconv=no am_cv_lib_iconv=no
6629 fi
6630 if test "$am_func_iconv" = yes; then
6631
6632 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6633
6634 fi
6635 if test "$am_cv_lib_iconv" = yes; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6637 $as_echo_n "checking how to link with libiconv... " >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6639 $as_echo "$LIBICONV" >&6; }
6640 else
6641 CPPFLAGS="$am_save_CPPFLAGS"
6642 LIBICONV=
6643 LTLIBICONV=
6644 fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 use_additional=yes
6657
6658 acl_save_prefix="$prefix"
6659 prefix="$acl_final_prefix"
6660 acl_save_exec_prefix="$exec_prefix"
6661 exec_prefix="$acl_final_exec_prefix"
6662
6663 eval additional_includedir=\"$includedir\"
6664 eval additional_libdir=\"$libdir\"
6665
6666 exec_prefix="$acl_save_exec_prefix"
6667 prefix="$acl_save_prefix"
6668
6669
6670 # Check whether --with-libintl-prefix was given.
6671 if test "${with_libintl_prefix+set}" = set; then :
6672 withval=$with_libintl_prefix;
6673 if test "X$withval" = "Xno"; then
6674 use_additional=no
6675 else
6676 if test "X$withval" = "X"; then
6677
6678 acl_save_prefix="$prefix"
6679 prefix="$acl_final_prefix"
6680 acl_save_exec_prefix="$exec_prefix"
6681 exec_prefix="$acl_final_exec_prefix"
6682
6683 eval additional_includedir=\"$includedir\"
6684 eval additional_libdir=\"$libdir\"
6685
6686 exec_prefix="$acl_save_exec_prefix"
6687 prefix="$acl_save_prefix"
6688
6689 else
6690 additional_includedir="$withval/include"
6691 additional_libdir="$withval/$acl_libdirstem"
6692 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6693 && ! test -d "$withval/$acl_libdirstem"; then
6694 additional_libdir="$withval/$acl_libdirstem2"
6695 fi
6696 fi
6697 fi
6698
6699 fi
6700
6701 LIBINTL=
6702 LTLIBINTL=
6703 INCINTL=
6704 LIBINTL_PREFIX=
6705 HAVE_LIBINTL=
6706 rpathdirs=
6707 ltrpathdirs=
6708 names_already_handled=
6709 names_next_round='intl '
6710 while test -n "$names_next_round"; do
6711 names_this_round="$names_next_round"
6712 names_next_round=
6713 for name in $names_this_round; do
6714 already_handled=
6715 for n in $names_already_handled; do
6716 if test "$n" = "$name"; then
6717 already_handled=yes
6718 break
6719 fi
6720 done
6721 if test -z "$already_handled"; then
6722 names_already_handled="$names_already_handled $name"
6723 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6724 eval value=\"\$HAVE_LIB$uppername\"
6725 if test -n "$value"; then
6726 if test "$value" = yes; then
6727 eval value=\"\$LIB$uppername\"
6728 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6729 eval value=\"\$LTLIB$uppername\"
6730 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6731 else
6732 :
6733 fi
6734 else
6735 found_dir=
6736 found_la=
6737 found_so=
6738 found_a=
6739 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6740 if test -n "$acl_shlibext"; then
6741 shrext=".$acl_shlibext" # typically: shrext=.so
6742 else
6743 shrext=
6744 fi
6745 if test $use_additional = yes; then
6746 dir="$additional_libdir"
6747 if test -n "$acl_shlibext"; then
6748 if test -f "$dir/$libname$shrext"; then
6749 found_dir="$dir"
6750 found_so="$dir/$libname$shrext"
6751 else
6752 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6753 ver=`(cd "$dir" && \
6754 for f in "$libname$shrext".*; do echo "$f"; done \
6755 | sed -e "s,^$libname$shrext\\\\.,," \
6756 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6757 | sed 1q ) 2>/dev/null`
6758 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6759 found_dir="$dir"
6760 found_so="$dir/$libname$shrext.$ver"
6761 fi
6762 else
6763 eval library_names=\"$acl_library_names_spec\"
6764 for f in $library_names; do
6765 if test -f "$dir/$f"; then
6766 found_dir="$dir"
6767 found_so="$dir/$f"
6768 break
6769 fi
6770 done
6771 fi
6772 fi
6773 fi
6774 if test "X$found_dir" = "X"; then
6775 if test -f "$dir/$libname.$acl_libext"; then
6776 found_dir="$dir"
6777 found_a="$dir/$libname.$acl_libext"
6778 fi
6779 fi
6780 if test "X$found_dir" != "X"; then
6781 if test -f "$dir/$libname.la"; then
6782 found_la="$dir/$libname.la"
6783 fi
6784 fi
6785 fi
6786 if test "X$found_dir" = "X"; then
6787 for x in $LDFLAGS $LTLIBINTL; do
6788
6789 acl_save_prefix="$prefix"
6790 prefix="$acl_final_prefix"
6791 acl_save_exec_prefix="$exec_prefix"
6792 exec_prefix="$acl_final_exec_prefix"
6793 eval x=\"$x\"
6794 exec_prefix="$acl_save_exec_prefix"
6795 prefix="$acl_save_prefix"
6796
6797 case "$x" in
6798 -L*)
6799 dir=`echo "X$x" | sed -e 's/^X-L//'`
6800 if test -n "$acl_shlibext"; then
6801 if test -f "$dir/$libname$shrext"; then
6802 found_dir="$dir"
6803 found_so="$dir/$libname$shrext"
6804 else
6805 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6806 ver=`(cd "$dir" && \
6807 for f in "$libname$shrext".*; do echo "$f"; done \
6808 | sed -e "s,^$libname$shrext\\\\.,," \
6809 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6810 | sed 1q ) 2>/dev/null`
6811 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6812 found_dir="$dir"
6813 found_so="$dir/$libname$shrext.$ver"
6814 fi
6815 else
6816 eval library_names=\"$acl_library_names_spec\"
6817 for f in $library_names; do
6818 if test -f "$dir/$f"; then
6819 found_dir="$dir"
6820 found_so="$dir/$f"
6821 break
6822 fi
6823 done
6824 fi
6825 fi
6826 fi
6827 if test "X$found_dir" = "X"; then
6828 if test -f "$dir/$libname.$acl_libext"; then
6829 found_dir="$dir"
6830 found_a="$dir/$libname.$acl_libext"
6831 fi
6832 fi
6833 if test "X$found_dir" != "X"; then
6834 if test -f "$dir/$libname.la"; then
6835 found_la="$dir/$libname.la"
6836 fi
6837 fi
6838 ;;
6839 esac
6840 if test "X$found_dir" != "X"; then
6841 break
6842 fi
6843 done
6844 fi
6845 if test "X$found_dir" != "X"; then
6846 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6847 if test "X$found_so" != "X"; then
6848 if test "$enable_rpath" = no \
6849 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6850 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6851 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6852 else
6853 haveit=
6854 for x in $ltrpathdirs; do
6855 if test "X$x" = "X$found_dir"; then
6856 haveit=yes
6857 break
6858 fi
6859 done
6860 if test -z "$haveit"; then
6861 ltrpathdirs="$ltrpathdirs $found_dir"
6862 fi
6863 if test "$acl_hardcode_direct" = yes; then
6864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6865 else
6866 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6867 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6868 haveit=
6869 for x in $rpathdirs; do
6870 if test "X$x" = "X$found_dir"; then
6871 haveit=yes
6872 break
6873 fi
6874 done
6875 if test -z "$haveit"; then
6876 rpathdirs="$rpathdirs $found_dir"
6877 fi
6878 else
6879 haveit=
6880 for x in $LDFLAGS $LIBINTL; do
6881
6882 acl_save_prefix="$prefix"
6883 prefix="$acl_final_prefix"
6884 acl_save_exec_prefix="$exec_prefix"
6885 exec_prefix="$acl_final_exec_prefix"
6886 eval x=\"$x\"
6887 exec_prefix="$acl_save_exec_prefix"
6888 prefix="$acl_save_prefix"
6889
6890 if test "X$x" = "X-L$found_dir"; then
6891 haveit=yes
6892 break
6893 fi
6894 done
6895 if test -z "$haveit"; then
6896 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6897 fi
6898 if test "$acl_hardcode_minus_L" != no; then
6899 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6900 else
6901 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6902 fi
6903 fi
6904 fi
6905 fi
6906 else
6907 if test "X$found_a" != "X"; then
6908 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6909 else
6910 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6911 fi
6912 fi
6913 additional_includedir=
6914 case "$found_dir" in
6915 */$acl_libdirstem | */$acl_libdirstem/)
6916 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6917 if test "$name" = 'intl'; then
6918 LIBINTL_PREFIX="$basedir"
6919 fi
6920 additional_includedir="$basedir/include"
6921 ;;
6922 */$acl_libdirstem2 | */$acl_libdirstem2/)
6923 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6924 if test "$name" = 'intl'; then
6925 LIBINTL_PREFIX="$basedir"
6926 fi
6927 additional_includedir="$basedir/include"
6928 ;;
6929 esac
6930 if test "X$additional_includedir" != "X"; then
6931 if test "X$additional_includedir" != "X/usr/include"; then
6932 haveit=
6933 if test "X$additional_includedir" = "X/usr/local/include"; then
6934 if test -n "$GCC"; then
6935 case $host_os in
6936 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6937 esac
6938 fi
6939 fi
6940 if test -z "$haveit"; then
6941 for x in $CPPFLAGS $INCINTL; do
6942
6943 acl_save_prefix="$prefix"
6944 prefix="$acl_final_prefix"
6945 acl_save_exec_prefix="$exec_prefix"
6946 exec_prefix="$acl_final_exec_prefix"
6947 eval x=\"$x\"
6948 exec_prefix="$acl_save_exec_prefix"
6949 prefix="$acl_save_prefix"
6950
6951 if test "X$x" = "X-I$additional_includedir"; then
6952 haveit=yes
6953 break
6954 fi
6955 done
6956 if test -z "$haveit"; then
6957 if test -d "$additional_includedir"; then
6958 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6959 fi
6960 fi
6961 fi
6962 fi
6963 fi
6964 if test -n "$found_la"; then
6965 save_libdir="$libdir"
6966 case "$found_la" in
6967 */* | *\\*) . "$found_la" ;;
6968 *) . "./$found_la" ;;
6969 esac
6970 libdir="$save_libdir"
6971 for dep in $dependency_libs; do
6972 case "$dep" in
6973 -L*)
6974 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6975 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6976 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6977 haveit=
6978 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6979 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6980 if test -n "$GCC"; then
6981 case $host_os in
6982 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6983 esac
6984 fi
6985 fi
6986 if test -z "$haveit"; then
6987 haveit=
6988 for x in $LDFLAGS $LIBINTL; do
6989
6990 acl_save_prefix="$prefix"
6991 prefix="$acl_final_prefix"
6992 acl_save_exec_prefix="$exec_prefix"
6993 exec_prefix="$acl_final_exec_prefix"
6994 eval x=\"$x\"
6995 exec_prefix="$acl_save_exec_prefix"
6996 prefix="$acl_save_prefix"
6997
6998 if test "X$x" = "X-L$additional_libdir"; then
6999 haveit=yes
7000 break
7001 fi
7002 done
7003 if test -z "$haveit"; then
7004 if test -d "$additional_libdir"; then
7005 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7006 fi
7007 fi
7008 haveit=
7009 for x in $LDFLAGS $LTLIBINTL; do
7010
7011 acl_save_prefix="$prefix"
7012 prefix="$acl_final_prefix"
7013 acl_save_exec_prefix="$exec_prefix"
7014 exec_prefix="$acl_final_exec_prefix"
7015 eval x=\"$x\"
7016 exec_prefix="$acl_save_exec_prefix"
7017 prefix="$acl_save_prefix"
7018
7019 if test "X$x" = "X-L$additional_libdir"; then
7020 haveit=yes
7021 break
7022 fi
7023 done
7024 if test -z "$haveit"; then
7025 if test -d "$additional_libdir"; then
7026 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7027 fi
7028 fi
7029 fi
7030 fi
7031 ;;
7032 -R*)
7033 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7034 if test "$enable_rpath" != no; then
7035 haveit=
7036 for x in $rpathdirs; do
7037 if test "X$x" = "X$dir"; then
7038 haveit=yes
7039 break
7040 fi
7041 done
7042 if test -z "$haveit"; then
7043 rpathdirs="$rpathdirs $dir"
7044 fi
7045 haveit=
7046 for x in $ltrpathdirs; do
7047 if test "X$x" = "X$dir"; then
7048 haveit=yes
7049 break
7050 fi
7051 done
7052 if test -z "$haveit"; then
7053 ltrpathdirs="$ltrpathdirs $dir"
7054 fi
7055 fi
7056 ;;
7057 -l*)
7058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7059 ;;
7060 *.la)
7061 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7062 ;;
7063 *)
7064 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7065 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7066 ;;
7067 esac
7068 done
7069 fi
7070 else
7071 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7073 fi
7074 fi
7075 fi
7076 done
7077 done
7078 if test "X$rpathdirs" != "X"; then
7079 if test -n "$acl_hardcode_libdir_separator"; then
7080 alldirs=
7081 for found_dir in $rpathdirs; do
7082 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7083 done
7084 acl_save_libdir="$libdir"
7085 libdir="$alldirs"
7086 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7087 libdir="$acl_save_libdir"
7088 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7089 else
7090 for found_dir in $rpathdirs; do
7091 acl_save_libdir="$libdir"
7092 libdir="$found_dir"
7093 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7094 libdir="$acl_save_libdir"
7095 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7096 done
7097 fi
7098 fi
7099 if test "X$ltrpathdirs" != "X"; then
7100 for found_dir in $ltrpathdirs; do
7101 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7102 done
7103 fi
7104
7105
7106
7107
7108
7109
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7111 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7112 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 gt_save_CPPFLAGS="$CPPFLAGS"
7116 CPPFLAGS="$CPPFLAGS $INCINTL"
7117 gt_save_LIBS="$LIBS"
7118 LIBS="$LIBS $LIBINTL"
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 #include <libintl.h>
7122 $gt_revision_test_code
7123 extern int _nl_msg_cat_cntr;
7124 extern
7125 #ifdef __cplusplus
7126 "C"
7127 #endif
7128 const char *_nl_expand_alias (const char *);
7129 int
7130 main ()
7131 {
7132 bindtextdomain ("", "");
7133 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 if ac_fn_c_try_link "$LINENO"; then :
7139 eval "$gt_func_gnugettext_libintl=yes"
7140 else
7141 eval "$gt_func_gnugettext_libintl=no"
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7146 LIBS="$LIBS $LIBICONV"
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <libintl.h>
7150 $gt_revision_test_code
7151 extern int _nl_msg_cat_cntr;
7152 extern
7153 #ifdef __cplusplus
7154 "C"
7155 #endif
7156 const char *_nl_expand_alias (const char *);
7157 int
7158 main ()
7159 {
7160 bindtextdomain ("", "");
7161 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 LIBINTL="$LIBINTL $LIBICONV"
7168 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7169 eval "$gt_func_gnugettext_libintl=yes"
7170
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 fi
7175 CPPFLAGS="$gt_save_CPPFLAGS"
7176 LIBS="$gt_save_LIBS"
7177 fi
7178 eval ac_res=\$$gt_func_gnugettext_libintl
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7180 $as_echo "$ac_res" >&6; }
7181 fi
7182
7183 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7184 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7185 && test "$PACKAGE" != gettext-runtime \
7186 && test "$PACKAGE" != gettext-tools; }; then
7187 gt_use_preinstalled_gnugettext=yes
7188 else
7189 LIBINTL=
7190 LTLIBINTL=
7191 INCINTL=
7192 fi
7193
7194
7195
7196 if test -n "$INTL_MACOSX_LIBS"; then
7197 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7198 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7199 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7200 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7201 fi
7202 fi
7203
7204 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7205 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7206
7207 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7208
7209 else
7210 USE_NLS=no
7211 fi
7212 fi
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7215 $as_echo_n "checking whether to use NLS... " >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7217 $as_echo "$USE_NLS" >&6; }
7218 if test "$USE_NLS" = "yes"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7220 $as_echo_n "checking where the gettext function comes from... " >&6; }
7221 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7222 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7223 gt_source="external libintl"
7224 else
7225 gt_source="libc"
7226 fi
7227 else
7228 gt_source="included intl directory"
7229 fi
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7231 $as_echo "$gt_source" >&6; }
7232 fi
7233
7234 if test "$USE_NLS" = "yes"; then
7235
7236 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7237 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7239 $as_echo_n "checking how to link with libintl... " >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7241 $as_echo "$LIBINTL" >&6; }
7242
7243 for element in $INCINTL; do
7244 haveit=
7245 for x in $CPPFLAGS; do
7246
7247 acl_save_prefix="$prefix"
7248 prefix="$acl_final_prefix"
7249 acl_save_exec_prefix="$exec_prefix"
7250 exec_prefix="$acl_final_exec_prefix"
7251 eval x=\"$x\"
7252 exec_prefix="$acl_save_exec_prefix"
7253 prefix="$acl_save_prefix"
7254
7255 if test "X$x" = "X$element"; then
7256 haveit=yes
7257 break
7258 fi
7259 done
7260 if test -z "$haveit"; then
7261 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7262 fi
7263 done
7264
7265 fi
7266
7267
7268 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7269
7270
7271 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7272
7273 fi
7274
7275 POSUB=po
7276 fi
7277
7278
7279
7280 INTLLIBS="$LIBINTL"
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7296 if test -n "$ac_tool_prefix"; then
7297 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7298 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 case $PKG_CONFIG in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7307 ;;
7308 *)
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 ;;
7325 esac
7326 fi
7327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7328 if test -n "$PKG_CONFIG"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7330 $as_echo "$PKG_CONFIG" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_path_PKG_CONFIG"; then
7339 ac_pt_PKG_CONFIG=$PKG_CONFIG
7340 # Extract the first word of "pkg-config", so it can be a program name with args.
7341 set dummy pkg-config; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 case $ac_pt_PKG_CONFIG in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 ;;
7368 esac
7369 fi
7370 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7371 if test -n "$ac_pt_PKG_CONFIG"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7373 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379 if test "x$ac_pt_PKG_CONFIG" = x; then
7380 PKG_CONFIG=""
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 PKG_CONFIG=$ac_pt_PKG_CONFIG
7389 fi
7390 else
7391 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7392 fi
7393
7394 fi
7395 if test -n "$PKG_CONFIG"; then
7396 _pkg_min_version=0.9.0
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7398 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7399 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7401 $as_echo "yes" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 PKG_CONFIG=""
7406 fi
7407 fi
7408
7409 pkg_failed=no
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
7411 $as_echo_n "checking for GLIB... " >&6; }
7412
7413 if test -n "$GLIB_CFLAGS"; then
7414 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7415 elif test -n "$PKG_CONFIG"; then
7416 if test -n "$PKG_CONFIG" && \
7417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5
7418 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5
7419 ac_status=$?
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null`
7423 test "x$?" != "x0" && pkg_failed=yes
7424 else
7425 pkg_failed=yes
7426 fi
7427 else
7428 pkg_failed=untried
7429 fi
7430 if test -n "$GLIB_LIBS"; then
7431 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7432 elif test -n "$PKG_CONFIG"; then
7433 if test -n "$PKG_CONFIG" && \
7434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5
7435 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null`
7440 test "x$?" != "x0" && pkg_failed=yes
7441 else
7442 pkg_failed=yes
7443 fi
7444 else
7445 pkg_failed=untried
7446 fi
7447
7448
7449
7450 if test $pkg_failed = yes; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453
7454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7455 _pkg_short_errors_supported=yes
7456 else
7457 _pkg_short_errors_supported=no
7458 fi
7459 if test $_pkg_short_errors_supported = yes; then
7460 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1`
7461 else
7462 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1`
7463 fi
7464 # Put the nasty error message in config.log where it belongs
7465 echo "$GLIB_PKG_ERRORS" >&5
7466
7467 as_fn_error $? "Package requirements (glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6) were not met:
7468
7469 $GLIB_PKG_ERRORS
7470
7471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7472 installed software in a non-standard prefix.
7473
7474 Alternatively, you may set the environment variables GLIB_CFLAGS
7475 and GLIB_LIBS to avoid the need to call pkg-config.
7476 See the pkg-config man page for more details." "$LINENO" 5
7477 elif test $pkg_failed = untried; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7482 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7483 is in your PATH or set the PKG_CONFIG environment variable to the full
7484 path to pkg-config.
7485
7486 Alternatively, you may set the environment variables GLIB_CFLAGS
7487 and GLIB_LIBS to avoid the need to call pkg-config.
7488 See the pkg-config man page for more details.
7489
7490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7491 See \`config.log' for more details" "$LINENO" 5; }
7492 else
7493 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7494 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496 $as_echo "yes" >&6; }
7497
7498 fi
7499
7500 pkg_failed=no
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7502 $as_echo_n "checking for GTK... " >&6; }
7503
7504 if test -n "$GTK_CFLAGS"; then
7505 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7506 elif test -n "$PKG_CONFIG"; then
7507 if test -n "$PKG_CONFIG" && \
7508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5
7509 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5
7510 ac_status=$?
7511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7512 test $ac_status = 0; }; then
7513 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6" 2>/dev/null`
7514 test "x$?" != "x0" && pkg_failed=yes
7515 else
7516 pkg_failed=yes
7517 fi
7518 else
7519 pkg_failed=untried
7520 fi
7521 if test -n "$GTK_LIBS"; then
7522 pkg_cv_GTK_LIBS="$GTK_LIBS"
7523 elif test -n "$PKG_CONFIG"; then
7524 if test -n "$PKG_CONFIG" && \
7525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5
7526 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5
7527 ac_status=$?
7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }; then
7530 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6" 2>/dev/null`
7531 test "x$?" != "x0" && pkg_failed=yes
7532 else
7533 pkg_failed=yes
7534 fi
7535 else
7536 pkg_failed=untried
7537 fi
7538
7539
7540
7541 if test $pkg_failed = yes; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544
7545 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7546 _pkg_short_errors_supported=yes
7547 else
7548 _pkg_short_errors_supported=no
7549 fi
7550 if test $_pkg_short_errors_supported = yes; then
7551 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.6" 2>&1`
7552 else
7553 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.6" 2>&1`
7554 fi
7555 # Put the nasty error message in config.log where it belongs
7556 echo "$GTK_PKG_ERRORS" >&5
7557
7558 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.6) were not met:
7559
7560 $GTK_PKG_ERRORS
7561
7562 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7563 installed software in a non-standard prefix.
7564
7565 Alternatively, you may set the environment variables GTK_CFLAGS
7566 and GTK_LIBS to avoid the need to call pkg-config.
7567 See the pkg-config man page for more details." "$LINENO" 5
7568 elif test $pkg_failed = untried; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7573 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7574 is in your PATH or set the PKG_CONFIG environment variable to the full
7575 path to pkg-config.
7576
7577 Alternatively, you may set the environment variables GTK_CFLAGS
7578 and GTK_LIBS to avoid the need to call pkg-config.
7579 See the pkg-config man page for more details.
7580
7581 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7582 See \`config.log' for more details" "$LINENO" 5; }
7583 else
7584 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7585 GTK_LIBS=$pkg_cv_GTK_LIBS
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7587 $as_echo "yes" >&6; }
7588
7589 fi
7590
7591 pkg_failed=no
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAGLIB" >&5
7593 $as_echo_n "checking for TAGLIB... " >&6; }
7594
7595 if test -n "$TAGLIB_CFLAGS"; then
7596 pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS"
7597 elif test -n "$PKG_CONFIG"; then
7598 if test -n "$PKG_CONFIG" && \
7599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5
7600 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5
7601 ac_status=$?
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
7604 pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib" 2>/dev/null`
7605 test "x$?" != "x0" && pkg_failed=yes
7606 else
7607 pkg_failed=yes
7608 fi
7609 else
7610 pkg_failed=untried
7611 fi
7612 if test -n "$TAGLIB_LIBS"; then
7613 pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS"
7614 elif test -n "$PKG_CONFIG"; then
7615 if test -n "$PKG_CONFIG" && \
7616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5
7617 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5
7618 ac_status=$?
7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7621 pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib" 2>/dev/null`
7622 test "x$?" != "x0" && pkg_failed=yes
7623 else
7624 pkg_failed=yes
7625 fi
7626 else
7627 pkg_failed=untried
7628 fi
7629
7630
7631
7632 if test $pkg_failed = yes; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635
7636 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7637 _pkg_short_errors_supported=yes
7638 else
7639 _pkg_short_errors_supported=no
7640 fi
7641 if test $_pkg_short_errors_supported = yes; then
7642 TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "taglib" 2>&1`
7643 else
7644 TAGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "taglib" 2>&1`
7645 fi
7646 # Put the nasty error message in config.log where it belongs
7647 echo "$TAGLIB_PKG_ERRORS" >&5
7648
7649 as_fn_error $? "Package requirements (taglib) were not met:
7650
7651 $TAGLIB_PKG_ERRORS
7652
7653 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7654 installed software in a non-standard prefix.
7655
7656 Alternatively, you may set the environment variables TAGLIB_CFLAGS
7657 and TAGLIB_LIBS to avoid the need to call pkg-config.
7658 See the pkg-config man page for more details." "$LINENO" 5
7659 elif test $pkg_failed = untried; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7664 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7665 is in your PATH or set the PKG_CONFIG environment variable to the full
7666 path to pkg-config.
7667
7668 Alternatively, you may set the environment variables TAGLIB_CFLAGS
7669 and TAGLIB_LIBS to avoid the need to call pkg-config.
7670 See the pkg-config man page for more details.
7671
7672 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7673 See \`config.log' for more details" "$LINENO" 5; }
7674 else
7675 TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS
7676 TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678 $as_echo "yes" >&6; }
7679
7680 fi
7681
7682 # --disable-deprecated switch for GTK2 purification
7683 # Check whether --enable-deprecated was given.
7684 if test "${enable_deprecated+set}" = set; then :
7685 enableval=$enable_deprecated; GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
7686 fi
7687
7688
7689
7690 ac_config_files="$ac_config_files Makefile ripperX.pc po/Makefile.in plugins/Makefile src/Makefile"
7691
7692 cat >confcache <<\_ACEOF
7693 # This file is a shell script that caches the results of configure
7694 # tests run on this system so they can be shared between configure
7695 # scripts and configure runs, see configure's option --config-cache.
7696 # It is not useful on other systems. If it contains results you don't
7697 # want to keep, you may remove or edit it.
7698 #
7699 # config.status only pays attention to the cache file if you give it
7700 # the --recheck option to rerun configure.
7701 #
7702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7704 # following values.
7705
7706 _ACEOF
7707
7708 # The following way of writing the cache mishandles newlines in values,
7709 # but we know of no workaround that is simple, portable, and efficient.
7710 # So, we kill variables containing newlines.
7711 # Ultrix sh set writes to stderr and can't be redirected directly,
7712 # and sets the high bit in the cache file unless we assign to the vars.
7713 (
7714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7715 eval ac_val=\$$ac_var
7716 case $ac_val in #(
7717 *${as_nl}*)
7718 case $ac_var in #(
7719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7721 esac
7722 case $ac_var in #(
7723 _ | IFS | as_nl) ;; #(
7724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7725 *) { eval $ac_var=; unset $ac_var;} ;;
7726 esac ;;
7727 esac
7728 done
7729
7730 (set) 2>&1 |
7731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7732 *${as_nl}ac_space=\ *)
7733 # `set' does not quote correctly, so add quotes: double-quote
7734 # substitution turns \\\\ into \\, and sed turns \\ into \.
7735 sed -n \
7736 "s/'/'\\\\''/g;
7737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7738 ;; #(
7739 *)
7740 # `set' quotes correctly as required by POSIX, so do not add quotes.
7741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7742 ;;
7743 esac |
7744 sort
7745 ) |
7746 sed '
7747 /^ac_cv_env_/b end
7748 t clear
7749 :clear
7750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7751 t end
7752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7753 :end' >>confcache
7754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7755 if test -w "$cache_file"; then
7756 if test "x$cache_file" != "x/dev/null"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7758 $as_echo "$as_me: updating cache $cache_file" >&6;}
7759 if test ! -f "$cache_file" || test -h "$cache_file"; then
7760 cat confcache >"$cache_file"
7761 else
7762 case $cache_file in #(
7763 */* | ?:*)
7764 mv -f confcache "$cache_file"$$ &&
7765 mv -f "$cache_file"$$ "$cache_file" ;; #(
7766 *)
7767 mv -f confcache "$cache_file" ;;
7768 esac
7769 fi
7770 fi
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7773 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7774 fi
7775 fi
7776 rm -f confcache
7777
7778 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7779 # Let make expand exec_prefix.
7780 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7781
7782 DEFS=-DHAVE_CONFIG_H
7783
7784 ac_libobjs=
7785 ac_ltlibobjs=
7786 U=
7787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7788 # 1. Remove the extension, and $U if already installed.
7789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7790 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7792 # will be set to the directory where LIBOBJS objects are built.
7793 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7794 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7795 done
7796 LIBOBJS=$ac_libobjs
7797
7798 LTLIBOBJS=$ac_ltlibobjs
7799
7800
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7802 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7803 if test -n "$am_sleep_pid"; then
7804 # Hide warnings about reused PIDs.
7805 wait $am_sleep_pid 2>/dev/null
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7808 $as_echo "done" >&6; }
7809 if test -n "$EXEEXT"; then
7810 am__EXEEXT_TRUE=
7811 am__EXEEXT_FALSE='#'
7812 else
7813 am__EXEEXT_TRUE='#'
7814 am__EXEEXT_FALSE=
7815 fi
7816
7817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7818 as_fn_error $? "conditional \"AMDEP\" was never defined.
7819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7820 fi
7821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7824 fi
7825 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7826 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7828 fi
7829
7830 : "${CONFIG_STATUS=./config.status}"
7831 ac_write_fail=0
7832 ac_clean_files_save=$ac_clean_files
7833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7835 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7836 as_write_fail=0
7837 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7838 #! $SHELL
7839 # Generated by $as_me.
7840 # Run this file to recreate the current configuration.
7841 # Compiler output produced by configure, useful for debugging
7842 # configure, is in config.log if it exists.
7843
7844 debug=false
7845 ac_cs_recheck=false
7846 ac_cs_silent=false
7847
7848 SHELL=\${CONFIG_SHELL-$SHELL}
7849 export SHELL
7850 _ASEOF
7851 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7852 ## -------------------- ##
7853 ## M4sh Initialization. ##
7854 ## -------------------- ##
7855
7856 # Be more Bourne compatible
7857 DUALCASE=1; export DUALCASE # for MKS sh
7858 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7859 emulate sh
7860 NULLCMD=:
7861 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7862 # is contrary to our usage. Disable this feature.
7863 alias -g '${1+"$@"}'='"$@"'
7864 setopt NO_GLOB_SUBST
7865 else
7866 case `(set -o) 2>/dev/null` in #(
7867 *posix*) :
7868 set -o posix ;; #(
7869 *) :
7870 ;;
7871 esac
7872 fi
7873
7874
7875 as_nl='
7876 '
7877 export as_nl
7878 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7879 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7880 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7881 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7882 # Prefer a ksh shell builtin over an external printf program on Solaris,
7883 # but without wasting forks for bash or zsh.
7884 if test -z "$BASH_VERSION$ZSH_VERSION" \
7885 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7886 as_echo='print -r --'
7887 as_echo_n='print -rn --'
7888 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7889 as_echo='printf %s\n'
7890 as_echo_n='printf %s'
7891 else
7892 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7893 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7894 as_echo_n='/usr/ucb/echo -n'
7895 else
7896 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7897 as_echo_n_body='eval
7898 arg=$1;
7899 case $arg in #(
7900 *"$as_nl"*)
7901 expr "X$arg" : "X\\(.*\\)$as_nl";
7902 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7903 esac;
7904 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7905 '
7906 export as_echo_n_body
7907 as_echo_n='sh -c $as_echo_n_body as_echo'
7908 fi
7909 export as_echo_body
7910 as_echo='sh -c $as_echo_body as_echo'
7911 fi
7912
7913 # The user is always right.
7914 if test "${PATH_SEPARATOR+set}" != set; then
7915 PATH_SEPARATOR=:
7916 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7917 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7918 PATH_SEPARATOR=';'
7919 }
7920 fi
7921
7922
7923 # IFS
7924 # We need space, tab and new line, in precisely that order. Quoting is
7925 # there to prevent editors from complaining about space-tab.
7926 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7927 # splitting by setting IFS to empty value.)
7928 IFS=" "" $as_nl"
7929
7930 # Find who we are. Look in the path if we contain no directory separator.
7931 as_myself=
7932 case $0 in #((
7933 *[\\/]* ) as_myself=$0 ;;
7934 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7940 done
7941 IFS=$as_save_IFS
7942
7943 ;;
7944 esac
7945 # We did not find ourselves, most probably we were run as `sh COMMAND'
7946 # in which case we are not to be found in the path.
7947 if test "x$as_myself" = x; then
7948 as_myself=$0
7949 fi
7950 if test ! -f "$as_myself"; then
7951 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7952 exit 1
7953 fi
7954
7955 # Unset variables that we do not need and which cause bugs (e.g. in
7956 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7957 # suppresses any "Segmentation fault" message there. '((' could
7958 # trigger a bug in pdksh 5.2.14.
7959 for as_var in BASH_ENV ENV MAIL MAILPATH
7960 do eval test x\${$as_var+set} = xset \
7961 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7962 done
7963 PS1='$ '
7964 PS2='> '
7965 PS4='+ '
7966
7967 # NLS nuisances.
7968 LC_ALL=C
7969 export LC_ALL
7970 LANGUAGE=C
7971 export LANGUAGE
7972
7973 # CDPATH.
7974 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7975
7976
7977 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7978 # ----------------------------------------
7979 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7980 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7981 # script with STATUS, using 1 if that was 0.
7982 as_fn_error ()
7983 {
7984 as_status=$1; test $as_status -eq 0 && as_status=1
7985 if test "$4"; then
7986 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7987 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7988 fi
7989 $as_echo "$as_me: error: $2" >&2
7990 as_fn_exit $as_status
7991 } # as_fn_error
7992
7993
7994 # as_fn_set_status STATUS
7995 # -----------------------
7996 # Set $? to STATUS, without forking.
7997 as_fn_set_status ()
7998 {
7999 return $1
8000 } # as_fn_set_status
8001
8002 # as_fn_exit STATUS
8003 # -----------------
8004 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8005 as_fn_exit ()
8006 {
8007 set +e
8008 as_fn_set_status $1
8009 exit $1
8010 } # as_fn_exit
8011
8012 # as_fn_unset VAR
8013 # ---------------
8014 # Portably unset VAR.
8015 as_fn_unset ()
8016 {
8017 { eval $1=; unset $1;}
8018 }
8019 as_unset=as_fn_unset
8020 # as_fn_append VAR VALUE
8021 # ----------------------
8022 # Append the text in VALUE to the end of the definition contained in VAR. Take
8023 # advantage of any shell optimizations that allow amortized linear growth over
8024 # repeated appends, instead of the typical quadratic growth present in naive
8025 # implementations.
8026 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8027 eval 'as_fn_append ()
8028 {
8029 eval $1+=\$2
8030 }'
8031 else
8032 as_fn_append ()
8033 {
8034 eval $1=\$$1\$2
8035 }
8036 fi # as_fn_append
8037
8038 # as_fn_arith ARG...
8039 # ------------------
8040 # Perform arithmetic evaluation on the ARGs, and store the result in the
8041 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8042 # must be portable across $(()) and expr.
8043 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8044 eval 'as_fn_arith ()
8045 {
8046 as_val=$(( $* ))
8047 }'
8048 else
8049 as_fn_arith ()
8050 {
8051 as_val=`expr "$@" || test $? -eq 1`
8052 }
8053 fi # as_fn_arith
8054
8055
8056 if expr a : '\(a\)' >/dev/null 2>&1 &&
8057 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8058 as_expr=expr
8059 else
8060 as_expr=false
8061 fi
8062
8063 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8064 as_basename=basename
8065 else
8066 as_basename=false
8067 fi
8068
8069 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8070 as_dirname=dirname
8071 else
8072 as_dirname=false
8073 fi
8074
8075 as_me=`$as_basename -- "$0" ||
8076 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8077 X"$0" : 'X\(//\)$' \| \
8078 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8079 $as_echo X/"$0" |
8080 sed '/^.*\/\([^/][^/]*\)\/*$/{
8081 s//\1/
8082 q
8083 }
8084 /^X\/\(\/\/\)$/{
8085 s//\1/
8086 q
8087 }
8088 /^X\/\(\/\).*/{
8089 s//\1/
8090 q
8091 }
8092 s/.*/./; q'`
8093
8094 # Avoid depending upon Character Ranges.
8095 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8098 as_cr_digits='0123456789'
8099 as_cr_alnum=$as_cr_Letters$as_cr_digits
8100
8101 ECHO_C= ECHO_N= ECHO_T=
8102 case `echo -n x` in #(((((
8103 -n*)
8104 case `echo 'xy\c'` in
8105 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8106 xy) ECHO_C='\c';;
8107 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8108 ECHO_T=' ';;
8109 esac;;
8110 *)
8111 ECHO_N='-n';;
8112 esac
8113
8114 rm -f conf$$ conf$$.exe conf$$.file
8115 if test -d conf$$.dir; then
8116 rm -f conf$$.dir/conf$$.file
8117 else
8118 rm -f conf$$.dir
8119 mkdir conf$$.dir 2>/dev/null
8120 fi
8121 if (echo >conf$$.file) 2>/dev/null; then
8122 if ln -s conf$$.file conf$$ 2>/dev/null; then
8123 as_ln_s='ln -s'
8124 # ... but there are two gotchas:
8125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8127 # In both cases, we have to default to `cp -pR'.
8128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8129 as_ln_s='cp -pR'
8130 elif ln conf$$.file conf$$ 2>/dev/null; then
8131 as_ln_s=ln
8132 else
8133 as_ln_s='cp -pR'
8134 fi
8135 else
8136 as_ln_s='cp -pR'
8137 fi
8138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8139 rmdir conf$$.dir 2>/dev/null
8140
8141
8142 # as_fn_mkdir_p
8143 # -------------
8144 # Create "$as_dir" as a directory, including parents if necessary.
8145 as_fn_mkdir_p ()
8146 {
8147
8148 case $as_dir in #(
8149 -*) as_dir=./$as_dir;;
8150 esac
8151 test -d "$as_dir" || eval $as_mkdir_p || {
8152 as_dirs=
8153 while :; do
8154 case $as_dir in #(
8155 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8156 *) as_qdir=$as_dir;;
8157 esac
8158 as_dirs="'$as_qdir' $as_dirs"
8159 as_dir=`$as_dirname -- "$as_dir" ||
8160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8161 X"$as_dir" : 'X\(//\)[^/]' \| \
8162 X"$as_dir" : 'X\(//\)$' \| \
8163 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8164 $as_echo X"$as_dir" |
8165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8166 s//\1/
8167 q
8168 }
8169 /^X\(\/\/\)[^/].*/{
8170 s//\1/
8171 q
8172 }
8173 /^X\(\/\/\)$/{
8174 s//\1/
8175 q
8176 }
8177 /^X\(\/\).*/{
8178 s//\1/
8179 q
8180 }
8181 s/.*/./; q'`
8182 test -d "$as_dir" && break
8183 done
8184 test -z "$as_dirs" || eval "mkdir $as_dirs"
8185 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8186
8187
8188 } # as_fn_mkdir_p
8189 if mkdir -p . 2>/dev/null; then
8190 as_mkdir_p='mkdir -p "$as_dir"'
8191 else
8192 test -d ./-p && rmdir ./-p
8193 as_mkdir_p=false
8194 fi
8195
8196
8197 # as_fn_executable_p FILE
8198 # -----------------------
8199 # Test if FILE is an executable regular file.
8200 as_fn_executable_p ()
8201 {
8202 test -f "$1" && test -x "$1"
8203 } # as_fn_executable_p
8204 as_test_x='test -x'
8205 as_executable_p=as_fn_executable_p
8206
8207 # Sed expression to map a string onto a valid CPP name.
8208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8209
8210 # Sed expression to map a string onto a valid variable name.
8211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8212
8213
8214 exec 6>&1
8215 ## ----------------------------------- ##
8216 ## Main body of $CONFIG_STATUS script. ##
8217 ## ----------------------------------- ##
8218 _ASEOF
8219 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8220
8221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8222 # Save the log message, to keep $0 and so on meaningful, and to
8223 # report actual input values of CONFIG_FILES etc. instead of their
8224 # values after options handling.
8225 ac_log="
8226 This file was extended by ripperX $as_me 2.8.0, which was
8227 generated by GNU Autoconf 2.69. Invocation command line was
8228
8229 CONFIG_FILES = $CONFIG_FILES
8230 CONFIG_HEADERS = $CONFIG_HEADERS
8231 CONFIG_LINKS = $CONFIG_LINKS
8232 CONFIG_COMMANDS = $CONFIG_COMMANDS
8233 $ $0 $@
8234
8235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8236 "
8237
8238 _ACEOF
8239
8240 case $ac_config_files in *"
8241 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8242 esac
8243
8244 case $ac_config_headers in *"
8245 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8246 esac
8247
8248
8249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8250 # Files that config.status was made for.
8251 config_files="$ac_config_files"
8252 config_headers="$ac_config_headers"
8253 config_commands="$ac_config_commands"
8254
8255 _ACEOF
8256
8257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8258 ac_cs_usage="\
8259 \`$as_me' instantiates files and other configuration actions
8260 from templates according to the current configuration. Unless the files
8261 and actions are specified as TAGs, all are instantiated by default.
8262
8263 Usage: $0 [OPTION]... [TAG]...
8264
8265 -h, --help print this help, then exit
8266 -V, --version print version number and configuration settings, then exit
8267 --config print configuration, then exit
8268 -q, --quiet, --silent
8269 do not print progress messages
8270 -d, --debug don't remove temporary files
8271 --recheck update $as_me by reconfiguring in the same conditions
8272 --file=FILE[:TEMPLATE]
8273 instantiate the configuration file FILE
8274 --header=FILE[:TEMPLATE]
8275 instantiate the configuration header FILE
8276
8277 Configuration files:
8278 $config_files
8279
8280 Configuration headers:
8281 $config_headers
8282
8283 Configuration commands:
8284 $config_commands
8285
8286 Report bugs to <[email protected]>."
8287
8288 _ACEOF
8289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8291 ac_cs_version="\\
8292 ripperX config.status 2.8.0
8293 configured by $0, generated by GNU Autoconf 2.69,
8294 with options \\"\$ac_cs_config\\"
8295
8296 Copyright (C) 2012 Free Software Foundation, Inc.
8297 This config.status script is free software; the Free Software Foundation
8298 gives unlimited permission to copy, distribute and modify it."
8299
8300 ac_pwd='$ac_pwd'
8301 srcdir='$srcdir'
8302 INSTALL='$INSTALL'
8303 MKDIR_P='$MKDIR_P'
8304 AWK='$AWK'
8305 test -n "\$AWK" || AWK=awk
8306 _ACEOF
8307
8308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8309 # The default lists apply if the user does not specify any file.
8310 ac_need_defaults=:
8311 while test $# != 0
8312 do
8313 case $1 in
8314 --*=?*)
8315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8317 ac_shift=:
8318 ;;
8319 --*=)
8320 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8321 ac_optarg=
8322 ac_shift=:
8323 ;;
8324 *)
8325 ac_option=$1
8326 ac_optarg=$2
8327 ac_shift=shift
8328 ;;
8329 esac
8330
8331 case $ac_option in
8332 # Handling of the options.
8333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8334 ac_cs_recheck=: ;;
8335 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8336 $as_echo "$ac_cs_version"; exit ;;
8337 --config | --confi | --conf | --con | --co | --c )
8338 $as_echo "$ac_cs_config"; exit ;;
8339 --debug | --debu | --deb | --de | --d | -d )
8340 debug=: ;;
8341 --file | --fil | --fi | --f )
8342 $ac_shift
8343 case $ac_optarg in
8344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8345 '') as_fn_error $? "missing file argument" ;;
8346 esac
8347 as_fn_append CONFIG_FILES " '$ac_optarg'"
8348 ac_need_defaults=false;;
8349 --header | --heade | --head | --hea )
8350 $ac_shift
8351 case $ac_optarg in
8352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8353 esac
8354 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8355 ac_need_defaults=false;;
8356 --he | --h)
8357 # Conflict between --help and --header
8358 as_fn_error $? "ambiguous option: \`$1'
8359 Try \`$0 --help' for more information.";;
8360 --help | --hel | -h )
8361 $as_echo "$ac_cs_usage"; exit ;;
8362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8364 ac_cs_silent=: ;;
8365
8366 # This is an error.
8367 -*) as_fn_error $? "unrecognized option: \`$1'
8368 Try \`$0 --help' for more information." ;;
8369
8370 *) as_fn_append ac_config_targets " $1"
8371 ac_need_defaults=false ;;
8372
8373 esac
8374 shift
8375 done
8376
8377 ac_configure_extra_args=
8378
8379 if $ac_cs_silent; then
8380 exec 6>/dev/null
8381 ac_configure_extra_args="$ac_configure_extra_args --silent"
8382 fi
8383
8384 _ACEOF
8385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8386 if \$ac_cs_recheck; then
8387 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8388 shift
8389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8390 CONFIG_SHELL='$SHELL'
8391 export CONFIG_SHELL
8392 exec "\$@"
8393 fi
8394
8395 _ACEOF
8396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8397 exec 5>>config.log
8398 {
8399 echo
8400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8401 ## Running $as_me. ##
8402 _ASBOX
8403 $as_echo "$ac_log"
8404 } >&5
8405
8406 _ACEOF
8407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8408 #
8409 # INIT-COMMANDS
8410 #
8411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8412 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8413 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8414 # from automake < 1.5.
8415 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8416 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8417 LINGUAS="${LINGUAS-%UNSET%}"
8418
8419
8420 _ACEOF
8421
8422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8423
8424 # Handling of arguments.
8425 for ac_config_target in $ac_config_targets
8426 do
8427 case $ac_config_target in
8428 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8429 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8430 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8432 "ripperX.pc") CONFIG_FILES="$CONFIG_FILES ripperX.pc" ;;
8433 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8434 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
8435 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8436
8437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8438 esac
8439 done
8440
8441
8442 # If the user did not use the arguments to specify the items to instantiate,
8443 # then the envvar interface is used. Set only those that are not.
8444 # We use the long form for the default assignment because of an extremely
8445 # bizarre bug on SunOS 4.1.3.
8446 if $ac_need_defaults; then
8447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8450 fi
8451
8452 # Have a temporary directory for convenience. Make it in the build tree
8453 # simply because there is no reason against having it here, and in addition,
8454 # creating and moving files from /tmp can sometimes cause problems.
8455 # Hook for its removal unless debugging.
8456 # Note that there is a small window in which the directory will not be cleaned:
8457 # after its creation but before its name has been assigned to `$tmp'.
8458 $debug ||
8459 {
8460 tmp= ac_tmp=
8461 trap 'exit_status=$?
8462 : "${ac_tmp:=$tmp}"
8463 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8464 ' 0
8465 trap 'as_fn_exit 1' 1 2 13 15
8466 }
8467 # Create a (secure) tmp directory for tmp files.
8468
8469 {
8470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8471 test -d "$tmp"
8472 } ||
8473 {
8474 tmp=./conf$$-$RANDOM
8475 (umask 077 && mkdir "$tmp")
8476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8477 ac_tmp=$tmp
8478
8479 # Set up the scripts for CONFIG_FILES section.
8480 # No need to generate them if there are no CONFIG_FILES.
8481 # This happens for instance with `./config.status config.h'.
8482 if test -n "$CONFIG_FILES"; then
8483
8484
8485 ac_cr=`echo X | tr X '\015'`
8486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8487 # But we know of no other shell where ac_cr would be empty at this
8488 # point, so we can use a bashism as a fallback.
8489 if test "x$ac_cr" = x; then
8490 eval ac_cr=\$\'\\r\'
8491 fi
8492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8494 ac_cs_awk_cr='\\r'
8495 else
8496 ac_cs_awk_cr=$ac_cr
8497 fi
8498
8499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8500 _ACEOF
8501
8502
8503 {
8504 echo "cat >conf$$subs.awk <<_ACEOF" &&
8505 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8506 echo "_ACEOF"
8507 } >conf$$subs.sh ||
8508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8510 ac_delim='%!_!# '
8511 for ac_last_try in false false false false false :; do
8512 . ./conf$$subs.sh ||
8513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8514
8515 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8516 if test $ac_delim_n = $ac_delim_num; then
8517 break
8518 elif $ac_last_try; then
8519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8520 else
8521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8522 fi
8523 done
8524 rm -f conf$$subs.sh
8525
8526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8528 _ACEOF
8529 sed -n '
8530 h
8531 s/^/S["/; s/!.*/"]=/
8532 p
8533 g
8534 s/^[^!]*!//
8535 :repl
8536 t repl
8537 s/'"$ac_delim"'$//
8538 t delim
8539 :nl
8540 h
8541 s/\(.\{148\}\)..*/\1/
8542 t more1
8543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8544 p
8545 n
8546 b repl
8547 :more1
8548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8549 p
8550 g
8551 s/.\{148\}//
8552 t nl
8553 :delim
8554 h
8555 s/\(.\{148\}\)..*/\1/
8556 t more2
8557 s/["\\]/\\&/g; s/^/"/; s/$/"/
8558 p
8559 b
8560 :more2
8561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8562 p
8563 g
8564 s/.\{148\}//
8565 t delim
8566 ' <conf$$subs.awk | sed '
8567 /^[^""]/{
8568 N
8569 s/\n//
8570 }
8571 ' >>$CONFIG_STATUS || ac_write_fail=1
8572 rm -f conf$$subs.awk
8573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8574 _ACAWK
8575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8576 for (key in S) S_is_set[key] = 1
8577 FS = ""
8578
8579 }
8580 {
8581 line = $ 0
8582 nfields = split(line, field, "@")
8583 substed = 0
8584 len = length(field[1])
8585 for (i = 2; i < nfields; i++) {
8586 key = field[i]
8587 keylen = length(key)
8588 if (S_is_set[key]) {
8589 value = S[key]
8590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8591 len += length(value) + length(field[++i])
8592 substed = 1
8593 } else
8594 len += 1 + keylen
8595 }
8596
8597 print line
8598 }
8599
8600 _ACAWK
8601 _ACEOF
8602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8605 else
8606 cat
8607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8608 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8609 _ACEOF
8610
8611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8613 # trailing colons and then remove the whole line if VPATH becomes empty
8614 # (actually we leave an empty line to preserve line numbers).
8615 if test "x$srcdir" = x.; then
8616 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8617 h
8618 s///
8619 s/^/:/
8620 s/[ ]*$/:/
8621 s/:\$(srcdir):/:/g
8622 s/:\${srcdir}:/:/g
8623 s/:@srcdir@:/:/g
8624 s/^:*//
8625 s/:*$//
8626 x
8627 s/\(=[ ]*\).*/\1/
8628 G
8629 s/\n//
8630 s/^[^=]*=[ ]*$//
8631 }'
8632 fi
8633
8634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8635 fi # test -n "$CONFIG_FILES"
8636
8637 # Set up the scripts for CONFIG_HEADERS section.
8638 # No need to generate them if there are no CONFIG_HEADERS.
8639 # This happens for instance with `./config.status Makefile'.
8640 if test -n "$CONFIG_HEADERS"; then
8641 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8642 BEGIN {
8643 _ACEOF
8644
8645 # Transform confdefs.h into an awk script `defines.awk', embedded as
8646 # here-document in config.status, that substitutes the proper values into
8647 # config.h.in to produce config.h.
8648
8649 # Create a delimiter string that does not exist in confdefs.h, to ease
8650 # handling of long lines.
8651 ac_delim='%!_!# '
8652 for ac_last_try in false false :; do
8653 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8654 if test -z "$ac_tt"; then
8655 break
8656 elif $ac_last_try; then
8657 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8658 else
8659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8660 fi
8661 done
8662
8663 # For the awk script, D is an array of macro values keyed by name,
8664 # likewise P contains macro parameters if any. Preserve backslash
8665 # newline sequences.
8666
8667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8668 sed -n '
8669 s/.\{148\}/&'"$ac_delim"'/g
8670 t rset
8671 :rset
8672 s/^[ ]*#[ ]*define[ ][ ]*/ /
8673 t def
8674 d
8675 :def
8676 s/\\$//
8677 t bsnl
8678 s/["\\]/\\&/g
8679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8680 D["\1"]=" \3"/p
8681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8682 d
8683 :bsnl
8684 s/["\\]/\\&/g
8685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8686 D["\1"]=" \3\\\\\\n"\\/p
8687 t cont
8688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8689 t cont
8690 d
8691 :cont
8692 n
8693 s/.\{148\}/&'"$ac_delim"'/g
8694 t clear
8695 :clear
8696 s/\\$//
8697 t bsnlc
8698 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8699 d
8700 :bsnlc
8701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8702 b cont
8703 ' <confdefs.h | sed '
8704 s/'"$ac_delim"'/"\\\
8705 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8706
8707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8708 for (key in D) D_is_set[key] = 1
8709 FS = ""
8710 }
8711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8712 line = \$ 0
8713 split(line, arg, " ")
8714 if (arg[1] == "#") {
8715 defundef = arg[2]
8716 mac1 = arg[3]
8717 } else {
8718 defundef = substr(arg[1], 2)
8719 mac1 = arg[2]
8720 }
8721 split(mac1, mac2, "(") #)
8722 macro = mac2[1]
8723 prefix = substr(line, 1, index(line, defundef) - 1)
8724 if (D_is_set[macro]) {
8725 # Preserve the white space surrounding the "#".
8726 print prefix "define", macro P[macro] D[macro]
8727 next
8728 } else {
8729 # Replace #undef with comments. This is necessary, for example,
8730 # in the case of _POSIX_SOURCE, which is predefined and required
8731 # on some systems where configure will not decide to define it.
8732 if (defundef == "undef") {
8733 print "/*", prefix defundef, macro, "*/"
8734 next
8735 }
8736 }
8737 }
8738 { print }
8739 _ACAWK
8740 _ACEOF
8741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8742 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8743 fi # test -n "$CONFIG_HEADERS"
8744
8745
8746 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8747 shift
8748 for ac_tag
8749 do
8750 case $ac_tag in
8751 :[FHLC]) ac_mode=$ac_tag; continue;;
8752 esac
8753 case $ac_mode$ac_tag in
8754 :[FHL]*:*);;
8755 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8756 :[FH]-) ac_tag=-:-;;
8757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8758 esac
8759 ac_save_IFS=$IFS
8760 IFS=:
8761 set x $ac_tag
8762 IFS=$ac_save_IFS
8763 shift
8764 ac_file=$1
8765 shift
8766
8767 case $ac_mode in
8768 :L) ac_source=$1;;
8769 :[FH])
8770 ac_file_inputs=
8771 for ac_f
8772 do
8773 case $ac_f in
8774 -) ac_f="$ac_tmp/stdin";;
8775 *) # Look for the file first in the build tree, then in the source tree
8776 # (if the path is not absolute). The absolute path cannot be DOS-style,
8777 # because $ac_f cannot contain `:'.
8778 test -f "$ac_f" ||
8779 case $ac_f in
8780 [\\/$]*) false;;
8781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8782 esac ||
8783 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8784 esac
8785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8786 as_fn_append ac_file_inputs " '$ac_f'"
8787 done
8788
8789 # Let's still pretend it is `configure' which instantiates (i.e., don't
8790 # use $as_me), people would be surprised to read:
8791 # /* config.h. Generated by config.status. */
8792 configure_input='Generated from '`
8793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8794 `' by configure.'
8795 if test x"$ac_file" != x-; then
8796 configure_input="$ac_file. $configure_input"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8798 $as_echo "$as_me: creating $ac_file" >&6;}
8799 fi
8800 # Neutralize special characters interpreted by sed in replacement strings.
8801 case $configure_input in #(
8802 *\&* | *\|* | *\\* )
8803 ac_sed_conf_input=`$as_echo "$configure_input" |
8804 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8805 *) ac_sed_conf_input=$configure_input;;
8806 esac
8807
8808 case $ac_tag in
8809 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8811 esac
8812 ;;
8813 esac
8814
8815 ac_dir=`$as_dirname -- "$ac_file" ||
8816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8817 X"$ac_file" : 'X\(//\)[^/]' \| \
8818 X"$ac_file" : 'X\(//\)$' \| \
8819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8820 $as_echo X"$ac_file" |
8821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8822 s//\1/
8823 q
8824 }
8825 /^X\(\/\/\)[^/].*/{
8826 s//\1/
8827 q
8828 }
8829 /^X\(\/\/\)$/{
8830 s//\1/
8831 q
8832 }
8833 /^X\(\/\).*/{
8834 s//\1/
8835 q
8836 }
8837 s/.*/./; q'`
8838 as_dir="$ac_dir"; as_fn_mkdir_p
8839 ac_builddir=.
8840
8841 case "$ac_dir" in
8842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8843 *)
8844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8845 # A ".." for each directory in $ac_dir_suffix.
8846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8847 case $ac_top_builddir_sub in
8848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8850 esac ;;
8851 esac
8852 ac_abs_top_builddir=$ac_pwd
8853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8854 # for backward compatibility:
8855 ac_top_builddir=$ac_top_build_prefix
8856
8857 case $srcdir in
8858 .) # We are building in place.
8859 ac_srcdir=.
8860 ac_top_srcdir=$ac_top_builddir_sub
8861 ac_abs_top_srcdir=$ac_pwd ;;
8862 [\\/]* | ?:[\\/]* ) # Absolute name.
8863 ac_srcdir=$srcdir$ac_dir_suffix;
8864 ac_top_srcdir=$srcdir
8865 ac_abs_top_srcdir=$srcdir ;;
8866 *) # Relative name.
8867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8868 ac_top_srcdir=$ac_top_build_prefix$srcdir
8869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8870 esac
8871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8872
8873
8874 case $ac_mode in
8875 :F)
8876 #
8877 # CONFIG_FILE
8878 #
8879
8880 case $INSTALL in
8881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8883 esac
8884 ac_MKDIR_P=$MKDIR_P
8885 case $MKDIR_P in
8886 [\\/$]* | ?:[\\/]* ) ;;
8887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8888 esac
8889 _ACEOF
8890
8891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8892 # If the template does not know about datarootdir, expand it.
8893 # FIXME: This hack should be removed a few years after 2.60.
8894 ac_datarootdir_hack=; ac_datarootdir_seen=
8895 ac_sed_dataroot='
8896 /datarootdir/ {
8897 p
8898 q
8899 }
8900 /@datadir@/p
8901 /@docdir@/p
8902 /@infodir@/p
8903 /@localedir@/p
8904 /@mandir@/p'
8905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8906 *datarootdir*) ac_datarootdir_seen=yes;;
8907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8910 _ACEOF
8911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8912 ac_datarootdir_hack='
8913 s&@datadir@&$datadir&g
8914 s&@docdir@&$docdir&g
8915 s&@infodir@&$infodir&g
8916 s&@localedir@&$localedir&g
8917 s&@mandir@&$mandir&g
8918 s&\\\${datarootdir}&$datarootdir&g' ;;
8919 esac
8920 _ACEOF
8921
8922 # Neutralize VPATH when `$srcdir' = `.'.
8923 # Shell code in configure.ac might set extrasub.
8924 # FIXME: do we really want to maintain this feature?
8925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8926 ac_sed_extra="$ac_vpsub
8927 $extrasub
8928 _ACEOF
8929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8930 :t
8931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8932 s|@configure_input@|$ac_sed_conf_input|;t t
8933 s&@top_builddir@&$ac_top_builddir_sub&;t t
8934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8935 s&@srcdir@&$ac_srcdir&;t t
8936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8937 s&@top_srcdir@&$ac_top_srcdir&;t t
8938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8939 s&@builddir@&$ac_builddir&;t t
8940 s&@abs_builddir@&$ac_abs_builddir&;t t
8941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8942 s&@INSTALL@&$ac_INSTALL&;t t
8943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8944 $ac_datarootdir_hack
8945 "
8946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8947 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8948
8949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8950 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8952 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8954 which seems to be undefined. Please make sure it is defined" >&5
8955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8956 which seems to be undefined. Please make sure it is defined" >&2;}
8957
8958 rm -f "$ac_tmp/stdin"
8959 case $ac_file in
8960 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8961 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8962 esac \
8963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8964 ;;
8965 :H)
8966 #
8967 # CONFIG_HEADER
8968 #
8969 if test x"$ac_file" != x-; then
8970 {
8971 $as_echo "/* $configure_input */" \
8972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8973 } >"$ac_tmp/config.h" \
8974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8975 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8978 else
8979 rm -f "$ac_file"
8980 mv "$ac_tmp/config.h" "$ac_file" \
8981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8982 fi
8983 else
8984 $as_echo "/* $configure_input */" \
8985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8986 || as_fn_error $? "could not create -" "$LINENO" 5
8987 fi
8988 # Compute "$ac_file"'s index in $config_headers.
8989 _am_arg="$ac_file"
8990 _am_stamp_count=1
8991 for _am_header in $config_headers :; do
8992 case $_am_header in
8993 $_am_arg | $_am_arg:* )
8994 break ;;
8995 * )
8996 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8997 esac
8998 done
8999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9001 X"$_am_arg" : 'X\(//\)[^/]' \| \
9002 X"$_am_arg" : 'X\(//\)$' \| \
9003 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9004 $as_echo X"$_am_arg" |
9005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9006 s//\1/
9007 q
9008 }
9009 /^X\(\/\/\)[^/].*/{
9010 s//\1/
9011 q
9012 }
9013 /^X\(\/\/\)$/{
9014 s//\1/
9015 q
9016 }
9017 /^X\(\/\).*/{
9018 s//\1/
9019 q
9020 }
9021 s/.*/./; q'`/stamp-h$_am_stamp_count
9022 ;;
9023
9024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9025 $as_echo "$as_me: executing $ac_file commands" >&6;}
9026 ;;
9027 esac
9028
9029
9030 case $ac_file$ac_mode in
9031 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9032 # Older Autoconf quotes --file arguments for eval, but not when files
9033 # are listed without --file. Let's play safe and only enable the eval
9034 # if we detect the quoting.
9035 case $CONFIG_FILES in
9036 *\'*) eval set x "$CONFIG_FILES" ;;
9037 *) set x $CONFIG_FILES ;;
9038 esac
9039 shift
9040 for mf
9041 do
9042 # Strip MF so we end up with the name of the file.
9043 mf=`echo "$mf" | sed -e 's/:.*$//'`
9044 # Check whether this is an Automake generated Makefile or not.
9045 # We used to match only the files named 'Makefile.in', but
9046 # some people rename them; so instead we look at the file content.
9047 # Grep'ing the first line is not enough: some people post-process
9048 # each Makefile.in and add a new line on top of each file to say so.
9049 # Grep'ing the whole file is not good either: AIX grep has a line
9050 # limit of 2048, but all sed's we know have understand at least 4000.
9051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9052 dirpart=`$as_dirname -- "$mf" ||
9053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9054 X"$mf" : 'X\(//\)[^/]' \| \
9055 X"$mf" : 'X\(//\)$' \| \
9056 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9057 $as_echo X"$mf" |
9058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9059 s//\1/
9060 q
9061 }
9062 /^X\(\/\/\)[^/].*/{
9063 s//\1/
9064 q
9065 }
9066 /^X\(\/\/\)$/{
9067 s//\1/
9068 q
9069 }
9070 /^X\(\/\).*/{
9071 s//\1/
9072 q
9073 }
9074 s/.*/./; q'`
9075 else
9076 continue
9077 fi
9078 # Extract the definition of DEPDIR, am__include, and am__quote
9079 # from the Makefile without running 'make'.
9080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9081 test -z "$DEPDIR" && continue
9082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9083 test -z "$am__include" && continue
9084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9085 # Find all dependency output files, they are included files with
9086 # $(DEPDIR) in their names. We invoke sed twice because it is the
9087 # simplest approach to changing $(DEPDIR) to its actual value in the
9088 # expansion.
9089 for file in `sed -n "
9090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9092 # Make sure the directory exists.
9093 test -f "$dirpart/$file" && continue
9094 fdir=`$as_dirname -- "$file" ||
9095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9096 X"$file" : 'X\(//\)[^/]' \| \
9097 X"$file" : 'X\(//\)$' \| \
9098 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9099 $as_echo X"$file" |
9100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9101 s//\1/
9102 q
9103 }
9104 /^X\(\/\/\)[^/].*/{
9105 s//\1/
9106 q
9107 }
9108 /^X\(\/\/\)$/{
9109 s//\1/
9110 q
9111 }
9112 /^X\(\/\).*/{
9113 s//\1/
9114 q
9115 }
9116 s/.*/./; q'`
9117 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9118 # echo "creating $dirpart/$file"
9119 echo '# dummy' > "$dirpart/$file"
9120 done
9121 done
9122 }
9123 ;;
9124 "po-directories":C)
9125 for ac_file in $CONFIG_FILES; do
9126 # Support "outfile[:infile[:infile...]]"
9127 case "$ac_file" in
9128 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9129 esac
9130 # PO directories have a Makefile.in generated from Makefile.in.in.
9131 case "$ac_file" in */Makefile.in)
9132 # Adjust a relative srcdir.
9133 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9134 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9135 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9136 # In autoconf-2.13 it is called $ac_given_srcdir.
9137 # In autoconf-2.50 it is called $srcdir.
9138 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9139 case "$ac_given_srcdir" in
9140 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9141 /*) top_srcdir="$ac_given_srcdir" ;;
9142 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9143 esac
9144 # Treat a directory as a PO directory if and only if it has a
9145 # POTFILES.in file. This allows packages to have multiple PO
9146 # directories under different names or in different locations.
9147 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9148 rm -f "$ac_dir/POTFILES"
9149 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9150 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9151 POMAKEFILEDEPS="POTFILES.in"
9152 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9153 # on $ac_dir but don't depend on user-specified configuration
9154 # parameters.
9155 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9156 # The LINGUAS file contains the set of available languages.
9157 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9158 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9159 fi
9160 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9161 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9162 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9163 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9164 else
9165 # The set of available languages was given in configure.in.
9166 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9167 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9168 fi
9169 # Compute POFILES
9170 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9171 # Compute UPDATEPOFILES
9172 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9173 # Compute DUMMYPOFILES
9174 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9175 # Compute GMOFILES
9176 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9177 case "$ac_given_srcdir" in
9178 .) srcdirpre= ;;
9179 *) srcdirpre='$(srcdir)/' ;;
9180 esac
9181 POFILES=
9182 UPDATEPOFILES=
9183 DUMMYPOFILES=
9184 GMOFILES=
9185 for lang in $ALL_LINGUAS; do
9186 POFILES="$POFILES $srcdirpre$lang.po"
9187 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9188 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9189 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9190 done
9191 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9192 # environment variable.
9193 INST_LINGUAS=
9194 if test -n "$ALL_LINGUAS"; then
9195 for presentlang in $ALL_LINGUAS; do
9196 useit=no
9197 if test "%UNSET%" != "$LINGUAS"; then
9198 desiredlanguages="$LINGUAS"
9199 else
9200 desiredlanguages="$ALL_LINGUAS"
9201 fi
9202 for desiredlang in $desiredlanguages; do
9203 # Use the presentlang catalog if desiredlang is
9204 # a. equal to presentlang, or
9205 # b. a variant of presentlang (because in this case,
9206 # presentlang can be used as a fallback for messages
9207 # which are not translated in the desiredlang catalog).
9208 case "$desiredlang" in
9209 "$presentlang"*) useit=yes;;
9210 esac
9211 done
9212 if test $useit = yes; then
9213 INST_LINGUAS="$INST_LINGUAS $presentlang"
9214 fi
9215 done
9216 fi
9217 CATALOGS=
9218 if test -n "$INST_LINGUAS"; then
9219 for lang in $INST_LINGUAS; do
9220 CATALOGS="$CATALOGS $lang.gmo"
9221 done
9222 fi
9223 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9224 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9225 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9226 if test -f "$f"; then
9227 case "$f" in
9228 *.orig | *.bak | *~) ;;
9229 *) cat "$f" >> "$ac_dir/Makefile" ;;
9230 esac
9231 fi
9232 done
9233 fi
9234 ;;
9235 esac
9236 done ;;
9237
9238 esac
9239 done # for ac_tag
9240
9241
9242 as_fn_exit 0
9243 _ACEOF
9244 ac_clean_files=$ac_clean_files_save
9245
9246 test $ac_write_fail = 0 ||
9247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9248
9249
9250 # configure is writing to config.log, and then calls config.status.
9251 # config.status does its own redirection, appending to config.log.
9252 # Unfortunately, on DOS this fails, as config.log is still kept open
9253 # by configure, so config.status won't be able to write to it; its
9254 # output is simply discarded. So we exec the FD to /dev/null,
9255 # effectively closing config.log, so it can be properly (re)opened and
9256 # appended to by config.status. When coming back to configure, we
9257 # need to make the FD available again.
9258 if test "$no_create" != yes; then
9259 ac_cs_success=:
9260 ac_config_status_args=
9261 test "$silent" = yes &&
9262 ac_config_status_args="$ac_config_status_args --quiet"
9263 exec 5>/dev/null
9264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9265 exec 5>>config.log
9266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9267 # would make configure fail if this is the last instruction.
9268 $ac_cs_success || as_fn_exit 1
9269 fi
9270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9273 fi
9274
9275