ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
(Generate patch)

Comparing gvpe/configure (file contents):
Revision 1.51 by root, Sat Jul 13 04:10:29 2013 UTC vs.
Revision 1.61 by root, Thu Oct 6 03:25:53 2022 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69. 3# Generated by GNU Autoconf 2.71 for gvpe 3.1.
4# 4#
5# 5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
7# 8#
8# 9#
9# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ## 12## -------------------- ##
12## M4sh Initialization. ## 13## M4sh Initialization. ##
13## -------------------- ## 14## -------------------- ##
14 15
15# Be more Bourne compatible 16# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
18 emulate sh 21 emulate sh
19 NULLCMD=: 22 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature. 24 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"' 25 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST 26 setopt NO_GLOB_SUBST
24else 27else $as_nop
25 case `(set -o) 2>/dev/null` in #( 28 case `(set -o) 2>/dev/null` in #(
26 *posix*) : 29 *posix*) :
27 set -o posix ;; #( 30 set -o posix ;; #(
28 *) : 31 *) :
29 ;; 32 ;;
30esac 33esac
31fi 34fi
32 35
33 36
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
34as_nl=' 45as_nl='
35' 46'
36export as_nl 47export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf. 48IFS=" "" $as_nl"
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50PS1='$ '
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51PS2='> '
41# Prefer a ksh shell builtin over an external printf program on Solaris, 52PS4='+ '
42# but without wasting forks for bash or zsh. 53
43if test -z "$BASH_VERSION$ZSH_VERSION" \ 54# Ensure predictable behavior from utilities with locale-dependent output.
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55LC_ALL=C
45 as_echo='print -r --' 56export LC_ALL
46 as_echo_n='print -rn --' 57LANGUAGE=C
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58export LANGUAGE
48 as_echo='printf %s\n' 59
49 as_echo_n='printf %s' 60# We cannot yet rely on "unset" to work, but we need these variables
50else 61# to be unset--not just set to an empty or harmless value--now, to
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 63# also avoids known problems related to "unset" and subshell syntax
53 as_echo_n='/usr/ucb/echo -n' 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
54 else 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66do eval test \${$as_var+y} \
56 as_echo_n_body='eval 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
57 arg=$1; 68done
58 case $arg in #( 69
59 *"$as_nl"*) 70# Ensure that fds 0, 1, and 2 are open.
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
62 esac; 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71 74
72# The user is always right. 75# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then 76if ${PATH_SEPARATOR+false} :; then
74 PATH_SEPARATOR=: 77 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';' 80 PATH_SEPARATOR=';'
78 } 81 }
79fi 82fi
80 83
81
82# 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.)
87IFS=" "" $as_nl"
88 84
89# Find who we are. Look in the path if we contain no directory separator. 85# Find who we are. Look in the path if we contain no directory separator.
90as_myself= 86as_myself=
91case $0 in #(( 87case $0 in #((
92 *[\\/]* ) as_myself=$0 ;; 88 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH 90for as_dir in $PATH
95do 91do
96 IFS=$as_save_IFS 92 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=. 93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done 99 done
100IFS=$as_save_IFS 100IFS=$as_save_IFS
101 101
102 ;; 102 ;;
103esac 103esac
105# in which case we are not to be found in the path. 105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then 106if test "x$as_myself" = x; then
107 as_myself=$0 107 as_myself=$0
108fi 108fi
109if test ! -f "$as_myself"; then 109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1 111 exit 1
112fi 112fi
113 113
114# 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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 114
135# Use a proper internal environment variable to ensure we don't fall 115# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves. 116 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec; 118 _as_can_reexec=no; export _as_can_reexec;
150 * ) as_opts= ;; 130 * ) as_opts= ;;
151esac 131esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail 133# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'. 134# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255 136exit 255
157 fi 137 fi
158 # We don't want this to propagate to other subprocesses. 138 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;} 139 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then 140if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
162 emulate sh 144 emulate sh
163 NULLCMD=: 145 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature. 147 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST 149 setopt NO_GLOB_SUBST
168else 150else \$as_nop
169 case \`(set -o) 2>/dev/null\` in #( 151 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) : 152 *posix*) :
171 set -o posix ;; #( 153 set -o posix ;; #(
172 *) : 154 *) :
173 ;; 155 ;;
183exitcode=0 165exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
189 172
190else 173else \$as_nop
191 exitcode=1; echo positional parameters were not saved. 174 exitcode=1; echo positional parameters were not saved.
192fi 175fi
193test x\$exitcode = x0 || exit 1 176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
194test -x / || exit 1" 179test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 180 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 181 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'\" && 182 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 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1" 184test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then : 185 if (eval "$as_required") 2>/dev/null
186then :
201 as_have_required=yes 187 as_have_required=yes
202else 188else $as_nop
203 as_have_required=no 189 as_have_required=no
204fi 190fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192then :
206 193
207else 194else $as_nop
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false 196as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do 198do
212 IFS=$as_save_IFS 199 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=. 200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
214 as_found=: 205 as_found=:
215 case $as_dir in #( 206 case $as_dir in #(
216 /*) 207 /*)
217 for as_base in sh bash ksh sh5; do 208 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks. 209 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base 210 as_shell=$as_dir$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 211 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 : 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
222 CONFIG_SHELL=$as_shell as_have_required=yes 214 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 : 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
224 break 2 217 break 2
225fi 218fi
226fi 219fi
227 done;; 220 done;;
228 esac 221 esac
229 as_found=false 222 as_found=false
230done 223done
224IFS=$as_save_IFS
225if $as_found
226then :
227
228else $as_nop
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231then :
233 CONFIG_SHELL=$SHELL as_have_required=yes 232 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; } 233fi
235IFS=$as_save_IFS 234fi
236 235
237 236
238 if test "x$CONFIG_SHELL" != x; then : 237 if test "x$CONFIG_SHELL" != x
238then :
239 export CONFIG_SHELL 239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell. 243# Preserve -v and -x to the replacement shell.
251 * ) as_opts= ;; 251 * ) as_opts= ;;
252esac 252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail 254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'. 255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255 257exit 255
258fi 258fi
259 259
260 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno
261then :
261 $as_echo "$0: This script requires a shell more modern than all" 262 printf "%s\n" "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system." 263 printf "%s\n" "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then 264 if test ${ZSH_VERSION+y} ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else 267 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this 269$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run 270$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one." 271$0: the script under such a shell if you do have one."
271 fi 272 fi
272 exit 1 273 exit 1
289{ 290{
290 { eval $1=; unset $1;} 291 { eval $1=; unset $1;}
291} 292}
292as_unset=as_fn_unset 293as_unset=as_fn_unset
293 294
295
294# as_fn_set_status STATUS 296# as_fn_set_status STATUS
295# ----------------------- 297# -----------------------
296# Set $? to STATUS, without forking. 298# Set $? to STATUS, without forking.
297as_fn_set_status () 299as_fn_set_status ()
298{ 300{
306{ 308{
307 set +e 309 set +e
308 as_fn_set_status $1 310 as_fn_set_status $1
309 exit $1 311 exit $1
310} # as_fn_exit 312} # as_fn_exit
313# as_fn_nop
314# ---------
315# Do nothing but, unlike ":", preserve the value of $?.
316as_fn_nop ()
317{
318 return $?
319}
320as_nop=as_fn_nop
311 321
312# as_fn_mkdir_p 322# as_fn_mkdir_p
313# ------------- 323# -------------
314# Create "$as_dir" as a directory, including parents if necessary. 324# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p () 325as_fn_mkdir_p ()
320 esac 330 esac
321 test -d "$as_dir" || eval $as_mkdir_p || { 331 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs= 332 as_dirs=
323 while :; do 333 while :; do
324 case $as_dir in #( 334 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;; 336 *) as_qdir=$as_dir;;
327 esac 337 esac
328 as_dirs="'$as_qdir' $as_dirs" 338 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" || 339 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" | 344printf "%s\n" X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/ 346 s//\1/
337 q 347 q
338 } 348 }
339 /^X\(\/\/\)[^/].*/{ 349 /^X\(\/\/\)[^/].*/{
368# ---------------------- 378# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take 379# 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 380# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive 381# repeated appends, instead of the typical quadratic growth present in naive
372# implementations. 382# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
374 eval 'as_fn_append () 385 eval 'as_fn_append ()
375 { 386 {
376 eval $1+=\$2 387 eval $1+=\$2
377 }' 388 }'
378else 389else $as_nop
379 as_fn_append () 390 as_fn_append ()
380 { 391 {
381 eval $1=\$$1\$2 392 eval $1=\$$1\$2
382 } 393 }
383fi # as_fn_append 394fi # as_fn_append
385# as_fn_arith ARG... 396# as_fn_arith ARG...
386# ------------------ 397# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the 398# 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 399# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr. 400# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
391 eval 'as_fn_arith () 403 eval 'as_fn_arith ()
392 { 404 {
393 as_val=$(( $* )) 405 as_val=$(( $* ))
394 }' 406 }'
395else 407else $as_nop
396 as_fn_arith () 408 as_fn_arith ()
397 { 409 {
398 as_val=`expr "$@" || test $? -eq 1` 410 as_val=`expr "$@" || test $? -eq 1`
399 } 411 }
400fi # as_fn_arith 412fi # as_fn_arith
401 413
414# as_fn_nop
415# ---------
416# Do nothing but, unlike ":", preserve the value of $?.
417as_fn_nop ()
418{
419 return $?
420}
421as_nop=as_fn_nop
402 422
403# as_fn_error STATUS ERROR [LINENO LOG_FD] 423# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ---------------------------------------- 424# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 425# 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 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408as_fn_error () 428as_fn_error ()
409{ 429{
410 as_status=$1; test $as_status -eq 0 && as_status=1 430 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then 431 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 432 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 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi 434 fi
415 $as_echo "$as_me: error: $2" >&2 435 printf "%s\n" "$as_me: error: $2" >&2
416 as_fn_exit $as_status 436 as_fn_exit $as_status
417} # as_fn_error 437} # as_fn_error
418 438
419if expr a : '\(a\)' >/dev/null 2>&1 && 439if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 457
438as_me=`$as_basename -- "$0" || 458as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \ 460 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" | 462printf "%s\n" X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 463 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/ 464 s//\1/
445 q 465 q
446 } 466 }
447 /^X\/\(\/\/\)$/{ 467 /^X\/\(\/\/\)$/{
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop 502 t loop
483 s/-\n.*// 503 s/-\n.*//
484 ' >$as_me.lineno && 504 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" || 505 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 507
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 508 # 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 509 # 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. 510 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec 511 _as_can_reexec=no; export _as_can_reexec
495 . "./$as_me.lineno" 515 . "./$as_me.lineno"
496 # Exit status is that of the last command. 516 # Exit status is that of the last command.
497 exit 517 exit
498} 518}
499 519
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
500ECHO_C= ECHO_N= ECHO_T= 524ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #((((( 525case `echo -n x` in #(((((
502-n*) 526-n*)
503 case `echo 'xy\c'` in 527 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 ECHO_T=' ';; 531 ECHO_T=' ';;
508 esac;; 532 esac;;
509*) 533*)
510 ECHO_N='-n';; 534 ECHO_N='-n';;
511esac 535esac
536
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n. New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
512 543
513rm -f conf$$ conf$$.exe conf$$.file 544rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then 545if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file 546 rm -f conf$$.dir/conf$$.file
516else 547else
573subdirs= 604subdirs=
574MFLAGS= 605MFLAGS=
575MAKEFLAGS= 606MAKEFLAGS=
576 607
577# Identity of this package. 608# Identity of this package.
578PACKAGE_NAME= 609PACKAGE_NAME='gvpe'
579PACKAGE_TARNAME= 610PACKAGE_TARNAME='gvpe'
580PACKAGE_VERSION= 611PACKAGE_VERSION='3.1'
581PACKAGE_STRING= 612PACKAGE_STRING='gvpe 3.1'
582PACKAGE_BUGREPORT= 613PACKAGE_BUGREPORT=''
583PACKAGE_URL= 614PACKAGE_URL=''
584 615
585ac_unique_file="src/gvpe.C" 616ac_unique_file="src/gvpe.C"
586# Factoring default headers for most tests. 617# Factoring default headers for most tests.
587ac_includes_default="\ 618ac_includes_default="\
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
588#include <stdio.h> 621# include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif 622#endif
592#ifdef HAVE_SYS_STAT_H 623#ifdef HAVE_STDLIB_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h> 624# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif 625#endif
603#ifdef HAVE_STRING_H 626#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h> 627# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif 628#endif
612#ifdef HAVE_INTTYPES_H 629#ifdef HAVE_INTTYPES_H
613# include <inttypes.h> 630# include <inttypes.h>
614#endif 631#endif
615#ifdef HAVE_STDINT_H 632#ifdef HAVE_STDINT_H
616# include <stdint.h> 633# include <stdint.h>
617#endif 634#endif
635#ifdef HAVE_STRINGS_H
636# include <strings.h>
637#endif
638#ifdef HAVE_SYS_TYPES_H
639# include <sys/types.h>
640#endif
641#ifdef HAVE_SYS_STAT_H
642# include <sys/stat.h>
643#endif
618#ifdef HAVE_UNISTD_H 644#ifdef HAVE_UNISTD_H
619# include <unistd.h> 645# include <unistd.h>
620#endif" 646#endif"
621 647
648ac_header_cxx_list=
622ac_subst_vars='am__EXEEXT_FALSE 649ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE 650am__EXEEXT_TRUE
624LTLIBOBJS 651LTLIBOBJS
625LIBOBJS 652LIBOBJS
626INCLUDES 653AM_CPPFLAGS
627ROHC_FALSE 654ROHC_FALSE
628ROHC_TRUE 655ROHC_TRUE
629LDFLAGS_DAEMON 656LDFLAGS_DAEMON
657LIBCRYPTO_LIBS
658LIBCRYPTO_CFLAGS
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
630HAVE_TUNTAP 662HAVE_TUNTAP
631LINUX_IF_TUN_H 663LINUX_IF_TUN_H
632ALLOCA 664ALLOCA
633CXXCPP
634IFSUBTYPE 665IFSUBTYPE
635IFTYPE 666IFTYPE
636RANLIB 667RANLIB
637LN_S 668LN_S
638EGREP 669EGREP
656CCDEPMODE 687CCDEPMODE
657am__nodep 688am__nodep
658AMDEPBACKSLASH 689AMDEPBACKSLASH
659AMDEP_FALSE 690AMDEP_FALSE
660AMDEP_TRUE 691AMDEP_TRUE
661am__quote
662am__include 692am__include
663DEPDIR 693DEPDIR
664OBJEXT 694OBJEXT
665EXEEXT 695EXEEXT
666ac_ct_CC 696ac_ct_CC
674MSGFMT 704MSGFMT
675MKINSTALLDIRS 705MKINSTALLDIRS
676MAINT 706MAINT
677MAINTAINER_MODE_FALSE 707MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE 708MAINTAINER_MODE_TRUE
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
679am__untar 713am__untar
680am__tar 714am__tar
681AMTAR 715AMTAR
682am__leading_dot 716am__leading_dot
683SET_MAKE 717SET_MAKE
728htmldir 762htmldir
729infodir 763infodir
730docdir 764docdir
731oldincludedir 765oldincludedir
732includedir 766includedir
767runstatedir
733localstatedir 768localstatedir
734sharedstatedir 769sharedstatedir
735sysconfdir 770sysconfdir
736datadir 771datadir
737datarootdir 772datarootdir
746PACKAGE_STRING 781PACKAGE_STRING
747PACKAGE_VERSION 782PACKAGE_VERSION
748PACKAGE_TARNAME 783PACKAGE_TARNAME
749PACKAGE_NAME 784PACKAGE_NAME
750PATH_SEPARATOR 785PATH_SEPARATOR
751SHELL' 786SHELL
787am__quote'
752ac_subst_files='' 788ac_subst_files=''
753ac_user_opts=' 789ac_user_opts='
754enable_option_checking 790enable_option_checking
791enable_silent_rules
755enable_maintainer_mode 792enable_maintainer_mode
756enable_dependency_tracking 793enable_dependency_tracking
757with_gnu_ld 794with_gnu_ld
758enable_rpath 795enable_rpath
759with_libiconv_prefix 796with_libiconv_prefix
760enable_nls 797enable_nls
761with_libintl_prefix 798with_libintl_prefix
762enable_iftype 799enable_iftype
763with_kernel 800with_kernel
764with_openssl_include
765with_openssl_lib
766enable_threads 801enable_threads
767enable_static_daemon 802enable_static_daemon
768enable_icmp 803enable_icmp
769enable_tcp 804enable_tcp
770enable_http_proxy 805enable_http_proxy
771enable_dns 806enable_dns
807enable_rsa_length
772enable_hmac_length 808enable_hmac_length
773enable_rand_length
774enable_max_mtu 809enable_max_mtu
775enable_compression 810enable_compression
776enable_cipher 811enable_cipher
777enable_digest 812enable_hmac_digest
813enable_auth_digest
778' 814'
779 ac_precious_vars='build_alias 815 ac_precious_vars='build_alias
780host_alias 816host_alias
781target_alias 817target_alias
782CC 818CC
786CPPFLAGS 822CPPFLAGS
787CPP 823CPP
788CXX 824CXX
789CXXFLAGS 825CXXFLAGS
790CCC 826CCC
791CXXCPP' 827PKG_CONFIG
828PKG_CONFIG_PATH
829PKG_CONFIG_LIBDIR
830LIBCRYPTO_CFLAGS
831LIBCRYPTO_LIBS'
792 832
793 833
794# Initialize some variables set by options. 834# Initialize some variables set by options.
795ac_init_help= 835ac_init_help=
796ac_init_version=false 836ac_init_version=false
825datarootdir='${prefix}/share' 865datarootdir='${prefix}/share'
826datadir='${datarootdir}' 866datadir='${datarootdir}'
827sysconfdir='${prefix}/etc' 867sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com' 868sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var' 869localstatedir='${prefix}/var'
870runstatedir='${localstatedir}/run'
830includedir='${prefix}/include' 871includedir='${prefix}/include'
831oldincludedir='/usr/include' 872oldincludedir='/usr/include'
832docdir='${datarootdir}/doc/${PACKAGE}' 873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833infodir='${datarootdir}/info' 874infodir='${datarootdir}/info'
834htmldir='${docdir}' 875htmldir='${docdir}'
835dvidir='${docdir}' 876dvidir='${docdir}'
836pdfdir='${docdir}' 877pdfdir='${docdir}'
837psdir='${docdir}' 878psdir='${docdir}'
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;; 896 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;; 897 *) ac_optarg=yes ;;
857 esac 898 esac
858 899
859 # Accept the important Cygnus configure options, so we can diagnose typos.
860
861 case $ac_dashdash$ac_option in 900 case $ac_dashdash$ac_option in
862 --) 901 --)
863 ac_dashdash=yes ;; 902 ac_dashdash=yes ;;
864 903
865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 935
897 -disable-* | --disable-*) 936 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names. 938 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt" 940 as_fn_error $? "invalid feature name: \`$ac_useropt'"
902 ac_useropt_orig=$ac_useropt 941 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in 943 case $ac_user_opts in
905 *" 944 *"
906"enable_$ac_useropt" 945"enable_$ac_useropt"
907"*) ;; 946"*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 961
923 -enable-* | --enable-*) 962 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names. 964 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt" 966 as_fn_error $? "invalid feature name: \`$ac_useropt'"
928 ac_useropt_orig=$ac_useropt 967 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in 969 case $ac_user_opts in
931 *" 970 *"
932"enable_$ac_useropt" 971"enable_$ac_useropt"
933"*) ;; 972"*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 1116
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil) 1118 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;; 1119 silent=yes ;;
1081 1120
1121 -runstatedir | --runstatedir | --runstatedi | --runstated \
1122 | --runstate | --runstat | --runsta | --runst | --runs \
1123 | --run | --ru | --r)
1124 ac_prev=runstatedir ;;
1125 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1126 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1127 | --run=* | --ru=* | --r=*)
1128 runstatedir=$ac_optarg ;;
1129
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;; 1131 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*) 1133 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;; 1134 sbindir=$ac_optarg ;;
1126 1174
1127 -with-* | --with-*) 1175 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names. 1177 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt" 1179 as_fn_error $? "invalid package name: \`$ac_useropt'"
1132 ac_useropt_orig=$ac_useropt 1180 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in 1182 case $ac_user_opts in
1135 *" 1183 *"
1136"with_$ac_useropt" 1184"with_$ac_useropt"
1137"*) ;; 1185"*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 1190
1143 -without-* | --without-*) 1191 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names. 1193 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt" 1195 as_fn_error $? "invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt 1196 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in 1198 case $ac_user_opts in
1151 *" 1199 *"
1152"with_$ac_useropt" 1200"with_$ac_useropt"
1153"*) ;; 1201"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 eval $ac_envvar=\$ac_optarg 1236 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;; 1237 export $ac_envvar ;;
1190 1238
1191 *) 1239 *)
1192 # FIXME: should be removed in autoconf 3.0. 1240 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 ;; 1245 ;;
1198 1246
1199 esac 1247 esac
1200done 1248done
1206 1254
1207if test -n "$ac_unrecognized_opts"; then 1255if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in 1256 case $enable_option_checking in
1209 no) ;; 1257 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac 1260 esac
1213fi 1261fi
1214 1262
1215# Check all directory arguments for consistency. 1263# Check all directory arguments for consistency.
1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir 1267 libdir localedir mandir runstatedir
1220do 1268do
1221 eval ac_val=\$$ac_var 1269 eval ac_val=\$$ac_var
1222 # Remove trailing slashes. 1270 # Remove trailing slashes.
1223 case $ac_val in 1271 case $ac_val in
1224 */ ) 1272 */ )
1270 ac_confdir=`$as_dirname -- "$as_myself" || 1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \ 1321 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" | 1323printf "%s\n" X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/ 1325 s//\1/
1278 q 1326 q
1279 } 1327 }
1280 /^X\(\/\/\)[^/].*/{ 1328 /^X\(\/\/\)[^/].*/{
1327# 1375#
1328if test "$ac_init_help" = "long"; then 1376if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing. 1377 # 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. 1378 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF 1379 cat <<_ACEOF
1332\`configure' configures this package to adapt to many kinds of systems. 1380\`configure' configures gvpe 3.1 to adapt to many kinds of systems.
1333 1381
1334Usage: $0 [OPTION]... [VAR=VALUE]... 1382Usage: $0 [OPTION]... [VAR=VALUE]...
1335 1383
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables. 1385VAR=VALUE. See below for descriptions of some of the useful variables.
1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1372 --libdir=DIR object code libraries [EPREFIX/lib] 1421 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include] 1422 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1429 --docdir=DIR documentation root [DATAROOTDIR/doc/gvpe]
1381 --htmldir=DIR html documentation [DOCDIR] 1430 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR] 1431 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR] 1432 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR] 1433 --psdir=DIR ps documentation [DOCDIR]
1385_ACEOF 1434_ACEOF
1397 --target=TARGET configure for building compilers for TARGET [HOST] 1446 --target=TARGET configure for building compilers for TARGET [HOST]
1398_ACEOF 1447_ACEOF
1399fi 1448fi
1400 1449
1401if test -n "$ac_init_help"; then 1450if test -n "$ac_init_help"; then
1402 1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of gvpe 3.1:";;
1453 esac
1403 cat <<\_ACEOF 1454 cat <<\_ACEOF
1404 1455
1405Optional Features: 1456Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-maintainer-mode enable make rules and dependencies not useful 1460 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 (and sometimes confusing) to the casual installer 1461 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --disable-dependency-tracking speeds up one-time build 1462 --enable-maintainer-mode
1412 --enable-dependency-tracking do not reject slow dependency extractors 1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1413 --disable-rpath do not hardcode runtime library paths 1469 --disable-rpath do not hardcode runtime library paths
1414 --disable-nls do not use Native Language Support 1470 --disable-nls do not use Native Language Support
1415 --enable-iftype=TYPE/SUBTYPE 1471 --enable-iftype=TYPE/SUBTYPE
1416 Use kernel/net device interface TYPE/SUBTYPE. 1472 Use kernel/net device interface TYPE/SUBTYPE.
1417 Working combinations are (see doc/gvpe.osdep.5.pod): 1473 Working combinations are (see doc/gvpe.osdep.5.pod):
1428 --disable-icmp enable icmp protocol support (default enabled). 1484 --disable-icmp enable icmp protocol support (default enabled).
1429 --disable-tcp enable tcp protocol support (default enabled). 1485 --disable-tcp enable tcp protocol support (default enabled).
1430 --disable-http-proxy enable http proxy connect support (default enabled). 1486 --disable-http-proxy enable http proxy connect support (default enabled).
1431 --enable-dns enable dns tunnel protocol support (default 1487 --enable-dns enable dns tunnel protocol support (default
1432 disabled). 1488 disabled).
1489 --enable-rsa-length=BITS
1490 use BITS rsa keys (default 3072). Allowed values are
1491 2048-10240.
1433 --enable-hmac-length=BYTES 1492 --enable-hmac-length=BYTES
1434 use a hmac of length BYTES bytes (default 12). 1493 use a hmac of length BYTES bytes (default 12).
1435 Allowed values are 4, 8, 12, 16. 1494 Allowed values are 4, 8, 12, 16.
1436 --enable-rand-length=BYTES
1437 use BYTES bytes of extra randomness (default 8).
1438 Allowed values are 0, 4, 8.
1439 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500). 1495 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1440 Use 9100 for jumbogram support. 1496 Use 9100 for jumbogram support.
1441 --disable-compression Disable compression support. 1497 --disable-compression Disable compression support.
1442 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128"). 1498 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128").
1443 Must be one of "bf" (blowfish), "aes-128" 1499 Must be one of "aes-128" (rijndael), "aes-192", or
1444 (rijndael), "aes-192" or "aes-256". 1500 "aes-256".
1445 --enable-digest=CIPHER Select the digest algorithm to use (default 1501 --enable-hmac-digest=HMAC
1502 Select the HMAC digest algorithm to use (default
1446 "ripemd160"). Must be one of "sha512", "sha256", 1503 "sha1"). Must be one of "sha512", "sha256", "sha1",
1447 "sha1" (somewhat insecure), "ripemd160", "md5" 1504 "ripemd160", "whirlpool".
1448 (insecure) or "md4" (insecure). 1505 --enable-auth-digest=DIGEST
1506 Select the hmac algorithm to use (default "sha512").
1507 Must be one of "sha512", "sha256", "whirlpool".
1449 1508
1450Optional Packages: 1509Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-gnu-ld assume the C compiler uses GNU ld default=no 1512 --with-gnu-ld assume the C compiler uses GNU ld default=no
1455 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1514 --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 1515 --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 1516 --without-libintl-prefix don't search for libintl in includedir and libdir
1458 --with-kernel=dir give the directory with kernel sources 1517 --with-kernel=dir give the directory with kernel sources
1459 (default: /usr/src/linux) 1518 (default: /usr/src/linux)
1460 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1461 --with-openssl-lib=DIR OpenSSL library directory
1462 1519
1463Some influential environment variables: 1520Some influential environment variables:
1464 CC C compiler command 1521 CC C compiler command
1465 CFLAGS C compiler flags 1522 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir> 1527 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor 1528 CPP C preprocessor
1472 CXX C++ compiler command 1529 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags 1530 CXXFLAGS C++ compiler flags
1474 CXXCPP C++ preprocessor 1531 PKG_CONFIG path to pkg-config utility
1532 PKG_CONFIG_PATH
1533 directories to add to pkg-config's search path
1534 PKG_CONFIG_LIBDIR
1535 path overriding pkg-config's built-in search path
1536 LIBCRYPTO_CFLAGS
1537 C compiler flags for LIBCRYPTO, overriding pkg-config
1538 LIBCRYPTO_LIBS
1539 linker flags for LIBCRYPTO, overriding pkg-config
1475 1540
1476Use these variables to override the choices made by `configure' or to help 1541Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations. 1542it to find libraries and programs with nonstandard names/locations.
1478 1543
1479Report bugs to the package provider. 1544Report bugs to the package provider.
1490 ac_builddir=. 1555 ac_builddir=.
1491 1556
1492case "$ac_dir" in 1557case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*) 1559*)
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix. 1561 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in 1563 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;; 1566 esac ;;
1502esac 1567esac
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac 1586esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 1588
1524 cd "$ac_dir" || { ac_status=$?; continue; } 1589 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure. 1590 # Check for configure.gnu first; this name is used for a wrapper for
1591 # Metaconfig's "Configure" on case-insensitive file systems.
1526 if test -f "$ac_srcdir/configure.gnu"; then 1592 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo && 1593 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then 1595 elif test -f "$ac_srcdir/configure"; then
1530 echo && 1596 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive 1597 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else 1598 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$? 1600 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; } 1601 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done 1602 done
1537fi 1603fi
1538 1604
1539test -n "$ac_init_help" && exit $ac_status 1605test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then 1606if $ac_init_version; then
1541 cat <<\_ACEOF 1607 cat <<\_ACEOF
1542configure 1608gvpe configure 3.1
1543generated by GNU Autoconf 2.69 1609generated by GNU Autoconf 2.71
1544 1610
1545Copyright (C) 2012 Free Software Foundation, Inc. 1611Copyright (C) 2021 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation 1612This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it. 1613gives unlimited permission to copy, distribute and modify it.
1548_ACEOF 1614_ACEOF
1549 exit 1615 exit
1550fi 1616fi
1557# -------------------------- 1623# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile () 1625ac_fn_c_try_compile ()
1560{ 1626{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext 1628 rm -f conftest.$ac_objext conftest.beam
1563 if { { ac_try="$ac_compile" 1629 if { { ac_try="$ac_compile"
1564case "(($ac_try" in 1630case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;; 1632 *) ac_try_echo=$ac_try;;
1567esac 1633esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5 1635printf "%s\n" "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err 1636 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$? 1637 ac_status=$?
1572 if test -s conftest.err; then 1638 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1 1639 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5 1640 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err 1641 mv -f conftest.er1 conftest.err
1576 fi 1642 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { 1644 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" || 1645 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err 1646 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then : 1647 } && test -s conftest.$ac_objext
1648then :
1582 ac_retval=0 1649 ac_retval=0
1583else 1650else $as_nop
1584 $as_echo "$as_me: failed program was:" >&5 1651 printf "%s\n" "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5 1652sed 's/^/| /' conftest.$ac_ext >&5
1586 1653
1587 ac_retval=1 1654 ac_retval=1
1588fi 1655fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595# ----------------------- 1662# -----------------------
1596# Try to link conftest.$ac_ext, and return whether this succeeded. 1663# Try to link conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_link () 1664ac_fn_c_try_link ()
1598{ 1665{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext 1667 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1601 if { { ac_try="$ac_link" 1668 if { { ac_try="$ac_link"
1602case "(($ac_try" in 1669case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;; 1671 *) ac_try_echo=$ac_try;;
1605esac 1672esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5 1674printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err 1675 (eval "$ac_link") 2>conftest.err
1609 ac_status=$? 1676 ac_status=$?
1610 if test -s conftest.err; then 1677 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1 1678 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5 1679 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err 1680 mv -f conftest.er1 conftest.err
1614 fi 1681 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { 1683 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" || 1684 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err 1685 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && { 1686 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes || 1687 test "$cross_compiling" = yes ||
1621 test -x conftest$ac_exeext 1688 test -x conftest$ac_exeext
1622 }; then : 1689 }
1690then :
1623 ac_retval=0 1691 ac_retval=0
1624else 1692else $as_nop
1625 $as_echo "$as_me: failed program was:" >&5 1693 printf "%s\n" "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5 1694sed 's/^/| /' conftest.$ac_ext >&5
1627 1695
1628 ac_retval=1 1696 ac_retval=1
1629fi 1697fi
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647case "(($ac_try" in 1715case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;; 1717 *) ac_try_echo=$ac_try;;
1650esac 1718esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5 1720printf "%s\n" "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$? 1722 ac_status=$?
1655 if test -s conftest.err; then 1723 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1 1724 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5 1725 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err 1726 mv -f conftest.er1 conftest.err
1659 fi 1727 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && { 1729 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err 1731 test ! -s conftest.err
1664 }; then : 1732 }
1733then :
1665 ac_retval=0 1734 ac_retval=0
1666else 1735else $as_nop
1667 $as_echo "$as_me: failed program was:" >&5 1736 printf "%s\n" "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5 1737sed 's/^/| /' conftest.$ac_ext >&5
1669 1738
1670 ac_retval=1 1739 ac_retval=1
1671fi 1740fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678# ---------------------------- 1747# ----------------------------
1679# Try to compile conftest.$ac_ext, and return whether this succeeded. 1748# Try to compile conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_cxx_try_compile () 1749ac_fn_cxx_try_compile ()
1681{ 1750{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext 1752 rm -f conftest.$ac_objext conftest.beam
1684 if { { ac_try="$ac_compile" 1753 if { { ac_try="$ac_compile"
1685case "(($ac_try" in 1754case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;; 1756 *) ac_try_echo=$ac_try;;
1688esac 1757esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5 1759printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err 1760 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$? 1761 ac_status=$?
1693 if test -s conftest.err; then 1762 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1 1763 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5 1764 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err 1765 mv -f conftest.er1 conftest.err
1697 fi 1766 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { 1768 test $ac_status = 0; } && {
1700 test -z "$ac_cxx_werror_flag" || 1769 test -z "$ac_cxx_werror_flag" ||
1701 test ! -s conftest.err 1770 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then : 1771 } && test -s conftest.$ac_objext
1772then :
1703 ac_retval=0 1773 ac_retval=0
1704else 1774else $as_nop
1705 $as_echo "$as_me: failed program was:" >&5 1775 printf "%s\n" "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5 1776sed 's/^/| /' conftest.$ac_ext >&5
1707 1777
1708 ac_retval=1 1778 ac_retval=1
1709fi 1779fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval 1781 as_fn_set_status $ac_retval
1712 1782
1713} # ac_fn_cxx_try_compile 1783} # ac_fn_cxx_try_compile
1714
1715# ac_fn_cxx_try_cpp LINENO
1716# ------------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_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"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval 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
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750} # ac_fn_cxx_try_cpp
1751
1752# 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.
1757ac_fn_cxx_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
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; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_cxx_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -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
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_cxx_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -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
1803# So? What about this header?
1804case $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 ;;
1823esac
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1828else
1829 eval "$3=\$ac_header_compiler"
1830fi
1831eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833$as_echo "$ac_res" >&6; }
1834fi
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_cxx_check_header_mongrel
1838
1839# 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.
1843ac_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"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval 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;;
1860esac
1861eval 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
1868else
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=$ac_status
1874fi
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879} # ac_fn_cxx_try_run
1880 1784
1881# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1785# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1882# --------------------------------------------------------- 1786# ---------------------------------------------------------
1883# Tests whether HEADER exists and can be compiled using the include files in 1787# Tests whether HEADER exists and can be compiled using the include files in
1884# INCLUDES, setting the cache variable VAR accordingly. 1788# INCLUDES, setting the cache variable VAR accordingly.
1885ac_fn_cxx_check_header_compile () 1789ac_fn_cxx_check_header_compile ()
1886{ 1790{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 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 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; } 1793printf %s "checking for $2... " >&6; }
1890if eval \${$3+:} false; then : 1794if eval test \${$3+y}
1891 $as_echo_n "(cached) " >&6 1795then :
1892else 1796 printf %s "(cached) " >&6
1797else $as_nop
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */ 1799/* end confdefs.h. */
1895$4 1800$4
1896#include <$2> 1801#include <$2>
1897_ACEOF 1802_ACEOF
1898if ac_fn_cxx_try_compile "$LINENO"; then : 1803if ac_fn_cxx_try_compile "$LINENO"
1804then :
1899 eval "$3=yes" 1805 eval "$3=yes"
1900else 1806else $as_nop
1901 eval "$3=no" 1807 eval "$3=no"
1902fi 1808fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1904fi 1810fi
1905eval ac_res=\$$3 1811eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; } 1813printf "%s\n" "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 1815
1910} # ac_fn_cxx_check_header_compile 1816} # ac_fn_cxx_check_header_compile
1911 1817
1912# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1818# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1914# Tests whether TYPE exists after having included INCLUDES, setting cache 1820# Tests whether TYPE exists after having included INCLUDES, setting cache
1915# variable VAR accordingly. 1821# variable VAR accordingly.
1916ac_fn_cxx_check_type () 1822ac_fn_cxx_check_type ()
1917{ 1823{
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 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 1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; } 1826printf %s "checking for $2... " >&6; }
1921if eval \${$3+:} false; then : 1827if eval test \${$3+y}
1922 $as_echo_n "(cached) " >&6 1828then :
1923else 1829 printf %s "(cached) " >&6
1830else $as_nop
1924 eval "$3=no" 1831 eval "$3=no"
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */ 1833/* end confdefs.h. */
1927$4 1834$4
1928int 1835int
1929main () 1836main (void)
1930{ 1837{
1931if (sizeof ($2)) 1838if (sizeof ($2))
1932 return 0; 1839 return 0;
1933 ; 1840 ;
1934 return 0; 1841 return 0;
1935} 1842}
1936_ACEOF 1843_ACEOF
1937if ac_fn_cxx_try_compile "$LINENO"; then : 1844if ac_fn_cxx_try_compile "$LINENO"
1845then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */ 1847/* end confdefs.h. */
1940$4 1848$4
1941int 1849int
1942main () 1850main (void)
1943{ 1851{
1944if (sizeof (($2))) 1852if (sizeof (($2)))
1945 return 0; 1853 return 0;
1946 ; 1854 ;
1947 return 0; 1855 return 0;
1948} 1856}
1949_ACEOF 1857_ACEOF
1950if ac_fn_cxx_try_compile "$LINENO"; then : 1858if ac_fn_cxx_try_compile "$LINENO"
1859then :
1951 1860
1952else 1861else $as_nop
1953 eval "$3=yes" 1862 eval "$3=yes"
1954fi 1863fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1956fi 1865fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1958fi 1867fi
1959eval ac_res=\$$3 1868eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; } 1870printf "%s\n" "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 1872
1964} # ac_fn_cxx_check_type 1873} # ac_fn_cxx_check_type
1965
1966# 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.
1970ac_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"
1974case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977esac
1978eval 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;;
1987esac
1988eval 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
1995else
1996 $as_echo "$as_me: program exited with status $ac_status" >&5
1997 $as_echo "$as_me: failed program was:" >&5
1998sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=$ac_status
2001fi
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2005
2006} # ac_fn_c_try_run
2007 1874
2008# ac_fn_c_check_func LINENO FUNC VAR 1875# ac_fn_c_check_func LINENO FUNC VAR
2009# ---------------------------------- 1876# ----------------------------------
2010# Tests whether FUNC exists, setting the cache variable VAR accordingly 1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
2011ac_fn_c_check_func () 1878ac_fn_c_check_func ()
2012{ 1879{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 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 1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; } 1882printf %s "checking for $2... " >&6; }
2016if eval \${$3+:} false; then : 1883if eval test \${$3+y}
2017 $as_echo_n "(cached) " >&6 1884then :
2018else 1885 printf %s "(cached) " >&6
1886else $as_nop
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */ 1888/* end confdefs.h. */
2021/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2023#define $2 innocuous_$2 1891#define $2 innocuous_$2
2024 1892
2025/* System header to define __stub macros and hopefully few prototypes, 1893/* System header to define __stub macros and hopefully few prototypes,
2026 which can conflict with char $2 (); below. 1894 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 1895
2030#ifdef __STDC__
2031# include <limits.h> 1896#include <limits.h>
2032#else
2033# include <assert.h>
2034#endif
2035
2036#undef $2 1897#undef $2
2037 1898
2038/* Override any GCC internal prototype to avoid an error. 1899/* Override any GCC internal prototype to avoid an error.
2039 Use char because int might match the return type of a GCC 1900 Use char because int might match the return type of a GCC
2040 builtin and then its argument prototype would still apply. */ 1901 builtin and then its argument prototype would still apply. */
2048#if defined __stub_$2 || defined __stub___$2 1909#if defined __stub_$2 || defined __stub___$2
2049choke me 1910choke me
2050#endif 1911#endif
2051 1912
2052int 1913int
2053main () 1914main (void)
2054{ 1915{
2055return $2 (); 1916return $2 ();
2056 ; 1917 ;
2057 return 0; 1918 return 0;
2058} 1919}
2059_ACEOF 1920_ACEOF
2060if ac_fn_c_try_link "$LINENO"; then : 1921if ac_fn_c_try_link "$LINENO"
1922then :
2061 eval "$3=yes" 1923 eval "$3=yes"
2062else 1924else $as_nop
2063 eval "$3=no" 1925 eval "$3=no"
2064fi 1926fi
2065rm -f core conftest.err conftest.$ac_objext \ 1927rm -f core conftest.err conftest.$ac_objext conftest.beam \
2066 conftest$ac_exeext conftest.$ac_ext 1928 conftest$ac_exeext conftest.$ac_ext
2067fi 1929fi
2068eval ac_res=\$$3 1930eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; } 1932printf "%s\n" "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 1934
2073} # ac_fn_c_check_func 1935} # ac_fn_c_check_func
2074 1936
2075# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1937# ac_fn_c_try_run LINENO
2076# ------------------------------------------------------- 1938# ----------------------
2077# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1939# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2078# the include files in INCLUDES and setting the cache variable VAR 1940# executables *can* be run.
2079# accordingly. 1941ac_fn_c_try_run ()
2080ac_fn_c_check_header_mongrel ()
2081{ 1942{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if eval \${$3+:} false; then : 1944 if { { ac_try="$ac_link"
1945case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950printf "%s\n" "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>&5
1952 ac_status=$?
1953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1955 { { case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960printf "%s\n" "$ac_try_echo"; } >&5
1961 (eval "$ac_try") 2>&5
1962 ac_status=$?
1963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; }; }
1965then :
1966 ac_retval=0
1967else $as_nop
1968 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1969 printf "%s\n" "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=$ac_status
1973fi
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1977
1978} # ac_fn_c_try_run
1979
1980# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists and can be compiled using the include files in
1983# INCLUDES, setting the cache variable VAR accordingly.
1984ac_fn_c_check_header_compile ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; } 1988printf %s "checking for $2... " >&6; }
2086if eval \${$3+:} false; then : 1989if eval test \${$3+y}
2087 $as_echo_n "(cached) " >&6 1990then :
2088fi 1991 printf %s "(cached) " >&6
2089eval ac_res=\$$3 1992else $as_nop
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092else
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; }
2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */ 1994/* end confdefs.h. */
2098$4 1995$4
2099#include <$2> 1996#include <$2>
2100_ACEOF 1997_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then : 1998if ac_fn_c_try_compile "$LINENO"
2102 ac_header_compiler=yes 1999then :
2103else 2000 eval "$3=yes"
2104 ac_header_compiler=no 2001else $as_nop
2002 eval "$3=no"
2105fi 2003fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2005fi
2108$as_echo "$ac_header_compiler" >&6; } 2006eval ac_res=\$$3
2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008printf "%s\n" "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 2010
2110# Is the header present? 2011} # ac_fn_c_check_header_compile
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2012
2112$as_echo_n "checking $2 presence... " >&6; } 2013# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014# -------------------------------------------
2015# Tests whether TYPE exists after having included INCLUDES, setting cache
2016# variable VAR accordingly.
2017ac_fn_c_check_type ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021printf %s "checking for $2... " >&6; }
2022if eval test \${$3+y}
2023then :
2024 printf %s "(cached) " >&6
2025else $as_nop
2026 eval "$3=no"
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */ 2028/* end confdefs.h. */
2115#include <$2> 2029$4
2030int
2031main (void)
2032{
2033if (sizeof ($2))
2034 return 0;
2035 ;
2036 return 0;
2037}
2116_ACEOF 2038_ACEOF
2117if ac_fn_c_try_cpp "$LINENO"; then : 2039if ac_fn_c_try_compile "$LINENO"
2118 ac_header_preproc=yes 2040then :
2119else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 ac_header_preproc=no 2042/* end confdefs.h. */
2043$4
2044int
2045main (void)
2046{
2047if (sizeof (($2)))
2048 return 0;
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053if ac_fn_c_try_compile "$LINENO"
2054then :
2055
2056else $as_nop
2057 eval "$3=yes"
2121fi 2058fi
2122rm -f conftest.err conftest.i conftest.$ac_ext 2059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2060fi
2124$as_echo "$ac_header_preproc" >&6; } 2061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2125
2126# So? What about this header?
2127case $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 ;;
2146esac
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148$as_echo_n "checking for $2... " >&6; }
2149if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151else
2152 eval "$3=\$ac_header_compiler"
2153fi 2062fi
2154eval ac_res=\$$3 2063eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; } 2065printf "%s\n" "$ac_res" >&6; }
2157fi
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 2067
2160} # ac_fn_c_check_header_mongrel 2068} # ac_fn_c_check_type
2161 2069
2162# ac_fn_cxx_try_link LINENO 2070# ac_fn_cxx_try_link LINENO
2163# ------------------------- 2071# -------------------------
2164# Try to link conftest.$ac_ext, and return whether this succeeded. 2072# Try to link conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_cxx_try_link () 2073ac_fn_cxx_try_link ()
2166{ 2074{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext 2076 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2169 if { { ac_try="$ac_link" 2077 if { { ac_try="$ac_link"
2170case "(($ac_try" in 2078case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;; 2080 *) ac_try_echo=$ac_try;;
2173esac 2081esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5 2083printf "%s\n" "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err 2084 (eval "$ac_link") 2>conftest.err
2177 ac_status=$? 2085 ac_status=$?
2178 if test -s conftest.err; then 2086 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1 2087 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5 2088 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err 2089 mv -f conftest.er1 conftest.err
2182 fi 2090 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && { 2092 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" || 2093 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err 2094 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && { 2095 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes || 2096 test "$cross_compiling" = yes ||
2189 test -x conftest$ac_exeext 2097 test -x conftest$ac_exeext
2190 }; then : 2098 }
2099then :
2191 ac_retval=0 2100 ac_retval=0
2192else 2101else $as_nop
2193 $as_echo "$as_me: failed program was:" >&5 2102 printf "%s\n" "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5 2103sed 's/^/| /' conftest.$ac_ext >&5
2195 2104
2196 ac_retval=1 2105 ac_retval=1
2197fi 2106fi
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2107 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2111 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval 2113 as_fn_set_status $ac_retval
2205 2114
2206} # ac_fn_cxx_try_link 2115} # ac_fn_cxx_try_link
2116ac_configure_args_raw=
2117for ac_arg
2118do
2119 case $ac_arg in
2120 *\'*)
2121 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 esac
2123 as_fn_append ac_configure_args_raw " '$ac_arg'"
2124done
2207 2125
2208# ac_fn_cxx_check_func LINENO FUNC VAR 2126case $ac_configure_args_raw in
2209# ------------------------------------ 2127 *$as_nl*)
2210# Tests whether FUNC exists, setting the cache variable VAR accordingly 2128 ac_safe_unquote= ;;
2211ac_fn_cxx_check_func () 2129 *)
2212{ 2130 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 ac_unsafe_a="$ac_unsafe_z#~"
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2215$as_echo_n "checking for $2... " >&6; } 2133 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2216if eval \${$3+:} false; then : 2134esac
2217 $as_echo_n "(cached) " >&6
2218else
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 2135
2225/* 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
2230#ifdef __STDC__
2231# include <limits.h>
2232#else
2233# include <assert.h>
2234#endif
2235
2236#undef $2
2237
2238/* 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
2242extern "C"
2243#endif
2244char $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
2249choke me
2250#endif
2251
2252int
2253main ()
2254{
2255return $2 ();
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260if ac_fn_cxx_try_link "$LINENO"; then :
2261 eval "$3=yes"
2262else
2263 eval "$3=no"
2264fi
2265rm -f core conftest.err conftest.$ac_objext \
2266 conftest$ac_exeext conftest.$ac_ext
2267fi
2268eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270$as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272
2273} # ac_fn_cxx_check_func
2274cat >config.log <<_ACEOF 2136cat >config.log <<_ACEOF
2275This file contains any messages produced by compilers while 2137This file contains any messages produced by compilers while
2276running configure, to aid debugging if configure makes a mistake. 2138running configure, to aid debugging if configure makes a mistake.
2277 2139
2278It was created by $as_me, which was 2140It was created by gvpe $as_me 3.1, which was
2279generated by GNU Autoconf 2.69. Invocation command line was 2141generated by GNU Autoconf 2.71. Invocation command line was
2280 2142
2281 $ $0 $@ 2143 $ $0$ac_configure_args_raw
2282 2144
2283_ACEOF 2145_ACEOF
2284exec 5>>config.log 2146exec 5>>config.log
2285{ 2147{
2286cat <<_ASUNAME 2148cat <<_ASUNAME
2309 2171
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH 2173for as_dir in $PATH
2312do 2174do
2313 IFS=$as_save_IFS 2175 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=. 2176 case $as_dir in #(((
2315 $as_echo "PATH: $as_dir" 2177 '') as_dir=./ ;;
2178 */) ;;
2179 *) as_dir=$as_dir/ ;;
2180 esac
2181 printf "%s\n" "PATH: $as_dir"
2316 done 2182 done
2317IFS=$as_save_IFS 2183IFS=$as_save_IFS
2318 2184
2319} >&5 2185} >&5
2320 2186
2345 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2347 | -silent | --silent | --silen | --sile | --sil) 2213 | -silent | --silent | --silen | --sile | --sil)
2348 continue ;; 2214 continue ;;
2349 *\'*) 2215 *\'*)
2350 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2216 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 esac 2217 esac
2352 case $ac_pass in 2218 case $ac_pass in
2353 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2354 2) 2220 2)
2355 as_fn_append ac_configure_args1 " '$ac_arg'" 2221 as_fn_append ac_configure_args1 " '$ac_arg'"
2380# config.log. We remove comments because anyway the quotes in there 2246# config.log. We remove comments because anyway the quotes in there
2381# would cause problems or look ugly. 2247# would cause problems or look ugly.
2382# WARNING: Use '\'' to represent an apostrophe within the trap. 2248# 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. 2249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2384trap 'exit_status=$? 2250trap 'exit_status=$?
2251 # Sanitize IFS.
2252 IFS=" "" $as_nl"
2385 # Save into config.log some information that might help in debugging. 2253 # Save into config.log some information that might help in debugging.
2386 { 2254 {
2387 echo 2255 echo
2388 2256
2389 $as_echo "## ---------------- ## 2257 printf "%s\n" "## ---------------- ##
2390## Cache variables. ## 2258## Cache variables. ##
2391## ---------------- ##" 2259## ---------------- ##"
2392 echo 2260 echo
2393 # The following way of writing the cache mishandles newlines in values, 2261 # The following way of writing the cache mishandles newlines in values,
2394( 2262(
2395 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2263 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 2264 eval ac_val=\$$ac_var
2397 case $ac_val in #( 2265 case $ac_val in #(
2398 *${as_nl}*) 2266 *${as_nl}*)
2399 case $ac_var in #( 2267 case $ac_var in #(
2400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2268 *_cv_*) { printf "%s\n" "$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;} ;; 2269printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2402 esac 2270 esac
2403 case $ac_var in #( 2271 case $ac_var in #(
2404 _ | IFS | as_nl) ;; #( 2272 _ | IFS | as_nl) ;; #(
2405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2406 *) { eval $ac_var=; unset $ac_var;} ;; 2274 *) { eval $ac_var=; unset $ac_var;} ;;
2420 esac | 2288 esac |
2421 sort 2289 sort
2422) 2290)
2423 echo 2291 echo
2424 2292
2425 $as_echo "## ----------------- ## 2293 printf "%s\n" "## ----------------- ##
2426## Output variables. ## 2294## Output variables. ##
2427## ----------------- ##" 2295## ----------------- ##"
2428 echo 2296 echo
2429 for ac_var in $ac_subst_vars 2297 for ac_var in $ac_subst_vars
2430 do 2298 do
2431 eval ac_val=\$$ac_var 2299 eval ac_val=\$$ac_var
2432 case $ac_val in 2300 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2301 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac 2302 esac
2435 $as_echo "$ac_var='\''$ac_val'\''" 2303 printf "%s\n" "$ac_var='\''$ac_val'\''"
2436 done | sort 2304 done | sort
2437 echo 2305 echo
2438 2306
2439 if test -n "$ac_subst_files"; then 2307 if test -n "$ac_subst_files"; then
2440 $as_echo "## ------------------- ## 2308 printf "%s\n" "## ------------------- ##
2441## File substitutions. ## 2309## File substitutions. ##
2442## ------------------- ##" 2310## ------------------- ##"
2443 echo 2311 echo
2444 for ac_var in $ac_subst_files 2312 for ac_var in $ac_subst_files
2445 do 2313 do
2446 eval ac_val=\$$ac_var 2314 eval ac_val=\$$ac_var
2447 case $ac_val in 2315 case $ac_val in
2448 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2316 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 esac 2317 esac
2450 $as_echo "$ac_var='\''$ac_val'\''" 2318 printf "%s\n" "$ac_var='\''$ac_val'\''"
2451 done | sort 2319 done | sort
2452 echo 2320 echo
2453 fi 2321 fi
2454 2322
2455 if test -s confdefs.h; then 2323 if test -s confdefs.h; then
2456 $as_echo "## ----------- ## 2324 printf "%s\n" "## ----------- ##
2457## confdefs.h. ## 2325## confdefs.h. ##
2458## ----------- ##" 2326## ----------- ##"
2459 echo 2327 echo
2460 cat confdefs.h 2328 cat confdefs.h
2461 echo 2329 echo
2462 fi 2330 fi
2463 test "$ac_signal" != 0 && 2331 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal" 2332 printf "%s\n" "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status" 2333 printf "%s\n" "$as_me: exit $exit_status"
2466 } >&5 2334 } >&5
2467 rm -f core *.core core.conftest.* && 2335 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status 2337 exit $exit_status
2470' 0 2338' 0
2474ac_signal=0 2342ac_signal=0
2475 2343
2476# confdefs.h avoids OS command line length limits that DEFS can exceed. 2344# confdefs.h avoids OS command line length limits that DEFS can exceed.
2477rm -f -r conftest* confdefs.h 2345rm -f -r conftest* confdefs.h
2478 2346
2479$as_echo "/* confdefs.h */" > confdefs.h 2347printf "%s\n" "/* confdefs.h */" > confdefs.h
2480 2348
2481# Predefined preprocessor variables. 2349# Predefined preprocessor variables.
2482 2350
2483cat >>confdefs.h <<_ACEOF 2351printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2484#define PACKAGE_NAME "$PACKAGE_NAME"
2485_ACEOF
2486 2352
2487cat >>confdefs.h <<_ACEOF 2353printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2488#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489_ACEOF
2490 2354
2491cat >>confdefs.h <<_ACEOF 2355printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2492#define PACKAGE_VERSION "$PACKAGE_VERSION"
2493_ACEOF
2494 2356
2495cat >>confdefs.h <<_ACEOF 2357printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2496#define PACKAGE_STRING "$PACKAGE_STRING"
2497_ACEOF
2498 2358
2499cat >>confdefs.h <<_ACEOF 2359printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2500#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501_ACEOF
2502 2360
2503cat >>confdefs.h <<_ACEOF 2361printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2504#define PACKAGE_URL "$PACKAGE_URL"
2505_ACEOF
2506 2362
2507 2363
2508# Let the site file select an alternate cache file if it wants to. 2364# Let the site file select an alternate cache file if it wants to.
2509# Prefer an explicitly selected file to automatically selected ones. 2365# Prefer an explicitly selected file to automatically selected ones.
2510ac_site_file1=NONE
2511ac_site_file2=NONE
2512if test -n "$CONFIG_SITE"; then 2366if 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;; 2367 ac_site_files="$CONFIG_SITE"
2517 *) ac_site_file1=./$CONFIG_SITE;;
2518 esac
2519elif test "x$prefix" != xNONE; then 2368elif test "x$prefix" != xNONE; then
2520 ac_site_file1=$prefix/share/config.site 2369 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2521 ac_site_file2=$prefix/etc/config.site
2522else 2370else
2523 ac_site_file1=$ac_default_prefix/share/config.site 2371 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2524 ac_site_file2=$ac_default_prefix/etc/config.site
2525fi 2372fi
2373
2526for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2374for ac_site_file in $ac_site_files
2527do 2375do
2528 test "x$ac_site_file" = xNONE && continue 2376 case $ac_site_file in #(
2377 */*) :
2378 ;; #(
2379 *) :
2380 ac_site_file=./$ac_site_file ;;
2381esac
2529 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2382 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2531$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2384printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2532 sed 's/^/| /' "$ac_site_file" >&5 2385 sed 's/^/| /' "$ac_site_file" >&5
2533 . "$ac_site_file" \ 2386 . "$ac_site_file" \
2534 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2536as_fn_error $? "failed to load site script $ac_site_file 2389as_fn_error $? "failed to load site script $ac_site_file
2537See \`config.log' for more details" "$LINENO" 5; } 2390See \`config.log' for more details" "$LINENO" 5; }
2538 fi 2391 fi
2539done 2392done
2540 2393
2541if test -r "$cache_file"; then 2394if test -r "$cache_file"; then
2542 # Some versions of bash will fail to source /dev/null (special files 2395 # 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. 2396 # 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 2397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2546$as_echo "$as_me: loading cache $cache_file" >&6;} 2399printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2547 case $cache_file in 2400 case $cache_file in
2548 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2401 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2549 *) . "./$cache_file";; 2402 *) . "./$cache_file";;
2550 esac 2403 esac
2551 fi 2404 fi
2552else 2405else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2554$as_echo "$as_me: creating cache $cache_file" >&6;} 2407printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2555 >$cache_file 2408 >$cache_file
2409fi
2410
2411# Test code for whether the C compiler supports C89 (global declarations)
2412ac_c_conftest_c89_globals='
2413/* Does the compiler advertise C89 conformance?
2414 Do not test the value of __STDC__, because some compilers set it to 0
2415 while being otherwise adequately conformant. */
2416#if !defined __STDC__
2417# error "Compiler does not advertise C89 conformance"
2418#endif
2419
2420#include <stddef.h>
2421#include <stdarg.h>
2422struct stat;
2423/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2424struct buf { int x; };
2425struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2426static char *e (p, i)
2427 char **p;
2428 int i;
2429{
2430 return p[i];
2431}
2432static char *f (char * (*g) (char **, int), char **p, ...)
2433{
2434 char *s;
2435 va_list v;
2436 va_start (v,p);
2437 s = g (p, va_arg (v,int));
2438 va_end (v);
2439 return s;
2440}
2441
2442/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2443 function prototypes and stuff, but not \xHH hex character constants.
2444 These do not provoke an error unfortunately, instead are silently treated
2445 as an "x". The following induces an error, until -std is added to get
2446 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2447 array size at least. It is necessary to write \x00 == 0 to get something
2448 that is true only with -std. */
2449int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2450
2451/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2452 inside strings and character constants. */
2453#define FOO(x) '\''x'\''
2454int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2455
2456int test (int i, double x);
2457struct s1 {int (*f) (int a);};
2458struct s2 {int (*f) (double a);};
2459int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2460 int, int);'
2461
2462# Test code for whether the C compiler supports C89 (body of main).
2463ac_c_conftest_c89_main='
2464ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2465'
2466
2467# Test code for whether the C compiler supports C99 (global declarations)
2468ac_c_conftest_c99_globals='
2469// Does the compiler advertise C99 conformance?
2470#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2471# error "Compiler does not advertise C99 conformance"
2472#endif
2473
2474#include <stdbool.h>
2475extern int puts (const char *);
2476extern int printf (const char *, ...);
2477extern int dprintf (int, const char *, ...);
2478extern void *malloc (size_t);
2479
2480// Check varargs macros. These examples are taken from C99 6.10.3.5.
2481// dprintf is used instead of fprintf to avoid needing to declare
2482// FILE and stderr.
2483#define debug(...) dprintf (2, __VA_ARGS__)
2484#define showlist(...) puts (#__VA_ARGS__)
2485#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2486static void
2487test_varargs_macros (void)
2488{
2489 int x = 1234;
2490 int y = 5678;
2491 debug ("Flag");
2492 debug ("X = %d\n", x);
2493 showlist (The first, second, and third items.);
2494 report (x>y, "x is %d but y is %d", x, y);
2495}
2496
2497// Check long long types.
2498#define BIG64 18446744073709551615ull
2499#define BIG32 4294967295ul
2500#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2501#if !BIG_OK
2502 #error "your preprocessor is broken"
2503#endif
2504#if BIG_OK
2505#else
2506 #error "your preprocessor is broken"
2507#endif
2508static long long int bignum = -9223372036854775807LL;
2509static unsigned long long int ubignum = BIG64;
2510
2511struct incomplete_array
2512{
2513 int datasize;
2514 double data[];
2515};
2516
2517struct named_init {
2518 int number;
2519 const wchar_t *name;
2520 double average;
2521};
2522
2523typedef const char *ccp;
2524
2525static inline int
2526test_restrict (ccp restrict text)
2527{
2528 // See if C++-style comments work.
2529 // Iterate through items via the restricted pointer.
2530 // Also check for declarations in for loops.
2531 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2532 continue;
2533 return 0;
2534}
2535
2536// Check varargs and va_copy.
2537static bool
2538test_varargs (const char *format, ...)
2539{
2540 va_list args;
2541 va_start (args, format);
2542 va_list args_copy;
2543 va_copy (args_copy, args);
2544
2545 const char *str = "";
2546 int number = 0;
2547 float fnumber = 0;
2548
2549 while (*format)
2550 {
2551 switch (*format++)
2552 {
2553 case '\''s'\'': // string
2554 str = va_arg (args_copy, const char *);
2555 break;
2556 case '\''d'\'': // int
2557 number = va_arg (args_copy, int);
2558 break;
2559 case '\''f'\'': // float
2560 fnumber = va_arg (args_copy, double);
2561 break;
2562 default:
2563 break;
2564 }
2565 }
2566 va_end (args_copy);
2567 va_end (args);
2568
2569 return *str && number && fnumber;
2570}
2571'
2572
2573# Test code for whether the C compiler supports C99 (body of main).
2574ac_c_conftest_c99_main='
2575 // Check bool.
2576 _Bool success = false;
2577 success |= (argc != 0);
2578
2579 // Check restrict.
2580 if (test_restrict ("String literal") == 0)
2581 success = true;
2582 char *restrict newvar = "Another string";
2583
2584 // Check varargs.
2585 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2586 test_varargs_macros ();
2587
2588 // Check flexible array members.
2589 struct incomplete_array *ia =
2590 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2591 ia->datasize = 10;
2592 for (int i = 0; i < ia->datasize; ++i)
2593 ia->data[i] = i * 1.234;
2594
2595 // Check named initializers.
2596 struct named_init ni = {
2597 .number = 34,
2598 .name = L"Test wide string",
2599 .average = 543.34343,
2600 };
2601
2602 ni.number = 58;
2603
2604 int dynamic_array[ni.number];
2605 dynamic_array[0] = argv[0][0];
2606 dynamic_array[ni.number - 1] = 543;
2607
2608 // work around unused variable warnings
2609 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2610 || dynamic_array[ni.number - 1] != 543);
2611'
2612
2613# Test code for whether the C compiler supports C11 (global declarations)
2614ac_c_conftest_c11_globals='
2615// Does the compiler advertise C11 conformance?
2616#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2617# error "Compiler does not advertise C11 conformance"
2618#endif
2619
2620// Check _Alignas.
2621char _Alignas (double) aligned_as_double;
2622char _Alignas (0) no_special_alignment;
2623extern char aligned_as_int;
2624char _Alignas (0) _Alignas (int) aligned_as_int;
2625
2626// Check _Alignof.
2627enum
2628{
2629 int_alignment = _Alignof (int),
2630 int_array_alignment = _Alignof (int[100]),
2631 char_alignment = _Alignof (char)
2632};
2633_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2634
2635// Check _Noreturn.
2636int _Noreturn does_not_return (void) { for (;;) continue; }
2637
2638// Check _Static_assert.
2639struct test_static_assert
2640{
2641 int x;
2642 _Static_assert (sizeof (int) <= sizeof (long int),
2643 "_Static_assert does not work in struct");
2644 long int y;
2645};
2646
2647// Check UTF-8 literals.
2648#define u8 syntax error!
2649char const utf8_literal[] = u8"happens to be ASCII" "another string";
2650
2651// Check duplicate typedefs.
2652typedef long *long_ptr;
2653typedef long int *long_ptr;
2654typedef long_ptr long_ptr;
2655
2656// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2657struct anonymous
2658{
2659 union {
2660 struct { int i; int j; };
2661 struct { int k; long int l; } w;
2662 };
2663 int m;
2664} v1;
2665'
2666
2667# Test code for whether the C compiler supports C11 (body of main).
2668ac_c_conftest_c11_main='
2669 _Static_assert ((offsetof (struct anonymous, i)
2670 == offsetof (struct anonymous, w.k)),
2671 "Anonymous union alignment botch");
2672 v1.i = 2;
2673 v1.w.k = 5;
2674 ok |= v1.i != 5;
2675'
2676
2677# Test code for whether the C compiler supports C11 (complete).
2678ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2679${ac_c_conftest_c99_globals}
2680${ac_c_conftest_c11_globals}
2681
2682int
2683main (int argc, char **argv)
2684{
2685 int ok = 0;
2686 ${ac_c_conftest_c89_main}
2687 ${ac_c_conftest_c99_main}
2688 ${ac_c_conftest_c11_main}
2689 return ok;
2690}
2691"
2692
2693# Test code for whether the C compiler supports C99 (complete).
2694ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2695${ac_c_conftest_c99_globals}
2696
2697int
2698main (int argc, char **argv)
2699{
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 ${ac_c_conftest_c99_main}
2703 return ok;
2704}
2705"
2706
2707# Test code for whether the C compiler supports C89 (complete).
2708ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2709
2710int
2711main (int argc, char **argv)
2712{
2713 int ok = 0;
2714 ${ac_c_conftest_c89_main}
2715 return ok;
2716}
2717"
2718
2719# Test code for whether the C++ compiler supports C++98 (global declarations)
2720ac_cxx_conftest_cxx98_globals='
2721// Does the compiler advertise C++98 conformance?
2722#if !defined __cplusplus || __cplusplus < 199711L
2723# error "Compiler does not advertise C++98 conformance"
2724#endif
2725
2726// These inclusions are to reject old compilers that
2727// lack the unsuffixed header files.
2728#include <cstdlib>
2729#include <exception>
2730
2731// <cassert> and <cstring> are *not* freestanding headers in C++98.
2732extern void assert (int);
2733namespace std {
2734 extern int strcmp (const char *, const char *);
2735}
2736
2737// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2738using std::exception;
2739using std::strcmp;
2740
2741namespace {
2742
2743void test_exception_syntax()
2744{
2745 try {
2746 throw "test";
2747 } catch (const char *s) {
2748 // Extra parentheses suppress a warning when building autoconf itself,
2749 // due to lint rules shared with more typical C programs.
2750 assert (!(strcmp) (s, "test"));
2751 }
2752}
2753
2754template <typename T> struct test_template
2755{
2756 T const val;
2757 explicit test_template(T t) : val(t) {}
2758 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2759};
2760
2761} // anonymous namespace
2762'
2763
2764# Test code for whether the C++ compiler supports C++98 (body of main)
2765ac_cxx_conftest_cxx98_main='
2766 assert (argc);
2767 assert (! argv[0]);
2768{
2769 test_exception_syntax ();
2770 test_template<double> tt (2.0);
2771 assert (tt.add (4) == 6.0);
2772 assert (true && !false);
2773}
2774'
2775
2776# Test code for whether the C++ compiler supports C++11 (global declarations)
2777ac_cxx_conftest_cxx11_globals='
2778// Does the compiler advertise C++ 2011 conformance?
2779#if !defined __cplusplus || __cplusplus < 201103L
2780# error "Compiler does not advertise C++11 conformance"
2781#endif
2782
2783namespace cxx11test
2784{
2785 constexpr int get_val() { return 20; }
2786
2787 struct testinit
2788 {
2789 int i;
2790 double d;
2791 };
2792
2793 class delegate
2794 {
2795 public:
2796 delegate(int n) : n(n) {}
2797 delegate(): delegate(2354) {}
2798
2799 virtual int getval() { return this->n; };
2800 protected:
2801 int n;
2802 };
2803
2804 class overridden : public delegate
2805 {
2806 public:
2807 overridden(int n): delegate(n) {}
2808 virtual int getval() override final { return this->n * 2; }
2809 };
2810
2811 class nocopy
2812 {
2813 public:
2814 nocopy(int i): i(i) {}
2815 nocopy() = default;
2816 nocopy(const nocopy&) = delete;
2817 nocopy & operator=(const nocopy&) = delete;
2818 private:
2819 int i;
2820 };
2821
2822 // for testing lambda expressions
2823 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2824 {
2825 return f(v);
2826 }
2827
2828 // for testing variadic templates and trailing return types
2829 template <typename V> auto sum(V first) -> V
2830 {
2831 return first;
2832 }
2833 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2834 {
2835 return first + sum(rest...);
2836 }
2837}
2838'
2839
2840# Test code for whether the C++ compiler supports C++11 (body of main)
2841ac_cxx_conftest_cxx11_main='
2842{
2843 // Test auto and decltype
2844 auto a1 = 6538;
2845 auto a2 = 48573953.4;
2846 auto a3 = "String literal";
2847
2848 int total = 0;
2849 for (auto i = a3; *i; ++i) { total += *i; }
2850
2851 decltype(a2) a4 = 34895.034;
2852}
2853{
2854 // Test constexpr
2855 short sa[cxx11test::get_val()] = { 0 };
2856}
2857{
2858 // Test initializer lists
2859 cxx11test::testinit il = { 4323, 435234.23544 };
2860}
2861{
2862 // Test range-based for
2863 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2864 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2865 for (auto &x : array) { x += 23; }
2866}
2867{
2868 // Test lambda expressions
2869 using cxx11test::eval;
2870 assert (eval ([](int x) { return x*2; }, 21) == 42);
2871 double d = 2.0;
2872 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2873 assert (d == 5.0);
2874 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2875 assert (d == 5.0);
2876}
2877{
2878 // Test use of variadic templates
2879 using cxx11test::sum;
2880 auto a = sum(1);
2881 auto b = sum(1, 2);
2882 auto c = sum(1.0, 2.0, 3.0);
2883}
2884{
2885 // Test constructor delegation
2886 cxx11test::delegate d1;
2887 cxx11test::delegate d2();
2888 cxx11test::delegate d3(45);
2889}
2890{
2891 // Test override and final
2892 cxx11test::overridden o1(55464);
2893}
2894{
2895 // Test nullptr
2896 char *c = nullptr;
2897}
2898{
2899 // Test template brackets
2900 test_template<::test_template<int>> v(test_template<int>(12));
2901}
2902{
2903 // Unicode literals
2904 char const *utf8 = u8"UTF-8 string \u2500";
2905 char16_t const *utf16 = u"UTF-8 string \u2500";
2906 char32_t const *utf32 = U"UTF-32 string \u2500";
2907}
2908'
2909
2910# Test code for whether the C compiler supports C++11 (complete).
2911ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2912${ac_cxx_conftest_cxx11_globals}
2913
2914int
2915main (int argc, char **argv)
2916{
2917 int ok = 0;
2918 ${ac_cxx_conftest_cxx98_main}
2919 ${ac_cxx_conftest_cxx11_main}
2920 return ok;
2921}
2922"
2923
2924# Test code for whether the C compiler supports C++98 (complete).
2925ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2926int
2927main (int argc, char **argv)
2928{
2929 int ok = 0;
2930 ${ac_cxx_conftest_cxx98_main}
2931 return ok;
2932}
2933"
2934
2935as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
2936as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2937as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
2938as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2939as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
2940as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
2941as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2942as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2943as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
2944as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2945
2946# Auxiliary files required by this configure script.
2947ac_aux_files="compile missing install-sh config.guess config.sub"
2948
2949# Locations in which to look for auxiliary files.
2950ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2951
2952# Search for a directory containing all of the required auxiliary files,
2953# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2954# If we don't find one directory that contains all the files we need,
2955# we report the set of missing files from the *first* directory in
2956# $ac_aux_dir_candidates and give up.
2957ac_missing_aux_files=""
2958ac_first_candidate=:
2959printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961as_found=false
2962for as_dir in $ac_aux_dir_candidates
2963do
2964 IFS=$as_save_IFS
2965 case $as_dir in #(((
2966 '') as_dir=./ ;;
2967 */) ;;
2968 *) as_dir=$as_dir/ ;;
2969 esac
2970 as_found=:
2971
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2973 ac_aux_dir_found=yes
2974 ac_install_sh=
2975 for ac_aux in $ac_aux_files
2976 do
2977 # As a special case, if "install-sh" is required, that requirement
2978 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2979 # and $ac_install_sh is set appropriately for whichever one is found.
2980 if test x"$ac_aux" = x"install-sh"
2981 then
2982 if test -f "${as_dir}install-sh"; then
2983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2984 ac_install_sh="${as_dir}install-sh -c"
2985 elif test -f "${as_dir}install.sh"; then
2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2987 ac_install_sh="${as_dir}install.sh -c"
2988 elif test -f "${as_dir}shtool"; then
2989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2990 ac_install_sh="${as_dir}shtool install -c"
2991 else
2992 ac_aux_dir_found=no
2993 if $ac_first_candidate; then
2994 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2995 else
2996 break
2997 fi
2998 fi
2999 else
3000 if test -f "${as_dir}${ac_aux}"; then
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3002 else
3003 ac_aux_dir_found=no
3004 if $ac_first_candidate; then
3005 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3006 else
3007 break
3008 fi
3009 fi
3010 fi
3011 done
3012 if test "$ac_aux_dir_found" = yes; then
3013 ac_aux_dir="$as_dir"
3014 break
3015 fi
3016 ac_first_candidate=false
3017
3018 as_found=false
3019done
3020IFS=$as_save_IFS
3021if $as_found
3022then :
3023
3024else $as_nop
3025 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3026fi
3027
3028
3029# These three variables are undocumented and unsupported,
3030# and are intended to be withdrawn in a future Autoconf release.
3031# They can cause serious problems if a builder's source tree is in a directory
3032# whose full name contains unusual characters.
3033if test -f "${ac_aux_dir}config.guess"; then
3034 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3035fi
3036if test -f "${ac_aux_dir}config.sub"; then
3037 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3038fi
3039if test -f "$ac_aux_dir/configure"; then
3040 ac_configure="$SHELL ${ac_aux_dir}configure"
2556fi 3041fi
2557 3042
2558# Check that the precious variables saved in the cache have kept the same 3043# Check that the precious variables saved in the cache have kept the same
2559# value. 3044# value.
2560ac_cache_corrupted=false 3045ac_cache_corrupted=false
2563 eval ac_new_set=\$ac_env_${ac_var}_set 3048 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value 3050 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in 3051 case $ac_old_set,$ac_new_set in
2567 set,) 3052 set,)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3053 { printf "%s\n" "$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;} 3054printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;; 3055 ac_cache_corrupted=: ;;
2571 ,set) 3056 ,set)
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3057 { printf "%s\n" "$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;} 3058printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;; 3059 ac_cache_corrupted=: ;;
2575 ,);; 3060 ,);;
2576 *) 3061 *)
2577 if test "x$ac_old_val" != "x$ac_new_val"; then 3062 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure. 3063 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val` 3064 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val` 3065 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3066 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 3067 { printf "%s\n" "$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;} 3068printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=: 3069 ac_cache_corrupted=:
2585 else 3070 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3071 { printf "%s\n" "$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;} 3072printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val 3073 eval $ac_var=\$ac_old_val
2589 fi 3074 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3076printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3078printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2594 fi;; 3079 fi;;
2595 esac 3080 esac
2596 # Pass precious variables to config.status. 3081 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then 3082 if test "$ac_new_set" = set; then
2598 case $ac_new_val in 3083 case $ac_new_val in
2599 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3084 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;; 3085 *) ac_arg=$ac_var=$ac_new_val ;;
2601 esac 3086 esac
2602 case " $ac_configure_args " in 3087 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605 esac 3090 esac
2606 fi 3091 fi
2607done 3092done
2608if $ac_cache_corrupted; then 3093if $ac_cache_corrupted; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3095printf "%s\n" "$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 3096 { printf "%s\n" "$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;} 3097printf "%s\n" "$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 3098 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3099 and start over" "$LINENO" 5
2614fi 3100fi
2615## -------------------- ## 3101## -------------------- ##
2616## Main body of script. ## 3102## Main body of script. ##
2617## -------------------- ## 3103## -------------------- ##
2618 3104
2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 3110
2625 3111
2626 3112
2627ac_aux_dir=
2628for 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
2642done
2643if test -z "$ac_aux_dir"; then
2644 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2645fi
2646 3113
2647# 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.
2651ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2652ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2653ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2654 3114
2655 3115
2656# Make sure we can run config.sub. 3116 # Make sure we can run config.sub.
2657$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3117$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 3118 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2659 3119
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2661$as_echo_n "checking build system type... " >&6; } 3121printf %s "checking build system type... " >&6; }
2662if ${ac_cv_build+:} false; then : 3122if test ${ac_cv_build+y}
2663 $as_echo_n "(cached) " >&6 3123then :
2664else 3124 printf %s "(cached) " >&6
3125else $as_nop
2665 ac_build_alias=$build_alias 3126 ac_build_alias=$build_alias
2666test "x$ac_build_alias" = x && 3127test "x$ac_build_alias" = x &&
2667 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3128 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2668test "x$ac_build_alias" = x && 3129test "x$ac_build_alias" = x &&
2669 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3130 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2670ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3131ac_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 3132 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2672 3133
2673fi 3134fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2675$as_echo "$ac_cv_build" >&6; } 3136printf "%s\n" "$ac_cv_build" >&6; }
2676case $ac_cv_build in 3137case $ac_cv_build in
2677*-*-*) ;; 3138*-*-*) ;;
2678*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3139*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2679esac 3140esac
2680build=$ac_cv_build 3141build=$ac_cv_build
2689build_os=$* 3150build_os=$*
2690IFS=$ac_save_IFS 3151IFS=$ac_save_IFS
2691case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3152case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2692 3153
2693 3154
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2695$as_echo_n "checking host system type... " >&6; } 3156printf %s "checking host system type... " >&6; }
2696if ${ac_cv_host+:} false; then : 3157if test ${ac_cv_host+y}
2697 $as_echo_n "(cached) " >&6 3158then :
2698else 3159 printf %s "(cached) " >&6
3160else $as_nop
2699 if test "x$host_alias" = x; then 3161 if test "x$host_alias" = x; then
2700 ac_cv_host=$ac_cv_build 3162 ac_cv_host=$ac_cv_build
2701else 3163else
2702 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3164 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 3165 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2704fi 3166fi
2705 3167
2706fi 3168fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2708$as_echo "$ac_cv_host" >&6; } 3170printf "%s\n" "$ac_cv_host" >&6; }
2709case $ac_cv_host in 3171case $ac_cv_host in
2710*-*-*) ;; 3172*-*-*) ;;
2711*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3173*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2712esac 3174esac
2713host=$ac_cv_host 3175host=$ac_cv_host
2722host_os=$* 3184host_os=$*
2723IFS=$ac_save_IFS 3185IFS=$ac_save_IFS
2724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3186case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2725 3187
2726 3188
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2728$as_echo_n "checking target system type... " >&6; } 3190printf %s "checking target system type... " >&6; }
2729if ${ac_cv_target+:} false; then : 3191if test ${ac_cv_target+y}
2730 $as_echo_n "(cached) " >&6 3192then :
2731else 3193 printf %s "(cached) " >&6
3194else $as_nop
2732 if test "x$target_alias" = x; then 3195 if test "x$target_alias" = x; then
2733 ac_cv_target=$ac_cv_host 3196 ac_cv_target=$ac_cv_host
2734else 3197else
2735 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3198 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 3199 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2737fi 3200fi
2738 3201
2739fi 3202fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2741$as_echo "$ac_cv_target" >&6; } 3204printf "%s\n" "$ac_cv_target" >&6; }
2742case $ac_cv_target in 3205case $ac_cv_target in
2743*-*-*) ;; 3206*-*-*) ;;
2744*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3207*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2745esac 3208esac
2746target=$ac_cv_target 3209target=$ac_cv_target
2761# will get canonicalized. 3224# will get canonicalized.
2762test -n "$target_alias" && 3225test -n "$target_alias" &&
2763 test "$program_prefix$program_suffix$program_transform_name" = \ 3226 test "$program_prefix$program_suffix$program_transform_name" = \
2764 NONENONEs,x,x, && 3227 NONENONEs,x,x, &&
2765 program_prefix=${target_alias}- 3228 program_prefix=${target_alias}-
2766am__api_version='1.11' 3229am__api_version='1.16'
2767 3230
3231
2768# Find a good install program. We prefer a C program (faster), 3232 # 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 3233# so one script is as good as another. But avoid the broken or
2770# incompatible versions: 3234# incompatible versions:
2771# SysV /etc/install, /usr/sbin/install 3235# SysV /etc/install, /usr/sbin/install
2772# SunOS /usr/etc/install 3236# SunOS /usr/etc/install
2773# IRIX /sbin/install 3237# IRIX /sbin/install
2777# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779# OS/2's system install, which has a completely different semantic 3243# OS/2's system install, which has a completely different semantic
2780# ./install, which can be erroneously created by make from ./install.sh. 3244# ./install, which can be erroneously created by make from ./install.sh.
2781# Reject install programs that cannot install multiple files. 3245# Reject install programs that cannot install multiple files.
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783$as_echo_n "checking for a BSD-compatible install... " >&6; } 3247printf %s "checking for a BSD-compatible install... " >&6; }
2784if test -z "$INSTALL"; then 3248if test -z "$INSTALL"; then
2785if ${ac_cv_path_install+:} false; then : 3249if test ${ac_cv_path_install+y}
2786 $as_echo_n "(cached) " >&6 3250then :
2787else 3251 printf %s "(cached) " >&6
3252else $as_nop
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH 3254for as_dir in $PATH
2790do 3255do
2791 IFS=$as_save_IFS 3256 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=. 3257 case $as_dir in #(((
3258 '') as_dir=./ ;;
3259 */) ;;
3260 *) as_dir=$as_dir/ ;;
3261 esac
2793 # Account for people who put trailing slashes in PATH elements. 3262 # Account for fact that we put trailing slashes in our PATH walk.
2794case $as_dir/ in #(( 3263case $as_dir in #((
2795 ./ | .// | /[cC]/* | \ 3264 ./ | /[cC]/* | \
2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3266 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798 /usr/ucb/* ) ;; 3267 /usr/ucb/* ) ;;
2799 *) 3268 *)
2800 # OSF1 and SCO ODT 3.0 have their own names for install. 3269 # 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 3270 # Don't use installbsd from OSF since it installs stuff as root
2802 # by default. 3271 # by default.
2803 for ac_prog in ginstall scoinst install; do 3272 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do 3273 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3274 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2806 if test $ac_prog = install && 3275 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3276 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention. 3277 # AIX install. It has an incompatible calling convention.
2809 : 3278 :
2810 elif test $ac_prog = install && 3279 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3280 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. 3281 # program-specific install script used by HP pwplus--don't use.
2813 : 3282 :
2814 else 3283 else
2815 rm -rf conftest.one conftest.two conftest.dir 3284 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one 3285 echo one > conftest.one
2817 echo two > conftest.two 3286 echo two > conftest.two
2818 mkdir conftest.dir 3287 mkdir conftest.dir
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3288 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 && 3289 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one && 3290 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two 3291 test -s conftest.dir/conftest.two
2823 then 3292 then
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3293 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2825 break 3 3294 break 3
2826 fi 3295 fi
2827 fi 3296 fi
2828 fi 3297 fi
2829 done 3298 done
2835IFS=$as_save_IFS 3304IFS=$as_save_IFS
2836 3305
2837rm -rf conftest.one conftest.two conftest.dir 3306rm -rf conftest.one conftest.two conftest.dir
2838 3307
2839fi 3308fi
2840 if test "${ac_cv_path_install+set}" = set; then 3309 if test ${ac_cv_path_install+y}; then
2841 INSTALL=$ac_cv_path_install 3310 INSTALL=$ac_cv_path_install
2842 else 3311 else
2843 # As a last resort, use the slow shell script. Don't cache a 3312 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will 3313 # value for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is 3314 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name. 3315 # removed, or if the value is a relative name.
2847 INSTALL=$ac_install_sh 3316 INSTALL=$ac_install_sh
2848 fi 3317 fi
2849fi 3318fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851$as_echo "$INSTALL" >&6; } 3320printf "%s\n" "$INSTALL" >&6; }
2852 3321
2853# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3322# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854# It thinks the first close brace ends the variable substitution. 3323# It thinks the first close brace ends the variable substitution.
2855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856 3325
2857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858 3327
2859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860 3329
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862$as_echo_n "checking whether build environment is sane... " >&6; } 3331printf %s "checking whether build environment is sane... " >&6; }
2863# Just in case
2864sleep 1
2865echo timestamp > conftest.file
2866# Reject unsafe characters in $srcdir or the absolute working directory 3332# Reject unsafe characters in $srcdir or the absolute working directory
2867# name. Accept space and tab only in the latter. 3333# name. Accept space and tab only in the latter.
2868am_lf=' 3334am_lf='
2869' 3335'
2870case `pwd` in 3336case `pwd` in
2871 *[\\\"\#\$\&\'\`$am_lf]*) 3337 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2873esac 3339esac
2874case $srcdir in 3340case $srcdir in
2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3342 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2877esac 3343esac
2878 3344
2879# Do `set' in a subshell so we don't clobber the current shell's 3345# 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 3346# arguments. Must try -L first in case configure is actually a
2881# symlink; some systems play weird games with the mod time of symlinks 3347# symlink; some systems play weird games with the mod time of symlinks
2882# (eg FreeBSD returns the mod time of the symlink's containing 3348# (eg FreeBSD returns the mod time of the symlink's containing
2883# directory). 3349# directory).
2884if ( 3350if (
3351 am_has_slept=no
3352 for am_try in 1 2; do
3353 echo "timestamp, slept: $am_has_slept" > conftest.file
2885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3354 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886 if test "$*" = "X"; then 3355 if test "$*" = "X"; then
2887 # -L didn't work. 3356 # -L didn't work.
2888 set X `ls -t "$srcdir/configure" conftest.file` 3357 set X `ls -t "$srcdir/configure" conftest.file`
2889 fi 3358 fi
2890 rm -f conftest.file
2891 if test "$*" != "X $srcdir/configure conftest.file" \ 3359 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then 3360 && test "$*" != "X conftest.file $srcdir/configure"; then
2893 3361
2894 # If neither matched, then we have a broken ls. This can happen 3362 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a 3363 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually 3364 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane". 3365 # 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 3366 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2899alias in your environment" "$LINENO" 5 3367 alias in your environment" "$LINENO" 5
2900 fi 3368 fi
2901 3369 if test "$2" = conftest.file || test $am_try -eq 2; then
3370 break
3371 fi
3372 # Just in case.
3373 sleep 1
3374 am_has_slept=yes
3375 done
2902 test "$2" = conftest.file 3376 test "$2" = conftest.file
2903 ) 3377 )
2904then 3378then
2905 # Ok. 3379 # Ok.
2906 : 3380 :
2907else 3381else
2908 as_fn_error $? "newly created file is older than distributed files! 3382 as_fn_error $? "newly created file is older than distributed files!
2909Check your system clock" "$LINENO" 5 3383Check your system clock" "$LINENO" 5
2910fi 3384fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912$as_echo "yes" >&6; } 3386printf "%s\n" "yes" >&6; }
3387# If we didn't sleep, we still need to ensure time stamps of config.status and
3388# generated files are strictly newer.
3389am_sleep_pid=
3390if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3391 ( sleep 1 ) &
3392 am_sleep_pid=$!
3393fi
3394
3395rm -f conftest.file
3396
2913test "$program_prefix" != NONE && 3397test "$program_prefix" != NONE &&
2914 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915# Use a double $ so make ignores it. 3399# Use a double $ so make ignores it.
2916test "$program_suffix" != NONE && 3400test "$program_suffix" != NONE &&
2917 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918# Double any \ or $. 3402# Double any \ or $.
2919# By default was `s,x,x', remove it if useless. 3403# By default was `s,x,x', remove it if useless.
2920ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3404ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3405program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2922 3406
3407
2923# expand $ac_aux_dir to an absolute path 3408# Expand $ac_aux_dir to an absolute path.
2924am_aux_dir=`cd $ac_aux_dir && pwd` 3409am_aux_dir=`cd "$ac_aux_dir" && pwd`
2925 3410
3411
2926if test x"${MISSING+set}" != xset; then 3412 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" ;; 3413 MISSING="\${SHELL} '$am_aux_dir/missing'"
2932 esac
2933fi 3414fi
2934# Use eval to expand $SHELL 3415# Use eval to expand $SHELL
2935if eval "$MISSING --run true"; then 3416if eval "$MISSING --is-lightweight"; then
2936 am_missing_run="$MISSING --run " 3417 am_missing_run="$MISSING "
2937else 3418else
2938 am_missing_run= 3419 am_missing_run=
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3420 { printf "%s\n" "$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;} 3421printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2941fi 3422fi
2942 3423
2943if test x"${install_sh}" != xset; then 3424if test x"${install_sh+set}" != xset; then
2944 case $am_aux_dir in 3425 case $am_aux_dir in
2945 *\ * | *\ *) 3426 *\ * | *\ *)
2946 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947 *) 3428 *)
2948 install_sh="\${SHELL} $am_aux_dir/install-sh" 3429 install_sh="\${SHELL} $am_aux_dir/install-sh"
2949 esac 3430 esac
2950fi 3431fi
2951 3432
2952# Installed binaries are usually stripped using `strip' when the user 3433# Installed binaries are usually stripped using 'strip' when the user
2953# run `make install-strip'. However `strip' might not be the right 3434# run "make install-strip". However 'strip' might not be the right
2954# tool to use in cross-compilation environments, therefore Automake 3435# tool to use in cross-compilation environments, therefore Automake
2955# will honor the `STRIP' environment variable to overrule this program. 3436# will honor the 'STRIP' environment variable to overrule this program.
2956if test "$cross_compiling" != no; then 3437if test "$cross_compiling" != no; then
2957 if test -n "$ac_tool_prefix"; then 3438 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. 3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}strip; ac_word=$2 3440set dummy ${ac_tool_prefix}strip; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; } 3442printf %s "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_STRIP+:} false; then : 3443if test ${ac_cv_prog_STRIP+y}
2963 $as_echo_n "(cached) " >&6 3444then :
2964else 3445 printf %s "(cached) " >&6
3446else $as_nop
2965 if test -n "$STRIP"; then 3447 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967else 3449else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH 3451for as_dir in $PATH
2970do 3452do
2971 IFS=$as_save_IFS 3453 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=. 3454 case $as_dir in #(((
3455 '') as_dir=./ ;;
3456 */) ;;
3457 *) as_dir=$as_dir/ ;;
3458 esac
2973 for ac_exec_ext in '' $ac_executable_extensions; do 3459 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3461 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 3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 break 2 3463 break 2
2978 fi 3464 fi
2979done 3465done
2980 done 3466 done
2981IFS=$as_save_IFS 3467IFS=$as_save_IFS
2982 3468
2983fi 3469fi
2984fi 3470fi
2985STRIP=$ac_cv_prog_STRIP 3471STRIP=$ac_cv_prog_STRIP
2986if test -n "$STRIP"; then 3472if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988$as_echo "$STRIP" >&6; } 3474printf "%s\n" "$STRIP" >&6; }
2989else 3475else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; } 3477printf "%s\n" "no" >&6; }
2992fi 3478fi
2993 3479
2994 3480
2995fi 3481fi
2996if test -z "$ac_cv_prog_STRIP"; then 3482if test -z "$ac_cv_prog_STRIP"; then
2997 ac_ct_STRIP=$STRIP 3483 ac_ct_STRIP=$STRIP
2998 # Extract the first word of "strip", so it can be a program name with args. 3484 # Extract the first word of "strip", so it can be a program name with args.
2999set dummy strip; ac_word=$2 3485set dummy strip; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; } 3487printf %s "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3488if test ${ac_cv_prog_ac_ct_STRIP+y}
3003 $as_echo_n "(cached) " >&6 3489then :
3004else 3490 printf %s "(cached) " >&6
3491else $as_nop
3005 if test -n "$ac_ct_STRIP"; then 3492 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007else 3494else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH 3496for as_dir in $PATH
3010do 3497do
3011 IFS=$as_save_IFS 3498 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=. 3499 case $as_dir in #(((
3500 '') as_dir=./ ;;
3501 */) ;;
3502 *) as_dir=$as_dir/ ;;
3503 esac
3013 for ac_exec_ext in '' $ac_executable_extensions; do 3504 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_ac_ct_STRIP="strip" 3506 ac_cv_prog_ac_ct_STRIP="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3017 break 2 3508 break 2
3018 fi 3509 fi
3019done 3510done
3020 done 3511 done
3021IFS=$as_save_IFS 3512IFS=$as_save_IFS
3022 3513
3023fi 3514fi
3024fi 3515fi
3025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026if test -n "$ac_ct_STRIP"; then 3517if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028$as_echo "$ac_ct_STRIP" >&6; } 3519printf "%s\n" "$ac_ct_STRIP" >&6; }
3029else 3520else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; } 3522printf "%s\n" "no" >&6; }
3032fi 3523fi
3033 3524
3034 if test "x$ac_ct_STRIP" = x; then 3525 if test "x$ac_ct_STRIP" = x; then
3035 STRIP=":" 3526 STRIP=":"
3036 else 3527 else
3037 case $cross_compiling:$ac_tool_warned in 3528 case $cross_compiling:$ac_tool_warned in
3038yes:) 3529yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3530{ printf "%s\n" "$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;} 3531printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;; 3532ac_tool_warned=yes ;;
3042esac 3533esac
3043 STRIP=$ac_ct_STRIP 3534 STRIP=$ac_ct_STRIP
3044 fi 3535 fi
3045else 3536else
3047fi 3538fi
3048 3539
3049fi 3540fi
3050INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3541INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051 3542
3543
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3545printf %s "checking for a race-free mkdir -p... " >&6; }
3054if test -z "$MKDIR_P"; then 3546if test -z "$MKDIR_P"; then
3055 if ${ac_cv_path_mkdir+:} false; then : 3547 if test ${ac_cv_path_mkdir+y}
3056 $as_echo_n "(cached) " >&6 3548then :
3057else 3549 printf %s "(cached) " >&6
3550else $as_nop
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3552for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do 3553do
3061 IFS=$as_save_IFS 3554 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=. 3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3063 for ac_prog in mkdir gmkdir; do 3560 for ac_prog in mkdir gmkdir; do
3064 for ac_exec_ext in '' $ac_executable_extensions; do 3561 for ac_exec_ext in '' $ac_executable_extensions; do
3065 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3562 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3563 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \ 3564 'mkdir ('*'coreutils) '* | \
3565 'BusyBox '* | \
3069 'mkdir (fileutils) '4.1*) 3566 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3567 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3071 break 3;; 3568 break 3;;
3072 esac 3569 esac
3073 done 3570 done
3074 done 3571 done
3075 done 3572 done
3076IFS=$as_save_IFS 3573IFS=$as_save_IFS
3077 3574
3078fi 3575fi
3079 3576
3080 test -d ./--version && rmdir ./--version 3577 test -d ./--version && rmdir ./--version
3081 if test "${ac_cv_path_mkdir+set}" = set; then 3578 if test ${ac_cv_path_mkdir+y}; then
3082 MKDIR_P="$ac_cv_path_mkdir -p" 3579 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else 3580 else
3084 # As a last resort, use the slow shell script. Don't cache a 3581 # 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 3582 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is 3583 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name. 3584 # removed, or if the value is a relative name.
3088 MKDIR_P="$ac_install_sh -d" 3585 MKDIR_P="$ac_install_sh -d"
3089 fi 3586 fi
3090fi 3587fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092$as_echo "$MKDIR_P" >&6; } 3589printf "%s\n" "$MKDIR_P" >&6; }
3093
3094mkdir_p="$MKDIR_P"
3095case $mkdir_p in
3096 [\\/$]* | ?:[\\/]*) ;;
3097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098esac
3099 3590
3100for ac_prog in gawk mawk nawk awk 3591for ac_prog in gawk mawk nawk awk
3101do 3592do
3102 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103set dummy $ac_prog; ac_word=$2 3594set dummy $ac_prog; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; } 3596printf %s "checking for $ac_word... " >&6; }
3106if ${ac_cv_prog_AWK+:} false; then : 3597if test ${ac_cv_prog_AWK+y}
3107 $as_echo_n "(cached) " >&6 3598then :
3108else 3599 printf %s "(cached) " >&6
3600else $as_nop
3109 if test -n "$AWK"; then 3601 if test -n "$AWK"; then
3110 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111else 3603else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH 3605for as_dir in $PATH
3114do 3606do
3115 IFS=$as_save_IFS 3607 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=. 3608 case $as_dir in #(((
3609 '') as_dir=./ ;;
3610 */) ;;
3611 *) as_dir=$as_dir/ ;;
3612 esac
3117 for ac_exec_ext in '' $ac_executable_extensions; do 3613 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_AWK="$ac_prog" 3615 ac_cv_prog_AWK="$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3121 break 2 3617 break 2
3122 fi 3618 fi
3123done 3619done
3124 done 3620 done
3125IFS=$as_save_IFS 3621IFS=$as_save_IFS
3126 3622
3127fi 3623fi
3128fi 3624fi
3129AWK=$ac_cv_prog_AWK 3625AWK=$ac_cv_prog_AWK
3130if test -n "$AWK"; then 3626if test -n "$AWK"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132$as_echo "$AWK" >&6; } 3628printf "%s\n" "$AWK" >&6; }
3133else 3629else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; } 3631printf "%s\n" "no" >&6; }
3136fi 3632fi
3137 3633
3138 3634
3139 test -n "$AWK" && break 3635 test -n "$AWK" && break
3140done 3636done
3141 3637
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3639printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144set x ${MAKE-make} 3640set x ${MAKE-make}
3145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3641ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3642if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3147 $as_echo_n "(cached) " >&6 3643then :
3148else 3644 printf %s "(cached) " >&6
3645else $as_nop
3149 cat >conftest.make <<\_ACEOF 3646 cat >conftest.make <<\_ACEOF
3150SHELL = /bin/sh 3647SHELL = /bin/sh
3151all: 3648all:
3152 @echo '@@@%%%=$(MAKE)=@@@%%%' 3649 @echo '@@@%%%=$(MAKE)=@@@%%%'
3153_ACEOF 3650_ACEOF
3159 eval ac_cv_prog_make_${ac_make}_set=no;; 3656 eval ac_cv_prog_make_${ac_make}_set=no;;
3160esac 3657esac
3161rm -f conftest.make 3658rm -f conftest.make
3162fi 3659fi
3163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3660if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; } 3662printf "%s\n" "yes" >&6; }
3166 SET_MAKE= 3663 SET_MAKE=
3167else 3664else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; } 3666printf "%s\n" "no" >&6; }
3170 SET_MAKE="MAKE=${MAKE-make}" 3667 SET_MAKE="MAKE=${MAKE-make}"
3171fi 3668fi
3172 3669
3173rm -rf .tst 2>/dev/null 3670rm -rf .tst 2>/dev/null
3174mkdir .tst 2>/dev/null 3671mkdir .tst 2>/dev/null
3176 am__leading_dot=. 3673 am__leading_dot=.
3177else 3674else
3178 am__leading_dot=_ 3675 am__leading_dot=_
3179fi 3676fi
3180rmdir .tst 2>/dev/null 3677rmdir .tst 2>/dev/null
3678
3679# Check whether --enable-silent-rules was given.
3680if test ${enable_silent_rules+y}
3681then :
3682 enableval=$enable_silent_rules;
3683fi
3684
3685case $enable_silent_rules in # (((
3686 yes) AM_DEFAULT_VERBOSITY=0;;
3687 no) AM_DEFAULT_VERBOSITY=1;;
3688 *) AM_DEFAULT_VERBOSITY=1;;
3689esac
3690am_make=${MAKE-make}
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3692printf %s "checking whether $am_make supports nested variables... " >&6; }
3693if test ${am_cv_make_support_nested_variables+y}
3694then :
3695 printf %s "(cached) " >&6
3696else $as_nop
3697 if printf "%s\n" 'TRUE=$(BAR$(V))
3698BAR0=false
3699BAR1=true
3700V=1
3701am__doit:
3702 @$(TRUE)
3703.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3704 am_cv_make_support_nested_variables=yes
3705else
3706 am_cv_make_support_nested_variables=no
3707fi
3708fi
3709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3710printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3711if test $am_cv_make_support_nested_variables = yes; then
3712 AM_V='$(V)'
3713 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3714else
3715 AM_V=$AM_DEFAULT_VERBOSITY
3716 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3717fi
3718AM_BACKSLASH='\'
3181 3719
3182if test "`cd $srcdir && pwd`" != "`pwd`"; then 3720if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I." 3722 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)' 3723 am__isrc=' -I$(srcdir)'
3198 fi 3736 fi
3199fi 3737fi
3200 3738
3201 3739
3202# Define the identity of the package. 3740# Define the identity of the package.
3203 PACKAGE=gvpe 3741 PACKAGE='gvpe'
3204 VERSION=2.24 3742 VERSION='3.1'
3205 3743
3206 3744
3207cat >>confdefs.h <<_ACEOF 3745printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3208#define PACKAGE "$PACKAGE"
3209_ACEOF
3210 3746
3211 3747
3212cat >>confdefs.h <<_ACEOF 3748printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3213#define VERSION "$VERSION"
3214_ACEOF
3215 3749
3216# Some tools Automake needs. 3750# Some tools Automake needs.
3217 3751
3218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219 3753
3227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228 3762
3229 3763
3230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231 3765
3232# We need awk for the "check" target. The system "awk" is bad on 3766# For better backward compatibility. To be removed once Automake 1.9.x
3233# some platforms. 3767# dies out for good. For more background, see:
3768# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3769# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3770mkdir_p='$(MKDIR_P)'
3771
3772# We need awk for the "check" target (and possibly the TAP driver). The
3773# system "awk" is bad on some platforms.
3234# Always define AMTAR for backward compatibility. Yes, it's still used 3774# Always define AMTAR for backward compatibility. Yes, it's still used
3235# in the wild :-( We should find a proper way to deprecate it ... 3775# in the wild :-( We should find a proper way to deprecate it ...
3236AMTAR='$${TAR-tar}' 3776AMTAR='$${TAR-tar}'
3237 3777
3778
3779# We'll loop over all known methods to create a tar archive until one works.
3780_am_tools='gnutar pax cpio none'
3781
3238am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3782am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3239 3783
3240 3784
3241 3785
3242 3786
3243 3787
3788
3789# POSIX will say in a future version that running "rm -f" with no argument
3790# is OK; and we want to be able to make that assumption in our Makefile
3791# recipes. So use an aggressive probe to check that the usage we want is
3792# actually supported "in the wild" to an acceptable degree.
3793# See automake bug#10828.
3794# To make any issue more visible, cause the running configure to be aborted
3795# by default if the 'rm' program in use doesn't match our expectations; the
3796# user can still override this though.
3797if rm -f && rm -fr && rm -rf; then : OK; else
3798 cat >&2 <<'END'
3799Oops!
3800
3801Your 'rm' program seems unable to run without file operands specified
3802on the command line, even when the '-f' option is present. This is contrary
3803to the behaviour of most rm programs out there, and not conforming with
3804the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3805
3806Please tell bug-automake@gnu.org about your system, including the value
3807of your $PATH and any error possibly output before this message. This
3808can help us improve future automake versions.
3809
3810END
3811 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3812 echo 'Configuration will proceed anyway, since you have set the' >&2
3813 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3814 echo >&2
3815 else
3816 cat >&2 <<'END'
3817Aborting the configuration process, to ensure you take notice of the issue.
3818
3819You can download and install GNU coreutils to get an 'rm' implementation
3820that behaves properly: <https://www.gnu.org/software/coreutils/>.
3821
3822If you want to complete the configuration process using your problematic
3823'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3824to "yes", and re-run configure.
3825
3826END
3827 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3828 fi
3829fi
3830
3244ac_config_headers="$ac_config_headers config.h" 3831ac_config_headers="$ac_config_headers config.h"
3245 3832
3246 3833
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3834{ printf "%s\n" "$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; } 3835printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3249 # Check whether --enable-maintainer-mode was given. 3836 # Check whether --enable-maintainer-mode was given.
3250if test "${enable_maintainer_mode+set}" = set; then : 3837if test ${enable_maintainer_mode+y}
3838then :
3251 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3252else 3840else $as_nop
3253 USE_MAINTAINER_MODE=no 3841 USE_MAINTAINER_MODE=no
3254fi 3842fi
3255 3843
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3257$as_echo "$USE_MAINTAINER_MODE" >&6; } 3845printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3258 if test $USE_MAINTAINER_MODE = yes; then 3846 if test $USE_MAINTAINER_MODE = yes; then
3259 MAINTAINER_MODE_TRUE= 3847 MAINTAINER_MODE_TRUE=
3260 MAINTAINER_MODE_FALSE='#' 3848 MAINTAINER_MODE_FALSE='#'
3261else 3849else
3262 MAINTAINER_MODE_TRUE='#' 3850 MAINTAINER_MODE_TRUE='#'
3284 3872
3285 3873
3286 3874
3287 # Extract the first word of "msgfmt", so it can be a program name with args. 3875 # Extract the first word of "msgfmt", so it can be a program name with args.
3288set dummy msgfmt; ac_word=$2 3876set dummy msgfmt; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; } 3878printf %s "checking for $ac_word... " >&6; }
3291if ${ac_cv_path_MSGFMT+:} false; then : 3879if test ${ac_cv_path_MSGFMT+y}
3292 $as_echo_n "(cached) " >&6 3880then :
3293else 3881 printf %s "(cached) " >&6
3882else $as_nop
3294 case "$MSGFMT" in 3883 case "$MSGFMT" in
3295 /*) 3884 /*)
3296 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3885 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3297 ;; 3886 ;;
3298 *) 3887 *)
3312 ;; 3901 ;;
3313esac 3902esac
3314fi 3903fi
3315MSGFMT="$ac_cv_path_MSGFMT" 3904MSGFMT="$ac_cv_path_MSGFMT"
3316if test "$MSGFMT" != ":"; then 3905if test "$MSGFMT" != ":"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3318$as_echo "$MSGFMT" >&6; } 3907printf "%s\n" "$MSGFMT" >&6; }
3319else 3908else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; } 3910printf "%s\n" "no" >&6; }
3322fi 3911fi
3323 3912
3324 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3325set dummy gmsgfmt; ac_word=$2 3914set dummy gmsgfmt; ac_word=$2
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; } 3916printf %s "checking for $ac_word... " >&6; }
3328if ${ac_cv_path_GMSGFMT+:} false; then : 3917if test ${ac_cv_path_GMSGFMT+y}
3329 $as_echo_n "(cached) " >&6 3918then :
3330else 3919 printf %s "(cached) " >&6
3920else $as_nop
3331 case $GMSGFMT in 3921 case $GMSGFMT in
3332 [\\/]* | ?:[\\/]*) 3922 [\\/]* | ?:[\\/]*)
3333 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3923 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3334 ;; 3924 ;;
3335 *) 3925 *)
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH 3927for as_dir in $PATH
3338do 3928do
3339 IFS=$as_save_IFS 3929 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=. 3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3341 for ac_exec_ext in '' $ac_executable_extensions; do 3935 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3343 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3937 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3345 break 2 3939 break 2
3346 fi 3940 fi
3347done 3941done
3348 done 3942 done
3349IFS=$as_save_IFS 3943IFS=$as_save_IFS
3352 ;; 3946 ;;
3353esac 3947esac
3354fi 3948fi
3355GMSGFMT=$ac_cv_path_GMSGFMT 3949GMSGFMT=$ac_cv_path_GMSGFMT
3356if test -n "$GMSGFMT"; then 3950if test -n "$GMSGFMT"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3358$as_echo "$GMSGFMT" >&6; } 3952printf "%s\n" "$GMSGFMT" >&6; }
3359else 3953else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; } 3955printf "%s\n" "no" >&6; }
3362fi 3956fi
3363 3957
3364 3958
3365 3959
3366 # Extract the first word of "xgettext", so it can be a program name with args. 3960 # Extract the first word of "xgettext", so it can be a program name with args.
3367set dummy xgettext; ac_word=$2 3961set dummy xgettext; ac_word=$2
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369$as_echo_n "checking for $ac_word... " >&6; } 3963printf %s "checking for $ac_word... " >&6; }
3370if ${ac_cv_path_XGETTEXT+:} false; then : 3964if test ${ac_cv_path_XGETTEXT+y}
3371 $as_echo_n "(cached) " >&6 3965then :
3372else 3966 printf %s "(cached) " >&6
3967else $as_nop
3373 case "$XGETTEXT" in 3968 case "$XGETTEXT" in
3374 /*) 3969 /*)
3375 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3970 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3376 ;; 3971 ;;
3377 *) 3972 *)
3391 ;; 3986 ;;
3392esac 3987esac
3393fi 3988fi
3394XGETTEXT="$ac_cv_path_XGETTEXT" 3989XGETTEXT="$ac_cv_path_XGETTEXT"
3395if test "$XGETTEXT" != ":"; then 3990if test "$XGETTEXT" != ":"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3397$as_echo "$XGETTEXT" >&6; } 3992printf "%s\n" "$XGETTEXT" >&6; }
3398else 3993else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400$as_echo "no" >&6; } 3995printf "%s\n" "no" >&6; }
3401fi 3996fi
3402 3997
3403 rm -f messages.po 3998 rm -f messages.po
3404 3999
3405 # Extract the first word of "msgmerge", so it can be a program name with args. 4000 # Extract the first word of "msgmerge", so it can be a program name with args.
3406set dummy msgmerge; ac_word=$2 4001set dummy msgmerge; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; } 4003printf %s "checking for $ac_word... " >&6; }
3409if ${ac_cv_path_MSGMERGE+:} false; then : 4004if test ${ac_cv_path_MSGMERGE+y}
3410 $as_echo_n "(cached) " >&6 4005then :
3411else 4006 printf %s "(cached) " >&6
4007else $as_nop
3412 case "$MSGMERGE" in 4008 case "$MSGMERGE" in
3413 /*) 4009 /*)
3414 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4010 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3415 ;; 4011 ;;
3416 *) 4012 *)
3429 ;; 4025 ;;
3430esac 4026esac
3431fi 4027fi
3432MSGMERGE="$ac_cv_path_MSGMERGE" 4028MSGMERGE="$ac_cv_path_MSGMERGE"
3433if test "$MSGMERGE" != ":"; then 4029if test "$MSGMERGE" != ":"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3435$as_echo "$MSGMERGE" >&6; } 4031printf "%s\n" "$MSGMERGE" >&6; }
3436else 4032else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; } 4034printf "%s\n" "no" >&6; }
3439fi 4035fi
3440 4036
3441 4037
3442 if test "$GMSGFMT" != ":"; then 4038 if test "$GMSGFMT" != ":"; then
3443 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4039 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 4040 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3445 : ; 4041 : ;
3446 else 4042 else
3447 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4043 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4044 { printf "%s\n" "$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; } 4045printf "%s\n" "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3450 GMSGFMT=":" 4046 GMSGFMT=":"
3451 fi 4047 fi
3452 fi 4048 fi
3453 4049
3454 if test "$XGETTEXT" != ":"; then 4050 if test "$XGETTEXT" != ":"; then
3455 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 4051 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 4052 (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 : ; 4053 : ;
3458 else 4054 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 4055 { printf "%s\n" "$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; } 4056printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
3461 XGETTEXT=":" 4057 XGETTEXT=":"
3462 fi 4058 fi
3463 rm -f messages.po 4059 rm -f messages.po
3464 fi 4060 fi
3465 4061
3480 acl_save_prefix="$prefix" 4076 acl_save_prefix="$prefix"
3481 prefix="$acl_final_prefix" 4077 prefix="$acl_final_prefix"
3482 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4078 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3483 prefix="$acl_save_prefix" 4079 prefix="$acl_save_prefix"
3484 4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
3485DEPDIR="${am__leading_dot}deps" 4090DEPDIR="${am__leading_dot}deps"
3486 4091
3487ac_config_commands="$ac_config_commands depfiles" 4092ac_config_commands="$ac_config_commands depfiles"
3488 4093
3489 4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3490am_make=${MAKE-make} 4095printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3491cat > confinc << 'END' 4096cat > confinc.mk << 'END'
3492am__doit: 4097am__doit:
3493 @echo this is the am__doit target 4098 @echo this is the am__doit target >confinc.out
3494.PHONY: am__doit 4099.PHONY: am__doit
3495END 4100END
3496# If we don't find an include directive, just comment out the code.
3497{ $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; }
3499am__include="#" 4101am__include="#"
3500am__quote= 4102am__quote=
4103# BSD make does it like this.
4104echo '.include "confinc.mk" # ignored' > confmf.BSD
4105# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4106echo 'include confinc.mk # ignored' > confmf.GNU
3501_am_result=none 4107_am_result=no
3502# First try GNU make style include. 4108for s in GNU BSD; do
3503echo "include confinc" > confmf 4109 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3504# Ignore all kinds of additional output from `make'. 4110 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3505case `$am_make -s -f confmf 2> /dev/null` in #( 4111 ac_status=$?
3506*the\ am__doit\ target*) 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 am__include=include 4113 (exit $ac_status); }
3508 am__quote= 4114 case $?:`cat confinc.out 2>/dev/null` in #(
3509 _am_result=GNU 4115 '0:this is the am__doit target') :
3510 ;; 4116 case $s in #(
4117 BSD) :
4118 am__include='.include' am__quote='"' ;; #(
4119 *) :
4120 am__include='include' am__quote='' ;;
4121esac ;; #(
4122 *) :
4123 ;;
3511esac 4124esac
3512# Now try BSD make style include.
3513if test "$am__include" = "#"; then 4125 if test "$am__include" != "#"; then
3514 echo '.include "confinc"' > confmf 4126 _am_result="yes ($s style)"
3515 case `$am_make -s -f confmf 2> /dev/null` in #( 4127 break
3516 *the\ am__doit\ target*) 4128 fi
3517 am__include=.include 4129done
3518 am__quote="\""
3519 _am_result=BSD
3520 ;;
3521 esac
3522fi
3523
3524
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3526$as_echo "$_am_result" >&6; }
3527rm -f confinc confmf 4130rm -f confinc.* confmf.*
4131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4132printf "%s\n" "${_am_result}" >&6; }
3528 4133
3529# Check whether --enable-dependency-tracking was given. 4134# Check whether --enable-dependency-tracking was given.
3530if test "${enable_dependency_tracking+set}" = set; then : 4135if test ${enable_dependency_tracking+y}
4136then :
3531 enableval=$enable_dependency_tracking; 4137 enableval=$enable_dependency_tracking;
3532fi 4138fi
3533 4139
3534if test "x$enable_dependency_tracking" != xno; then 4140if test "x$enable_dependency_tracking" != xno; then
3535 am_depcomp="$ac_aux_dir/depcomp" 4141 am_depcomp="$ac_aux_dir/depcomp"
3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553if test -n "$ac_tool_prefix"; then 4159if 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. 4160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}gcc; ac_word=$2 4161set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; } 4163printf %s "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then : 4164if test ${ac_cv_prog_CC+y}
3559 $as_echo_n "(cached) " >&6 4165then :
3560else 4166 printf %s "(cached) " >&6
4167else $as_nop
3561 if test -n "$CC"; then 4168 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test. 4169 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else 4170else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH 4172for as_dir in $PATH
3566do 4173do
3567 IFS=$as_save_IFS 4174 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=. 4175 case $as_dir in #(((
4176 '') as_dir=./ ;;
4177 */) ;;
4178 *) as_dir=$as_dir/ ;;
4179 esac
3569 for ac_exec_ext in '' $ac_executable_extensions; do 4180 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3573 break 2 4184 break 2
3574 fi 4185 fi
3575done 4186done
3576 done 4187 done
3577IFS=$as_save_IFS 4188IFS=$as_save_IFS
3578 4189
3579fi 4190fi
3580fi 4191fi
3581CC=$ac_cv_prog_CC 4192CC=$ac_cv_prog_CC
3582if test -n "$CC"; then 4193if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; } 4195printf "%s\n" "$CC" >&6; }
3585else 4196else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; } 4198printf "%s\n" "no" >&6; }
3588fi 4199fi
3589 4200
3590 4201
3591fi 4202fi
3592if test -z "$ac_cv_prog_CC"; then 4203if test -z "$ac_cv_prog_CC"; then
3593 ac_ct_CC=$CC 4204 ac_ct_CC=$CC
3594 # Extract the first word of "gcc", so it can be a program name with args. 4205 # Extract the first word of "gcc", so it can be a program name with args.
3595set dummy gcc; ac_word=$2 4206set dummy gcc; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; } 4208printf %s "checking for $ac_word... " >&6; }
3598if ${ac_cv_prog_ac_ct_CC+:} false; then : 4209if test ${ac_cv_prog_ac_ct_CC+y}
3599 $as_echo_n "(cached) " >&6 4210then :
3600else 4211 printf %s "(cached) " >&6
4212else $as_nop
3601 if test -n "$ac_ct_CC"; then 4213 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else 4215else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH 4217for as_dir in $PATH
3606do 4218do
3607 IFS=$as_save_IFS 4219 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=. 4220 case $as_dir in #(((
4221 '') as_dir=./ ;;
4222 */) ;;
4223 *) as_dir=$as_dir/ ;;
4224 esac
3609 for ac_exec_ext in '' $ac_executable_extensions; do 4225 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611 ac_cv_prog_ac_ct_CC="gcc" 4227 ac_cv_prog_ac_ct_CC="gcc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3613 break 2 4229 break 2
3614 fi 4230 fi
3615done 4231done
3616 done 4232 done
3617IFS=$as_save_IFS 4233IFS=$as_save_IFS
3618 4234
3619fi 4235fi
3620fi 4236fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC 4237ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then 4238if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; } 4240printf "%s\n" "$ac_ct_CC" >&6; }
3625else 4241else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; } 4243printf "%s\n" "no" >&6; }
3628fi 4244fi
3629 4245
3630 if test "x$ac_ct_CC" = x; then 4246 if test "x$ac_ct_CC" = x; then
3631 CC="" 4247 CC=""
3632 else 4248 else
3633 case $cross_compiling:$ac_tool_warned in 4249 case $cross_compiling:$ac_tool_warned in
3634yes:) 4250yes:)
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4251{ printf "%s\n" "$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;} 4252printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637ac_tool_warned=yes ;; 4253ac_tool_warned=yes ;;
3638esac 4254esac
3639 CC=$ac_ct_CC 4255 CC=$ac_ct_CC
3640 fi 4256 fi
3641else 4257else
3644 4260
3645if test -z "$CC"; then 4261if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then 4262 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. 4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3648set dummy ${ac_tool_prefix}cc; ac_word=$2 4264set dummy ${ac_tool_prefix}cc; ac_word=$2
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650$as_echo_n "checking for $ac_word... " >&6; } 4266printf %s "checking for $ac_word... " >&6; }
3651if ${ac_cv_prog_CC+:} false; then : 4267if test ${ac_cv_prog_CC+y}
3652 $as_echo_n "(cached) " >&6 4268then :
3653else 4269 printf %s "(cached) " >&6
4270else $as_nop
3654 if test -n "$CC"; then 4271 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test. 4272 ac_cv_prog_CC="$CC" # Let the user override the test.
3656else 4273else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH 4275for as_dir in $PATH
3659do 4276do
3660 IFS=$as_save_IFS 4277 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=. 4278 case $as_dir in #(((
4279 '') as_dir=./ ;;
4280 */) ;;
4281 *) as_dir=$as_dir/ ;;
4282 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do 4283 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}cc" 4285 ac_cv_prog_CC="${ac_tool_prefix}cc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2 4287 break 2
3667 fi 4288 fi
3668done 4289done
3669 done 4290 done
3670IFS=$as_save_IFS 4291IFS=$as_save_IFS
3671 4292
3672fi 4293fi
3673fi 4294fi
3674CC=$ac_cv_prog_CC 4295CC=$ac_cv_prog_CC
3675if test -n "$CC"; then 4296if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677$as_echo "$CC" >&6; } 4298printf "%s\n" "$CC" >&6; }
3678else 4299else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680$as_echo "no" >&6; } 4301printf "%s\n" "no" >&6; }
3681fi 4302fi
3682 4303
3683 4304
3684 fi 4305 fi
3685fi 4306fi
3686if test -z "$CC"; then 4307if test -z "$CC"; then
3687 # Extract the first word of "cc", so it can be a program name with args. 4308 # Extract the first word of "cc", so it can be a program name with args.
3688set dummy cc; ac_word=$2 4309set dummy cc; ac_word=$2
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690$as_echo_n "checking for $ac_word... " >&6; } 4311printf %s "checking for $ac_word... " >&6; }
3691if ${ac_cv_prog_CC+:} false; then : 4312if test ${ac_cv_prog_CC+y}
3692 $as_echo_n "(cached) " >&6 4313then :
3693else 4314 printf %s "(cached) " >&6
4315else $as_nop
3694 if test -n "$CC"; then 4316 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test. 4317 ac_cv_prog_CC="$CC" # Let the user override the test.
3696else 4318else
3697 ac_prog_rejected=no 4319 ac_prog_rejected=no
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH 4321for as_dir in $PATH
3700do 4322do
3701 IFS=$as_save_IFS 4323 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=. 4324 case $as_dir in #(((
4325 '') as_dir=./ ;;
4326 */) ;;
4327 *) as_dir=$as_dir/ ;;
4328 esac
3703 for ac_exec_ext in '' $ac_executable_extensions; do 4329 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4331 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3706 ac_prog_rejected=yes 4332 ac_prog_rejected=yes
3707 continue 4333 continue
3708 fi 4334 fi
3709 ac_cv_prog_CC="cc" 4335 ac_cv_prog_CC="cc"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3711 break 2 4337 break 2
3712 fi 4338 fi
3713done 4339done
3714 done 4340 done
3715IFS=$as_save_IFS 4341IFS=$as_save_IFS
3721 if test $# != 0; then 4347 if test $# != 0; then
3722 # We chose a different compiler from the bogus one. 4348 # We chose a different compiler from the bogus one.
3723 # However, it has the same basename, so the bogon will be chosen 4349 # 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. 4350 # first if we set CC to just the basename; use the full file name.
3725 shift 4351 shift
3726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4352 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3727 fi 4353 fi
3728fi 4354fi
3729fi 4355fi
3730fi 4356fi
3731CC=$ac_cv_prog_CC 4357CC=$ac_cv_prog_CC
3732if test -n "$CC"; then 4358if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734$as_echo "$CC" >&6; } 4360printf "%s\n" "$CC" >&6; }
3735else 4361else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; } 4363printf "%s\n" "no" >&6; }
3738fi 4364fi
3739 4365
3740 4366
3741fi 4367fi
3742if test -z "$CC"; then 4368if test -z "$CC"; then
3743 if test -n "$ac_tool_prefix"; then 4369 if test -n "$ac_tool_prefix"; then
3744 for ac_prog in cl.exe 4370 for ac_prog in cl.exe
3745 do 4371 do
3746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3747set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; } 4375printf %s "checking for $ac_word... " >&6; }
3750if ${ac_cv_prog_CC+:} false; then : 4376if test ${ac_cv_prog_CC+y}
3751 $as_echo_n "(cached) " >&6 4377then :
3752else 4378 printf %s "(cached) " >&6
4379else $as_nop
3753 if test -n "$CC"; then 4380 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test. 4381 ac_cv_prog_CC="$CC" # Let the user override the test.
3755else 4382else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH 4384for as_dir in $PATH
3758do 4385do
3759 IFS=$as_save_IFS 4386 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=. 4387 case $as_dir in #(((
4388 '') as_dir=./ ;;
4389 */) ;;
4390 *) as_dir=$as_dir/ ;;
4391 esac
3761 for ac_exec_ext in '' $ac_executable_extensions; do 4392 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3765 break 2 4396 break 2
3766 fi 4397 fi
3767done 4398done
3768 done 4399 done
3769IFS=$as_save_IFS 4400IFS=$as_save_IFS
3770 4401
3771fi 4402fi
3772fi 4403fi
3773CC=$ac_cv_prog_CC 4404CC=$ac_cv_prog_CC
3774if test -n "$CC"; then 4405if test -n "$CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776$as_echo "$CC" >&6; } 4407printf "%s\n" "$CC" >&6; }
3777else 4408else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; } 4410printf "%s\n" "no" >&6; }
3780fi 4411fi
3781 4412
3782 4413
3783 test -n "$CC" && break 4414 test -n "$CC" && break
3784 done 4415 done
3787 ac_ct_CC=$CC 4418 ac_ct_CC=$CC
3788 for ac_prog in cl.exe 4419 for ac_prog in cl.exe
3789do 4420do
3790 # Extract the first word of "$ac_prog", so it can be a program name with args. 4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791set dummy $ac_prog; ac_word=$2 4422set dummy $ac_prog; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; } 4424printf %s "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_ac_ct_CC+:} false; then : 4425if test ${ac_cv_prog_ac_ct_CC+y}
3795 $as_echo_n "(cached) " >&6 4426then :
3796else 4427 printf %s "(cached) " >&6
4428else $as_nop
3797 if test -n "$ac_ct_CC"; then 4429 if test -n "$ac_ct_CC"; then
3798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799else 4431else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH 4433for as_dir in $PATH
3802do 4434do
3803 IFS=$as_save_IFS 4435 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=. 4436 case $as_dir in #(((
4437 '') as_dir=./ ;;
4438 */) ;;
4439 *) as_dir=$as_dir/ ;;
4440 esac
3805 for ac_exec_ext in '' $ac_executable_extensions; do 4441 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_ac_ct_CC="$ac_prog" 4443 ac_cv_prog_ac_ct_CC="$ac_prog"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3809 break 2 4445 break 2
3810 fi 4446 fi
3811done 4447done
3812 done 4448 done
3813IFS=$as_save_IFS 4449IFS=$as_save_IFS
3814 4450
3815fi 4451fi
3816fi 4452fi
3817ac_ct_CC=$ac_cv_prog_ac_ct_CC 4453ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818if test -n "$ac_ct_CC"; then 4454if test -n "$ac_ct_CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820$as_echo "$ac_ct_CC" >&6; } 4456printf "%s\n" "$ac_ct_CC" >&6; }
3821else 4457else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; } 4459printf "%s\n" "no" >&6; }
3824fi 4460fi
3825 4461
3826 4462
3827 test -n "$ac_ct_CC" && break 4463 test -n "$ac_ct_CC" && break
3828done 4464done
3830 if test "x$ac_ct_CC" = x; then 4466 if test "x$ac_ct_CC" = x; then
3831 CC="" 4467 CC=""
3832 else 4468 else
3833 case $cross_compiling:$ac_tool_warned in 4469 case $cross_compiling:$ac_tool_warned in
3834yes:) 4470yes:)
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4471{ printf "%s\n" "$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;} 4472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;; 4473ac_tool_warned=yes ;;
3838esac 4474esac
3839 CC=$ac_ct_CC 4475 CC=$ac_ct_CC
3840 fi 4476 fi
3841fi 4477fi
3842 4478
3843fi 4479fi
4480if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4483set dummy ${ac_tool_prefix}clang; ac_word=$2
4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485printf %s "checking for $ac_word... " >&6; }
4486if test ${ac_cv_prog_CC+y}
4487then :
4488 printf %s "(cached) " >&6
4489else $as_nop
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496 IFS=$as_save_IFS
4497 case $as_dir in #(((
4498 '') as_dir=./ ;;
4499 */) ;;
4500 *) as_dir=$as_dir/ ;;
4501 esac
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_CC="${ac_tool_prefix}clang"
4505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508done
4509 done
4510IFS=$as_save_IFS
3844 4511
4512fi
4513fi
4514CC=$ac_cv_prog_CC
4515if test -n "$CC"; then
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517printf "%s\n" "$CC" >&6; }
4518else
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520printf "%s\n" "no" >&6; }
4521fi
3845 4522
4523
4524fi
4525if test -z "$ac_cv_prog_CC"; then
4526 ac_ct_CC=$CC
4527 # Extract the first word of "clang", so it can be a program name with args.
4528set dummy clang; ac_word=$2
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530printf %s "checking for $ac_word... " >&6; }
4531if test ${ac_cv_prog_ac_ct_CC+y}
4532then :
4533 printf %s "(cached) " >&6
4534else $as_nop
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 case $as_dir in #(((
4543 '') as_dir=./ ;;
4544 */) ;;
4545 *) as_dir=$as_dir/ ;;
4546 esac
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_ac_ct_CC="clang"
4550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554 done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559ac_ct_CC=$ac_cv_prog_ac_ct_CC
4560if test -n "$ac_ct_CC"; then
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4562printf "%s\n" "$ac_ct_CC" >&6; }
4563else
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565printf "%s\n" "no" >&6; }
4566fi
4567
4568 if test "x$ac_ct_CC" = x; then
4569 CC=""
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572yes:)
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575ac_tool_warned=yes ;;
4576esac
4577 CC=$ac_ct_CC
4578 fi
4579else
4580 CC="$ac_cv_prog_CC"
4581fi
4582
4583fi
4584
4585
3846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4586test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4587printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "no acceptable C compiler found in \$PATH 4588as_fn_error $? "no acceptable C compiler found in \$PATH
3849See \`config.log' for more details" "$LINENO" 5; } 4589See \`config.log' for more details" "$LINENO" 5; }
3850 4590
3851# Provide some information about the compiler. 4591# Provide some information about the compiler.
3852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4592printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853set X $ac_compile 4593set X $ac_compile
3854ac_compiler=$2 4594ac_compiler=$2
3855for ac_option in --version -v -V -qversion; do 4595for ac_option in --version -v -V -qversion -version; do
3856 { { ac_try="$ac_compiler $ac_option >&5" 4596 { { ac_try="$ac_compiler $ac_option >&5"
3857case "(($ac_try" in 4597case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;; 4599 *) ac_try_echo=$ac_try;;
3860esac 4600esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5 4602printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864 ac_status=$? 4604 ac_status=$?
3865 if test -s conftest.err; then 4605 if test -s conftest.err; then
3866 sed '10a\ 4606 sed '10a\
3867... rest of stderr output deleted ... 4607... rest of stderr output deleted ...
3868 10q' conftest.err >conftest.er1 4608 10q' conftest.err >conftest.er1
3869 cat conftest.er1 >&5 4609 cat conftest.er1 >&5
3870 fi 4610 fi
3871 rm -f conftest.er1 conftest.err 4611 rm -f conftest.er1 conftest.err
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; } 4613 test $ac_status = 0; }
3874done 4614done
3875 4615
3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */ 4617/* end confdefs.h. */
3878 4618
3879int 4619int
3880main () 4620main (void)
3881{ 4621{
3882 4622
3883 ; 4623 ;
3884 return 0; 4624 return 0;
3885} 4625}
3887ac_clean_files_save=$ac_clean_files 4627ac_clean_files_save=$ac_clean_files
3888ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3889# Try to create an executable without -o first, disregard a.out. 4629# Try to create an executable without -o first, disregard a.out.
3890# It will help us diagnose broken compilers, and finding out an intuition 4630# It will help us diagnose broken compilers, and finding out an intuition
3891# of exeext. 4631# of exeext.
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3893$as_echo_n "checking whether the C compiler works... " >&6; } 4633printf %s "checking whether the C compiler works... " >&6; }
3894ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4634ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895 4635
3896# The possible output files: 4636# The possible output files:
3897ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898 4638
3899ac_rmfiles= 4639ac_rmfiles=
3910case "(($ac_try" in 4650case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;; 4652 *) ac_try_echo=$ac_try;;
3913esac 4653esac
3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915$as_echo "$ac_try_echo"; } >&5 4655printf "%s\n" "$ac_try_echo"; } >&5
3916 (eval "$ac_link_default") 2>&5 4656 (eval "$ac_link_default") 2>&5
3917 ac_status=$? 4657 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then : 4659 test $ac_status = 0; }
4660then :
3920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4661 # 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' 4662# 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, 4663# 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 4664# so that the user can short-circuit this test for compilers unknown to
3924# Autoconf. 4665# Autoconf.
3931 [ab].out ) 4672 [ab].out )
3932 # We found the default executable, but exeext='' is most 4673 # We found the default executable, but exeext='' is most
3933 # certainly right. 4674 # certainly right.
3934 break;; 4675 break;;
3935 *.* ) 4676 *.* )
3936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4677 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3937 then :; else 4678 then :; else
3938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 fi 4680 fi
3940 # We set ac_cv_exeext here because the later test for it is not 4681 # 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' 4682 # safe: cross compilers may not add the suffix if given an `-o'
3947 break;; 4688 break;;
3948 esac 4689 esac
3949done 4690done
3950test "$ac_cv_exeext" = no && ac_cv_exeext= 4691test "$ac_cv_exeext" = no && ac_cv_exeext=
3951 4692
3952else 4693else $as_nop
3953 ac_file='' 4694 ac_file=''
3954fi 4695fi
3955if test -z "$ac_file"; then : 4696if test -z "$ac_file"
4697then :
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; } 4699printf "%s\n" "no" >&6; }
3958$as_echo "$as_me: failed program was:" >&5 4700printf "%s\n" "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5 4701sed 's/^/| /' conftest.$ac_ext >&5
3960 4702
3961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4703{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3963as_fn_error 77 "C compiler cannot create executables 4705as_fn_error 77 "C compiler cannot create executables
3964See \`config.log' for more details" "$LINENO" 5; } 4706See \`config.log' for more details" "$LINENO" 5; }
3965else 4707else $as_nop
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967$as_echo "yes" >&6; } 4709printf "%s\n" "yes" >&6; }
3968fi 4710fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4711{ printf "%s\n" "$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; } 4712printf %s "checking for C compiler default output file name... " >&6; }
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972$as_echo "$ac_file" >&6; } 4714printf "%s\n" "$ac_file" >&6; }
3973ac_exeext=$ac_cv_exeext 4715ac_exeext=$ac_cv_exeext
3974 4716
3975rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4717rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3976ac_clean_files=$ac_clean_files_save 4718ac_clean_files=$ac_clean_files_save
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3978$as_echo_n "checking for suffix of executables... " >&6; } 4720printf %s "checking for suffix of executables... " >&6; }
3979if { { ac_try="$ac_link" 4721if { { ac_try="$ac_link"
3980case "(($ac_try" in 4722case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;; 4724 *) ac_try_echo=$ac_try;;
3983esac 4725esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985$as_echo "$ac_try_echo"; } >&5 4727printf "%s\n" "$ac_try_echo"; } >&5
3986 (eval "$ac_link") 2>&5 4728 (eval "$ac_link") 2>&5
3987 ac_status=$? 4729 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then : 4731 test $ac_status = 0; }
4732then :
3990 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3992# work properly (i.e., refer to `conftest.exe'), while it won't with 4735# work properly (i.e., refer to `conftest.exe'), while it won't with
3993# `rm'. 4736# `rm'.
3994for ac_file in conftest.exe conftest conftest.*; do 4737for ac_file in conftest.exe conftest conftest.*; do
3998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999 break;; 4742 break;;
4000 * ) break;; 4743 * ) break;;
4001 esac 4744 esac
4002done 4745done
4003else 4746else $as_nop
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4749as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4007See \`config.log' for more details" "$LINENO" 5; } 4750See \`config.log' for more details" "$LINENO" 5; }
4008fi 4751fi
4009rm -f conftest conftest$ac_cv_exeext 4752rm -f conftest conftest$ac_cv_exeext
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4011$as_echo "$ac_cv_exeext" >&6; } 4754printf "%s\n" "$ac_cv_exeext" >&6; }
4012 4755
4013rm -f conftest.$ac_ext 4756rm -f conftest.$ac_ext
4014EXEEXT=$ac_cv_exeext 4757EXEEXT=$ac_cv_exeext
4015ac_exeext=$EXEEXT 4758ac_exeext=$EXEEXT
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */ 4760/* end confdefs.h. */
4018#include <stdio.h> 4761#include <stdio.h>
4019int 4762int
4020main () 4763main (void)
4021{ 4764{
4022FILE *f = fopen ("conftest.out", "w"); 4765FILE *f = fopen ("conftest.out", "w");
4023 return ferror (f) || fclose (f) != 0; 4766 return ferror (f) || fclose (f) != 0;
4024 4767
4025 ; 4768 ;
4027} 4770}
4028_ACEOF 4771_ACEOF
4029ac_clean_files="$ac_clean_files conftest.out" 4772ac_clean_files="$ac_clean_files conftest.out"
4030# Check that the compiler produces executables we can run. If not, either 4773# Check that the compiler produces executables we can run. If not, either
4031# the compiler is broken, or we cross compile. 4774# the compiler is broken, or we cross compile.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033$as_echo_n "checking whether we are cross compiling... " >&6; } 4776printf %s "checking whether we are cross compiling... " >&6; }
4034if test "$cross_compiling" != yes; then 4777if test "$cross_compiling" != yes; then
4035 { { ac_try="$ac_link" 4778 { { ac_try="$ac_link"
4036case "(($ac_try" in 4779case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;; 4781 *) ac_try_echo=$ac_try;;
4039esac 4782esac
4040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041$as_echo "$ac_try_echo"; } >&5 4784printf "%s\n" "$ac_try_echo"; } >&5
4042 (eval "$ac_link") 2>&5 4785 (eval "$ac_link") 2>&5
4043 ac_status=$? 4786 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; } 4788 test $ac_status = 0; }
4046 if { ac_try='./conftest$ac_cv_exeext' 4789 if { ac_try='./conftest$ac_cv_exeext'
4047 { { case "(($ac_try" in 4790 { { case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;; 4792 *) ac_try_echo=$ac_try;;
4050esac 4793esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052$as_echo "$ac_try_echo"; } >&5 4795printf "%s\n" "$ac_try_echo"; } >&5
4053 (eval "$ac_try") 2>&5 4796 (eval "$ac_try") 2>&5
4054 ac_status=$? 4797 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; }; then 4799 test $ac_status = 0; }; }; then
4057 cross_compiling=no 4800 cross_compiling=no
4058 else 4801 else
4059 if test "$cross_compiling" = maybe; then 4802 if test "$cross_compiling" = maybe; then
4060 cross_compiling=yes 4803 cross_compiling=yes
4061 else 4804 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4806printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "cannot run C compiled programs. 4807as_fn_error 77 "cannot run C compiled programs.
4065If you meant to cross compile, use \`--host'. 4808If you meant to cross compile, use \`--host'.
4066See \`config.log' for more details" "$LINENO" 5; } 4809See \`config.log' for more details" "$LINENO" 5; }
4067 fi 4810 fi
4068 fi 4811 fi
4069fi 4812fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071$as_echo "$cross_compiling" >&6; } 4814printf "%s\n" "$cross_compiling" >&6; }
4072 4815
4073rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4816rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4074ac_clean_files=$ac_clean_files_save 4817ac_clean_files=$ac_clean_files_save
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4076$as_echo_n "checking for suffix of object files... " >&6; } 4819printf %s "checking for suffix of object files... " >&6; }
4077if ${ac_cv_objext+:} false; then : 4820if test ${ac_cv_objext+y}
4078 $as_echo_n "(cached) " >&6 4821then :
4079else 4822 printf %s "(cached) " >&6
4823else $as_nop
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h. */ 4825/* end confdefs.h. */
4082 4826
4083int 4827int
4084main () 4828main (void)
4085{ 4829{
4086 4830
4087 ; 4831 ;
4088 return 0; 4832 return 0;
4089} 4833}
4093case "(($ac_try" in 4837case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;; 4839 *) ac_try_echo=$ac_try;;
4096esac 4840esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5 4842printf "%s\n" "$ac_try_echo"; } >&5
4099 (eval "$ac_compile") 2>&5 4843 (eval "$ac_compile") 2>&5
4100 ac_status=$? 4844 ac_status=$?
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; then : 4846 test $ac_status = 0; }
4847then :
4103 for ac_file in conftest.o conftest.obj conftest.*; do 4848 for ac_file in conftest.o conftest.obj conftest.*; do
4104 test -f "$ac_file" || continue; 4849 test -f "$ac_file" || continue;
4105 case $ac_file in 4850 case $ac_file in
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108 break;; 4853 break;;
4109 esac 4854 esac
4110done 4855done
4111else 4856else $as_nop
4112 $as_echo "$as_me: failed program was:" >&5 4857 printf "%s\n" "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5 4858sed 's/^/| /' conftest.$ac_ext >&5
4114 4859
4115{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4860{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4861printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4117as_fn_error $? "cannot compute suffix of object files: cannot compile 4862as_fn_error $? "cannot compute suffix of object files: cannot compile
4118See \`config.log' for more details" "$LINENO" 5; } 4863See \`config.log' for more details" "$LINENO" 5; }
4119fi 4864fi
4120rm -f conftest.$ac_cv_objext conftest.$ac_ext 4865rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121fi 4866fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4123$as_echo "$ac_cv_objext" >&6; } 4868printf "%s\n" "$ac_cv_objext" >&6; }
4124OBJEXT=$ac_cv_objext 4869OBJEXT=$ac_cv_objext
4125ac_objext=$OBJEXT 4870ac_objext=$OBJEXT
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4127$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4872printf %s "checking whether the compiler supports GNU C... " >&6; }
4128if ${ac_cv_c_compiler_gnu+:} false; then : 4873if test ${ac_cv_c_compiler_gnu+y}
4129 $as_echo_n "(cached) " >&6 4874then :
4130else 4875 printf %s "(cached) " >&6
4876else $as_nop
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h. */ 4878/* end confdefs.h. */
4133 4879
4134int 4880int
4135main () 4881main (void)
4136{ 4882{
4137#ifndef __GNUC__ 4883#ifndef __GNUC__
4138 choke me 4884 choke me
4139#endif 4885#endif
4140 4886
4141 ; 4887 ;
4142 return 0; 4888 return 0;
4143} 4889}
4144_ACEOF 4890_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then : 4891if ac_fn_c_try_compile "$LINENO"
4892then :
4146 ac_compiler_gnu=yes 4893 ac_compiler_gnu=yes
4147else 4894else $as_nop
4148 ac_compiler_gnu=no 4895 ac_compiler_gnu=no
4149fi 4896fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4151ac_cv_c_compiler_gnu=$ac_compiler_gnu 4898ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152 4899
4153fi 4900fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4155$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4902printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4903ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904
4156if test $ac_compiler_gnu = yes; then 4905if test $ac_compiler_gnu = yes; then
4157 GCC=yes 4906 GCC=yes
4158else 4907else
4159 GCC= 4908 GCC=
4160fi 4909fi
4161ac_test_CFLAGS=${CFLAGS+set} 4910ac_test_CFLAGS=${CFLAGS+y}
4162ac_save_CFLAGS=$CFLAGS 4911ac_save_CFLAGS=$CFLAGS
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4164$as_echo_n "checking whether $CC accepts -g... " >&6; } 4913printf %s "checking whether $CC accepts -g... " >&6; }
4165if ${ac_cv_prog_cc_g+:} false; then : 4914if test ${ac_cv_prog_cc_g+y}
4166 $as_echo_n "(cached) " >&6 4915then :
4167else 4916 printf %s "(cached) " >&6
4917else $as_nop
4168 ac_save_c_werror_flag=$ac_c_werror_flag 4918 ac_save_c_werror_flag=$ac_c_werror_flag
4169 ac_c_werror_flag=yes 4919 ac_c_werror_flag=yes
4170 ac_cv_prog_cc_g=no 4920 ac_cv_prog_cc_g=no
4171 CFLAGS="-g" 4921 CFLAGS="-g"
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */ 4923/* end confdefs.h. */
4174 4924
4175int 4925int
4176main () 4926main (void)
4177{ 4927{
4178 4928
4179 ; 4929 ;
4180 return 0; 4930 return 0;
4181} 4931}
4182_ACEOF 4932_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then : 4933if ac_fn_c_try_compile "$LINENO"
4934then :
4184 ac_cv_prog_cc_g=yes 4935 ac_cv_prog_cc_g=yes
4185else 4936else $as_nop
4186 CFLAGS="" 4937 CFLAGS=""
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h. */ 4939/* end confdefs.h. */
4189 4940
4190int 4941int
4191main () 4942main (void)
4192{ 4943{
4193 4944
4194 ; 4945 ;
4195 return 0; 4946 return 0;
4196} 4947}
4197_ACEOF 4948_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then : 4949if ac_fn_c_try_compile "$LINENO"
4950then :
4199 4951
4200else 4952else $as_nop
4201 ac_c_werror_flag=$ac_save_c_werror_flag 4953 ac_c_werror_flag=$ac_save_c_werror_flag
4202 CFLAGS="-g" 4954 CFLAGS="-g"
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */ 4956/* end confdefs.h. */
4205 4957
4206int 4958int
4207main () 4959main (void)
4208{ 4960{
4209 4961
4210 ; 4962 ;
4211 return 0; 4963 return 0;
4212} 4964}
4213_ACEOF 4965_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then : 4966if ac_fn_c_try_compile "$LINENO"
4967then :
4215 ac_cv_prog_cc_g=yes 4968 ac_cv_prog_cc_g=yes
4216fi 4969fi
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4218fi 4971fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi 4973fi
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4222 ac_c_werror_flag=$ac_save_c_werror_flag 4975 ac_c_werror_flag=$ac_save_c_werror_flag
4223fi 4976fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4225$as_echo "$ac_cv_prog_cc_g" >&6; } 4978printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4226if test "$ac_test_CFLAGS" = set; then 4979if test $ac_test_CFLAGS; then
4227 CFLAGS=$ac_save_CFLAGS 4980 CFLAGS=$ac_save_CFLAGS
4228elif test $ac_cv_prog_cc_g = yes; then 4981elif test $ac_cv_prog_cc_g = yes; then
4229 if test "$GCC" = yes; then 4982 if test "$GCC" = yes; then
4230 CFLAGS="-g -O2" 4983 CFLAGS="-g -O2"
4231 else 4984 else
4236 CFLAGS="-O2" 4989 CFLAGS="-O2"
4237 else 4990 else
4238 CFLAGS= 4991 CFLAGS=
4239 fi 4992 fi
4240fi 4993fi
4994ac_prog_cc_stdc=no
4995if test x$ac_prog_cc_stdc = xno
4996then :
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4998printf %s "checking for $CC option to enable C11 features... " >&6; }
4999if test ${ac_cv_prog_cc_c11+y}
5000then :
5001 printf %s "(cached) " >&6
5002else $as_nop
5003 ac_cv_prog_cc_c11=no
5004ac_save_CC=$CC
5005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h. */
5007$ac_c_conftest_c11_program
5008_ACEOF
5009for ac_arg in '' -std=gnu11
5010do
5011 CC="$ac_save_CC $ac_arg"
5012 if ac_fn_c_try_compile "$LINENO"
5013then :
5014 ac_cv_prog_cc_c11=$ac_arg
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.beam
5017 test "x$ac_cv_prog_cc_c11" != "xno" && break
5018done
5019rm -f conftest.$ac_ext
5020CC=$ac_save_CC
5021fi
5022
5023if test "x$ac_cv_prog_cc_c11" = xno
5024then :
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5026printf "%s\n" "unsupported" >&6; }
5027else $as_nop
5028 if test "x$ac_cv_prog_cc_c11" = x
5029then :
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5031printf "%s\n" "none needed" >&6; }
5032else $as_nop
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5034printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5035 CC="$CC $ac_cv_prog_cc_c11"
5036fi
5037 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5038 ac_prog_cc_stdc=c11
5039fi
5040fi
5041if test x$ac_prog_cc_stdc = xno
5042then :
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5044printf %s "checking for $CC option to enable C99 features... " >&6; }
5045if test ${ac_cv_prog_cc_c99+y}
5046then :
5047 printf %s "(cached) " >&6
5048else $as_nop
5049 ac_cv_prog_cc_c99=no
5050ac_save_CC=$CC
5051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h. */
5053$ac_c_conftest_c99_program
5054_ACEOF
5055for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5056do
5057 CC="$ac_save_CC $ac_arg"
5058 if ac_fn_c_try_compile "$LINENO"
5059then :
5060 ac_cv_prog_cc_c99=$ac_arg
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.beam
5063 test "x$ac_cv_prog_cc_c99" != "xno" && break
5064done
5065rm -f conftest.$ac_ext
5066CC=$ac_save_CC
5067fi
5068
5069if test "x$ac_cv_prog_cc_c99" = xno
5070then :
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5072printf "%s\n" "unsupported" >&6; }
5073else $as_nop
5074 if test "x$ac_cv_prog_cc_c99" = x
5075then :
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5077printf "%s\n" "none needed" >&6; }
5078else $as_nop
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5080printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5081 CC="$CC $ac_cv_prog_cc_c99"
5082fi
5083 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5084 ac_prog_cc_stdc=c99
5085fi
5086fi
5087if test x$ac_prog_cc_stdc = xno
5088then :
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4242$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5090printf %s "checking for $CC option to enable C89 features... " >&6; }
4243if ${ac_cv_prog_cc_c89+:} false; then : 5091if test ${ac_cv_prog_cc_c89+y}
4244 $as_echo_n "(cached) " >&6 5092then :
4245else 5093 printf %s "(cached) " >&6
5094else $as_nop
4246 ac_cv_prog_cc_c89=no 5095 ac_cv_prog_cc_c89=no
4247ac_save_CC=$CC 5096ac_save_CC=$CC
4248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h. */ 5098/* end confdefs.h. */
4250#include <stdarg.h> 5099$ac_c_conftest_c89_program
4251#include <stdio.h>
4252struct stat;
4253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4254struct buf { int x; };
4255FILE * (*rcsopen) (struct buf *, struct stat *, int);
4256static char *e (p, i)
4257 char **p;
4258 int i;
4259{
4260 return p[i];
4261}
4262static 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
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 as 'x'. The following induces an error, until -std is added to get
4276 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 that's true only with -std. */
4279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280
4281/* 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'
4284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285
4286int test (int i, double x);
4287struct s1 {int (*f) (int a);};
4288struct s2 {int (*f) (double a);};
4289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290int argc;
4291char **argv;
4292int
4293main ()
4294{
4295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 ;
4297 return 0;
4298}
4299_ACEOF 5100_ACEOF
4300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302do 5102do
4303 CC="$ac_save_CC $ac_arg" 5103 CC="$ac_save_CC $ac_arg"
4304 if ac_fn_c_try_compile "$LINENO"; then : 5104 if ac_fn_c_try_compile "$LINENO"
5105then :
4305 ac_cv_prog_cc_c89=$ac_arg 5106 ac_cv_prog_cc_c89=$ac_arg
4306fi 5107fi
4307rm -f core conftest.err conftest.$ac_objext 5108rm -f core conftest.err conftest.$ac_objext conftest.beam
4308 test "x$ac_cv_prog_cc_c89" != "xno" && break 5109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4309done 5110done
4310rm -f conftest.$ac_ext 5111rm -f conftest.$ac_ext
4311CC=$ac_save_CC 5112CC=$ac_save_CC
4312
4313fi 5113fi
4314# AC_CACHE_VAL 5114
4315case "x$ac_cv_prog_cc_c89" in 5115if test "x$ac_cv_prog_cc_c89" = xno
4316 x) 5116then :
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318$as_echo "none needed" >&6; } ;;
4319 xno)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321$as_echo "unsupported" >&6; } ;; 5118printf "%s\n" "unsupported" >&6; }
4322 *) 5119else $as_nop
5120 if test "x$ac_cv_prog_cc_c89" = x
5121then :
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5123printf "%s\n" "none needed" >&6; }
5124else $as_nop
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5126printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4323 CC="$CC $ac_cv_prog_cc_c89" 5127 CC="$CC $ac_cv_prog_cc_c89"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5128fi
4325$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4326esac 5130 ac_prog_cc_stdc=c89
4327if test "x$ac_cv_prog_cc_c89" != xno; then : 5131fi
4328
4329fi 5132fi
4330 5133
4331ac_ext=c 5134ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS' 5135ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu 5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 5139
5140
5141 ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5147printf %s "checking whether $CC understands -c and -o together... " >&6; }
5148if test ${am_cv_prog_cc_c_o+y}
5149then :
5150 printf %s "(cached) " >&6
5151else $as_nop
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154
5155int
5156main (void)
5157{
5158
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163 # Make sure it works both with $CC and with simple cc.
5164 # Following AC_PROG_CC_C_O, we do the test twice because some
5165 # compilers refuse to overwrite an existing .o file with -o,
5166 # though they will create one.
5167 am_cv_prog_cc_c_o=yes
5168 for am_i in 1 2; do
5169 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5170 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } \
5174 && test -f conftest2.$ac_objext; then
5175 : OK
5176 else
5177 am_cv_prog_cc_c_o=no
5178 break
5179 fi
5180 done
5181 rm -f core conftest*
5182 unset am_i
5183fi
5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5185printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5186if test "$am_cv_prog_cc_c_o" != yes; then
5187 # Losing compiler, so override with the script.
5188 # FIXME: It is wrong to rewrite CC.
5189 # But if we don't then we get into trouble of one sort or another.
5190 # A longer-term fix would be to have automake use am__CC in this case,
5191 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5192 CC="$am_aux_dir/compile $CC"
5193fi
5194ac_ext=c
5195ac_cpp='$CPP $CPPFLAGS'
5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199
5200
4337depcc="$CC" am_compiler_list= 5201depcc="$CC" am_compiler_list=
4338 5202
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4340$as_echo_n "checking dependency style of $depcc... " >&6; } 5204printf %s "checking dependency style of $depcc... " >&6; }
4341if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5205if test ${am_cv_CC_dependencies_compiler_type+y}
4342 $as_echo_n "(cached) " >&6 5206then :
4343else 5207 printf %s "(cached) " >&6
5208else $as_nop
4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5209 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 5210 # 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 5211 # 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 5212 # 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 5213 # making a dummy file named 'D' -- because '-MD' means "put the output
4349 # in D'. 5214 # in D".
4350 rm -rf conftest.dir 5215 rm -rf conftest.dir
4351 mkdir conftest.dir 5216 mkdir conftest.dir
4352 # Copy depcomp to subdir because otherwise we won't find it if we're 5217 # Copy depcomp to subdir because otherwise we won't find it if we're
4353 # using a relative directory. 5218 # using a relative directory.
4354 cp "$am_depcomp" conftest.dir 5219 cp "$am_depcomp" conftest.dir
4379 # overwrite some of them when testing with obscure command lines. 5244 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler. 5245 # This happens at least with the AIX C compiler.
4381 : > sub/conftest.c 5246 : > sub/conftest.c
4382 for i in 1 2 3 4 5 6; do 5247 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5248 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4385 # Solaris 8's {/usr,}/bin/sh. 5250 # Solaris 10 /bin/sh.
4386 touch sub/conftst$i.h 5251 echo '/* dummy */' > sub/conftst$i.h
4387 done 5252 done
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4389 5254
4390 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5255 # 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 5256 # 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 5257 # handle '-M -o', and we need to detect this. Also, some Intel
4393 # versions had trouble with output in subdirs 5258 # versions had trouble with output in subdirs.
4394 am__obj=sub/conftest.${OBJEXT-o} 5259 am__obj=sub/conftest.${OBJEXT-o}
4395 am__minus_obj="-o $am__obj" 5260 am__minus_obj="-o $am__obj"
4396 case $depmode in 5261 case $depmode in
4397 gcc) 5262 gcc)
4398 # This depmode causes a compiler race in universal mode. 5263 # This depmode causes a compiler race in universal mode.
4399 test "$am__universal" = false || continue 5264 test "$am__universal" = false || continue
4400 ;; 5265 ;;
4401 nosideeffect) 5266 nosideeffect)
4402 # after this tag, mechanisms are not by side-effect, so they'll 5267 # After this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested 5268 # only be used when explicitly requested.
4404 if test "x$enable_dependency_tracking" = xyes; then 5269 if test "x$enable_dependency_tracking" = xyes; then
4405 continue 5270 continue
4406 else 5271 else
4407 break 5272 break
4408 fi 5273 fi
4409 ;; 5274 ;;
4410 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5275 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4411 # This compiler won't grok `-c -o', but also, the minuso test has 5276 # 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 5277 # not run yet. These depmodes are late enough in the game, and
4413 # so weak that their functioning should not be impacted. 5278 # so weak that their functioning should not be impacted.
4414 am__obj=conftest.${OBJEXT-o} 5279 am__obj=conftest.${OBJEXT-o}
4415 am__minus_obj= 5280 am__minus_obj=
4416 ;; 5281 ;;
4445else 5310else
4446 am_cv_CC_dependencies_compiler_type=none 5311 am_cv_CC_dependencies_compiler_type=none
4447fi 5312fi
4448 5313
4449fi 5314fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4451$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5316printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4452CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4453 5318
4454 if 5319 if
4455 test "x$enable_dependency_tracking" != xno \ 5320 test "x$enable_dependency_tracking" != xno \
4456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4462fi 5327fi
4463 5328
4464 5329
4465 5330
4466# Check whether --with-gnu-ld was given. 5331# Check whether --with-gnu-ld was given.
4467if test "${with_gnu_ld+set}" = set; then : 5332if test ${with_gnu_ld+y}
5333then :
4468 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4469else 5335else $as_nop
4470 with_gnu_ld=no 5336 with_gnu_ld=no
4471fi 5337fi
4472 5338
4473ac_prog=ld 5339ac_prog=ld
4474if test "$GCC" = yes; then 5340if test "$GCC" = yes; then
4475 # Check if gcc -print-prog-name=ld gives a path. 5341 # Check if gcc -print-prog-name=ld gives a path.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4477$as_echo_n "checking for ld used by GCC... " >&6; } 5343printf %s "checking for ld used by GCC... " >&6; }
4478 case $host in 5344 case $host in
4479 *-*-mingw*) 5345 *-*-mingw*)
4480 # gcc leaves a trailing carriage return which upsets mingw 5346 # gcc leaves a trailing carriage return which upsets mingw
4481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4482 *) 5348 *)
4501 # If it is relative, then search for the first ld in PATH. 5367 # If it is relative, then search for the first ld in PATH.
4502 with_gnu_ld=unknown 5368 with_gnu_ld=unknown
4503 ;; 5369 ;;
4504 esac 5370 esac
4505elif test "$with_gnu_ld" = yes; then 5371elif test "$with_gnu_ld" = yes; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4507$as_echo_n "checking for GNU ld... " >&6; } 5373printf %s "checking for GNU ld... " >&6; }
4508else 5374else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4510$as_echo_n "checking for non-GNU ld... " >&6; } 5376printf %s "checking for non-GNU ld... " >&6; }
4511fi 5377fi
4512if ${acl_cv_path_LD+:} false; then : 5378if test ${acl_cv_path_LD+y}
4513 $as_echo_n "(cached) " >&6 5379then :
4514else 5380 printf %s "(cached) " >&6
5381else $as_nop
4515 if test -z "$LD"; then 5382 if test -z "$LD"; then
4516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4517 for ac_dir in $PATH; do 5384 for ac_dir in $PATH; do
4518 test -z "$ac_dir" && ac_dir=. 5385 test -z "$ac_dir" && ac_dir=.
4519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4534fi 5401fi
4535fi 5402fi
4536 5403
4537LD="$acl_cv_path_LD" 5404LD="$acl_cv_path_LD"
4538if test -n "$LD"; then 5405if test -n "$LD"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4540$as_echo "$LD" >&6; } 5407printf "%s\n" "$LD" >&6; }
4541else 5408else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; } 5410printf "%s\n" "no" >&6; }
4544fi 5411fi
4545test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5412test -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 5413{ printf "%s\n" "$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; } 5414printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4548if ${acl_cv_prog_gnu_ld+:} false; then : 5415if test ${acl_cv_prog_gnu_ld+y}
4549 $as_echo_n "(cached) " >&6 5416then :
4550else 5417 printf %s "(cached) " >&6
5418else $as_nop
4551 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5419 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4552if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 5420if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4553 acl_cv_prog_gnu_ld=yes 5421 acl_cv_prog_gnu_ld=yes
4554else 5422else
4555 acl_cv_prog_gnu_ld=no 5423 acl_cv_prog_gnu_ld=no
4556fi 5424fi
4557fi 5425fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4559$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5427printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
4560with_gnu_ld=$acl_cv_prog_gnu_ld 5428with_gnu_ld=$acl_cv_prog_gnu_ld
4561 5429
4562 5430
4563 5431
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5432 { printf "%s\n" "$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; } 5433printf %s "checking for shared library run path origin... " >&6; }
4566if ${acl_cv_rpath+:} false; then : 5434if test ${acl_cv_rpath+y}
4567 $as_echo_n "(cached) " >&6 5435then :
4568else 5436 printf %s "(cached) " >&6
5437else $as_nop
4569 5438
4570 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5439 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 5440 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4572 . ./conftest.sh 5441 . ./conftest.sh
4573 rm -f ./conftest.sh 5442 rm -f ./conftest.sh
4574 acl_cv_rpath=done 5443 acl_cv_rpath=done
4575 5444
4576fi 5445fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4578$as_echo "$acl_cv_rpath" >&6; } 5447printf "%s\n" "$acl_cv_rpath" >&6; }
4579 wl="$acl_cv_wl" 5448 wl="$acl_cv_wl"
4580 libext="$acl_cv_libext" 5449 libext="$acl_cv_libext"
4581 shlibext="$acl_cv_shlibext" 5450 shlibext="$acl_cv_shlibext"
4582 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5451 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4583 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5452 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4584 hardcode_direct="$acl_cv_hardcode_direct" 5453 hardcode_direct="$acl_cv_hardcode_direct"
4585 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5454 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4586 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 5455 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" 5456 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4588 # Check whether --enable-rpath was given. 5457 # Check whether --enable-rpath was given.
4589if test "${enable_rpath+set}" = set; then : 5458if test ${enable_rpath+y}
5459then :
4590 enableval=$enable_rpath; : 5460 enableval=$enable_rpath; :
4591else 5461else $as_nop
4592 enable_rpath=yes 5462 enable_rpath=yes
4593fi 5463fi
4594 5464
4595 5465
4596 5466
4612 exec_prefix="$acl_save_exec_prefix" 5482 exec_prefix="$acl_save_exec_prefix"
4613 prefix="$acl_save_prefix" 5483 prefix="$acl_save_prefix"
4614 5484
4615 5485
4616# Check whether --with-libiconv-prefix was given. 5486# Check whether --with-libiconv-prefix was given.
4617if test "${with_libiconv_prefix+set}" = set; then : 5487if test ${with_libiconv_prefix+y}
5488then :
4618 withval=$with_libiconv_prefix; 5489 withval=$with_libiconv_prefix;
4619 if test "X$withval" = "Xno"; then 5490 if test "X$withval" = "Xno"; then
4620 use_additional=no 5491 use_additional=no
4621 else 5492 else
4622 if test "X$withval" = "X"; then 5493 if test "X$withval" = "X"; then
4990 5861
4991 5862
4992 5863
4993 5864
4994 5865
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4996$as_echo_n "checking whether NLS is requested... " >&6; } 5867printf %s "checking whether NLS is requested... " >&6; }
4997 # Check whether --enable-nls was given. 5868 # Check whether --enable-nls was given.
4998if test "${enable_nls+set}" = set; then : 5869if test ${enable_nls+y}
5870then :
4999 enableval=$enable_nls; USE_NLS=$enableval 5871 enableval=$enable_nls; USE_NLS=$enableval
5000else 5872else $as_nop
5001 USE_NLS=yes 5873 USE_NLS=yes
5002fi 5874fi
5003 5875
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5005$as_echo "$USE_NLS" >&6; } 5877printf "%s\n" "$USE_NLS" >&6; }
5006 5878
5007 5879
5008 5880
5009 LIBINTL= 5881 LIBINTL=
5010 LTLIBINTL= 5882 LTLIBINTL=
5016 5888
5017 5889
5018 5890
5019 5891
5020 5892
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5022$as_echo_n "checking for GNU gettext in libc... " >&6; } 5894printf %s "checking for GNU gettext in libc... " >&6; }
5023if ${gt_cv_func_gnugettext1_libc+:} false; then : 5895if test ${gt_cv_func_gnugettext1_libc+y}
5024 $as_echo_n "(cached) " >&6 5896then :
5025else 5897 printf %s "(cached) " >&6
5898else $as_nop
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027/* end confdefs.h. */ 5900/* end confdefs.h. */
5028#include <libintl.h> 5901#include <libintl.h>
5029extern int _nl_msg_cat_cntr; 5902extern int _nl_msg_cat_cntr;
5030extern int *_nl_domain_bindings; 5903extern int *_nl_domain_bindings;
5031int 5904int
5032main () 5905main (void)
5033{ 5906{
5034bindtextdomain ("", ""); 5907bindtextdomain ("", "");
5035return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 5908return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5036 ; 5909 ;
5037 return 0; 5910 return 0;
5038} 5911}
5039_ACEOF 5912_ACEOF
5040if ac_fn_c_try_link "$LINENO"; then : 5913if ac_fn_c_try_link "$LINENO"
5914then :
5041 gt_cv_func_gnugettext1_libc=yes 5915 gt_cv_func_gnugettext1_libc=yes
5042else 5916else $as_nop
5043 gt_cv_func_gnugettext1_libc=no 5917 gt_cv_func_gnugettext1_libc=no
5044fi 5918fi
5045rm -f core conftest.err conftest.$ac_objext \ 5919rm -f core conftest.err conftest.$ac_objext conftest.beam \
5046 conftest$ac_exeext conftest.$ac_ext 5920 conftest$ac_exeext conftest.$ac_ext
5047fi 5921fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5049$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 5923printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
5050 5924
5051 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 5925 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5052 5926
5053 5927
5054 5928
5077 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5951 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5078 fi 5952 fi
5079 done 5953 done
5080 5954
5081 5955
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5083$as_echo_n "checking for iconv... " >&6; } 5957printf %s "checking for iconv... " >&6; }
5084if ${am_cv_func_iconv+:} false; then : 5958if test ${am_cv_func_iconv+y}
5085 $as_echo_n "(cached) " >&6 5959then :
5086else 5960 printf %s "(cached) " >&6
5961else $as_nop
5087 5962
5088 am_cv_func_iconv="no, consider installing GNU libiconv" 5963 am_cv_func_iconv="no, consider installing GNU libiconv"
5089 am_cv_lib_iconv=no 5964 am_cv_lib_iconv=no
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */ 5966/* end confdefs.h. */
5092#include <stdlib.h> 5967#include <stdlib.h>
5093#include <iconv.h> 5968#include <iconv.h>
5094int 5969int
5095main () 5970main (void)
5096{ 5971{
5097iconv_t cd = iconv_open("",""); 5972iconv_t cd = iconv_open("","");
5098 iconv(cd,NULL,NULL,NULL,NULL); 5973 iconv(cd,NULL,NULL,NULL,NULL);
5099 iconv_close(cd); 5974 iconv_close(cd);
5100 ; 5975 ;
5101 return 0; 5976 return 0;
5102} 5977}
5103_ACEOF 5978_ACEOF
5104if ac_fn_c_try_link "$LINENO"; then : 5979if ac_fn_c_try_link "$LINENO"
5980then :
5105 am_cv_func_iconv=yes 5981 am_cv_func_iconv=yes
5106fi 5982fi
5107rm -f core conftest.err conftest.$ac_objext \ 5983rm -f core conftest.err conftest.$ac_objext conftest.beam \
5108 conftest$ac_exeext conftest.$ac_ext 5984 conftest$ac_exeext conftest.$ac_ext
5109 if test "$am_cv_func_iconv" != yes; then 5985 if test "$am_cv_func_iconv" != yes; then
5110 am_save_LIBS="$LIBS" 5986 am_save_LIBS="$LIBS"
5111 LIBS="$LIBS $LIBICONV" 5987 LIBS="$LIBS $LIBICONV"
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h. */ 5989/* end confdefs.h. */
5114#include <stdlib.h> 5990#include <stdlib.h>
5115#include <iconv.h> 5991#include <iconv.h>
5116int 5992int
5117main () 5993main (void)
5118{ 5994{
5119iconv_t cd = iconv_open("",""); 5995iconv_t cd = iconv_open("","");
5120 iconv(cd,NULL,NULL,NULL,NULL); 5996 iconv(cd,NULL,NULL,NULL,NULL);
5121 iconv_close(cd); 5997 iconv_close(cd);
5122 ; 5998 ;
5123 return 0; 5999 return 0;
5124} 6000}
5125_ACEOF 6001_ACEOF
5126if ac_fn_c_try_link "$LINENO"; then : 6002if ac_fn_c_try_link "$LINENO"
6003then :
5127 am_cv_lib_iconv=yes 6004 am_cv_lib_iconv=yes
5128 am_cv_func_iconv=yes 6005 am_cv_func_iconv=yes
5129fi 6006fi
5130rm -f core conftest.err conftest.$ac_objext \ 6007rm -f core conftest.err conftest.$ac_objext conftest.beam \
5131 conftest$ac_exeext conftest.$ac_ext 6008 conftest$ac_exeext conftest.$ac_ext
5132 LIBS="$am_save_LIBS" 6009 LIBS="$am_save_LIBS"
5133 fi 6010 fi
5134 6011
5135fi 6012fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5137$as_echo "$am_cv_func_iconv" >&6; } 6014printf "%s\n" "$am_cv_func_iconv" >&6; }
5138 if test "$am_cv_func_iconv" = yes; then 6015 if test "$am_cv_func_iconv" = yes; then
5139 6016
5140$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6017printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
5141 6018
5142 fi 6019 fi
5143 if test "$am_cv_lib_iconv" = yes; then 6020 if test "$am_cv_lib_iconv" = yes; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5145$as_echo_n "checking how to link with libiconv... " >&6; } 6022printf %s "checking how to link with libiconv... " >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5147$as_echo "$LIBICONV" >&6; } 6024printf "%s\n" "$LIBICONV" >&6; }
5148 else 6025 else
5149 CPPFLAGS="$am_save_CPPFLAGS" 6026 CPPFLAGS="$am_save_CPPFLAGS"
5150 LIBICONV= 6027 LIBICONV=
5151 LTLIBICONV= 6028 LTLIBICONV=
5152 fi 6029 fi
5169 exec_prefix="$acl_save_exec_prefix" 6046 exec_prefix="$acl_save_exec_prefix"
5170 prefix="$acl_save_prefix" 6047 prefix="$acl_save_prefix"
5171 6048
5172 6049
5173# Check whether --with-libintl-prefix was given. 6050# Check whether --with-libintl-prefix was given.
5174if test "${with_libintl_prefix+set}" = set; then : 6051if test ${with_libintl_prefix+y}
6052then :
5175 withval=$with_libintl_prefix; 6053 withval=$with_libintl_prefix;
5176 if test "X$withval" = "Xno"; then 6054 if test "X$withval" = "Xno"; then
5177 use_additional=no 6055 use_additional=no
5178 else 6056 else
5179 if test "X$withval" = "X"; then 6057 if test "X$withval" = "X"; then
5530 for found_dir in $ltrpathdirs; do 6408 for found_dir in $ltrpathdirs; do
5531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5532 done 6410 done
5533 fi 6411 fi
5534 6412
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5536$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6414printf %s "checking for GNU gettext in libintl... " >&6; }
5537if ${gt_cv_func_gnugettext1_libintl+:} false; then : 6415if test ${gt_cv_func_gnugettext1_libintl+y}
5538 $as_echo_n "(cached) " >&6 6416then :
5539else 6417 printf %s "(cached) " >&6
6418else $as_nop
5540 gt_save_CPPFLAGS="$CPPFLAGS" 6419 gt_save_CPPFLAGS="$CPPFLAGS"
5541 CPPFLAGS="$CPPFLAGS $INCINTL" 6420 CPPFLAGS="$CPPFLAGS $INCINTL"
5542 gt_save_LIBS="$LIBS" 6421 gt_save_LIBS="$LIBS"
5543 LIBS="$LIBS $LIBINTL" 6422 LIBS="$LIBS $LIBINTL"
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549#ifdef __cplusplus 6428#ifdef __cplusplus
5550"C" 6429"C"
5551#endif 6430#endif
5552const char *_nl_expand_alias (); 6431const char *_nl_expand_alias ();
5553int 6432int
5554main () 6433main (void)
5555{ 6434{
5556bindtextdomain ("", ""); 6435bindtextdomain ("", "");
5557return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6436return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5558 ; 6437 ;
5559 return 0; 6438 return 0;
5560} 6439}
5561_ACEOF 6440_ACEOF
5562if ac_fn_c_try_link "$LINENO"; then : 6441if ac_fn_c_try_link "$LINENO"
6442then :
5563 gt_cv_func_gnugettext1_libintl=yes 6443 gt_cv_func_gnugettext1_libintl=yes
5564else 6444else $as_nop
5565 gt_cv_func_gnugettext1_libintl=no 6445 gt_cv_func_gnugettext1_libintl=no
5566fi 6446fi
5567rm -f core conftest.err conftest.$ac_objext \ 6447rm -f core conftest.err conftest.$ac_objext conftest.beam \
5568 conftest$ac_exeext conftest.$ac_ext 6448 conftest$ac_exeext conftest.$ac_ext
5569 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 6449 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5570 LIBS="$LIBS $LIBICONV" 6450 LIBS="$LIBS $LIBICONV"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h. */ 6452/* end confdefs.h. */
5576#ifdef __cplusplus 6456#ifdef __cplusplus
5577"C" 6457"C"
5578#endif 6458#endif
5579const char *_nl_expand_alias (); 6459const char *_nl_expand_alias ();
5580int 6460int
5581main () 6461main (void)
5582{ 6462{
5583bindtextdomain ("", ""); 6463bindtextdomain ("", "");
5584return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6464return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5585 ; 6465 ;
5586 return 0; 6466 return 0;
5587} 6467}
5588_ACEOF 6468_ACEOF
5589if ac_fn_c_try_link "$LINENO"; then : 6469if ac_fn_c_try_link "$LINENO"
6470then :
5590 LIBINTL="$LIBINTL $LIBICONV" 6471 LIBINTL="$LIBINTL $LIBICONV"
5591 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6472 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5592 gt_cv_func_gnugettext1_libintl=yes 6473 gt_cv_func_gnugettext1_libintl=yes
5593 6474
5594fi 6475fi
5595rm -f core conftest.err conftest.$ac_objext \ 6476rm -f core conftest.err conftest.$ac_objext conftest.beam \
5596 conftest$ac_exeext conftest.$ac_ext 6477 conftest$ac_exeext conftest.$ac_ext
5597 fi 6478 fi
5598 CPPFLAGS="$gt_save_CPPFLAGS" 6479 CPPFLAGS="$gt_save_CPPFLAGS"
5599 LIBS="$gt_save_LIBS" 6480 LIBS="$gt_save_LIBS"
5600fi 6481fi
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 6482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5602$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 6483printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
5603 fi 6484 fi
5604 6485
5605 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 6486 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5606 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 6487 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5607 && test "$PACKAGE" != gettext; }; then 6488 && test "$PACKAGE" != gettext; }; then
5615 6496
5616 6497
5617 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6498 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5618 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6499 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5619 6500
5620$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6501printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
5621 6502
5622 else 6503 else
5623 USE_NLS=no 6504 USE_NLS=no
5624 fi 6505 fi
5625 fi 6506 fi
5626 6507
5627 if test "$USE_NLS" = "yes"; then 6508 if test "$USE_NLS" = "yes"; then
5628 6509
5629 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6510 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5630 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 6511 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5632$as_echo_n "checking how to link with libintl... " >&6; } 6513printf %s "checking how to link with libintl... " >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5634$as_echo "$LIBINTL" >&6; } 6515printf "%s\n" "$LIBINTL" >&6; }
5635 6516
5636 for element in $INCINTL; do 6517 for element in $INCINTL; do
5637 haveit= 6518 haveit=
5638 for x in $CPPFLAGS; do 6519 for x in $CPPFLAGS; do
5639 6520
5656 done 6537 done
5657 6538
5658 fi 6539 fi
5659 6540
5660 6541
5661$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6542printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
5662 6543
5663 6544
5664$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6545printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
5665 6546
5666 fi 6547 fi
5667 6548
5668 POSUB=po 6549 POSUB=po
5669 fi 6550 fi
5681 6562
5682# Enable GNU extensions. 6563# Enable GNU extensions.
5683# Define this here, not in acconfig's @TOP@ section, since definitions 6564# Define this here, not in acconfig's @TOP@ section, since definitions
5684# in the latter don't make it into the configure-time tests. 6565# in the latter don't make it into the configure-time tests.
5685 6566
5686$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6567printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5687 6568
5688 6569
5689# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs 6570# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5690 6571
5691ALL_LINGUAS="" 6572ALL_LINGUAS=""
5693ac_ext=c 6574ac_ext=c
5694ac_cpp='$CPP $CPPFLAGS' 6575ac_cpp='$CPP $CPPFLAGS'
5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697ac_compiler_gnu=$ac_cv_c_compiler_gnu 6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6579{ printf "%s\n" "$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; } 6580printf %s "checking how to run the C preprocessor... " >&6; }
5700# On Suns, sometimes $CPP names a directory. 6581# On Suns, sometimes $CPP names a directory.
5701if test -n "$CPP" && test -d "$CPP"; then 6582if test -n "$CPP" && test -d "$CPP"; then
5702 CPP= 6583 CPP=
5703fi 6584fi
5704if test -z "$CPP"; then 6585if test -z "$CPP"; then
5705 if ${ac_cv_prog_CPP+:} false; then : 6586 if test ${ac_cv_prog_CPP+y}
5706 $as_echo_n "(cached) " >&6 6587then :
5707else 6588 printf %s "(cached) " >&6
6589else $as_nop
5708 # Double quotes because CPP needs to be expanded 6590 # Double quotes because $CC needs to be expanded
5709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6591 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5710 do 6592 do
5711 ac_preproc_ok=false 6593 ac_preproc_ok=false
5712for ac_c_preproc_warn_flag in '' yes 6594for ac_c_preproc_warn_flag in '' yes
5713do 6595do
5714 # Use a header file that comes with gcc, so configuring glibc 6596 # Use a header file that comes with gcc, so configuring glibc
5715 # with a fresh cross-compiler works. 6597 # 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, 6598 # 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. 6599 # not just through cpp. "Syntax error" is here to catch this case.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */ 6601/* end confdefs.h. */
5722#ifdef __STDC__
5723# include <limits.h> 6602#include <limits.h>
5724#else
5725# include <assert.h>
5726#endif
5727 Syntax error 6603 Syntax error
5728_ACEOF 6604_ACEOF
5729if ac_fn_c_try_cpp "$LINENO"; then : 6605if ac_fn_c_try_cpp "$LINENO"
6606then :
5730 6607
5731else 6608else $as_nop
5732 # Broken: fails on valid input. 6609 # Broken: fails on valid input.
5733continue 6610continue
5734fi 6611fi
5735rm -f conftest.err conftest.i conftest.$ac_ext 6612rm -f conftest.err conftest.i conftest.$ac_ext
5736 6613
5738 # can be detected and how. 6615 # can be detected and how.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */ 6617/* end confdefs.h. */
5741#include <ac_nonexistent.h> 6618#include <ac_nonexistent.h>
5742_ACEOF 6619_ACEOF
5743if ac_fn_c_try_cpp "$LINENO"; then : 6620if ac_fn_c_try_cpp "$LINENO"
6621then :
5744 # Broken: success on invalid input. 6622 # Broken: success on invalid input.
5745continue 6623continue
5746else 6624else $as_nop
5747 # Passes both tests. 6625 # Passes both tests.
5748ac_preproc_ok=: 6626ac_preproc_ok=:
5749break 6627break
5750fi 6628fi
5751rm -f conftest.err conftest.i conftest.$ac_ext 6629rm -f conftest.err conftest.i conftest.$ac_ext
5752 6630
5753done 6631done
5754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755rm -f conftest.i conftest.err conftest.$ac_ext 6633rm -f conftest.i conftest.err conftest.$ac_ext
5756if $ac_preproc_ok; then : 6634if $ac_preproc_ok
6635then :
5757 break 6636 break
5758fi 6637fi
5759 6638
5760 done 6639 done
5761 ac_cv_prog_CPP=$CPP 6640 ac_cv_prog_CPP=$CPP
5763fi 6642fi
5764 CPP=$ac_cv_prog_CPP 6643 CPP=$ac_cv_prog_CPP
5765else 6644else
5766 ac_cv_prog_CPP=$CPP 6645 ac_cv_prog_CPP=$CPP
5767fi 6646fi
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5769$as_echo "$CPP" >&6; } 6648printf "%s\n" "$CPP" >&6; }
5770ac_preproc_ok=false 6649ac_preproc_ok=false
5771for ac_c_preproc_warn_flag in '' yes 6650for ac_c_preproc_warn_flag in '' yes
5772do 6651do
5773 # Use a header file that comes with gcc, so configuring glibc 6652 # Use a header file that comes with gcc, so configuring glibc
5774 # with a fresh cross-compiler works. 6653 # 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, 6654 # 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. 6655 # not just through cpp. "Syntax error" is here to catch this case.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */ 6657/* end confdefs.h. */
5781#ifdef __STDC__
5782# include <limits.h> 6658#include <limits.h>
5783#else
5784# include <assert.h>
5785#endif
5786 Syntax error 6659 Syntax error
5787_ACEOF 6660_ACEOF
5788if ac_fn_c_try_cpp "$LINENO"; then : 6661if ac_fn_c_try_cpp "$LINENO"
6662then :
5789 6663
5790else 6664else $as_nop
5791 # Broken: fails on valid input. 6665 # Broken: fails on valid input.
5792continue 6666continue
5793fi 6667fi
5794rm -f conftest.err conftest.i conftest.$ac_ext 6668rm -f conftest.err conftest.i conftest.$ac_ext
5795 6669
5797 # can be detected and how. 6671 # can be detected and how.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */ 6673/* end confdefs.h. */
5800#include <ac_nonexistent.h> 6674#include <ac_nonexistent.h>
5801_ACEOF 6675_ACEOF
5802if ac_fn_c_try_cpp "$LINENO"; then : 6676if ac_fn_c_try_cpp "$LINENO"
6677then :
5803 # Broken: success on invalid input. 6678 # Broken: success on invalid input.
5804continue 6679continue
5805else 6680else $as_nop
5806 # Passes both tests. 6681 # Passes both tests.
5807ac_preproc_ok=: 6682ac_preproc_ok=:
5808break 6683break
5809fi 6684fi
5810rm -f conftest.err conftest.i conftest.$ac_ext 6685rm -f conftest.err conftest.i conftest.$ac_ext
5811 6686
5812done 6687done
5813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5814rm -f conftest.i conftest.err conftest.$ac_ext 6689rm -f conftest.i conftest.err conftest.$ac_ext
5815if $ac_preproc_ok; then : 6690if $ac_preproc_ok
6691then :
5816 6692
5817else 6693else $as_nop
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6695printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5820as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6696as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5821See \`config.log' for more details" "$LINENO" 5; } 6697See \`config.log' for more details" "$LINENO" 5; }
5822fi 6698fi
5823 6699
5824ac_ext=c 6700ac_ext=c
5825ac_cpp='$CPP $CPPFLAGS' 6701ac_cpp='$CPP $CPPFLAGS'
5826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_c_compiler_gnu 6704ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706
6707
6708
6709
6710
5829 6711
5830ac_ext=cpp 6712ac_ext=cpp
5831ac_cpp='$CXXCPP $CPPFLAGS' 6713ac_cpp='$CXXCPP $CPPFLAGS'
5832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835if test -z "$CXX"; then 6717if test -z "$CXX"; then
5836 if test -n "$CCC"; then 6718 if test -n "$CCC"; then
5837 CXX=$CCC 6719 CXX=$CCC
5838 else 6720 else
5839 if test -n "$ac_tool_prefix"; then 6721 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 6722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5841 do 6723 do
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; } 6727printf %s "checking for $ac_word... " >&6; }
5846if ${ac_cv_prog_CXX+:} false; then : 6728if test ${ac_cv_prog_CXX+y}
5847 $as_echo_n "(cached) " >&6 6729then :
5848else 6730 printf %s "(cached) " >&6
6731else $as_nop
5849 if test -n "$CXX"; then 6732 if test -n "$CXX"; then
5850 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5851else 6734else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH 6736for as_dir in $PATH
5854do 6737do
5855 IFS=$as_save_IFS 6738 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=. 6739 case $as_dir in #(((
6740 '') as_dir=./ ;;
6741 */) ;;
6742 *) as_dir=$as_dir/ ;;
6743 esac
5857 for ac_exec_ext in '' $ac_executable_extensions; do 6744 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6746 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 6747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5861 break 2 6748 break 2
5862 fi 6749 fi
5863done 6750done
5864 done 6751 done
5865IFS=$as_save_IFS 6752IFS=$as_save_IFS
5866 6753
5867fi 6754fi
5868fi 6755fi
5869CXX=$ac_cv_prog_CXX 6756CXX=$ac_cv_prog_CXX
5870if test -n "$CXX"; then 6757if test -n "$CXX"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5872$as_echo "$CXX" >&6; } 6759printf "%s\n" "$CXX" >&6; }
5873else 6760else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875$as_echo "no" >&6; } 6762printf "%s\n" "no" >&6; }
5876fi 6763fi
5877 6764
5878 6765
5879 test -n "$CXX" && break 6766 test -n "$CXX" && break
5880 done 6767 done
5881fi 6768fi
5882if test -z "$CXX"; then 6769if test -z "$CXX"; then
5883 ac_ct_CXX=$CXX 6770 ac_ct_CXX=$CXX
5884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6771 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5885do 6772do
5886 # Extract the first word of "$ac_prog", so it can be a program name with args. 6773 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887set dummy $ac_prog; ac_word=$2 6774set dummy $ac_prog; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; } 6776printf %s "checking for $ac_word... " >&6; }
5890if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6777if test ${ac_cv_prog_ac_ct_CXX+y}
5891 $as_echo_n "(cached) " >&6 6778then :
5892else 6779 printf %s "(cached) " >&6
6780else $as_nop
5893 if test -n "$ac_ct_CXX"; then 6781 if test -n "$ac_ct_CXX"; then
5894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6782 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5895else 6783else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH 6785for as_dir in $PATH
5898do 6786do
5899 IFS=$as_save_IFS 6787 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=. 6788 case $as_dir in #(((
6789 '') as_dir=./ ;;
6790 */) ;;
6791 *) as_dir=$as_dir/ ;;
6792 esac
5901 for ac_exec_ext in '' $ac_executable_extensions; do 6793 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_CXX="$ac_prog" 6795 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 6796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5905 break 2 6797 break 2
5906 fi 6798 fi
5907done 6799done
5908 done 6800 done
5909IFS=$as_save_IFS 6801IFS=$as_save_IFS
5910 6802
5911fi 6803fi
5912fi 6804fi
5913ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6805ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5914if test -n "$ac_ct_CXX"; then 6806if test -n "$ac_ct_CXX"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5916$as_echo "$ac_ct_CXX" >&6; } 6808printf "%s\n" "$ac_ct_CXX" >&6; }
5917else 6809else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; } 6811printf "%s\n" "no" >&6; }
5920fi 6812fi
5921 6813
5922 6814
5923 test -n "$ac_ct_CXX" && break 6815 test -n "$ac_ct_CXX" && break
5924done 6816done
5926 if test "x$ac_ct_CXX" = x; then 6818 if test "x$ac_ct_CXX" = x; then
5927 CXX="g++" 6819 CXX="g++"
5928 else 6820 else
5929 case $cross_compiling:$ac_tool_warned in 6821 case $cross_compiling:$ac_tool_warned in
5930yes:) 6822yes:)
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6823{ printf "%s\n" "$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;} 6824printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933ac_tool_warned=yes ;; 6825ac_tool_warned=yes ;;
5934esac 6826esac
5935 CXX=$ac_ct_CXX 6827 CXX=$ac_ct_CXX
5936 fi 6828 fi
5937fi 6829fi
5938 6830
5939 fi 6831 fi
5940fi 6832fi
5941# Provide some information about the compiler. 6833# Provide some information about the compiler.
5942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6834printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5943set X $ac_compile 6835set X $ac_compile
5944ac_compiler=$2 6836ac_compiler=$2
5945for ac_option in --version -v -V -qversion; do 6837for ac_option in --version -v -V -qversion; do
5946 { { ac_try="$ac_compiler $ac_option >&5" 6838 { { ac_try="$ac_compiler $ac_option >&5"
5947case "(($ac_try" in 6839case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;; 6841 *) ac_try_echo=$ac_try;;
5950esac 6842esac
5951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5952$as_echo "$ac_try_echo"; } >&5 6844printf "%s\n" "$ac_try_echo"; } >&5
5953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5954 ac_status=$? 6846 ac_status=$?
5955 if test -s conftest.err; then 6847 if test -s conftest.err; then
5956 sed '10a\ 6848 sed '10a\
5957... rest of stderr output deleted ... 6849... rest of stderr output deleted ...
5958 10q' conftest.err >conftest.er1 6850 10q' conftest.err >conftest.er1
5959 cat conftest.er1 >&5 6851 cat conftest.er1 >&5
5960 fi 6852 fi
5961 rm -f conftest.er1 conftest.err 6853 rm -f conftest.er1 conftest.err
5962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963 test $ac_status = 0; } 6855 test $ac_status = 0; }
5964done 6856done
5965 6857
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5967$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6859printf %s "checking whether the compiler supports GNU C++... " >&6; }
5968if ${ac_cv_cxx_compiler_gnu+:} false; then : 6860if test ${ac_cv_cxx_compiler_gnu+y}
5969 $as_echo_n "(cached) " >&6 6861then :
5970else 6862 printf %s "(cached) " >&6
6863else $as_nop
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h. */ 6865/* end confdefs.h. */
5973 6866
5974int 6867int
5975main () 6868main (void)
5976{ 6869{
5977#ifndef __GNUC__ 6870#ifndef __GNUC__
5978 choke me 6871 choke me
5979#endif 6872#endif
5980 6873
5981 ; 6874 ;
5982 return 0; 6875 return 0;
5983} 6876}
5984_ACEOF 6877_ACEOF
5985if ac_fn_cxx_try_compile "$LINENO"; then : 6878if ac_fn_cxx_try_compile "$LINENO"
6879then :
5986 ac_compiler_gnu=yes 6880 ac_compiler_gnu=yes
5987else 6881else $as_nop
5988 ac_compiler_gnu=no 6882 ac_compiler_gnu=no
5989fi 6883fi
5990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5991ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6885ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5992 6886
5993fi 6887fi
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5995$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6889printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891
5996if test $ac_compiler_gnu = yes; then 6892if test $ac_compiler_gnu = yes; then
5997 GXX=yes 6893 GXX=yes
5998else 6894else
5999 GXX= 6895 GXX=
6000fi 6896fi
6001ac_test_CXXFLAGS=${CXXFLAGS+set} 6897ac_test_CXXFLAGS=${CXXFLAGS+y}
6002ac_save_CXXFLAGS=$CXXFLAGS 6898ac_save_CXXFLAGS=$CXXFLAGS
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6004$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6900printf %s "checking whether $CXX accepts -g... " >&6; }
6005if ${ac_cv_prog_cxx_g+:} false; then : 6901if test ${ac_cv_prog_cxx_g+y}
6006 $as_echo_n "(cached) " >&6 6902then :
6007else 6903 printf %s "(cached) " >&6
6904else $as_nop
6008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6905 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6009 ac_cxx_werror_flag=yes 6906 ac_cxx_werror_flag=yes
6010 ac_cv_prog_cxx_g=no 6907 ac_cv_prog_cxx_g=no
6011 CXXFLAGS="-g" 6908 CXXFLAGS="-g"
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h. */ 6910/* end confdefs.h. */
6014 6911
6015int 6912int
6016main () 6913main (void)
6017{ 6914{
6018 6915
6019 ; 6916 ;
6020 return 0; 6917 return 0;
6021} 6918}
6022_ACEOF 6919_ACEOF
6023if ac_fn_cxx_try_compile "$LINENO"; then : 6920if ac_fn_cxx_try_compile "$LINENO"
6921then :
6024 ac_cv_prog_cxx_g=yes 6922 ac_cv_prog_cxx_g=yes
6025else 6923else $as_nop
6026 CXXFLAGS="" 6924 CXXFLAGS=""
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h. */ 6926/* end confdefs.h. */
6029 6927
6030int 6928int
6031main () 6929main (void)
6032{ 6930{
6033 6931
6034 ; 6932 ;
6035 return 0; 6933 return 0;
6036} 6934}
6037_ACEOF 6935_ACEOF
6038if ac_fn_cxx_try_compile "$LINENO"; then : 6936if ac_fn_cxx_try_compile "$LINENO"
6937then :
6039 6938
6040else 6939else $as_nop
6041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6042 CXXFLAGS="-g" 6941 CXXFLAGS="-g"
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h. */ 6943/* end confdefs.h. */
6045 6944
6046int 6945int
6047main () 6946main (void)
6048{ 6947{
6049 6948
6050 ; 6949 ;
6051 return 0; 6950 return 0;
6052} 6951}
6053_ACEOF 6952_ACEOF
6054if ac_fn_cxx_try_compile "$LINENO"; then : 6953if ac_fn_cxx_try_compile "$LINENO"
6954then :
6055 ac_cv_prog_cxx_g=yes 6955 ac_cv_prog_cxx_g=yes
6056fi 6956fi
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6058fi 6958fi
6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi 6960fi
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6063fi 6963fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6065$as_echo "$ac_cv_prog_cxx_g" >&6; } 6965printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6066if test "$ac_test_CXXFLAGS" = set; then 6966if test $ac_test_CXXFLAGS; then
6067 CXXFLAGS=$ac_save_CXXFLAGS 6967 CXXFLAGS=$ac_save_CXXFLAGS
6068elif test $ac_cv_prog_cxx_g = yes; then 6968elif test $ac_cv_prog_cxx_g = yes; then
6069 if test "$GXX" = yes; then 6969 if test "$GXX" = yes; then
6070 CXXFLAGS="-g -O2" 6970 CXXFLAGS="-g -O2"
6071 else 6971 else
6076 CXXFLAGS="-O2" 6976 CXXFLAGS="-O2"
6077 else 6977 else
6078 CXXFLAGS= 6978 CXXFLAGS=
6079 fi 6979 fi
6080fi 6980fi
6981ac_prog_cxx_stdcxx=no
6982if test x$ac_prog_cxx_stdcxx = xno
6983then :
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6985printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6986if test ${ac_cv_prog_cxx_11+y}
6987then :
6988 printf %s "(cached) " >&6
6989else $as_nop
6990 ac_cv_prog_cxx_11=no
6991ac_save_CXX=$CXX
6992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h. */
6994$ac_cxx_conftest_cxx11_program
6995_ACEOF
6996for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6997do
6998 CXX="$ac_save_CXX $ac_arg"
6999 if ac_fn_cxx_try_compile "$LINENO"
7000then :
7001 ac_cv_prog_cxx_cxx11=$ac_arg
7002fi
7003rm -f core conftest.err conftest.$ac_objext conftest.beam
7004 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
7005done
7006rm -f conftest.$ac_ext
7007CXX=$ac_save_CXX
7008fi
7009
7010if test "x$ac_cv_prog_cxx_cxx11" = xno
7011then :
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7013printf "%s\n" "unsupported" >&6; }
7014else $as_nop
7015 if test "x$ac_cv_prog_cxx_cxx11" = x
7016then :
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7018printf "%s\n" "none needed" >&6; }
7019else $as_nop
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
7021printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
7022 CXX="$CXX $ac_cv_prog_cxx_cxx11"
7023fi
7024 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
7025 ac_prog_cxx_stdcxx=cxx11
7026fi
7027fi
7028if test x$ac_prog_cxx_stdcxx = xno
7029then :
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
7031printf %s "checking for $CXX option to enable C++98 features... " >&6; }
7032if test ${ac_cv_prog_cxx_98+y}
7033then :
7034 printf %s "(cached) " >&6
7035else $as_nop
7036 ac_cv_prog_cxx_98=no
7037ac_save_CXX=$CXX
7038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h. */
7040$ac_cxx_conftest_cxx98_program
7041_ACEOF
7042for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
7043do
7044 CXX="$ac_save_CXX $ac_arg"
7045 if ac_fn_cxx_try_compile "$LINENO"
7046then :
7047 ac_cv_prog_cxx_cxx98=$ac_arg
7048fi
7049rm -f core conftest.err conftest.$ac_objext conftest.beam
7050 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
7051done
7052rm -f conftest.$ac_ext
7053CXX=$ac_save_CXX
7054fi
7055
7056if test "x$ac_cv_prog_cxx_cxx98" = xno
7057then :
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7059printf "%s\n" "unsupported" >&6; }
7060else $as_nop
7061 if test "x$ac_cv_prog_cxx_cxx98" = x
7062then :
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7064printf "%s\n" "none needed" >&6; }
7065else $as_nop
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
7067printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
7068 CXX="$CXX $ac_cv_prog_cxx_cxx98"
7069fi
7070 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
7071 ac_prog_cxx_stdcxx=cxx98
7072fi
7073fi
7074
6081ac_ext=c 7075ac_ext=c
6082ac_cpp='$CPP $CPPFLAGS' 7076ac_cpp='$CPP $CPPFLAGS'
6083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_c_compiler_gnu 7079ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 7080
6087depcc="$CXX" am_compiler_list= 7081depcc="$CXX" am_compiler_list=
6088 7082
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6090$as_echo_n "checking dependency style of $depcc... " >&6; } 7084printf %s "checking dependency style of $depcc... " >&6; }
6091if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7085if test ${am_cv_CXX_dependencies_compiler_type+y}
6092 $as_echo_n "(cached) " >&6 7086then :
6093else 7087 printf %s "(cached) " >&6
7088else $as_nop
6094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7089 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 7090 # 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 7091 # 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 7092 # 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 7093 # making a dummy file named 'D' -- because '-MD' means "put the output
6099 # in D'. 7094 # in D".
6100 rm -rf conftest.dir 7095 rm -rf conftest.dir
6101 mkdir conftest.dir 7096 mkdir conftest.dir
6102 # Copy depcomp to subdir because otherwise we won't find it if we're 7097 # Copy depcomp to subdir because otherwise we won't find it if we're
6103 # using a relative directory. 7098 # using a relative directory.
6104 cp "$am_depcomp" conftest.dir 7099 cp "$am_depcomp" conftest.dir
6129 # overwrite some of them when testing with obscure command lines. 7124 # overwrite some of them when testing with obscure command lines.
6130 # This happens at least with the AIX C compiler. 7125 # This happens at least with the AIX C compiler.
6131 : > sub/conftest.c 7126 : > sub/conftest.c
6132 for i in 1 2 3 4 5 6; do 7127 for i in 1 2 3 4 5 6; do
6133 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6134 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6135 # Solaris 8's {/usr,}/bin/sh. 7130 # Solaris 10 /bin/sh.
6136 touch sub/conftst$i.h 7131 echo '/* dummy */' > sub/conftst$i.h
6137 done 7132 done
6138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6139 7134
6140 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7135 # 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 7136 # 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 7137 # handle '-M -o', and we need to detect this. Also, some Intel
6143 # versions had trouble with output in subdirs 7138 # versions had trouble with output in subdirs.
6144 am__obj=sub/conftest.${OBJEXT-o} 7139 am__obj=sub/conftest.${OBJEXT-o}
6145 am__minus_obj="-o $am__obj" 7140 am__minus_obj="-o $am__obj"
6146 case $depmode in 7141 case $depmode in
6147 gcc) 7142 gcc)
6148 # This depmode causes a compiler race in universal mode. 7143 # This depmode causes a compiler race in universal mode.
6149 test "$am__universal" = false || continue 7144 test "$am__universal" = false || continue
6150 ;; 7145 ;;
6151 nosideeffect) 7146 nosideeffect)
6152 # after this tag, mechanisms are not by side-effect, so they'll 7147 # After this tag, mechanisms are not by side-effect, so they'll
6153 # only be used when explicitly requested 7148 # only be used when explicitly requested.
6154 if test "x$enable_dependency_tracking" = xyes; then 7149 if test "x$enable_dependency_tracking" = xyes; then
6155 continue 7150 continue
6156 else 7151 else
6157 break 7152 break
6158 fi 7153 fi
6159 ;; 7154 ;;
6160 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6161 # This compiler won't grok `-c -o', but also, the minuso test has 7156 # 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 7157 # not run yet. These depmodes are late enough in the game, and
6163 # so weak that their functioning should not be impacted. 7158 # so weak that their functioning should not be impacted.
6164 am__obj=conftest.${OBJEXT-o} 7159 am__obj=conftest.${OBJEXT-o}
6165 am__minus_obj= 7160 am__minus_obj=
6166 ;; 7161 ;;
6195else 7190else
6196 am_cv_CXX_dependencies_compiler_type=none 7191 am_cv_CXX_dependencies_compiler_type=none
6197fi 7192fi
6198 7193
6199fi 7194fi
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6201$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7196printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6202CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7197CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6203 7198
6204 if 7199 if
6205 test "x$enable_dependency_tracking" != xno \ 7200 test "x$enable_dependency_tracking" != xno \
6206 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7201 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6211 am__fastdepCXX_FALSE= 7206 am__fastdepCXX_FALSE=
6212fi 7207fi
6213 7208
6214 7209
6215 7210
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7211{ printf "%s\n" "$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; } 7212printf %s "checking for grep that handles long lines and -e... " >&6; }
6218if ${ac_cv_path_GREP+:} false; then : 7213if test ${ac_cv_path_GREP+y}
6219 $as_echo_n "(cached) " >&6 7214then :
6220else 7215 printf %s "(cached) " >&6
7216else $as_nop
6221 if test -z "$GREP"; then 7217 if test -z "$GREP"; then
6222 ac_path_GREP_found=false 7218 ac_path_GREP_found=false
6223 # Loop through the user's path and test for each of PROGNAME-LIST 7219 # Loop through the user's path and test for each of PROGNAME-LIST
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6226do 7222do
6227 IFS=$as_save_IFS 7223 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=. 7224 case $as_dir in #(((
7225 '') as_dir=./ ;;
7226 */) ;;
7227 *) as_dir=$as_dir/ ;;
7228 esac
6229 for ac_prog in grep ggrep; do 7229 for ac_prog in grep ggrep
7230 do
6230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 for ac_exec_ext in '' $ac_executable_extensions; do
6231 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7232 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6232 as_fn_executable_p "$ac_path_GREP" || continue 7233 as_fn_executable_p "$ac_path_GREP" || continue
6233# Check for GNU ac_path_GREP and select it if it is found. 7234# Check for GNU ac_path_GREP and select it if it is found.
6234 # Check for GNU $ac_path_GREP 7235 # Check for GNU $ac_path_GREP
6235case `"$ac_path_GREP" --version 2>&1` in 7236case `"$ac_path_GREP" --version 2>&1` in
6236*GNU*) 7237*GNU*)
6237 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6238*) 7239*)
6239 ac_count=0 7240 ac_count=0
6240 $as_echo_n 0123456789 >"conftest.in" 7241 printf %s 0123456789 >"conftest.in"
6241 while : 7242 while :
6242 do 7243 do
6243 cat "conftest.in" "conftest.in" >"conftest.tmp" 7244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6244 mv "conftest.tmp" "conftest.in" 7245 mv "conftest.tmp" "conftest.in"
6245 cp "conftest.in" "conftest.nl" 7246 cp "conftest.in" "conftest.nl"
6246 $as_echo 'GREP' >> "conftest.nl" 7247 printf "%s\n" 'GREP' >> "conftest.nl"
6247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7248 "$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 7249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6249 as_fn_arith $ac_count + 1 && ac_count=$as_val 7250 as_fn_arith $ac_count + 1 && ac_count=$as_val
6250 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7251 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 7252 # Best one so far, save it but keep looking for a better one
6269else 7270else
6270 ac_cv_path_GREP=$GREP 7271 ac_cv_path_GREP=$GREP
6271fi 7272fi
6272 7273
6273fi 7274fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6275$as_echo "$ac_cv_path_GREP" >&6; } 7276printf "%s\n" "$ac_cv_path_GREP" >&6; }
6276 GREP="$ac_cv_path_GREP" 7277 GREP="$ac_cv_path_GREP"
6277 7278
6278 7279
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6280$as_echo_n "checking for egrep... " >&6; } 7281printf %s "checking for egrep... " >&6; }
6281if ${ac_cv_path_EGREP+:} false; then : 7282if test ${ac_cv_path_EGREP+y}
6282 $as_echo_n "(cached) " >&6 7283then :
6283else 7284 printf %s "(cached) " >&6
7285else $as_nop
6284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6285 then ac_cv_path_EGREP="$GREP -E" 7287 then ac_cv_path_EGREP="$GREP -E"
6286 else 7288 else
6287 if test -z "$EGREP"; then 7289 if test -z "$EGREP"; then
6288 ac_path_EGREP_found=false 7290 ac_path_EGREP_found=false
6289 # Loop through the user's path and test for each of PROGNAME-LIST 7291 # Loop through the user's path and test for each of PROGNAME-LIST
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6292do 7294do
6293 IFS=$as_save_IFS 7295 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=. 7296 case $as_dir in #(((
7297 '') as_dir=./ ;;
7298 */) ;;
7299 *) as_dir=$as_dir/ ;;
7300 esac
6295 for ac_prog in egrep; do 7301 for ac_prog in egrep
7302 do
6296 for ac_exec_ext in '' $ac_executable_extensions; do 7303 for ac_exec_ext in '' $ac_executable_extensions; do
6297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7304 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6298 as_fn_executable_p "$ac_path_EGREP" || continue 7305 as_fn_executable_p "$ac_path_EGREP" || continue
6299# Check for GNU ac_path_EGREP and select it if it is found. 7306# Check for GNU ac_path_EGREP and select it if it is found.
6300 # Check for GNU $ac_path_EGREP 7307 # Check for GNU $ac_path_EGREP
6301case `"$ac_path_EGREP" --version 2>&1` in 7308case `"$ac_path_EGREP" --version 2>&1` in
6302*GNU*) 7309*GNU*)
6303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6304*) 7311*)
6305 ac_count=0 7312 ac_count=0
6306 $as_echo_n 0123456789 >"conftest.in" 7313 printf %s 0123456789 >"conftest.in"
6307 while : 7314 while :
6308 do 7315 do
6309 cat "conftest.in" "conftest.in" >"conftest.tmp" 7316 cat "conftest.in" "conftest.in" >"conftest.tmp"
6310 mv "conftest.tmp" "conftest.in" 7317 mv "conftest.tmp" "conftest.in"
6311 cp "conftest.in" "conftest.nl" 7318 cp "conftest.in" "conftest.nl"
6312 $as_echo 'EGREP' >> "conftest.nl" 7319 printf "%s\n" 'EGREP' >> "conftest.nl"
6313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6315 as_fn_arith $ac_count + 1 && ac_count=$as_val 7322 as_fn_arith $ac_count + 1 && ac_count=$as_val
6316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7323 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 7324 # Best one so far, save it but keep looking for a better one
6336 ac_cv_path_EGREP=$EGREP 7343 ac_cv_path_EGREP=$EGREP
6337fi 7344fi
6338 7345
6339 fi 7346 fi
6340fi 7347fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6342$as_echo "$ac_cv_path_EGREP" >&6; } 7349printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6343 EGREP="$ac_cv_path_EGREP" 7350 EGREP="$ac_cv_path_EGREP"
6344 7351
6345 7352
6346if test $ac_cv_c_compiler_gnu = yes; then 7353if test $ac_cv_c_compiler_gnu = yes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6348$as_echo_n "checking whether $CC needs -traditional... " >&6; } 7355printf %s "checking whether $CC needs -traditional... " >&6; }
6349if ${ac_cv_prog_gcc_traditional+:} false; then : 7356if test ${ac_cv_prog_gcc_traditional+y}
6350 $as_echo_n "(cached) " >&6 7357then :
6351else 7358 printf %s "(cached) " >&6
7359else $as_nop
6352 ac_pattern="Autoconf.*'x'" 7360 ac_pattern="Autoconf.*'x'"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */ 7362/* end confdefs.h. */
6355#include <sgtty.h> 7363#include <sgtty.h>
6356Autoconf TIOCGETP 7364Autoconf TIOCGETP
6357_ACEOF 7365_ACEOF
6358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7367 $EGREP "$ac_pattern" >/dev/null 2>&1
7368then :
6360 ac_cv_prog_gcc_traditional=yes 7369 ac_cv_prog_gcc_traditional=yes
6361else 7370else $as_nop
6362 ac_cv_prog_gcc_traditional=no 7371 ac_cv_prog_gcc_traditional=no
6363fi 7372fi
6364rm -f conftest* 7373rm -rf conftest*
6365 7374
6366 7375
6367 if test $ac_cv_prog_gcc_traditional = no; then 7376 if test $ac_cv_prog_gcc_traditional = no; then
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */ 7378/* end confdefs.h. */
6370#include <termio.h> 7379#include <termio.h>
6371Autoconf TCGETA 7380Autoconf TCGETA
6372_ACEOF 7381_ACEOF
6373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6374 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7383 $EGREP "$ac_pattern" >/dev/null 2>&1
7384then :
6375 ac_cv_prog_gcc_traditional=yes 7385 ac_cv_prog_gcc_traditional=yes
6376fi 7386fi
6377rm -f conftest* 7387rm -rf conftest*
6378 7388
6379 fi 7389 fi
6380fi 7390fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6382$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 7392printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
6383 if test $ac_cv_prog_gcc_traditional = yes; then 7393 if test $ac_cv_prog_gcc_traditional = yes; then
6384 CC="$CC -traditional" 7394 CC="$CC -traditional"
6385 fi 7395 fi
6386fi 7396fi
6387 7397
6388for ac_prog in gawk mawk nawk awk 7398for ac_prog in gawk mawk nawk awk
6389do 7399do
6390 # Extract the first word of "$ac_prog", so it can be a program name with args. 7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
6391set dummy $ac_prog; ac_word=$2 7401set dummy $ac_prog; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; } 7403printf %s "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_AWK+:} false; then : 7404if test ${ac_cv_prog_AWK+y}
6395 $as_echo_n "(cached) " >&6 7405then :
6396else 7406 printf %s "(cached) " >&6
7407else $as_nop
6397 if test -n "$AWK"; then 7408 if test -n "$AWK"; then
6398 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6399else 7410else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH 7412for as_dir in $PATH
6402do 7413do
6403 IFS=$as_save_IFS 7414 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=. 7415 case $as_dir in #(((
7416 '') as_dir=./ ;;
7417 */) ;;
7418 *) as_dir=$as_dir/ ;;
7419 esac
6405 for ac_exec_ext in '' $ac_executable_extensions; do 7420 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_AWK="$ac_prog" 7422 ac_cv_prog_AWK="$ac_prog"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6409 break 2 7424 break 2
6410 fi 7425 fi
6411done 7426done
6412 done 7427 done
6413IFS=$as_save_IFS 7428IFS=$as_save_IFS
6414 7429
6415fi 7430fi
6416fi 7431fi
6417AWK=$ac_cv_prog_AWK 7432AWK=$ac_cv_prog_AWK
6418if test -n "$AWK"; then 7433if test -n "$AWK"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6420$as_echo "$AWK" >&6; } 7435printf "%s\n" "$AWK" >&6; }
6421else 7436else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; } 7438printf "%s\n" "no" >&6; }
6424fi 7439fi
6425 7440
6426 7441
6427 test -n "$AWK" && break 7442 test -n "$AWK" && break
6428done 7443done
6429 7444
6430 7445
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6432$as_echo_n "checking whether ln -s works... " >&6; } 7447printf %s "checking whether ln -s works... " >&6; }
6433LN_S=$as_ln_s 7448LN_S=$as_ln_s
6434if test "$LN_S" = "ln -s"; then 7449if test "$LN_S" = "ln -s"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436$as_echo "yes" >&6; } 7451printf "%s\n" "yes" >&6; }
6437else 7452else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6439$as_echo "no, using $LN_S" >&6; } 7454printf "%s\n" "no, using $LN_S" >&6; }
6440fi 7455fi
6441 7456
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6443$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7458printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6444set x ${MAKE-make} 7459set x ${MAKE-make}
6445ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7460ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6446if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7461if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6447 $as_echo_n "(cached) " >&6 7462then :
6448else 7463 printf %s "(cached) " >&6
7464else $as_nop
6449 cat >conftest.make <<\_ACEOF 7465 cat >conftest.make <<\_ACEOF
6450SHELL = /bin/sh 7466SHELL = /bin/sh
6451all: 7467all:
6452 @echo '@@@%%%=$(MAKE)=@@@%%%' 7468 @echo '@@@%%%=$(MAKE)=@@@%%%'
6453_ACEOF 7469_ACEOF
6459 eval ac_cv_prog_make_${ac_make}_set=no;; 7475 eval ac_cv_prog_make_${ac_make}_set=no;;
6460esac 7476esac
6461rm -f conftest.make 7477rm -f conftest.make
6462fi 7478fi
6463if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7479if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6465$as_echo "yes" >&6; } 7481printf "%s\n" "yes" >&6; }
6466 SET_MAKE= 7482 SET_MAKE=
6467else 7483else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469$as_echo "no" >&6; } 7485printf "%s\n" "no" >&6; }
6470 SET_MAKE="MAKE=${MAKE-make}" 7486 SET_MAKE="MAKE=${MAKE-make}"
6471fi 7487fi
6472 7488
6473if test -n "$ac_tool_prefix"; then 7489if 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. 7490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6475set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7491set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477$as_echo_n "checking for $ac_word... " >&6; } 7493printf %s "checking for $ac_word... " >&6; }
6478if ${ac_cv_prog_RANLIB+:} false; then : 7494if test ${ac_cv_prog_RANLIB+y}
6479 $as_echo_n "(cached) " >&6 7495then :
6480else 7496 printf %s "(cached) " >&6
7497else $as_nop
6481 if test -n "$RANLIB"; then 7498 if test -n "$RANLIB"; then
6482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6483else 7500else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH 7502for as_dir in $PATH
6486do 7503do
6487 IFS=$as_save_IFS 7504 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=. 7505 case $as_dir in #(((
7506 '') as_dir=./ ;;
7507 */) ;;
7508 *) as_dir=$as_dir/ ;;
7509 esac
6489 for ac_exec_ext in '' $ac_executable_extensions; do 7510 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7512 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 7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6493 break 2 7514 break 2
6494 fi 7515 fi
6495done 7516done
6496 done 7517 done
6497IFS=$as_save_IFS 7518IFS=$as_save_IFS
6498 7519
6499fi 7520fi
6500fi 7521fi
6501RANLIB=$ac_cv_prog_RANLIB 7522RANLIB=$ac_cv_prog_RANLIB
6502if test -n "$RANLIB"; then 7523if test -n "$RANLIB"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6504$as_echo "$RANLIB" >&6; } 7525printf "%s\n" "$RANLIB" >&6; }
6505else 7526else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; } 7528printf "%s\n" "no" >&6; }
6508fi 7529fi
6509 7530
6510 7531
6511fi 7532fi
6512if test -z "$ac_cv_prog_RANLIB"; then 7533if test -z "$ac_cv_prog_RANLIB"; then
6513 ac_ct_RANLIB=$RANLIB 7534 ac_ct_RANLIB=$RANLIB
6514 # Extract the first word of "ranlib", so it can be a program name with args. 7535 # Extract the first word of "ranlib", so it can be a program name with args.
6515set dummy ranlib; ac_word=$2 7536set dummy ranlib; ac_word=$2
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; } 7538printf %s "checking for $ac_word... " >&6; }
6518if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7539if test ${ac_cv_prog_ac_ct_RANLIB+y}
6519 $as_echo_n "(cached) " >&6 7540then :
6520else 7541 printf %s "(cached) " >&6
7542else $as_nop
6521 if test -n "$ac_ct_RANLIB"; then 7543 if test -n "$ac_ct_RANLIB"; then
6522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7544 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6523else 7545else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH 7547for as_dir in $PATH
6526do 7548do
6527 IFS=$as_save_IFS 7549 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=. 7550 case $as_dir in #(((
7551 '') as_dir=./ ;;
7552 */) ;;
7553 *) as_dir=$as_dir/ ;;
7554 esac
6529 for ac_exec_ext in '' $ac_executable_extensions; do 7555 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_RANLIB="ranlib" 7557 ac_cv_prog_ac_ct_RANLIB="ranlib"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6533 break 2 7559 break 2
6534 fi 7560 fi
6535done 7561done
6536 done 7562 done
6537IFS=$as_save_IFS 7563IFS=$as_save_IFS
6538 7564
6539fi 7565fi
6540fi 7566fi
6541ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7567ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6542if test -n "$ac_ct_RANLIB"; then 7568if test -n "$ac_ct_RANLIB"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6544$as_echo "$ac_ct_RANLIB" >&6; } 7570printf "%s\n" "$ac_ct_RANLIB" >&6; }
6545else 7571else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; } 7573printf "%s\n" "no" >&6; }
6548fi 7574fi
6549 7575
6550 if test "x$ac_ct_RANLIB" = x; then 7576 if test "x$ac_ct_RANLIB" = x; then
6551 RANLIB=":" 7577 RANLIB=":"
6552 else 7578 else
6553 case $cross_compiling:$ac_tool_warned in 7579 case $cross_compiling:$ac_tool_warned in
6554yes:) 7580yes:)
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7581{ printf "%s\n" "$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;} 7582printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557ac_tool_warned=yes ;; 7583ac_tool_warned=yes ;;
6558esac 7584esac
6559 RANLIB=$ac_ct_RANLIB 7585 RANLIB=$ac_ct_RANLIB
6560 fi 7586 fi
6561else 7587else
6562 RANLIB="$ac_cv_prog_RANLIB" 7588 RANLIB="$ac_cv_prog_RANLIB"
6563fi 7589fi
6564 7590
6565 7591
6566# Check whether --enable-iftype was given. 7592# Check whether --enable-iftype was given.
6567if test "${enable_iftype+set}" = set; then : 7593if test ${enable_iftype+y}
7594then :
6568 enableval=$enable_iftype; 7595 enableval=$enable_iftype;
6569 IFTYPE=`echo $enableval | sed s%/.*%%` 7596 IFTYPE=`echo $enableval | sed s%/.*%%`
6570 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 7597 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
6571 7598
6572 7599
6573fi 7600fi
6574 7601
6575 7602
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5 7603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5
6577$as_echo_n "checking for kernel networking interface type... " >&6; } 7604printf %s "checking for kernel networking interface type... " >&6; }
6578 7605
6579if test "x$IFTYPE" = "x"; then 7606if test "x$IFTYPE" = "x"; then
6580 case $target_os in 7607 case $target_os in
6581 *linux*) 7608 *linux*)
6582 IFTYPE=native 7609 IFTYPE=native
6583 IFSUBTYPE=linux 7610 IFSUBTYPE=linux
6584 7611
6585$as_echo "#define HAVE_LINUX 1" >>confdefs.h 7612printf "%s\n" "#define HAVE_LINUX 1" >>confdefs.h
6586 7613
6587 ;; 7614 ;;
6588 *freebsd*) 7615 *freebsd*)
6589 IFTYPE=tincd 7616 IFTYPE=tincd
6590 IFSUBTYPE=freebsd 7617 IFSUBTYPE=freebsd
6591 7618
6592$as_echo "#define HAVE_FREEBSD 1" >>confdefs.h 7619printf "%s\n" "#define HAVE_FREEBSD 1" >>confdefs.h
6593 7620
6594 ;; 7621 ;;
6595 *darwin*) 7622 *darwin*)
6596 IFTYPE=native 7623 IFTYPE=native
6597 IFSUBTYPE=darwin 7624 IFSUBTYPE=darwin
6598 7625
6599$as_echo "#define HAVE_DARWIN 1" >>confdefs.h 7626printf "%s\n" "#define HAVE_DARWIN 1" >>confdefs.h
6600 7627
6601 ;; 7628 ;;
6602 *solaris*) 7629 *solaris*)
6603 IFTYPE=tincd 7630 IFTYPE=tincd
6604 IFSUBTYPE=solaris 7631 IFSUBTYPE=solaris
6605 7632
6606$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h 7633printf "%s\n" "#define HAVE_SOLARIS 1" >>confdefs.h
6607 7634
6608 ;; 7635 ;;
6609 *openbsd*) 7636 *openbsd*)
6610 IFTYPE=tincd 7637 IFTYPE=tincd
6611 IFSUBTYPE=openbsd 7638 IFSUBTYPE=openbsd
6612 7639
6613$as_echo "#define HAVE_OPENBSD 1" >>confdefs.h 7640printf "%s\n" "#define HAVE_OPENBSD 1" >>confdefs.h
6614 7641
6615 ;; 7642 ;;
6616 *netbsd*) 7643 *netbsd*)
6617 IFTYPE=tincd 7644 IFTYPE=tincd
6618 IFSUBTYPE=netbsd 7645 IFSUBTYPE=netbsd
6619 7646
6620$as_echo "#define HAVE_NETBSD 1" >>confdefs.h 7647printf "%s\n" "#define HAVE_NETBSD 1" >>confdefs.h
6621 7648
6622 ;; 7649 ;;
6623 *cygwin*) 7650 *cygwin*)
6624 IFTYPE=native 7651 IFTYPE=native
6625 IFSUBTYPE=cygwin 7652 IFSUBTYPE=cygwin
6626 7653
6627$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 7654printf "%s\n" "#define HAVE_CYGWIN 1" >>confdefs.h
6628 7655
6629 ;; 7656 ;;
6630 *) 7657 *)
6631 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5 7658 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5
6632 ;; 7659 ;;
6633 esac 7660 esac
6634fi 7661fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5 7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5
6636$as_echo "$IFTYPE/$IFSUBTYPE" >&6; } 7663printf "%s\n" "$IFTYPE/$IFSUBTYPE" >&6; }
6637IFTYPE=$IFTYPE 7664IFTYPE=$IFTYPE
6638 7665
6639IFSUBTYPE=$IFSUBTYPE 7666IFSUBTYPE=$IFSUBTYPE
6640 7667
6641 7668
6642cat >>confdefs.h <<_ACEOF 7669printf "%s\n" "#define IFTYPE \"$IFTYPE\"" >>confdefs.h
6643#define IFTYPE "$IFTYPE"
6644_ACEOF
6645 7670
6646 7671
6647cat >>confdefs.h <<_ACEOF 7672printf "%s\n" "#define IFSUBTYPE \"$IFSUBTYPE\"" >>confdefs.h
6648#define IFSUBTYPE "$IFSUBTYPE"
6649_ACEOF
6650 7673
6651 7674
6652cat >confcache <<\_ACEOF 7675cat >confcache <<\_ACEOF
6653# This file is a shell script that caches the results of configure 7676# 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 7677# tests run on this system so they can be shared between configure
6674 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7697 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 7698 eval ac_val=\$$ac_var
6676 case $ac_val in #( 7699 case $ac_val in #(
6677 *${as_nl}*) 7700 *${as_nl}*)
6678 case $ac_var in #( 7701 case $ac_var in #(
6679 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 7702 *_cv_*) { printf "%s\n" "$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;} ;; 7703printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6681 esac 7704 esac
6682 case $ac_var in #( 7705 case $ac_var in #(
6683 _ | IFS | as_nl) ;; #( 7706 _ | IFS | as_nl) ;; #(
6684 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6685 *) { eval $ac_var=; unset $ac_var;} ;; 7708 *) { eval $ac_var=; unset $ac_var;} ;;
6705) | 7728) |
6706 sed ' 7729 sed '
6707 /^ac_cv_env_/b end 7730 /^ac_cv_env_/b end
6708 t clear 7731 t clear
6709 :clear 7732 :clear
6710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7733 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6711 t end 7734 t end
6712 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6713 :end' >>confcache 7736 :end' >>confcache
6714if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7737if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6715 if test -w "$cache_file"; then 7738 if test -w "$cache_file"; then
6716 if test "x$cache_file" != "x/dev/null"; then 7739 if test "x$cache_file" != "x/dev/null"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6718$as_echo "$as_me: updating cache $cache_file" >&6;} 7741printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6719 if test ! -f "$cache_file" || test -h "$cache_file"; then 7742 if test ! -f "$cache_file" || test -h "$cache_file"; then
6720 cat confcache >"$cache_file" 7743 cat confcache >"$cache_file"
6721 else 7744 else
6722 case $cache_file in #( 7745 case $cache_file in #(
6723 */* | ?:*) 7746 */* | ?:*)
6727 mv -f confcache "$cache_file" ;; 7750 mv -f confcache "$cache_file" ;;
6728 esac 7751 esac
6729 fi 7752 fi
6730 fi 7753 fi
6731 else 7754 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6733$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7756printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6734 fi 7757 fi
6735fi 7758fi
6736rm -f confcache 7759rm -f confcache
6737 7760
6738 7761
6741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6744 7767
6745 7768
6746ac_ext=cpp 7769ac_header= ac_cache=
6747ac_cpp='$CXXCPP $CPPFLAGS' 7770for ac_item in $ac_header_cxx_list
6748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750ac_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; }
6753if test -z "$CXXCPP"; then
6754 if ${ac_cv_prog_CXXCPP+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757 # Double quotes because CXXCPP needs to be expanded
6758 for CXXCPP in "$CXX -E" "/lib/cpp"
6759 do
6760 ac_preproc_ok=false
6761for ac_cxx_preproc_warn_flag in '' yes
6762do 7771do
6763 # Use a header file that comes with gcc, so configuring glibc 7772 if test $ac_cache; then
6764 # with a fresh cross-compiler works. 7773 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7774 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6766 # <limits.h> exists even on freestanding compilers. 7775 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6767 # On the NeXT, cc -E runs the code through the compiler's parser, 7776 fi
6768 # not just through cpp. "Syntax error" is here to catch this case. 7777 ac_header= ac_cache=
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778 elif test $ac_header; then
6770/* end confdefs.h. */ 7779 ac_cache=$ac_item
6771#ifdef __STDC__
6772# include <limits.h>
6773#else
6774# include <assert.h>
6775#endif
6776 Syntax error
6777_ACEOF
6778if ac_fn_cxx_try_cpp "$LINENO"; then :
6779
6780else 7780 else
6781 # Broken: fails on valid input. 7781 ac_header=$ac_item
6782continue 7782 fi
6783fi
6784rm -f conftest.err conftest.i conftest.$ac_ext
6785
6786 # 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
6792if ac_fn_cxx_try_cpp "$LINENO"; then :
6793 # Broken: success on invalid input.
6794continue
6795else
6796 # Passes both tests.
6797ac_preproc_ok=:
6798break
6799fi
6800rm -f conftest.err conftest.i conftest.$ac_ext
6801
6802done 7783done
6803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6804rm -f conftest.i conftest.err conftest.$ac_ext
6805if $ac_preproc_ok; then :
6806 break
6807fi
6808 7784
6809 done
6810 ac_cv_prog_CXXCPP=$CXXCPP
6811 7785
6812fi
6813 CXXCPP=$ac_cv_prog_CXXCPP
6814else
6815 ac_cv_prog_CXXCPP=$CXXCPP
6816fi
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6818$as_echo "$CXXCPP" >&6; }
6819ac_preproc_ok=false
6820for ac_cxx_preproc_warn_flag in '' yes
6821do
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_ACEOF
6837if ac_fn_cxx_try_cpp "$LINENO"; then :
6838 7786
6839else
6840 # Broken: fails on valid input.
6841continue
6842fi
6843rm -f conftest.err conftest.i conftest.$ac_ext
6844 7787
6845 # 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/* end confdefs.h. */
6849#include <ac_nonexistent.h>
6850_ACEOF
6851if ac_fn_cxx_try_cpp "$LINENO"; then :
6852 # Broken: success on invalid input.
6853continue
6854else
6855 # Passes both tests.
6856ac_preproc_ok=:
6857break
6858fi
6859rm -f conftest.err conftest.i conftest.$ac_ext
6860 7788
6861done
6862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6863rm -f conftest.i conftest.err conftest.$ac_ext
6864if $ac_preproc_ok; then :
6865 7789
6866else
6867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6869as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6870See \`config.log' for more details" "$LINENO" 5; }
6871fi
6872 7790
6873ac_ext=cpp
6874ac_cpp='$CXXCPP $CPPFLAGS'
6875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6878 7791
7792if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7793then :
6879 7794
6880{ $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; }
6882if ${ac_cv_header_stdc+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h. */
6887#include <stdlib.h>
6888#include <stdarg.h>
6889#include <string.h>
6890#include <float.h>
6891
6892int
6893main ()
6894{
6895
6896 ;
6897 return 0;
6898}
6899_ACEOF
6900if ac_fn_cxx_try_compile "$LINENO"; then :
6901 ac_cv_header_stdc=yes
6902else
6903 ac_cv_header_stdc=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906
6907if test $ac_cv_header_stdc = yes; then
6908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h. */
6911#include <string.h>
6912
6913_ACEOF
6914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "memchr" >/dev/null 2>&1; then :
6916
6917else
6918 ac_cv_header_stdc=no
6919fi
6920rm -f conftest*
6921
6922fi
6923
6924if test $ac_cv_header_stdc = yes; then
6925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h. */
6928#include <stdlib.h>
6929
6930_ACEOF
6931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 $EGREP "free" >/dev/null 2>&1; then :
6933
6934else
6935 ac_cv_header_stdc=no
6936fi
6937rm -f conftest*
6938
6939fi
6940
6941if test $ac_cv_header_stdc = yes; then
6942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6943 if test "$cross_compiling" = yes; then :
6944 :
6945else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h. */
6948#include <ctype.h>
6949#include <stdlib.h>
6950#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 (('a' <= (c) && (c) <= 'i') \
6956 || ('j' <= (c) && (c) <= 'r') \
6957 || ('s' <= (c) && (c) <= 'z'))
6958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959#endif
6960
6961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6962int
6963main ()
6964{
6965 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 return 0;
6971}
6972_ACEOF
6973if ac_fn_cxx_try_run "$LINENO"; then :
6974
6975else
6976 ac_cv_header_stdc=no
6977fi
6978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6979 conftest.$ac_objext conftest.beam conftest.$ac_ext
6980fi
6981
6982fi
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6985$as_echo "$ac_cv_header_stdc" >&6; }
6986if test $ac_cv_header_stdc = yes; then
6987
6988$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7795printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6989 7796
6990fi 7797fi
7798ac_fn_cxx_check_header_compile "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
7799if test "x$ac_cv_header_tr1_unordered_map" = xyes
7800then :
7801 printf "%s\n" "#define HAVE_TR1_UNORDERED_MAP 1" >>confdefs.h
6991 7802
6992# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7803fi
6993for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7804ac_fn_cxx_check_header_compile "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default"
6994 inttypes.h stdint.h unistd.h 7805if test "x$ac_cv_header_ext_hash_map" = xyes
6995do : 7806then :
6996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7807 printf "%s\n" "#define HAVE_EXT_HASH_MAP 1" >>confdefs.h
7808
7809fi
7810ac_fn_cxx_check_header_compile "$LINENO" "clocale" "ac_cv_header_clocale" "$ac_includes_default"
7811if test "x$ac_cv_header_clocale" = xyes
7812then :
7813 printf "%s\n" "#define HAVE_CLOCALE 1" >>confdefs.h
7814
7815fi
7816
7817
7818ac_fn_cxx_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7819if test "x$ac_cv_header_fcntl_h" = xyes
7820then :
7821 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
7822
7823fi
7824ac_fn_cxx_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7825if test "x$ac_cv_header_inttypes_h" = xyes
7826then :
7827 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
7828
7829fi
7830ac_fn_cxx_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
7831if test "x$ac_cv_header_limits_h" = xyes
7832then :
7833 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
7834
7835fi
6997ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7836ac_fn_cxx_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6998" 7837if test "x$ac_cv_header_malloc_h" = xyes
6999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7838then :
7000 cat >>confdefs.h <<_ACEOF 7839 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
7001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7002_ACEOF
7003 7840
7004fi 7841fi
7842ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7843if test "x$ac_cv_header_stdint_h" = xyes
7844then :
7845 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7005 7846
7006done 7847fi
7848ac_fn_cxx_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
7849if test "x$ac_cv_header_strings_h" = xyes
7850then :
7851 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
7007 7852
7853fi
7854ac_fn_cxx_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
7855if test "x$ac_cv_header_syslog_h" = xyes
7856then :
7857 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
7008 7858
7009for ac_header in tr1/unordered_map ext/hash_map clocale 7859fi
7010do : 7860ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7861if test "x$ac_cv_header_unistd_h" = xyes
7862then :
7863 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
7864
7865fi
7866ac_fn_cxx_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
7867if test "x$ac_cv_header_sys_file_h" = xyes
7868then :
7869 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
7870
7871fi
7872ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7873if test "x$ac_cv_header_sys_ioctl_h" = xyes
7874then :
7875 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7876
7877fi
7878ac_fn_cxx_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
7879if test "x$ac_cv_header_sys_param_h" = xyes
7880then :
7881 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
7882
7883fi
7884ac_fn_cxx_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
7885if test "x$ac_cv_header_sys_time_h" = xyes
7886then :
7887 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
7888
7889fi
7890ac_fn_cxx_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
7891if test "x$ac_cv_header_netinet_in_systm_h" = xyes
7892then :
7893 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
7894
7895fi
7896ac_fn_cxx_check_header_compile "$LINENO" "sys/cygwin.h" "ac_cv_header_sys_cygwin_h" "$ac_includes_default"
7897if test "x$ac_cv_header_sys_cygwin_h" = xyes
7898then :
7899 printf "%s\n" "#define HAVE_SYS_CYGWIN_H 1" >>confdefs.h
7900
7901fi
7012ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7902ac_fn_cxx_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7903if test "x$ac_cv_header_sys_mman_h" = xyes
7014 cat >>confdefs.h <<_ACEOF 7904then :
7015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7905 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
7016_ACEOF
7017 7906
7018fi 7907fi
7908ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
7909if test "x$ac_cv_header_netinet_in_h" = xyes
7910then :
7911 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
7019 7912
7020done
7021
7022
7023for 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
7026do :
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7029if 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_ACEOF
7033
7034fi 7913fi
7035 7914
7036done
7037
7038for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
7039do :
7040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 7915ac_fn_cxx_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
7042#include <sys/types.h> 7916#include <sys/types.h>
7043#include <sys/socket.h> 7917#include <sys/socket.h>
7044#ifdef HAVE_NETINET_IN_H 7918#ifdef HAVE_NETINET_IN_H
7045# include <netinet/in.h> 7919# include <netinet/in.h>
7046#endif 7920#endif
7050#ifdef HAVE_NETINET_IN_SYSTM_H 7924#ifdef HAVE_NETINET_IN_SYSTM_H
7051# include <netinet/in_systm.h> 7925# include <netinet/in_systm.h>
7052#endif 7926#endif
7053 7927
7054" 7928"
7055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7929if test "x$ac_cv_header_arpa_inet_h" = xyes
7056 cat >>confdefs.h <<_ACEOF 7930then :
7057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7931 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
7058_ACEOF
7059 7932
7060fi 7933fi
7934ac_fn_cxx_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "
7935#include <sys/types.h>
7936#include <sys/socket.h>
7937#ifdef HAVE_NETINET_IN_H
7938# include <netinet/in.h>
7939#endif
7940#ifdef HAVE_ARPA_INET_H
7941# include <arpa/inet.h>
7942#endif
7943#ifdef HAVE_NETINET_IN_SYSTM_H
7944# include <netinet/in_systm.h>
7945#endif
7061 7946
7062done 7947"
7948if test "x$ac_cv_header_net_ethernet_h" = xyes
7949then :
7950 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
7063 7951
7952fi
7953ac_fn_cxx_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
7954#include <sys/types.h>
7955#include <sys/socket.h>
7956#ifdef HAVE_NETINET_IN_H
7957# include <netinet/in.h>
7958#endif
7959#ifdef HAVE_ARPA_INET_H
7960# include <arpa/inet.h>
7961#endif
7962#ifdef HAVE_NETINET_IN_SYSTM_H
7963# include <netinet/in_systm.h>
7964#endif
7064 7965
7966"
7967if test "x$ac_cv_header_net_if_h" = xyes
7968then :
7969 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
7970
7971fi
7972ac_fn_cxx_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
7973#include <sys/types.h>
7974#include <sys/socket.h>
7975#ifdef HAVE_NETINET_IN_H
7976# include <netinet/in.h>
7977#endif
7978#ifdef HAVE_ARPA_INET_H
7979# include <arpa/inet.h>
7980#endif
7981#ifdef HAVE_NETINET_IN_SYSTM_H
7982# include <netinet/in_systm.h>
7983#endif
7984
7985"
7986if test "x$ac_cv_header_netinet_ip_h" = xyes
7987then :
7988 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
7989
7990fi
7991ac_fn_cxx_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
7992#include <sys/types.h>
7993#include <sys/socket.h>
7994#ifdef HAVE_NETINET_IN_H
7995# include <netinet/in.h>
7996#endif
7997#ifdef HAVE_ARPA_INET_H
7998# include <arpa/inet.h>
7999#endif
8000#ifdef HAVE_NETINET_IN_SYSTM_H
8001# include <netinet/in_systm.h>
8002#endif
8003
8004"
8005if test "x$ac_cv_header_netinet_tcp_h" = xyes
8006then :
8007 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
8008
8009fi
8010ac_fn_cxx_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
8011#include <sys/types.h>
8012#include <sys/socket.h>
8013#ifdef HAVE_NETINET_IN_H
8014# include <netinet/in.h>
8015#endif
8016#ifdef HAVE_ARPA_INET_H
8017# include <arpa/inet.h>
8018#endif
8019#ifdef HAVE_NETINET_IN_SYSTM_H
8020# include <netinet/in_systm.h>
8021#endif
8022
8023"
8024if test "x$ac_cv_header_netinet_in_systm_h" = xyes
8025then :
8026 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
8027
8028fi
8029
8030
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8031{ printf "%s\n" "$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; } 8032printf %s "checking for an ANSI C-conforming const... " >&6; }
7067if ${ac_cv_c_const+:} false; then : 8033if test ${ac_cv_c_const+y}
7068 $as_echo_n "(cached) " >&6 8034then :
7069else 8035 printf %s "(cached) " >&6
8036else $as_nop
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h. */ 8038/* end confdefs.h. */
7072 8039
7073int 8040int
7074main () 8041main (void)
7075{ 8042{
7076 8043
7077#ifndef __cplusplus 8044#ifndef __cplusplus
7078 /* Ultrix mips cc rejects this sort of thing. */ 8045 /* Ultrix mips cc rejects this sort of thing. */
7079 typedef int charset[2]; 8046 typedef int charset[2];
7082 char const *const *pcpcc; 8049 char const *const *pcpcc;
7083 char **ppc; 8050 char **ppc;
7084 /* NEC SVR4.0.2 mips cc rejects this. */ 8051 /* NEC SVR4.0.2 mips cc rejects this. */
7085 struct point {int x, y;}; 8052 struct point {int x, y;};
7086 static struct point const zero = {0,0}; 8053 static struct point const zero = {0,0};
7087 /* AIX XL C 1.02.0.0 rejects this. 8054 /* IBM XL C 1.02.0.0 rejects this.
7088 It does not let you subtract one const X* pointer from another in 8055 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 8056 an arm of an if-expression whose if-part is not a constant
7090 expression */ 8057 expression */
7091 const char *g = "string"; 8058 const char *g = "string";
7092 pcpcc = &g + (g ? g-g : 0); 8059 pcpcc = &g + (g ? g-g : 0);
7110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7111 typedef const int *iptr; 8078 typedef const int *iptr;
7112 iptr p = 0; 8079 iptr p = 0;
7113 ++p; 8080 ++p;
7114 } 8081 }
7115 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8082 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7117 struct s { int j; const int *ap[3]; } bx; 8084 struct s { int j; const int *ap[3]; } bx;
7118 struct s *b = &bx; b->j = 5; 8085 struct s *b = &bx; b->j = 5;
7119 } 8086 }
7120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7126 8093
7127 ; 8094 ;
7128 return 0; 8095 return 0;
7129} 8096}
7130_ACEOF 8097_ACEOF
7131if ac_fn_cxx_try_compile "$LINENO"; then : 8098if ac_fn_cxx_try_compile "$LINENO"
8099then :
7132 ac_cv_c_const=yes 8100 ac_cv_c_const=yes
7133else 8101else $as_nop
7134 ac_cv_c_const=no 8102 ac_cv_c_const=no
7135fi 8103fi
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7137fi 8105fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7139$as_echo "$ac_cv_c_const" >&6; } 8107printf "%s\n" "$ac_cv_c_const" >&6; }
7140if test $ac_cv_c_const = no; then 8108if test $ac_cv_c_const = no; then
7141 8109
7142$as_echo "#define const /**/" >>confdefs.h 8110printf "%s\n" "#define const /**/" >>confdefs.h
7143 8111
7144fi 8112fi
7145 8113
8114
7146ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8115 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
8116"
7147if test "x$ac_cv_type_pid_t" = xyes; then : 8117if test "x$ac_cv_type_pid_t" = xyes
8118then :
7148 8119
7149else 8120else $as_nop
7150 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151cat >>confdefs.h <<_ACEOF
7152#define pid_t int
7153_ACEOF
7154
7155fi
7156
7157ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7158if test "x$ac_cv_type_size_t" = xyes; then :
7159
7160else
7161
7162cat >>confdefs.h <<_ACEOF
7163#define size_t unsigned int
7164_ACEOF
7165
7166fi
7167
7168{ $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; }
7170if ${ac_cv_header_time+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172else
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h. */ 8122/* end confdefs.h. */
7175#include <sys/types.h> 8123
7176#include <sys/time.h> 8124 #if defined _WIN64 && !defined __CYGWIN__
7177#include <time.h> 8125 LLP64
8126 #endif
7178 8127
7179int 8128int
7180main () 8129main (void)
7181{ 8130{
7182if ((struct tm *) 0) 8131
7183return 0;
7184 ; 8132 ;
7185 return 0; 8133 return 0;
7186} 8134}
8135
7187_ACEOF 8136_ACEOF
7188if ac_fn_cxx_try_compile "$LINENO"; then : 8137if ac_fn_cxx_try_compile "$LINENO"
7189 ac_cv_header_time=yes 8138then :
7190else 8139 ac_pid_type='int'
7191 ac_cv_header_time=no 8140else $as_nop
8141 ac_pid_type='__int64'
7192fi 8142fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7196$as_echo "$ac_cv_header_time" >&6; }
7197if test $ac_cv_header_time = yes; then
7198 8144
7199$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8145printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7200 8146
7201fi
7202 8147
8148fi
8149
8150
8151ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8152if test "x$ac_cv_type_size_t" = xyes
8153then :
8154
8155else $as_nop
8156
8157printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8158
8159fi
8160
8161
8162
8163
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8164{ printf "%s\n" "$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; } 8165printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7205if ${ac_cv_struct_tm+:} false; then : 8166if test ${ac_cv_struct_tm+y}
7206 $as_echo_n "(cached) " >&6 8167then :
7207else 8168 printf %s "(cached) " >&6
8169else $as_nop
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h. */ 8171/* end confdefs.h. */
7210#include <sys/types.h> 8172#include <sys/types.h>
7211#include <time.h> 8173#include <time.h>
7212 8174
7213int 8175int
7214main () 8176main (void)
7215{ 8177{
7216struct tm tm; 8178struct tm tm;
7217 int *p = &tm.tm_sec; 8179 int *p = &tm.tm_sec;
7218 return !p; 8180 return !p;
7219 ; 8181 ;
7220 return 0; 8182 return 0;
7221} 8183}
7222_ACEOF 8184_ACEOF
7223if ac_fn_cxx_try_compile "$LINENO"; then : 8185if ac_fn_cxx_try_compile "$LINENO"
8186then :
7224 ac_cv_struct_tm=time.h 8187 ac_cv_struct_tm=time.h
7225else 8188else $as_nop
7226 ac_cv_struct_tm=sys/time.h 8189 ac_cv_struct_tm=sys/time.h
7227fi 8190fi
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7229fi 8192fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7231$as_echo "$ac_cv_struct_tm" >&6; } 8194printf "%s\n" "$ac_cv_struct_tm" >&6; }
7232if test $ac_cv_struct_tm = sys/time.h; then 8195if test $ac_cv_struct_tm = sys/time.h; then
7233 8196
7234$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8197printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
7235 8198
7236fi 8199fi
7237 8200
7238 8201
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7240$as_echo_n "checking for socklen_t... " >&6; } 8203printf %s "checking for socklen_t... " >&6; }
7241if ${ac_cv_type_socklen_t+:} false; then : 8204if test ${ac_cv_type_socklen_t+y}
7242 $as_echo_n "(cached) " >&6 8205then :
7243else 8206 printf %s "(cached) " >&6
8207else $as_nop
7244 8208
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h. */ 8210/* end confdefs.h. */
7247#include <sys/types.h> 8211#include <sys/types.h>
7248 #include <sys/socket.h> 8212 #include <sys/socket.h>
7249int 8213int
7250main () 8214main (void)
7251{ 8215{
7252socklen_t len = 42; return len; 8216socklen_t len = 42; return len;
7253 ; 8217 ;
7254 return 0; 8218 return 0;
7255} 8219}
7256_ACEOF 8220_ACEOF
7257if ac_fn_cxx_try_compile "$LINENO"; then : 8221if ac_fn_cxx_try_compile "$LINENO"
8222then :
7258 ac_cv_type_socklen_t=yes 8223 ac_cv_type_socklen_t=yes
7259else 8224else $as_nop
7260 ac_cv_type_socklen_t=no 8225 ac_cv_type_socklen_t=no
7261fi 8226fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7263 8228
7264fi 8229fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7266$as_echo "$ac_cv_type_socklen_t" >&6; } 8231printf "%s\n" "$ac_cv_type_socklen_t" >&6; }
7267if test $ac_cv_type_socklen_t = yes; then 8232if test $ac_cv_type_socklen_t = yes; then
7268 8233
7269$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 8234printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7270 8235
7271fi 8236fi
7272 8237
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 8238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
7274$as_echo_n "checking for struct addrinfo... " >&6; } 8239printf %s "checking for struct addrinfo... " >&6; }
7275if ${ac_cv_struct_addrinfo+:} false; then : 8240if test ${ac_cv_struct_addrinfo+y}
7276 $as_echo_n "(cached) " >&6 8241then :
7277else 8242 printf %s "(cached) " >&6
8243else $as_nop
7278 8244
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h. */ 8246/* end confdefs.h. */
7281#include <sys/types.h> 8247#include <sys/types.h>
7282 #include <sys/socket.h> 8248 #include <sys/socket.h>
7283 #include <netdb.h> 8249 #include <netdb.h>
7284int 8250int
7285main () 8251main (void)
7286{ 8252{
7287struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family; 8253struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
7288 ; 8254 ;
7289 return 0; 8255 return 0;
7290} 8256}
7291_ACEOF 8257_ACEOF
7292if ac_fn_cxx_try_compile "$LINENO"; then : 8258if ac_fn_cxx_try_compile "$LINENO"
8259then :
7293 ac_cv_struct_addrinfo=yes 8260 ac_cv_struct_addrinfo=yes
7294else 8261else $as_nop
7295 ac_cv_struct_addrinfo=no 8262 ac_cv_struct_addrinfo=no
7296fi 8263fi
7297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7298 8265
7299fi 8266fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 8267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
7301$as_echo "$ac_cv_struct_addrinfo" >&6; } 8268printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
7302if test $ac_cv_struct_addrinfo = yes; then 8269if test $ac_cv_struct_addrinfo = yes; then
7303 8270
7304$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 8271printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7305 8272
7306fi 8273fi
7307
7308{ $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; }
7310if ${ac_cv_type_signal+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315#include <sys/types.h>
7316#include <signal.h>
7317
7318int
7319main ()
7320{
7321return *(signal (0, 0)) (0) == 1;
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326if ac_fn_cxx_try_compile "$LINENO"; then :
7327 ac_cv_type_signal=int
7328else
7329 ac_cv_type_signal=void
7330fi
7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7334$as_echo "$ac_cv_type_signal" >&6; }
7335
7336cat >>confdefs.h <<_ACEOF
7337#define RETSIGTYPE $ac_cv_type_signal
7338_ACEOF
7339
7340
7341 8274
7342ac_ext=c 8275ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS' 8276ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu 8279ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347 8280
7348 8281
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8282ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
7350$as_echo_n "checking for ANSI C header files... " >&6; } 8283if test "x$ac_cv_func_asprintf" = xyes
7351if ${ac_cv_header_stdc+:} false; then : 8284then :
7352 $as_echo_n "(cached) " >&6 8285 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
7353else
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 8286
7361int
7362main ()
7363{
7364
7365 ;
7366 return 0;
7367}
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370 ac_cv_header_stdc=yes
7371else
7372 ac_cv_header_stdc=no
7373fi 8287fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
8289if test "x$ac_cv_func_daemon" = xyes
8290then :
8291 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
7375 8292
7376if 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
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "memchr" >/dev/null 2>&1; then :
7385
7386else
7387 ac_cv_header_stdc=no
7388fi 8293fi
7389rm -f conftest* 8294ac_fn_c_check_func "$LINENO" "get_current_dir_name" "ac_cv_func_get_current_dir_name"
8295if test "x$ac_cv_func_get_current_dir_name" = xyes
8296then :
8297 printf "%s\n" "#define HAVE_GET_CURRENT_DIR_NAME 1" >>confdefs.h
7390 8298
7391fi 8299fi
8300ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8301if test "x$ac_cv_func_putenv" = xyes
8302then :
8303 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
7392 8304
7393if 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
7399_ACEOF
7400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "free" >/dev/null 2>&1; then :
7402
7403else
7404 ac_cv_header_stdc=no
7405fi 8305fi
7406rm -f conftest* 8306ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
8307if test "x$ac_cv_func_select" = xyes
8308then :
8309 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
7407 8310
7408fi 8311fi
8312ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
8313if test "x$ac_cv_func_strerror" = xyes
8314then :
8315 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
7409 8316
7410if 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 :
7414else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h. */
7417#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)))
7431int
7432main ()
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_ACEOF
7442if ac_fn_c_try_run "$LINENO"; then :
7443
7444else
7445 ac_cv_header_stdc=no
7446fi 8317fi
7447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8318ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext 8319if test "x$ac_cv_func_strsignal" = xyes
7449fi 8320then :
8321 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
7450 8322
7451fi 8323fi
7452fi 8324ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8325if test "x$ac_cv_func_strtol" = xyes
7454$as_echo "$ac_cv_header_stdc" >&6; } 8326then :
7455if test $ac_cv_header_stdc = yes; then 8327 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
7456 8328
7457$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7458
7459fi 8329fi
8330ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
8331if test "x$ac_cv_func_unsetenv" = xyes
8332then :
8333 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
7460 8334
7461
7462for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
7463do :
7464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7465ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7466if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7467 cat >>confdefs.h <<_ACEOF
7468#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7469_ACEOF
7470
7471fi 8335fi
7472done 8336ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
8337if test "x$ac_cv_func_mlockall" = xyes
8338then :
8339 printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
8340
8341fi
7473 8342
7474 8343
7475# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8344# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7476# for constant arguments. Useless! 8345# for constant arguments. Useless!
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7478$as_echo_n "checking for working alloca.h... " >&6; } 8347printf %s "checking for working alloca.h... " >&6; }
7479if ${ac_cv_working_alloca_h+:} false; then : 8348if test ${ac_cv_working_alloca_h+y}
7480 $as_echo_n "(cached) " >&6 8349then :
7481else 8350 printf %s "(cached) " >&6
8351else $as_nop
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h. */ 8353/* end confdefs.h. */
7484#include <alloca.h> 8354#include <alloca.h>
7485int 8355int
7486main () 8356main (void)
7487{ 8357{
7488char *p = (char *) alloca (2 * sizeof (int)); 8358char *p = (char *) alloca (2 * sizeof (int));
7489 if (p) return 0; 8359 if (p) return 0;
7490 ; 8360 ;
7491 return 0; 8361 return 0;
7492} 8362}
7493_ACEOF 8363_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then : 8364if ac_fn_c_try_link "$LINENO"
8365then :
7495 ac_cv_working_alloca_h=yes 8366 ac_cv_working_alloca_h=yes
7496else 8367else $as_nop
7497 ac_cv_working_alloca_h=no 8368 ac_cv_working_alloca_h=no
7498fi 8369fi
7499rm -f core conftest.err conftest.$ac_objext \ 8370rm -f core conftest.err conftest.$ac_objext conftest.beam \
7500 conftest$ac_exeext conftest.$ac_ext 8371 conftest$ac_exeext conftest.$ac_ext
7501fi 8372fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7503$as_echo "$ac_cv_working_alloca_h" >&6; } 8374printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7504if test $ac_cv_working_alloca_h = yes; then 8375if test $ac_cv_working_alloca_h = yes; then
7505 8376
7506$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8377printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7507 8378
7508fi 8379fi
7509 8380
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7511$as_echo_n "checking for alloca... " >&6; } 8382printf %s "checking for alloca... " >&6; }
7512if ${ac_cv_func_alloca_works+:} false; then : 8383if test ${ac_cv_func_alloca_works+y}
7513 $as_echo_n "(cached) " >&6 8384then :
8385 printf %s "(cached) " >&6
8386else $as_nop
8387 if test $ac_cv_working_alloca_h = yes; then
8388 ac_cv_func_alloca_works=yes
7514else 8389else
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h. */ 8391/* end confdefs.h. */
8392#include <stdlib.h>
8393#include <stddef.h>
8394#ifndef alloca
7517#ifdef __GNUC__ 8395# ifdef __GNUC__
7518# define alloca __builtin_alloca 8396# define alloca __builtin_alloca
7519#else
7520# ifdef _MSC_VER 8397# elif defined _MSC_VER
7521# include <malloc.h> 8398# include <malloc.h>
7522# define alloca _alloca 8399# define alloca _alloca
7523# else 8400# else
7524# ifdef HAVE_ALLOCA_H 8401# ifdef __cplusplus
7525# include <alloca.h> 8402extern "C"
7526# else 8403# endif
7527# ifdef _AIX
7528 #pragma alloca
7529# else
7530# ifndef alloca /* predefined by HP cc +Olibcalls */
7531void *alloca (size_t); 8404void *alloca (size_t);
7532# endif
7533# endif
7534# endif
7535# endif 8405# endif
7536#endif 8406#endif
7537 8407
7538int 8408int
7539main () 8409main (void)
7540{ 8410{
7541char *p = (char *) alloca (1); 8411char *p = (char *) alloca (1);
7542 if (p) return 0; 8412 if (p) return 0;
7543 ; 8413 ;
7544 return 0; 8414 return 0;
7545} 8415}
7546_ACEOF 8416_ACEOF
7547if ac_fn_c_try_link "$LINENO"; then : 8417if ac_fn_c_try_link "$LINENO"
8418then :
7548 ac_cv_func_alloca_works=yes 8419 ac_cv_func_alloca_works=yes
7549else 8420else $as_nop
7550 ac_cv_func_alloca_works=no 8421 ac_cv_func_alloca_works=no
7551fi 8422fi
7552rm -f core conftest.err conftest.$ac_objext \ 8423rm -f core conftest.err conftest.$ac_objext conftest.beam \
7553 conftest$ac_exeext conftest.$ac_ext 8424 conftest$ac_exeext conftest.$ac_ext
7554fi 8425fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7556$as_echo "$ac_cv_func_alloca_works" >&6; } 8427printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8428fi
7557 8429
7558if test $ac_cv_func_alloca_works = yes; then 8430if test $ac_cv_func_alloca_works = yes; then
7559 8431
7560$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8432printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7561 8433
7562else 8434else
7563 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7564# that cause trouble. Some versions do not even contain alloca or 8436# that cause trouble. Some versions do not even contain alloca or
7565# contain a buggy version. If you still want to use their alloca, 8437# 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. 8438# use ar to extract alloca.o from them instead of compiling alloca.c.
7567 8439
7568ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8440ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7569 8441
7570$as_echo "#define C_ALLOCA 1" >>confdefs.h 8442printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7571 8443
7572 8444
7573{ $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; }
7575if ${ac_cv_os_cray+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h. */
7580#if defined CRAY && ! defined CRAY2
7581webecray
7582#else
7583wenotbecray
7584#endif
7585
7586_ACEOF
7587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7588 $EGREP "webecray" >/dev/null 2>&1; then :
7589 ac_cv_os_cray=yes
7590else
7591 ac_cv_os_cray=no
7592fi
7593rm -f conftest*
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7597$as_echo "$ac_cv_os_cray" >&6; }
7598if 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`
7601ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7602if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7603
7604cat >>confdefs.h <<_ACEOF
7605#define CRAY_STACKSEG_END $ac_func
7606_ACEOF
7607
7608 break
7609fi
7610
7611 done
7612fi
7613
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7615$as_echo_n "checking stack direction for C alloca... " >&6; } 8446printf %s "checking stack direction for C alloca... " >&6; }
7616if ${ac_cv_c_stack_direction+:} false; then : 8447if test ${ac_cv_c_stack_direction+y}
7617 $as_echo_n "(cached) " >&6 8448then :
7618else 8449 printf %s "(cached) " >&6
8450else $as_nop
7619 if test "$cross_compiling" = yes; then : 8451 if test "$cross_compiling" = yes
8452then :
7620 ac_cv_c_stack_direction=0 8453 ac_cv_c_stack_direction=0
7621else 8454else $as_nop
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h. */ 8456/* end confdefs.h. */
7624$ac_includes_default 8457$ac_includes_default
7625int 8458int
7626find_stack_direction (int *addr, int depth) 8459find_stack_direction (int *addr, int depth)
7637main (int argc, char **argv) 8470main (int argc, char **argv)
7638{ 8471{
7639 return find_stack_direction (0, argc + !argv + 20) < 0; 8472 return find_stack_direction (0, argc + !argv + 20) < 0;
7640} 8473}
7641_ACEOF 8474_ACEOF
7642if ac_fn_c_try_run "$LINENO"; then : 8475if ac_fn_c_try_run "$LINENO"
8476then :
7643 ac_cv_c_stack_direction=1 8477 ac_cv_c_stack_direction=1
7644else 8478else $as_nop
7645 ac_cv_c_stack_direction=-1 8479 ac_cv_c_stack_direction=-1
7646fi 8480fi
7647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7648 conftest.$ac_objext conftest.beam conftest.$ac_ext 8482 conftest.$ac_objext conftest.beam conftest.$ac_ext
7649fi 8483fi
7650 8484
7651fi 8485fi
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7653$as_echo "$ac_cv_c_stack_direction" >&6; } 8487printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7654cat >>confdefs.h <<_ACEOF
7655#define STACK_DIRECTION $ac_cv_c_stack_direction 8488printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7656_ACEOF
7657 8489
7658 8490
7659fi 8491fi
7660 8492
7661 8493
7662 8494
7663ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 8495ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
7664if test "x$ac_cv_func_socket" = xyes; then : 8496if test "x$ac_cv_func_socket" = xyes
8497then :
7665 8498
7666else 8499else $as_nop
7667 8500
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7669$as_echo_n "checking for connect in -lsocket... " >&6; } 8502printf %s "checking for connect in -lsocket... " >&6; }
7670if ${ac_cv_lib_socket_connect+:} false; then : 8503if test ${ac_cv_lib_socket_connect+y}
7671 $as_echo_n "(cached) " >&6 8504then :
7672else 8505 printf %s "(cached) " >&6
8506else $as_nop
7673 ac_check_lib_save_LIBS=$LIBS 8507 ac_check_lib_save_LIBS=$LIBS
7674LIBS="-lsocket $LIBS" 8508LIBS="-lsocket $LIBS"
7675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h. */ 8510/* end confdefs.h. */
7677 8511
7678/* Override any GCC internal prototype to avoid an error. 8512/* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC 8513 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */ 8514 builtin and then its argument prototype would still apply. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684char connect (); 8515char connect ();
7685int 8516int
7686main () 8517main (void)
7687{ 8518{
7688return connect (); 8519return connect ();
7689 ; 8520 ;
7690 return 0; 8521 return 0;
7691} 8522}
7692_ACEOF 8523_ACEOF
7693if ac_fn_c_try_link "$LINENO"; then : 8524if ac_fn_c_try_link "$LINENO"
8525then :
7694 ac_cv_lib_socket_connect=yes 8526 ac_cv_lib_socket_connect=yes
7695else 8527else $as_nop
7696 ac_cv_lib_socket_connect=no 8528 ac_cv_lib_socket_connect=no
7697fi 8529fi
7698rm -f core conftest.err conftest.$ac_objext \ 8530rm -f core conftest.err conftest.$ac_objext conftest.beam \
7699 conftest$ac_exeext conftest.$ac_ext 8531 conftest$ac_exeext conftest.$ac_ext
7700LIBS=$ac_check_lib_save_LIBS 8532LIBS=$ac_check_lib_save_LIBS
7701fi 8533fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7703$as_echo "$ac_cv_lib_socket_connect" >&6; } 8535printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
7704if test "x$ac_cv_lib_socket_connect" = xyes; then : 8536if test "x$ac_cv_lib_socket_connect" = xyes
7705 cat >>confdefs.h <<_ACEOF 8537then :
7706#define HAVE_LIBSOCKET 1 8538 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
7707_ACEOF
7708 8539
7709 LIBS="-lsocket $LIBS" 8540 LIBS="-lsocket $LIBS"
7710 8541
7711fi 8542fi
7712 8543
7713 8544
7714fi 8545fi
7715 8546
7716ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8547ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7717if test "x$ac_cv_func_gethostbyname" = xyes; then : 8548if test "x$ac_cv_func_gethostbyname" = xyes
8549then :
7718 8550
7719else 8551else $as_nop
7720 8552
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7722$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8554printf %s "checking for gethostbyname in -lnsl... " >&6; }
7723if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8555if test ${ac_cv_lib_nsl_gethostbyname+y}
7724 $as_echo_n "(cached) " >&6 8556then :
7725else 8557 printf %s "(cached) " >&6
8558else $as_nop
7726 ac_check_lib_save_LIBS=$LIBS 8559 ac_check_lib_save_LIBS=$LIBS
7727LIBS="-lnsl $LIBS" 8560LIBS="-lnsl $LIBS"
7728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h. */ 8562/* end confdefs.h. */
7730 8563
7731/* Override any GCC internal prototype to avoid an error. 8564/* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC 8565 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */ 8566 builtin and then its argument prototype would still apply. */
7734#ifdef __cplusplus
7735extern "C"
7736#endif
7737char gethostbyname (); 8567char gethostbyname ();
7738int 8568int
7739main () 8569main (void)
7740{ 8570{
7741return gethostbyname (); 8571return gethostbyname ();
7742 ; 8572 ;
7743 return 0; 8573 return 0;
7744} 8574}
7745_ACEOF 8575_ACEOF
7746if ac_fn_c_try_link "$LINENO"; then : 8576if ac_fn_c_try_link "$LINENO"
8577then :
7747 ac_cv_lib_nsl_gethostbyname=yes 8578 ac_cv_lib_nsl_gethostbyname=yes
7748else 8579else $as_nop
7749 ac_cv_lib_nsl_gethostbyname=no 8580 ac_cv_lib_nsl_gethostbyname=no
7750fi 8581fi
7751rm -f core conftest.err conftest.$ac_objext \ 8582rm -f core conftest.err conftest.$ac_objext conftest.beam \
7752 conftest$ac_exeext conftest.$ac_ext 8583 conftest$ac_exeext conftest.$ac_ext
7753LIBS=$ac_check_lib_save_LIBS 8584LIBS=$ac_check_lib_save_LIBS
7754fi 8585fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7756$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8587printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
7757if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8588if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
7758 cat >>confdefs.h <<_ACEOF 8589then :
7759#define HAVE_LIBNSL 1 8590 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
7760_ACEOF
7761 8591
7762 LIBS="-lnsl $LIBS" 8592 LIBS="-lnsl $LIBS"
7763 8593
7764fi 8594fi
7765 8595
7766 8596
7767fi 8597fi
7768 8598
7769 8599
7770 8600
7771for 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 8601ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
7772do : 8602if test "x$ac_cv_header_sys_inotify_h" = xyes
7773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8603then :
7774ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8604 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
7775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7776 cat >>confdefs.h <<_ACEOF
7777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7778_ACEOF
7779 8605
7780fi 8606fi
8607ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
8608if test "x$ac_cv_header_sys_epoll_h" = xyes
8609then :
8610 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
7781 8611
7782done
7783
7784
7785for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
7786do :
7787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7788ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7789if 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
7794fi 8612fi
7795done 8613ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
8614if test "x$ac_cv_header_sys_event_h" = xyes
8615then :
8616 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
7796 8617
8618fi
8619ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
8620if test "x$ac_cv_header_port_h" = xyes
8621then :
8622 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
7797 8623
8624fi
8625ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
8626if test "x$ac_cv_header_poll_h" = xyes
8627then :
8628 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
8629
8630fi
8631ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
8632if test "x$ac_cv_header_sys_timerfd_h" = xyes
8633then :
8634 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
8635
8636fi
8637
8638ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
8639if test "x$ac_cv_header_sys_select_h" = xyes
8640then :
8641 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
8642
8643fi
8644ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
8645if test "x$ac_cv_header_sys_eventfd_h" = xyes
8646then :
8647 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
8648
8649fi
8650ac_fn_c_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
8651if test "x$ac_cv_header_sys_signalfd_h" = xyes
8652then :
8653 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
8654
8655fi
8656ac_fn_c_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default"
8657if test "x$ac_cv_header_linux_aio_abi_h" = xyes
8658then :
8659 printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h
8660
8661fi
8662ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
8663if test "x$ac_cv_header_linux_fs_h" = xyes
8664then :
8665 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
8666
8667fi
8668
8669
8670ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
8671if test "x$ac_cv_func_inotify_init" = xyes
8672then :
8673 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
8674
8675fi
8676ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
8677if test "x$ac_cv_func_epoll_ctl" = xyes
8678then :
8679 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
8680
8681fi
8682ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
8683if test "x$ac_cv_func_kqueue" = xyes
8684then :
8685 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
8686
8687fi
8688ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
8689if test "x$ac_cv_func_port_create" = xyes
8690then :
8691 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
8692
8693fi
8694ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8695if test "x$ac_cv_func_poll" = xyes
8696then :
8697 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
8698
8699fi
8700ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
8701if test "x$ac_cv_func_select" = xyes
8702then :
8703 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
8704
8705fi
8706ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
8707if test "x$ac_cv_func_eventfd" = xyes
8708then :
8709 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
8710
8711fi
8712ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
8713if test "x$ac_cv_func_signalfd" = xyes
8714then :
8715 printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h
8716
8717fi
8718
8719
8720
7798for ac_func in clock_gettime 8721 for ac_func in clock_gettime
7799do : 8722do :
7800 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 8723 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7801if test "x$ac_cv_func_clock_gettime" = xyes; then : 8724if test "x$ac_cv_func_clock_gettime" = xyes
7802 cat >>confdefs.h <<_ACEOF 8725then :
7803#define HAVE_CLOCK_GETTIME 1 8726 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7804_ACEOF
7805 8727
7806else 8728else $as_nop
7807 8729
7808 if test $(uname) = Linux; then 8730 if test $(uname) = Linux; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
7810$as_echo_n "checking for clock_gettime syscall... " >&6; } 8732printf %s "checking for clock_gettime syscall... " >&6; }
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */ 8734/* end confdefs.h. */
7813#include <unistd.h> 8735#include <unistd.h>
7814 #include <sys/syscall.h> 8736 #include <sys/syscall.h>
7815 #include <time.h> 8737 #include <time.h>
7816int 8738int
7817main () 8739main (void)
7818{ 8740{
7819struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) 8741struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
7820 ; 8742 ;
7821 return 0; 8743 return 0;
7822} 8744}
7823_ACEOF 8745_ACEOF
7824if ac_fn_c_try_link "$LINENO"; then : 8746if ac_fn_c_try_link "$LINENO"
8747then :
7825 ac_have_clock_syscall=1 8748 ac_have_clock_syscall=1
7826 8749
7827$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h 8750printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
7828 8751
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830$as_echo "yes" >&6; } 8753printf "%s\n" "yes" >&6; }
7831else 8754else $as_nop
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; } 8756printf "%s\n" "no" >&6; }
7834fi 8757fi
7835rm -f core conftest.err conftest.$ac_objext \ 8758rm -f core conftest.err conftest.$ac_objext conftest.beam \
7836 conftest$ac_exeext conftest.$ac_ext 8759 conftest$ac_exeext conftest.$ac_ext
7837 fi 8760 fi
7838 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then 8761 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 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7840$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 8763printf %s "checking for clock_gettime in -lrt... " >&6; }
7841if ${ac_cv_lib_rt_clock_gettime+:} false; then : 8764if test ${ac_cv_lib_rt_clock_gettime+y}
7842 $as_echo_n "(cached) " >&6 8765then :
7843else 8766 printf %s "(cached) " >&6
8767else $as_nop
7844 ac_check_lib_save_LIBS=$LIBS 8768 ac_check_lib_save_LIBS=$LIBS
7845LIBS="-lrt $LIBS" 8769LIBS="-lrt $LIBS"
7846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h. */ 8771/* end confdefs.h. */
7848 8772
7849/* Override any GCC internal prototype to avoid an error. 8773/* Override any GCC internal prototype to avoid an error.
7850 Use char because int might match the return type of a GCC 8774 Use char because int might match the return type of a GCC
7851 builtin and then its argument prototype would still apply. */ 8775 builtin and then its argument prototype would still apply. */
7852#ifdef __cplusplus
7853extern "C"
7854#endif
7855char clock_gettime (); 8776char clock_gettime ();
7856int 8777int
7857main () 8778main (void)
7858{ 8779{
7859return clock_gettime (); 8780return clock_gettime ();
7860 ; 8781 ;
7861 return 0; 8782 return 0;
7862} 8783}
7863_ACEOF 8784_ACEOF
7864if ac_fn_c_try_link "$LINENO"; then : 8785if ac_fn_c_try_link "$LINENO"
8786then :
7865 ac_cv_lib_rt_clock_gettime=yes 8787 ac_cv_lib_rt_clock_gettime=yes
7866else 8788else $as_nop
7867 ac_cv_lib_rt_clock_gettime=no 8789 ac_cv_lib_rt_clock_gettime=no
7868fi 8790fi
7869rm -f core conftest.err conftest.$ac_objext \ 8791rm -f core conftest.err conftest.$ac_objext conftest.beam \
7870 conftest$ac_exeext conftest.$ac_ext 8792 conftest$ac_exeext conftest.$ac_ext
7871LIBS=$ac_check_lib_save_LIBS 8793LIBS=$ac_check_lib_save_LIBS
7872fi 8794fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 8795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7874$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 8796printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
7875if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 8797if test "x$ac_cv_lib_rt_clock_gettime" = xyes
7876 cat >>confdefs.h <<_ACEOF 8798then :
7877#define HAVE_LIBRT 1 8799 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
7878_ACEOF
7879 8800
7880 LIBS="-lrt $LIBS" 8801 LIBS="-lrt $LIBS"
7881 8802
7882fi 8803fi
7883 8804
7884 unset ac_cv_func_clock_gettime 8805 unset ac_cv_func_clock_gettime
7885 for ac_func in clock_gettime
7886do :
7887 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 8806 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7888if test "x$ac_cv_func_clock_gettime" = xyes; then : 8807if test "x$ac_cv_func_clock_gettime" = xyes
7889 cat >>confdefs.h <<_ACEOF 8808then :
7890#define HAVE_CLOCK_GETTIME 1 8809 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7891_ACEOF
7892 8810
7893fi 8811fi
8812
8813 fi
8814
8815fi
8816
7894done 8817done
7895 8818
7896 fi
7897 8819
7898fi
7899done
7900
7901
7902for ac_func in nanosleep 8820 for ac_func in nanosleep
7903do : 8821do :
7904 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 8822 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7905if test "x$ac_cv_func_nanosleep" = xyes; then : 8823if test "x$ac_cv_func_nanosleep" = xyes
7906 cat >>confdefs.h <<_ACEOF 8824then :
7907#define HAVE_NANOSLEEP 1 8825 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
7908_ACEOF
7909 8826
7910else 8827else $as_nop
7911 8828
7912 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 8829 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7914$as_echo_n "checking for nanosleep in -lrt... " >&6; } 8831printf %s "checking for nanosleep in -lrt... " >&6; }
7915if ${ac_cv_lib_rt_nanosleep+:} false; then : 8832if test ${ac_cv_lib_rt_nanosleep+y}
7916 $as_echo_n "(cached) " >&6 8833then :
7917else 8834 printf %s "(cached) " >&6
8835else $as_nop
7918 ac_check_lib_save_LIBS=$LIBS 8836 ac_check_lib_save_LIBS=$LIBS
7919LIBS="-lrt $LIBS" 8837LIBS="-lrt $LIBS"
7920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h. */ 8839/* end confdefs.h. */
7922 8840
7923/* Override any GCC internal prototype to avoid an error. 8841/* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC 8842 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */ 8843 builtin and then its argument prototype would still apply. */
7926#ifdef __cplusplus
7927extern "C"
7928#endif
7929char nanosleep (); 8844char nanosleep ();
7930int 8845int
7931main () 8846main (void)
7932{ 8847{
7933return nanosleep (); 8848return nanosleep ();
7934 ; 8849 ;
7935 return 0; 8850 return 0;
7936} 8851}
7937_ACEOF 8852_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then : 8853if ac_fn_c_try_link "$LINENO"
8854then :
7939 ac_cv_lib_rt_nanosleep=yes 8855 ac_cv_lib_rt_nanosleep=yes
7940else 8856else $as_nop
7941 ac_cv_lib_rt_nanosleep=no 8857 ac_cv_lib_rt_nanosleep=no
7942fi 8858fi
7943rm -f core conftest.err conftest.$ac_objext \ 8859rm -f core conftest.err conftest.$ac_objext conftest.beam \
7944 conftest$ac_exeext conftest.$ac_ext 8860 conftest$ac_exeext conftest.$ac_ext
7945LIBS=$ac_check_lib_save_LIBS 8861LIBS=$ac_check_lib_save_LIBS
7946fi 8862fi
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7948$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 8864printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
7949if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 8865if test "x$ac_cv_lib_rt_nanosleep" = xyes
7950 cat >>confdefs.h <<_ACEOF 8866then :
7951#define HAVE_LIBRT 1 8867 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
7952_ACEOF
7953 8868
7954 LIBS="-lrt $LIBS" 8869 LIBS="-lrt $LIBS"
7955 8870
7956fi 8871fi
7957 8872
7958 unset ac_cv_func_nanosleep 8873 unset ac_cv_func_nanosleep
7959 for ac_func in nanosleep
7960do :
7961 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 8874 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7962if test "x$ac_cv_func_nanosleep" = xyes; then : 8875if test "x$ac_cv_func_nanosleep" = xyes
7963 cat >>confdefs.h <<_ACEOF 8876then :
7964#define HAVE_NANOSLEEP 1 8877 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
7965_ACEOF
7966 8878
7967fi 8879fi
8880
8881 fi
8882
8883fi
8884
7968done 8885done
7969 8886
7970 fi 8887ac_fn_c_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
8888"
8889if test "x$ac_cv_type___kernel_rwf_t" = xyes
8890then :
7971 8891
8892
8893printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
8894
8895
7972fi 8896fi
7973done
7974 8897
7975 8898
7976if test -z "$LIBEV_M4_AVOID_LIBM"; then 8899if test -z "$LIBEV_M4_AVOID_LIBM"; then
7977 LIBM=m 8900 LIBM=m
7978fi 8901fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
7980$as_echo_n "checking for library containing floor... " >&6; } 8903printf %s "checking for library containing floor... " >&6; }
7981if ${ac_cv_search_floor+:} false; then : 8904if test ${ac_cv_search_floor+y}
7982 $as_echo_n "(cached) " >&6 8905then :
7983else 8906 printf %s "(cached) " >&6
8907else $as_nop
7984 ac_func_search_save_LIBS=$LIBS 8908 ac_func_search_save_LIBS=$LIBS
7985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h. */ 8910/* end confdefs.h. */
7987 8911
7988/* Override any GCC internal prototype to avoid an error. 8912/* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC 8913 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */ 8914 builtin and then its argument prototype would still apply. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994char floor (); 8915char floor ();
7995int 8916int
7996main () 8917main (void)
7997{ 8918{
7998return floor (); 8919return floor ();
7999 ; 8920 ;
8000 return 0; 8921 return 0;
8001} 8922}
8002_ACEOF 8923_ACEOF
8003for ac_lib in '' $LIBM; do 8924for ac_lib in '' $LIBM
8925do
8004 if test -z "$ac_lib"; then 8926 if test -z "$ac_lib"; then
8005 ac_res="none required" 8927 ac_res="none required"
8006 else 8928 else
8007 ac_res=-l$ac_lib 8929 ac_res=-l$ac_lib
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8009 fi 8931 fi
8010 if ac_fn_c_try_link "$LINENO"; then : 8932 if ac_fn_c_try_link "$LINENO"
8933then :
8011 ac_cv_search_floor=$ac_res 8934 ac_cv_search_floor=$ac_res
8012fi 8935fi
8013rm -f core conftest.err conftest.$ac_objext \ 8936rm -f core conftest.err conftest.$ac_objext conftest.beam \
8014 conftest$ac_exeext 8937 conftest$ac_exeext
8015 if ${ac_cv_search_floor+:} false; then : 8938 if test ${ac_cv_search_floor+y}
8939then :
8016 break 8940 break
8017fi 8941fi
8018done 8942done
8019if ${ac_cv_search_floor+:} false; then : 8943if test ${ac_cv_search_floor+y}
8944then :
8020 8945
8021else 8946else $as_nop
8022 ac_cv_search_floor=no 8947 ac_cv_search_floor=no
8023fi 8948fi
8024rm conftest.$ac_ext 8949rm conftest.$ac_ext
8025LIBS=$ac_func_search_save_LIBS 8950LIBS=$ac_func_search_save_LIBS
8026fi 8951fi
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 8952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
8028$as_echo "$ac_cv_search_floor" >&6; } 8953printf "%s\n" "$ac_cv_search_floor" >&6; }
8029ac_res=$ac_cv_search_floor 8954ac_res=$ac_cv_search_floor
8030if test "$ac_res" != no; then : 8955if test "$ac_res" != no
8956then :
8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8032 8958
8033$as_echo "#define HAVE_FLOOR 1" >>confdefs.h 8959printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
8034 8960
8035fi 8961fi
8036 8962
8037 8963
8038 8964
8070 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8996 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 8997 eval ac_val=\$$ac_var
8072 case $ac_val in #( 8998 case $ac_val in #(
8073 *${as_nl}*) 8999 *${as_nl}*)
8074 case $ac_var in #( 9000 case $ac_var in #(
8075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9001 *_cv_*) { printf "%s\n" "$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;} ;; 9002printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8077 esac 9003 esac
8078 case $ac_var in #( 9004 case $ac_var in #(
8079 _ | IFS | as_nl) ;; #( 9005 _ | IFS | as_nl) ;; #(
8080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8081 *) { eval $ac_var=; unset $ac_var;} ;; 9007 *) { eval $ac_var=; unset $ac_var;} ;;
8101) | 9027) |
8102 sed ' 9028 sed '
8103 /^ac_cv_env_/b end 9029 /^ac_cv_env_/b end
8104 t clear 9030 t clear
8105 :clear 9031 :clear
8106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9032 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8107 t end 9033 t end
8108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8109 :end' >>confcache 9035 :end' >>confcache
8110if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8111 if test -w "$cache_file"; then 9037 if test -w "$cache_file"; then
8112 if test "x$cache_file" != "x/dev/null"; then 9038 if test "x$cache_file" != "x/dev/null"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8114$as_echo "$as_me: updating cache $cache_file" >&6;} 9040printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8115 if test ! -f "$cache_file" || test -h "$cache_file"; then 9041 if test ! -f "$cache_file" || test -h "$cache_file"; then
8116 cat confcache >"$cache_file" 9042 cat confcache >"$cache_file"
8117 else 9043 else
8118 case $cache_file in #( 9044 case $cache_file in #(
8119 */* | ?:*) 9045 */* | ?:*)
8123 mv -f confcache "$cache_file" ;; 9049 mv -f confcache "$cache_file" ;;
8124 esac 9050 esac
8125 fi 9051 fi
8126 fi 9052 fi
8127 else 9053 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8129$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9055printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8130 fi 9056 fi
8131fi 9057fi
8132rm -f confcache 9058rm -f confcache
8133 9059
8134 9060
8135 9061
8136# Check whether --with-kernel was given. 9062# Check whether --with-kernel was given.
8137if test "${with_kernel+set}" = set; then : 9063if test ${with_kernel+y}
9064then :
8138 withval=$with_kernel; kerneldir="$withval" 9065 withval=$with_kernel; kerneldir="$withval"
8139else 9066else $as_nop
8140 kerneldir="/usr/src/linux" 9067 kerneldir="/usr/src/linux"
8141 9068
8142fi 9069fi
8143 9070
8144 9071
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5 9072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5
8146$as_echo_n "checking for linux/if_tun.h... " >&6; } 9073printf %s "checking for linux/if_tun.h... " >&6; }
8147if ${tinc_cv_linux_if_tun_h+:} false; then : 9074if test ${tinc_cv_linux_if_tun_h+y}
8148 $as_echo_n "(cached) " >&6 9075then :
8149else 9076 printf %s "(cached) " >&6
9077else $as_nop
8150 9078
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h. */ 9080/* end confdefs.h. */
8153#include "$kerneldir/include/linux/if_tun.h" 9081#include "$kerneldir/include/linux/if_tun.h"
8154int 9082int
8155main () 9083main (void)
8156{ 9084{
8157int a = IFF_TAP; 9085int a = IFF_TAP;
8158 ; 9086 ;
8159 return 0; 9087 return 0;
8160} 9088}
8161_ACEOF 9089_ACEOF
8162if ac_fn_cxx_try_compile "$LINENO"; then : 9090if ac_fn_cxx_try_compile "$LINENO"
9091then :
8163 if_tun_h="\"$kerneldir/include/linux/if_tun.h\"" 9092 if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
8164else 9093else $as_nop
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166/* end confdefs.h. */ 9095/* end confdefs.h. */
8167#include <linux/if_tun.h> 9096#include <linux/if_tun.h>
8168int 9097int
8169main () 9098main (void)
8170{ 9099{
8171int a = IFF_TAP; 9100int a = IFF_TAP;
8172 ; 9101 ;
8173 return 0; 9102 return 0;
8174} 9103}
8175_ACEOF 9104_ACEOF
8176if ac_fn_cxx_try_compile "$LINENO"; then : 9105if ac_fn_cxx_try_compile "$LINENO"
9106then :
8177 if_tun_h="default" 9107 if_tun_h="default"
8178else 9108else $as_nop
8179 if_tun_h="no" 9109 if_tun_h="no"
8180 9110
8181fi 9111fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8183 9113
8184fi 9114fi
8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8186 9116
8187 if test $if_tun_h = no; then 9117 if test $if_tun_h = no; then
8188 tinc_cv_linux_if_tun_h=none 9118 tinc_cv_linux_if_tun_h=none
8189 else 9119 else
8190 tinc_cv_linux_if_tun_h="$if_tun_h" 9120 tinc_cv_linux_if_tun_h="$if_tun_h"
8191 fi 9121 fi
8192 9122
8193fi 9123fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5 9124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5
8195$as_echo "$tinc_cv_linux_if_tun_h" >&6; } 9125printf "%s\n" "$tinc_cv_linux_if_tun_h" >&6; }
8196 9126
8197if test $tinc_cv_linux_if_tun_h != none; then 9127if test $tinc_cv_linux_if_tun_h != none; then
8198 9128
8199$as_echo "#define HAVE_TUNTAP 1" >>confdefs.h 9129printf "%s\n" "#define HAVE_TUNTAP 1" >>confdefs.h
8200 9130
8201 if test $tinc_cv_linux_if_tun_h != default; then 9131 if test $tinc_cv_linux_if_tun_h != default; then
8202 9132
8203cat >>confdefs.h <<_ACEOF
8204#define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h 9133printf "%s\n" "#define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h" >>confdefs.h
8205_ACEOF
8206 9134
8207 fi 9135 fi
8208fi 9136fi
8209 9137
8210 9138
8211 9139
8212 9140
8213 9141
8214 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8215 9142
8216 9143
8217# Check whether --with-openssl-include was given.
8218if test "${with_openssl_include+set}" = set; then :
8219 withval=$with_openssl_include; openssl_include="$withval"
8220 CFLAGS="$CFLAGS -I$withval"
8221 CPPFLAGS="$CPPFLAGS -I$withval"
8222 9144
8223fi
8224 9145
8225 9146
8226 9147
8227# Check whether --with-openssl-lib was given. 9148if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8228if test "${with_openssl_lib+set}" = set; then : 9149 if test -n "$ac_tool_prefix"; then
8229 withval=$with_openssl_lib; openssl_lib="$withval" 9150 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8230 LIBS="$LIBS -L$withval" 9151set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153printf %s "checking for $ac_word... " >&6; }
9154if test ${ac_cv_path_PKG_CONFIG+y}
9155then :
9156 printf %s "(cached) " >&6
9157else $as_nop
9158 case $PKG_CONFIG in
9159 [\\/]* | ?:[\\/]*)
9160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9161 ;;
9162 *)
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164for as_dir in $PATH
9165do
9166 IFS=$as_save_IFS
9167 case $as_dir in #(((
9168 '') as_dir=./ ;;
9169 */) ;;
9170 *) as_dir=$as_dir/ ;;
9171 esac
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9174 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178done
9179 done
9180IFS=$as_save_IFS
8231 9181
9182 ;;
9183esac
8232fi 9184fi
8233 9185PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8234 9186if test -n "$PKG_CONFIG"; then
8235 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h 9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8236do : 9188printf "%s\n" "$PKG_CONFIG" >&6; }
8237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8238ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8240 cat >>confdefs.h <<_ACEOF
8241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242_ACEOF
8243
8244else 9189else
8245 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 9191printf "%s\n" "no" >&6; }
8247fi 9192fi
8248 9193
9194
9195fi
9196if test -z "$ac_cv_path_PKG_CONFIG"; then
9197 ac_pt_PKG_CONFIG=$PKG_CONFIG
9198 # Extract the first word of "pkg-config", so it can be a program name with args.
9199set dummy pkg-config; ac_word=$2
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201printf %s "checking for $ac_word... " >&6; }
9202if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
9203then :
9204 printf %s "(cached) " >&6
9205else $as_nop
9206 case $ac_pt_PKG_CONFIG in
9207 [\\/]* | ?:[\\/]*)
9208 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9209 ;;
9210 *)
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212for as_dir in $PATH
9213do
9214 IFS=$as_save_IFS
9215 case $as_dir in #(((
9216 '') as_dir=./ ;;
9217 */) ;;
9218 *) as_dir=$as_dir/ ;;
9219 esac
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9222 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
9223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9224 break 2
9225 fi
8249done 9226done
9227 done
9228IFS=$as_save_IFS
8250 9229
8251 9230 ;;
8252 CPPFLAGS="$tinc_ac_save_CPPFLAGS" 9231esac
8253 9232fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 9233ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8255$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 9234if test -n "$ac_pt_PKG_CONFIG"; then
8256if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8257 $as_echo_n "(cached) " >&6 9236printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8258else 9237else
8259 ac_check_lib_save_LIBS=$LIBS 9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260LIBS="-lcrypto $LIBS" 9239printf "%s\n" "no" >&6; }
8261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240fi
8262/* end confdefs.h. */
8263 9241
8264/* Override any GCC internal prototype to avoid an error. 9242 if test "x$ac_pt_PKG_CONFIG" = x; then
8265 Use char because int might match the return type of a GCC 9243 PKG_CONFIG=""
8266 builtin and then its argument prototype would still apply. */ 9244 else
8267#ifdef __cplusplus 9245 case $cross_compiling:$ac_tool_warned in
8268extern "C" 9246yes:)
8269#endif 9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270char SHA1_Init (); 9248printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271int 9249ac_tool_warned=yes ;;
8272main () 9250esac
8273{ 9251 PKG_CONFIG=$ac_pt_PKG_CONFIG
8274return SHA1_Init (); 9252 fi
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279if ac_fn_cxx_try_link "$LINENO"; then :
8280 ac_cv_lib_crypto_SHA1_Init=yes
8281else 9253else
8282 ac_cv_lib_crypto_SHA1_Init=no 9254 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9255fi
9256
9257fi
9258if test -n "$PKG_CONFIG"; then
9259 _pkg_min_version=0.9.0
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9261printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9264printf "%s\n" "yes" >&6; }
9265 else
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267printf "%s\n" "no" >&6; }
9268 PKG_CONFIG=""
8283fi 9269 fi
8284rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286LIBS=$ac_check_lib_save_LIBS
8287fi 9270fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 9271
8289$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 9272pkg_failed=no
8290if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 9273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1" >&5
8291 LIBS="$LIBS -lcrypto" 9274printf %s "checking for libcrypto >= 1... " >&6; }
9275
9276if test -n "$LIBCRYPTO_CFLAGS"; then
9277 pkg_cv_LIBCRYPTO_CFLAGS="$LIBCRYPTO_CFLAGS"
9278 elif test -n "$PKG_CONFIG"; then
9279 if test -n "$PKG_CONFIG" && \
9280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
9281 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
9282 ac_status=$?
9283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9284 test $ac_status = 0; }; then
9285 pkg_cv_LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1" 2>/dev/null`
9286 test "x$?" != "x0" && pkg_failed=yes
8292else 9287else
8293 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5 9288 pkg_failed=yes
8294
8295fi 9289fi
8296 9290 else
8297 9291 pkg_failed=untried
8298 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8299do :
8300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8301ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8303 cat >>confdefs.h <<_ACEOF
8304#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8305_ACEOF
8306
8307fi 9292fi
8308done 9293if test -n "$LIBCRYPTO_LIBS"; then
8309 9294 pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS"
8310 9295 elif test -n "$PKG_CONFIG"; then
8311 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9296 if test -n "$PKG_CONFIG" && \
8312if test "x$ac_cv_func_dlopen" = xyes; then : 9297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
8313 9298 ($PKG_CONFIG --exists --print-errors "libcrypto >= 1") 2>&5
9299 ac_status=$?
9300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9301 test $ac_status = 0; }; then
9302 pkg_cv_LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1" 2>/dev/null`
9303 test "x$?" != "x0" && pkg_failed=yes
8314else 9304else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9305 pkg_failed=yes
8316$as_echo_n "checking for dlopen in -ldl... " >&6; } 9306fi
8317if ${ac_cv_lib_dl_dlopen+:} false; then : 9307 else
8318 $as_echo_n "(cached) " >&6 9308 pkg_failed=untried
9309fi
9310
9311
9312
9313if test $pkg_failed = yes; then
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315printf "%s\n" "no" >&6; }
9316
9317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9318 _pkg_short_errors_supported=yes
8319else 9319else
8320 ac_check_lib_save_LIBS=$LIBS 9320 _pkg_short_errors_supported=no
8321LIBS="-ldl $LIBS" 9321fi
8322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322 if test $_pkg_short_errors_supported = yes; then
8323/* end confdefs.h. */ 9323 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
9324 else
9325 LIBCRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1" 2>&1`
9326 fi
9327 # Put the nasty error message in config.log where it belongs
9328 echo "$LIBCRYPTO_PKG_ERRORS" >&5
8324 9329
8325/* Override any GCC internal prototype to avoid an error. 9330 as_fn_error $? "Package requirements (libcrypto >= 1) were not met:
8326 Use char because int might match the return type of a GCC 9331
8327 builtin and then its argument prototype would still apply. */ 9332$LIBCRYPTO_PKG_ERRORS
8328#ifdef __cplusplus 9333
8329extern "C" 9334Consider adjusting the PKG_CONFIG_PATH environment variable if you
8330#endif 9335installed software in a non-standard prefix.
8331char dlopen (); 9336
8332int 9337Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
8333main () 9338and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
8334{ 9339See the pkg-config man page for more details." "$LINENO" 5
8335return dlopen (); 9340elif test $pkg_failed = untried; then
8336 ; 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 return 0; 9342printf "%s\n" "no" >&6; }
8338} 9343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8339_ACEOF 9344printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8340if ac_fn_cxx_try_link "$LINENO"; then : 9345as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8341 ac_cv_lib_dl_dlopen=yes 9346is in your PATH or set the PKG_CONFIG environment variable to the full
9347path to pkg-config.
9348
9349Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
9350and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
9351See the pkg-config man page for more details.
9352
9353To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9354See \`config.log' for more details" "$LINENO" 5; }
8342else 9355else
8343 ac_cv_lib_dl_dlopen=no 9356 LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS
8344fi 9357 LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS
8345rm -f core conftest.err conftest.$ac_objext \ 9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8346 conftest$ac_exeext conftest.$ac_ext 9359printf "%s\n" "yes" >&6; }
8347LIBS=$ac_check_lib_save_LIBS
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8350$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8351if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8352 LIBS="$LIBS -ldl"
8353else
8354 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8355 9360
8356fi
8357
8358
8359fi
8360
8361
8362 ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate"
8363if test "x$ac_cv_func_inflate" = xyes; then :
8364
8365else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8367$as_echo_n "checking for inflate in -lz... " >&6; }
8368if ${ac_cv_lib_z_inflate+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-lz $LIBS"
8373cat 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
8380extern "C"
8381#endif
8382char inflate ();
8383int
8384main ()
8385{
8386return inflate ();
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391if ac_fn_cxx_try_link "$LINENO"; then :
8392 ac_cv_lib_z_inflate=yes
8393else
8394 ac_cv_lib_z_inflate=no
8395fi
8396rm -f core conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398LIBS=$ac_check_lib_save_LIBS
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8401$as_echo "$ac_cv_lib_z_inflate" >&6; }
8402if test "x$ac_cv_lib_z_inflate" = xyes; then :
8403 LIBS="$LIBS -lz"
8404else
8405 as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5
8406
8407fi
8408
8409
8410fi
8411
8412
8413if test "x$openssl_include" != x; then
8414 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8415fi 9361fi
8416 9362
8417# Check whether --enable-threads was given. 9363# Check whether --enable-threads was given.
8418if test "${enable_threads+set}" = set; then : 9364if test ${enable_threads+y}
9365then :
8419 enableval=$enable_threads; try_threads=$enableval 9366 enableval=$enable_threads; try_threads=$enableval
8420else 9367else $as_nop
8421 try_threads=yes 9368 try_threads=yes
8422 9369
8423fi 9370fi
8424 9371
8425 9372
8426if test "x$try_threads" = xyes; then 9373if test "x$try_threads" = xyes; then
8427 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9374 ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8428if test "x$ac_cv_header_pthread_h" = xyes; then : 9375if test "x$ac_cv_header_pthread_h" = xyes
9376then :
8429 9377
8430 LIBS="$LIBS -lpthread" 9378 LIBS="$LIBS -lpthread"
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h. */ 9380/* end confdefs.h. */
8433#include <pthread.h> 9381#include <pthread.h>
8434int 9382int
8435main () 9383main (void)
8436{ 9384{
8437pthread_t id; pthread_create (&id, 0, 0, 0); 9385pthread_t id; pthread_create (&id, 0, 0, 0);
8438 ; 9386 ;
8439 return 0; 9387 return 0;
8440} 9388}
8441_ACEOF 9389_ACEOF
8442if ac_fn_cxx_try_compile "$LINENO"; then : 9390if ac_fn_cxx_try_compile "$LINENO"
9391then :
8443 9392
8444cat >>confdefs.h <<_ACEOF 9393printf "%s\n" "#define ENABLE_PTHREADS 1" >>confdefs.h
8445#define ENABLE_PTHREADS 1
8446_ACEOF
8447 9394
8448 9395
8449fi 9396fi
8450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 9398
8452fi 9399fi
8453
8454 9400
8455fi 9401fi
8456 9402
8457# Check whether --enable-static-daemon was given. 9403# Check whether --enable-static-daemon was given.
8458if test "${enable_static_daemon+set}" = set; then : 9404if test ${enable_static_daemon+y}
9405then :
8459 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static 9406 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
8460 9407
8461fi 9408fi
8462 9409
8463 9410
8473 9420
8474 9421
8475 9422
8476ICMP=1 9423ICMP=1
8477# Check whether --enable-icmp was given. 9424# Check whether --enable-icmp was given.
8478if test "${enable_icmp+set}" = set; then : 9425if test ${enable_icmp+y}
9426then :
8479 enableval=$enable_icmp; if test "x$enableval" = xno; then 9427 enableval=$enable_icmp; if test "x$enableval" = xno; then
8480 ICMP=0 9428 ICMP=0
8481 fi 9429 fi
8482 9430
8483fi 9431fi
8484 9432
8485if test "x$ICMP" = x1; then 9433if test "x$ICMP" = x1; then
8486 9434
8487cat >>confdefs.h <<_ACEOF 9435printf "%s\n" "#define ENABLE_ICMP 1" >>confdefs.h
8488#define ENABLE_ICMP 1
8489_ACEOF
8490 9436
8491fi 9437fi
8492 9438
8493TCP=1 9439TCP=1
8494# Check whether --enable-tcp was given. 9440# Check whether --enable-tcp was given.
8495if test "${enable_tcp+set}" = set; then : 9441if test ${enable_tcp+y}
9442then :
8496 enableval=$enable_tcp; if test "x$enableval" = xno; then 9443 enableval=$enable_tcp; if test "x$enableval" = xno; then
8497 TCP=0 9444 TCP=0
8498 fi 9445 fi
8499 9446
8500fi 9447fi
8501 9448
8502if test "x$TCP" = x1; then 9449if test "x$TCP" = x1; then
8503 9450
8504cat >>confdefs.h <<_ACEOF 9451printf "%s\n" "#define ENABLE_TCP 1" >>confdefs.h
8505#define ENABLE_TCP 1
8506_ACEOF
8507 9452
8508fi 9453fi
8509 9454
8510HTTP=1 9455HTTP=1
8511# Check whether --enable-http-proxy was given. 9456# Check whether --enable-http-proxy was given.
8512if test "${enable_http_proxy+set}" = set; then : 9457if test ${enable_http_proxy+y}
9458then :
8513 enableval=$enable_http_proxy; if test "x$enableval" = xno; then 9459 enableval=$enable_http_proxy; if test "x$enableval" = xno; then
8514 HTTP=0 9460 HTTP=0
8515 fi 9461 fi
8516 9462
8517fi 9463fi
8518 9464
8519if test "x$HTTP" = x1; then 9465if test "x$HTTP" = x1; then
8520 9466
8521cat >>confdefs.h <<_ACEOF 9467printf "%s\n" "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
8522#define ENABLE_HTTP_PROXY 1
8523_ACEOF
8524 9468
8525fi 9469fi
8526 9470
8527# Check whether --enable-dns was given. 9471# Check whether --enable-dns was given.
8528if test "${enable_dns+set}" = set; then : 9472if test ${enable_dns+y}
9473then :
8529 enableval=$enable_dns; 9474 enableval=$enable_dns;
8530 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 9475 ac_fn_cxx_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
8531if test "x$ac_cv_header_gmp_h" = xyes; then : 9476if test "x$ac_cv_header_gmp_h" = xyes
9477then :
8532 9478
8533else 9479else $as_nop
8534 as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5 9480 as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5
8535fi 9481fi
8536 9482
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
8539$as_echo_n "checking for main in -lgmp... " >&6; } 9484printf %s "checking for main in -lgmp... " >&6; }
8540if ${ac_cv_lib_gmp_main+:} false; then : 9485if test ${ac_cv_lib_gmp_main+y}
8541 $as_echo_n "(cached) " >&6 9486then :
8542else 9487 printf %s "(cached) " >&6
9488else $as_nop
8543 ac_check_lib_save_LIBS=$LIBS 9489 ac_check_lib_save_LIBS=$LIBS
8544LIBS="-lgmp $LIBS" 9490LIBS="-lgmp $LIBS"
8545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h. */ 9492/* end confdefs.h. */
8547 9493
8548 9494namespace conftest {
9495 extern "C" int main ();
9496}
8549int 9497int
8550main () 9498main (void)
8551{ 9499{
8552return main (); 9500return conftest::main ();
8553 ; 9501 ;
8554 return 0; 9502 return 0;
8555} 9503}
8556_ACEOF 9504_ACEOF
8557if ac_fn_cxx_try_link "$LINENO"; then : 9505if ac_fn_cxx_try_link "$LINENO"
9506then :
8558 ac_cv_lib_gmp_main=yes 9507 ac_cv_lib_gmp_main=yes
8559else 9508else $as_nop
8560 ac_cv_lib_gmp_main=no 9509 ac_cv_lib_gmp_main=no
8561fi 9510fi
8562rm -f core conftest.err conftest.$ac_objext \ 9511rm -f core conftest.err conftest.$ac_objext conftest.beam \
8563 conftest$ac_exeext conftest.$ac_ext 9512 conftest$ac_exeext conftest.$ac_ext
8564LIBS=$ac_check_lib_save_LIBS 9513LIBS=$ac_check_lib_save_LIBS
8565fi 9514fi
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 9515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
8567$as_echo "$ac_cv_lib_gmp_main" >&6; } 9516printf "%s\n" "$ac_cv_lib_gmp_main" >&6; }
8568if test "x$ac_cv_lib_gmp_main" = xyes; then : 9517if test "x$ac_cv_lib_gmp_main" = xyes
8569 cat >>confdefs.h <<_ACEOF 9518then :
8570#define HAVE_LIBGMP 1 9519 printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
8571_ACEOF
8572 9520
8573 LIBS="-lgmp $LIBS" 9521 LIBS="-lgmp $LIBS"
8574 9522
8575else 9523else $as_nop
8576 as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5 9524 as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5
8577fi 9525fi
8578 9526
8579 9527
8580 9528
8581cat >>confdefs.h <<_ACEOF 9529printf "%s\n" "#define ENABLE_DNS 1" >>confdefs.h
8582#define ENABLE_DNS 1
8583_ACEOF
8584 9530
8585 9531
8586 9532
8587fi 9533fi
8588 9534
8589 9535
9536RSA=3072
9537# Check whether --enable-rsa-length was given.
9538if test ${enable_rsa_length+y}
9539then :
9540 enableval=$enable_rsa_length; RSA=$enableval
9541
9542fi
9543
9544
9545printf "%s\n" "#define RSABITS $RSA" >>confdefs.h
9546
9547
8590HMAC=12 9548HMACSIZE=12
8591# Check whether --enable-hmac-length was given. 9549# Check whether --enable-hmac-length was given.
8592if test "${enable_hmac_length+set}" = set; then : 9550if test ${enable_hmac_length+y}
9551then :
8593 enableval=$enable_hmac_length; HMAC=$enableval 9552 enableval=$enable_hmac_length; HMACSIZE=$enableval
8594 9553
8595fi 9554fi
8596 9555
8597 9556
8598cat >>confdefs.h <<_ACEOF 9557printf "%s\n" "#define HMACLENGTH $HMACSIZE" >>confdefs.h
8599#define HMACLENGTH $HMAC
8600_ACEOF
8601
8602
8603RAND=8
8604# Check whether --enable-rand-length was given.
8605if test "${enable_rand_length+set}" = set; then :
8606 enableval=$enable_rand_length; RAND=$enableval
8607
8608fi
8609
8610
8611cat >>confdefs.h <<_ACEOF
8612#define RAND_SIZE $RAND
8613_ACEOF
8614 9558
8615 9559
8616MTU=1500 9560MTU=1500
8617# Check whether --enable-max-mtu was given. 9561# Check whether --enable-max-mtu was given.
8618if test "${enable_max_mtu+set}" = set; then : 9562if test ${enable_max_mtu+y}
9563then :
8619 enableval=$enable_max_mtu; MTU=$enableval 9564 enableval=$enable_max_mtu; MTU=$enableval
8620 9565
8621fi 9566fi
8622 9567
8623 9568
8624cat >>confdefs.h <<_ACEOF 9569printf "%s\n" "#define MAX_MTU ($MTU + 14)" >>confdefs.h
8625#define MAX_MTU ($MTU + 14)
8626_ACEOF
8627 9570
8628 9571
8629COMPRESS=1 9572COMPRESS=1
8630# Check whether --enable-compression was given. 9573# Check whether --enable-compression was given.
8631if test "${enable_compression+set}" = set; then : 9574if test ${enable_compression+y}
9575then :
8632 enableval=$enable_compression; if test "x$enableval" = xno; then 9576 enableval=$enable_compression; if test "x$enableval" = xno; then
8633 COMPRESS=0 9577 COMPRESS=0
8634 fi 9578 fi
8635 9579
8636fi 9580fi
8637 9581
8638 9582
8639cat >>confdefs.h <<_ACEOF 9583printf "%s\n" "#define ENABLE_COMPRESSION $COMPRESS" >>confdefs.h
8640#define ENABLE_COMPRESSION $COMPRESS
8641_ACEOF
8642 9584
8643 9585
8644CIPHER=aes_128_cbc 9586CIPHER=aes_128_ctr
8645# Check whether --enable-cipher was given. 9587# Check whether --enable-cipher was given.
8646if test "${enable_cipher+set}" = set; then : 9588if test ${enable_cipher+y}
9589then :
8647 enableval=$enable_cipher; if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi 9590 enableval=$enable_cipher; #if test "x$enableval" = xbf ; then CIPHER=bf_ctr ; fi
8648 if test "x$enableval" = xaes-128; then CIPHER=aes_128_cbc; fi 9591 if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_ctr ; fi
8649 if test "x$enableval" = xaes-192; then CIPHER=aes_192_cbc; fi 9592 if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_ctr ; fi
8650 if test "x$enableval" = xaes-256; then CIPHER=aes_256_cbc; fi 9593 if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_ctr ; fi
9594 #if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_ctr; fi
9595 #if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_ctr; fi
8651 9596
8652fi 9597fi
8653 9598
8654 9599
8655cat >>confdefs.h <<_ACEOF 9600printf "%s\n" "#define ENABLE_CIPHER EVP_${CIPHER}" >>confdefs.h
8656#define ENABLE_CIPHER EVP_${CIPHER}
8657_ACEOF
8658 9601
8659 9602
8660DIGEST=ripemd160 9603HMAC=sha1
8661# Check whether --enable-digest was given. 9604# Check whether --enable-hmac-digest was given.
8662if test "${enable_digest+set}" = set; then : 9605if test ${enable_hmac_digest+y}
9606then :
9607 enableval=$enable_hmac_digest; if test "x$enableval" = xwhirlpool; then HMAC=whirlpool; fi
9608 if test "x$enableval" = xsha512 ; then HMAC=sha512 ; fi
9609 if test "x$enableval" = xsha256 ; then HMAC=sha256 ; fi
9610 if test "x$enableval" = xsha1 ; then HMAC=sha1 ; fi
9611 if test "x$enableval" = xripemd160; then HMAC=ripemd160; fi
9612
9613fi
9614
9615
9616printf "%s\n" "#define ENABLE_HMAC EVP_${HMAC}" >>confdefs.h
9617
9618
9619AUTH=sha512
9620# Check whether --enable-auth-digest was given.
9621if test ${enable_auth_digest+y}
9622then :
9623 enableval=$enable_auth_digest; if test "x$enableval" = xwhirlpool; then AUTH=whirlpool; fi
8663 enableval=$enable_digest; if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi 9624 if test "x$enableval" = xsha512 ; then AUTH=sha512 ; fi
8664 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi 9625 if test "x$enableval" = xsha256 ; then AUTH=sha256 ; fi
8665 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 9626
8670fi 9627fi
8671 9628
8672 9629
8673cat >>confdefs.h <<_ACEOF 9630printf "%s\n" "#define ENABLE_AUTH EVP_${AUTH}" >>confdefs.h
8674#define ENABLE_DIGEST EVP_${DIGEST}
8675_ACEOF
8676 9631
8677 9632
8678if $CXX -v --help 2>&1 | grep -q fno-rtti; then 9633if $CXX -v --help 2>&1 | grep -q fno-rtti; then
8679 CXXFLAGS="$CXXFLAGS -fno-rtti" 9634 CXXFLAGS="$CXXFLAGS -fno-rtti"
8680fi 9635fi
8715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9670 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 9671 eval ac_val=\$$ac_var
8717 case $ac_val in #( 9672 case $ac_val in #(
8718 *${as_nl}*) 9673 *${as_nl}*)
8719 case $ac_var in #( 9674 case $ac_var in #(
8720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9675 *_cv_*) { printf "%s\n" "$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;} ;; 9676printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8722 esac 9677 esac
8723 case $ac_var in #( 9678 case $ac_var in #(
8724 _ | IFS | as_nl) ;; #( 9679 _ | IFS | as_nl) ;; #(
8725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8726 *) { eval $ac_var=; unset $ac_var;} ;; 9681 *) { eval $ac_var=; unset $ac_var;} ;;
8746) | 9701) |
8747 sed ' 9702 sed '
8748 /^ac_cv_env_/b end 9703 /^ac_cv_env_/b end
8749 t clear 9704 t clear
8750 :clear 9705 :clear
8751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9706 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8752 t end 9707 t end
8753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8754 :end' >>confcache 9709 :end' >>confcache
8755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8756 if test -w "$cache_file"; then 9711 if test -w "$cache_file"; then
8757 if test "x$cache_file" != "x/dev/null"; then 9712 if test "x$cache_file" != "x/dev/null"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8759$as_echo "$as_me: updating cache $cache_file" >&6;} 9714printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8760 if test ! -f "$cache_file" || test -h "$cache_file"; then 9715 if test ! -f "$cache_file" || test -h "$cache_file"; then
8761 cat confcache >"$cache_file" 9716 cat confcache >"$cache_file"
8762 else 9717 else
8763 case $cache_file in #( 9718 case $cache_file in #(
8764 */* | ?:*) 9719 */* | ?:*)
8768 mv -f confcache "$cache_file" ;; 9723 mv -f confcache "$cache_file" ;;
8769 esac 9724 esac
8770 fi 9725 fi
8771 fi 9726 fi
8772 else 9727 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9729printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8775 fi 9730 fi
8776fi 9731fi
8777rm -f confcache 9732rm -f confcache
8778 9733
8779test "x$prefix" = xNONE && prefix=$ac_default_prefix 9734test "x$prefix" = xNONE && prefix=$ac_default_prefix
8786ac_ltlibobjs= 9741ac_ltlibobjs=
8787U= 9742U=
8788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8789 # 1. Remove the extension, and $U if already installed. 9744 # 1. Remove the extension, and $U if already installed.
8790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9746 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8793 # will be set to the directory where LIBOBJS objects are built. 9748 # will be set to the directory where LIBOBJS objects are built.
8794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9749 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9750 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8796done 9751done
8797LIBOBJS=$ac_libobjs 9752LIBOBJS=$ac_libobjs
8798 9753
8799LTLIBOBJS=$ac_ltlibobjs 9754LTLIBOBJS=$ac_ltlibobjs
8800 9755
8801 9756
9757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9758printf %s "checking that generated files are newer than configure... " >&6; }
9759 if test -n "$am_sleep_pid"; then
9760 # Hide warnings about reused PIDs.
9761 wait $am_sleep_pid 2>/dev/null
9762 fi
9763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
9764printf "%s\n" "done" >&6; }
8802 if test -n "$EXEEXT"; then 9765 if test -n "$EXEEXT"; then
8803 am__EXEEXT_TRUE= 9766 am__EXEEXT_TRUE=
8804 am__EXEEXT_FALSE='#' 9767 am__EXEEXT_FALSE='#'
8805else 9768else
8806 am__EXEEXT_TRUE='#' 9769 am__EXEEXT_TRUE='#'
8830 9793
8831: "${CONFIG_STATUS=./config.status}" 9794: "${CONFIG_STATUS=./config.status}"
8832ac_write_fail=0 9795ac_write_fail=0
8833ac_clean_files_save=$ac_clean_files 9796ac_clean_files_save=$ac_clean_files
8834ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9797ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8836$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9799printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8837as_write_fail=0 9800as_write_fail=0
8838cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9801cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8839#! $SHELL 9802#! $SHELL
8840# Generated by $as_me. 9803# Generated by $as_me.
8841# Run this file to recreate the current configuration. 9804# Run this file to recreate the current configuration.
8854## M4sh Initialization. ## 9817## M4sh Initialization. ##
8855## -------------------- ## 9818## -------------------- ##
8856 9819
8857# Be more Bourne compatible 9820# Be more Bourne compatible
8858DUALCASE=1; export DUALCASE # for MKS sh 9821DUALCASE=1; export DUALCASE # for MKS sh
9822as_nop=:
8859if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9823if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9824then :
8860 emulate sh 9825 emulate sh
8861 NULLCMD=: 9826 NULLCMD=:
8862 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9827 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8863 # is contrary to our usage. Disable this feature. 9828 # is contrary to our usage. Disable this feature.
8864 alias -g '${1+"$@"}'='"$@"' 9829 alias -g '${1+"$@"}'='"$@"'
8865 setopt NO_GLOB_SUBST 9830 setopt NO_GLOB_SUBST
8866else 9831else $as_nop
8867 case `(set -o) 2>/dev/null` in #( 9832 case `(set -o) 2>/dev/null` in #(
8868 *posix*) : 9833 *posix*) :
8869 set -o posix ;; #( 9834 set -o posix ;; #(
8870 *) : 9835 *) :
8871 ;; 9836 ;;
8872esac 9837esac
8873fi 9838fi
8874 9839
8875 9840
9841
9842# Reset variables that may have inherited troublesome values from
9843# the environment.
9844
9845# IFS needs to be set, to space, tab, and newline, in precisely that order.
9846# (If _AS_PATH_WALK were called with IFS unset, it would have the
9847# side effect of setting IFS to empty, thus disabling word splitting.)
9848# Quoting is to prevent editors from complaining about space-tab.
8876as_nl=' 9849as_nl='
8877' 9850'
8878export as_nl 9851export as_nl
8879# Printing a long string crashes Solaris 7 /usr/bin/printf. 9852IFS=" "" $as_nl"
8880as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9853
8881as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9854PS1='$ '
8882as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9855PS2='> '
8883# Prefer a ksh shell builtin over an external printf program on Solaris, 9856PS4='+ '
8884# but without wasting forks for bash or zsh. 9857
8885if test -z "$BASH_VERSION$ZSH_VERSION" \ 9858# Ensure predictable behavior from utilities with locale-dependent output.
8886 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9859LC_ALL=C
8887 as_echo='print -r --' 9860export LC_ALL
8888 as_echo_n='print -rn --' 9861LANGUAGE=C
8889elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9862export LANGUAGE
8890 as_echo='printf %s\n' 9863
8891 as_echo_n='printf %s' 9864# We cannot yet rely on "unset" to work, but we need these variables
8892else 9865# to be unset--not just set to an empty or harmless value--now, to
8893 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9866# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8894 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9867# also avoids known problems related to "unset" and subshell syntax
8895 as_echo_n='/usr/ucb/echo -n' 9868# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8896 else 9869for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8897 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9870do eval test \${$as_var+y} \
8898 as_echo_n_body='eval 9871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8899 arg=$1; 9872done
8900 case $arg in #( 9873
8901 *"$as_nl"*) 9874# Ensure that fds 0, 1, and 2 are open.
8902 expr "X$arg" : "X\\(.*\\)$as_nl"; 9875if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8903 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9876if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8904 esac; 9877if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
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 fi
8910 export as_echo_body
8911 as_echo='sh -c $as_echo_body as_echo'
8912fi
8913 9878
8914# The user is always right. 9879# The user is always right.
8915if test "${PATH_SEPARATOR+set}" != set; then 9880if ${PATH_SEPARATOR+false} :; then
8916 PATH_SEPARATOR=: 9881 PATH_SEPARATOR=:
8917 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8918 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8919 PATH_SEPARATOR=';' 9884 PATH_SEPARATOR=';'
8920 } 9885 }
8921fi 9886fi
8922 9887
8923
8924# 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.)
8929IFS=" "" $as_nl"
8930 9888
8931# Find who we are. Look in the path if we contain no directory separator. 9889# Find who we are. Look in the path if we contain no directory separator.
8932as_myself= 9890as_myself=
8933case $0 in #(( 9891case $0 in #((
8934 *[\\/]* ) as_myself=$0 ;; 9892 *[\\/]* ) as_myself=$0 ;;
8935 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH 9894for as_dir in $PATH
8937do 9895do
8938 IFS=$as_save_IFS 9896 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=. 9897 case $as_dir in #(((
9898 '') as_dir=./ ;;
9899 */) ;;
9900 *) as_dir=$as_dir/ ;;
9901 esac
8940 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9902 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8941 done 9903 done
8942IFS=$as_save_IFS 9904IFS=$as_save_IFS
8943 9905
8944 ;; 9906 ;;
8945esac 9907esac
8947# in which case we are not to be found in the path. 9909# in which case we are not to be found in the path.
8948if test "x$as_myself" = x; then 9910if test "x$as_myself" = x; then
8949 as_myself=$0 9911 as_myself=$0
8950fi 9912fi
8951if test ! -f "$as_myself"; then 9913if test ! -f "$as_myself"; then
8952 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9914 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8953 exit 1 9915 exit 1
8954fi 9916fi
8955 9917
8956# 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.
8960for as_var in BASH_ENV ENV MAIL MAILPATH
8961do eval test x\${$as_var+set} = xset \
8962 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8963done
8964PS1='$ '
8965PS2='> '
8966PS4='+ '
8967
8968# NLS nuisances.
8969LC_ALL=C
8970export LC_ALL
8971LANGUAGE=C
8972export LANGUAGE
8973
8974# CDPATH.
8975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8976 9918
8977 9919
8978# as_fn_error STATUS ERROR [LINENO LOG_FD] 9920# as_fn_error STATUS ERROR [LINENO LOG_FD]
8979# ---------------------------------------- 9921# ----------------------------------------
8980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8983as_fn_error () 9925as_fn_error ()
8984{ 9926{
8985 as_status=$1; test $as_status -eq 0 && as_status=1 9927 as_status=$1; test $as_status -eq 0 && as_status=1
8986 if test "$4"; then 9928 if test "$4"; then
8987 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9929 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 9930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8989 fi 9931 fi
8990 $as_echo "$as_me: error: $2" >&2 9932 printf "%s\n" "$as_me: error: $2" >&2
8991 as_fn_exit $as_status 9933 as_fn_exit $as_status
8992} # as_fn_error 9934} # as_fn_error
9935
8993 9936
8994 9937
8995# as_fn_set_status STATUS 9938# as_fn_set_status STATUS
8996# ----------------------- 9939# -----------------------
8997# Set $? to STATUS, without forking. 9940# Set $? to STATUS, without forking.
9016as_fn_unset () 9959as_fn_unset ()
9017{ 9960{
9018 { eval $1=; unset $1;} 9961 { eval $1=; unset $1;}
9019} 9962}
9020as_unset=as_fn_unset 9963as_unset=as_fn_unset
9964
9021# as_fn_append VAR VALUE 9965# as_fn_append VAR VALUE
9022# ---------------------- 9966# ----------------------
9023# Append the text in VALUE to the end of the definition contained in VAR. Take 9967# 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 9968# advantage of any shell optimizations that allow amortized linear growth over
9025# repeated appends, instead of the typical quadratic growth present in naive 9969# repeated appends, instead of the typical quadratic growth present in naive
9026# implementations. 9970# implementations.
9027if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9971if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9972then :
9028 eval 'as_fn_append () 9973 eval 'as_fn_append ()
9029 { 9974 {
9030 eval $1+=\$2 9975 eval $1+=\$2
9031 }' 9976 }'
9032else 9977else $as_nop
9033 as_fn_append () 9978 as_fn_append ()
9034 { 9979 {
9035 eval $1=\$$1\$2 9980 eval $1=\$$1\$2
9036 } 9981 }
9037fi # as_fn_append 9982fi # as_fn_append
9039# as_fn_arith ARG... 9984# as_fn_arith ARG...
9040# ------------------ 9985# ------------------
9041# Perform arithmetic evaluation on the ARGs, and store the result in the 9986# 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 9987# global $as_val. Take advantage of shells that can avoid forks. The arguments
9043# must be portable across $(()) and expr. 9988# must be portable across $(()) and expr.
9044if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9990then :
9045 eval 'as_fn_arith () 9991 eval 'as_fn_arith ()
9046 { 9992 {
9047 as_val=$(( $* )) 9993 as_val=$(( $* ))
9048 }' 9994 }'
9049else 9995else $as_nop
9050 as_fn_arith () 9996 as_fn_arith ()
9051 { 9997 {
9052 as_val=`expr "$@" || test $? -eq 1` 9998 as_val=`expr "$@" || test $? -eq 1`
9053 } 9999 }
9054fi # as_fn_arith 10000fi # as_fn_arith
9075 10021
9076as_me=`$as_basename -- "$0" || 10022as_me=`$as_basename -- "$0" ||
9077$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9078 X"$0" : 'X\(//\)$' \| \ 10024 X"$0" : 'X\(//\)$' \| \
9079 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9080$as_echo X/"$0" | 10026printf "%s\n" X/"$0" |
9081 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10027 sed '/^.*\/\([^/][^/]*\)\/*$/{
9082 s//\1/ 10028 s//\1/
9083 q 10029 q
9084 } 10030 }
9085 /^X\/\(\/\/\)$/{ 10031 /^X\/\(\/\/\)$/{
9097as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9098as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10044as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9099as_cr_digits='0123456789' 10045as_cr_digits='0123456789'
9100as_cr_alnum=$as_cr_Letters$as_cr_digits 10046as_cr_alnum=$as_cr_Letters$as_cr_digits
9101 10047
10048
10049# Determine whether it's possible to make 'echo' print without a newline.
10050# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10051# for compatibility with existing Makefiles.
9102ECHO_C= ECHO_N= ECHO_T= 10052ECHO_C= ECHO_N= ECHO_T=
9103case `echo -n x` in #((((( 10053case `echo -n x` in #(((((
9104-n*) 10054-n*)
9105 case `echo 'xy\c'` in 10055 case `echo 'xy\c'` in
9106 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9109 ECHO_T=' ';; 10059 ECHO_T=' ';;
9110 esac;; 10060 esac;;
9111*) 10061*)
9112 ECHO_N='-n';; 10062 ECHO_N='-n';;
9113esac 10063esac
10064
10065# For backward compatibility with old third-party macros, we provide
10066# the shell variables $as_echo and $as_echo_n. New code should use
10067# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10068as_echo='printf %s\n'
10069as_echo_n='printf %s'
9114 10070
9115rm -f conf$$ conf$$.exe conf$$.file 10071rm -f conf$$ conf$$.exe conf$$.file
9116if test -d conf$$.dir; then 10072if test -d conf$$.dir; then
9117 rm -f conf$$.dir/conf$$.file 10073 rm -f conf$$.dir/conf$$.file
9118else 10074else
9151 esac 10107 esac
9152 test -d "$as_dir" || eval $as_mkdir_p || { 10108 test -d "$as_dir" || eval $as_mkdir_p || {
9153 as_dirs= 10109 as_dirs=
9154 while :; do 10110 while :; do
9155 case $as_dir in #( 10111 case $as_dir in #(
9156 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10112 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9157 *) as_qdir=$as_dir;; 10113 *) as_qdir=$as_dir;;
9158 esac 10114 esac
9159 as_dirs="'$as_qdir' $as_dirs" 10115 as_dirs="'$as_qdir' $as_dirs"
9160 as_dir=`$as_dirname -- "$as_dir" || 10116 as_dir=`$as_dirname -- "$as_dir" ||
9161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9162 X"$as_dir" : 'X\(//\)[^/]' \| \ 10118 X"$as_dir" : 'X\(//\)[^/]' \| \
9163 X"$as_dir" : 'X\(//\)$' \| \ 10119 X"$as_dir" : 'X\(//\)$' \| \
9164 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9165$as_echo X"$as_dir" | 10121printf "%s\n" X"$as_dir" |
9166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9167 s//\1/ 10123 s//\1/
9168 q 10124 q
9169 } 10125 }
9170 /^X\(\/\/\)[^/].*/{ 10126 /^X\(\/\/\)[^/].*/{
9222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9223# Save the log message, to keep $0 and so on meaningful, and to 10179# Save the log message, to keep $0 and so on meaningful, and to
9224# report actual input values of CONFIG_FILES etc. instead of their 10180# report actual input values of CONFIG_FILES etc. instead of their
9225# values after options handling. 10181# values after options handling.
9226ac_log=" 10182ac_log="
9227This file was extended by $as_me, which was 10183This file was extended by gvpe $as_me 3.1, which was
9228generated by GNU Autoconf 2.69. Invocation command line was 10184generated by GNU Autoconf 2.71. Invocation command line was
9229 10185
9230 CONFIG_FILES = $CONFIG_FILES 10186 CONFIG_FILES = $CONFIG_FILES
9231 CONFIG_HEADERS = $CONFIG_HEADERS 10187 CONFIG_HEADERS = $CONFIG_HEADERS
9232 CONFIG_LINKS = $CONFIG_LINKS 10188 CONFIG_LINKS = $CONFIG_LINKS
9233 CONFIG_COMMANDS = $CONFIG_COMMANDS 10189 CONFIG_COMMANDS = $CONFIG_COMMANDS
9285$config_commands 10241$config_commands
9286 10242
9287Report bugs to the package provider." 10243Report bugs to the package provider."
9288 10244
9289_ACEOF 10245_ACEOF
10246ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10247ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9291ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10249ac_cs_config='$ac_cs_config_escaped'
9292ac_cs_version="\\ 10250ac_cs_version="\\
9293config.status 10251gvpe config.status 3.1
9294configured by $0, generated by GNU Autoconf 2.69, 10252configured by $0, generated by GNU Autoconf 2.71,
9295 with options \\"\$ac_cs_config\\" 10253 with options \\"\$ac_cs_config\\"
9296 10254
9297Copyright (C) 2012 Free Software Foundation, Inc. 10255Copyright (C) 2021 Free Software Foundation, Inc.
9298This config.status script is free software; the Free Software Foundation 10256This config.status script is free software; the Free Software Foundation
9299gives unlimited permission to copy, distribute and modify it." 10257gives unlimited permission to copy, distribute and modify it."
9300 10258
9301ac_pwd='$ac_pwd' 10259ac_pwd='$ac_pwd'
9302srcdir='$srcdir' 10260srcdir='$srcdir'
9332 case $ac_option in 10290 case $ac_option in
9333 # Handling of the options. 10291 # Handling of the options.
9334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9335 ac_cs_recheck=: ;; 10293 ac_cs_recheck=: ;;
9336 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9337 $as_echo "$ac_cs_version"; exit ;; 10295 printf "%s\n" "$ac_cs_version"; exit ;;
9338 --config | --confi | --conf | --con | --co | --c ) 10296 --config | --confi | --conf | --con | --co | --c )
9339 $as_echo "$ac_cs_config"; exit ;; 10297 printf "%s\n" "$ac_cs_config"; exit ;;
9340 --debug | --debu | --deb | --de | --d | -d ) 10298 --debug | --debu | --deb | --de | --d | -d )
9341 debug=: ;; 10299 debug=: ;;
9342 --file | --fil | --fi | --f ) 10300 --file | --fil | --fi | --f )
9343 $ac_shift 10301 $ac_shift
9344 case $ac_optarg in 10302 case $ac_optarg in
9345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10303 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9346 '') as_fn_error $? "missing file argument" ;; 10304 '') as_fn_error $? "missing file argument" ;;
9347 esac 10305 esac
9348 as_fn_append CONFIG_FILES " '$ac_optarg'" 10306 as_fn_append CONFIG_FILES " '$ac_optarg'"
9349 ac_need_defaults=false;; 10307 ac_need_defaults=false;;
9350 --header | --heade | --head | --hea ) 10308 --header | --heade | --head | --hea )
9351 $ac_shift 10309 $ac_shift
9352 case $ac_optarg in 10310 case $ac_optarg in
9353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10311 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9354 esac 10312 esac
9355 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9356 ac_need_defaults=false;; 10314 ac_need_defaults=false;;
9357 --he | --h) 10315 --he | --h)
9358 # Conflict between --help and --header 10316 # Conflict between --help and --header
9359 as_fn_error $? "ambiguous option: \`$1' 10317 as_fn_error $? "ambiguous option: \`$1'
9360Try \`$0 --help' for more information.";; 10318Try \`$0 --help' for more information.";;
9361 --help | --hel | -h ) 10319 --help | --hel | -h )
9362 $as_echo "$ac_cs_usage"; exit ;; 10320 printf "%s\n" "$ac_cs_usage"; exit ;;
9363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9364 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9365 ac_cs_silent=: ;; 10323 ac_cs_silent=: ;;
9366 10324
9367 # This is an error. 10325 # This is an error.
9385_ACEOF 10343_ACEOF
9386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9387if \$ac_cs_recheck; then 10345if \$ac_cs_recheck; then
9388 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9389 shift 10347 shift
9390 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10348 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9391 CONFIG_SHELL='$SHELL' 10349 CONFIG_SHELL='$SHELL'
9392 export CONFIG_SHELL 10350 export CONFIG_SHELL
9393 exec "\$@" 10351 exec "\$@"
9394fi 10352fi
9395 10353
9399{ 10357{
9400 echo 10358 echo
9401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9402## Running $as_me. ## 10360## Running $as_me. ##
9403_ASBOX 10361_ASBOX
9404 $as_echo "$ac_log" 10362 printf "%s\n" "$ac_log"
9405} >&5 10363} >&5
9406 10364
9407_ACEOF 10365_ACEOF
9408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9409# 10367#
9414 # from automake. 10372 # from automake.
9415 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 10373 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9416 # Capture the value of LINGUAS because we need it to compute CATALOGS. 10374 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9417 LINGUAS="${LINGUAS-%UNSET%}" 10375 LINGUAS="${LINGUAS-%UNSET%}"
9418 10376
9419AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10377AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9420 10378
9421_ACEOF 10379_ACEOF
9422 10380
9423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9424 10382
9444# If the user did not use the arguments to specify the items to instantiate, 10402# 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. 10403# 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 10404# We use the long form for the default assignment because of an extremely
9447# bizarre bug on SunOS 4.1.3. 10405# bizarre bug on SunOS 4.1.3.
9448if $ac_need_defaults; then 10406if $ac_need_defaults; then
9449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10407 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10408 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10409 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9452fi 10410fi
9453 10411
9454# Have a temporary directory for convenience. Make it in the build tree 10412# Have a temporary directory for convenience. Make it in the build tree
9455# simply because there is no reason against having it here, and in addition, 10413# simply because there is no reason against having it here, and in addition,
9456# creating and moving files from /tmp can sometimes cause problems. 10414# creating and moving files from /tmp can sometimes cause problems.
9782 [\\/$]*) false;; 10740 [\\/$]*) false;;
9783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9784 esac || 10742 esac ||
9785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10743 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9786 esac 10744 esac
9787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10745 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9788 as_fn_append ac_file_inputs " '$ac_f'" 10746 as_fn_append ac_file_inputs " '$ac_f'"
9789 done 10747 done
9790 10748
9791 # Let's still pretend it is `configure' which instantiates (i.e., don't 10749 # Let's still pretend it is `configure' which instantiates (i.e., don't
9792 # use $as_me), people would be surprised to read: 10750 # use $as_me), people would be surprised to read:
9793 # /* config.h. Generated by config.status. */ 10751 # /* config.h. Generated by config.status. */
9794 configure_input='Generated from '` 10752 configure_input='Generated from '`
9795 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10753 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9796 `' by configure.' 10754 `' by configure.'
9797 if test x"$ac_file" != x-; then 10755 if test x"$ac_file" != x-; then
9798 configure_input="$ac_file. $configure_input" 10756 configure_input="$ac_file. $configure_input"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9800$as_echo "$as_me: creating $ac_file" >&6;} 10758printf "%s\n" "$as_me: creating $ac_file" >&6;}
9801 fi 10759 fi
9802 # Neutralize special characters interpreted by sed in replacement strings. 10760 # Neutralize special characters interpreted by sed in replacement strings.
9803 case $configure_input in #( 10761 case $configure_input in #(
9804 *\&* | *\|* | *\\* ) 10762 *\&* | *\|* | *\\* )
9805 ac_sed_conf_input=`$as_echo "$configure_input" | 10763 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9807 *) ac_sed_conf_input=$configure_input;; 10765 *) ac_sed_conf_input=$configure_input;;
9808 esac 10766 esac
9809 10767
9810 case $ac_tag in 10768 case $ac_tag in
9817 ac_dir=`$as_dirname -- "$ac_file" || 10775 ac_dir=`$as_dirname -- "$ac_file" ||
9818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9819 X"$ac_file" : 'X\(//\)[^/]' \| \ 10777 X"$ac_file" : 'X\(//\)[^/]' \| \
9820 X"$ac_file" : 'X\(//\)$' \| \ 10778 X"$ac_file" : 'X\(//\)$' \| \
9821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9822$as_echo X"$ac_file" | 10780printf "%s\n" X"$ac_file" |
9823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9824 s//\1/ 10782 s//\1/
9825 q 10783 q
9826 } 10784 }
9827 /^X\(\/\/\)[^/].*/{ 10785 /^X\(\/\/\)[^/].*/{
9841 ac_builddir=. 10799 ac_builddir=.
9842 10800
9843case "$ac_dir" in 10801case "$ac_dir" in
9844.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9845*) 10803*)
9846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10804 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9847 # A ".." for each directory in $ac_dir_suffix. 10805 # A ".." for each directory in $ac_dir_suffix.
9848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10806 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9849 case $ac_top_builddir_sub in 10807 case $ac_top_builddir_sub in
9850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9852 esac ;; 10810 esac ;;
9853esac 10811esac
9905/@localedir@/p 10863/@localedir@/p
9906/@mandir@/p' 10864/@mandir@/p'
9907case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9908*datarootdir*) ac_datarootdir_seen=yes;; 10866*datarootdir*) ac_datarootdir_seen=yes;;
9909*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10868 { printf "%s\n" "$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;} 10869printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9912_ACEOF 10870_ACEOF
9913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9914 ac_datarootdir_hack=' 10872 ac_datarootdir_hack='
9915 s&@datadir@&$datadir&g 10873 s&@datadir@&$datadir&g
9916 s&@docdir@&$docdir&g 10874 s&@docdir@&$docdir&g
9950 10908
9951test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9952 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10910 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9954 "$ac_tmp/out"`; test -z "$ac_out"; } && 10912 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9956which seems to be undefined. Please make sure it is defined" >&5 10914which 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' 10915printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9958which seems to be undefined. Please make sure it is defined" >&2;} 10916which seems to be undefined. Please make sure it is defined" >&2;}
9959 10917
9960 rm -f "$ac_tmp/stdin" 10918 rm -f "$ac_tmp/stdin"
9961 case $ac_file in 10919 case $ac_file in
9962 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10920 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9968 # 10926 #
9969 # CONFIG_HEADER 10927 # CONFIG_HEADER
9970 # 10928 #
9971 if test x"$ac_file" != x-; then 10929 if test x"$ac_file" != x-; then
9972 { 10930 {
9973 $as_echo "/* $configure_input */" \ 10931 printf "%s\n" "/* $configure_input */" >&1 \
9974 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9975 } >"$ac_tmp/config.h" \ 10933 } >"$ac_tmp/config.h" \
9976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9977 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10935 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9979$as_echo "$as_me: $ac_file is unchanged" >&6;} 10937printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9980 else 10938 else
9981 rm -f "$ac_file" 10939 rm -f "$ac_file"
9982 mv "$ac_tmp/config.h" "$ac_file" \ 10940 mv "$ac_tmp/config.h" "$ac_file" \
9983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9984 fi 10942 fi
9985 else 10943 else
9986 $as_echo "/* $configure_input */" \ 10944 printf "%s\n" "/* $configure_input */" >&1 \
9987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9988 || as_fn_error $? "could not create -" "$LINENO" 5 10946 || as_fn_error $? "could not create -" "$LINENO" 5
9989 fi 10947 fi
9990# Compute "$ac_file"'s index in $config_headers. 10948# Compute "$ac_file"'s index in $config_headers.
9991_am_arg="$ac_file" 10949_am_arg="$ac_file"
10001echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 10959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10002$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10003 X"$_am_arg" : 'X\(//\)[^/]' \| \ 10961 X"$_am_arg" : 'X\(//\)[^/]' \| \
10004 X"$_am_arg" : 'X\(//\)$' \| \ 10962 X"$_am_arg" : 'X\(//\)$' \| \
10005 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 10963 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10006$as_echo X"$_am_arg" | 10964printf "%s\n" X"$_am_arg" |
10007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10008 s//\1/ 10966 s//\1/
10009 q 10967 q
10010 } 10968 }
10011 /^X\(\/\/\)[^/].*/{ 10969 /^X\(\/\/\)[^/].*/{
10021 q 10979 q
10022 } 10980 }
10023 s/.*/./; q'`/stamp-h$_am_stamp_count 10981 s/.*/./; q'`/stamp-h$_am_stamp_count
10024 ;; 10982 ;;
10025 10983
10026 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10984 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10027$as_echo "$as_me: executing $ac_file commands" >&6;} 10985printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10028 ;; 10986 ;;
10029 esac 10987 esac
10030 10988
10031 10989
10032 case $ac_file$ac_mode in 10990 case $ac_file$ac_mode in
10125 fi 11083 fi
10126 ;; 11084 ;;
10127 esac 11085 esac
10128 done ;; 11086 done ;;
10129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11087 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10130 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11088 # Older Autoconf quotes --file arguments for eval, but not when files
10131 # are listed without --file. Let's play safe and only enable the eval 11089 # are listed without --file. Let's play safe and only enable the eval
10132 # if we detect the quoting. 11090 # if we detect the quoting.
11091 # TODO: see whether this extra hack can be removed once we start
11092 # requiring Autoconf 2.70 or later.
10133 case $CONFIG_FILES in 11093 case $CONFIG_FILES in #(
11094 *\'*) :
10134 *\'*) eval set x "$CONFIG_FILES" ;; 11095 eval set x "$CONFIG_FILES" ;; #(
11096 *) :
10135 *) set x $CONFIG_FILES ;; 11097 set x $CONFIG_FILES ;; #(
11098 *) :
11099 ;;
10136 esac 11100esac
10137 shift 11101 shift
11102 # Used to flag and report bootstrapping failures.
11103 am_rc=0
10138 for mf 11104 for am_mf
10139 do 11105 do
10140 # Strip MF so we end up with the name of the file. 11106 # Strip MF so we end up with the name of the file.
10141 mf=`echo "$mf" | sed -e 's/:.*$//'` 11107 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
10142 # Check whether this is an Automake generated Makefile or not. 11108 # Check whether this is an Automake generated Makefile which includes
10143 # We used to match only the files named `Makefile.in', but 11109 # dependency-tracking related rules and includes.
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 11110 # Grep'ing the whole file directly is not great: AIX grep has a line
10148 # limit of 2048, but all sed's we know have understand at least 4000. 11111 # 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 11112 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
11113 || continue
10150 dirpart=`$as_dirname -- "$mf" || 11114 am_dirpart=`$as_dirname -- "$am_mf" ||
10151$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11115$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10152 X"$mf" : 'X\(//\)[^/]' \| \ 11116 X"$am_mf" : 'X\(//\)[^/]' \| \
10153 X"$mf" : 'X\(//\)$' \| \ 11117 X"$am_mf" : 'X\(//\)$' \| \
10154 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11118 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10155$as_echo X"$mf" | 11119printf "%s\n" X"$am_mf" |
10156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10157 s//\1/ 11121 s//\1/
10158 q 11122 q
10159 } 11123 }
10160 /^X\(\/\/\)[^/].*/{ 11124 /^X\(\/\/\)[^/].*/{
10168 /^X\(\/\).*/{ 11132 /^X\(\/\).*/{
10169 s//\1/ 11133 s//\1/
10170 q 11134 q
10171 } 11135 }
10172 s/.*/./; q'` 11136 s/.*/./; q'`
10173 else 11137 am_filepart=`$as_basename -- "$am_mf" ||
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$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11138$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
10196 X"$file" : 'X\(//\)[^/]' \| \
10197 X"$file" : 'X\(//\)$' \| \ 11139 X"$am_mf" : 'X\(//\)$' \| \
10198 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11140 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10199$as_echo X"$file" | 11141printf "%s\n" X/"$am_mf" |
10200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11142 sed '/^.*\/\([^/][^/]*\)\/*$/{
10201 s//\1/ 11143 s//\1/
10202 q 11144 q
10203 } 11145 }
10204 /^X\(\/\/\)[^/].*/{ 11146 /^X\/\(\/\/\)$/{
10205 s//\1/ 11147 s//\1/
10206 q 11148 q
10207 } 11149 }
10208 /^X\(\/\/\)$/{
10209 s//\1/
10210 q
10211 }
10212 /^X\(\/\).*/{ 11150 /^X\/\(\/\).*/{
10213 s//\1/ 11151 s//\1/
10214 q 11152 q
10215 } 11153 }
10216 s/.*/./; q'` 11154 s/.*/./; q'`
10217 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11155 { echo "$as_me:$LINENO: cd "$am_dirpart" \
10218 # echo "creating $dirpart/$file" 11156 && sed -e '/# am--include-marker/d' "$am_filepart" \
10219 echo '# dummy' > "$dirpart/$file" 11157 | $MAKE -f - am--depfiles" >&5
10220 done 11158 (cd "$am_dirpart" \
11159 && sed -e '/# am--include-marker/d' "$am_filepart" \
11160 | $MAKE -f - am--depfiles) >&5 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } || am_rc=$?
10221 done 11164 done
11165 if test $am_rc -ne 0; then
11166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11168as_fn_error $? "Something went wrong bootstrapping makefile fragments
11169 for automatic dependency tracking. If GNU make was not used, consider
11170 re-running the configure script with MAKE=\"gmake\" (or whatever is
11171 necessary). You can also try re-running configure with the
11172 '--disable-dependency-tracking' option to at least be able to build
11173 the package (albeit without support for automatic dependency tracking).
11174See \`config.log' for more details" "$LINENO" 5; }
11175 fi
11176 { am_dirpart=; unset am_dirpart;}
11177 { am_filepart=; unset am_filepart;}
11178 { am_mf=; unset am_mf;}
11179 { am_rc=; unset am_rc;}
11180 rm -f conftest-deps.mk
10222} 11181}
10223 ;; 11182 ;;
10224 11183
10225 esac 11184 esac
10226done # for ac_tag 11185done # for ac_tag
10253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10254 # would make configure fail if this is the last instruction. 11213 # would make configure fail if this is the last instruction.
10255 $ac_cs_success || as_fn_exit 1 11214 $ac_cs_success || as_fn_exit 1
10256fi 11215fi
10257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11216if 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 11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11218printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10260fi 11219fi
10261 11220
10262 11221
10263echo 11222echo
10264echo "***" 11223echo "***"
10265echo "*** Configuration Summary" 11224echo "*** Configuration Summary"
10266echo "***" 11225echo "***"
10267echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE" 11226echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
11227echo "*** RSA size: $RSA"
10268echo "*** Cipher used: $CIPHER" 11228echo "*** Cipher used: $CIPHER"
10269echo "*** Digest used: $DIGEST" 11229echo "*** Digest used: $DIGEST"
11230echo "*** Authdigest: $AUTH"
10270echo "*** HMAC length: $HMAC" 11231echo "*** HMAC length: $HMAC"
10271echo "*** RAND used: $RAND"
10272echo "*** Max. MTU: $MTU" 11232echo "*** Max. MTU: $MTU"
10273 11233
10274echo "***" 11234echo "***"
10275echo "*** Enable options:" 11235echo "*** Enable options:"
10276grep ENABLE_ config.h | sed -e 's/^/*** /' 11236grep ENABLE_ config.h | sed -e 's/^/*** /'
10277 11237
10278if test "x$DIGEST" = xmd4; then 11238if test "$HMACSIZE" -lt 12; then
10279echo "***" 11239echo "***"
10280echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
10281fi
10282
10283if test "x$DIGEST" = xmd5; then
10284echo "***"
10285echo "*** WARNING: The digest you have chosen ($DIGEST) is quite insecure"
10286fi
10287
10288if test "$HMAC" -lt 12; then
10289echo "***"
10290echo "*** WARNING: The hmac length you have chosen ($HMAC) is quite insecure" 11240echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure"
10291fi
10292
10293if test "$RAND" -lt 8; then
10294echo "***"
10295echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
10296fi 11241fi
10297 11242
10298echo "***" 11243echo "***"
10299echo 11244echo
10300 11245
11246if pkg-config --exists 'libcrypto >= 1.1 libcrypto < 2.0'; then
11247 cat <<EOF
11248
11249***
11250*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11251***
11252*** You seem to configure gvpe with OpenSSL 1.1 or newer.
11253*** While this probably compiles, please note that this is not only
11254*** unsupported, but also discouraged.
11255***
11256*** It is recommended to use either OpenSSL 1.0, as long as that is still
11257*** supported, or LibreSSL (https://www.libressl.org/).
11258***
11259*** This is not a political issue - while porting GVPE to the newer
11260*** OpenSSL 1.1 API, I encountered two incompatible API changes that were
11261*** not documented, were not caught while compiling but caused security
11262*** issues. When reported, the reaction of the OpenSSL developers was to
11263*** update the documentation.
11264***
11265*** As a result, I lost all confidence in the ability and desire of
11266*** OpenSSL developers to create a safe API, and would highly recommend
11267*** switching to LibreSSL which explicitly avoids such braking changes.
11268***
11269*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING
11270***
11271*** Again, do not use OpenSSL 1.1 and complain if stuff breaks.
11272*** You have been warned, but your choice is respected.
11273***
11274
10301 11275
11276EOF
11277fi
11278
11279
11280

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines