ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.50
Committed: Wed Jul 10 01:51:40 2013 UTC (10 years, 10 months ago) by root
Branch: MAIN
Changes since 1.49: +338 -292 lines
Log Message:
*** empty log message ***

File Contents

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