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

Comparing gvpe/configure (file contents):
Revision 1.45 by root, Tue Feb 15 13:31:21 2011 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.67. 3# Generated by GNU Autoconf 2.71 for gvpe 3.1.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7# Inc.
8# Foundation, Inc.
9# 8#
10# 9#
11# This configure script is free software; the Free Software Foundation 10# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 11# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 12## -------------------- ##
14## M4sh Initialization. ## 13## M4sh Initialization. ##
15## -------------------- ## 14## -------------------- ##
16 15
17# Be more Bourne compatible 16# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 17DUALCASE=1; export DUALCASE # for MKS sh
18as_nop=:
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
20 emulate sh 21 emulate sh
21 NULLCMD=: 22 NULLCMD=:
22 # 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
23 # is contrary to our usage. Disable this feature. 24 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 25 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 26 setopt NO_GLOB_SUBST
26else 27else $as_nop
27 case `(set -o) 2>/dev/null` in #( 28 case `(set -o) 2>/dev/null` in #(
28 *posix*) : 29 *posix*) :
29 set -o posix ;; #( 30 set -o posix ;; #(
30 *) : 31 *) :
31 ;; 32 ;;
32esac 33esac
33fi 34fi
34 35
35 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.
36as_nl=' 45as_nl='
37' 46'
38export as_nl 47export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf. 48IFS=" "" $as_nl"
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50PS1='$ '
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51PS2='> '
43# Prefer a ksh shell builtin over an external printf program on Solaris, 52PS4='+ '
44# but without wasting forks for bash or zsh. 53
45if test -z "$BASH_VERSION$ZSH_VERSION" \ 54# Ensure predictable behavior from utilities with locale-dependent output.
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 55LC_ALL=C
47 as_echo='print -r --' 56export LC_ALL
48 as_echo_n='print -rn --' 57LANGUAGE=C
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 58export LANGUAGE
50 as_echo='printf %s\n' 59
51 as_echo_n='printf %s' 60# We cannot yet rely on "unset" to work, but we need these variables
52else 61# to be unset--not just set to an empty or harmless value--now, to
53 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
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 63# also avoids known problems related to "unset" and subshell syntax
55 as_echo_n='/usr/ucb/echo -n' 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
56 else 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66do eval test \${$as_var+y} \
58 as_echo_n_body='eval 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
59 arg=$1; 68done
60 case $arg in #( 69
61 *"$as_nl"*) 70# Ensure that fds 0, 1, and 2 are open.
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
64 esac; 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73 74
74# The user is always right. 75# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 76if ${PATH_SEPARATOR+false} :; then
76 PATH_SEPARATOR=: 77 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 80 PATH_SEPARATOR=';'
80 } 81 }
81fi 82fi
82 83
83 84
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# 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.
86as_myself=
92case $0 in #(( 87case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 88 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 90for as_dir in $PATH
96do 91do
97 IFS=$as_save_IFS 92 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done 99 done
101IFS=$as_save_IFS 100IFS=$as_save_IFS
102 101
103 ;; 102 ;;
104esac 103esac
106# 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.
107if test "x$as_myself" = x; then 106if test "x$as_myself" = x; then
108 as_myself=$0 107 as_myself=$0
109fi 108fi
110if test ! -f "$as_myself"; then 109if test ! -f "$as_myself"; then
111 $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
112 exit 1 111 exit 1
113fi 112fi
114 113
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126 114
127# NLS nuisances. 115# Use a proper internal environment variable to ensure we don't fall
128LC_ALL=C 116 # into an infinite loop, continuously re-executing ourselves.
129export LC_ALL 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
130LANGUAGE=C 118 _as_can_reexec=no; export _as_can_reexec;
131export LANGUAGE 119 # We cannot yet assume a decent shell, so we have to provide a
132 120# neutralization value for shells without unset; and this also
133# CDPATH. 121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
135 126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
136if test "x$CONFIG_SHELL" = x; then 140if test "x$CONFIG_SHELL" = x; then
137 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 :
138 emulate sh 144 emulate sh
139 NULLCMD=: 145 NULLCMD=:
140 # 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
141 # is contrary to our usage. Disable this feature. 147 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST 149 setopt NO_GLOB_SUBST
144else 150else \$as_nop
145 case \`(set -o) 2>/dev/null\` in #( 151 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) : 152 *posix*) :
147 set -o posix ;; #( 153 set -o posix ;; #(
148 *) : 154 *) :
149 ;; 155 ;;
159exitcode=0 165exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
165 172
166else 173else \$as_nop
167 exitcode=1; echo positional parameters were not saved. 174 exitcode=1; echo positional parameters were not saved.
168fi 175fi
169test x\$exitcode = x0 || exit 1" 176test x\$exitcode = x0 || exit 1
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
179test -x / || exit 1"
170 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
171 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
172 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'\" &&
173 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
174test \$(( 1 + 1 )) = 2 || exit 1" 184test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then : 185 if (eval "$as_required") 2>/dev/null
186then :
176 as_have_required=yes 187 as_have_required=yes
177else 188else $as_nop
178 as_have_required=no 189 as_have_required=no
179fi 190fi
180 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 :
181 193
182else 194else $as_nop
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false 196as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do 198do
187 IFS=$as_save_IFS 199 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=. 200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
189 as_found=: 205 as_found=:
190 case $as_dir in #( 206 case $as_dir in #(
191 /*) 207 /*)
192 for as_base in sh bash ksh sh5; do 208 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks. 209 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base 210 as_shell=$as_dir$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
197 CONFIG_SHELL=$as_shell as_have_required=yes 214 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
199 break 2 217 break 2
200fi 218fi
201fi 219fi
202 done;; 220 done;;
203 esac 221 esac
204 as_found=false 222 as_found=false
205done 223done
224IFS=$as_save_IFS
225if $as_found
226then :
227
228else $as_nop
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $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 :
208 CONFIG_SHELL=$SHELL as_have_required=yes 232 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; } 233fi
210IFS=$as_save_IFS 234fi
211 235
212 236
213 if test "x$CONFIG_SHELL" != x; then : 237 if test "x$CONFIG_SHELL" != x
238then :
239 export CONFIG_SHELL
214 # 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
215 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
216 # 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.
217 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
218 ENV=/dev/null 245ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL 247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
222fi 258fi
223 259
224 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno
261then :
225 $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"
226 $as_echo "$0: the shells that I found on your system." 263 printf "%s\n" "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then 264 if test ${ZSH_VERSION+y} ; then
228 $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"
229 $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."
230 else 267 else
231 $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,
232$0: including any error possibly output before this 269$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run 270$0: message. Then install a modern shell, or manually run
234$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."
235 fi 272 fi
236 exit 1 273 exit 1
253{ 290{
254 { eval $1=; unset $1;} 291 { eval $1=; unset $1;}
255} 292}
256as_unset=as_fn_unset 293as_unset=as_fn_unset
257 294
295
258# as_fn_set_status STATUS 296# as_fn_set_status STATUS
259# ----------------------- 297# -----------------------
260# Set $? to STATUS, without forking. 298# Set $? to STATUS, without forking.
261as_fn_set_status () 299as_fn_set_status ()
262{ 300{
270{ 308{
271 set +e 309 set +e
272 as_fn_set_status $1 310 as_fn_set_status $1
273 exit $1 311 exit $1
274} # 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
275 321
276# as_fn_mkdir_p 322# as_fn_mkdir_p
277# ------------- 323# -------------
278# Create "$as_dir" as a directory, including parents if necessary. 324# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p () 325as_fn_mkdir_p ()
284 esac 330 esac
285 test -d "$as_dir" || eval $as_mkdir_p || { 331 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs= 332 as_dirs=
287 while :; do 333 while :; do
288 case $as_dir in #( 334 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;; 336 *) as_qdir=$as_dir;;
291 esac 337 esac
292 as_dirs="'$as_qdir' $as_dirs" 338 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" || 339 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" | 344printf "%s\n" X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/ 346 s//\1/
301 q 347 q
302 } 348 }
303 /^X\(\/\/\)[^/].*/{ 349 /^X\(\/\/\)[^/].*/{
318 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320 366
321 367
322} # as_fn_mkdir_p 368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
323# as_fn_append VAR VALUE 377# as_fn_append VAR VALUE
324# ---------------------- 378# ----------------------
325# 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
326# advantage of any shell optimizations that allow amortized linear growth over 380# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive 381# repeated appends, instead of the typical quadratic growth present in naive
328# implementations. 382# implementations.
329if (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 :
330 eval 'as_fn_append () 385 eval 'as_fn_append ()
331 { 386 {
332 eval $1+=\$2 387 eval $1+=\$2
333 }' 388 }'
334else 389else $as_nop
335 as_fn_append () 390 as_fn_append ()
336 { 391 {
337 eval $1=\$$1\$2 392 eval $1=\$$1\$2
338 } 393 }
339fi # as_fn_append 394fi # as_fn_append
341# as_fn_arith ARG... 396# as_fn_arith ARG...
342# ------------------ 397# ------------------
343# 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
344# 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
345# must be portable across $(()) and expr. 400# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
347 eval 'as_fn_arith () 403 eval 'as_fn_arith ()
348 { 404 {
349 as_val=$(( $* )) 405 as_val=$(( $* ))
350 }' 406 }'
351else 407else $as_nop
352 as_fn_arith () 408 as_fn_arith ()
353 { 409 {
354 as_val=`expr "$@" || test $? -eq 1` 410 as_val=`expr "$@" || test $? -eq 1`
355 } 411 }
356fi # as_fn_arith 412fi # as_fn_arith
357 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
358 422
359# as_fn_error STATUS ERROR [LINENO LOG_FD] 423# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ---------------------------------------- 424# ----------------------------------------
361# 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
362# 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
364as_fn_error () 428as_fn_error ()
365{ 429{
366 as_status=$1; test $as_status -eq 0 && as_status=1 430 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then 431 if test "$4"; then
368 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
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi 434 fi
371 $as_echo "$as_me: error: $2" >&2 435 printf "%s\n" "$as_me: error: $2" >&2
372 as_fn_exit $as_status 436 as_fn_exit $as_status
373} # as_fn_error 437} # as_fn_error
374 438
375if expr a : '\(a\)' >/dev/null 2>&1 && 439if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 457
394as_me=`$as_basename -- "$0" || 458as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \ 460 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" | 462printf "%s\n" X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 463 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/ 464 s//\1/
401 q 465 q
402 } 466 }
403 /^X\/\(\/\/\)$/{ 467 /^X\/\(\/\/\)$/{
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop 502 t loop
439 s/-\n.*// 503 s/-\n.*//
440 ' >$as_me.lineno && 504 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" || 505 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443 507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
444 # Don't try to exec as it changes $[0], causing all sort of problems 512 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the 513 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this). 514 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno" 515 . "./$as_me.lineno"
448 # Exit status is that of the last command. 516 # Exit status is that of the last command.
449 exit 517 exit
450} 518}
451 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.
452ECHO_C= ECHO_N= ECHO_T= 524ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #((((( 525case `echo -n x` in #(((((
454-n*) 526-n*)
455 case `echo 'xy\c'` in 527 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 esac;; 532 esac;;
461*) 533*)
462 ECHO_N='-n';; 534 ECHO_N='-n';;
463esac 535esac
464 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
543
465rm -f conf$$ conf$$.exe conf$$.file 544rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then 545if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file 546 rm -f conf$$.dir/conf$$.file
468else 547else
469 rm -f conf$$.dir 548 rm -f conf$$.dir
473 if ln -s conf$$.file conf$$ 2>/dev/null; then 552 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s' 553 as_ln_s='ln -s'
475 # ... but there are two gotchas: 554 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'. 557 # In both cases, we have to default to `cp -pR'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p' 559 as_ln_s='cp -pR'
481 elif ln conf$$.file conf$$ 2>/dev/null; then 560 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln 561 as_ln_s=ln
483 else 562 else
484 as_ln_s='cp -p' 563 as_ln_s='cp -pR'
485 fi 564 fi
486else 565else
487 as_ln_s='cp -p' 566 as_ln_s='cp -pR'
488fi 567fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null 569rmdir conf$$.dir 2>/dev/null
491 570
492if mkdir -p . 2>/dev/null; then 571if mkdir -p . 2>/dev/null; then
494else 573else
495 test -d ./-p && rmdir ./-p 574 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false 575 as_mkdir_p=false
497fi 576fi
498 577
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x' 578as_test_x='test -x'
501else 579as_executable_p=as_fn_executable_p
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
521 580
522# Sed expression to map a string onto a valid CPP name. 581# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524 583
525# Sed expression to map a string onto a valid variable name. 584# Sed expression to map a string onto a valid variable name.
545subdirs= 604subdirs=
546MFLAGS= 605MFLAGS=
547MAKEFLAGS= 606MAKEFLAGS=
548 607
549# Identity of this package. 608# Identity of this package.
550PACKAGE_NAME= 609PACKAGE_NAME='gvpe'
551PACKAGE_TARNAME= 610PACKAGE_TARNAME='gvpe'
552PACKAGE_VERSION= 611PACKAGE_VERSION='3.1'
553PACKAGE_STRING= 612PACKAGE_STRING='gvpe 3.1'
554PACKAGE_BUGREPORT= 613PACKAGE_BUGREPORT=''
555PACKAGE_URL= 614PACKAGE_URL=''
556 615
557ac_unique_file="src/gvpe.C" 616ac_unique_file="src/gvpe.C"
558# Factoring default headers for most tests. 617# Factoring default headers for most tests.
559ac_includes_default="\ 618ac_includes_default="\
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
560#include <stdio.h> 621# include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif 622#endif
564#ifdef HAVE_SYS_STAT_H 623#ifdef HAVE_STDLIB_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h> 624# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif 625#endif
575#ifdef HAVE_STRING_H 626#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h> 627# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif 628#endif
584#ifdef HAVE_INTTYPES_H 629#ifdef HAVE_INTTYPES_H
585# include <inttypes.h> 630# include <inttypes.h>
586#endif 631#endif
587#ifdef HAVE_STDINT_H 632#ifdef HAVE_STDINT_H
588# include <stdint.h> 633# include <stdint.h>
589#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
590#ifdef HAVE_UNISTD_H 644#ifdef HAVE_UNISTD_H
591# include <unistd.h> 645# include <unistd.h>
592#endif" 646#endif"
593 647
594ac_subst_vars='LTLIBOBJS 648ac_header_cxx_list=
649ac_subst_vars='am__EXEEXT_FALSE
650am__EXEEXT_TRUE
651LTLIBOBJS
595LIBOBJS 652LIBOBJS
596INCLUDES 653AM_CPPFLAGS
597ROHC_FALSE 654ROHC_FALSE
598ROHC_TRUE 655ROHC_TRUE
599LDFLAGS_DAEMON 656LDFLAGS_DAEMON
657LIBCRYPTO_LIBS
658LIBCRYPTO_CFLAGS
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
600HAVE_TUNTAP 662HAVE_TUNTAP
601LINUX_IF_TUN_H 663LINUX_IF_TUN_H
602ALLOCA 664ALLOCA
603CXXCPP
604IFSUBTYPE 665IFSUBTYPE
605IFTYPE 666IFTYPE
606RANLIB 667RANLIB
607LN_S 668LN_S
608EGREP 669EGREP
622LIBICONV 683LIBICONV
623USE_NLS 684USE_NLS
624am__fastdepCC_FALSE 685am__fastdepCC_FALSE
625am__fastdepCC_TRUE 686am__fastdepCC_TRUE
626CCDEPMODE 687CCDEPMODE
688am__nodep
627AMDEPBACKSLASH 689AMDEPBACKSLASH
628AMDEP_FALSE 690AMDEP_FALSE
629AMDEP_TRUE 691AMDEP_TRUE
630am__quote
631am__include 692am__include
632DEPDIR 693DEPDIR
633OBJEXT 694OBJEXT
634EXEEXT 695EXEEXT
635ac_ct_CC 696ac_ct_CC
643MSGFMT 704MSGFMT
644MKINSTALLDIRS 705MKINSTALLDIRS
645MAINT 706MAINT
646MAINTAINER_MODE_FALSE 707MAINTAINER_MODE_FALSE
647MAINTAINER_MODE_TRUE 708MAINTAINER_MODE_TRUE
709AM_BACKSLASH
710AM_DEFAULT_VERBOSITY
711AM_DEFAULT_V
712AM_V
713am__untar
714am__tar
715AMTAR
648am__leading_dot 716am__leading_dot
649SET_MAKE 717SET_MAKE
650AWK 718AWK
719mkdir_p
720MKDIR_P
651INSTALL_STRIP_PROGRAM 721INSTALL_STRIP_PROGRAM
652STRIP 722STRIP
653install_sh 723install_sh
654AMTAR
655MAKEINFO 724MAKEINFO
656AUTOHEADER 725AUTOHEADER
657AUTOMAKE 726AUTOMAKE
658AUTOCONF 727AUTOCONF
659ACLOCAL 728ACLOCAL
660VERSION 729VERSION
661PACKAGE 730PACKAGE
662CYGPATH_W 731CYGPATH_W
732am__isrc
663INSTALL_DATA 733INSTALL_DATA
664INSTALL_SCRIPT 734INSTALL_SCRIPT
665INSTALL_PROGRAM 735INSTALL_PROGRAM
666target_os 736target_os
667target_vendor 737target_vendor
692htmldir 762htmldir
693infodir 763infodir
694docdir 764docdir
695oldincludedir 765oldincludedir
696includedir 766includedir
767runstatedir
697localstatedir 768localstatedir
698sharedstatedir 769sharedstatedir
699sysconfdir 770sysconfdir
700datadir 771datadir
701datarootdir 772datarootdir
710PACKAGE_STRING 781PACKAGE_STRING
711PACKAGE_VERSION 782PACKAGE_VERSION
712PACKAGE_TARNAME 783PACKAGE_TARNAME
713PACKAGE_NAME 784PACKAGE_NAME
714PATH_SEPARATOR 785PATH_SEPARATOR
715SHELL' 786SHELL
787am__quote'
716ac_subst_files='' 788ac_subst_files=''
717ac_user_opts=' 789ac_user_opts='
718enable_option_checking 790enable_option_checking
791enable_silent_rules
719enable_maintainer_mode 792enable_maintainer_mode
720enable_dependency_tracking 793enable_dependency_tracking
721with_gnu_ld 794with_gnu_ld
722enable_rpath 795enable_rpath
723with_libiconv_prefix 796with_libiconv_prefix
724enable_nls 797enable_nls
725with_libintl_prefix 798with_libintl_prefix
726enable_iftype 799enable_iftype
727with_kernel 800with_kernel
728with_openssl_include 801enable_threads
729with_openssl_lib
730enable_static_daemon 802enable_static_daemon
731enable_icmp 803enable_icmp
732enable_tcp 804enable_tcp
733enable_http_proxy 805enable_http_proxy
734enable_dns 806enable_dns
807enable_rsa_length
735enable_hmac_length 808enable_hmac_length
736enable_rand_length
737enable_max_mtu 809enable_max_mtu
738enable_compression 810enable_compression
739enable_cipher 811enable_cipher
740enable_digest 812enable_hmac_digest
813enable_auth_digest
741' 814'
742 ac_precious_vars='build_alias 815 ac_precious_vars='build_alias
743host_alias 816host_alias
744target_alias 817target_alias
745CC 818CC
749CPPFLAGS 822CPPFLAGS
750CPP 823CPP
751CXX 824CXX
752CXXFLAGS 825CXXFLAGS
753CCC 826CCC
754CXXCPP' 827PKG_CONFIG
828PKG_CONFIG_PATH
829PKG_CONFIG_LIBDIR
830LIBCRYPTO_CFLAGS
831LIBCRYPTO_LIBS'
755 832
756 833
757# Initialize some variables set by options. 834# Initialize some variables set by options.
758ac_init_help= 835ac_init_help=
759ac_init_version=false 836ac_init_version=false
788datarootdir='${prefix}/share' 865datarootdir='${prefix}/share'
789datadir='${datarootdir}' 866datadir='${datarootdir}'
790sysconfdir='${prefix}/etc' 867sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com' 868sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var' 869localstatedir='${prefix}/var'
870runstatedir='${localstatedir}/run'
793includedir='${prefix}/include' 871includedir='${prefix}/include'
794oldincludedir='/usr/include' 872oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE}' 873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796infodir='${datarootdir}/info' 874infodir='${datarootdir}/info'
797htmldir='${docdir}' 875htmldir='${docdir}'
798dvidir='${docdir}' 876dvidir='${docdir}'
799pdfdir='${docdir}' 877pdfdir='${docdir}'
800psdir='${docdir}' 878psdir='${docdir}'
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *=) ac_optarg= ;; 896 *=) ac_optarg= ;;
819 *) ac_optarg=yes ;; 897 *) ac_optarg=yes ;;
820 esac 898 esac
821 899
822 # Accept the important Cygnus configure options, so we can diagnose typos.
823
824 case $ac_dashdash$ac_option in 900 case $ac_dashdash$ac_option in
825 --) 901 --)
826 ac_dashdash=yes ;; 902 ac_dashdash=yes ;;
827 903
828 -bindir | --bindir | --bindi | --bind | --bin | --bi) 904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 935
860 -disable-* | --disable-*) 936 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names. 938 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt" 940 as_fn_error $? "invalid feature name: \`$ac_useropt'"
865 ac_useropt_orig=$ac_useropt 941 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in 943 case $ac_user_opts in
868 *" 944 *"
869"enable_$ac_useropt" 945"enable_$ac_useropt"
870"*) ;; 946"*) ;;
871 *) 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"
885 961
886 -enable-* | --enable-*) 962 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names. 964 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt" 966 as_fn_error $? "invalid feature name: \`$ac_useropt'"
891 ac_useropt_orig=$ac_useropt 967 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in 969 case $ac_user_opts in
894 *" 970 *"
895"enable_$ac_useropt" 971"enable_$ac_useropt"
896"*) ;; 972"*) ;;
897 *) 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"
1040 1116
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil) 1118 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;; 1119 silent=yes ;;
1044 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
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;; 1131 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*) 1133 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;; 1134 sbindir=$ac_optarg ;;
1089 1174
1090 -with-* | --with-*) 1175 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names. 1177 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt" 1179 as_fn_error $? "invalid package name: \`$ac_useropt'"
1095 ac_useropt_orig=$ac_useropt 1180 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in 1182 case $ac_user_opts in
1098 *" 1183 *"
1099"with_$ac_useropt" 1184"with_$ac_useropt"
1100"*) ;; 1185"*) ;;
1101 *) 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"
1105 1190
1106 -without-* | --without-*) 1191 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names. 1193 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt" 1195 as_fn_error $? "invalid package name: \`$ac_useropt'"
1111 ac_useropt_orig=$ac_useropt 1196 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in 1198 case $ac_user_opts in
1114 *" 1199 *"
1115"with_$ac_useropt" 1200"with_$ac_useropt"
1116"*) ;; 1201"*) ;;
1117 *) 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"
1151 eval $ac_envvar=\$ac_optarg 1236 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;; 1237 export $ac_envvar ;;
1153 1238
1154 *) 1239 *)
1155 # FIXME: should be removed in autoconf 3.0. 1240 # FIXME: should be removed in autoconf 3.0.
1156 $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
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : ${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}"
1160 ;; 1245 ;;
1161 1246
1162 esac 1247 esac
1163done 1248done
1164 1249
1169 1254
1170if test -n "$ac_unrecognized_opts"; then 1255if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in 1256 case $enable_option_checking in
1172 no) ;; 1257 no) ;;
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac 1260 esac
1176fi 1261fi
1177 1262
1178# Check all directory arguments for consistency. 1263# Check all directory arguments for consistency.
1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir 1267 libdir localedir mandir runstatedir
1183do 1268do
1184 eval ac_val=\$$ac_var 1269 eval ac_val=\$$ac_var
1185 # Remove trailing slashes. 1270 # Remove trailing slashes.
1186 case $ac_val in 1271 case $ac_val in
1187 */ ) 1272 */ )
1205 1290
1206# FIXME: To remove some day. 1291# FIXME: To remove some day.
1207if test "x$host_alias" != x; then 1292if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then 1293 if test "x$build_alias" = x; then
1209 cross_compiling=maybe 1294 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then 1295 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes 1296 cross_compiling=yes
1214 fi 1297 fi
1215fi 1298fi
1216 1299
1235 ac_confdir=`$as_dirname -- "$as_myself" || 1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \ 1321 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240$as_echo X"$as_myself" | 1323printf "%s\n" X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 s//\1/ 1325 s//\1/
1243 q 1326 q
1244 } 1327 }
1245 /^X\(\/\/\)[^/].*/{ 1328 /^X\(\/\/\)[^/].*/{
1292# 1375#
1293if test "$ac_init_help" = "long"; then 1376if test "$ac_init_help" = "long"; then
1294 # 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.
1295 # 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.
1296 cat <<_ACEOF 1379 cat <<_ACEOF
1297\`configure' configures this package to adapt to many kinds of systems. 1380\`configure' configures gvpe 3.1 to adapt to many kinds of systems.
1298 1381
1299Usage: $0 [OPTION]... [VAR=VALUE]... 1382Usage: $0 [OPTION]... [VAR=VALUE]...
1300 1383
1301To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302VAR=VALUE. See below for descriptions of some of the useful variables. 1385VAR=VALUE. See below for descriptions of some of the useful variables.
1332 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --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]
1337 --libdir=DIR object code libraries [EPREFIX/lib] 1421 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include] 1422 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info] 1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man] 1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1429 --docdir=DIR documentation root [DATAROOTDIR/doc/gvpe]
1346 --htmldir=DIR html documentation [DOCDIR] 1430 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR] 1431 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR] 1432 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR] 1433 --psdir=DIR ps documentation [DOCDIR]
1350_ACEOF 1434_ACEOF
1362 --target=TARGET configure for building compilers for TARGET [HOST] 1446 --target=TARGET configure for building compilers for TARGET [HOST]
1363_ACEOF 1447_ACEOF
1364fi 1448fi
1365 1449
1366if test -n "$ac_init_help"; then 1450if test -n "$ac_init_help"; then
1367 1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of gvpe 3.1:";;
1453 esac
1368 cat <<\_ACEOF 1454 cat <<\_ACEOF
1369 1455
1370Optional Features: 1456Optional Features:
1371 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-option-checking ignore unrecognized --enable/--with options
1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-maintainer-mode enable make rules and dependencies not useful 1460 --enable-silent-rules less verbose build output (undo: "make V=1")
1461 --disable-silent-rules verbose build output (undo: "make V=0")
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1375 (and sometimes confusing) to the casual installer 1464 sometimes confusing) to the casual installer
1376 --disable-dependency-tracking Speeds up one-time builds 1465 --enable-dependency-tracking
1377 --enable-dependency-tracking Do not reject slow dependency extractors 1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1378 --disable-rpath do not hardcode runtime library paths 1469 --disable-rpath do not hardcode runtime library paths
1379 --disable-nls do not use Native Language Support 1470 --disable-nls do not use Native Language Support
1380 --enable-iftype=TYPE/SUBTYPE 1471 --enable-iftype=TYPE/SUBTYPE
1381 Use kernel/net device interface TYPE/SUBTYPE. 1472 Use kernel/net device interface TYPE/SUBTYPE.
1382 Working combinations are (see doc/gvpe.osdep.5.pod): 1473 Working combinations are (see doc/gvpe.osdep.5.pod):
1385 "tincd/darwin" "native/cygwin"; Untested 1476 "tincd/darwin" "native/cygwin"; Untested
1386 combinations are: "tincd/bsd" "tincd/solaris" 1477 combinations are: "tincd/bsd" "tincd/solaris"
1387 "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket"; 1478 "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
1388 Broken combinations are: "tincd/cygwin"; The default 1479 Broken combinations are: "tincd/cygwin"; The default
1389 is to autodetect. 1480 is to autodetect.
1481 --enable-threads try to use threads for long-running asynchronous
1482 operations (default enabled).
1390 --enable-static-daemon enable statically linked daemon. 1483 --enable-static-daemon enable statically linked daemon.
1391 --disable-icmp enable icmp protocol support (default enabled). 1484 --disable-icmp enable icmp protocol support (default enabled).
1392 --disable-tcp enable tcp protocol support (default enabled). 1485 --disable-tcp enable tcp protocol support (default enabled).
1393 --disable-http-proxy enable http proxy connect support (default enabled). 1486 --disable-http-proxy enable http proxy connect support (default enabled).
1394 --enable-dns enable dns tunnel protocol support (default 1487 --enable-dns enable dns tunnel protocol support (default
1395 disabled). 1488 disabled).
1489 --enable-rsa-length=BITS
1490 use BITS rsa keys (default 3072). Allowed values are
1491 2048-10240.
1396 --enable-hmac-length=BYTES 1492 --enable-hmac-length=BYTES
1397 use a hmac of length BYTES bytes (default 12). 1493 use a hmac of length BYTES bytes (default 12).
1398 Allowed values are 4, 8, 12, 16. 1494 Allowed values are 4, 8, 12, 16.
1399 --enable-rand-length=BYTES
1400 use BYTES bytes of extra randomness (default 8).
1401 Allowed values are 0, 4, 8.
1402 --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).
1403 Use 9100 for jumbogram support. 1496 Use 9100 for jumbogram support.
1404 --disable-compression Disable compression support. 1497 --disable-compression Disable compression support.
1405 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128"). 1498 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128").
1406 Must be one of "bf" (blowfish), "aes-128" 1499 Must be one of "aes-128" (rijndael), "aes-192", or
1407 (rijndael), "aes-192" or "aes-256". 1500 "aes-256".
1408 --enable-digest=CIPHER Select the digest algorithm to use (default 1501 --enable-hmac-digest=HMAC
1502 Select the HMAC digest algorithm to use (default
1409 "ripemd160"). Must be one of "sha512", "sha256", 1503 "sha1"). Must be one of "sha512", "sha256", "sha1",
1410 "sha1" (somewhat insecure), "ripemd160", "md5" 1504 "ripemd160", "whirlpool".
1411 (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".
1412 1508
1413Optional Packages: 1509Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --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
1418 --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
1419 --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
1420 --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
1421 --with-kernel=dir give the directory with kernel sources 1517 --with-kernel=dir give the directory with kernel sources
1422 (default: /usr/src/linux) 1518 (default: /usr/src/linux)
1423 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1424 --with-openssl-lib=DIR OpenSSL library directory
1425 1519
1426Some influential environment variables: 1520Some influential environment variables:
1427 CC C compiler command 1521 CC C compiler command
1428 CFLAGS C compiler flags 1522 CFLAGS C compiler flags
1429 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
1432 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
1433 you have headers in a nonstandard directory <include dir> 1527 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor 1528 CPP C preprocessor
1435 CXX C++ compiler command 1529 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags 1530 CXXFLAGS C++ compiler flags
1437 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
1438 1540
1439Use 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
1440it to find libraries and programs with nonstandard names/locations. 1542it to find libraries and programs with nonstandard names/locations.
1441 1543
1442Report bugs to the package provider. 1544Report bugs to the package provider.
1453 ac_builddir=. 1555 ac_builddir=.
1454 1556
1455case "$ac_dir" in 1557case "$ac_dir" in
1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457*) 1559*)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix. 1561 # A ".." for each directory in $ac_dir_suffix.
1460 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|/||'`
1461 case $ac_top_builddir_sub in 1563 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;; 1566 esac ;;
1465esac 1567esac
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484esac 1586esac
1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 1588
1487 cd "$ac_dir" || { ac_status=$?; continue; } 1589 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # 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.
1489 if test -f "$ac_srcdir/configure.gnu"; then 1592 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo && 1593 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then 1595 elif test -f "$ac_srcdir/configure"; then
1493 echo && 1596 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive 1597 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else 1598 else
1496 $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
1497 fi || ac_status=$? 1600 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; } 1601 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done 1602 done
1500fi 1603fi
1501 1604
1502test -n "$ac_init_help" && exit $ac_status 1605test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then 1606if $ac_init_version; then
1504 cat <<\_ACEOF 1607 cat <<\_ACEOF
1505configure 1608gvpe configure 3.1
1506generated by GNU Autoconf 2.67 1609generated by GNU Autoconf 2.71
1507 1610
1508Copyright (C) 2010 Free Software Foundation, Inc. 1611Copyright (C) 2021 Free Software Foundation, Inc.
1509This configure script is free software; the Free Software Foundation 1612This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it. 1613gives unlimited permission to copy, distribute and modify it.
1511_ACEOF 1614_ACEOF
1512 exit 1615 exit
1513fi 1616fi
1520# -------------------------- 1623# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile () 1625ac_fn_c_try_compile ()
1523{ 1626{
1524 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
1525 rm -f conftest.$ac_objext 1628 rm -f conftest.$ac_objext conftest.beam
1526 if { { ac_try="$ac_compile" 1629 if { { ac_try="$ac_compile"
1527case "(($ac_try" in 1630case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;; 1632 *) ac_try_echo=$ac_try;;
1530esac 1633esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5 1635printf "%s\n" "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err 1636 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$? 1637 ac_status=$?
1535 if test -s conftest.err; then 1638 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1 1639 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5 1640 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err 1641 mv -f conftest.er1 conftest.err
1539 fi 1642 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && { 1644 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" || 1645 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err 1646 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then : 1647 } && test -s conftest.$ac_objext
1648then :
1545 ac_retval=0 1649 ac_retval=0
1546else 1650else $as_nop
1547 $as_echo "$as_me: failed program was:" >&5 1651 printf "%s\n" "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5 1652sed 's/^/| /' conftest.$ac_ext >&5
1549 1653
1550 ac_retval=1 1654 ac_retval=1
1551fi 1655fi
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval 1657 as_fn_set_status $ac_retval
1554 1658
1555} # ac_fn_c_try_compile 1659} # ac_fn_c_try_compile
1556 1660
1557# ac_fn_c_try_link LINENO 1661# ac_fn_c_try_link LINENO
1558# ----------------------- 1662# -----------------------
1559# Try to link conftest.$ac_ext, and return whether this succeeded. 1663# Try to link conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_link () 1664ac_fn_c_try_link ()
1561{ 1665{
1562 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
1563 rm -f conftest.$ac_objext conftest$ac_exeext 1667 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1564 if { { ac_try="$ac_link" 1668 if { { ac_try="$ac_link"
1565case "(($ac_try" in 1669case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;; 1671 *) ac_try_echo=$ac_try;;
1568esac 1672esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5 1674printf "%s\n" "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>conftest.err 1675 (eval "$ac_link") 2>conftest.err
1572 ac_status=$? 1676 ac_status=$?
1573 if test -s conftest.err; then 1677 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1 1678 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5 1679 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err 1680 mv -f conftest.er1 conftest.err
1577 fi 1681 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && { 1683 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" || 1684 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err 1685 test ! -s conftest.err
1582 } && test -s conftest$ac_exeext && { 1686 } && test -s conftest$ac_exeext && {
1583 test "$cross_compiling" = yes || 1687 test "$cross_compiling" = yes ||
1584 $as_test_x conftest$ac_exeext 1688 test -x conftest$ac_exeext
1585 }; then : 1689 }
1690then :
1586 ac_retval=0 1691 ac_retval=0
1587else 1692else $as_nop
1588 $as_echo "$as_me: failed program was:" >&5 1693 printf "%s\n" "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5 1694sed 's/^/| /' conftest.$ac_ext >&5
1590 1695
1591 ac_retval=1 1696 ac_retval=1
1592fi 1697fi
1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1595 # interfere with the next link command; also delete a directory that is 1700 # interfere with the next link command; also delete a directory that is
1596 # left behind by Apple's compiler. We do this before executing the actions. 1701 # left behind by Apple's compiler. We do this before executing the actions.
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval 1704 as_fn_set_status $ac_retval
1600 1705
1601} # ac_fn_c_try_link 1706} # ac_fn_c_try_link
1602 1707
1603# ac_fn_c_try_cpp LINENO 1708# ac_fn_c_try_cpp LINENO
1610case "(($ac_try" in 1715case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;; 1717 *) ac_try_echo=$ac_try;;
1613esac 1718esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5 1720printf "%s\n" "$ac_try_echo"; } >&5
1616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 ac_status=$? 1722 ac_status=$?
1618 if test -s conftest.err; then 1723 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1 1724 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5 1725 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err 1726 mv -f conftest.er1 conftest.err
1622 fi 1727 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } > conftest.i && { 1729 test $ac_status = 0; } > conftest.i && {
1625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1626 test ! -s conftest.err 1731 test ! -s conftest.err
1627 }; then : 1732 }
1733then :
1628 ac_retval=0 1734 ac_retval=0
1629else 1735else $as_nop
1630 $as_echo "$as_me: failed program was:" >&5 1736 printf "%s\n" "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5 1737sed 's/^/| /' conftest.$ac_ext >&5
1632 1738
1633 ac_retval=1 1739 ac_retval=1
1634fi 1740fi
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval 1742 as_fn_set_status $ac_retval
1637 1743
1638} # ac_fn_c_try_cpp 1744} # ac_fn_c_try_cpp
1639 1745
1640# ac_fn_cxx_try_compile LINENO 1746# ac_fn_cxx_try_compile LINENO
1641# ---------------------------- 1747# ----------------------------
1642# Try to compile conftest.$ac_ext, and return whether this succeeded. 1748# Try to compile conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_cxx_try_compile () 1749ac_fn_cxx_try_compile ()
1644{ 1750{
1645 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
1646 rm -f conftest.$ac_objext 1752 rm -f conftest.$ac_objext conftest.beam
1647 if { { ac_try="$ac_compile" 1753 if { { ac_try="$ac_compile"
1648case "(($ac_try" in 1754case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;; 1756 *) ac_try_echo=$ac_try;;
1651esac 1757esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5 1759printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err 1760 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$? 1761 ac_status=$?
1656 if test -s conftest.err; then 1762 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1 1763 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5 1764 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err 1765 mv -f conftest.er1 conftest.err
1660 fi 1766 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { 1768 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" || 1769 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err 1770 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then : 1771 } && test -s conftest.$ac_objext
1772then :
1666 ac_retval=0 1773 ac_retval=0
1667else 1774else $as_nop
1668 $as_echo "$as_me: failed program was:" >&5 1775 printf "%s\n" "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5 1776sed 's/^/| /' conftest.$ac_ext >&5
1670 1777
1671 ac_retval=1 1778 ac_retval=1
1672fi 1779fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval 1781 as_fn_set_status $ac_retval
1675 1782
1676} # ac_fn_cxx_try_compile 1783} # ac_fn_cxx_try_compile
1677
1678# ac_fn_cxx_try_cpp LINENO
1679# ------------------------
1680# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_cxx_try_cpp ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1701 test ! -s conftest.err
1702 }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709fi
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_cxx_try_cpp
1714
1715# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1716# ---------------------------------------------------------
1717# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1718# the include files in INCLUDES and setting the cache variable VAR
1719# accordingly.
1720ac_fn_cxx_check_header_mongrel ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if eval "test \"\${$3+set}\"" = set; then :
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval "test \"\${$3+set}\"" = set; then :
1727 $as_echo_n "(cached) " >&6
1728fi
1729eval ac_res=\$$3
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732else
1733 # Is the header compilable?
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1735$as_echo_n "checking $2 usability... " >&6; }
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h. */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_cxx_try_compile "$LINENO"; then :
1742 ac_header_compiler=yes
1743else
1744 ac_header_compiler=no
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1748$as_echo "$ac_header_compiler" >&6; }
1749
1750# Is the header present?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1752$as_echo_n "checking $2 presence... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755#include <$2>
1756_ACEOF
1757if ac_fn_cxx_try_cpp "$LINENO"; then :
1758 ac_header_preproc=yes
1759else
1760 ac_header_preproc=no
1761fi
1762rm -f conftest.err conftest.i conftest.$ac_ext
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1764$as_echo "$ac_header_preproc" >&6; }
1765
1766# So? What about this header?
1767case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1768 yes:no: )
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1770$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773 ;;
1774 no:yes:* )
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1776$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1778$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1780$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1782$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786esac
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval "test \"\${$3+set}\"" = set; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 eval "$3=\$ac_header_compiler"
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797fi
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
1800} # ac_fn_cxx_check_header_mongrel
1801
1802# ac_fn_cxx_try_run LINENO
1803# ------------------------
1804# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1805# that executables *can* be run.
1806ac_fn_cxx_try_run ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_link"
1810case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1820 { { case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_try") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; }; }; then :
1830 ac_retval=0
1831else
1832 $as_echo "$as_me: program exited with status $ac_status" >&5
1833 $as_echo "$as_me: failed program was:" >&5
1834sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=$ac_status
1837fi
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 as_fn_set_status $ac_retval
1841
1842} # ac_fn_cxx_try_run
1843 1784
1844# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1785# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1845# --------------------------------------------------------- 1786# ---------------------------------------------------------
1846# 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
1847# INCLUDES, setting the cache variable VAR accordingly. 1788# INCLUDES, setting the cache variable VAR accordingly.
1848ac_fn_cxx_check_header_compile () 1789ac_fn_cxx_check_header_compile ()
1849{ 1790{
1850 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
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; } 1793printf %s "checking for $2... " >&6; }
1853if eval "test \"\${$3+set}\"" = set; then : 1794if eval test \${$3+y}
1854 $as_echo_n "(cached) " >&6 1795then :
1855else 1796 printf %s "(cached) " >&6
1797else $as_nop
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */ 1799/* end confdefs.h. */
1858$4 1800$4
1859#include <$2> 1801#include <$2>
1860_ACEOF 1802_ACEOF
1861if ac_fn_cxx_try_compile "$LINENO"; then : 1803if ac_fn_cxx_try_compile "$LINENO"
1804then :
1862 eval "$3=yes" 1805 eval "$3=yes"
1863else 1806else $as_nop
1864 eval "$3=no" 1807 eval "$3=no"
1865fi 1808fi
1866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1867fi 1810fi
1868eval ac_res=\$$3 1811eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; } 1813printf "%s\n" "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 1815
1873} # ac_fn_cxx_check_header_compile 1816} # ac_fn_cxx_check_header_compile
1874 1817
1875# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1818# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1876# --------------------------------------------- 1819# ---------------------------------------------
1877# Tests whether TYPE exists after having included INCLUDES, setting cache 1820# Tests whether TYPE exists after having included INCLUDES, setting cache
1878# variable VAR accordingly. 1821# variable VAR accordingly.
1879ac_fn_cxx_check_type () 1822ac_fn_cxx_check_type ()
1880{ 1823{
1881 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
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; } 1826printf %s "checking for $2... " >&6; }
1884if eval "test \"\${$3+set}\"" = set; then : 1827if eval test \${$3+y}
1885 $as_echo_n "(cached) " >&6 1828then :
1886else 1829 printf %s "(cached) " >&6
1830else $as_nop
1887 eval "$3=no" 1831 eval "$3=no"
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */ 1833/* end confdefs.h. */
1890$4 1834$4
1891int 1835int
1892main () 1836main (void)
1893{ 1837{
1894if (sizeof ($2)) 1838if (sizeof ($2))
1895 return 0; 1839 return 0;
1896 ; 1840 ;
1897 return 0; 1841 return 0;
1898} 1842}
1899_ACEOF 1843_ACEOF
1900if ac_fn_cxx_try_compile "$LINENO"; then : 1844if ac_fn_cxx_try_compile "$LINENO"
1845then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h. */ 1847/* end confdefs.h. */
1903$4 1848$4
1904int 1849int
1905main () 1850main (void)
1906{ 1851{
1907if (sizeof (($2))) 1852if (sizeof (($2)))
1908 return 0; 1853 return 0;
1909 ; 1854 ;
1910 return 0; 1855 return 0;
1911} 1856}
1912_ACEOF 1857_ACEOF
1913if ac_fn_cxx_try_compile "$LINENO"; then : 1858if ac_fn_cxx_try_compile "$LINENO"
1859then :
1914 1860
1915else 1861else $as_nop
1916 eval "$3=yes" 1862 eval "$3=yes"
1917fi 1863fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1919fi 1865fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1921fi 1867fi
1922eval ac_res=\$$3 1868eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; } 1870printf "%s\n" "$ac_res" >&6; }
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 1872
1927} # ac_fn_cxx_check_type 1873} # ac_fn_cxx_check_type
1928
1929# ac_fn_c_try_run LINENO
1930# ----------------------
1931# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932# that executables *can* be run.
1933ac_fn_c_try_run ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_link"
1937case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>&5
1944 ac_status=$?
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947 { { case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950esac
1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952$as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_try") 2>&5
1954 ac_status=$?
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; }; }; then :
1957 ac_retval=0
1958else
1959 $as_echo "$as_me: program exited with status $ac_status" >&5
1960 $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=$ac_status
1964fi
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 as_fn_set_status $ac_retval
1968
1969} # ac_fn_c_try_run
1970 1874
1971# ac_fn_c_check_func LINENO FUNC VAR 1875# ac_fn_c_check_func LINENO FUNC VAR
1972# ---------------------------------- 1876# ----------------------------------
1973# Tests whether FUNC exists, setting the cache variable VAR accordingly 1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1974ac_fn_c_check_func () 1878ac_fn_c_check_func ()
1975{ 1879{
1976 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
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978$as_echo_n "checking for $2... " >&6; } 1882printf %s "checking for $2... " >&6; }
1979if eval "test \"\${$3+set}\"" = set; then : 1883if eval test \${$3+y}
1980 $as_echo_n "(cached) " >&6 1884then :
1981else 1885 printf %s "(cached) " >&6
1886else $as_nop
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */ 1888/* end confdefs.h. */
1984/* 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.
1985 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1986#define $2 innocuous_$2 1891#define $2 innocuous_$2
1987 1892
1988/* System header to define __stub macros and hopefully few prototypes, 1893/* System header to define __stub macros and hopefully few prototypes,
1989 which can conflict with char $2 (); below. 1894 which can conflict with char $2 (); below. */
1990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1991 <limits.h> exists even on freestanding compilers. */
1992 1895
1993#ifdef __STDC__
1994# include <limits.h> 1896#include <limits.h>
1995#else
1996# include <assert.h>
1997#endif
1998
1999#undef $2 1897#undef $2
2000 1898
2001/* Override any GCC internal prototype to avoid an error. 1899/* Override any GCC internal prototype to avoid an error.
2002 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
2003 builtin and then its argument prototype would still apply. */ 1901 builtin and then its argument prototype would still apply. */
2011#if defined __stub_$2 || defined __stub___$2 1909#if defined __stub_$2 || defined __stub___$2
2012choke me 1910choke me
2013#endif 1911#endif
2014 1912
2015int 1913int
2016main () 1914main (void)
2017{ 1915{
2018return $2 (); 1916return $2 ();
2019 ; 1917 ;
2020 return 0; 1918 return 0;
2021} 1919}
2022_ACEOF 1920_ACEOF
2023if ac_fn_c_try_link "$LINENO"; then : 1921if ac_fn_c_try_link "$LINENO"
1922then :
2024 eval "$3=yes" 1923 eval "$3=yes"
2025else 1924else $as_nop
2026 eval "$3=no" 1925 eval "$3=no"
2027fi 1926fi
2028rm -f core conftest.err conftest.$ac_objext \ 1927rm -f core conftest.err conftest.$ac_objext conftest.beam \
2029 conftest$ac_exeext conftest.$ac_ext 1928 conftest$ac_exeext conftest.$ac_ext
2030fi 1929fi
2031eval ac_res=\$$3 1930eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; } 1932printf "%s\n" "$ac_res" >&6; }
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 1934
2036} # ac_fn_c_check_func 1935} # ac_fn_c_check_func
2037 1936
2038# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1937# ac_fn_c_try_run LINENO
2039# ------------------------------------------------------- 1938# ----------------------
2040# 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
2041# the include files in INCLUDES and setting the cache variable VAR 1940# executables *can* be run.
2042# accordingly. 1941ac_fn_c_try_run ()
2043ac_fn_c_check_header_mongrel ()
2044{ 1942{
2045 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
2046 if eval "test \"\${$3+set}\"" = set; 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
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; } 1988printf %s "checking for $2... " >&6; }
2049if eval "test \"\${$3+set}\"" = set; then : 1989if eval test \${$3+y}
2050 $as_echo_n "(cached) " >&6 1990then :
2051fi 1991 printf %s "(cached) " >&6
2052eval ac_res=\$$3 1992else $as_nop
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055else
2056 # Is the header compilable?
2057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058$as_echo_n "checking $2 usability... " >&6; }
2059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */ 1994/* end confdefs.h. */
2061$4 1995$4
2062#include <$2> 1996#include <$2>
2063_ACEOF 1997_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then : 1998if ac_fn_c_try_compile "$LINENO"
2065 ac_header_compiler=yes 1999then :
2066else 2000 eval "$3=yes"
2067 ac_header_compiler=no 2001else $as_nop
2002 eval "$3=no"
2068fi 2003fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2005fi
2071$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
2072 2010
2073# Is the header present? 2011} # ac_fn_c_check_header_compile
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2012
2075$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"
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */ 2028/* end confdefs.h. */
2078#include <$2> 2029$4
2030int
2031main (void)
2032{
2033if (sizeof ($2))
2034 return 0;
2035 ;
2036 return 0;
2037}
2079_ACEOF 2038_ACEOF
2080if ac_fn_c_try_cpp "$LINENO"; then : 2039if ac_fn_c_try_compile "$LINENO"
2081 ac_header_preproc=yes 2040then :
2082else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 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"
2084fi 2058fi
2085rm -f conftest.err conftest.i conftest.$ac_ext 2059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2060fi
2087$as_echo "$ac_header_preproc" >&6; } 2061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2088
2089# So? What about this header?
2090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2091 yes:no: )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097 no:yes:* )
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 ;;
2109esac
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111$as_echo_n "checking for $2... " >&6; }
2112if eval "test \"\${$3+set}\"" = set; then :
2113 $as_echo_n "(cached) " >&6
2114else
2115 eval "$3=\$ac_header_compiler"
2116fi 2062fi
2117eval ac_res=\$$3 2063eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119$as_echo "$ac_res" >&6; } 2065printf "%s\n" "$ac_res" >&6; }
2120fi 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122 2067
2123} # ac_fn_c_check_header_mongrel 2068} # ac_fn_c_check_type
2124 2069
2125# ac_fn_cxx_try_link LINENO 2070# ac_fn_cxx_try_link LINENO
2126# ------------------------- 2071# -------------------------
2127# Try to link conftest.$ac_ext, and return whether this succeeded. 2072# Try to link conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_cxx_try_link () 2073ac_fn_cxx_try_link ()
2129{ 2074{
2130 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
2131 rm -f conftest.$ac_objext conftest$ac_exeext 2076 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2132 if { { ac_try="$ac_link" 2077 if { { ac_try="$ac_link"
2133case "(($ac_try" in 2078case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;; 2080 *) ac_try_echo=$ac_try;;
2136esac 2081esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5 2083printf "%s\n" "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>conftest.err 2084 (eval "$ac_link") 2>conftest.err
2140 ac_status=$? 2085 ac_status=$?
2141 if test -s conftest.err; then 2086 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1 2087 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5 2088 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err 2089 mv -f conftest.er1 conftest.err
2145 fi 2090 fi
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && { 2092 test $ac_status = 0; } && {
2148 test -z "$ac_cxx_werror_flag" || 2093 test -z "$ac_cxx_werror_flag" ||
2149 test ! -s conftest.err 2094 test ! -s conftest.err
2150 } && test -s conftest$ac_exeext && { 2095 } && test -s conftest$ac_exeext && {
2151 test "$cross_compiling" = yes || 2096 test "$cross_compiling" = yes ||
2152 $as_test_x conftest$ac_exeext 2097 test -x conftest$ac_exeext
2153 }; then : 2098 }
2099then :
2154 ac_retval=0 2100 ac_retval=0
2155else 2101else $as_nop
2156 $as_echo "$as_me: failed program was:" >&5 2102 printf "%s\n" "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5 2103sed 's/^/| /' conftest.$ac_ext >&5
2158 2104
2159 ac_retval=1 2105 ac_retval=1
2160fi 2106fi
2161 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2107 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2108 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163 # interfere with the next link command; also delete a directory that is 2109 # interfere with the next link command; also delete a directory that is
2164 # left behind by Apple's compiler. We do this before executing the actions. 2110 # left behind by Apple's compiler. We do this before executing the actions.
2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2111 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval 2113 as_fn_set_status $ac_retval
2168 2114
2169} # 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
2170 2125
2171# ac_fn_cxx_check_func LINENO FUNC VAR 2126case $ac_configure_args_raw in
2172# ------------------------------------ 2127 *$as_nl*)
2173# Tests whether FUNC exists, setting the cache variable VAR accordingly 2128 ac_safe_unquote= ;;
2174ac_fn_cxx_check_func () 2129 *)
2175{ 2130 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 ac_unsafe_a="$ac_unsafe_z#~"
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2178$as_echo_n "checking for $2... " >&6; } 2133 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2179if eval "test \"\${$3+set}\"" = set; then : 2134esac
2180 $as_echo_n "(cached) " >&6
2181else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h. */
2184/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186#define $2 innocuous_$2
2187 2135
2188/* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2192
2193#ifdef __STDC__
2194# include <limits.h>
2195#else
2196# include <assert.h>
2197#endif
2198
2199#undef $2
2200
2201/* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2204#ifdef __cplusplus
2205extern "C"
2206#endif
2207char $2 ();
2208/* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211#if defined __stub_$2 || defined __stub___$2
2212choke me
2213#endif
2214
2215int
2216main ()
2217{
2218return $2 ();
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223if ac_fn_cxx_try_link "$LINENO"; then :
2224 eval "$3=yes"
2225else
2226 eval "$3=no"
2227fi
2228rm -f core conftest.err conftest.$ac_objext \
2229 conftest$ac_exeext conftest.$ac_ext
2230fi
2231eval ac_res=\$$3
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235
2236} # ac_fn_cxx_check_func
2237cat >config.log <<_ACEOF 2136cat >config.log <<_ACEOF
2238This file contains any messages produced by compilers while 2137This file contains any messages produced by compilers while
2239running configure, to aid debugging if configure makes a mistake. 2138running configure, to aid debugging if configure makes a mistake.
2240 2139
2241It was created by $as_me, which was 2140It was created by gvpe $as_me 3.1, which was
2242generated by GNU Autoconf 2.67. Invocation command line was 2141generated by GNU Autoconf 2.71. Invocation command line was
2243 2142
2244 $ $0 $@ 2143 $ $0$ac_configure_args_raw
2245 2144
2246_ACEOF 2145_ACEOF
2247exec 5>>config.log 2146exec 5>>config.log
2248{ 2147{
2249cat <<_ASUNAME 2148cat <<_ASUNAME
2272 2171
2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH 2173for as_dir in $PATH
2275do 2174do
2276 IFS=$as_save_IFS 2175 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=. 2176 case $as_dir in #(((
2278 $as_echo "PATH: $as_dir" 2177 '') as_dir=./ ;;
2178 */) ;;
2179 *) as_dir=$as_dir/ ;;
2180 esac
2181 printf "%s\n" "PATH: $as_dir"
2279 done 2182 done
2280IFS=$as_save_IFS 2183IFS=$as_save_IFS
2281 2184
2282} >&5 2185} >&5
2283 2186
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil) 2213 | -silent | --silent | --silen | --sile | --sil)
2311 continue ;; 2214 continue ;;
2312 *\'*) 2215 *\'*)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2216 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 esac 2217 esac
2315 case $ac_pass in 2218 case $ac_pass in
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317 2) 2220 2)
2318 as_fn_append ac_configure_args1 " '$ac_arg'" 2221 as_fn_append ac_configure_args1 " '$ac_arg'"
2343# config.log. We remove comments because anyway the quotes in there 2246# config.log. We remove comments because anyway the quotes in there
2344# would cause problems or look ugly. 2247# would cause problems or look ugly.
2345# WARNING: Use '\'' to represent an apostrophe within the trap. 2248# WARNING: Use '\'' to represent an apostrophe within the trap.
2346# 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.
2347trap 'exit_status=$? 2250trap 'exit_status=$?
2251 # Sanitize IFS.
2252 IFS=" "" $as_nl"
2348 # Save into config.log some information that might help in debugging. 2253 # Save into config.log some information that might help in debugging.
2349 { 2254 {
2350 echo 2255 echo
2351 2256
2352 $as_echo "## ---------------- ## 2257 printf "%s\n" "## ---------------- ##
2353## Cache variables. ## 2258## Cache variables. ##
2354## ---------------- ##" 2259## ---------------- ##"
2355 echo 2260 echo
2356 # The following way of writing the cache mishandles newlines in values, 2261 # The following way of writing the cache mishandles newlines in values,
2357( 2262(
2358 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
2359 eval ac_val=\$$ac_var 2264 eval ac_val=\$$ac_var
2360 case $ac_val in #( 2265 case $ac_val in #(
2361 *${as_nl}*) 2266 *${as_nl}*)
2362 case $ac_var in #( 2267 case $ac_var in #(
2363 *_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
2364$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;} ;;
2365 esac 2270 esac
2366 case $ac_var in #( 2271 case $ac_var in #(
2367 _ | IFS | as_nl) ;; #( 2272 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;; 2274 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac | 2288 esac |
2384 sort 2289 sort
2385) 2290)
2386 echo 2291 echo
2387 2292
2388 $as_echo "## ----------------- ## 2293 printf "%s\n" "## ----------------- ##
2389## Output variables. ## 2294## Output variables. ##
2390## ----------------- ##" 2295## ----------------- ##"
2391 echo 2296 echo
2392 for ac_var in $ac_subst_vars 2297 for ac_var in $ac_subst_vars
2393 do 2298 do
2394 eval ac_val=\$$ac_var 2299 eval ac_val=\$$ac_var
2395 case $ac_val in 2300 case $ac_val in
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2301 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 esac 2302 esac
2398 $as_echo "$ac_var='\''$ac_val'\''" 2303 printf "%s\n" "$ac_var='\''$ac_val'\''"
2399 done | sort 2304 done | sort
2400 echo 2305 echo
2401 2306
2402 if test -n "$ac_subst_files"; then 2307 if test -n "$ac_subst_files"; then
2403 $as_echo "## ------------------- ## 2308 printf "%s\n" "## ------------------- ##
2404## File substitutions. ## 2309## File substitutions. ##
2405## ------------------- ##" 2310## ------------------- ##"
2406 echo 2311 echo
2407 for ac_var in $ac_subst_files 2312 for ac_var in $ac_subst_files
2408 do 2313 do
2409 eval ac_val=\$$ac_var 2314 eval ac_val=\$$ac_var
2410 case $ac_val in 2315 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2316 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac 2317 esac
2413 $as_echo "$ac_var='\''$ac_val'\''" 2318 printf "%s\n" "$ac_var='\''$ac_val'\''"
2414 done | sort 2319 done | sort
2415 echo 2320 echo
2416 fi 2321 fi
2417 2322
2418 if test -s confdefs.h; then 2323 if test -s confdefs.h; then
2419 $as_echo "## ----------- ## 2324 printf "%s\n" "## ----------- ##
2420## confdefs.h. ## 2325## confdefs.h. ##
2421## ----------- ##" 2326## ----------- ##"
2422 echo 2327 echo
2423 cat confdefs.h 2328 cat confdefs.h
2424 echo 2329 echo
2425 fi 2330 fi
2426 test "$ac_signal" != 0 && 2331 test "$ac_signal" != 0 &&
2427 $as_echo "$as_me: caught signal $ac_signal" 2332 printf "%s\n" "$as_me: caught signal $ac_signal"
2428 $as_echo "$as_me: exit $exit_status" 2333 printf "%s\n" "$as_me: exit $exit_status"
2429 } >&5 2334 } >&5
2430 rm -f core *.core core.conftest.* && 2335 rm -f core *.core core.conftest.* &&
2431 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2432 exit $exit_status 2337 exit $exit_status
2433' 0 2338' 0
2437ac_signal=0 2342ac_signal=0
2438 2343
2439# 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.
2440rm -f -r conftest* confdefs.h 2345rm -f -r conftest* confdefs.h
2441 2346
2442$as_echo "/* confdefs.h */" > confdefs.h 2347printf "%s\n" "/* confdefs.h */" > confdefs.h
2443 2348
2444# Predefined preprocessor variables. 2349# Predefined preprocessor variables.
2445 2350
2446cat >>confdefs.h <<_ACEOF 2351printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2447#define PACKAGE_NAME "$PACKAGE_NAME"
2448_ACEOF
2449 2352
2450cat >>confdefs.h <<_ACEOF 2353printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2451#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2452_ACEOF
2453 2354
2454cat >>confdefs.h <<_ACEOF 2355printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2455#define PACKAGE_VERSION "$PACKAGE_VERSION"
2456_ACEOF
2457 2356
2458cat >>confdefs.h <<_ACEOF 2357printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2459#define PACKAGE_STRING "$PACKAGE_STRING"
2460_ACEOF
2461 2358
2462cat >>confdefs.h <<_ACEOF 2359printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2464_ACEOF
2465 2360
2466cat >>confdefs.h <<_ACEOF 2361printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2467#define PACKAGE_URL "$PACKAGE_URL"
2468_ACEOF
2469 2362
2470 2363
2471# 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.
2472# Prefer an explicitly selected file to automatically selected ones. 2365# Prefer an explicitly selected file to automatically selected ones.
2473ac_site_file1=NONE
2474ac_site_file2=NONE
2475if test -n "$CONFIG_SITE"; then 2366if test -n "$CONFIG_SITE"; then
2476 # We do not want a PATH search for config.site.
2477 case $CONFIG_SITE in #((
2478 -*) ac_site_file1=./$CONFIG_SITE;;
2479 */*) ac_site_file1=$CONFIG_SITE;; 2367 ac_site_files="$CONFIG_SITE"
2480 *) ac_site_file1=./$CONFIG_SITE;;
2481 esac
2482elif test "x$prefix" != xNONE; then 2368elif test "x$prefix" != xNONE; then
2483 ac_site_file1=$prefix/share/config.site 2369 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2484 ac_site_file2=$prefix/etc/config.site
2485else 2370else
2486 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"
2487 ac_site_file2=$ac_default_prefix/etc/config.site
2488fi 2372fi
2373
2489for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2374for ac_site_file in $ac_site_files
2490do 2375do
2491 test "x$ac_site_file" = xNONE && continue 2376 case $ac_site_file in #(
2377 */*) :
2378 ;; #(
2379 *) :
2380 ac_site_file=./$ac_site_file ;;
2381esac
2492 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
2493 { $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
2494$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2384printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2495 sed 's/^/| /' "$ac_site_file" >&5 2385 sed 's/^/| /' "$ac_site_file" >&5
2496 . "$ac_site_file" \ 2386 . "$ac_site_file" \
2497 || { { $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
2498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2499as_fn_error $? "failed to load site script $ac_site_file 2389as_fn_error $? "failed to load site script $ac_site_file
2500See \`config.log' for more details" "$LINENO" 5 ; } 2390See \`config.log' for more details" "$LINENO" 5; }
2501 fi 2391 fi
2502done 2392done
2503 2393
2504if test -r "$cache_file"; then 2394if test -r "$cache_file"; then
2505 # 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
2506 # 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.
2507 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508 { $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
2509$as_echo "$as_me: loading cache $cache_file" >&6;} 2399printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2510 case $cache_file in 2400 case $cache_file in
2511 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2401 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512 *) . "./$cache_file";; 2402 *) . "./$cache_file";;
2513 esac 2403 esac
2514 fi 2404 fi
2515else 2405else
2516 { $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
2517$as_echo "$as_me: creating cache $cache_file" >&6;} 2407printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2518 >$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"
2519fi 3041fi
2520 3042
2521# 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
2522# value. 3044# value.
2523ac_cache_corrupted=false 3045ac_cache_corrupted=false
2526 eval ac_new_set=\$ac_env_${ac_var}_set 3048 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value 3050 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in 3051 case $ac_old_set,$ac_new_set in
2530 set,) 3052 set,)
2531 { $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
2532$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;}
2533 ac_cache_corrupted=: ;; 3055 ac_cache_corrupted=: ;;
2534 ,set) 3056 ,set)
2535 { $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
2536$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;}
2537 ac_cache_corrupted=: ;; 3059 ac_cache_corrupted=: ;;
2538 ,);; 3060 ,);;
2539 *) 3061 *)
2540 if test "x$ac_old_val" != "x$ac_new_val"; then 3062 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure. 3063 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val` 3064 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val` 3065 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { $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
2546$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;}
2547 ac_cache_corrupted=: 3069 ac_cache_corrupted=:
2548 else 3070 else
2549 { $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
2550$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;}
2551 eval $ac_var=\$ac_old_val 3073 eval $ac_var=\$ac_old_val
2552 fi 3074 fi
2553 { $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
2554$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3076printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2555 { $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
2556$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3078printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2557 fi;; 3079 fi;;
2558 esac 3080 esac
2559 # Pass precious variables to config.status. 3081 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then 3082 if test "$ac_new_set" = set; then
2561 case $ac_new_val in 3083 case $ac_new_val in
2562 *\'*) 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"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;; 3085 *) ac_arg=$ac_var=$ac_new_val ;;
2564 esac 3086 esac
2565 case " $ac_configure_args " in 3087 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 esac 3090 esac
2569 fi 3091 fi
2570done 3092done
2571if $ac_cache_corrupted; then 3093if $ac_cache_corrupted; then
2572 { $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
2573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3095printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { $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
2575$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;}
2576 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
2577fi 3100fi
2578## -------------------- ## 3101## -------------------- ##
2579## Main body of script. ## 3102## Main body of script. ##
2580## -------------------- ## 3103## -------------------- ##
2581 3104
2585ac_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'
2586ac_compiler_gnu=$ac_cv_c_compiler_gnu 3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587 3110
2588 3111
2589 3112
2590ac_aux_dir=
2591for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592 if test -f "$ac_dir/install-sh"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/install-sh -c"
2595 break
2596 elif test -f "$ac_dir/install.sh"; then
2597 ac_aux_dir=$ac_dir
2598 ac_install_sh="$ac_aux_dir/install.sh -c"
2599 break
2600 elif test -f "$ac_dir/shtool"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/shtool install -c"
2603 break
2604 fi
2605done
2606if test -z "$ac_aux_dir"; then
2607 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608fi
2609 3113
2610# These three variables are undocumented and unsupported,
2611# and are intended to be withdrawn in a future Autoconf release.
2612# They can cause serious problems if a builder's source tree is in a directory
2613# whose full name contains unusual characters.
2614ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2615ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2616ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2617 3114
2618 3115
2619# Make sure we can run config.sub. 3116 # Make sure we can run config.sub.
2620$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3117$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2621 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
2622 3119
2623{ $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
2624$as_echo_n "checking build system type... " >&6; } 3121printf %s "checking build system type... " >&6; }
2625if test "${ac_cv_build+set}" = set; then : 3122if test ${ac_cv_build+y}
2626 $as_echo_n "(cached) " >&6 3123then :
2627else 3124 printf %s "(cached) " >&6
3125else $as_nop
2628 ac_build_alias=$build_alias 3126 ac_build_alias=$build_alias
2629test "x$ac_build_alias" = x && 3127test "x$ac_build_alias" = x &&
2630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3128 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2631test "x$ac_build_alias" = x && 3129test "x$ac_build_alias" = x &&
2632 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
2633ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3131ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2634 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
2635 3133
2636fi 3134fi
2637{ $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
2638$as_echo "$ac_cv_build" >&6; } 3136printf "%s\n" "$ac_cv_build" >&6; }
2639case $ac_cv_build in 3137case $ac_cv_build in
2640*-*-*) ;; 3138*-*-*) ;;
2641*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 3139*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2642esac 3140esac
2643build=$ac_cv_build 3141build=$ac_cv_build
2644ac_save_IFS=$IFS; IFS='-' 3142ac_save_IFS=$IFS; IFS='-'
2645set x $ac_cv_build 3143set x $ac_cv_build
2646shift 3144shift
2652build_os=$* 3150build_os=$*
2653IFS=$ac_save_IFS 3151IFS=$ac_save_IFS
2654case $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
2655 3153
2656 3154
2657{ $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
2658$as_echo_n "checking host system type... " >&6; } 3156printf %s "checking host system type... " >&6; }
2659if test "${ac_cv_host+set}" = set; then : 3157if test ${ac_cv_host+y}
2660 $as_echo_n "(cached) " >&6 3158then :
2661else 3159 printf %s "(cached) " >&6
3160else $as_nop
2662 if test "x$host_alias" = x; then 3161 if test "x$host_alias" = x; then
2663 ac_cv_host=$ac_cv_build 3162 ac_cv_host=$ac_cv_build
2664else 3163else
2665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3164 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2666 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
2667fi 3166fi
2668 3167
2669fi 3168fi
2670{ $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
2671$as_echo "$ac_cv_host" >&6; } 3170printf "%s\n" "$ac_cv_host" >&6; }
2672case $ac_cv_host in 3171case $ac_cv_host in
2673*-*-*) ;; 3172*-*-*) ;;
2674*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 3173*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2675esac 3174esac
2676host=$ac_cv_host 3175host=$ac_cv_host
2677ac_save_IFS=$IFS; IFS='-' 3176ac_save_IFS=$IFS; IFS='-'
2678set x $ac_cv_host 3177set x $ac_cv_host
2679shift 3178shift
2685host_os=$* 3184host_os=$*
2686IFS=$ac_save_IFS 3185IFS=$ac_save_IFS
2687case $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
2688 3187
2689 3188
2690{ $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
2691$as_echo_n "checking target system type... " >&6; } 3190printf %s "checking target system type... " >&6; }
2692if test "${ac_cv_target+set}" = set; then : 3191if test ${ac_cv_target+y}
2693 $as_echo_n "(cached) " >&6 3192then :
2694else 3193 printf %s "(cached) " >&6
3194else $as_nop
2695 if test "x$target_alias" = x; then 3195 if test "x$target_alias" = x; then
2696 ac_cv_target=$ac_cv_host 3196 ac_cv_target=$ac_cv_host
2697else 3197else
2698 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3198 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2699 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
2700fi 3200fi
2701 3201
2702fi 3202fi
2703{ $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
2704$as_echo "$ac_cv_target" >&6; } 3204printf "%s\n" "$ac_cv_target" >&6; }
2705case $ac_cv_target in 3205case $ac_cv_target in
2706*-*-*) ;; 3206*-*-*) ;;
2707*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 3207*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2708esac 3208esac
2709target=$ac_cv_target 3209target=$ac_cv_target
2710ac_save_IFS=$IFS; IFS='-' 3210ac_save_IFS=$IFS; IFS='-'
2711set x $ac_cv_target 3211set x $ac_cv_target
2712shift 3212shift
2724# will get canonicalized. 3224# will get canonicalized.
2725test -n "$target_alias" && 3225test -n "$target_alias" &&
2726 test "$program_prefix$program_suffix$program_transform_name" = \ 3226 test "$program_prefix$program_suffix$program_transform_name" = \
2727 NONENONEs,x,x, && 3227 NONENONEs,x,x, &&
2728 program_prefix=${target_alias}- 3228 program_prefix=${target_alias}-
2729am__api_version="1.7" 3229am__api_version='1.16'
3230
3231
2730# Find a good install program. We prefer a C program (faster), 3232 # Find a good install program. We prefer a C program (faster),
2731# 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
2732# incompatible versions: 3234# incompatible versions:
2733# SysV /etc/install, /usr/sbin/install 3235# SysV /etc/install, /usr/sbin/install
2734# SunOS /usr/etc/install 3236# SunOS /usr/etc/install
2735# IRIX /sbin/install 3237# IRIX /sbin/install
2739# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3241# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2740# 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"
2741# OS/2's system install, which has a completely different semantic 3243# OS/2's system install, which has a completely different semantic
2742# ./install, which can be erroneously created by make from ./install.sh. 3244# ./install, which can be erroneously created by make from ./install.sh.
2743# Reject install programs that cannot install multiple files. 3245# Reject install programs that cannot install multiple files.
2744{ $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
2745$as_echo_n "checking for a BSD-compatible install... " >&6; } 3247printf %s "checking for a BSD-compatible install... " >&6; }
2746if test -z "$INSTALL"; then 3248if test -z "$INSTALL"; then
2747if test "${ac_cv_path_install+set}" = set; then : 3249if test ${ac_cv_path_install+y}
2748 $as_echo_n "(cached) " >&6 3250then :
2749else 3251 printf %s "(cached) " >&6
3252else $as_nop
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH 3254for as_dir in $PATH
2752do 3255do
2753 IFS=$as_save_IFS 3256 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=. 3257 case $as_dir in #(((
3258 '') as_dir=./ ;;
3259 */) ;;
3260 *) as_dir=$as_dir/ ;;
3261 esac
2755 # Account for people who put trailing slashes in PATH elements. 3262 # Account for fact that we put trailing slashes in our PATH walk.
2756case $as_dir/ in #(( 3263case $as_dir in #((
2757 ./ | .// | /[cC]/* | \ 3264 ./ | /[cC]/* | \
2758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2759 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3266 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2760 /usr/ucb/* ) ;; 3267 /usr/ucb/* ) ;;
2761 *) 3268 *)
2762 # 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.
2763 # 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
2764 # by default. 3271 # by default.
2765 for ac_prog in ginstall scoinst install; do 3272 for ac_prog in ginstall scoinst install; do
2766 for ac_exec_ext in '' $ac_executable_extensions; do 3273 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3274 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2768 if test $ac_prog = install && 3275 if test $ac_prog = install &&
2769 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
2770 # AIX install. It has an incompatible calling convention. 3277 # AIX install. It has an incompatible calling convention.
2771 : 3278 :
2772 elif test $ac_prog = install && 3279 elif test $ac_prog = install &&
2773 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
2774 # program-specific install script used by HP pwplus--don't use. 3281 # program-specific install script used by HP pwplus--don't use.
2775 : 3282 :
2776 else 3283 else
2777 rm -rf conftest.one conftest.two conftest.dir 3284 rm -rf conftest.one conftest.two conftest.dir
2778 echo one > conftest.one 3285 echo one > conftest.one
2779 echo two > conftest.two 3286 echo two > conftest.two
2780 mkdir conftest.dir 3287 mkdir conftest.dir
2781 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/" &&
2782 test -s conftest.one && test -s conftest.two && 3289 test -s conftest.one && test -s conftest.two &&
2783 test -s conftest.dir/conftest.one && 3290 test -s conftest.dir/conftest.one &&
2784 test -s conftest.dir/conftest.two 3291 test -s conftest.dir/conftest.two
2785 then 3292 then
2786 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"
2787 break 3 3294 break 3
2788 fi 3295 fi
2789 fi 3296 fi
2790 fi 3297 fi
2791 done 3298 done
2797IFS=$as_save_IFS 3304IFS=$as_save_IFS
2798 3305
2799rm -rf conftest.one conftest.two conftest.dir 3306rm -rf conftest.one conftest.two conftest.dir
2800 3307
2801fi 3308fi
2802 if test "${ac_cv_path_install+set}" = set; then 3309 if test ${ac_cv_path_install+y}; then
2803 INSTALL=$ac_cv_path_install 3310 INSTALL=$ac_cv_path_install
2804 else 3311 else
2805 # 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
2806 # value for INSTALL within a source directory, because that will 3313 # value for INSTALL within a source directory, because that will
2807 # break other packages using the cache if that directory is 3314 # break other packages using the cache if that directory is
2808 # removed, or if the value is a relative name. 3315 # removed, or if the value is a relative name.
2809 INSTALL=$ac_install_sh 3316 INSTALL=$ac_install_sh
2810 fi 3317 fi
2811fi 3318fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2813$as_echo "$INSTALL" >&6; } 3320printf "%s\n" "$INSTALL" >&6; }
2814 3321
2815# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3322# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2816# It thinks the first close brace ends the variable substitution. 3323# It thinks the first close brace ends the variable substitution.
2817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2818 3325
2819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2820 3327
2821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2822 3329
2823{ $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
2824$as_echo_n "checking whether build environment is sane... " >&6; } 3331printf %s "checking whether build environment is sane... " >&6; }
2825# Just in case 3332# Reject unsafe characters in $srcdir or the absolute working directory
2826sleep 1 3333# name. Accept space and tab only in the latter.
2827echo timestamp > conftest.file 3334am_lf='
3335'
3336case `pwd` in
3337 *[\\\"\#\$\&\'\`$am_lf]*)
3338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3339esac
3340case $srcdir in
3341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3342 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3343esac
3344
2828# 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
2829# arguments. Must try -L first in case configure is actually a 3346# arguments. Must try -L first in case configure is actually a
2830# 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
2831# (eg FreeBSD returns the mod time of the symlink's containing 3348# (eg FreeBSD returns the mod time of the symlink's containing
2832# directory). 3349# directory).
2833if ( 3350if (
3351 am_has_slept=no
3352 for am_try in 1 2; do
3353 echo "timestamp, slept: $am_has_slept" > conftest.file
2834 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3354 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2835 if test "$*" = "X"; then 3355 if test "$*" = "X"; then
2836 # -L didn't work. 3356 # -L didn't work.
2837 set X `ls -t $srcdir/configure conftest.file` 3357 set X `ls -t "$srcdir/configure" conftest.file`
2838 fi 3358 fi
2839 rm -f conftest.file
2840 if test "$*" != "X $srcdir/configure conftest.file" \ 3359 if test "$*" != "X $srcdir/configure conftest.file" \
2841 && test "$*" != "X conftest.file $srcdir/configure"; then 3360 && test "$*" != "X conftest.file $srcdir/configure"; then
2842 3361
2843 # 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
2844 # if, for instance, CONFIG_SHELL is bash and it inherits a 3363 # if, for instance, CONFIG_SHELL is bash and it inherits a
2845 # broken ls alias from the environment. This has actually 3364 # broken ls alias from the environment. This has actually
2846 # happened. Such a system could not be considered "sane". 3365 # happened. Such a system could not be considered "sane".
2847 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
2848alias in your environment" "$LINENO" 5 3367 alias in your environment" "$LINENO" 5
2849 fi 3368 fi
2850 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
2851 test "$2" = conftest.file 3376 test "$2" = conftest.file
2852 ) 3377 )
2853then 3378then
2854 # Ok. 3379 # Ok.
2855 : 3380 :
2856else 3381else
2857 as_fn_error $? "newly created file is older than distributed files! 3382 as_fn_error $? "newly created file is older than distributed files!
2858Check your system clock" "$LINENO" 5 3383Check your system clock" "$LINENO" 5
2859fi 3384fi
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2861$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
2862test "$program_prefix" != NONE && 3397test "$program_prefix" != NONE &&
2863 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2864# Use a double $ so make ignores it. 3399# Use a double $ so make ignores it.
2865test "$program_suffix" != NONE && 3400test "$program_suffix" != NONE &&
2866 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2867# Double any \ or $. 3402# Double any \ or $.
2868# By default was `s,x,x', remove it if useless. 3403# By default was `s,x,x', remove it if useless.
2869ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3404ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2870program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3405program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2871 3406
2872 3407
2873# expand $ac_aux_dir to an absolute path 3408# Expand $ac_aux_dir to an absolute path.
2874am_aux_dir=`cd $ac_aux_dir && pwd` 3409am_aux_dir=`cd "$ac_aux_dir" && pwd`
2875 3410
2876test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 3411
3412 if test x"${MISSING+set}" != xset; then
3413 MISSING="\${SHELL} '$am_aux_dir/missing'"
3414fi
2877# Use eval to expand $SHELL 3415# Use eval to expand $SHELL
2878if eval "$MISSING --run true"; then 3416if eval "$MISSING --is-lightweight"; then
2879 am_missing_run="$MISSING --run " 3417 am_missing_run="$MISSING "
2880else 3418else
2881 am_missing_run= 3419 am_missing_run=
2882 { $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
2883$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;}
2884fi 3422fi
3423
3424if test x"${install_sh+set}" != xset; then
3425 case $am_aux_dir in
3426 *\ * | *\ *)
3427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3428 *)
3429 install_sh="\${SHELL} $am_aux_dir/install-sh"
3430 esac
3431fi
3432
3433# Installed binaries are usually stripped using 'strip' when the user
3434# run "make install-strip". However 'strip' might not be the right
3435# tool to use in cross-compilation environments, therefore Automake
3436# will honor the 'STRIP' environment variable to overrule this program.
3437if test "$cross_compiling" != no; then
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3440set dummy ${ac_tool_prefix}strip; ac_word=$2
3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442printf %s "checking for $ac_word... " >&6; }
3443if test ${ac_cv_prog_STRIP+y}
3444then :
3445 printf %s "(cached) " >&6
3446else $as_nop
3447 if test -n "$STRIP"; then
3448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3449else
3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451for as_dir in $PATH
3452do
3453 IFS=$as_save_IFS
3454 case $as_dir in #(((
3455 '') as_dir=./ ;;
3456 */) ;;
3457 *) as_dir=$as_dir/ ;;
3458 esac
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465done
3466 done
3467IFS=$as_save_IFS
3468
3469fi
3470fi
3471STRIP=$ac_cv_prog_STRIP
3472if test -n "$STRIP"; then
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3474printf "%s\n" "$STRIP" >&6; }
3475else
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477printf "%s\n" "no" >&6; }
3478fi
3479
3480
3481fi
3482if test -z "$ac_cv_prog_STRIP"; then
3483 ac_ct_STRIP=$STRIP
3484 # Extract the first word of "strip", so it can be a program name with args.
3485set dummy strip; ac_word=$2
3486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487printf %s "checking for $ac_word... " >&6; }
3488if test ${ac_cv_prog_ac_ct_STRIP+y}
3489then :
3490 printf %s "(cached) " >&6
3491else $as_nop
3492 if test -n "$ac_ct_STRIP"; then
3493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3494else
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498 IFS=$as_save_IFS
3499 case $as_dir in #(((
3500 '') as_dir=./ ;;
3501 */) ;;
3502 *) as_dir=$as_dir/ ;;
3503 esac
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3506 ac_cv_prog_ac_ct_STRIP="strip"
3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510done
3511 done
3512IFS=$as_save_IFS
3513
3514fi
3515fi
3516ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3517if test -n "$ac_ct_STRIP"; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3519printf "%s\n" "$ac_ct_STRIP" >&6; }
3520else
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522printf "%s\n" "no" >&6; }
3523fi
3524
3525 if test "x$ac_ct_STRIP" = x; then
3526 STRIP=":"
3527 else
3528 case $cross_compiling:$ac_tool_warned in
3529yes:)
3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532ac_tool_warned=yes ;;
3533esac
3534 STRIP=$ac_ct_STRIP
3535 fi
3536else
3537 STRIP="$ac_cv_prog_STRIP"
3538fi
3539
3540fi
3541INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3542
3543
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3545printf %s "checking for a race-free mkdir -p... " >&6; }
3546if test -z "$MKDIR_P"; then
3547 if test ${ac_cv_path_mkdir+y}
3548then :
3549 printf %s "(cached) " >&6
3550else $as_nop
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3553do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_prog in mkdir gmkdir; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3563 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3564 'mkdir ('*'coreutils) '* | \
3565 'BusyBox '* | \
3566 'mkdir (fileutils) '4.1*)
3567 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3568 break 3;;
3569 esac
3570 done
3571 done
3572 done
3573IFS=$as_save_IFS
3574
3575fi
3576
3577 test -d ./--version && rmdir ./--version
3578 if test ${ac_cv_path_mkdir+y}; then
3579 MKDIR_P="$ac_cv_path_mkdir -p"
3580 else
3581 # As a last resort, use the slow shell script. Don't cache a
3582 # value for MKDIR_P within a source directory, because that will
3583 # break other packages using the cache if that directory is
3584 # removed, or if the value is a relative name.
3585 MKDIR_P="$ac_install_sh -d"
3586 fi
3587fi
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3589printf "%s\n" "$MKDIR_P" >&6; }
2885 3590
2886for ac_prog in gawk mawk nawk awk 3591for ac_prog in gawk mawk nawk awk
2887do 3592do
2888 # 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.
2889set dummy $ac_prog; ac_word=$2 3594set dummy $ac_prog; ac_word=$2
2890{ $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
2891$as_echo_n "checking for $ac_word... " >&6; } 3596printf %s "checking for $ac_word... " >&6; }
2892if test "${ac_cv_prog_AWK+set}" = set; then : 3597if test ${ac_cv_prog_AWK+y}
2893 $as_echo_n "(cached) " >&6 3598then :
2894else 3599 printf %s "(cached) " >&6
3600else $as_nop
2895 if test -n "$AWK"; then 3601 if test -n "$AWK"; then
2896 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2897else 3603else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH 3605for as_dir in $PATH
2900do 3606do
2901 IFS=$as_save_IFS 3607 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=. 3608 case $as_dir in #(((
3609 '') as_dir=./ ;;
3610 */) ;;
3611 *) as_dir=$as_dir/ ;;
3612 esac
2903 for ac_exec_ext in '' $ac_executable_extensions; do 3613 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_AWK="$ac_prog" 3615 ac_cv_prog_AWK="$ac_prog"
2906 $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
2907 break 2 3617 break 2
2908 fi 3618 fi
2909done 3619done
2910 done 3620 done
2911IFS=$as_save_IFS 3621IFS=$as_save_IFS
2912 3622
2913fi 3623fi
2914fi 3624fi
2915AWK=$ac_cv_prog_AWK 3625AWK=$ac_cv_prog_AWK
2916if test -n "$AWK"; then 3626if test -n "$AWK"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2918$as_echo "$AWK" >&6; } 3628printf "%s\n" "$AWK" >&6; }
2919else 3629else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; } 3631printf "%s\n" "no" >&6; }
2922fi 3632fi
2923 3633
2924 3634
2925 test -n "$AWK" && break 3635 test -n "$AWK" && break
2926done 3636done
2927 3637
2928{ $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
2929$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3639printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2930set x ${MAKE-make} 3640set x ${MAKE-make}
2931ac_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'`
2932if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 3642if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2933 $as_echo_n "(cached) " >&6 3643then :
2934else 3644 printf %s "(cached) " >&6
3645else $as_nop
2935 cat >conftest.make <<\_ACEOF 3646 cat >conftest.make <<\_ACEOF
2936SHELL = /bin/sh 3647SHELL = /bin/sh
2937all: 3648all:
2938 @echo '@@@%%%=$(MAKE)=@@@%%%' 3649 @echo '@@@%%%=$(MAKE)=@@@%%%'
2939_ACEOF 3650_ACEOF
2945 eval ac_cv_prog_make_${ac_make}_set=no;; 3656 eval ac_cv_prog_make_${ac_make}_set=no;;
2946esac 3657esac
2947rm -f conftest.make 3658rm -f conftest.make
2948fi 3659fi
2949if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3660if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951$as_echo "yes" >&6; } 3662printf "%s\n" "yes" >&6; }
2952 SET_MAKE= 3663 SET_MAKE=
2953else 3664else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; } 3666printf "%s\n" "no" >&6; }
2956 SET_MAKE="MAKE=${MAKE-make}" 3667 SET_MAKE="MAKE=${MAKE-make}"
2957fi 3668fi
2958 3669
2959rm -rf .tst 2>/dev/null 3670rm -rf .tst 2>/dev/null
2960mkdir .tst 2>/dev/null 3671mkdir .tst 2>/dev/null
2963else 3674else
2964 am__leading_dot=_ 3675 am__leading_dot=_
2965fi 3676fi
2966rmdir .tst 2>/dev/null 3677rmdir .tst 2>/dev/null
2967 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='\'
3719
3720if test "`cd $srcdir && pwd`" != "`pwd`"; then
3721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3722 # is not polluted with repeated "-I."
3723 am__isrc=' -I$(srcdir)'
2968 # test to see if srcdir already configured 3724 # test to see if srcdir already configured
2969if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970 test -f $srcdir/config.status; then 3725 if test -f $srcdir/config.status; then
2971 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3727 fi
2972fi 3728fi
2973 3729
2974# test whether we have cygpath 3730# test whether we have cygpath
2975if test -z "$CYGPATH_W"; then 3731if test -z "$CYGPATH_W"; then
2976 if (cygpath --version) >/dev/null 2>/dev/null; then 3732 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 fi 3736 fi
2981fi 3737fi
2982 3738
2983 3739
2984# Define the identity of the package. 3740# Define the identity of the package.
2985 PACKAGE=gvpe 3741 PACKAGE='gvpe'
2986 VERSION=2.24 3742 VERSION='3.1'
2987 3743
2988 3744
2989cat >>confdefs.h <<_ACEOF 3745printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
2990#define PACKAGE "$PACKAGE"
2991_ACEOF
2992 3746
2993 3747
2994cat >>confdefs.h <<_ACEOF 3748printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
2995#define VERSION "$VERSION"
2996_ACEOF
2997 3749
2998# Some tools Automake needs. 3750# Some tools Automake needs.
2999 3751
3000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3001 3753
3009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3010 3762
3011 3763
3012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3013 3765
3766# For better backward compatibility. To be removed once Automake 1.9.x
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)'
3014 3771
3015AMTAR=${AMTAR-"${am_missing_run}tar"} 3772# We need awk for the "check" target (and possibly the TAP driver). The
3773# system "awk" is bad on some platforms.
3774# Always define AMTAR for backward compatibility. Yes, it's still used
3775# in the wild :-( We should find a proper way to deprecate it ...
3776AMTAR='$${TAR-tar}'
3016 3777
3017install_sh=${install_sh-"$am_aux_dir/install-sh"}
3018 3778
3019# Installed binaries are usually stripped using `strip' when the user 3779# We'll loop over all known methods to create a tar archive until one works.
3020# run `make install-strip'. However `strip' might not be the right 3780_am_tools='gnutar pax cpio none'
3021# tool to use in cross-compilation environments, therefore Automake 3781
3022# will honor the `STRIP' environment variable to overrule this program. 3782am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3023if test "$cross_compiling" != no; then 3783
3024 if test -n "$ac_tool_prefix"; then 3784
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3785
3026set dummy ${ac_tool_prefix}strip; ac_word=$2 3786
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3787
3028$as_echo_n "checking for $ac_word... " >&6; } 3788
3029if test "${ac_cv_prog_STRIP+set}" = set; then : 3789# POSIX will say in a future version that running "rm -f" with no argument
3030 $as_echo_n "(cached) " >&6 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
3031else 3815 else
3032 if test -n "$STRIP"; then 3816 cat >&2 <<'END'
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3817Aborting the configuration process, to ensure you take notice of the issue.
3034else 3818
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819You can download and install GNU coreutils to get an 'rm' implementation
3036for as_dir in $PATH 3820that behaves properly: <https://www.gnu.org/software/coreutils/>.
3037do 3821
3038 IFS=$as_save_IFS 3822If you want to complete the configuration process using your problematic
3039 test -z "$as_dir" && as_dir=. 3823'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3040 for ac_exec_ext in '' $ac_executable_extensions; do 3824to "yes", and re-run configure.
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3825
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3826END
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3827 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3044 break 2
3045 fi 3828 fi
3046done
3047 done
3048IFS=$as_save_IFS
3049
3050fi 3829fi
3051fi
3052STRIP=$ac_cv_prog_STRIP
3053if test -n "$STRIP"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3055$as_echo "$STRIP" >&6; }
3056else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062fi
3063if test -z "$ac_cv_prog_STRIP"; then
3064 ac_ct_STRIP=$STRIP
3065 # Extract the first word of "strip", so it can be a program name with args.
3066set dummy strip; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
3069if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071else
3072 if test -n "$ac_ct_STRIP"; then
3073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_STRIP="strip"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087 done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093if test -n "$ac_ct_STRIP"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095$as_echo "$ac_ct_STRIP" >&6; }
3096else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101 if test "x$ac_ct_STRIP" = x; then
3102 STRIP=":"
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105yes:)
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108ac_tool_warned=yes ;;
3109esac
3110 STRIP=$ac_ct_STRIP
3111 fi
3112else
3113 STRIP="$ac_cv_prog_STRIP"
3114fi
3115
3116fi
3117INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3118
3119# We need awk for the "check" target. The system "awk" is bad on
3120# some platforms.
3121
3122
3123 3830
3124ac_config_headers="$ac_config_headers config.h" 3831ac_config_headers="$ac_config_headers config.h"
3125 3832
3833
3126{ $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
3127$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; }
3128 # Check whether --enable-maintainer-mode was given. 3836 # Check whether --enable-maintainer-mode was given.
3129if test "${enable_maintainer_mode+set}" = set; then : 3837if test ${enable_maintainer_mode+y}
3838then :
3130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3131else 3840else $as_nop
3132 USE_MAINTAINER_MODE=no 3841 USE_MAINTAINER_MODE=no
3133fi 3842fi
3134 3843
3135 { $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
3136$as_echo "$USE_MAINTAINER_MODE" >&6; } 3845printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3137
3138
3139if test $USE_MAINTAINER_MODE = yes; then 3846 if test $USE_MAINTAINER_MODE = yes; then
3140 MAINTAINER_MODE_TRUE= 3847 MAINTAINER_MODE_TRUE=
3141 MAINTAINER_MODE_FALSE='#' 3848 MAINTAINER_MODE_FALSE='#'
3142else 3849else
3143 MAINTAINER_MODE_TRUE='#' 3850 MAINTAINER_MODE_TRUE='#'
3144 MAINTAINER_MODE_FALSE= 3851 MAINTAINER_MODE_FALSE=
3148 3855
3149 3856
3150 3857
3151 3858
3152 3859
3153
3154
3155
3156 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
3157
3158 for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done
3159 3860
3160 3861
3161 3862
3162 MKINSTALLDIRS= 3863 MKINSTALLDIRS=
3163 if test -n "$ac_aux_dir"; then 3864 if test -n "$ac_aux_dir"; then
3171 3872
3172 3873
3173 3874
3174 # 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.
3175set dummy msgfmt; ac_word=$2 3876set dummy msgfmt; ac_word=$2
3176{ $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
3177$as_echo_n "checking for $ac_word... " >&6; } 3878printf %s "checking for $ac_word... " >&6; }
3178if test "${ac_cv_path_MSGFMT+set}" = set; then : 3879if test ${ac_cv_path_MSGFMT+y}
3179 $as_echo_n "(cached) " >&6 3880then :
3180else 3881 printf %s "(cached) " >&6
3882else $as_nop
3181 case "$MSGFMT" in 3883 case "$MSGFMT" in
3182 /*) 3884 /*)
3183 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.
3184 ;; 3886 ;;
3185 *) 3887 *)
3199 ;; 3901 ;;
3200esac 3902esac
3201fi 3903fi
3202MSGFMT="$ac_cv_path_MSGFMT" 3904MSGFMT="$ac_cv_path_MSGFMT"
3203if test "$MSGFMT" != ":"; then 3905if test "$MSGFMT" != ":"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3205$as_echo "$MSGFMT" >&6; } 3907printf "%s\n" "$MSGFMT" >&6; }
3206else 3908else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; } 3910printf "%s\n" "no" >&6; }
3209fi 3911fi
3210 3912
3211 # 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.
3212set dummy gmsgfmt; ac_word=$2 3914set dummy gmsgfmt; ac_word=$2
3213{ $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
3214$as_echo_n "checking for $ac_word... " >&6; } 3916printf %s "checking for $ac_word... " >&6; }
3215if test "${ac_cv_path_GMSGFMT+set}" = set; then : 3917if test ${ac_cv_path_GMSGFMT+y}
3216 $as_echo_n "(cached) " >&6 3918then :
3217else 3919 printf %s "(cached) " >&6
3920else $as_nop
3218 case $GMSGFMT in 3921 case $GMSGFMT in
3219 [\\/]* | ?:[\\/]*) 3922 [\\/]* | ?:[\\/]*)
3220 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.
3221 ;; 3924 ;;
3222 *) 3925 *)
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH 3927for as_dir in $PATH
3225do 3928do
3226 IFS=$as_save_IFS 3929 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=. 3930 case $as_dir in #(((
3931 '') as_dir=./ ;;
3932 */) ;;
3933 *) as_dir=$as_dir/ ;;
3934 esac
3228 for ac_exec_ext in '' $ac_executable_extensions; do 3935 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3230 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3937 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
3231 $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
3232 break 2 3939 break 2
3233 fi 3940 fi
3234done 3941done
3235 done 3942 done
3236IFS=$as_save_IFS 3943IFS=$as_save_IFS
3239 ;; 3946 ;;
3240esac 3947esac
3241fi 3948fi
3242GMSGFMT=$ac_cv_path_GMSGFMT 3949GMSGFMT=$ac_cv_path_GMSGFMT
3243if test -n "$GMSGFMT"; then 3950if test -n "$GMSGFMT"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3245$as_echo "$GMSGFMT" >&6; } 3952printf "%s\n" "$GMSGFMT" >&6; }
3246else 3953else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; } 3955printf "%s\n" "no" >&6; }
3249fi 3956fi
3250 3957
3251 3958
3252 3959
3253 # 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.
3254set dummy xgettext; ac_word=$2 3961set dummy xgettext; ac_word=$2
3255{ $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
3256$as_echo_n "checking for $ac_word... " >&6; } 3963printf %s "checking for $ac_word... " >&6; }
3257if test "${ac_cv_path_XGETTEXT+set}" = set; then : 3964if test ${ac_cv_path_XGETTEXT+y}
3258 $as_echo_n "(cached) " >&6 3965then :
3259else 3966 printf %s "(cached) " >&6
3967else $as_nop
3260 case "$XGETTEXT" in 3968 case "$XGETTEXT" in
3261 /*) 3969 /*)
3262 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.
3263 ;; 3971 ;;
3264 *) 3972 *)
3278 ;; 3986 ;;
3279esac 3987esac
3280fi 3988fi
3281XGETTEXT="$ac_cv_path_XGETTEXT" 3989XGETTEXT="$ac_cv_path_XGETTEXT"
3282if test "$XGETTEXT" != ":"; then 3990if test "$XGETTEXT" != ":"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3284$as_echo "$XGETTEXT" >&6; } 3992printf "%s\n" "$XGETTEXT" >&6; }
3285else 3993else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; } 3995printf "%s\n" "no" >&6; }
3288fi 3996fi
3289 3997
3290 rm -f messages.po 3998 rm -f messages.po
3291 3999
3292 # 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.
3293set dummy msgmerge; ac_word=$2 4001set dummy msgmerge; ac_word=$2
3294{ $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
3295$as_echo_n "checking for $ac_word... " >&6; } 4003printf %s "checking for $ac_word... " >&6; }
3296if test "${ac_cv_path_MSGMERGE+set}" = set; then : 4004if test ${ac_cv_path_MSGMERGE+y}
3297 $as_echo_n "(cached) " >&6 4005then :
3298else 4006 printf %s "(cached) " >&6
4007else $as_nop
3299 case "$MSGMERGE" in 4008 case "$MSGMERGE" in
3300 /*) 4009 /*)
3301 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.
3302 ;; 4011 ;;
3303 *) 4012 *)
3316 ;; 4025 ;;
3317esac 4026esac
3318fi 4027fi
3319MSGMERGE="$ac_cv_path_MSGMERGE" 4028MSGMERGE="$ac_cv_path_MSGMERGE"
3320if test "$MSGMERGE" != ":"; then 4029if test "$MSGMERGE" != ":"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3322$as_echo "$MSGMERGE" >&6; } 4031printf "%s\n" "$MSGMERGE" >&6; }
3323else 4032else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; } 4034printf "%s\n" "no" >&6; }
3326fi 4035fi
3327 4036
3328 4037
3329 if test "$GMSGFMT" != ":"; then 4038 if test "$GMSGFMT" != ":"; then
3330 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4039 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3331 (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
3332 : ; 4041 : ;
3333 else 4042 else
3334 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4043 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3335 { $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
3336$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; }
3337 GMSGFMT=":" 4046 GMSGFMT=":"
3338 fi 4047 fi
3339 fi 4048 fi
3340 4049
3341 if test "$XGETTEXT" != ":"; then 4050 if test "$XGETTEXT" != ":"; then
3342 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 &&
3343 (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
3344 : ; 4053 : ;
3345 else 4054 else
3346 { $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
3347$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; }
3348 XGETTEXT=":" 4057 XGETTEXT=":"
3349 fi 4058 fi
3350 rm -f messages.po 4059 rm -f messages.po
3351 fi 4060 fi
3352 4061
3367 acl_save_prefix="$prefix" 4076 acl_save_prefix="$prefix"
3368 prefix="$acl_final_prefix" 4077 prefix="$acl_final_prefix"
3369 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4078 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3370 prefix="$acl_save_prefix" 4079 prefix="$acl_save_prefix"
3371 4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
3372DEPDIR="${am__leading_dot}deps" 4090DEPDIR="${am__leading_dot}deps"
3373 4091
3374ac_config_commands="$ac_config_commands depfiles" 4092ac_config_commands="$ac_config_commands depfiles"
3375 4093
3376 4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3377am_make=${MAKE-make} 4095printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3378cat > confinc << 'END' 4096cat > confinc.mk << 'END'
3379am__doit: 4097am__doit:
3380 @echo done 4098 @echo this is the am__doit target >confinc.out
3381.PHONY: am__doit 4099.PHONY: am__doit
3382END 4100END
3383# If we don't find an include directive, just comment out the code.
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3385$as_echo_n "checking for style of include used by $am_make... " >&6; }
3386am__include="#" 4101am__include="#"
3387am__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
3388_am_result=none 4107_am_result=no
3389# First try GNU make style include. 4108for s in GNU BSD; do
3390echo "include confinc" > confmf 4109 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3391# We grep out `Entering directory' and `Leaving directory' 4110 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3392# messages which can occur if `w' ends up in MAKEFLAGS. 4111 ac_status=$?
3393# In particular we don't look at `^make:' because GNU make might 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394# be invoked under some other name (usually "gmake"), in which 4113 (exit $ac_status); }
3395# case it prints its new name instead of `make'. 4114 case $?:`cat confinc.out 2>/dev/null` in #(
3396if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4115 '0:this is the am__doit target') :
3397 am__include=include 4116 case $s in #(
3398 am__quote= 4117 BSD) :
3399 _am_result=GNU 4118 am__include='.include' am__quote='"' ;; #(
3400fi 4119 *) :
3401# Now try BSD make style include. 4120 am__include='include' am__quote='' ;;
4121esac ;; #(
4122 *) :
4123 ;;
4124esac
3402if test "$am__include" = "#"; then 4125 if test "$am__include" != "#"; then
3403 echo '.include "confinc"' > confmf 4126 _am_result="yes ($s style)"
3404 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4127 break
3405 am__include=.include
3406 am__quote="\""
3407 _am_result=BSD
3408 fi 4128 fi
3409fi 4129done
3410
3411
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3413$as_echo "$_am_result" >&6; }
3414rm -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; }
3415 4133
3416# Check whether --enable-dependency-tracking was given. 4134# Check whether --enable-dependency-tracking was given.
3417if test "${enable_dependency_tracking+set}" = set; then : 4135if test ${enable_dependency_tracking+y}
4136then :
3418 enableval=$enable_dependency_tracking; 4137 enableval=$enable_dependency_tracking;
3419fi 4138fi
3420 4139
3421if test "x$enable_dependency_tracking" != xno; then 4140if test "x$enable_dependency_tracking" != xno; then
3422 am_depcomp="$ac_aux_dir/depcomp" 4141 am_depcomp="$ac_aux_dir/depcomp"
3423 AMDEPBACKSLASH='\' 4142 AMDEPBACKSLASH='\'
4143 am__nodep='_no'
3424fi 4144fi
3425
3426
3427if test "x$enable_dependency_tracking" != xno; then 4145 if test "x$enable_dependency_tracking" != xno; then
3428 AMDEP_TRUE= 4146 AMDEP_TRUE=
3429 AMDEP_FALSE='#' 4147 AMDEP_FALSE='#'
3430else 4148else
3431 AMDEP_TRUE='#' 4149 AMDEP_TRUE='#'
3432 AMDEP_FALSE= 4150 AMDEP_FALSE=
3433fi 4151fi
3434
3435 4152
3436 4153
3437ac_ext=c 4154ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS' 4155ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_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'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442if test -n "$ac_tool_prefix"; then 4159if test -n "$ac_tool_prefix"; then
3443 # 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.
3444set dummy ${ac_tool_prefix}gcc; ac_word=$2 4161set dummy ${ac_tool_prefix}gcc; ac_word=$2
3445{ $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
3446$as_echo_n "checking for $ac_word... " >&6; } 4163printf %s "checking for $ac_word... " >&6; }
3447if test "${ac_cv_prog_CC+set}" = set; then : 4164if test ${ac_cv_prog_CC+y}
3448 $as_echo_n "(cached) " >&6 4165then :
3449else 4166 printf %s "(cached) " >&6
4167else $as_nop
3450 if test -n "$CC"; then 4168 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test. 4169 ac_cv_prog_CC="$CC" # Let the user override the test.
3452else 4170else
3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH 4172for as_dir in $PATH
3455do 4173do
3456 IFS=$as_save_IFS 4174 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=. 4175 case $as_dir in #(((
4176 '') as_dir=./ ;;
4177 */) ;;
4178 *) as_dir=$as_dir/ ;;
4179 esac
3458 for ac_exec_ext in '' $ac_executable_extensions; do 4180 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3461 $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
3462 break 2 4184 break 2
3463 fi 4185 fi
3464done 4186done
3465 done 4187 done
3466IFS=$as_save_IFS 4188IFS=$as_save_IFS
3467 4189
3468fi 4190fi
3469fi 4191fi
3470CC=$ac_cv_prog_CC 4192CC=$ac_cv_prog_CC
3471if test -n "$CC"; then 4193if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473$as_echo "$CC" >&6; } 4195printf "%s\n" "$CC" >&6; }
3474else 4196else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476$as_echo "no" >&6; } 4198printf "%s\n" "no" >&6; }
3477fi 4199fi
3478 4200
3479 4201
3480fi 4202fi
3481if test -z "$ac_cv_prog_CC"; then 4203if test -z "$ac_cv_prog_CC"; then
3482 ac_ct_CC=$CC 4204 ac_ct_CC=$CC
3483 # 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.
3484set dummy gcc; ac_word=$2 4206set dummy gcc; ac_word=$2
3485{ $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
3486$as_echo_n "checking for $ac_word... " >&6; } 4208printf %s "checking for $ac_word... " >&6; }
3487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4209if test ${ac_cv_prog_ac_ct_CC+y}
3488 $as_echo_n "(cached) " >&6 4210then :
3489else 4211 printf %s "(cached) " >&6
4212else $as_nop
3490 if test -n "$ac_ct_CC"; then 4213 if test -n "$ac_ct_CC"; then
3491 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.
3492else 4215else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH 4217for as_dir in $PATH
3495do 4218do
3496 IFS=$as_save_IFS 4219 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=. 4220 case $as_dir in #(((
4221 '') as_dir=./ ;;
4222 */) ;;
4223 *) as_dir=$as_dir/ ;;
4224 esac
3498 for ac_exec_ext in '' $ac_executable_extensions; do 4225 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_ac_ct_CC="gcc" 4227 ac_cv_prog_ac_ct_CC="gcc"
3501 $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
3502 break 2 4229 break 2
3503 fi 4230 fi
3504done 4231done
3505 done 4232 done
3506IFS=$as_save_IFS 4233IFS=$as_save_IFS
3507 4234
3508fi 4235fi
3509fi 4236fi
3510ac_ct_CC=$ac_cv_prog_ac_ct_CC 4237ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511if test -n "$ac_ct_CC"; then 4238if test -n "$ac_ct_CC"; then
3512 { $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
3513$as_echo "$ac_ct_CC" >&6; } 4240printf "%s\n" "$ac_ct_CC" >&6; }
3514else 4241else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; } 4243printf "%s\n" "no" >&6; }
3517fi 4244fi
3518 4245
3519 if test "x$ac_ct_CC" = x; then 4246 if test "x$ac_ct_CC" = x; then
3520 CC="" 4247 CC=""
3521 else 4248 else
3522 case $cross_compiling:$ac_tool_warned in 4249 case $cross_compiling:$ac_tool_warned in
3523yes:) 4250yes:)
3524{ $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
3525$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;}
3526ac_tool_warned=yes ;; 4253ac_tool_warned=yes ;;
3527esac 4254esac
3528 CC=$ac_ct_CC 4255 CC=$ac_ct_CC
3529 fi 4256 fi
3530else 4257else
3533 4260
3534if test -z "$CC"; then 4261if test -z "$CC"; then
3535 if test -n "$ac_tool_prefix"; then 4262 if test -n "$ac_tool_prefix"; then
3536 # 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.
3537set dummy ${ac_tool_prefix}cc; ac_word=$2 4264set dummy ${ac_tool_prefix}cc; ac_word=$2
3538{ $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
3539$as_echo_n "checking for $ac_word... " >&6; } 4266printf %s "checking for $ac_word... " >&6; }
3540if test "${ac_cv_prog_CC+set}" = set; then : 4267if test ${ac_cv_prog_CC+y}
3541 $as_echo_n "(cached) " >&6 4268then :
3542else 4269 printf %s "(cached) " >&6
4270else $as_nop
3543 if test -n "$CC"; then 4271 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test. 4272 ac_cv_prog_CC="$CC" # Let the user override the test.
3545else 4273else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH 4275for as_dir in $PATH
3548do 4276do
3549 IFS=$as_save_IFS 4277 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=. 4278 case $as_dir in #(((
4279 '') as_dir=./ ;;
4280 */) ;;
4281 *) as_dir=$as_dir/ ;;
4282 esac
3551 for ac_exec_ext in '' $ac_executable_extensions; do 4283 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="${ac_tool_prefix}cc" 4285 ac_cv_prog_CC="${ac_tool_prefix}cc"
3554 $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
3555 break 2 4287 break 2
3556 fi 4288 fi
3557done 4289done
3558 done 4290 done
3559IFS=$as_save_IFS 4291IFS=$as_save_IFS
3560 4292
3561fi 4293fi
3562fi 4294fi
3563CC=$ac_cv_prog_CC 4295CC=$ac_cv_prog_CC
3564if test -n "$CC"; then 4296if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566$as_echo "$CC" >&6; } 4298printf "%s\n" "$CC" >&6; }
3567else 4299else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; } 4301printf "%s\n" "no" >&6; }
3570fi 4302fi
3571 4303
3572 4304
3573 fi 4305 fi
3574fi 4306fi
3575if test -z "$CC"; then 4307if test -z "$CC"; then
3576 # 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.
3577set dummy cc; ac_word=$2 4309set dummy cc; ac_word=$2
3578{ $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
3579$as_echo_n "checking for $ac_word... " >&6; } 4311printf %s "checking for $ac_word... " >&6; }
3580if test "${ac_cv_prog_CC+set}" = set; then : 4312if test ${ac_cv_prog_CC+y}
3581 $as_echo_n "(cached) " >&6 4313then :
3582else 4314 printf %s "(cached) " >&6
4315else $as_nop
3583 if test -n "$CC"; then 4316 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test. 4317 ac_cv_prog_CC="$CC" # Let the user override the test.
3585else 4318else
3586 ac_prog_rejected=no 4319 ac_prog_rejected=no
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH 4321for as_dir in $PATH
3589do 4322do
3590 IFS=$as_save_IFS 4323 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=. 4324 case $as_dir in #(((
4325 '') as_dir=./ ;;
4326 */) ;;
4327 *) as_dir=$as_dir/ ;;
4328 esac
3592 for ac_exec_ext in '' $ac_executable_extensions; do 4329 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594 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
3595 ac_prog_rejected=yes 4332 ac_prog_rejected=yes
3596 continue 4333 continue
3597 fi 4334 fi
3598 ac_cv_prog_CC="cc" 4335 ac_cv_prog_CC="cc"
3599 $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
3600 break 2 4337 break 2
3601 fi 4338 fi
3602done 4339done
3603 done 4340 done
3604IFS=$as_save_IFS 4341IFS=$as_save_IFS
3610 if test $# != 0; then 4347 if test $# != 0; then
3611 # We chose a different compiler from the bogus one. 4348 # We chose a different compiler from the bogus one.
3612 # 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
3613 # 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.
3614 shift 4351 shift
3615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4352 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3616 fi 4353 fi
3617fi 4354fi
3618fi 4355fi
3619fi 4356fi
3620CC=$ac_cv_prog_CC 4357CC=$ac_cv_prog_CC
3621if test -n "$CC"; then 4358if test -n "$CC"; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3623$as_echo "$CC" >&6; } 4360printf "%s\n" "$CC" >&6; }
3624else 4361else
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; } 4363printf "%s\n" "no" >&6; }
3627fi 4364fi
3628 4365
3629 4366
3630fi 4367fi
3631if test -z "$CC"; then 4368if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then 4369 if test -n "$ac_tool_prefix"; then
3633 for ac_prog in cl.exe 4370 for ac_prog in cl.exe
3634 do 4371 do
3635 # 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.
3636set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3637{ $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
3638$as_echo_n "checking for $ac_word... " >&6; } 4375printf %s "checking for $ac_word... " >&6; }
3639if test "${ac_cv_prog_CC+set}" = set; then : 4376if test ${ac_cv_prog_CC+y}
3640 $as_echo_n "(cached) " >&6 4377then :
3641else 4378 printf %s "(cached) " >&6
4379else $as_nop
3642 if test -n "$CC"; then 4380 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test. 4381 ac_cv_prog_CC="$CC" # Let the user override the test.
3644else 4382else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH 4384for as_dir in $PATH
3647do 4385do
3648 IFS=$as_save_IFS 4386 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=. 4387 case $as_dir in #(((
4388 '') as_dir=./ ;;
4389 */) ;;
4390 *) as_dir=$as_dir/ ;;
4391 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do 4392 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3653 $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
3654 break 2 4396 break 2
3655 fi 4397 fi
3656done 4398done
3657 done 4399 done
3658IFS=$as_save_IFS 4400IFS=$as_save_IFS
3659 4401
3660fi 4402fi
3661fi 4403fi
3662CC=$ac_cv_prog_CC 4404CC=$ac_cv_prog_CC
3663if test -n "$CC"; then 4405if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665$as_echo "$CC" >&6; } 4407printf "%s\n" "$CC" >&6; }
3666else 4408else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668$as_echo "no" >&6; } 4410printf "%s\n" "no" >&6; }
3669fi 4411fi
3670 4412
3671 4413
3672 test -n "$CC" && break 4414 test -n "$CC" && break
3673 done 4415 done
3676 ac_ct_CC=$CC 4418 ac_ct_CC=$CC
3677 for ac_prog in cl.exe 4419 for ac_prog in cl.exe
3678do 4420do
3679 # 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.
3680set dummy $ac_prog; ac_word=$2 4422set dummy $ac_prog; ac_word=$2
3681{ $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
3682$as_echo_n "checking for $ac_word... " >&6; } 4424printf %s "checking for $ac_word... " >&6; }
3683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4425if test ${ac_cv_prog_ac_ct_CC+y}
3684 $as_echo_n "(cached) " >&6 4426then :
3685else 4427 printf %s "(cached) " >&6
4428else $as_nop
3686 if test -n "$ac_ct_CC"; then 4429 if test -n "$ac_ct_CC"; then
3687 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.
3688else 4431else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH 4433for as_dir in $PATH
3691do 4434do
3692 IFS=$as_save_IFS 4435 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=. 4436 case $as_dir in #(((
4437 '') as_dir=./ ;;
4438 */) ;;
4439 *) as_dir=$as_dir/ ;;
4440 esac
3694 for ac_exec_ext in '' $ac_executable_extensions; do 4441 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_ac_ct_CC="$ac_prog" 4443 ac_cv_prog_ac_ct_CC="$ac_prog"
3697 $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
3698 break 2 4445 break 2
3699 fi 4446 fi
3700done 4447done
3701 done 4448 done
3702IFS=$as_save_IFS 4449IFS=$as_save_IFS
3703 4450
3704fi 4451fi
3705fi 4452fi
3706ac_ct_CC=$ac_cv_prog_ac_ct_CC 4453ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707if test -n "$ac_ct_CC"; then 4454if test -n "$ac_ct_CC"; then
3708 { $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
3709$as_echo "$ac_ct_CC" >&6; } 4456printf "%s\n" "$ac_ct_CC" >&6; }
3710else 4457else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; } 4459printf "%s\n" "no" >&6; }
3713fi 4460fi
3714 4461
3715 4462
3716 test -n "$ac_ct_CC" && break 4463 test -n "$ac_ct_CC" && break
3717done 4464done
3719 if test "x$ac_ct_CC" = x; then 4466 if test "x$ac_ct_CC" = x; then
3720 CC="" 4467 CC=""
3721 else 4468 else
3722 case $cross_compiling:$ac_tool_warned in 4469 case $cross_compiling:$ac_tool_warned in
3723yes:) 4470yes:)
3724{ $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
3725$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;}
3726ac_tool_warned=yes ;; 4473ac_tool_warned=yes ;;
3727esac 4474esac
3728 CC=$ac_ct_CC 4475 CC=$ac_ct_CC
3729 fi 4476 fi
3730fi 4477fi
3731 4478
3732fi 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
3733 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
3734 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
3735test -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
3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4587printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3737as_fn_error $? "no acceptable C compiler found in \$PATH 4588as_fn_error $? "no acceptable C compiler found in \$PATH
3738See \`config.log' for more details" "$LINENO" 5 ; } 4589See \`config.log' for more details" "$LINENO" 5; }
3739 4590
3740# Provide some information about the compiler. 4591# Provide some information about the compiler.
3741$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
3742set X $ac_compile 4593set X $ac_compile
3743ac_compiler=$2 4594ac_compiler=$2
3744for ac_option in --version -v -V -qversion; do 4595for ac_option in --version -v -V -qversion -version; do
3745 { { ac_try="$ac_compiler $ac_option >&5" 4596 { { ac_try="$ac_compiler $ac_option >&5"
3746case "(($ac_try" in 4597case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;; 4599 *) ac_try_echo=$ac_try;;
3749esac 4600esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5 4602printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3753 ac_status=$? 4604 ac_status=$?
3754 if test -s conftest.err; then 4605 if test -s conftest.err; then
3755 sed '10a\ 4606 sed '10a\
3756... rest of stderr output deleted ... 4607... rest of stderr output deleted ...
3757 10q' conftest.err >conftest.er1 4608 10q' conftest.err >conftest.er1
3758 cat conftest.er1 >&5 4609 cat conftest.er1 >&5
3759 fi 4610 fi
3760 rm -f conftest.er1 conftest.err 4611 rm -f conftest.er1 conftest.err
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; } 4613 test $ac_status = 0; }
3763done 4614done
3764 4615
3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h. */ 4617/* end confdefs.h. */
3767 4618
3768int 4619int
3769main () 4620main (void)
3770{ 4621{
3771 4622
3772 ; 4623 ;
3773 return 0; 4624 return 0;
3774} 4625}
3776ac_clean_files_save=$ac_clean_files 4627ac_clean_files_save=$ac_clean_files
3777ac_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"
3778# Try to create an executable without -o first, disregard a.out. 4629# Try to create an executable without -o first, disregard a.out.
3779# 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
3780# of exeext. 4631# of exeext.
3781{ $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
3782$as_echo_n "checking whether the C compiler works... " >&6; } 4633printf %s "checking whether the C compiler works... " >&6; }
3783ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4634ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784 4635
3785# The possible output files: 4636# The possible output files:
3786ac_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.*"
3787 4638
3788ac_rmfiles= 4639ac_rmfiles=
3799case "(($ac_try" in 4650case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;; 4652 *) ac_try_echo=$ac_try;;
3802esac 4653esac
3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804$as_echo "$ac_try_echo"; } >&5 4655printf "%s\n" "$ac_try_echo"; } >&5
3805 (eval "$ac_link_default") 2>&5 4656 (eval "$ac_link_default") 2>&5
3806 ac_status=$? 4657 ac_status=$?
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; then : 4659 test $ac_status = 0; }
4660then :
3809 # 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'.
3810# 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'
3811# 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,
3812# 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
3813# Autoconf. 4665# Autoconf.
3820 [ab].out ) 4672 [ab].out )
3821 # We found the default executable, but exeext='' is most 4673 # We found the default executable, but exeext='' is most
3822 # certainly right. 4674 # certainly right.
3823 break;; 4675 break;;
3824 *.* ) 4676 *.* )
3825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4677 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3826 then :; else 4678 then :; else
3827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 fi 4680 fi
3829 # 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
3830 # 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'
3836 break;; 4688 break;;
3837 esac 4689 esac
3838done 4690done
3839test "$ac_cv_exeext" = no && ac_cv_exeext= 4691test "$ac_cv_exeext" = no && ac_cv_exeext=
3840 4692
3841else 4693else $as_nop
3842 ac_file='' 4694 ac_file=''
3843fi 4695fi
3844if test -z "$ac_file"; then : 4696if test -z "$ac_file"
4697then :
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; } 4699printf "%s\n" "no" >&6; }
3847$as_echo "$as_me: failed program was:" >&5 4700printf "%s\n" "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5 4701sed 's/^/| /' conftest.$ac_ext >&5
3849 4702
3850{ { $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
3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3852as_fn_error 77 "C compiler cannot create executables 4705as_fn_error 77 "C compiler cannot create executables
3853See \`config.log' for more details" "$LINENO" 5 ; } 4706See \`config.log' for more details" "$LINENO" 5; }
3854else 4707else $as_nop
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3856$as_echo "yes" >&6; } 4709printf "%s\n" "yes" >&6; }
3857fi 4710fi
3858{ $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
3859$as_echo_n "checking for C compiler default output file name... " >&6; } 4712printf %s "checking for C compiler default output file name... " >&6; }
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3861$as_echo "$ac_file" >&6; } 4714printf "%s\n" "$ac_file" >&6; }
3862ac_exeext=$ac_cv_exeext 4715ac_exeext=$ac_cv_exeext
3863 4716
3864rm -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
3865ac_clean_files=$ac_clean_files_save 4718ac_clean_files=$ac_clean_files_save
3866{ $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
3867$as_echo_n "checking for suffix of executables... " >&6; } 4720printf %s "checking for suffix of executables... " >&6; }
3868if { { ac_try="$ac_link" 4721if { { ac_try="$ac_link"
3869case "(($ac_try" in 4722case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;; 4724 *) ac_try_echo=$ac_try;;
3872esac 4725esac
3873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874$as_echo "$ac_try_echo"; } >&5 4727printf "%s\n" "$ac_try_echo"; } >&5
3875 (eval "$ac_link") 2>&5 4728 (eval "$ac_link") 2>&5
3876 ac_status=$? 4729 ac_status=$?
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then : 4731 test $ac_status = 0; }
4732then :
3879 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3880# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3881# 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
3882# `rm'. 4736# `rm'.
3883for ac_file in conftest.exe conftest conftest.*; do 4737for ac_file in conftest.exe conftest conftest.*; do
3887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 break;; 4742 break;;
3889 * ) break;; 4743 * ) break;;
3890 esac 4744 esac
3891done 4745done
3892else 4746else $as_nop
3893 { { $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
3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3895as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4749as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3896See \`config.log' for more details" "$LINENO" 5 ; } 4750See \`config.log' for more details" "$LINENO" 5; }
3897fi 4751fi
3898rm -f conftest conftest$ac_cv_exeext 4752rm -f conftest conftest$ac_cv_exeext
3899{ $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
3900$as_echo "$ac_cv_exeext" >&6; } 4754printf "%s\n" "$ac_cv_exeext" >&6; }
3901 4755
3902rm -f conftest.$ac_ext 4756rm -f conftest.$ac_ext
3903EXEEXT=$ac_cv_exeext 4757EXEEXT=$ac_cv_exeext
3904ac_exeext=$EXEEXT 4758ac_exeext=$EXEEXT
3905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */ 4760/* end confdefs.h. */
3907#include <stdio.h> 4761#include <stdio.h>
3908int 4762int
3909main () 4763main (void)
3910{ 4764{
3911FILE *f = fopen ("conftest.out", "w"); 4765FILE *f = fopen ("conftest.out", "w");
3912 return ferror (f) || fclose (f) != 0; 4766 return ferror (f) || fclose (f) != 0;
3913 4767
3914 ; 4768 ;
3916} 4770}
3917_ACEOF 4771_ACEOF
3918ac_clean_files="$ac_clean_files conftest.out" 4772ac_clean_files="$ac_clean_files conftest.out"
3919# 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
3920# the compiler is broken, or we cross compile. 4774# the compiler is broken, or we cross compile.
3921{ $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
3922$as_echo_n "checking whether we are cross compiling... " >&6; } 4776printf %s "checking whether we are cross compiling... " >&6; }
3923if test "$cross_compiling" != yes; then 4777if test "$cross_compiling" != yes; then
3924 { { ac_try="$ac_link" 4778 { { ac_try="$ac_link"
3925case "(($ac_try" in 4779case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;; 4781 *) ac_try_echo=$ac_try;;
3928esac 4782esac
3929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930$as_echo "$ac_try_echo"; } >&5 4784printf "%s\n" "$ac_try_echo"; } >&5
3931 (eval "$ac_link") 2>&5 4785 (eval "$ac_link") 2>&5
3932 ac_status=$? 4786 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; } 4788 test $ac_status = 0; }
3935 if { ac_try='./conftest$ac_cv_exeext' 4789 if { ac_try='./conftest$ac_cv_exeext'
3936 { { case "(($ac_try" in 4790 { { case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;; 4792 *) ac_try_echo=$ac_try;;
3939esac 4793esac
3940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941$as_echo "$ac_try_echo"; } >&5 4795printf "%s\n" "$ac_try_echo"; } >&5
3942 (eval "$ac_try") 2>&5 4796 (eval "$ac_try") 2>&5
3943 ac_status=$? 4797 ac_status=$?
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; }; then 4799 test $ac_status = 0; }; }; then
3946 cross_compiling=no 4800 cross_compiling=no
3947 else 4801 else
3948 if test "$cross_compiling" = maybe; then 4802 if test "$cross_compiling" = maybe; then
3949 cross_compiling=yes 4803 cross_compiling=yes
3950 else 4804 else
3951 { { $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
3952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4806printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3953as_fn_error $? "cannot run C compiled programs. 4807as_fn_error 77 "cannot run C compiled programs.
3954If you meant to cross compile, use \`--host'. 4808If you meant to cross compile, use \`--host'.
3955See \`config.log' for more details" "$LINENO" 5 ; } 4809See \`config.log' for more details" "$LINENO" 5; }
3956 fi 4810 fi
3957 fi 4811 fi
3958fi 4812fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3960$as_echo "$cross_compiling" >&6; } 4814printf "%s\n" "$cross_compiling" >&6; }
3961 4815
3962rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4816rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3963ac_clean_files=$ac_clean_files_save 4817ac_clean_files=$ac_clean_files_save
3964{ $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
3965$as_echo_n "checking for suffix of object files... " >&6; } 4819printf %s "checking for suffix of object files... " >&6; }
3966if test "${ac_cv_objext+set}" = set; then : 4820if test ${ac_cv_objext+y}
3967 $as_echo_n "(cached) " >&6 4821then :
3968else 4822 printf %s "(cached) " >&6
4823else $as_nop
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h. */ 4825/* end confdefs.h. */
3971 4826
3972int 4827int
3973main () 4828main (void)
3974{ 4829{
3975 4830
3976 ; 4831 ;
3977 return 0; 4832 return 0;
3978} 4833}
3982case "(($ac_try" in 4837case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;; 4839 *) ac_try_echo=$ac_try;;
3985esac 4840esac
3986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987$as_echo "$ac_try_echo"; } >&5 4842printf "%s\n" "$ac_try_echo"; } >&5
3988 (eval "$ac_compile") 2>&5 4843 (eval "$ac_compile") 2>&5
3989 ac_status=$? 4844 ac_status=$?
3990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }; then : 4846 test $ac_status = 0; }
4847then :
3992 for ac_file in conftest.o conftest.obj conftest.*; do 4848 for ac_file in conftest.o conftest.obj conftest.*; do
3993 test -f "$ac_file" || continue; 4849 test -f "$ac_file" || continue;
3994 case $ac_file in 4850 case $ac_file in
3995 *.$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 ) ;;
3996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3997 break;; 4853 break;;
3998 esac 4854 esac
3999done 4855done
4000else 4856else $as_nop
4001 $as_echo "$as_me: failed program was:" >&5 4857 printf "%s\n" "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5 4858sed 's/^/| /' conftest.$ac_ext >&5
4003 4859
4004{ { $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
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4861printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "cannot compute suffix of object files: cannot compile 4862as_fn_error $? "cannot compute suffix of object files: cannot compile
4007See \`config.log' for more details" "$LINENO" 5 ; } 4863See \`config.log' for more details" "$LINENO" 5; }
4008fi 4864fi
4009rm -f conftest.$ac_cv_objext conftest.$ac_ext 4865rm -f conftest.$ac_cv_objext conftest.$ac_ext
4010fi 4866fi
4011{ $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
4012$as_echo "$ac_cv_objext" >&6; } 4868printf "%s\n" "$ac_cv_objext" >&6; }
4013OBJEXT=$ac_cv_objext 4869OBJEXT=$ac_cv_objext
4014ac_objext=$OBJEXT 4870ac_objext=$OBJEXT
4015{ $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
4016$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4872printf %s "checking whether the compiler supports GNU C... " >&6; }
4017if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4873if test ${ac_cv_c_compiler_gnu+y}
4018 $as_echo_n "(cached) " >&6 4874then :
4019else 4875 printf %s "(cached) " >&6
4876else $as_nop
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */ 4878/* end confdefs.h. */
4022 4879
4023int 4880int
4024main () 4881main (void)
4025{ 4882{
4026#ifndef __GNUC__ 4883#ifndef __GNUC__
4027 choke me 4884 choke me
4028#endif 4885#endif
4029 4886
4030 ; 4887 ;
4031 return 0; 4888 return 0;
4032} 4889}
4033_ACEOF 4890_ACEOF
4034if ac_fn_c_try_compile "$LINENO"; then : 4891if ac_fn_c_try_compile "$LINENO"
4892then :
4035 ac_compiler_gnu=yes 4893 ac_compiler_gnu=yes
4036else 4894else $as_nop
4037 ac_compiler_gnu=no 4895 ac_compiler_gnu=no
4038fi 4896fi
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4040ac_cv_c_compiler_gnu=$ac_compiler_gnu 4898ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041 4899
4042fi 4900fi
4043{ $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
4044$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
4045if test $ac_compiler_gnu = yes; then 4905if test $ac_compiler_gnu = yes; then
4046 GCC=yes 4906 GCC=yes
4047else 4907else
4048 GCC= 4908 GCC=
4049fi 4909fi
4050ac_test_CFLAGS=${CFLAGS+set} 4910ac_test_CFLAGS=${CFLAGS+y}
4051ac_save_CFLAGS=$CFLAGS 4911ac_save_CFLAGS=$CFLAGS
4052{ $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
4053$as_echo_n "checking whether $CC accepts -g... " >&6; } 4913printf %s "checking whether $CC accepts -g... " >&6; }
4054if test "${ac_cv_prog_cc_g+set}" = set; then : 4914if test ${ac_cv_prog_cc_g+y}
4055 $as_echo_n "(cached) " >&6 4915then :
4056else 4916 printf %s "(cached) " >&6
4917else $as_nop
4057 ac_save_c_werror_flag=$ac_c_werror_flag 4918 ac_save_c_werror_flag=$ac_c_werror_flag
4058 ac_c_werror_flag=yes 4919 ac_c_werror_flag=yes
4059 ac_cv_prog_cc_g=no 4920 ac_cv_prog_cc_g=no
4060 CFLAGS="-g" 4921 CFLAGS="-g"
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h. */ 4923/* end confdefs.h. */
4063 4924
4064int 4925int
4065main () 4926main (void)
4066{ 4927{
4067 4928
4068 ; 4929 ;
4069 return 0; 4930 return 0;
4070} 4931}
4071_ACEOF 4932_ACEOF
4072if ac_fn_c_try_compile "$LINENO"; then : 4933if ac_fn_c_try_compile "$LINENO"
4934then :
4073 ac_cv_prog_cc_g=yes 4935 ac_cv_prog_cc_g=yes
4074else 4936else $as_nop
4075 CFLAGS="" 4937 CFLAGS=""
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077/* end confdefs.h. */ 4939/* end confdefs.h. */
4078 4940
4079int 4941int
4080main () 4942main (void)
4081{ 4943{
4082 4944
4083 ; 4945 ;
4084 return 0; 4946 return 0;
4085} 4947}
4086_ACEOF 4948_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then : 4949if ac_fn_c_try_compile "$LINENO"
4950then :
4088 4951
4089else 4952else $as_nop
4090 ac_c_werror_flag=$ac_save_c_werror_flag 4953 ac_c_werror_flag=$ac_save_c_werror_flag
4091 CFLAGS="-g" 4954 CFLAGS="-g"
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h. */ 4956/* end confdefs.h. */
4094 4957
4095int 4958int
4096main () 4959main (void)
4097{ 4960{
4098 4961
4099 ; 4962 ;
4100 return 0; 4963 return 0;
4101} 4964}
4102_ACEOF 4965_ACEOF
4103if ac_fn_c_try_compile "$LINENO"; then : 4966if ac_fn_c_try_compile "$LINENO"
4967then :
4104 ac_cv_prog_cc_g=yes 4968 ac_cv_prog_cc_g=yes
4105fi 4969fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107fi 4971fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4109fi 4973fi
4110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4111 ac_c_werror_flag=$ac_save_c_werror_flag 4975 ac_c_werror_flag=$ac_save_c_werror_flag
4112fi 4976fi
4113{ $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
4114$as_echo "$ac_cv_prog_cc_g" >&6; } 4978printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4115if test "$ac_test_CFLAGS" = set; then 4979if test $ac_test_CFLAGS; then
4116 CFLAGS=$ac_save_CFLAGS 4980 CFLAGS=$ac_save_CFLAGS
4117elif test $ac_cv_prog_cc_g = yes; then 4981elif test $ac_cv_prog_cc_g = yes; then
4118 if test "$GCC" = yes; then 4982 if test "$GCC" = yes; then
4119 CFLAGS="-g -O2" 4983 CFLAGS="-g -O2"
4120 else 4984 else
4125 CFLAGS="-O2" 4989 CFLAGS="-O2"
4126 else 4990 else
4127 CFLAGS= 4991 CFLAGS=
4128 fi 4992 fi
4129fi 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 :
4130{ $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
4131$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5090printf %s "checking for $CC option to enable C89 features... " >&6; }
4132if test "${ac_cv_prog_cc_c89+set}" = set; then : 5091if test ${ac_cv_prog_cc_c89+y}
4133 $as_echo_n "(cached) " >&6 5092then :
4134else 5093 printf %s "(cached) " >&6
5094else $as_nop
4135 ac_cv_prog_cc_c89=no 5095 ac_cv_prog_cc_c89=no
4136ac_save_CC=$CC 5096ac_save_CC=$CC
4137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h. */ 5098/* end confdefs.h. */
4139#include <stdarg.h> 5099$ac_c_conftest_c89_program
4140#include <stdio.h>
4141#include <sys/types.h>
4142#include <sys/stat.h>
4143/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4144struct buf { int x; };
4145FILE * (*rcsopen) (struct buf *, struct stat *, int);
4146static char *e (p, i)
4147 char **p;
4148 int i;
4149{
4150 return p[i];
4151}
4152static char *f (char * (*g) (char **, int), char **p, ...)
4153{
4154 char *s;
4155 va_list v;
4156 va_start (v,p);
4157 s = g (p, va_arg (v,int));
4158 va_end (v);
4159 return s;
4160}
4161
4162/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4163 function prototypes and stuff, but not '\xHH' hex character constants.
4164 These don't provoke an error unfortunately, instead are silently treated
4165 as 'x'. The following induces an error, until -std is added to get
4166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4167 array size at least. It's necessary to write '\x00'==0 to get something
4168 that's true only with -std. */
4169int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4170
4171/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4172 inside strings and character constants. */
4173#define FOO(x) 'x'
4174int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4175
4176int test (int i, double x);
4177struct s1 {int (*f) (int a);};
4178struct s2 {int (*f) (double a);};
4179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4180int argc;
4181char **argv;
4182int
4183main ()
4184{
4185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4186 ;
4187 return 0;
4188}
4189_ACEOF 5100_ACEOF
4190for 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__"
4191 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4192do 5102do
4193 CC="$ac_save_CC $ac_arg" 5103 CC="$ac_save_CC $ac_arg"
4194 if ac_fn_c_try_compile "$LINENO"; then : 5104 if ac_fn_c_try_compile "$LINENO"
5105then :
4195 ac_cv_prog_cc_c89=$ac_arg 5106 ac_cv_prog_cc_c89=$ac_arg
4196fi 5107fi
4197rm -f core conftest.err conftest.$ac_objext 5108rm -f core conftest.err conftest.$ac_objext conftest.beam
4198 test "x$ac_cv_prog_cc_c89" != "xno" && break 5109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4199done 5110done
4200rm -f conftest.$ac_ext 5111rm -f conftest.$ac_ext
4201CC=$ac_save_CC 5112CC=$ac_save_CC
4202
4203fi 5113fi
4204# AC_CACHE_VAL 5114
4205case "x$ac_cv_prog_cc_c89" in 5115if test "x$ac_cv_prog_cc_c89" = xno
4206 x) 5116then :
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208$as_echo "none needed" >&6; } ;;
4209 xno)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4211$as_echo "unsupported" >&6; } ;; 5118printf "%s\n" "unsupported" >&6; }
4212 *) 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; }
4213 CC="$CC $ac_cv_prog_cc_c89" 5127 CC="$CC $ac_cv_prog_cc_c89"
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5128fi
4215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4216esac 5130 ac_prog_cc_stdc=c89
4217if test "x$ac_cv_prog_cc_c89" != xno; then : 5131fi
4218
4219fi 5132fi
4220 5133
4221ac_ext=c 5134ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS' 5135ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_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'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu 5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 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
4227depcc="$CC" am_compiler_list= 5201depcc="$CC" am_compiler_list=
4228 5202
4229{ $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
4230$as_echo_n "checking dependency style of $depcc... " >&6; } 5204printf %s "checking dependency style of $depcc... " >&6; }
4231if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5205if test ${am_cv_CC_dependencies_compiler_type+y}
4232 $as_echo_n "(cached) " >&6 5206then :
4233else 5207 printf %s "(cached) " >&6
5208else $as_nop
4234 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4235 # 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
4236 # 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
4237 # 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
4238 # 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
4239 # in D'. 5214 # in D".
5215 rm -rf conftest.dir
4240 mkdir conftest.dir 5216 mkdir conftest.dir
4241 # 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
4242 # using a relative directory. 5218 # using a relative directory.
4243 cp "$am_depcomp" conftest.dir 5219 cp "$am_depcomp" conftest.dir
4244 cd conftest.dir 5220 cd conftest.dir
4252 5228
4253 am_cv_CC_dependencies_compiler_type=none 5229 am_cv_CC_dependencies_compiler_type=none
4254 if test "$am_compiler_list" = ""; then 5230 if test "$am_compiler_list" = ""; then
4255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5231 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4256 fi 5232 fi
5233 am__universal=false
5234 case " $depcc " in #(
5235 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5236 esac
5237
4257 for depmode in $am_compiler_list; do 5238 for depmode in $am_compiler_list; do
4258 # Setup a source with many dependencies, because some compilers 5239 # Setup a source with many dependencies, because some compilers
4259 # like to wrap large dependency lists on column 80 (with \), and 5240 # like to wrap large dependency lists on column 80 (with \), and
4260 # we should not choose a depcomp mode which is confused by this. 5241 # we should not choose a depcomp mode which is confused by this.
4261 # 5242 #
4263 # overwrite some of them when testing with obscure command lines. 5244 # overwrite some of them when testing with obscure command lines.
4264 # This happens at least with the AIX C compiler. 5245 # This happens at least with the AIX C compiler.
4265 : > sub/conftest.c 5246 : > sub/conftest.c
4266 for i in 1 2 3 4 5 6; do 5247 for i in 1 2 3 4 5 6; do
4267 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5248 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4268 : > sub/conftst$i.h 5249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5250 # Solaris 10 /bin/sh.
5251 echo '/* dummy */' > sub/conftst$i.h
4269 done 5252 done
4270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4271 5254
5255 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5256 # mode. It turns out that the SunPro C++ compiler does not properly
5257 # handle '-M -o', and we need to detect this. Also, some Intel
5258 # versions had trouble with output in subdirs.
5259 am__obj=sub/conftest.${OBJEXT-o}
5260 am__minus_obj="-o $am__obj"
4272 case $depmode in 5261 case $depmode in
5262 gcc)
5263 # This depmode causes a compiler race in universal mode.
5264 test "$am__universal" = false || continue
5265 ;;
4273 nosideeffect) 5266 nosideeffect)
4274 # 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
4275 # only be used when explicitly requested 5268 # only be used when explicitly requested.
4276 if test "x$enable_dependency_tracking" = xyes; then 5269 if test "x$enable_dependency_tracking" = xyes; then
4277 continue 5270 continue
4278 else 5271 else
4279 break 5272 break
4280 fi 5273 fi
4281 ;; 5274 ;;
5275 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5276 # This compiler won't grok '-c -o', but also, the minuso test has
5277 # not run yet. These depmodes are late enough in the game, and
5278 # so weak that their functioning should not be impacted.
5279 am__obj=conftest.${OBJEXT-o}
5280 am__minus_obj=
5281 ;;
4282 none) break ;; 5282 none) break ;;
4283 esac 5283 esac
4284 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4285 # mode. It turns out that the SunPro C++ compiler does not properly
4286 # handle `-M -o', and we need to detect this.
4287 if depmode=$depmode \ 5284 if depmode=$depmode \
4288 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5285 source=sub/conftest.c object=$am__obj \
4289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4290 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5287 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4291 >/dev/null 2>conftest.err && 5288 >/dev/null 2>conftest.err &&
5289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5291 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295 # icc doesn't choke on unknown options, it will just issue warnings 5293 # icc doesn't choke on unknown options, it will just issue warnings
4296 # (even with -Werror). So we grep stderr for any message 5294 # or remarks (even with -Werror). So we grep stderr for any message
4297 # that says an option was ignored. 5295 # that says an option was ignored or not supported.
5296 # When given -MP, icc 7.0 and 7.1 complain thusly:
5297 # icc: Command line warning: ignoring option '-M'; no argument required
5298 # The diagnosis changed in icc 8.0:
5299 # icc: Command line remark: option '-MP' not supported
5300 if (grep 'ignoring option' conftest.err ||
4298 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 5301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4299 am_cv_CC_dependencies_compiler_type=$depmode 5302 am_cv_CC_dependencies_compiler_type=$depmode
4300 break 5303 break
4301 fi 5304 fi
4302 fi 5305 fi
4303 done 5306 done
4307else 5310else
4308 am_cv_CC_dependencies_compiler_type=none 5311 am_cv_CC_dependencies_compiler_type=none
4309fi 5312fi
4310 5313
4311fi 5314fi
4312{ $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
4313$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5316printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4314CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4315 5318
4316
4317
4318if 5319 if
4319 test "x$enable_dependency_tracking" != xno \ 5320 test "x$enable_dependency_tracking" != xno \
4320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4321 am__fastdepCC_TRUE= 5322 am__fastdepCC_TRUE=
4322 am__fastdepCC_FALSE='#' 5323 am__fastdepCC_FALSE='#'
4323else 5324else
4326fi 5327fi
4327 5328
4328 5329
4329 5330
4330# Check whether --with-gnu-ld was given. 5331# Check whether --with-gnu-ld was given.
4331if test "${with_gnu_ld+set}" = set; then : 5332if test ${with_gnu_ld+y}
5333then :
4332 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5334 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4333else 5335else $as_nop
4334 with_gnu_ld=no 5336 with_gnu_ld=no
4335fi 5337fi
4336 5338
4337ac_prog=ld 5339ac_prog=ld
4338if test "$GCC" = yes; then 5340if test "$GCC" = yes; then
4339 # Check if gcc -print-prog-name=ld gives a path. 5341 # Check if gcc -print-prog-name=ld gives a path.
4340 { $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
4341$as_echo_n "checking for ld used by GCC... " >&6; } 5343printf %s "checking for ld used by GCC... " >&6; }
4342 case $host in 5344 case $host in
4343 *-*-mingw*) 5345 *-*-mingw*)
4344 # gcc leaves a trailing carriage return which upsets mingw 5346 # gcc leaves a trailing carriage return which upsets mingw
4345 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'` ;;
4346 *) 5348 *)
4365 # 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.
4366 with_gnu_ld=unknown 5368 with_gnu_ld=unknown
4367 ;; 5369 ;;
4368 esac 5370 esac
4369elif test "$with_gnu_ld" = yes; then 5371elif test "$with_gnu_ld" = yes; then
4370 { $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
4371$as_echo_n "checking for GNU ld... " >&6; } 5373printf %s "checking for GNU ld... " >&6; }
4372else 5374else
4373 { $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
4374$as_echo_n "checking for non-GNU ld... " >&6; } 5376printf %s "checking for non-GNU ld... " >&6; }
4375fi 5377fi
4376if test "${acl_cv_path_LD+set}" = set; then : 5378if test ${acl_cv_path_LD+y}
4377 $as_echo_n "(cached) " >&6 5379then :
4378else 5380 printf %s "(cached) " >&6
5381else $as_nop
4379 if test -z "$LD"; then 5382 if test -z "$LD"; then
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4381 for ac_dir in $PATH; do 5384 for ac_dir in $PATH; do
4382 test -z "$ac_dir" && ac_dir=. 5385 test -z "$ac_dir" && ac_dir=.
4383 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
4398fi 5401fi
4399fi 5402fi
4400 5403
4401LD="$acl_cv_path_LD" 5404LD="$acl_cv_path_LD"
4402if test -n "$LD"; then 5405if test -n "$LD"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4404$as_echo "$LD" >&6; } 5407printf "%s\n" "$LD" >&6; }
4405else 5408else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; } 5410printf "%s\n" "no" >&6; }
4408fi 5411fi
4409test -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
4410{ $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
4411$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5414printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4412if test "${acl_cv_prog_gnu_ld+set}" = set; then : 5415if test ${acl_cv_prog_gnu_ld+y}
4413 $as_echo_n "(cached) " >&6 5416then :
4414else 5417 printf %s "(cached) " >&6
5418else $as_nop
4415 # 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.
4416if $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
4417 acl_cv_prog_gnu_ld=yes 5421 acl_cv_prog_gnu_ld=yes
4418else 5422else
4419 acl_cv_prog_gnu_ld=no 5423 acl_cv_prog_gnu_ld=no
4420fi 5424fi
4421fi 5425fi
4422{ $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
4423$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5427printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
4424with_gnu_ld=$acl_cv_prog_gnu_ld 5428with_gnu_ld=$acl_cv_prog_gnu_ld
4425 5429
4426 5430
4427 5431
4428 { $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
4429$as_echo_n "checking for shared library run path origin... " >&6; } 5433printf %s "checking for shared library run path origin... " >&6; }
4430if test "${acl_cv_rpath+set}" = set; then : 5434if test ${acl_cv_rpath+y}
4431 $as_echo_n "(cached) " >&6 5435then :
4432else 5436 printf %s "(cached) " >&6
5437else $as_nop
4433 5438
4434 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" \
4435 ${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
4436 . ./conftest.sh 5441 . ./conftest.sh
4437 rm -f ./conftest.sh 5442 rm -f ./conftest.sh
4438 acl_cv_rpath=done 5443 acl_cv_rpath=done
4439 5444
4440fi 5445fi
4441{ $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
4442$as_echo "$acl_cv_rpath" >&6; } 5447printf "%s\n" "$acl_cv_rpath" >&6; }
4443 wl="$acl_cv_wl" 5448 wl="$acl_cv_wl"
4444 libext="$acl_cv_libext" 5449 libext="$acl_cv_libext"
4445 shlibext="$acl_cv_shlibext" 5450 shlibext="$acl_cv_shlibext"
4446 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5451 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4447 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5452 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4448 hardcode_direct="$acl_cv_hardcode_direct" 5453 hardcode_direct="$acl_cv_hardcode_direct"
4449 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5454 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4450 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"
4451 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"
4452 # Check whether --enable-rpath was given. 5457 # Check whether --enable-rpath was given.
4453if test "${enable_rpath+set}" = set; then : 5458if test ${enable_rpath+y}
5459then :
4454 enableval=$enable_rpath; : 5460 enableval=$enable_rpath; :
4455else 5461else $as_nop
4456 enable_rpath=yes 5462 enable_rpath=yes
4457fi 5463fi
4458 5464
4459 5465
4460 5466
4476 exec_prefix="$acl_save_exec_prefix" 5482 exec_prefix="$acl_save_exec_prefix"
4477 prefix="$acl_save_prefix" 5483 prefix="$acl_save_prefix"
4478 5484
4479 5485
4480# Check whether --with-libiconv-prefix was given. 5486# Check whether --with-libiconv-prefix was given.
4481if test "${with_libiconv_prefix+set}" = set; then : 5487if test ${with_libiconv_prefix+y}
5488then :
4482 withval=$with_libiconv_prefix; 5489 withval=$with_libiconv_prefix;
4483 if test "X$withval" = "Xno"; then 5490 if test "X$withval" = "Xno"; then
4484 use_additional=no 5491 use_additional=no
4485 else 5492 else
4486 if test "X$withval" = "X"; then 5493 if test "X$withval" = "X"; then
4854 5861
4855 5862
4856 5863
4857 5864
4858 5865
4859 { $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
4860$as_echo_n "checking whether NLS is requested... " >&6; } 5867printf %s "checking whether NLS is requested... " >&6; }
4861 # Check whether --enable-nls was given. 5868 # Check whether --enable-nls was given.
4862if test "${enable_nls+set}" = set; then : 5869if test ${enable_nls+y}
5870then :
4863 enableval=$enable_nls; USE_NLS=$enableval 5871 enableval=$enable_nls; USE_NLS=$enableval
4864else 5872else $as_nop
4865 USE_NLS=yes 5873 USE_NLS=yes
4866fi 5874fi
4867 5875
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4869$as_echo "$USE_NLS" >&6; } 5877printf "%s\n" "$USE_NLS" >&6; }
4870 5878
4871 5879
4872 5880
4873 LIBINTL= 5881 LIBINTL=
4874 LTLIBINTL= 5882 LTLIBINTL=
4880 5888
4881 5889
4882 5890
4883 5891
4884 5892
4885 { $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
4886$as_echo_n "checking for GNU gettext in libc... " >&6; } 5894printf %s "checking for GNU gettext in libc... " >&6; }
4887if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : 5895if test ${gt_cv_func_gnugettext1_libc+y}
4888 $as_echo_n "(cached) " >&6 5896then :
4889else 5897 printf %s "(cached) " >&6
5898else $as_nop
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h. */ 5900/* end confdefs.h. */
4892#include <libintl.h> 5901#include <libintl.h>
4893extern int _nl_msg_cat_cntr; 5902extern int _nl_msg_cat_cntr;
4894extern int *_nl_domain_bindings; 5903extern int *_nl_domain_bindings;
4895int 5904int
4896main () 5905main (void)
4897{ 5906{
4898bindtextdomain ("", ""); 5907bindtextdomain ("", "");
4899return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 5908return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4900 ; 5909 ;
4901 return 0; 5910 return 0;
4902} 5911}
4903_ACEOF 5912_ACEOF
4904if ac_fn_c_try_link "$LINENO"; then : 5913if ac_fn_c_try_link "$LINENO"
5914then :
4905 gt_cv_func_gnugettext1_libc=yes 5915 gt_cv_func_gnugettext1_libc=yes
4906else 5916else $as_nop
4907 gt_cv_func_gnugettext1_libc=no 5917 gt_cv_func_gnugettext1_libc=no
4908fi 5918fi
4909rm -f core conftest.err conftest.$ac_objext \ 5919rm -f core conftest.err conftest.$ac_objext conftest.beam \
4910 conftest$ac_exeext conftest.$ac_ext 5920 conftest$ac_exeext conftest.$ac_ext
4911fi 5921fi
4912{ $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
4913$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 5923printf "%s\n" "$gt_cv_func_gnugettext1_libc" >&6; }
4914 5924
4915 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 5925 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4916 5926
4917 5927
4918 5928
4941 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5951 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4942 fi 5952 fi
4943 done 5953 done
4944 5954
4945 5955
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4947$as_echo_n "checking for iconv... " >&6; } 5957printf %s "checking for iconv... " >&6; }
4948if test "${am_cv_func_iconv+set}" = set; then : 5958if test ${am_cv_func_iconv+y}
4949 $as_echo_n "(cached) " >&6 5959then :
4950else 5960 printf %s "(cached) " >&6
5961else $as_nop
4951 5962
4952 am_cv_func_iconv="no, consider installing GNU libiconv" 5963 am_cv_func_iconv="no, consider installing GNU libiconv"
4953 am_cv_lib_iconv=no 5964 am_cv_lib_iconv=no
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h. */ 5966/* end confdefs.h. */
4956#include <stdlib.h> 5967#include <stdlib.h>
4957#include <iconv.h> 5968#include <iconv.h>
4958int 5969int
4959main () 5970main (void)
4960{ 5971{
4961iconv_t cd = iconv_open("",""); 5972iconv_t cd = iconv_open("","");
4962 iconv(cd,NULL,NULL,NULL,NULL); 5973 iconv(cd,NULL,NULL,NULL,NULL);
4963 iconv_close(cd); 5974 iconv_close(cd);
4964 ; 5975 ;
4965 return 0; 5976 return 0;
4966} 5977}
4967_ACEOF 5978_ACEOF
4968if ac_fn_c_try_link "$LINENO"; then : 5979if ac_fn_c_try_link "$LINENO"
5980then :
4969 am_cv_func_iconv=yes 5981 am_cv_func_iconv=yes
4970fi 5982fi
4971rm -f core conftest.err conftest.$ac_objext \ 5983rm -f core conftest.err conftest.$ac_objext conftest.beam \
4972 conftest$ac_exeext conftest.$ac_ext 5984 conftest$ac_exeext conftest.$ac_ext
4973 if test "$am_cv_func_iconv" != yes; then 5985 if test "$am_cv_func_iconv" != yes; then
4974 am_save_LIBS="$LIBS" 5986 am_save_LIBS="$LIBS"
4975 LIBS="$LIBS $LIBICONV" 5987 LIBS="$LIBS $LIBICONV"
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h. */ 5989/* end confdefs.h. */
4978#include <stdlib.h> 5990#include <stdlib.h>
4979#include <iconv.h> 5991#include <iconv.h>
4980int 5992int
4981main () 5993main (void)
4982{ 5994{
4983iconv_t cd = iconv_open("",""); 5995iconv_t cd = iconv_open("","");
4984 iconv(cd,NULL,NULL,NULL,NULL); 5996 iconv(cd,NULL,NULL,NULL,NULL);
4985 iconv_close(cd); 5997 iconv_close(cd);
4986 ; 5998 ;
4987 return 0; 5999 return 0;
4988} 6000}
4989_ACEOF 6001_ACEOF
4990if ac_fn_c_try_link "$LINENO"; then : 6002if ac_fn_c_try_link "$LINENO"
6003then :
4991 am_cv_lib_iconv=yes 6004 am_cv_lib_iconv=yes
4992 am_cv_func_iconv=yes 6005 am_cv_func_iconv=yes
4993fi 6006fi
4994rm -f core conftest.err conftest.$ac_objext \ 6007rm -f core conftest.err conftest.$ac_objext conftest.beam \
4995 conftest$ac_exeext conftest.$ac_ext 6008 conftest$ac_exeext conftest.$ac_ext
4996 LIBS="$am_save_LIBS" 6009 LIBS="$am_save_LIBS"
4997 fi 6010 fi
4998 6011
4999fi 6012fi
5000{ $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
5001$as_echo "$am_cv_func_iconv" >&6; } 6014printf "%s\n" "$am_cv_func_iconv" >&6; }
5002 if test "$am_cv_func_iconv" = yes; then 6015 if test "$am_cv_func_iconv" = yes; then
5003 6016
5004$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6017printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
5005 6018
5006 fi 6019 fi
5007 if test "$am_cv_lib_iconv" = yes; then 6020 if test "$am_cv_lib_iconv" = yes; then
5008 { $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
5009$as_echo_n "checking how to link with libiconv... " >&6; } 6022printf %s "checking how to link with libiconv... " >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5011$as_echo "$LIBICONV" >&6; } 6024printf "%s\n" "$LIBICONV" >&6; }
5012 else 6025 else
5013 CPPFLAGS="$am_save_CPPFLAGS" 6026 CPPFLAGS="$am_save_CPPFLAGS"
5014 LIBICONV= 6027 LIBICONV=
5015 LTLIBICONV= 6028 LTLIBICONV=
5016 fi 6029 fi
5033 exec_prefix="$acl_save_exec_prefix" 6046 exec_prefix="$acl_save_exec_prefix"
5034 prefix="$acl_save_prefix" 6047 prefix="$acl_save_prefix"
5035 6048
5036 6049
5037# Check whether --with-libintl-prefix was given. 6050# Check whether --with-libintl-prefix was given.
5038if test "${with_libintl_prefix+set}" = set; then : 6051if test ${with_libintl_prefix+y}
6052then :
5039 withval=$with_libintl_prefix; 6053 withval=$with_libintl_prefix;
5040 if test "X$withval" = "Xno"; then 6054 if test "X$withval" = "Xno"; then
5041 use_additional=no 6055 use_additional=no
5042 else 6056 else
5043 if test "X$withval" = "X"; then 6057 if test "X$withval" = "X"; then
5394 for found_dir in $ltrpathdirs; do 6408 for found_dir in $ltrpathdirs; do
5395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5396 done 6410 done
5397 fi 6411 fi
5398 6412
5399 { $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
5400$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6414printf %s "checking for GNU gettext in libintl... " >&6; }
5401if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : 6415if test ${gt_cv_func_gnugettext1_libintl+y}
5402 $as_echo_n "(cached) " >&6 6416then :
5403else 6417 printf %s "(cached) " >&6
6418else $as_nop
5404 gt_save_CPPFLAGS="$CPPFLAGS" 6419 gt_save_CPPFLAGS="$CPPFLAGS"
5405 CPPFLAGS="$CPPFLAGS $INCINTL" 6420 CPPFLAGS="$CPPFLAGS $INCINTL"
5406 gt_save_LIBS="$LIBS" 6421 gt_save_LIBS="$LIBS"
5407 LIBS="$LIBS $LIBINTL" 6422 LIBS="$LIBS $LIBINTL"
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413#ifdef __cplusplus 6428#ifdef __cplusplus
5414"C" 6429"C"
5415#endif 6430#endif
5416const char *_nl_expand_alias (); 6431const char *_nl_expand_alias ();
5417int 6432int
5418main () 6433main (void)
5419{ 6434{
5420bindtextdomain ("", ""); 6435bindtextdomain ("", "");
5421return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6436return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5422 ; 6437 ;
5423 return 0; 6438 return 0;
5424} 6439}
5425_ACEOF 6440_ACEOF
5426if ac_fn_c_try_link "$LINENO"; then : 6441if ac_fn_c_try_link "$LINENO"
6442then :
5427 gt_cv_func_gnugettext1_libintl=yes 6443 gt_cv_func_gnugettext1_libintl=yes
5428else 6444else $as_nop
5429 gt_cv_func_gnugettext1_libintl=no 6445 gt_cv_func_gnugettext1_libintl=no
5430fi 6446fi
5431rm -f core conftest.err conftest.$ac_objext \ 6447rm -f core conftest.err conftest.$ac_objext conftest.beam \
5432 conftest$ac_exeext conftest.$ac_ext 6448 conftest$ac_exeext conftest.$ac_ext
5433 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
5434 LIBS="$LIBS $LIBICONV" 6450 LIBS="$LIBS $LIBICONV"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */ 6452/* end confdefs.h. */
5440#ifdef __cplusplus 6456#ifdef __cplusplus
5441"C" 6457"C"
5442#endif 6458#endif
5443const char *_nl_expand_alias (); 6459const char *_nl_expand_alias ();
5444int 6460int
5445main () 6461main (void)
5446{ 6462{
5447bindtextdomain ("", ""); 6463bindtextdomain ("", "");
5448return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 6464return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5449 ; 6465 ;
5450 return 0; 6466 return 0;
5451} 6467}
5452_ACEOF 6468_ACEOF
5453if ac_fn_c_try_link "$LINENO"; then : 6469if ac_fn_c_try_link "$LINENO"
6470then :
5454 LIBINTL="$LIBINTL $LIBICONV" 6471 LIBINTL="$LIBINTL $LIBICONV"
5455 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6472 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5456 gt_cv_func_gnugettext1_libintl=yes 6473 gt_cv_func_gnugettext1_libintl=yes
5457 6474
5458fi 6475fi
5459rm -f core conftest.err conftest.$ac_objext \ 6476rm -f core conftest.err conftest.$ac_objext conftest.beam \
5460 conftest$ac_exeext conftest.$ac_ext 6477 conftest$ac_exeext conftest.$ac_ext
5461 fi 6478 fi
5462 CPPFLAGS="$gt_save_CPPFLAGS" 6479 CPPFLAGS="$gt_save_CPPFLAGS"
5463 LIBS="$gt_save_LIBS" 6480 LIBS="$gt_save_LIBS"
5464fi 6481fi
5465{ $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
5466$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 6483printf "%s\n" "$gt_cv_func_gnugettext1_libintl" >&6; }
5467 fi 6484 fi
5468 6485
5469 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 6486 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5470 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 6487 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5471 && test "$PACKAGE" != gettext; }; then 6488 && test "$PACKAGE" != gettext; }; then
5479 6496
5480 6497
5481 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6498 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5482 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6499 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5483 6500
5484$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6501printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
5485 6502
5486 else 6503 else
5487 USE_NLS=no 6504 USE_NLS=no
5488 fi 6505 fi
5489 fi 6506 fi
5490 6507
5491 if test "$USE_NLS" = "yes"; then 6508 if test "$USE_NLS" = "yes"; then
5492 6509
5493 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6510 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5494 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 6511 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5495 { $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
5496$as_echo_n "checking how to link with libintl... " >&6; } 6513printf %s "checking how to link with libintl... " >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5498$as_echo "$LIBINTL" >&6; } 6515printf "%s\n" "$LIBINTL" >&6; }
5499 6516
5500 for element in $INCINTL; do 6517 for element in $INCINTL; do
5501 haveit= 6518 haveit=
5502 for x in $CPPFLAGS; do 6519 for x in $CPPFLAGS; do
5503 6520
5520 done 6537 done
5521 6538
5522 fi 6539 fi
5523 6540
5524 6541
5525$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6542printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
5526 6543
5527 6544
5528$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6545printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
5529 6546
5530 fi 6547 fi
5531 6548
5532 POSUB=po 6549 POSUB=po
5533 fi 6550 fi
5545 6562
5546# Enable GNU extensions. 6563# Enable GNU extensions.
5547# Define this here, not in acconfig's @TOP@ section, since definitions 6564# Define this here, not in acconfig's @TOP@ section, since definitions
5548# 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.
5549 6566
5550$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6567printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5551 6568
5552 6569
5553# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs 6570# do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5554 6571
5555ALL_LINGUAS="" 6572ALL_LINGUAS=""
5557ac_ext=c 6574ac_ext=c
5558ac_cpp='$CPP $CPPFLAGS' 6575ac_cpp='$CPP $CPPFLAGS'
5559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560ac_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'
5561ac_compiler_gnu=$ac_cv_c_compiler_gnu 6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562{ $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
5563$as_echo_n "checking how to run the C preprocessor... " >&6; } 6580printf %s "checking how to run the C preprocessor... " >&6; }
5564# On Suns, sometimes $CPP names a directory. 6581# On Suns, sometimes $CPP names a directory.
5565if test -n "$CPP" && test -d "$CPP"; then 6582if test -n "$CPP" && test -d "$CPP"; then
5566 CPP= 6583 CPP=
5567fi 6584fi
5568if test -z "$CPP"; then 6585if test -z "$CPP"; then
5569 if test "${ac_cv_prog_CPP+set}" = set; then : 6586 if test ${ac_cv_prog_CPP+y}
5570 $as_echo_n "(cached) " >&6 6587then :
5571else 6588 printf %s "(cached) " >&6
6589else $as_nop
5572 # Double quotes because CPP needs to be expanded 6590 # Double quotes because $CC needs to be expanded
5573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6591 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5574 do 6592 do
5575 ac_preproc_ok=false 6593 ac_preproc_ok=false
5576for ac_c_preproc_warn_flag in '' yes 6594for ac_c_preproc_warn_flag in '' yes
5577do 6595do
5578 # Use a header file that comes with gcc, so configuring glibc 6596 # Use a header file that comes with gcc, so configuring glibc
5579 # with a fresh cross-compiler works. 6597 # with a fresh cross-compiler works.
5580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5581 # <limits.h> exists even on freestanding compilers.
5582 # 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,
5583 # 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.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h. */ 6601/* end confdefs.h. */
5586#ifdef __STDC__
5587# include <limits.h> 6602#include <limits.h>
5588#else
5589# include <assert.h>
5590#endif
5591 Syntax error 6603 Syntax error
5592_ACEOF 6604_ACEOF
5593if ac_fn_c_try_cpp "$LINENO"; then : 6605if ac_fn_c_try_cpp "$LINENO"
6606then :
5594 6607
5595else 6608else $as_nop
5596 # Broken: fails on valid input. 6609 # Broken: fails on valid input.
5597continue 6610continue
5598fi 6611fi
5599rm -f conftest.err conftest.i conftest.$ac_ext 6612rm -f conftest.err conftest.i conftest.$ac_ext
5600 6613
5602 # can be detected and how. 6615 # can be detected and how.
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */ 6617/* end confdefs.h. */
5605#include <ac_nonexistent.h> 6618#include <ac_nonexistent.h>
5606_ACEOF 6619_ACEOF
5607if ac_fn_c_try_cpp "$LINENO"; then : 6620if ac_fn_c_try_cpp "$LINENO"
6621then :
5608 # Broken: success on invalid input. 6622 # Broken: success on invalid input.
5609continue 6623continue
5610else 6624else $as_nop
5611 # Passes both tests. 6625 # Passes both tests.
5612ac_preproc_ok=: 6626ac_preproc_ok=:
5613break 6627break
5614fi 6628fi
5615rm -f conftest.err conftest.i conftest.$ac_ext 6629rm -f conftest.err conftest.i conftest.$ac_ext
5616 6630
5617done 6631done
5618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5619rm -f conftest.i conftest.err conftest.$ac_ext 6633rm -f conftest.i conftest.err conftest.$ac_ext
5620if $ac_preproc_ok; then : 6634if $ac_preproc_ok
6635then :
5621 break 6636 break
5622fi 6637fi
5623 6638
5624 done 6639 done
5625 ac_cv_prog_CPP=$CPP 6640 ac_cv_prog_CPP=$CPP
5627fi 6642fi
5628 CPP=$ac_cv_prog_CPP 6643 CPP=$ac_cv_prog_CPP
5629else 6644else
5630 ac_cv_prog_CPP=$CPP 6645 ac_cv_prog_CPP=$CPP
5631fi 6646fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5633$as_echo "$CPP" >&6; } 6648printf "%s\n" "$CPP" >&6; }
5634ac_preproc_ok=false 6649ac_preproc_ok=false
5635for ac_c_preproc_warn_flag in '' yes 6650for ac_c_preproc_warn_flag in '' yes
5636do 6651do
5637 # Use a header file that comes with gcc, so configuring glibc 6652 # Use a header file that comes with gcc, so configuring glibc
5638 # with a fresh cross-compiler works. 6653 # with a fresh cross-compiler works.
5639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640 # <limits.h> exists even on freestanding compilers.
5641 # 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,
5642 # 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.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */ 6657/* end confdefs.h. */
5645#ifdef __STDC__
5646# include <limits.h> 6658#include <limits.h>
5647#else
5648# include <assert.h>
5649#endif
5650 Syntax error 6659 Syntax error
5651_ACEOF 6660_ACEOF
5652if ac_fn_c_try_cpp "$LINENO"; then : 6661if ac_fn_c_try_cpp "$LINENO"
6662then :
5653 6663
5654else 6664else $as_nop
5655 # Broken: fails on valid input. 6665 # Broken: fails on valid input.
5656continue 6666continue
5657fi 6667fi
5658rm -f conftest.err conftest.i conftest.$ac_ext 6668rm -f conftest.err conftest.i conftest.$ac_ext
5659 6669
5661 # can be detected and how. 6671 # can be detected and how.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */ 6673/* end confdefs.h. */
5664#include <ac_nonexistent.h> 6674#include <ac_nonexistent.h>
5665_ACEOF 6675_ACEOF
5666if ac_fn_c_try_cpp "$LINENO"; then : 6676if ac_fn_c_try_cpp "$LINENO"
6677then :
5667 # Broken: success on invalid input. 6678 # Broken: success on invalid input.
5668continue 6679continue
5669else 6680else $as_nop
5670 # Passes both tests. 6681 # Passes both tests.
5671ac_preproc_ok=: 6682ac_preproc_ok=:
5672break 6683break
5673fi 6684fi
5674rm -f conftest.err conftest.i conftest.$ac_ext 6685rm -f conftest.err conftest.i conftest.$ac_ext
5675 6686
5676done 6687done
5677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678rm -f conftest.i conftest.err conftest.$ac_ext 6689rm -f conftest.i conftest.err conftest.$ac_ext
5679if $ac_preproc_ok; then : 6690if $ac_preproc_ok
6691then :
5680 6692
5681else 6693else $as_nop
5682 { { $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
5683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6695printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5684as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6696as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5685See \`config.log' for more details" "$LINENO" 5 ; } 6697See \`config.log' for more details" "$LINENO" 5; }
5686fi 6698fi
5687 6699
5688ac_ext=c 6700ac_ext=c
5689ac_cpp='$CPP $CPPFLAGS' 6701ac_cpp='$CPP $CPPFLAGS'
5690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691ac_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'
5692ac_compiler_gnu=$ac_cv_c_compiler_gnu 6704ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706
6707
6708
6709
6710
5693 6711
5694ac_ext=cpp 6712ac_ext=cpp
5695ac_cpp='$CXXCPP $CPPFLAGS' 6713ac_cpp='$CXXCPP $CPPFLAGS'
5696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697ac_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'
5699if test -z "$CXX"; then 6717if test -z "$CXX"; then
5700 if test -n "$CCC"; then 6718 if test -n "$CCC"; then
5701 CXX=$CCC 6719 CXX=$CCC
5702 else 6720 else
5703 if test -n "$ac_tool_prefix"; then 6721 if test -n "$ac_tool_prefix"; then
5704 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++
5705 do 6723 do
5706 # 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.
5707set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6725set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708{ $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
5709$as_echo_n "checking for $ac_word... " >&6; } 6727printf %s "checking for $ac_word... " >&6; }
5710if test "${ac_cv_prog_CXX+set}" = set; then : 6728if test ${ac_cv_prog_CXX+y}
5711 $as_echo_n "(cached) " >&6 6729then :
5712else 6730 printf %s "(cached) " >&6
6731else $as_nop
5713 if test -n "$CXX"; then 6732 if test -n "$CXX"; then
5714 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5715else 6734else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH 6736for as_dir in $PATH
5718do 6737do
5719 IFS=$as_save_IFS 6738 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=. 6739 case $as_dir in #(((
6740 '') as_dir=./ ;;
6741 */) ;;
6742 *) as_dir=$as_dir/ ;;
6743 esac
5721 for ac_exec_ext in '' $ac_executable_extensions; do 6744 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6746 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5724 $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
5725 break 2 6748 break 2
5726 fi 6749 fi
5727done 6750done
5728 done 6751 done
5729IFS=$as_save_IFS 6752IFS=$as_save_IFS
5730 6753
5731fi 6754fi
5732fi 6755fi
5733CXX=$ac_cv_prog_CXX 6756CXX=$ac_cv_prog_CXX
5734if test -n "$CXX"; then 6757if test -n "$CXX"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5736$as_echo "$CXX" >&6; } 6759printf "%s\n" "$CXX" >&6; }
5737else 6760else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; } 6762printf "%s\n" "no" >&6; }
5740fi 6763fi
5741 6764
5742 6765
5743 test -n "$CXX" && break 6766 test -n "$CXX" && break
5744 done 6767 done
5745fi 6768fi
5746if test -z "$CXX"; then 6769if test -z "$CXX"; then
5747 ac_ct_CXX=$CXX 6770 ac_ct_CXX=$CXX
5748 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++
5749do 6772do
5750 # 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.
5751set dummy $ac_prog; ac_word=$2 6774set dummy $ac_prog; ac_word=$2
5752{ $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
5753$as_echo_n "checking for $ac_word... " >&6; } 6776printf %s "checking for $ac_word... " >&6; }
5754if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 6777if test ${ac_cv_prog_ac_ct_CXX+y}
5755 $as_echo_n "(cached) " >&6 6778then :
5756else 6779 printf %s "(cached) " >&6
6780else $as_nop
5757 if test -n "$ac_ct_CXX"; then 6781 if test -n "$ac_ct_CXX"; then
5758 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.
5759else 6783else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH 6785for as_dir in $PATH
5762do 6786do
5763 IFS=$as_save_IFS 6787 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=. 6788 case $as_dir in #(((
6789 '') as_dir=./ ;;
6790 */) ;;
6791 *) as_dir=$as_dir/ ;;
6792 esac
5765 for ac_exec_ext in '' $ac_executable_extensions; do 6793 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_ac_ct_CXX="$ac_prog" 6795 ac_cv_prog_ac_ct_CXX="$ac_prog"
5768 $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
5769 break 2 6797 break 2
5770 fi 6798 fi
5771done 6799done
5772 done 6800 done
5773IFS=$as_save_IFS 6801IFS=$as_save_IFS
5774 6802
5775fi 6803fi
5776fi 6804fi
5777ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6805ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5778if test -n "$ac_ct_CXX"; then 6806if test -n "$ac_ct_CXX"; then
5779 { $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
5780$as_echo "$ac_ct_CXX" >&6; } 6808printf "%s\n" "$ac_ct_CXX" >&6; }
5781else 6809else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; } 6811printf "%s\n" "no" >&6; }
5784fi 6812fi
5785 6813
5786 6814
5787 test -n "$ac_ct_CXX" && break 6815 test -n "$ac_ct_CXX" && break
5788done 6816done
5790 if test "x$ac_ct_CXX" = x; then 6818 if test "x$ac_ct_CXX" = x; then
5791 CXX="g++" 6819 CXX="g++"
5792 else 6820 else
5793 case $cross_compiling:$ac_tool_warned in 6821 case $cross_compiling:$ac_tool_warned in
5794yes:) 6822yes:)
5795{ $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
5796$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;}
5797ac_tool_warned=yes ;; 6825ac_tool_warned=yes ;;
5798esac 6826esac
5799 CXX=$ac_ct_CXX 6827 CXX=$ac_ct_CXX
5800 fi 6828 fi
5801fi 6829fi
5802 6830
5803 fi 6831 fi
5804fi 6832fi
5805# Provide some information about the compiler. 6833# Provide some information about the compiler.
5806$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
5807set X $ac_compile 6835set X $ac_compile
5808ac_compiler=$2 6836ac_compiler=$2
5809for ac_option in --version -v -V -qversion; do 6837for ac_option in --version -v -V -qversion; do
5810 { { ac_try="$ac_compiler $ac_option >&5" 6838 { { ac_try="$ac_compiler $ac_option >&5"
5811case "(($ac_try" in 6839case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;; 6841 *) ac_try_echo=$ac_try;;
5814esac 6842esac
5815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5816$as_echo "$ac_try_echo"; } >&5 6844printf "%s\n" "$ac_try_echo"; } >&5
5817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5818 ac_status=$? 6846 ac_status=$?
5819 if test -s conftest.err; then 6847 if test -s conftest.err; then
5820 sed '10a\ 6848 sed '10a\
5821... rest of stderr output deleted ... 6849... rest of stderr output deleted ...
5822 10q' conftest.err >conftest.er1 6850 10q' conftest.err >conftest.er1
5823 cat conftest.er1 >&5 6851 cat conftest.er1 >&5
5824 fi 6852 fi
5825 rm -f conftest.er1 conftest.err 6853 rm -f conftest.er1 conftest.err
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; } 6855 test $ac_status = 0; }
5828done 6856done
5829 6857
5830{ $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
5831$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6859printf %s "checking whether the compiler supports GNU C++... " >&6; }
5832if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 6860if test ${ac_cv_cxx_compiler_gnu+y}
5833 $as_echo_n "(cached) " >&6 6861then :
5834else 6862 printf %s "(cached) " >&6
6863else $as_nop
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h. */ 6865/* end confdefs.h. */
5837 6866
5838int 6867int
5839main () 6868main (void)
5840{ 6869{
5841#ifndef __GNUC__ 6870#ifndef __GNUC__
5842 choke me 6871 choke me
5843#endif 6872#endif
5844 6873
5845 ; 6874 ;
5846 return 0; 6875 return 0;
5847} 6876}
5848_ACEOF 6877_ACEOF
5849if ac_fn_cxx_try_compile "$LINENO"; then : 6878if ac_fn_cxx_try_compile "$LINENO"
6879then :
5850 ac_compiler_gnu=yes 6880 ac_compiler_gnu=yes
5851else 6881else $as_nop
5852 ac_compiler_gnu=no 6882 ac_compiler_gnu=no
5853fi 6883fi
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6885ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5856 6886
5857fi 6887fi
5858{ $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
5859$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
5860if test $ac_compiler_gnu = yes; then 6892if test $ac_compiler_gnu = yes; then
5861 GXX=yes 6893 GXX=yes
5862else 6894else
5863 GXX= 6895 GXX=
5864fi 6896fi
5865ac_test_CXXFLAGS=${CXXFLAGS+set} 6897ac_test_CXXFLAGS=${CXXFLAGS+y}
5866ac_save_CXXFLAGS=$CXXFLAGS 6898ac_save_CXXFLAGS=$CXXFLAGS
5867{ $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
5868$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6900printf %s "checking whether $CXX accepts -g... " >&6; }
5869if test "${ac_cv_prog_cxx_g+set}" = set; then : 6901if test ${ac_cv_prog_cxx_g+y}
5870 $as_echo_n "(cached) " >&6 6902then :
5871else 6903 printf %s "(cached) " >&6
6904else $as_nop
5872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6905 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5873 ac_cxx_werror_flag=yes 6906 ac_cxx_werror_flag=yes
5874 ac_cv_prog_cxx_g=no 6907 ac_cv_prog_cxx_g=no
5875 CXXFLAGS="-g" 6908 CXXFLAGS="-g"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h. */ 6910/* end confdefs.h. */
5878 6911
5879int 6912int
5880main () 6913main (void)
5881{ 6914{
5882 6915
5883 ; 6916 ;
5884 return 0; 6917 return 0;
5885} 6918}
5886_ACEOF 6919_ACEOF
5887if ac_fn_cxx_try_compile "$LINENO"; then : 6920if ac_fn_cxx_try_compile "$LINENO"
6921then :
5888 ac_cv_prog_cxx_g=yes 6922 ac_cv_prog_cxx_g=yes
5889else 6923else $as_nop
5890 CXXFLAGS="" 6924 CXXFLAGS=""
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h. */ 6926/* end confdefs.h. */
5893 6927
5894int 6928int
5895main () 6929main (void)
5896{ 6930{
5897 6931
5898 ; 6932 ;
5899 return 0; 6933 return 0;
5900} 6934}
5901_ACEOF 6935_ACEOF
5902if ac_fn_cxx_try_compile "$LINENO"; then : 6936if ac_fn_cxx_try_compile "$LINENO"
6937then :
5903 6938
5904else 6939else $as_nop
5905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5906 CXXFLAGS="-g" 6941 CXXFLAGS="-g"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h. */ 6943/* end confdefs.h. */
5909 6944
5910int 6945int
5911main () 6946main (void)
5912{ 6947{
5913 6948
5914 ; 6949 ;
5915 return 0; 6950 return 0;
5916} 6951}
5917_ACEOF 6952_ACEOF
5918if ac_fn_cxx_try_compile "$LINENO"; then : 6953if ac_fn_cxx_try_compile "$LINENO"
6954then :
5919 ac_cv_prog_cxx_g=yes 6955 ac_cv_prog_cxx_g=yes
5920fi 6956fi
5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922fi 6958fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5924fi 6960fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5927fi 6963fi
5928{ $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
5929$as_echo "$ac_cv_prog_cxx_g" >&6; } 6965printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5930if test "$ac_test_CXXFLAGS" = set; then 6966if test $ac_test_CXXFLAGS; then
5931 CXXFLAGS=$ac_save_CXXFLAGS 6967 CXXFLAGS=$ac_save_CXXFLAGS
5932elif test $ac_cv_prog_cxx_g = yes; then 6968elif test $ac_cv_prog_cxx_g = yes; then
5933 if test "$GXX" = yes; then 6969 if test "$GXX" = yes; then
5934 CXXFLAGS="-g -O2" 6970 CXXFLAGS="-g -O2"
5935 else 6971 else
5940 CXXFLAGS="-O2" 6976 CXXFLAGS="-O2"
5941 else 6977 else
5942 CXXFLAGS= 6978 CXXFLAGS=
5943 fi 6979 fi
5944fi 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
5945ac_ext=c 7075ac_ext=c
5946ac_cpp='$CPP $CPPFLAGS' 7076ac_cpp='$CPP $CPPFLAGS'
5947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948ac_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'
5949ac_compiler_gnu=$ac_cv_c_compiler_gnu 7079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950 7080
5951depcc="$CXX" am_compiler_list= 7081depcc="$CXX" am_compiler_list=
5952 7082
5953{ $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
5954$as_echo_n "checking dependency style of $depcc... " >&6; } 7084printf %s "checking dependency style of $depcc... " >&6; }
5955if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 7085if test ${am_cv_CXX_dependencies_compiler_type+y}
5956 $as_echo_n "(cached) " >&6 7086then :
5957else 7087 printf %s "(cached) " >&6
7088else $as_nop
5958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5959 # 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
5960 # 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
5961 # 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
5962 # 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
5963 # in D'. 7094 # in D".
7095 rm -rf conftest.dir
5964 mkdir conftest.dir 7096 mkdir conftest.dir
5965 # 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
5966 # using a relative directory. 7098 # using a relative directory.
5967 cp "$am_depcomp" conftest.dir 7099 cp "$am_depcomp" conftest.dir
5968 cd conftest.dir 7100 cd conftest.dir
5976 7108
5977 am_cv_CXX_dependencies_compiler_type=none 7109 am_cv_CXX_dependencies_compiler_type=none
5978 if test "$am_compiler_list" = ""; then 7110 if test "$am_compiler_list" = ""; then
5979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5980 fi 7112 fi
7113 am__universal=false
7114 case " $depcc " in #(
7115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7116 esac
7117
5981 for depmode in $am_compiler_list; do 7118 for depmode in $am_compiler_list; do
5982 # Setup a source with many dependencies, because some compilers 7119 # Setup a source with many dependencies, because some compilers
5983 # like to wrap large dependency lists on column 80 (with \), and 7120 # like to wrap large dependency lists on column 80 (with \), and
5984 # we should not choose a depcomp mode which is confused by this. 7121 # we should not choose a depcomp mode which is confused by this.
5985 # 7122 #
5987 # overwrite some of them when testing with obscure command lines. 7124 # overwrite some of them when testing with obscure command lines.
5988 # This happens at least with the AIX C compiler. 7125 # This happens at least with the AIX C compiler.
5989 : > sub/conftest.c 7126 : > sub/conftest.c
5990 for i in 1 2 3 4 5 6; do 7127 for i in 1 2 3 4 5 6; do
5991 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5992 : > sub/conftst$i.h 7129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7130 # Solaris 10 /bin/sh.
7131 echo '/* dummy */' > sub/conftst$i.h
5993 done 7132 done
5994 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5995 7134
7135 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7136 # mode. It turns out that the SunPro C++ compiler does not properly
7137 # handle '-M -o', and we need to detect this. Also, some Intel
7138 # versions had trouble with output in subdirs.
7139 am__obj=sub/conftest.${OBJEXT-o}
7140 am__minus_obj="-o $am__obj"
5996 case $depmode in 7141 case $depmode in
7142 gcc)
7143 # This depmode causes a compiler race in universal mode.
7144 test "$am__universal" = false || continue
7145 ;;
5997 nosideeffect) 7146 nosideeffect)
5998 # 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
5999 # only be used when explicitly requested 7148 # only be used when explicitly requested.
6000 if test "x$enable_dependency_tracking" = xyes; then 7149 if test "x$enable_dependency_tracking" = xyes; then
6001 continue 7150 continue
6002 else 7151 else
6003 break 7152 break
6004 fi 7153 fi
6005 ;; 7154 ;;
7155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7156 # This compiler won't grok '-c -o', but also, the minuso test has
7157 # not run yet. These depmodes are late enough in the game, and
7158 # so weak that their functioning should not be impacted.
7159 am__obj=conftest.${OBJEXT-o}
7160 am__minus_obj=
7161 ;;
6006 none) break ;; 7162 none) break ;;
6007 esac 7163 esac
6008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6009 # mode. It turns out that the SunPro C++ compiler does not properly
6010 # handle `-M -o', and we need to detect this.
6011 if depmode=$depmode \ 7164 if depmode=$depmode \
6012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7165 source=sub/conftest.c object=$am__obj \
6013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6015 >/dev/null 2>conftest.err && 7168 >/dev/null 2>conftest.err &&
7169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6017 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6019 # icc doesn't choke on unknown options, it will just issue warnings 7173 # icc doesn't choke on unknown options, it will just issue warnings
6020 # (even with -Werror). So we grep stderr for any message 7174 # or remarks (even with -Werror). So we grep stderr for any message
6021 # that says an option was ignored. 7175 # that says an option was ignored or not supported.
7176 # When given -MP, icc 7.0 and 7.1 complain thusly:
7177 # icc: Command line warning: ignoring option '-M'; no argument required
7178 # The diagnosis changed in icc 8.0:
7179 # icc: Command line remark: option '-MP' not supported
7180 if (grep 'ignoring option' conftest.err ||
6022 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 7181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6023 am_cv_CXX_dependencies_compiler_type=$depmode 7182 am_cv_CXX_dependencies_compiler_type=$depmode
6024 break 7183 break
6025 fi 7184 fi
6026 fi 7185 fi
6027 done 7186 done
6031else 7190else
6032 am_cv_CXX_dependencies_compiler_type=none 7191 am_cv_CXX_dependencies_compiler_type=none
6033fi 7192fi
6034 7193
6035fi 7194fi
6036{ $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
6037$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7196printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6038CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7197CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6039 7198
6040
6041
6042if 7199 if
6043 test "x$enable_dependency_tracking" != xno \ 7200 test "x$enable_dependency_tracking" != xno \
6044 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7201 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6045 am__fastdepCXX_TRUE= 7202 am__fastdepCXX_TRUE=
6046 am__fastdepCXX_FALSE='#' 7203 am__fastdepCXX_FALSE='#'
6047else 7204else
6049 am__fastdepCXX_FALSE= 7206 am__fastdepCXX_FALSE=
6050fi 7207fi
6051 7208
6052 7209
6053 7210
6054{ $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
6055$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; }
6056if test "${ac_cv_path_GREP+set}" = set; then : 7213if test ${ac_cv_path_GREP+y}
6057 $as_echo_n "(cached) " >&6 7214then :
6058else 7215 printf %s "(cached) " >&6
7216else $as_nop
6059 if test -z "$GREP"; then 7217 if test -z "$GREP"; then
6060 ac_path_GREP_found=false 7218 ac_path_GREP_found=false
6061 # 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
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6064do 7222do
6065 IFS=$as_save_IFS 7223 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=. 7224 case $as_dir in #(((
7225 '') as_dir=./ ;;
7226 */) ;;
7227 *) as_dir=$as_dir/ ;;
7228 esac
6067 for ac_prog in grep ggrep; do 7229 for ac_prog in grep ggrep
7230 do
6068 for ac_exec_ext in '' $ac_executable_extensions; do 7231 for ac_exec_ext in '' $ac_executable_extensions; do
6069 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7232 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6070 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 7233 as_fn_executable_p "$ac_path_GREP" || continue
6071# 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.
6072 # Check for GNU $ac_path_GREP 7235 # Check for GNU $ac_path_GREP
6073case `"$ac_path_GREP" --version 2>&1` in 7236case `"$ac_path_GREP" --version 2>&1` in
6074*GNU*) 7237*GNU*)
6075 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6076*) 7239*)
6077 ac_count=0 7240 ac_count=0
6078 $as_echo_n 0123456789 >"conftest.in" 7241 printf %s 0123456789 >"conftest.in"
6079 while : 7242 while :
6080 do 7243 do
6081 cat "conftest.in" "conftest.in" >"conftest.tmp" 7244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6082 mv "conftest.tmp" "conftest.in" 7245 mv "conftest.tmp" "conftest.in"
6083 cp "conftest.in" "conftest.nl" 7246 cp "conftest.in" "conftest.nl"
6084 $as_echo 'GREP' >> "conftest.nl" 7247 printf "%s\n" 'GREP' >> "conftest.nl"
6085 "$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
6086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087 as_fn_arith $ac_count + 1 && ac_count=$as_val 7250 as_fn_arith $ac_count + 1 && ac_count=$as_val
6088 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6089 # 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
6107else 7270else
6108 ac_cv_path_GREP=$GREP 7271 ac_cv_path_GREP=$GREP
6109fi 7272fi
6110 7273
6111fi 7274fi
6112{ $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
6113$as_echo "$ac_cv_path_GREP" >&6; } 7276printf "%s\n" "$ac_cv_path_GREP" >&6; }
6114 GREP="$ac_cv_path_GREP" 7277 GREP="$ac_cv_path_GREP"
6115 7278
6116 7279
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6118$as_echo_n "checking for egrep... " >&6; } 7281printf %s "checking for egrep... " >&6; }
6119if test "${ac_cv_path_EGREP+set}" = set; then : 7282if test ${ac_cv_path_EGREP+y}
6120 $as_echo_n "(cached) " >&6 7283then :
6121else 7284 printf %s "(cached) " >&6
7285else $as_nop
6122 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6123 then ac_cv_path_EGREP="$GREP -E" 7287 then ac_cv_path_EGREP="$GREP -E"
6124 else 7288 else
6125 if test -z "$EGREP"; then 7289 if test -z "$EGREP"; then
6126 ac_path_EGREP_found=false 7290 ac_path_EGREP_found=false
6127 # 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
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130do 7294do
6131 IFS=$as_save_IFS 7295 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=. 7296 case $as_dir in #(((
7297 '') as_dir=./ ;;
7298 */) ;;
7299 *) as_dir=$as_dir/ ;;
7300 esac
6133 for ac_prog in egrep; do 7301 for ac_prog in egrep
7302 do
6134 for ac_exec_ext in '' $ac_executable_extensions; do 7303 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7304 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6136 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 7305 as_fn_executable_p "$ac_path_EGREP" || continue
6137# 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.
6138 # Check for GNU $ac_path_EGREP 7307 # Check for GNU $ac_path_EGREP
6139case `"$ac_path_EGREP" --version 2>&1` in 7308case `"$ac_path_EGREP" --version 2>&1` in
6140*GNU*) 7309*GNU*)
6141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6142*) 7311*)
6143 ac_count=0 7312 ac_count=0
6144 $as_echo_n 0123456789 >"conftest.in" 7313 printf %s 0123456789 >"conftest.in"
6145 while : 7314 while :
6146 do 7315 do
6147 cat "conftest.in" "conftest.in" >"conftest.tmp" 7316 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in" 7317 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl" 7318 cp "conftest.in" "conftest.nl"
6150 $as_echo 'EGREP' >> "conftest.nl" 7319 printf "%s\n" 'EGREP' >> "conftest.nl"
6151 "$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
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 as_fn_arith $ac_count + 1 && ac_count=$as_val 7322 as_fn_arith $ac_count + 1 && ac_count=$as_val
6154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6155 # 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
6174 ac_cv_path_EGREP=$EGREP 7343 ac_cv_path_EGREP=$EGREP
6175fi 7344fi
6176 7345
6177 fi 7346 fi
6178fi 7347fi
6179{ $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
6180$as_echo "$ac_cv_path_EGREP" >&6; } 7349printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6181 EGREP="$ac_cv_path_EGREP" 7350 EGREP="$ac_cv_path_EGREP"
6182 7351
6183 7352
6184if test $ac_cv_c_compiler_gnu = yes; then 7353if test $ac_cv_c_compiler_gnu = yes; then
6185 { $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
6186$as_echo_n "checking whether $CC needs -traditional... " >&6; } 7355printf %s "checking whether $CC needs -traditional... " >&6; }
6187if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 7356if test ${ac_cv_prog_gcc_traditional+y}
6188 $as_echo_n "(cached) " >&6 7357then :
6189else 7358 printf %s "(cached) " >&6
7359else $as_nop
6190 ac_pattern="Autoconf.*'x'" 7360 ac_pattern="Autoconf.*'x'"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h. */ 7362/* end confdefs.h. */
6193#include <sgtty.h> 7363#include <sgtty.h>
6194Autoconf TIOCGETP 7364Autoconf TIOCGETP
6195_ACEOF 7365_ACEOF
6196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6197 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7367 $EGREP "$ac_pattern" >/dev/null 2>&1
7368then :
6198 ac_cv_prog_gcc_traditional=yes 7369 ac_cv_prog_gcc_traditional=yes
6199else 7370else $as_nop
6200 ac_cv_prog_gcc_traditional=no 7371 ac_cv_prog_gcc_traditional=no
6201fi 7372fi
6202rm -f conftest* 7373rm -rf conftest*
6203 7374
6204 7375
6205 if test $ac_cv_prog_gcc_traditional = no; then 7376 if test $ac_cv_prog_gcc_traditional = no; then
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207/* end confdefs.h. */ 7378/* end confdefs.h. */
6208#include <termio.h> 7379#include <termio.h>
6209Autoconf TCGETA 7380Autoconf TCGETA
6210_ACEOF 7381_ACEOF
6211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6212 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 7383 $EGREP "$ac_pattern" >/dev/null 2>&1
7384then :
6213 ac_cv_prog_gcc_traditional=yes 7385 ac_cv_prog_gcc_traditional=yes
6214fi 7386fi
6215rm -f conftest* 7387rm -rf conftest*
6216 7388
6217 fi 7389 fi
6218fi 7390fi
6219{ $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
6220$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 7392printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
6221 if test $ac_cv_prog_gcc_traditional = yes; then 7393 if test $ac_cv_prog_gcc_traditional = yes; then
6222 CC="$CC -traditional" 7394 CC="$CC -traditional"
6223 fi 7395 fi
6224fi 7396fi
6225 7397
6226for ac_prog in gawk mawk nawk awk 7398for ac_prog in gawk mawk nawk awk
6227do 7399do
6228 # 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.
6229set dummy $ac_prog; ac_word=$2 7401set dummy $ac_prog; ac_word=$2
6230{ $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
6231$as_echo_n "checking for $ac_word... " >&6; } 7403printf %s "checking for $ac_word... " >&6; }
6232if test "${ac_cv_prog_AWK+set}" = set; then : 7404if test ${ac_cv_prog_AWK+y}
6233 $as_echo_n "(cached) " >&6 7405then :
6234else 7406 printf %s "(cached) " >&6
7407else $as_nop
6235 if test -n "$AWK"; then 7408 if test -n "$AWK"; then
6236 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6237else 7410else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH 7412for as_dir in $PATH
6240do 7413do
6241 IFS=$as_save_IFS 7414 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=. 7415 case $as_dir in #(((
7416 '') as_dir=./ ;;
7417 */) ;;
7418 *) as_dir=$as_dir/ ;;
7419 esac
6243 for ac_exec_ext in '' $ac_executable_extensions; do 7420 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_AWK="$ac_prog" 7422 ac_cv_prog_AWK="$ac_prog"
6246 $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
6247 break 2 7424 break 2
6248 fi 7425 fi
6249done 7426done
6250 done 7427 done
6251IFS=$as_save_IFS 7428IFS=$as_save_IFS
6252 7429
6253fi 7430fi
6254fi 7431fi
6255AWK=$ac_cv_prog_AWK 7432AWK=$ac_cv_prog_AWK
6256if test -n "$AWK"; then 7433if test -n "$AWK"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6258$as_echo "$AWK" >&6; } 7435printf "%s\n" "$AWK" >&6; }
6259else 7436else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; } 7438printf "%s\n" "no" >&6; }
6262fi 7439fi
6263 7440
6264 7441
6265 test -n "$AWK" && break 7442 test -n "$AWK" && break
6266done 7443done
6267 7444
6268 7445
6269{ $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
6270$as_echo_n "checking whether ln -s works... " >&6; } 7447printf %s "checking whether ln -s works... " >&6; }
6271LN_S=$as_ln_s 7448LN_S=$as_ln_s
6272if test "$LN_S" = "ln -s"; then 7449if test "$LN_S" = "ln -s"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6274$as_echo "yes" >&6; } 7451printf "%s\n" "yes" >&6; }
6275else 7452else
6276 { $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
6277$as_echo "no, using $LN_S" >&6; } 7454printf "%s\n" "no, using $LN_S" >&6; }
6278fi 7455fi
6279 7456
6280{ $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
6281$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7458printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6282set x ${MAKE-make} 7459set x ${MAKE-make}
6283ac_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'`
6284if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 7461if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6285 $as_echo_n "(cached) " >&6 7462then :
6286else 7463 printf %s "(cached) " >&6
7464else $as_nop
6287 cat >conftest.make <<\_ACEOF 7465 cat >conftest.make <<\_ACEOF
6288SHELL = /bin/sh 7466SHELL = /bin/sh
6289all: 7467all:
6290 @echo '@@@%%%=$(MAKE)=@@@%%%' 7468 @echo '@@@%%%=$(MAKE)=@@@%%%'
6291_ACEOF 7469_ACEOF
6297 eval ac_cv_prog_make_${ac_make}_set=no;; 7475 eval ac_cv_prog_make_${ac_make}_set=no;;
6298esac 7476esac
6299rm -f conftest.make 7477rm -f conftest.make
6300fi 7478fi
6301if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7479if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6303$as_echo "yes" >&6; } 7481printf "%s\n" "yes" >&6; }
6304 SET_MAKE= 7482 SET_MAKE=
6305else 7483else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; } 7485printf "%s\n" "no" >&6; }
6308 SET_MAKE="MAKE=${MAKE-make}" 7486 SET_MAKE="MAKE=${MAKE-make}"
6309fi 7487fi
6310 7488
6311if test -n "$ac_tool_prefix"; then 7489if test -n "$ac_tool_prefix"; then
6312 # 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.
6313set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7491set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6314{ $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
6315$as_echo_n "checking for $ac_word... " >&6; } 7493printf %s "checking for $ac_word... " >&6; }
6316if test "${ac_cv_prog_RANLIB+set}" = set; then : 7494if test ${ac_cv_prog_RANLIB+y}
6317 $as_echo_n "(cached) " >&6 7495then :
6318else 7496 printf %s "(cached) " >&6
7497else $as_nop
6319 if test -n "$RANLIB"; then 7498 if test -n "$RANLIB"; then
6320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6321else 7500else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH 7502for as_dir in $PATH
6324do 7503do
6325 IFS=$as_save_IFS 7504 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=. 7505 case $as_dir in #(((
7506 '') as_dir=./ ;;
7507 */) ;;
7508 *) as_dir=$as_dir/ ;;
7509 esac
6327 for ac_exec_ext in '' $ac_executable_extensions; do 7510 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6330 $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
6331 break 2 7514 break 2
6332 fi 7515 fi
6333done 7516done
6334 done 7517 done
6335IFS=$as_save_IFS 7518IFS=$as_save_IFS
6336 7519
6337fi 7520fi
6338fi 7521fi
6339RANLIB=$ac_cv_prog_RANLIB 7522RANLIB=$ac_cv_prog_RANLIB
6340if test -n "$RANLIB"; then 7523if test -n "$RANLIB"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6342$as_echo "$RANLIB" >&6; } 7525printf "%s\n" "$RANLIB" >&6; }
6343else 7526else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345$as_echo "no" >&6; } 7528printf "%s\n" "no" >&6; }
6346fi 7529fi
6347 7530
6348 7531
6349fi 7532fi
6350if test -z "$ac_cv_prog_RANLIB"; then 7533if test -z "$ac_cv_prog_RANLIB"; then
6351 ac_ct_RANLIB=$RANLIB 7534 ac_ct_RANLIB=$RANLIB
6352 # 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.
6353set dummy ranlib; ac_word=$2 7536set dummy ranlib; ac_word=$2
6354{ $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
6355$as_echo_n "checking for $ac_word... " >&6; } 7538printf %s "checking for $ac_word... " >&6; }
6356if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7539if test ${ac_cv_prog_ac_ct_RANLIB+y}
6357 $as_echo_n "(cached) " >&6 7540then :
6358else 7541 printf %s "(cached) " >&6
7542else $as_nop
6359 if test -n "$ac_ct_RANLIB"; then 7543 if test -n "$ac_ct_RANLIB"; then
6360 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.
6361else 7545else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH 7547for as_dir in $PATH
6364do 7548do
6365 IFS=$as_save_IFS 7549 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=. 7550 case $as_dir in #(((
7551 '') as_dir=./ ;;
7552 */) ;;
7553 *) as_dir=$as_dir/ ;;
7554 esac
6367 for ac_exec_ext in '' $ac_executable_extensions; do 7555 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_RANLIB="ranlib" 7557 ac_cv_prog_ac_ct_RANLIB="ranlib"
6370 $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
6371 break 2 7559 break 2
6372 fi 7560 fi
6373done 7561done
6374 done 7562 done
6375IFS=$as_save_IFS 7563IFS=$as_save_IFS
6376 7564
6377fi 7565fi
6378fi 7566fi
6379ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7567ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6380if test -n "$ac_ct_RANLIB"; then 7568if test -n "$ac_ct_RANLIB"; then
6381 { $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
6382$as_echo "$ac_ct_RANLIB" >&6; } 7570printf "%s\n" "$ac_ct_RANLIB" >&6; }
6383else 7571else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; } 7573printf "%s\n" "no" >&6; }
6386fi 7574fi
6387 7575
6388 if test "x$ac_ct_RANLIB" = x; then 7576 if test "x$ac_ct_RANLIB" = x; then
6389 RANLIB=":" 7577 RANLIB=":"
6390 else 7578 else
6391 case $cross_compiling:$ac_tool_warned in 7579 case $cross_compiling:$ac_tool_warned in
6392yes:) 7580yes:)
6393{ $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
6394$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;}
6395ac_tool_warned=yes ;; 7583ac_tool_warned=yes ;;
6396esac 7584esac
6397 RANLIB=$ac_ct_RANLIB 7585 RANLIB=$ac_ct_RANLIB
6398 fi 7586 fi
6399else 7587else
6400 RANLIB="$ac_cv_prog_RANLIB" 7588 RANLIB="$ac_cv_prog_RANLIB"
6401fi 7589fi
6402 7590
6403 7591
6404# Check whether --enable-iftype was given. 7592# Check whether --enable-iftype was given.
6405if test "${enable_iftype+set}" = set; then : 7593if test ${enable_iftype+y}
7594then :
6406 enableval=$enable_iftype; 7595 enableval=$enable_iftype;
6407 IFTYPE=`echo $enableval | sed s%/.*%%` 7596 IFTYPE=`echo $enableval | sed s%/.*%%`
6408 IFSUBTYPE=`echo $enableval | sed s%.*/%%` 7597 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
6409 7598
6410 7599
6411fi 7600fi
6412 7601
6413 7602
6414{ $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
6415$as_echo_n "checking for kernel networking interface type... " >&6; } 7604printf %s "checking for kernel networking interface type... " >&6; }
6416 7605
6417if test "x$IFTYPE" = "x"; then 7606if test "x$IFTYPE" = "x"; then
6418 case $target_os in 7607 case $target_os in
6419 *linux*) 7608 *linux*)
6420 IFTYPE=native 7609 IFTYPE=native
6421 IFSUBTYPE=linux 7610 IFSUBTYPE=linux
6422 7611
6423$as_echo "#define HAVE_LINUX 1" >>confdefs.h 7612printf "%s\n" "#define HAVE_LINUX 1" >>confdefs.h
6424 7613
6425 ;; 7614 ;;
6426 *freebsd*) 7615 *freebsd*)
6427 IFTYPE=tincd 7616 IFTYPE=tincd
6428 IFSUBTYPE=freebsd 7617 IFSUBTYPE=freebsd
6429 7618
6430$as_echo "#define HAVE_FREEBSD 1" >>confdefs.h 7619printf "%s\n" "#define HAVE_FREEBSD 1" >>confdefs.h
6431 7620
6432 ;; 7621 ;;
6433 *darwin*) 7622 *darwin*)
6434 IFTYPE=native 7623 IFTYPE=native
6435 IFSUBTYPE=darwin 7624 IFSUBTYPE=darwin
6436 7625
6437$as_echo "#define HAVE_DARWIN 1" >>confdefs.h 7626printf "%s\n" "#define HAVE_DARWIN 1" >>confdefs.h
6438 7627
6439 ;; 7628 ;;
6440 *solaris*) 7629 *solaris*)
6441 IFTYPE=tincd 7630 IFTYPE=tincd
6442 IFSUBTYPE=solaris 7631 IFSUBTYPE=solaris
6443 7632
6444$as_echo "#define HAVE_SOLARIS 1" >>confdefs.h 7633printf "%s\n" "#define HAVE_SOLARIS 1" >>confdefs.h
6445 7634
6446 ;; 7635 ;;
6447 *openbsd*) 7636 *openbsd*)
6448 IFTYPE=tincd 7637 IFTYPE=tincd
6449 IFSUBTYPE=openbsd 7638 IFSUBTYPE=openbsd
6450 7639
6451$as_echo "#define HAVE_OPENBSD 1" >>confdefs.h 7640printf "%s\n" "#define HAVE_OPENBSD 1" >>confdefs.h
6452 7641
6453 ;; 7642 ;;
6454 *netbsd*) 7643 *netbsd*)
6455 IFTYPE=tincd 7644 IFTYPE=tincd
6456 IFSUBTYPE=netbsd 7645 IFSUBTYPE=netbsd
6457 7646
6458$as_echo "#define HAVE_NETBSD 1" >>confdefs.h 7647printf "%s\n" "#define HAVE_NETBSD 1" >>confdefs.h
6459 7648
6460 ;; 7649 ;;
6461 *cygwin*) 7650 *cygwin*)
6462 IFTYPE=native 7651 IFTYPE=native
6463 IFSUBTYPE=cygwin 7652 IFSUBTYPE=cygwin
6464 7653
6465$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 7654printf "%s\n" "#define HAVE_CYGWIN 1" >>confdefs.h
6466 7655
6467 ;; 7656 ;;
6468 *) 7657 *)
6469 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5 7658 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5
6470 ;; 7659 ;;
6471 esac 7660 esac
6472fi 7661fi
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5 7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5
6474$as_echo "$IFTYPE/$IFSUBTYPE" >&6; } 7663printf "%s\n" "$IFTYPE/$IFSUBTYPE" >&6; }
6475IFTYPE=$IFTYPE 7664IFTYPE=$IFTYPE
6476 7665
6477IFSUBTYPE=$IFSUBTYPE 7666IFSUBTYPE=$IFSUBTYPE
6478 7667
6479 7668
6480cat >>confdefs.h <<_ACEOF 7669printf "%s\n" "#define IFTYPE \"$IFTYPE\"" >>confdefs.h
6481#define IFTYPE "$IFTYPE"
6482_ACEOF
6483 7670
6484 7671
6485cat >>confdefs.h <<_ACEOF 7672printf "%s\n" "#define IFSUBTYPE \"$IFSUBTYPE\"" >>confdefs.h
6486#define IFSUBTYPE "$IFSUBTYPE"
6487_ACEOF
6488 7673
6489 7674
6490cat >confcache <<\_ACEOF 7675cat >confcache <<\_ACEOF
6491# 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
6492# 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
6512 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
6513 eval ac_val=\$$ac_var 7698 eval ac_val=\$$ac_var
6514 case $ac_val in #( 7699 case $ac_val in #(
6515 *${as_nl}*) 7700 *${as_nl}*)
6516 case $ac_var in #( 7701 case $ac_var in #(
6517 *_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
6518$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;} ;;
6519 esac 7704 esac
6520 case $ac_var in #( 7705 case $ac_var in #(
6521 _ | IFS | as_nl) ;; #( 7706 _ | IFS | as_nl) ;; #(
6522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6523 *) { eval $ac_var=; unset $ac_var;} ;; 7708 *) { eval $ac_var=; unset $ac_var;} ;;
6543) | 7728) |
6544 sed ' 7729 sed '
6545 /^ac_cv_env_/b end 7730 /^ac_cv_env_/b end
6546 t clear 7731 t clear
6547 :clear 7732 :clear
6548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7733 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6549 t end 7734 t end
6550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6551 :end' >>confcache 7736 :end' >>confcache
6552if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 7737if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6553 if test -w "$cache_file"; then 7738 if test -w "$cache_file"; then
6554 test "x$cache_file" != "x/dev/null" && 7739 if test "x$cache_file" != "x/dev/null"; then
6555 { $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
6556$as_echo "$as_me: updating cache $cache_file" >&6;} 7741printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7742 if test ! -f "$cache_file" || test -h "$cache_file"; then
6557 cat confcache >$cache_file 7743 cat confcache >"$cache_file"
7744 else
7745 case $cache_file in #(
7746 */* | ?:*)
7747 mv -f confcache "$cache_file"$$ &&
7748 mv -f "$cache_file"$$ "$cache_file" ;; #(
7749 *)
7750 mv -f confcache "$cache_file" ;;
7751 esac
7752 fi
7753 fi
6558 else 7754 else
6559 { $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
6560$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 7756printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6561 fi 7757 fi
6562fi 7758fi
6563rm -f confcache 7759rm -f confcache
6564 7760
6565 7761
6568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_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'
6570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6571 7767
6572 7768
6573ac_ext=cpp 7769ac_header= ac_cache=
6574ac_cpp='$CXXCPP $CPPFLAGS' 7770for ac_item in $ac_header_cxx_list
6575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6579$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6580if test -z "$CXXCPP"; then
6581 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583else
6584 # Double quotes because CXXCPP needs to be expanded
6585 for CXXCPP in "$CXX -E" "/lib/cpp"
6586 do
6587 ac_preproc_ok=false
6588for ac_cxx_preproc_warn_flag in '' yes
6589do 7771do
6590 # Use a header file that comes with gcc, so configuring glibc 7772 if test $ac_cache; then
6591 # with a fresh cross-compiler works. 7773 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7774 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6593 # <limits.h> exists even on freestanding compilers. 7775 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6594 # On the NeXT, cc -E runs the code through the compiler's parser, 7776 fi
6595 # not just through cpp. "Syntax error" is here to catch this case. 7777 ac_header= ac_cache=
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778 elif test $ac_header; then
6597/* end confdefs.h. */ 7779 ac_cache=$ac_item
6598#ifdef __STDC__
6599# include <limits.h>
6600#else
6601# include <assert.h>
6602#endif
6603 Syntax error
6604_ACEOF
6605if ac_fn_cxx_try_cpp "$LINENO"; then :
6606
6607else 7780 else
6608 # Broken: fails on valid input. 7781 ac_header=$ac_item
6609continue 7782 fi
6610fi
6611rm -f conftest.err conftest.i conftest.$ac_ext
6612
6613 # OK, works on sane cases. Now check whether nonexistent headers
6614 # can be detected and how.
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h. */
6617#include <ac_nonexistent.h>
6618_ACEOF
6619if ac_fn_cxx_try_cpp "$LINENO"; then :
6620 # Broken: success on invalid input.
6621continue
6622else
6623 # Passes both tests.
6624ac_preproc_ok=:
6625break
6626fi
6627rm -f conftest.err conftest.i conftest.$ac_ext
6628
6629done 7783done
6630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6631rm -f conftest.i conftest.err conftest.$ac_ext
6632if $ac_preproc_ok; then :
6633 break
6634fi
6635 7784
6636 done
6637 ac_cv_prog_CXXCPP=$CXXCPP
6638 7785
6639fi
6640 CXXCPP=$ac_cv_prog_CXXCPP
6641else
6642 ac_cv_prog_CXXCPP=$CXXCPP
6643fi
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6645$as_echo "$CXXCPP" >&6; }
6646ac_preproc_ok=false
6647for ac_cxx_preproc_warn_flag in '' yes
6648do
6649 # Use a header file that comes with gcc, so configuring glibc
6650 # with a fresh cross-compiler works.
6651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6652 # <limits.h> exists even on freestanding compilers.
6653 # On the NeXT, cc -E runs the code through the compiler's parser,
6654 # not just through cpp. "Syntax error" is here to catch this case.
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h. */
6657#ifdef __STDC__
6658# include <limits.h>
6659#else
6660# include <assert.h>
6661#endif
6662 Syntax error
6663_ACEOF
6664if ac_fn_cxx_try_cpp "$LINENO"; then :
6665 7786
6666else
6667 # Broken: fails on valid input.
6668continue
6669fi
6670rm -f conftest.err conftest.i conftest.$ac_ext
6671 7787
6672 # OK, works on sane cases. Now check whether nonexistent headers
6673 # can be detected and how.
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675/* end confdefs.h. */
6676#include <ac_nonexistent.h>
6677_ACEOF
6678if ac_fn_cxx_try_cpp "$LINENO"; then :
6679 # Broken: success on invalid input.
6680continue
6681else
6682 # Passes both tests.
6683ac_preproc_ok=:
6684break
6685fi
6686rm -f conftest.err conftest.i conftest.$ac_ext
6687 7788
6688done
6689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6690rm -f conftest.i conftest.err conftest.$ac_ext
6691if $ac_preproc_ok; then :
6692 7789
6693else
6694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6696as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6697See \`config.log' for more details" "$LINENO" 5 ; }
6698fi
6699 7790
6700ac_ext=cpp
6701ac_cpp='$CXXCPP $CPPFLAGS'
6702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6705 7791
7792if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7793then :
6706 7794
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6708$as_echo_n "checking for ANSI C header files... " >&6; }
6709if test "${ac_cv_header_stdc+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6711else
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713/* end confdefs.h. */
6714#include <stdlib.h>
6715#include <stdarg.h>
6716#include <string.h>
6717#include <float.h>
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_cxx_try_compile "$LINENO"; then :
6728 ac_cv_header_stdc=yes
6729else
6730 ac_cv_header_stdc=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733
6734if test $ac_cv_header_stdc = yes; then
6735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738#include <string.h>
6739
6740_ACEOF
6741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6742 $EGREP "memchr" >/dev/null 2>&1; then :
6743
6744else
6745 ac_cv_header_stdc=no
6746fi
6747rm -f conftest*
6748
6749fi
6750
6751if test $ac_cv_header_stdc = yes; then
6752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h. */
6755#include <stdlib.h>
6756
6757_ACEOF
6758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6759 $EGREP "free" >/dev/null 2>&1; then :
6760
6761else
6762 ac_cv_header_stdc=no
6763fi
6764rm -f conftest*
6765
6766fi
6767
6768if test $ac_cv_header_stdc = yes; then
6769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6770 if test "$cross_compiling" = yes; then :
6771 :
6772else
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h. */
6775#include <ctype.h>
6776#include <stdlib.h>
6777#if ((' ' & 0x0FF) == 0x020)
6778# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6779# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6780#else
6781# define ISLOWER(c) \
6782 (('a' <= (c) && (c) <= 'i') \
6783 || ('j' <= (c) && (c) <= 'r') \
6784 || ('s' <= (c) && (c) <= 'z'))
6785# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6786#endif
6787
6788#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6789int
6790main ()
6791{
6792 int i;
6793 for (i = 0; i < 256; i++)
6794 if (XOR (islower (i), ISLOWER (i))
6795 || toupper (i) != TOUPPER (i))
6796 return 2;
6797 return 0;
6798}
6799_ACEOF
6800if ac_fn_cxx_try_run "$LINENO"; then :
6801
6802else
6803 ac_cv_header_stdc=no
6804fi
6805rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6806 conftest.$ac_objext conftest.beam conftest.$ac_ext
6807fi
6808
6809fi
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6812$as_echo "$ac_cv_header_stdc" >&6; }
6813if test $ac_cv_header_stdc = yes; then
6814
6815$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7795printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6816 7796
6817fi 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
6818 7802
6819# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7803fi
6820for 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"
6821 inttypes.h stdint.h unistd.h 7805if test "x$ac_cv_header_ext_hash_map" = xyes
6822do : 7806then :
6823 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
6824ac_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"
6825" 7837if test "x$ac_cv_header_malloc_h" = xyes
6826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7838then :
6827 cat >>confdefs.h <<_ACEOF 7839 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
6828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829_ACEOF
6830 7840
6831fi 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
6832 7846
6833done 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
6834 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
6835 7858
6836for ac_header in tr1/unordered_map ext/hash_map clocale 7859fi
6837do : 7860ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6838 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
6839ac_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"
6840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7903if test "x$ac_cv_header_sys_mman_h" = xyes
6841 cat >>confdefs.h <<_ACEOF 7904then :
6842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7905 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
6843_ACEOF
6844 7906
6845fi 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
6846 7912
6847done
6848
6849
6850for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
6851 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
6852 sys/mman.h netinet/in.h
6853do :
6854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6856if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6857 cat >>confdefs.h <<_ACEOF
6858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6859_ACEOF
6860
6861fi 7913fi
6862 7914
6863done
6864
6865for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
6866do :
6867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6868ac_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" "
6869#include <sys/types.h> 7916#include <sys/types.h>
6870#include <sys/socket.h> 7917#include <sys/socket.h>
6871#ifdef HAVE_NETINET_IN_H 7918#ifdef HAVE_NETINET_IN_H
6872# include <netinet/in.h> 7919# include <netinet/in.h>
6873#endif 7920#endif
6877#ifdef HAVE_NETINET_IN_SYSTM_H 7924#ifdef HAVE_NETINET_IN_SYSTM_H
6878# include <netinet/in_systm.h> 7925# include <netinet/in_systm.h>
6879#endif 7926#endif
6880 7927
6881" 7928"
6882if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7929if test "x$ac_cv_header_arpa_inet_h" = xyes
6883 cat >>confdefs.h <<_ACEOF 7930then :
6884#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7931 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
6885_ACEOF
6886 7932
6887fi 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
6888 7946
6889done 7947"
7948if test "x$ac_cv_header_net_ethernet_h" = xyes
7949then :
7950 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
6890 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
6891 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
6892{ $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
6893$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8032printf %s "checking for an ANSI C-conforming const... " >&6; }
6894if test "${ac_cv_c_const+set}" = set; then : 8033if test ${ac_cv_c_const+y}
6895 $as_echo_n "(cached) " >&6 8034then :
6896else 8035 printf %s "(cached) " >&6
8036else $as_nop
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h. */ 8038/* end confdefs.h. */
6899 8039
6900int 8040int
6901main () 8041main (void)
6902{ 8042{
6903/* FIXME: Include the comments suggested by Paul. */ 8043
6904#ifndef __cplusplus 8044#ifndef __cplusplus
6905 /* Ultrix mips cc rejects this. */ 8045 /* Ultrix mips cc rejects this sort of thing. */
6906 typedef int charset[2]; 8046 typedef int charset[2];
6907 const charset cs; 8047 const charset cs = { 0, 0 };
6908 /* SunOS 4.1.1 cc rejects this. */ 8048 /* SunOS 4.1.1 cc rejects this. */
6909 char const *const *pcpcc; 8049 char const *const *pcpcc;
6910 char **ppc; 8050 char **ppc;
6911 /* NEC SVR4.0.2 mips cc rejects this. */ 8051 /* NEC SVR4.0.2 mips cc rejects this. */
6912 struct point {int x, y;}; 8052 struct point {int x, y;};
6913 static struct point const zero = {0,0}; 8053 static struct point const zero = {0,0};
6914 /* AIX XL C 1.02.0.0 rejects this. 8054 /* IBM XL C 1.02.0.0 rejects this.
6915 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
6916 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
6917 expression */ 8057 expression */
6918 const char *g = "string"; 8058 const char *g = "string";
6919 pcpcc = &g + (g ? g-g : 0); 8059 pcpcc = &g + (g ? g-g : 0);
6920 /* HPUX 7.0 cc rejects these. */ 8060 /* HPUX 7.0 cc rejects these. */
6921 ++pcpcc; 8061 ++pcpcc;
6922 ppc = (char**) pcpcc; 8062 ppc = (char**) pcpcc;
6923 pcpcc = (char const *const *) ppc; 8063 pcpcc = (char const *const *) ppc;
6924 { /* SCO 3.2v4 cc rejects this. */ 8064 { /* SCO 3.2v4 cc rejects this sort of thing. */
6925 char *t; 8065 char tx;
8066 char *t = &tx;
6926 char const *s = 0 ? (char *) 0 : (char const *) 0; 8067 char const *s = 0 ? (char *) 0 : (char const *) 0;
6927 8068
6928 *t++ = 0; 8069 *t++ = 0;
6929 if (s) return 0; 8070 if (s) return 0;
6930 } 8071 }
6936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6937 typedef const int *iptr; 8078 typedef const int *iptr;
6938 iptr p = 0; 8079 iptr p = 0;
6939 ++p; 8080 ++p;
6940 } 8081 }
6941 { /* AIX XL C 1.02.0.0 rejects this saying 8082 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
6942 "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. */
6943 struct s { int j; const int *ap[3]; }; 8084 struct s { int j; const int *ap[3]; } bx;
6944 struct s *b; b->j = 5; 8085 struct s *b = &bx; b->j = 5;
6945 } 8086 }
6946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6947 const int foo = 10; 8088 const int foo = 10;
6948 if (!foo) return 0; 8089 if (!foo) return 0;
6949 } 8090 }
6952 8093
6953 ; 8094 ;
6954 return 0; 8095 return 0;
6955} 8096}
6956_ACEOF 8097_ACEOF
6957if ac_fn_cxx_try_compile "$LINENO"; then : 8098if ac_fn_cxx_try_compile "$LINENO"
8099then :
6958 ac_cv_c_const=yes 8100 ac_cv_c_const=yes
6959else 8101else $as_nop
6960 ac_cv_c_const=no 8102 ac_cv_c_const=no
6961fi 8103fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6963fi 8105fi
6964{ $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
6965$as_echo "$ac_cv_c_const" >&6; } 8107printf "%s\n" "$ac_cv_c_const" >&6; }
6966if test $ac_cv_c_const = no; then 8108if test $ac_cv_c_const = no; then
6967 8109
6968$as_echo "#define const /**/" >>confdefs.h 8110printf "%s\n" "#define const /**/" >>confdefs.h
6969 8111
6970fi 8112fi
6971 8113
8114
6972ac_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"
6973if test "x$ac_cv_type_pid_t" = x""yes; then : 8117if test "x$ac_cv_type_pid_t" = xyes
8118then :
6974 8119
6975else 8120else $as_nop
6976 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977cat >>confdefs.h <<_ACEOF
6978#define pid_t int
6979_ACEOF
6980
6981fi
6982
6983ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6984if test "x$ac_cv_type_size_t" = x""yes; then :
6985
6986else
6987
6988cat >>confdefs.h <<_ACEOF
6989#define size_t unsigned int
6990_ACEOF
6991
6992fi
6993
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6995$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6996if test "${ac_cv_header_time+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h. */ 8122/* end confdefs.h. */
7001#include <sys/types.h> 8123
7002#include <sys/time.h> 8124 #if defined _WIN64 && !defined __CYGWIN__
7003#include <time.h> 8125 LLP64
8126 #endif
7004 8127
7005int 8128int
7006main () 8129main (void)
7007{ 8130{
7008if ((struct tm *) 0) 8131
7009return 0;
7010 ; 8132 ;
7011 return 0; 8133 return 0;
7012} 8134}
8135
7013_ACEOF 8136_ACEOF
7014if ac_fn_cxx_try_compile "$LINENO"; then : 8137if ac_fn_cxx_try_compile "$LINENO"
7015 ac_cv_header_time=yes 8138then :
7016else 8139 ac_pid_type='int'
7017 ac_cv_header_time=no 8140else $as_nop
8141 ac_pid_type='__int64'
7018fi 8142fi
7019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7022$as_echo "$ac_cv_header_time" >&6; }
7023if test $ac_cv_header_time = yes; then
7024 8144
7025$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8145printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7026 8146
7027fi
7028 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
7029{ $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
7030$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; }
7031if test "${ac_cv_struct_tm+set}" = set; then : 8166if test ${ac_cv_struct_tm+y}
7032 $as_echo_n "(cached) " >&6 8167then :
7033else 8168 printf %s "(cached) " >&6
8169else $as_nop
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h. */ 8171/* end confdefs.h. */
7036#include <sys/types.h> 8172#include <sys/types.h>
7037#include <time.h> 8173#include <time.h>
7038 8174
7039int 8175int
7040main () 8176main (void)
7041{ 8177{
7042struct tm tm; 8178struct tm tm;
7043 int *p = &tm.tm_sec; 8179 int *p = &tm.tm_sec;
7044 return !p; 8180 return !p;
7045 ; 8181 ;
7046 return 0; 8182 return 0;
7047} 8183}
7048_ACEOF 8184_ACEOF
7049if ac_fn_cxx_try_compile "$LINENO"; then : 8185if ac_fn_cxx_try_compile "$LINENO"
8186then :
7050 ac_cv_struct_tm=time.h 8187 ac_cv_struct_tm=time.h
7051else 8188else $as_nop
7052 ac_cv_struct_tm=sys/time.h 8189 ac_cv_struct_tm=sys/time.h
7053fi 8190fi
7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055fi 8192fi
7056{ $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
7057$as_echo "$ac_cv_struct_tm" >&6; } 8194printf "%s\n" "$ac_cv_struct_tm" >&6; }
7058if test $ac_cv_struct_tm = sys/time.h; then 8195if test $ac_cv_struct_tm = sys/time.h; then
7059 8196
7060$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8197printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
7061 8198
7062fi 8199fi
7063 8200
7064 8201
7065{ $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
7066$as_echo_n "checking for socklen_t... " >&6; } 8203printf %s "checking for socklen_t... " >&6; }
7067if test "${ac_cv_type_socklen_t+set}" = set; then : 8204if test ${ac_cv_type_socklen_t+y}
7068 $as_echo_n "(cached) " >&6 8205then :
7069else 8206 printf %s "(cached) " >&6
8207else $as_nop
7070 8208
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h. */ 8210/* end confdefs.h. */
7073#include <sys/types.h> 8211#include <sys/types.h>
7074 #include <sys/socket.h> 8212 #include <sys/socket.h>
7075int 8213int
7076main () 8214main (void)
7077{ 8215{
7078socklen_t len = 42; return len; 8216socklen_t len = 42; return len;
7079 ; 8217 ;
7080 return 0; 8218 return 0;
7081} 8219}
7082_ACEOF 8220_ACEOF
7083if ac_fn_cxx_try_compile "$LINENO"; then : 8221if ac_fn_cxx_try_compile "$LINENO"
8222then :
7084 ac_cv_type_socklen_t=yes 8223 ac_cv_type_socklen_t=yes
7085else 8224else $as_nop
7086 ac_cv_type_socklen_t=no 8225 ac_cv_type_socklen_t=no
7087fi 8226fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7089 8228
7090fi 8229fi
7091{ $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
7092$as_echo "$ac_cv_type_socklen_t" >&6; } 8231printf "%s\n" "$ac_cv_type_socklen_t" >&6; }
7093if test $ac_cv_type_socklen_t = yes; then 8232if test $ac_cv_type_socklen_t = yes; then
7094 8233
7095$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 8234printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7096 8235
7097fi 8236fi
7098 8237
7099{ $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
7100$as_echo_n "checking for struct addrinfo... " >&6; } 8239printf %s "checking for struct addrinfo... " >&6; }
7101if test "${ac_cv_struct_addrinfo+set}" = set; then : 8240if test ${ac_cv_struct_addrinfo+y}
7102 $as_echo_n "(cached) " >&6 8241then :
7103else 8242 printf %s "(cached) " >&6
8243else $as_nop
7104 8244
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h. */ 8246/* end confdefs.h. */
7107#include <sys/types.h> 8247#include <sys/types.h>
7108 #include <sys/socket.h> 8248 #include <sys/socket.h>
7109 #include <netdb.h> 8249 #include <netdb.h>
7110int 8250int
7111main () 8251main (void)
7112{ 8252{
7113struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family; 8253struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
7114 ; 8254 ;
7115 return 0; 8255 return 0;
7116} 8256}
7117_ACEOF 8257_ACEOF
7118if ac_fn_cxx_try_compile "$LINENO"; then : 8258if ac_fn_cxx_try_compile "$LINENO"
8259then :
7119 ac_cv_struct_addrinfo=yes 8260 ac_cv_struct_addrinfo=yes
7120else 8261else $as_nop
7121 ac_cv_struct_addrinfo=no 8262 ac_cv_struct_addrinfo=no
7122fi 8263fi
7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7124 8265
7125fi 8266fi
7126{ $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
7127$as_echo "$ac_cv_struct_addrinfo" >&6; } 8268printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
7128if test $ac_cv_struct_addrinfo = yes; then 8269if test $ac_cv_struct_addrinfo = yes; then
7129 8270
7130$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 8271printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7131 8272
7132fi 8273fi
7133
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7135$as_echo_n "checking return type of signal handlers... " >&6; }
7136if test "${ac_cv_type_signal+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7138else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h. */
7141#include <sys/types.h>
7142#include <signal.h>
7143
7144int
7145main ()
7146{
7147return *(signal (0, 0)) (0) == 1;
7148 ;
7149 return 0;
7150}
7151_ACEOF
7152if ac_fn_cxx_try_compile "$LINENO"; then :
7153 ac_cv_type_signal=int
7154else
7155 ac_cv_type_signal=void
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7160$as_echo "$ac_cv_type_signal" >&6; }
7161
7162cat >>confdefs.h <<_ACEOF
7163#define RETSIGTYPE $ac_cv_type_signal
7164_ACEOF
7165
7166
7167 8274
7168ac_ext=c 8275ac_ext=c
7169ac_cpp='$CPP $CPPFLAGS' 8276ac_cpp='$CPP $CPPFLAGS'
7170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171ac_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'
7172ac_compiler_gnu=$ac_cv_c_compiler_gnu 8279ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 8280
7174 8281
7175{ $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"
7176$as_echo_n "checking for ANSI C header files... " >&6; } 8283if test "x$ac_cv_func_asprintf" = xyes
7177if test "${ac_cv_header_stdc+set}" = set; then : 8284then :
7178 $as_echo_n "(cached) " >&6 8285 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
7179else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h. */
7182#include <stdlib.h>
7183#include <stdarg.h>
7184#include <string.h>
7185#include <float.h>
7186 8286
7187int
7188main ()
7189{
7190
7191 ;
7192 return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_compile "$LINENO"; then :
7196 ac_cv_header_stdc=yes
7197else
7198 ac_cv_header_stdc=no
7199fi 8287fi
7200rm -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
7201 8292
7202if test $ac_cv_header_stdc = yes; then
7203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h. */
7206#include <string.h>
7207
7208_ACEOF
7209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "memchr" >/dev/null 2>&1; then :
7211
7212else
7213 ac_cv_header_stdc=no
7214fi 8293fi
7215rm -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
7216 8298
7217fi 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
7218 8304
7219if test $ac_cv_header_stdc = yes; then
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h. */
7223#include <stdlib.h>
7224
7225_ACEOF
7226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 $EGREP "free" >/dev/null 2>&1; then :
7228
7229else
7230 ac_cv_header_stdc=no
7231fi 8305fi
7232rm -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
7233 8310
7234fi 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
7235 8316
7236if test $ac_cv_header_stdc = yes; then
7237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7238 if test "$cross_compiling" = yes; then :
7239 :
7240else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h. */
7243#include <ctype.h>
7244#include <stdlib.h>
7245#if ((' ' & 0x0FF) == 0x020)
7246# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7247# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7248#else
7249# define ISLOWER(c) \
7250 (('a' <= (c) && (c) <= 'i') \
7251 || ('j' <= (c) && (c) <= 'r') \
7252 || ('s' <= (c) && (c) <= 'z'))
7253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7254#endif
7255
7256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7257int
7258main ()
7259{
7260 int i;
7261 for (i = 0; i < 256; i++)
7262 if (XOR (islower (i), ISLOWER (i))
7263 || toupper (i) != TOUPPER (i))
7264 return 2;
7265 return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_run "$LINENO"; then :
7269
7270else
7271 ac_cv_header_stdc=no
7272fi 8317fi
7273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8318ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
7274 conftest.$ac_objext conftest.beam conftest.$ac_ext 8319if test "x$ac_cv_func_strsignal" = xyes
7275fi 8320then :
8321 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
7276 8322
7277fi 8323fi
7278fi 8324ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8325if test "x$ac_cv_func_strtol" = xyes
7280$as_echo "$ac_cv_header_stdc" >&6; } 8326then :
7281if test $ac_cv_header_stdc = yes; then 8327 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
7282 8328
7283$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7284
7285fi 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
7286 8334
7287
7288for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
7289do :
7290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7293 cat >>confdefs.h <<_ACEOF
7294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7295_ACEOF
7296
7297fi 8335fi
7298done 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
7299 8342
7300 8343
7301# 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
7302# for constant arguments. Useless! 8345# for constant arguments. Useless!
7303{ $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
7304$as_echo_n "checking for working alloca.h... " >&6; } 8347printf %s "checking for working alloca.h... " >&6; }
7305if test "${ac_cv_working_alloca_h+set}" = set; then : 8348if test ${ac_cv_working_alloca_h+y}
7306 $as_echo_n "(cached) " >&6 8349then :
7307else 8350 printf %s "(cached) " >&6
8351else $as_nop
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h. */ 8353/* end confdefs.h. */
7310#include <alloca.h> 8354#include <alloca.h>
7311int 8355int
7312main () 8356main (void)
7313{ 8357{
7314char *p = (char *) alloca (2 * sizeof (int)); 8358char *p = (char *) alloca (2 * sizeof (int));
7315 if (p) return 0; 8359 if (p) return 0;
7316 ; 8360 ;
7317 return 0; 8361 return 0;
7318} 8362}
7319_ACEOF 8363_ACEOF
7320if ac_fn_c_try_link "$LINENO"; then : 8364if ac_fn_c_try_link "$LINENO"
8365then :
7321 ac_cv_working_alloca_h=yes 8366 ac_cv_working_alloca_h=yes
7322else 8367else $as_nop
7323 ac_cv_working_alloca_h=no 8368 ac_cv_working_alloca_h=no
7324fi 8369fi
7325rm -f core conftest.err conftest.$ac_objext \ 8370rm -f core conftest.err conftest.$ac_objext conftest.beam \
7326 conftest$ac_exeext conftest.$ac_ext 8371 conftest$ac_exeext conftest.$ac_ext
7327fi 8372fi
7328{ $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
7329$as_echo "$ac_cv_working_alloca_h" >&6; } 8374printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7330if test $ac_cv_working_alloca_h = yes; then 8375if test $ac_cv_working_alloca_h = yes; then
7331 8376
7332$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8377printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7333 8378
7334fi 8379fi
7335 8380
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7337$as_echo_n "checking for alloca... " >&6; } 8382printf %s "checking for alloca... " >&6; }
7338if test "${ac_cv_func_alloca_works+set}" = set; then : 8383if test ${ac_cv_func_alloca_works+y}
7339 $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
7340else 8389else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */ 8391/* end confdefs.h. */
8392#include <stdlib.h>
8393#include <stddef.h>
8394#ifndef alloca
7343#ifdef __GNUC__ 8395# ifdef __GNUC__
7344# define alloca __builtin_alloca 8396# define alloca __builtin_alloca
7345#else
7346# ifdef _MSC_VER 8397# elif defined _MSC_VER
7347# include <malloc.h> 8398# include <malloc.h>
7348# define alloca _alloca 8399# define alloca _alloca
7349# else 8400# else
7350# ifdef HAVE_ALLOCA_H 8401# ifdef __cplusplus
7351# include <alloca.h> 8402extern "C"
7352# else
7353# ifdef _AIX
7354 #pragma alloca
7355# else
7356# ifndef alloca /* predefined by HP cc +Olibcalls */
7357char *alloca ();
7358# endif
7359# endif
7360# endif 8403# endif
8404void *alloca (size_t);
7361# endif 8405# endif
7362#endif 8406#endif
7363 8407
7364int 8408int
7365main () 8409main (void)
7366{ 8410{
7367char *p = (char *) alloca (1); 8411char *p = (char *) alloca (1);
7368 if (p) return 0; 8412 if (p) return 0;
7369 ; 8413 ;
7370 return 0; 8414 return 0;
7371} 8415}
7372_ACEOF 8416_ACEOF
7373if ac_fn_c_try_link "$LINENO"; then : 8417if ac_fn_c_try_link "$LINENO"
8418then :
7374 ac_cv_func_alloca_works=yes 8419 ac_cv_func_alloca_works=yes
7375else 8420else $as_nop
7376 ac_cv_func_alloca_works=no 8421 ac_cv_func_alloca_works=no
7377fi 8422fi
7378rm -f core conftest.err conftest.$ac_objext \ 8423rm -f core conftest.err conftest.$ac_objext conftest.beam \
7379 conftest$ac_exeext conftest.$ac_ext 8424 conftest$ac_exeext conftest.$ac_ext
7380fi 8425fi
7381{ $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
7382$as_echo "$ac_cv_func_alloca_works" >&6; } 8427printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8428fi
7383 8429
7384if test $ac_cv_func_alloca_works = yes; then 8430if test $ac_cv_func_alloca_works = yes; then
7385 8431
7386$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8432printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7387 8433
7388else 8434else
7389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7390# that cause trouble. Some versions do not even contain alloca or 8436# that cause trouble. Some versions do not even contain alloca or
7391# 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,
7392# 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.
7393 8439
7394ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8440ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7395 8441
7396$as_echo "#define C_ALLOCA 1" >>confdefs.h 8442printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7397 8443
7398 8444
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7400$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7401if test "${ac_cv_os_cray+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h. */
7406#if defined CRAY && ! defined CRAY2
7407webecray
7408#else
7409wenotbecray
7410#endif
7411
7412_ACEOF
7413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7414 $EGREP "webecray" >/dev/null 2>&1; then :
7415 ac_cv_os_cray=yes
7416else
7417 ac_cv_os_cray=no
7418fi
7419rm -f conftest*
7420
7421fi
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7423$as_echo "$ac_cv_os_cray" >&6; }
7424if test $ac_cv_os_cray = yes; then
7425 for ac_func in _getb67 GETB67 getb67; do
7426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7427ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7428if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7429
7430cat >>confdefs.h <<_ACEOF
7431#define CRAY_STACKSEG_END $ac_func
7432_ACEOF
7433
7434 break
7435fi
7436
7437 done
7438fi
7439
7440{ $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
7441$as_echo_n "checking stack direction for C alloca... " >&6; } 8446printf %s "checking stack direction for C alloca... " >&6; }
7442if test "${ac_cv_c_stack_direction+set}" = set; then : 8447if test ${ac_cv_c_stack_direction+y}
7443 $as_echo_n "(cached) " >&6 8448then :
7444else 8449 printf %s "(cached) " >&6
8450else $as_nop
7445 if test "$cross_compiling" = yes; then : 8451 if test "$cross_compiling" = yes
8452then :
7446 ac_cv_c_stack_direction=0 8453 ac_cv_c_stack_direction=0
7447else 8454else $as_nop
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h. */ 8456/* end confdefs.h. */
7450$ac_includes_default 8457$ac_includes_default
7451int 8458int
7452find_stack_direction () 8459find_stack_direction (int *addr, int depth)
7453{ 8460{
7454 static char *addr = 0; 8461 int dir, dummy = 0;
7455 auto char dummy;
7456 if (addr == 0) 8462 if (! addr)
7457 {
7458 addr = &dummy; 8463 addr = &dummy;
7459 return find_stack_direction (); 8464 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7460 } 8465 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7461 else 8466 return dir + dummy;
7462 return (&dummy > addr) ? 1 : -1;
7463} 8467}
7464 8468
7465int 8469int
7466main () 8470main (int argc, char **argv)
7467{ 8471{
7468 return find_stack_direction () < 0; 8472 return find_stack_direction (0, argc + !argv + 20) < 0;
7469} 8473}
7470_ACEOF 8474_ACEOF
7471if ac_fn_c_try_run "$LINENO"; then : 8475if ac_fn_c_try_run "$LINENO"
8476then :
7472 ac_cv_c_stack_direction=1 8477 ac_cv_c_stack_direction=1
7473else 8478else $as_nop
7474 ac_cv_c_stack_direction=-1 8479 ac_cv_c_stack_direction=-1
7475fi 8480fi
7476rm -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 \
7477 conftest.$ac_objext conftest.beam conftest.$ac_ext 8482 conftest.$ac_objext conftest.beam conftest.$ac_ext
7478fi 8483fi
7479 8484
7480fi 8485fi
7481{ $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
7482$as_echo "$ac_cv_c_stack_direction" >&6; } 8487printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7483cat >>confdefs.h <<_ACEOF
7484#define STACK_DIRECTION $ac_cv_c_stack_direction 8488printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7485_ACEOF
7486 8489
7487 8490
7488fi 8491fi
7489 8492
7490 8493
7491 8494
7492ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 8495ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
7493if test "x$ac_cv_func_socket" = x""yes; then : 8496if test "x$ac_cv_func_socket" = xyes
8497then :
7494 8498
7495else 8499else $as_nop
7496 8500
7497 { $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
7498$as_echo_n "checking for connect in -lsocket... " >&6; } 8502printf %s "checking for connect in -lsocket... " >&6; }
7499if test "${ac_cv_lib_socket_connect+set}" = set; then : 8503if test ${ac_cv_lib_socket_connect+y}
7500 $as_echo_n "(cached) " >&6 8504then :
7501else 8505 printf %s "(cached) " >&6
8506else $as_nop
7502 ac_check_lib_save_LIBS=$LIBS 8507 ac_check_lib_save_LIBS=$LIBS
7503LIBS="-lsocket $LIBS" 8508LIBS="-lsocket $LIBS"
7504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */ 8510/* end confdefs.h. */
7506 8511
7507/* Override any GCC internal prototype to avoid an error. 8512/* Override any GCC internal prototype to avoid an error.
7508 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
7509 builtin and then its argument prototype would still apply. */ 8514 builtin and then its argument prototype would still apply. */
7510#ifdef __cplusplus
7511extern "C"
7512#endif
7513char connect (); 8515char connect ();
7514int 8516int
7515main () 8517main (void)
7516{ 8518{
7517return connect (); 8519return connect ();
7518 ; 8520 ;
7519 return 0; 8521 return 0;
7520} 8522}
7521_ACEOF 8523_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then : 8524if ac_fn_c_try_link "$LINENO"
8525then :
7523 ac_cv_lib_socket_connect=yes 8526 ac_cv_lib_socket_connect=yes
7524else 8527else $as_nop
7525 ac_cv_lib_socket_connect=no 8528 ac_cv_lib_socket_connect=no
7526fi 8529fi
7527rm -f core conftest.err conftest.$ac_objext \ 8530rm -f core conftest.err conftest.$ac_objext conftest.beam \
7528 conftest$ac_exeext conftest.$ac_ext 8531 conftest$ac_exeext conftest.$ac_ext
7529LIBS=$ac_check_lib_save_LIBS 8532LIBS=$ac_check_lib_save_LIBS
7530fi 8533fi
7531{ $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
7532$as_echo "$ac_cv_lib_socket_connect" >&6; } 8535printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
7533if test "x$ac_cv_lib_socket_connect" = x""yes; then : 8536if test "x$ac_cv_lib_socket_connect" = xyes
7534 cat >>confdefs.h <<_ACEOF 8537then :
7535#define HAVE_LIBSOCKET 1 8538 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
7536_ACEOF
7537 8539
7538 LIBS="-lsocket $LIBS" 8540 LIBS="-lsocket $LIBS"
7539 8541
7540fi 8542fi
7541 8543
7542 8544
7543fi 8545fi
7544 8546
7545ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8547ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7546if test "x$ac_cv_func_gethostbyname" = x""yes; then : 8548if test "x$ac_cv_func_gethostbyname" = xyes
8549then :
7547 8550
7548else 8551else $as_nop
7549 8552
7550 { $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
7551$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8554printf %s "checking for gethostbyname in -lnsl... " >&6; }
7552if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 8555if test ${ac_cv_lib_nsl_gethostbyname+y}
7553 $as_echo_n "(cached) " >&6 8556then :
7554else 8557 printf %s "(cached) " >&6
8558else $as_nop
7555 ac_check_lib_save_LIBS=$LIBS 8559 ac_check_lib_save_LIBS=$LIBS
7556LIBS="-lnsl $LIBS" 8560LIBS="-lnsl $LIBS"
7557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h. */ 8562/* end confdefs.h. */
7559 8563
7560/* Override any GCC internal prototype to avoid an error. 8564/* Override any GCC internal prototype to avoid an error.
7561 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
7562 builtin and then its argument prototype would still apply. */ 8566 builtin and then its argument prototype would still apply. */
7563#ifdef __cplusplus
7564extern "C"
7565#endif
7566char gethostbyname (); 8567char gethostbyname ();
7567int 8568int
7568main () 8569main (void)
7569{ 8570{
7570return gethostbyname (); 8571return gethostbyname ();
7571 ; 8572 ;
7572 return 0; 8573 return 0;
7573} 8574}
7574_ACEOF 8575_ACEOF
7575if ac_fn_c_try_link "$LINENO"; then : 8576if ac_fn_c_try_link "$LINENO"
8577then :
7576 ac_cv_lib_nsl_gethostbyname=yes 8578 ac_cv_lib_nsl_gethostbyname=yes
7577else 8579else $as_nop
7578 ac_cv_lib_nsl_gethostbyname=no 8580 ac_cv_lib_nsl_gethostbyname=no
7579fi 8581fi
7580rm -f core conftest.err conftest.$ac_objext \ 8582rm -f core conftest.err conftest.$ac_objext conftest.beam \
7581 conftest$ac_exeext conftest.$ac_ext 8583 conftest$ac_exeext conftest.$ac_ext
7582LIBS=$ac_check_lib_save_LIBS 8584LIBS=$ac_check_lib_save_LIBS
7583fi 8585fi
7584{ $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
7585$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8587printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
7586if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 8588if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
7587 cat >>confdefs.h <<_ACEOF 8589then :
7588#define HAVE_LIBNSL 1 8590 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
7589_ACEOF
7590 8591
7591 LIBS="-lnsl $LIBS" 8592 LIBS="-lnsl $LIBS"
7592 8593
7593fi 8594fi
7594 8595
7595 8596
7596fi 8597fi
7597 8598
7598 8599
7599 8600
7600for 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"
7601do : 8602if test "x$ac_cv_header_sys_inotify_h" = xyes
7602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8603then :
7603ac_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
7604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7605 cat >>confdefs.h <<_ACEOF
7606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7607_ACEOF
7608 8605
7609fi 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
7610 8611
7611done
7612
7613
7614for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
7615do :
7616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7617ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7618if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7619 cat >>confdefs.h <<_ACEOF
7620#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7621_ACEOF
7622
7623fi 8612fi
7624done 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
7625 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
7626 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
7627for ac_func in clock_gettime 8721 for ac_func in clock_gettime
7628do : 8722do :
7629 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"
7630if test "x$ac_cv_func_clock_gettime" = x""yes; then : 8724if test "x$ac_cv_func_clock_gettime" = xyes
7631 cat >>confdefs.h <<_ACEOF 8725then :
7632#define HAVE_CLOCK_GETTIME 1 8726 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7633_ACEOF
7634 8727
7635else 8728else $as_nop
7636 8729
7637 if test $(uname) = Linux; then 8730 if test $(uname) = Linux; then
7638 { $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
7639$as_echo_n "checking for clock_gettime syscall... " >&6; } 8732printf %s "checking for clock_gettime syscall... " >&6; }
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h. */ 8734/* end confdefs.h. */
7642#include <unistd.h> 8735#include <unistd.h>
7643 #include <sys/syscall.h> 8736 #include <sys/syscall.h>
7644 #include <time.h> 8737 #include <time.h>
7645int 8738int
7646main () 8739main (void)
7647{ 8740{
7648struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) 8741struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
7649 ; 8742 ;
7650 return 0; 8743 return 0;
7651} 8744}
7652_ACEOF 8745_ACEOF
7653if ac_fn_c_try_link "$LINENO"; then : 8746if ac_fn_c_try_link "$LINENO"
8747then :
7654 ac_have_clock_syscall=1 8748 ac_have_clock_syscall=1
7655 8749
7656$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h 8750printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
7657 8751
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7659$as_echo "yes" >&6; } 8753printf "%s\n" "yes" >&6; }
7660else 8754else $as_nop
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; } 8756printf "%s\n" "no" >&6; }
7663fi 8757fi
7664rm -f core conftest.err conftest.$ac_objext \ 8758rm -f core conftest.err conftest.$ac_objext conftest.beam \
7665 conftest$ac_exeext conftest.$ac_ext 8759 conftest$ac_exeext conftest.$ac_ext
7666 fi 8760 fi
7667 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
7668 { $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
7669$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 8763printf %s "checking for clock_gettime in -lrt... " >&6; }
7670if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : 8764if test ${ac_cv_lib_rt_clock_gettime+y}
7671 $as_echo_n "(cached) " >&6 8765then :
7672else 8766 printf %s "(cached) " >&6
8767else $as_nop
7673 ac_check_lib_save_LIBS=$LIBS 8768 ac_check_lib_save_LIBS=$LIBS
7674LIBS="-lrt $LIBS" 8769LIBS="-lrt $LIBS"
7675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h. */ 8771/* end confdefs.h. */
7677 8772
7678/* Override any GCC internal prototype to avoid an error. 8773/* Override any GCC internal prototype to avoid an error.
7679 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
7680 builtin and then its argument prototype would still apply. */ 8775 builtin and then its argument prototype would still apply. */
7681#ifdef __cplusplus
7682extern "C"
7683#endif
7684char clock_gettime (); 8776char clock_gettime ();
7685int 8777int
7686main () 8778main (void)
7687{ 8779{
7688return clock_gettime (); 8780return clock_gettime ();
7689 ; 8781 ;
7690 return 0; 8782 return 0;
7691} 8783}
7692_ACEOF 8784_ACEOF
7693if ac_fn_c_try_link "$LINENO"; then : 8785if ac_fn_c_try_link "$LINENO"
8786then :
7694 ac_cv_lib_rt_clock_gettime=yes 8787 ac_cv_lib_rt_clock_gettime=yes
7695else 8788else $as_nop
7696 ac_cv_lib_rt_clock_gettime=no 8789 ac_cv_lib_rt_clock_gettime=no
7697fi 8790fi
7698rm -f core conftest.err conftest.$ac_objext \ 8791rm -f core conftest.err conftest.$ac_objext conftest.beam \
7699 conftest$ac_exeext conftest.$ac_ext 8792 conftest$ac_exeext conftest.$ac_ext
7700LIBS=$ac_check_lib_save_LIBS 8793LIBS=$ac_check_lib_save_LIBS
7701fi 8794fi
7702{ $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
7703$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 8796printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
7704if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : 8797if test "x$ac_cv_lib_rt_clock_gettime" = xyes
7705 cat >>confdefs.h <<_ACEOF 8798then :
7706#define HAVE_LIBRT 1 8799 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
7707_ACEOF
7708 8800
7709 LIBS="-lrt $LIBS" 8801 LIBS="-lrt $LIBS"
7710 8802
7711fi 8803fi
7712 8804
7713 unset ac_cv_func_clock_gettime 8805 unset ac_cv_func_clock_gettime
7714 for ac_func in clock_gettime
7715do :
7716 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"
7717if test "x$ac_cv_func_clock_gettime" = x""yes; then : 8807if test "x$ac_cv_func_clock_gettime" = xyes
7718 cat >>confdefs.h <<_ACEOF 8808then :
7719#define HAVE_CLOCK_GETTIME 1 8809 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7720_ACEOF
7721 8810
7722fi 8811fi
8812
8813 fi
8814
8815fi
8816
7723done 8817done
7724 8818
7725 fi
7726 8819
7727fi
7728done
7729
7730
7731for ac_func in nanosleep 8820 for ac_func in nanosleep
7732do : 8821do :
7733 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 8822 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7734if test "x$ac_cv_func_nanosleep" = x""yes; then : 8823if test "x$ac_cv_func_nanosleep" = xyes
7735 cat >>confdefs.h <<_ACEOF 8824then :
7736#define HAVE_NANOSLEEP 1 8825 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
7737_ACEOF
7738 8826
7739else 8827else $as_nop
7740 8828
7741 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 8829 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
7742 { $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
7743$as_echo_n "checking for nanosleep in -lrt... " >&6; } 8831printf %s "checking for nanosleep in -lrt... " >&6; }
7744if test "${ac_cv_lib_rt_nanosleep+set}" = set; then : 8832if test ${ac_cv_lib_rt_nanosleep+y}
7745 $as_echo_n "(cached) " >&6 8833then :
7746else 8834 printf %s "(cached) " >&6
8835else $as_nop
7747 ac_check_lib_save_LIBS=$LIBS 8836 ac_check_lib_save_LIBS=$LIBS
7748LIBS="-lrt $LIBS" 8837LIBS="-lrt $LIBS"
7749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h. */ 8839/* end confdefs.h. */
7751 8840
7752/* Override any GCC internal prototype to avoid an error. 8841/* Override any GCC internal prototype to avoid an error.
7753 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
7754 builtin and then its argument prototype would still apply. */ 8843 builtin and then its argument prototype would still apply. */
7755#ifdef __cplusplus
7756extern "C"
7757#endif
7758char nanosleep (); 8844char nanosleep ();
7759int 8845int
7760main () 8846main (void)
7761{ 8847{
7762return nanosleep (); 8848return nanosleep ();
7763 ; 8849 ;
7764 return 0; 8850 return 0;
7765} 8851}
7766_ACEOF 8852_ACEOF
7767if ac_fn_c_try_link "$LINENO"; then : 8853if ac_fn_c_try_link "$LINENO"
8854then :
7768 ac_cv_lib_rt_nanosleep=yes 8855 ac_cv_lib_rt_nanosleep=yes
7769else 8856else $as_nop
7770 ac_cv_lib_rt_nanosleep=no 8857 ac_cv_lib_rt_nanosleep=no
7771fi 8858fi
7772rm -f core conftest.err conftest.$ac_objext \ 8859rm -f core conftest.err conftest.$ac_objext conftest.beam \
7773 conftest$ac_exeext conftest.$ac_ext 8860 conftest$ac_exeext conftest.$ac_ext
7774LIBS=$ac_check_lib_save_LIBS 8861LIBS=$ac_check_lib_save_LIBS
7775fi 8862fi
7776{ $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
7777$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 8864printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
7778if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then : 8865if test "x$ac_cv_lib_rt_nanosleep" = xyes
7779 cat >>confdefs.h <<_ACEOF 8866then :
7780#define HAVE_LIBRT 1 8867 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
7781_ACEOF
7782 8868
7783 LIBS="-lrt $LIBS" 8869 LIBS="-lrt $LIBS"
7784 8870
7785fi 8871fi
7786 8872
7787 unset ac_cv_func_nanosleep 8873 unset ac_cv_func_nanosleep
7788 for ac_func in nanosleep
7789do :
7790 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 8874 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7791if test "x$ac_cv_func_nanosleep" = x""yes; then : 8875if test "x$ac_cv_func_nanosleep" = xyes
7792 cat >>confdefs.h <<_ACEOF 8876then :
7793#define HAVE_NANOSLEEP 1 8877 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
7794_ACEOF
7795 8878
7796fi 8879fi
8880
8881 fi
8882
8883fi
8884
7797done 8885done
7798 8886
7799 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 :
7800 8891
7801fi
7802done
7803 8892
8893printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
7804 8894
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5 8895
7806$as_echo_n "checking for ceil in -lm... " >&6; } 8896fi
7807if test "${ac_cv_lib_m_ceil+set}" = set; then : 8897
7808 $as_echo_n "(cached) " >&6 8898
7809else 8899if test -z "$LIBEV_M4_AVOID_LIBM"; then
7810 ac_check_lib_save_LIBS=$LIBS 8900 LIBM=m
7811LIBS="-lm $LIBS" 8901fi
8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
8903printf %s "checking for library containing floor... " >&6; }
8904if test ${ac_cv_search_floor+y}
8905then :
8906 printf %s "(cached) " >&6
8907else $as_nop
8908 ac_func_search_save_LIBS=$LIBS
7812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */ 8910/* end confdefs.h. */
7814 8911
7815/* Override any GCC internal prototype to avoid an error. 8912/* Override any GCC internal prototype to avoid an error.
7816 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
7817 builtin and then its argument prototype would still apply. */ 8914 builtin and then its argument prototype would still apply. */
7818#ifdef __cplusplus 8915char floor ();
7819extern "C"
7820#endif
7821char ceil ();
7822int 8916int
7823main () 8917main (void)
7824{ 8918{
7825return ceil (); 8919return floor ();
7826 ; 8920 ;
7827 return 0; 8921 return 0;
7828} 8922}
7829_ACEOF 8923_ACEOF
8924for ac_lib in '' $LIBM
8925do
8926 if test -z "$ac_lib"; then
8927 ac_res="none required"
8928 else
8929 ac_res=-l$ac_lib
8930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8931 fi
7830if ac_fn_c_try_link "$LINENO"; then : 8932 if ac_fn_c_try_link "$LINENO"
7831 ac_cv_lib_m_ceil=yes 8933then :
7832else 8934 ac_cv_search_floor=$ac_res
7833 ac_cv_lib_m_ceil=no
7834fi 8935fi
7835rm -f core conftest.err conftest.$ac_objext \ 8936rm -f core conftest.err conftest.$ac_objext conftest.beam \
7836 conftest$ac_exeext conftest.$ac_ext 8937 conftest$ac_exeext
7837LIBS=$ac_check_lib_save_LIBS 8938 if test ${ac_cv_search_floor+y}
8939then :
8940 break
7838fi 8941fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5 8942done
7840$as_echo "$ac_cv_lib_m_ceil" >&6; } 8943if test ${ac_cv_search_floor+y}
7841if test "x$ac_cv_lib_m_ceil" = x""yes; then : 8944then :
7842 cat >>confdefs.h <<_ACEOF
7843#define HAVE_LIBM 1
7844_ACEOF
7845 8945
7846 LIBS="-lm $LIBS" 8946else $as_nop
8947 ac_cv_search_floor=no
8948fi
8949rm conftest.$ac_ext
8950LIBS=$ac_func_search_save_LIBS
8951fi
8952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
8953printf "%s\n" "$ac_cv_search_floor" >&6; }
8954ac_res=$ac_cv_search_floor
8955if test "$ac_res" != no
8956then :
8957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958
8959printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
7847 8960
7848fi 8961fi
7849 8962
7850 8963
7851 8964
7883 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
7884 eval ac_val=\$$ac_var 8997 eval ac_val=\$$ac_var
7885 case $ac_val in #( 8998 case $ac_val in #(
7886 *${as_nl}*) 8999 *${as_nl}*)
7887 case $ac_var in #( 9000 case $ac_var in #(
7888 *_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
7889$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;} ;;
7890 esac 9003 esac
7891 case $ac_var in #( 9004 case $ac_var in #(
7892 _ | IFS | as_nl) ;; #( 9005 _ | IFS | as_nl) ;; #(
7893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7894 *) { eval $ac_var=; unset $ac_var;} ;; 9007 *) { eval $ac_var=; unset $ac_var;} ;;
7914) | 9027) |
7915 sed ' 9028 sed '
7916 /^ac_cv_env_/b end 9029 /^ac_cv_env_/b end
7917 t clear 9030 t clear
7918 :clear 9031 :clear
7919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9032 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7920 t end 9033 t end
7921 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922 :end' >>confcache 9035 :end' >>confcache
7923if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7924 if test -w "$cache_file"; then 9037 if test -w "$cache_file"; then
7925 test "x$cache_file" != "x/dev/null" && 9038 if test "x$cache_file" != "x/dev/null"; then
7926 { $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
7927$as_echo "$as_me: updating cache $cache_file" >&6;} 9040printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9041 if test ! -f "$cache_file" || test -h "$cache_file"; then
7928 cat confcache >$cache_file 9042 cat confcache >"$cache_file"
9043 else
9044 case $cache_file in #(
9045 */* | ?:*)
9046 mv -f confcache "$cache_file"$$ &&
9047 mv -f "$cache_file"$$ "$cache_file" ;; #(
9048 *)
9049 mv -f confcache "$cache_file" ;;
9050 esac
9051 fi
9052 fi
7929 else 9053 else
7930 { $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
7931$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9055printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7932 fi 9056 fi
7933fi 9057fi
7934rm -f confcache 9058rm -f confcache
7935 9059
7936 9060
7937 9061
7938# Check whether --with-kernel was given. 9062# Check whether --with-kernel was given.
7939if test "${with_kernel+set}" = set; then : 9063if test ${with_kernel+y}
9064then :
7940 withval=$with_kernel; kerneldir="$withval" 9065 withval=$with_kernel; kerneldir="$withval"
7941else 9066else $as_nop
7942 kerneldir="/usr/src/linux" 9067 kerneldir="/usr/src/linux"
7943 9068
7944fi 9069fi
7945 9070
7946 9071
7947{ $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
7948$as_echo_n "checking for linux/if_tun.h... " >&6; } 9073printf %s "checking for linux/if_tun.h... " >&6; }
7949if test "${tinc_cv_linux_if_tun_h+set}" = set; then : 9074if test ${tinc_cv_linux_if_tun_h+y}
7950 $as_echo_n "(cached) " >&6 9075then :
7951else 9076 printf %s "(cached) " >&6
9077else $as_nop
7952 9078
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h. */ 9080/* end confdefs.h. */
7955#include "$kerneldir/include/linux/if_tun.h" 9081#include "$kerneldir/include/linux/if_tun.h"
7956int 9082int
7957main () 9083main (void)
7958{ 9084{
7959int a = IFF_TAP; 9085int a = IFF_TAP;
7960 ; 9086 ;
7961 return 0; 9087 return 0;
7962} 9088}
7963_ACEOF 9089_ACEOF
7964if ac_fn_cxx_try_compile "$LINENO"; then : 9090if ac_fn_cxx_try_compile "$LINENO"
9091then :
7965 if_tun_h="\"$kerneldir/include/linux/if_tun.h\"" 9092 if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
7966else 9093else $as_nop
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h. */ 9095/* end confdefs.h. */
7969#include <linux/if_tun.h> 9096#include <linux/if_tun.h>
7970int 9097int
7971main () 9098main (void)
7972{ 9099{
7973int a = IFF_TAP; 9100int a = IFF_TAP;
7974 ; 9101 ;
7975 return 0; 9102 return 0;
7976} 9103}
7977_ACEOF 9104_ACEOF
7978if ac_fn_cxx_try_compile "$LINENO"; then : 9105if ac_fn_cxx_try_compile "$LINENO"
9106then :
7979 if_tun_h="default" 9107 if_tun_h="default"
7980else 9108else $as_nop
7981 if_tun_h="no" 9109 if_tun_h="no"
7982 9110
7983fi 9111fi
7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7985 9113
7986fi 9114fi
7987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 9116
7989 if test $if_tun_h = no; then 9117 if test $if_tun_h = no; then
7990 tinc_cv_linux_if_tun_h=none 9118 tinc_cv_linux_if_tun_h=none
7991 else 9119 else
7992 tinc_cv_linux_if_tun_h="$if_tun_h" 9120 tinc_cv_linux_if_tun_h="$if_tun_h"
7993 fi 9121 fi
7994 9122
7995fi 9123fi
7996{ $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
7997$as_echo "$tinc_cv_linux_if_tun_h" >&6; } 9125printf "%s\n" "$tinc_cv_linux_if_tun_h" >&6; }
7998 9126
7999if test $tinc_cv_linux_if_tun_h != none; then 9127if test $tinc_cv_linux_if_tun_h != none; then
8000 9128
8001$as_echo "#define HAVE_TUNTAP 1" >>confdefs.h 9129printf "%s\n" "#define HAVE_TUNTAP 1" >>confdefs.h
8002 9130
8003 if test $tinc_cv_linux_if_tun_h != default; then 9131 if test $tinc_cv_linux_if_tun_h != default; then
8004 9132
8005cat >>confdefs.h <<_ACEOF
8006#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
8007_ACEOF
8008 9134
8009 fi 9135 fi
8010fi 9136fi
8011 9137
8012 9138
8013 9139
8014 9140
8015 9141
8016 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8017 9142
8018 9143
8019# Check whether --with-openssl-include was given.
8020if test "${with_openssl_include+set}" = set; then :
8021 withval=$with_openssl_include; openssl_include="$withval"
8022 CFLAGS="$CFLAGS -I$withval"
8023 CPPFLAGS="$CPPFLAGS -I$withval"
8024 9144
8025fi
8026 9145
8027 9146
8028 9147
8029# Check whether --with-openssl-lib was given. 9148if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8030if test "${with_openssl_lib+set}" = set; then : 9149 if test -n "$ac_tool_prefix"; then
8031 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.
8032 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
8033 9181
9182 ;;
9183esac
8034fi 9184fi
8035 9185PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8036 9186if test -n "$PKG_CONFIG"; then
8037 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
8038do : 9188printf "%s\n" "$PKG_CONFIG" >&6; }
8039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8042 cat >>confdefs.h <<_ACEOF
8043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044_ACEOF
8045
8046else 9189else
8047 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5 ; break 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 9191printf "%s\n" "no" >&6; }
8049fi 9192fi
8050 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
8051done 9226done
9227 done
9228IFS=$as_save_IFS
8052 9229
8053 9230 ;;
8054 CPPFLAGS="$tinc_ac_save_CPPFLAGS" 9231esac
8055 9232fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_version in -lcrypto" >&5 9233ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8057$as_echo_n "checking for SHA1_version in -lcrypto... " >&6; } 9234if test -n "$ac_pt_PKG_CONFIG"; then
8058if test "${ac_cv_lib_crypto_SHA1_version+set}" = set; then : 9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8059 $as_echo_n "(cached) " >&6 9236printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8060else 9237else
8061 ac_check_lib_save_LIBS=$LIBS 9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062LIBS="-lcrypto $LIBS" 9239printf "%s\n" "no" >&6; }
9240fi
9241
9242 if test "x$ac_pt_PKG_CONFIG" = x; then
9243 PKG_CONFIG=""
9244 else
9245 case $cross_compiling:$ac_tool_warned in
9246yes:)
9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9248printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9249ac_tool_warned=yes ;;
9250esac
9251 PKG_CONFIG=$ac_pt_PKG_CONFIG
9252 fi
9253else
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=""
9269 fi
9270fi
9271
9272pkg_failed=no
9273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto >= 1" >&5
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
9287else
9288 pkg_failed=yes
9289fi
9290 else
9291 pkg_failed=untried
9292fi
9293if test -n "$LIBCRYPTO_LIBS"; then
9294 pkg_cv_LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS"
9295 elif test -n "$PKG_CONFIG"; then
9296 if test -n "$PKG_CONFIG" && \
9297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1\""; } >&5
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
9304else
9305 pkg_failed=yes
9306fi
9307 else
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
9319else
9320 _pkg_short_errors_supported=no
9321fi
9322 if test $_pkg_short_errors_supported = yes; then
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
9329
9330 as_fn_error $? "Package requirements (libcrypto >= 1) were not met:
9331
9332$LIBCRYPTO_PKG_ERRORS
9333
9334Consider adjusting the PKG_CONFIG_PATH environment variable if you
9335installed software in a non-standard prefix.
9336
9337Alternatively, you may set the environment variables LIBCRYPTO_CFLAGS
9338and LIBCRYPTO_LIBS to avoid the need to call pkg-config.
9339See the pkg-config man page for more details." "$LINENO" 5
9340elif test $pkg_failed = untried; then
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342printf "%s\n" "no" >&6; }
9343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9344printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9345as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
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; }
9355else
9356 LIBCRYPTO_CFLAGS=$pkg_cv_LIBCRYPTO_CFLAGS
9357 LIBCRYPTO_LIBS=$pkg_cv_LIBCRYPTO_LIBS
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9359printf "%s\n" "yes" >&6; }
9360
9361fi
9362
9363# Check whether --enable-threads was given.
9364if test ${enable_threads+y}
9365then :
9366 enableval=$enable_threads; try_threads=$enableval
9367else $as_nop
9368 try_threads=yes
9369
9370fi
9371
9372
9373if test "x$try_threads" = xyes; then
9374 ac_fn_cxx_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9375if test "x$ac_cv_header_pthread_h" = xyes
9376then :
9377
9378 LIBS="$LIBS -lpthread"
8063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */ 9380/* end confdefs.h. */
8065 9381#include <pthread.h>
8066/* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
8069#ifdef __cplusplus
8070extern "C"
8071#endif
8072char SHA1_version ();
8073int 9382int
8074main () 9383main (void)
8075{ 9384{
8076return SHA1_version (); 9385pthread_t id; pthread_create (&id, 0, 0, 0);
8077 ; 9386 ;
8078 return 0; 9387 return 0;
8079} 9388}
8080_ACEOF 9389_ACEOF
8081if ac_fn_cxx_try_link "$LINENO"; then : 9390if ac_fn_cxx_try_compile "$LINENO"
8082 ac_cv_lib_crypto_SHA1_version=yes 9391then :
8083else
8084 ac_cv_lib_crypto_SHA1_version=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088LIBS=$ac_check_lib_save_LIBS
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_version" >&5
8091$as_echo "$ac_cv_lib_crypto_SHA1_version" >&6; }
8092if test "x$ac_cv_lib_crypto_SHA1_version" = x""yes; then :
8093 LIBS="$LIBS -lcrypto"
8094else
8095 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5
8096 9392
8097fi 9393printf "%s\n" "#define ENABLE_PTHREADS 1" >>confdefs.h
8098 9394
8099 9395
8100 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8101do :
8102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8103ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8104if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8105 cat >>confdefs.h <<_ACEOF
8106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8107_ACEOF
8108
8109fi 9396fi
8110done 9397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8111 9398
8112
8113 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8114if test "x$ac_cv_func_dlopen" = x""yes; then :
8115
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8118$as_echo_n "checking for dlopen in -ldl... " >&6; }
8119if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121else
8122 ac_check_lib_save_LIBS=$LIBS
8123LIBS="-ldl $LIBS"
8124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125/* end confdefs.h. */
8126
8127/* Override any GCC internal prototype to avoid an error.
8128 Use char because int might match the return type of a GCC
8129 builtin and then its argument prototype would still apply. */
8130#ifdef __cplusplus
8131extern "C"
8132#endif
8133char dlopen ();
8134int
8135main ()
8136{
8137return dlopen ();
8138 ;
8139 return 0;
8140}
8141_ACEOF
8142if ac_fn_cxx_try_link "$LINENO"; then :
8143 ac_cv_lib_dl_dlopen=yes
8144else
8145 ac_cv_lib_dl_dlopen=no
8146fi 9399fi
8147rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8149LIBS=$ac_check_lib_save_LIBS
8150fi
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8152$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8153if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8154 LIBS="$LIBS -ldl"
8155else
8156 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8157 9400
8158fi
8159
8160
8161fi
8162
8163
8164if test "x$openssl_include" != x; then
8165 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8166fi 9401fi
8167 9402
8168# Check whether --enable-static-daemon was given. 9403# Check whether --enable-static-daemon was given.
8169if test "${enable_static_daemon+set}" = set; then : 9404if test ${enable_static_daemon+y}
9405then :
8170 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static 9406 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
8171 9407
8172fi 9408fi
8173 9409
8174 9410
8175 9411
8176 9412
8177
8178
8179if test x$rohc = xtrue; then 9413 if test x$rohc = xtrue; then
8180 ROHC_TRUE= 9414 ROHC_TRUE=
8181 ROHC_FALSE='#' 9415 ROHC_FALSE='#'
8182else 9416else
8183 ROHC_TRUE='#' 9417 ROHC_TRUE='#'
8184 ROHC_FALSE= 9418 ROHC_FALSE=
8186 9420
8187 9421
8188 9422
8189ICMP=1 9423ICMP=1
8190# Check whether --enable-icmp was given. 9424# Check whether --enable-icmp was given.
8191if test "${enable_icmp+set}" = set; then : 9425if test ${enable_icmp+y}
9426then :
8192 enableval=$enable_icmp; if test "x$enableval" = xno; then 9427 enableval=$enable_icmp; if test "x$enableval" = xno; then
8193 ICMP=0 9428 ICMP=0
8194 fi 9429 fi
8195 9430
8196fi 9431fi
8197 9432
8198if test "x$ICMP" = x1; then 9433if test "x$ICMP" = x1; then
8199 9434
8200cat >>confdefs.h <<_ACEOF 9435printf "%s\n" "#define ENABLE_ICMP 1" >>confdefs.h
8201#define ENABLE_ICMP 1
8202_ACEOF
8203 9436
8204fi 9437fi
8205 9438
8206TCP=1 9439TCP=1
8207# Check whether --enable-tcp was given. 9440# Check whether --enable-tcp was given.
8208if test "${enable_tcp+set}" = set; then : 9441if test ${enable_tcp+y}
9442then :
8209 enableval=$enable_tcp; if test "x$enableval" = xno; then 9443 enableval=$enable_tcp; if test "x$enableval" = xno; then
8210 TCP=0 9444 TCP=0
8211 fi 9445 fi
8212 9446
8213fi 9447fi
8214 9448
8215if test "x$TCP" = x1; then 9449if test "x$TCP" = x1; then
8216 9450
8217cat >>confdefs.h <<_ACEOF 9451printf "%s\n" "#define ENABLE_TCP 1" >>confdefs.h
8218#define ENABLE_TCP 1
8219_ACEOF
8220 9452
8221fi 9453fi
8222 9454
8223HTTP=1 9455HTTP=1
8224# Check whether --enable-http-proxy was given. 9456# Check whether --enable-http-proxy was given.
8225if test "${enable_http_proxy+set}" = set; then : 9457if test ${enable_http_proxy+y}
9458then :
8226 enableval=$enable_http_proxy; if test "x$enableval" = xno; then 9459 enableval=$enable_http_proxy; if test "x$enableval" = xno; then
8227 HTTP=0 9460 HTTP=0
8228 fi 9461 fi
8229 9462
8230fi 9463fi
8231 9464
8232if test "x$HTTP" = x1; then 9465if test "x$HTTP" = x1; then
8233 9466
8234cat >>confdefs.h <<_ACEOF 9467printf "%s\n" "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
8235#define ENABLE_HTTP_PROXY 1
8236_ACEOF
8237 9468
8238fi 9469fi
8239 9470
8240# Check whether --enable-dns was given. 9471# Check whether --enable-dns was given.
8241if test "${enable_dns+set}" = set; then : 9472if test ${enable_dns+y}
9473then :
8242 enableval=$enable_dns; 9474 enableval=$enable_dns;
8243 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"
8244if test "x$ac_cv_header_gmp_h" = x""yes; then : 9476if test "x$ac_cv_header_gmp_h" = xyes
9477then :
8245 9478
8246else 9479else $as_nop
8247 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
8248fi 9481fi
8249 9482
8250
8251 { $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
8252$as_echo_n "checking for main in -lgmp... " >&6; } 9484printf %s "checking for main in -lgmp... " >&6; }
8253if test "${ac_cv_lib_gmp_main+set}" = set; then : 9485if test ${ac_cv_lib_gmp_main+y}
8254 $as_echo_n "(cached) " >&6 9486then :
8255else 9487 printf %s "(cached) " >&6
9488else $as_nop
8256 ac_check_lib_save_LIBS=$LIBS 9489 ac_check_lib_save_LIBS=$LIBS
8257LIBS="-lgmp $LIBS" 9490LIBS="-lgmp $LIBS"
8258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h. */ 9492/* end confdefs.h. */
8260 9493
8261 9494namespace conftest {
9495 extern "C" int main ();
9496}
8262int 9497int
8263main () 9498main (void)
8264{ 9499{
8265return main (); 9500return conftest::main ();
8266 ; 9501 ;
8267 return 0; 9502 return 0;
8268} 9503}
8269_ACEOF 9504_ACEOF
8270if ac_fn_cxx_try_link "$LINENO"; then : 9505if ac_fn_cxx_try_link "$LINENO"
9506then :
8271 ac_cv_lib_gmp_main=yes 9507 ac_cv_lib_gmp_main=yes
8272else 9508else $as_nop
8273 ac_cv_lib_gmp_main=no 9509 ac_cv_lib_gmp_main=no
8274fi 9510fi
8275rm -f core conftest.err conftest.$ac_objext \ 9511rm -f core conftest.err conftest.$ac_objext conftest.beam \
8276 conftest$ac_exeext conftest.$ac_ext 9512 conftest$ac_exeext conftest.$ac_ext
8277LIBS=$ac_check_lib_save_LIBS 9513LIBS=$ac_check_lib_save_LIBS
8278fi 9514fi
8279{ $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
8280$as_echo "$ac_cv_lib_gmp_main" >&6; } 9516printf "%s\n" "$ac_cv_lib_gmp_main" >&6; }
8281if test "x$ac_cv_lib_gmp_main" = x""yes; then : 9517if test "x$ac_cv_lib_gmp_main" = xyes
8282 cat >>confdefs.h <<_ACEOF 9518then :
8283#define HAVE_LIBGMP 1 9519 printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
8284_ACEOF
8285 9520
8286 LIBS="-lgmp $LIBS" 9521 LIBS="-lgmp $LIBS"
8287 9522
8288else 9523else $as_nop
8289 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
8290fi 9525fi
8291 9526
8292 9527
8293 9528
8294cat >>confdefs.h <<_ACEOF 9529printf "%s\n" "#define ENABLE_DNS 1" >>confdefs.h
8295#define ENABLE_DNS 1
8296_ACEOF
8297 9530
8298 9531
8299 9532
8300fi 9533fi
8301 9534
8302 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
8303HMAC=12 9548HMACSIZE=12
8304# Check whether --enable-hmac-length was given. 9549# Check whether --enable-hmac-length was given.
8305if test "${enable_hmac_length+set}" = set; then : 9550if test ${enable_hmac_length+y}
9551then :
8306 enableval=$enable_hmac_length; HMAC=$enableval 9552 enableval=$enable_hmac_length; HMACSIZE=$enableval
8307 9553
8308fi 9554fi
8309 9555
8310 9556
8311cat >>confdefs.h <<_ACEOF 9557printf "%s\n" "#define HMACLENGTH $HMACSIZE" >>confdefs.h
8312#define HMACLENGTH $HMAC
8313_ACEOF
8314
8315
8316RAND=8
8317# Check whether --enable-rand-length was given.
8318if test "${enable_rand_length+set}" = set; then :
8319 enableval=$enable_rand_length; RAND=$enableval
8320
8321fi
8322
8323
8324cat >>confdefs.h <<_ACEOF
8325#define RAND_SIZE $RAND
8326_ACEOF
8327 9558
8328 9559
8329MTU=1500 9560MTU=1500
8330# Check whether --enable-max-mtu was given. 9561# Check whether --enable-max-mtu was given.
8331if test "${enable_max_mtu+set}" = set; then : 9562if test ${enable_max_mtu+y}
9563then :
8332 enableval=$enable_max_mtu; MTU=$enableval 9564 enableval=$enable_max_mtu; MTU=$enableval
8333 9565
8334fi 9566fi
8335 9567
8336 9568
8337cat >>confdefs.h <<_ACEOF 9569printf "%s\n" "#define MAX_MTU ($MTU + 14)" >>confdefs.h
8338#define MAX_MTU $MTU + 14
8339_ACEOF
8340 9570
8341 9571
8342COMPRESS=1 9572COMPRESS=1
8343# Check whether --enable-compression was given. 9573# Check whether --enable-compression was given.
8344if test "${enable_compression+set}" = set; then : 9574if test ${enable_compression+y}
9575then :
8345 enableval=$enable_compression; if test "x$enableval" = xno; then 9576 enableval=$enable_compression; if test "x$enableval" = xno; then
8346 COMPRESS=0 9577 COMPRESS=0
8347 fi 9578 fi
8348 9579
8349fi 9580fi
8350 9581
8351 9582
8352cat >>confdefs.h <<_ACEOF 9583printf "%s\n" "#define ENABLE_COMPRESSION $COMPRESS" >>confdefs.h
8353#define ENABLE_COMPRESSION $COMPRESS
8354_ACEOF
8355 9584
8356 9585
8357CIPHER=aes_128_cbc 9586CIPHER=aes_128_ctr
8358# Check whether --enable-cipher was given. 9587# Check whether --enable-cipher was given.
8359if test "${enable_cipher+set}" = set; then : 9588if test ${enable_cipher+y}
9589then :
8360 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
8361 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
8362 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
8363 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
8364 9596
8365fi 9597fi
8366 9598
8367 9599
8368cat >>confdefs.h <<_ACEOF 9600printf "%s\n" "#define ENABLE_CIPHER EVP_${CIPHER}" >>confdefs.h
8369#define ENABLE_CIPHER EVP_${CIPHER}
8370_ACEOF
8371 9601
8372 9602
8373DIGEST=ripemd160 9603HMAC=sha1
8374# Check whether --enable-digest was given. 9604# Check whether --enable-hmac-digest was given.
8375if 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
8376 enableval=$enable_digest; if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi 9624 if test "x$enableval" = xsha512 ; then AUTH=sha512 ; fi
8377 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi 9625 if test "x$enableval" = xsha256 ; then AUTH=sha256 ; fi
8378 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
8379 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
8380 if test "x$enableval" = xmd5 ; then DIGEST=md5 ; fi
8381 if test "x$enableval" = xmd4 ; then DIGEST=md4 ; fi
8382 9626
8383fi 9627fi
8384 9628
8385 9629
8386cat >>confdefs.h <<_ACEOF 9630printf "%s\n" "#define ENABLE_AUTH EVP_${AUTH}" >>confdefs.h
8387#define ENABLE_DIGEST EVP_${DIGEST}
8388_ACEOF
8389 9631
8390 9632
8391if $CXX -v --help 2>&1 | grep -q fno-rtti; then 9633if $CXX -v --help 2>&1 | grep -q fno-rtti; then
8392 CXXFLAGS="$CXXFLAGS -fno-rtti" 9634 CXXFLAGS="$CXXFLAGS -fno-rtti"
8393fi 9635fi
8428 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
8429 eval ac_val=\$$ac_var 9671 eval ac_val=\$$ac_var
8430 case $ac_val in #( 9672 case $ac_val in #(
8431 *${as_nl}*) 9673 *${as_nl}*)
8432 case $ac_var in #( 9674 case $ac_var in #(
8433 *_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
8434$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;} ;;
8435 esac 9677 esac
8436 case $ac_var in #( 9678 case $ac_var in #(
8437 _ | IFS | as_nl) ;; #( 9679 _ | IFS | as_nl) ;; #(
8438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8439 *) { eval $ac_var=; unset $ac_var;} ;; 9681 *) { eval $ac_var=; unset $ac_var;} ;;
8459) | 9701) |
8460 sed ' 9702 sed '
8461 /^ac_cv_env_/b end 9703 /^ac_cv_env_/b end
8462 t clear 9704 t clear
8463 :clear 9705 :clear
8464 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9706 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8465 t end 9707 t end
8466 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8467 :end' >>confcache 9709 :end' >>confcache
8468if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8469 if test -w "$cache_file"; then 9711 if test -w "$cache_file"; then
8470 test "x$cache_file" != "x/dev/null" && 9712 if test "x$cache_file" != "x/dev/null"; then
8471 { $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
8472$as_echo "$as_me: updating cache $cache_file" >&6;} 9714printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9715 if test ! -f "$cache_file" || test -h "$cache_file"; then
8473 cat confcache >$cache_file 9716 cat confcache >"$cache_file"
9717 else
9718 case $cache_file in #(
9719 */* | ?:*)
9720 mv -f confcache "$cache_file"$$ &&
9721 mv -f "$cache_file"$$ "$cache_file" ;; #(
9722 *)
9723 mv -f confcache "$cache_file" ;;
9724 esac
9725 fi
9726 fi
8474 else 9727 else
8475 { $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
8476$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9729printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8477 fi 9730 fi
8478fi 9731fi
8479rm -f confcache 9732rm -f confcache
8480 9733
8481test "x$prefix" = xNONE && prefix=$ac_default_prefix 9734test "x$prefix" = xNONE && prefix=$ac_default_prefix
8488ac_ltlibobjs= 9741ac_ltlibobjs=
8489U= 9742U=
8490for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8491 # 1. Remove the extension, and $U if already installed. 9744 # 1. Remove the extension, and $U if already installed.
8492 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8493 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9746 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8494 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8495 # will be set to the directory where LIBOBJS objects are built. 9748 # will be set to the directory where LIBOBJS objects are built.
8496 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9749 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8497 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9750 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8498done 9751done
8499LIBOBJS=$ac_libobjs 9752LIBOBJS=$ac_libobjs
8500 9753
8501LTLIBOBJS=$ac_ltlibobjs 9754LTLIBOBJS=$ac_ltlibobjs
8502 9755
8503 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; }
9765 if test -n "$EXEEXT"; then
9766 am__EXEEXT_TRUE=
9767 am__EXEEXT_FALSE='#'
9768else
9769 am__EXEEXT_TRUE='#'
9770 am__EXEEXT_FALSE=
9771fi
9772
8504if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 9773if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8505 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 9774 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8506Usually this means the macro was only invoked conditionally." "$LINENO" 5 9775Usually this means the macro was only invoked conditionally." "$LINENO" 5
8507fi 9776fi
8508if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9777if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8520if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then 9789if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then
8521 as_fn_error $? "conditional \"ROHC\" was never defined. 9790 as_fn_error $? "conditional \"ROHC\" was never defined.
8522Usually this means the macro was only invoked conditionally." "$LINENO" 5 9791Usually this means the macro was only invoked conditionally." "$LINENO" 5
8523fi 9792fi
8524 9793
8525: ${CONFIG_STATUS=./config.status} 9794: "${CONFIG_STATUS=./config.status}"
8526ac_write_fail=0 9795ac_write_fail=0
8527ac_clean_files_save=$ac_clean_files 9796ac_clean_files_save=$ac_clean_files
8528ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9797ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8530$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9799printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8531as_write_fail=0 9800as_write_fail=0
8532cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9801cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8533#! $SHELL 9802#! $SHELL
8534# Generated by $as_me. 9803# Generated by $as_me.
8535# Run this file to recreate the current configuration. 9804# Run this file to recreate the current configuration.
8548## M4sh Initialization. ## 9817## M4sh Initialization. ##
8549## -------------------- ## 9818## -------------------- ##
8550 9819
8551# Be more Bourne compatible 9820# Be more Bourne compatible
8552DUALCASE=1; export DUALCASE # for MKS sh 9821DUALCASE=1; export DUALCASE # for MKS sh
9822as_nop=:
8553if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9823if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9824then :
8554 emulate sh 9825 emulate sh
8555 NULLCMD=: 9826 NULLCMD=:
8556 # 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
8557 # is contrary to our usage. Disable this feature. 9828 # is contrary to our usage. Disable this feature.
8558 alias -g '${1+"$@"}'='"$@"' 9829 alias -g '${1+"$@"}'='"$@"'
8559 setopt NO_GLOB_SUBST 9830 setopt NO_GLOB_SUBST
8560else 9831else $as_nop
8561 case `(set -o) 2>/dev/null` in #( 9832 case `(set -o) 2>/dev/null` in #(
8562 *posix*) : 9833 *posix*) :
8563 set -o posix ;; #( 9834 set -o posix ;; #(
8564 *) : 9835 *) :
8565 ;; 9836 ;;
8566esac 9837esac
8567fi 9838fi
8568 9839
8569 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.
8570as_nl=' 9849as_nl='
8571' 9850'
8572export as_nl 9851export as_nl
8573# Printing a long string crashes Solaris 7 /usr/bin/printf. 9852IFS=" "" $as_nl"
8574as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9853
8575as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9854PS1='$ '
8576as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9855PS2='> '
8577# Prefer a ksh shell builtin over an external printf program on Solaris, 9856PS4='+ '
8578# but without wasting forks for bash or zsh. 9857
8579if test -z "$BASH_VERSION$ZSH_VERSION" \ 9858# Ensure predictable behavior from utilities with locale-dependent output.
8580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9859LC_ALL=C
8581 as_echo='print -r --' 9860export LC_ALL
8582 as_echo_n='print -rn --' 9861LANGUAGE=C
8583elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9862export LANGUAGE
8584 as_echo='printf %s\n' 9863
8585 as_echo_n='printf %s' 9864# We cannot yet rely on "unset" to work, but we need these variables
8586else 9865# to be unset--not just set to an empty or harmless value--now, to
8587 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
8588 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9867# also avoids known problems related to "unset" and subshell syntax
8589 as_echo_n='/usr/ucb/echo -n' 9868# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8590 else 9869for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9870do eval test \${$as_var+y} \
8592 as_echo_n_body='eval 9871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8593 arg=$1; 9872done
8594 case $arg in #( 9873
8595 *"$as_nl"*) 9874# Ensure that fds 0, 1, and 2 are open.
8596 expr "X$arg" : "X\\(.*\\)$as_nl"; 9875if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8597 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9876if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8598 esac; 9877if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8599 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8600 '
8601 export as_echo_n_body
8602 as_echo_n='sh -c $as_echo_n_body as_echo'
8603 fi
8604 export as_echo_body
8605 as_echo='sh -c $as_echo_body as_echo'
8606fi
8607 9878
8608# The user is always right. 9879# The user is always right.
8609if test "${PATH_SEPARATOR+set}" != set; then 9880if ${PATH_SEPARATOR+false} :; then
8610 PATH_SEPARATOR=: 9881 PATH_SEPARATOR=:
8611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8613 PATH_SEPARATOR=';' 9884 PATH_SEPARATOR=';'
8614 } 9885 }
8615fi 9886fi
8616 9887
8617 9888
8618# IFS
8619# We need space, tab and new line, in precisely that order. Quoting is
8620# there to prevent editors from complaining about space-tab.
8621# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8622# splitting by setting IFS to empty value.)
8623IFS=" "" $as_nl"
8624
8625# 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.
9890as_myself=
8626case $0 in #(( 9891case $0 in #((
8627 *[\\/]* ) as_myself=$0 ;; 9892 *[\\/]* ) as_myself=$0 ;;
8628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH 9894for as_dir in $PATH
8630do 9895do
8631 IFS=$as_save_IFS 9896 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=. 9897 case $as_dir in #(((
9898 '') as_dir=./ ;;
9899 */) ;;
9900 *) as_dir=$as_dir/ ;;
9901 esac
8633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9902 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8634 done 9903 done
8635IFS=$as_save_IFS 9904IFS=$as_save_IFS
8636 9905
8637 ;; 9906 ;;
8638esac 9907esac
8640# 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.
8641if test "x$as_myself" = x; then 9910if test "x$as_myself" = x; then
8642 as_myself=$0 9911 as_myself=$0
8643fi 9912fi
8644if test ! -f "$as_myself"; then 9913if test ! -f "$as_myself"; then
8645 $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
8646 exit 1 9915 exit 1
8647fi 9916fi
8648 9917
8649# Unset variables that we do not need and which cause bugs (e.g. in
8650# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8651# suppresses any "Segmentation fault" message there. '((' could
8652# trigger a bug in pdksh 5.2.14.
8653for as_var in BASH_ENV ENV MAIL MAILPATH
8654do eval test x\${$as_var+set} = xset \
8655 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8656done
8657PS1='$ '
8658PS2='> '
8659PS4='+ '
8660
8661# NLS nuisances.
8662LC_ALL=C
8663export LC_ALL
8664LANGUAGE=C
8665export LANGUAGE
8666
8667# CDPATH.
8668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8669 9918
8670 9919
8671# as_fn_error STATUS ERROR [LINENO LOG_FD] 9920# as_fn_error STATUS ERROR [LINENO LOG_FD]
8672# ---------------------------------------- 9921# ----------------------------------------
8673# 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
8676as_fn_error () 9925as_fn_error ()
8677{ 9926{
8678 as_status=$1; test $as_status -eq 0 && as_status=1 9927 as_status=$1; test $as_status -eq 0 && as_status=1
8679 if test "$4"; then 9928 if test "$4"; then
8680 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
8681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8682 fi 9931 fi
8683 $as_echo "$as_me: error: $2" >&2 9932 printf "%s\n" "$as_me: error: $2" >&2
8684 as_fn_exit $as_status 9933 as_fn_exit $as_status
8685} # as_fn_error 9934} # as_fn_error
9935
8686 9936
8687 9937
8688# as_fn_set_status STATUS 9938# as_fn_set_status STATUS
8689# ----------------------- 9939# -----------------------
8690# Set $? to STATUS, without forking. 9940# Set $? to STATUS, without forking.
8709as_fn_unset () 9959as_fn_unset ()
8710{ 9960{
8711 { eval $1=; unset $1;} 9961 { eval $1=; unset $1;}
8712} 9962}
8713as_unset=as_fn_unset 9963as_unset=as_fn_unset
9964
8714# as_fn_append VAR VALUE 9965# as_fn_append VAR VALUE
8715# ---------------------- 9966# ----------------------
8716# 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
8717# advantage of any shell optimizations that allow amortized linear growth over 9968# advantage of any shell optimizations that allow amortized linear growth over
8718# repeated appends, instead of the typical quadratic growth present in naive 9969# repeated appends, instead of the typical quadratic growth present in naive
8719# implementations. 9970# implementations.
8720if (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 :
8721 eval 'as_fn_append () 9973 eval 'as_fn_append ()
8722 { 9974 {
8723 eval $1+=\$2 9975 eval $1+=\$2
8724 }' 9976 }'
8725else 9977else $as_nop
8726 as_fn_append () 9978 as_fn_append ()
8727 { 9979 {
8728 eval $1=\$$1\$2 9980 eval $1=\$$1\$2
8729 } 9981 }
8730fi # as_fn_append 9982fi # as_fn_append
8732# as_fn_arith ARG... 9984# as_fn_arith ARG...
8733# ------------------ 9985# ------------------
8734# 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
8735# 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
8736# must be portable across $(()) and expr. 9988# must be portable across $(()) and expr.
8737if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9990then :
8738 eval 'as_fn_arith () 9991 eval 'as_fn_arith ()
8739 { 9992 {
8740 as_val=$(( $* )) 9993 as_val=$(( $* ))
8741 }' 9994 }'
8742else 9995else $as_nop
8743 as_fn_arith () 9996 as_fn_arith ()
8744 { 9997 {
8745 as_val=`expr "$@" || test $? -eq 1` 9998 as_val=`expr "$@" || test $? -eq 1`
8746 } 9999 }
8747fi # as_fn_arith 10000fi # as_fn_arith
8768 10021
8769as_me=`$as_basename -- "$0" || 10022as_me=`$as_basename -- "$0" ||
8770$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8771 X"$0" : 'X\(//\)$' \| \ 10024 X"$0" : 'X\(//\)$' \| \
8772 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8773$as_echo X/"$0" | 10026printf "%s\n" X/"$0" |
8774 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10027 sed '/^.*\/\([^/][^/]*\)\/*$/{
8775 s//\1/ 10028 s//\1/
8776 q 10029 q
8777 } 10030 }
8778 /^X\/\(\/\/\)$/{ 10031 /^X\/\(\/\/\)$/{
8790as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8791as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10044as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8792as_cr_digits='0123456789' 10045as_cr_digits='0123456789'
8793as_cr_alnum=$as_cr_Letters$as_cr_digits 10046as_cr_alnum=$as_cr_Letters$as_cr_digits
8794 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.
8795ECHO_C= ECHO_N= ECHO_T= 10052ECHO_C= ECHO_N= ECHO_T=
8796case `echo -n x` in #((((( 10053case `echo -n x` in #(((((
8797-n*) 10054-n*)
8798 case `echo 'xy\c'` in 10055 case `echo 'xy\c'` in
8799 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8803 esac;; 10060 esac;;
8804*) 10061*)
8805 ECHO_N='-n';; 10062 ECHO_N='-n';;
8806esac 10063esac
8807 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'
10070
8808rm -f conf$$ conf$$.exe conf$$.file 10071rm -f conf$$ conf$$.exe conf$$.file
8809if test -d conf$$.dir; then 10072if test -d conf$$.dir; then
8810 rm -f conf$$.dir/conf$$.file 10073 rm -f conf$$.dir/conf$$.file
8811else 10074else
8812 rm -f conf$$.dir 10075 rm -f conf$$.dir
8816 if ln -s conf$$.file conf$$ 2>/dev/null; then 10079 if ln -s conf$$.file conf$$ 2>/dev/null; then
8817 as_ln_s='ln -s' 10080 as_ln_s='ln -s'
8818 # ... but there are two gotchas: 10081 # ... but there are two gotchas:
8819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8821 # In both cases, we have to default to `cp -p'. 10084 # In both cases, we have to default to `cp -pR'.
8822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8823 as_ln_s='cp -p' 10086 as_ln_s='cp -pR'
8824 elif ln conf$$.file conf$$ 2>/dev/null; then 10087 elif ln conf$$.file conf$$ 2>/dev/null; then
8825 as_ln_s=ln 10088 as_ln_s=ln
8826 else 10089 else
8827 as_ln_s='cp -p' 10090 as_ln_s='cp -pR'
8828 fi 10091 fi
8829else 10092else
8830 as_ln_s='cp -p' 10093 as_ln_s='cp -pR'
8831fi 10094fi
8832rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10095rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8833rmdir conf$$.dir 2>/dev/null 10096rmdir conf$$.dir 2>/dev/null
8834 10097
8835 10098
8844 esac 10107 esac
8845 test -d "$as_dir" || eval $as_mkdir_p || { 10108 test -d "$as_dir" || eval $as_mkdir_p || {
8846 as_dirs= 10109 as_dirs=
8847 while :; do 10110 while :; do
8848 case $as_dir in #( 10111 case $as_dir in #(
8849 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10112 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8850 *) as_qdir=$as_dir;; 10113 *) as_qdir=$as_dir;;
8851 esac 10114 esac
8852 as_dirs="'$as_qdir' $as_dirs" 10115 as_dirs="'$as_qdir' $as_dirs"
8853 as_dir=`$as_dirname -- "$as_dir" || 10116 as_dir=`$as_dirname -- "$as_dir" ||
8854$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8855 X"$as_dir" : 'X\(//\)[^/]' \| \ 10118 X"$as_dir" : 'X\(//\)[^/]' \| \
8856 X"$as_dir" : 'X\(//\)$' \| \ 10119 X"$as_dir" : 'X\(//\)$' \| \
8857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8858$as_echo X"$as_dir" | 10121printf "%s\n" X"$as_dir" |
8859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8860 s//\1/ 10123 s//\1/
8861 q 10124 q
8862 } 10125 }
8863 /^X\(\/\/\)[^/].*/{ 10126 /^X\(\/\/\)[^/].*/{
8885else 10148else
8886 test -d ./-p && rmdir ./-p 10149 test -d ./-p && rmdir ./-p
8887 as_mkdir_p=false 10150 as_mkdir_p=false
8888fi 10151fi
8889 10152
8890if test -x / >/dev/null 2>&1; then 10153
10154# as_fn_executable_p FILE
10155# -----------------------
10156# Test if FILE is an executable regular file.
10157as_fn_executable_p ()
10158{
10159 test -f "$1" && test -x "$1"
10160} # as_fn_executable_p
8891 as_test_x='test -x' 10161as_test_x='test -x'
8892else 10162as_executable_p=as_fn_executable_p
8893 if ls -dL / >/dev/null 2>&1; then
8894 as_ls_L_option=L
8895 else
8896 as_ls_L_option=
8897 fi
8898 as_test_x='
8899 eval sh -c '\''
8900 if test -d "$1"; then
8901 test -d "$1/.";
8902 else
8903 case $1 in #(
8904 -*)set "./$1";;
8905 esac;
8906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8907 ???[sx]*):;;*)false;;esac;fi
8908 '\'' sh
8909 '
8910fi
8911as_executable_p=$as_test_x
8912 10163
8913# Sed expression to map a string onto a valid CPP name. 10164# Sed expression to map a string onto a valid CPP name.
8914as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10165as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8915 10166
8916# Sed expression to map a string onto a valid variable name. 10167# Sed expression to map a string onto a valid variable name.
8927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8928# 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
8929# report actual input values of CONFIG_FILES etc. instead of their 10180# report actual input values of CONFIG_FILES etc. instead of their
8930# values after options handling. 10181# values after options handling.
8931ac_log=" 10182ac_log="
8932This file was extended by $as_me, which was 10183This file was extended by gvpe $as_me 3.1, which was
8933generated by GNU Autoconf 2.67. Invocation command line was 10184generated by GNU Autoconf 2.71. Invocation command line was
8934 10185
8935 CONFIG_FILES = $CONFIG_FILES 10186 CONFIG_FILES = $CONFIG_FILES
8936 CONFIG_HEADERS = $CONFIG_HEADERS 10187 CONFIG_HEADERS = $CONFIG_HEADERS
8937 CONFIG_LINKS = $CONFIG_LINKS 10188 CONFIG_LINKS = $CONFIG_LINKS
8938 CONFIG_COMMANDS = $CONFIG_COMMANDS 10189 CONFIG_COMMANDS = $CONFIG_COMMANDS
8990$config_commands 10241$config_commands
8991 10242
8992Report bugs to the package provider." 10243Report bugs to the package provider."
8993 10244
8994_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"`
8995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8996ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10249ac_cs_config='$ac_cs_config_escaped'
8997ac_cs_version="\\ 10250ac_cs_version="\\
8998config.status 10251gvpe config.status 3.1
8999configured by $0, generated by GNU Autoconf 2.67, 10252configured by $0, generated by GNU Autoconf 2.71,
9000 with options \\"\$ac_cs_config\\" 10253 with options \\"\$ac_cs_config\\"
9001 10254
9002Copyright (C) 2010 Free Software Foundation, Inc. 10255Copyright (C) 2021 Free Software Foundation, Inc.
9003This config.status script is free software; the Free Software Foundation 10256This config.status script is free software; the Free Software Foundation
9004gives unlimited permission to copy, distribute and modify it." 10257gives unlimited permission to copy, distribute and modify it."
9005 10258
9006ac_pwd='$ac_pwd' 10259ac_pwd='$ac_pwd'
9007srcdir='$srcdir' 10260srcdir='$srcdir'
9008INSTALL='$INSTALL' 10261INSTALL='$INSTALL'
10262MKDIR_P='$MKDIR_P'
9009AWK='$AWK' 10263AWK='$AWK'
9010test -n "\$AWK" || AWK=awk 10264test -n "\$AWK" || AWK=awk
9011_ACEOF 10265_ACEOF
9012 10266
9013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9036 case $ac_option in 10290 case $ac_option in
9037 # Handling of the options. 10291 # Handling of the options.
9038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9039 ac_cs_recheck=: ;; 10293 ac_cs_recheck=: ;;
9040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9041 $as_echo "$ac_cs_version"; exit ;; 10295 printf "%s\n" "$ac_cs_version"; exit ;;
9042 --config | --confi | --conf | --con | --co | --c ) 10296 --config | --confi | --conf | --con | --co | --c )
9043 $as_echo "$ac_cs_config"; exit ;; 10297 printf "%s\n" "$ac_cs_config"; exit ;;
9044 --debug | --debu | --deb | --de | --d | -d ) 10298 --debug | --debu | --deb | --de | --d | -d )
9045 debug=: ;; 10299 debug=: ;;
9046 --file | --fil | --fi | --f ) 10300 --file | --fil | --fi | --f )
9047 $ac_shift 10301 $ac_shift
9048 case $ac_optarg in 10302 case $ac_optarg in
9049 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10303 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9050 '') as_fn_error $? "missing file argument" ;; 10304 '') as_fn_error $? "missing file argument" ;;
9051 esac 10305 esac
9052 as_fn_append CONFIG_FILES " '$ac_optarg'" 10306 as_fn_append CONFIG_FILES " '$ac_optarg'"
9053 ac_need_defaults=false;; 10307 ac_need_defaults=false;;
9054 --header | --heade | --head | --hea ) 10308 --header | --heade | --head | --hea )
9055 $ac_shift 10309 $ac_shift
9056 case $ac_optarg in 10310 case $ac_optarg in
9057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10311 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9058 esac 10312 esac
9059 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10313 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9060 ac_need_defaults=false;; 10314 ac_need_defaults=false;;
9061 --he | --h) 10315 --he | --h)
9062 # Conflict between --help and --header 10316 # Conflict between --help and --header
9063 as_fn_error $? "ambiguous option: \`$1' 10317 as_fn_error $? "ambiguous option: \`$1'
9064Try \`$0 --help' for more information.";; 10318Try \`$0 --help' for more information.";;
9065 --help | --hel | -h ) 10319 --help | --hel | -h )
9066 $as_echo "$ac_cs_usage"; exit ;; 10320 printf "%s\n" "$ac_cs_usage"; exit ;;
9067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9068 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9069 ac_cs_silent=: ;; 10323 ac_cs_silent=: ;;
9070 10324
9071 # This is an error. 10325 # This is an error.
9087fi 10341fi
9088 10342
9089_ACEOF 10343_ACEOF
9090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9091if \$ac_cs_recheck; then 10345if \$ac_cs_recheck; then
9092 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
9093 shift 10347 shift
9094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10348 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9095 CONFIG_SHELL='$SHELL' 10349 CONFIG_SHELL='$SHELL'
9096 export CONFIG_SHELL 10350 export CONFIG_SHELL
9097 exec "\$@" 10351 exec "\$@"
9098fi 10352fi
9099 10353
9103{ 10357{
9104 echo 10358 echo
9105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9106## Running $as_me. ## 10360## Running $as_me. ##
9107_ASBOX 10361_ASBOX
9108 $as_echo "$ac_log" 10362 printf "%s\n" "$ac_log"
9109} >&5 10363} >&5
9110 10364
9111_ACEOF 10365_ACEOF
9112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9113# 10367#
9118 # from automake. 10372 # from automake.
9119 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 10373 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9120 # 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.
9121 LINGUAS="${LINGUAS-%UNSET%}" 10375 LINGUAS="${LINGUAS-%UNSET%}"
9122 10376
9123AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10377AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9124 10378
9125_ACEOF 10379_ACEOF
9126 10380
9127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9128 10382
9138 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10392 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9139 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 10393 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9140 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 10394 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9141 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 10395 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9142 10396
9143 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 10397 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9144 esac 10398 esac
9145done 10399done
9146 10400
9147 10401
9148# 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,
9149# 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.
9150# 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
9151# bizarre bug on SunOS 4.1.3. 10405# bizarre bug on SunOS 4.1.3.
9152if $ac_need_defaults; then 10406if $ac_need_defaults; then
9153 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10407 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9154 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10408 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9155 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10409 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9156fi 10410fi
9157 10411
9158# 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
9159# 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,
9160# creating and moving files from /tmp can sometimes cause problems. 10414# creating and moving files from /tmp can sometimes cause problems.
9161# Hook for its removal unless debugging. 10415# Hook for its removal unless debugging.
9162# Note that there is a small window in which the directory will not be cleaned: 10416# Note that there is a small window in which the directory will not be cleaned:
9163# after its creation but before its name has been assigned to `$tmp'. 10417# after its creation but before its name has been assigned to `$tmp'.
9164$debug || 10418$debug ||
9165{ 10419{
9166 tmp= 10420 tmp= ac_tmp=
9167 trap 'exit_status=$? 10421 trap 'exit_status=$?
10422 : "${ac_tmp:=$tmp}"
9168 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10423 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9169' 0 10424' 0
9170 trap 'as_fn_exit 1' 1 2 13 15 10425 trap 'as_fn_exit 1' 1 2 13 15
9171} 10426}
9172# Create a (secure) tmp directory for tmp files. 10427# Create a (secure) tmp directory for tmp files.
9173 10428
9174{ 10429{
9175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9176 test -n "$tmp" && test -d "$tmp" 10431 test -d "$tmp"
9177} || 10432} ||
9178{ 10433{
9179 tmp=./conf$$-$RANDOM 10434 tmp=./conf$$-$RANDOM
9180 (umask 077 && mkdir "$tmp") 10435 (umask 077 && mkdir "$tmp")
9181} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10436} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10437ac_tmp=$tmp
9182 10438
9183# Set up the scripts for CONFIG_FILES section. 10439# Set up the scripts for CONFIG_FILES section.
9184# No need to generate them if there are no CONFIG_FILES. 10440# No need to generate them if there are no CONFIG_FILES.
9185# This happens for instance with `./config.status config.h'. 10441# This happens for instance with `./config.status config.h'.
9186if test -n "$CONFIG_FILES"; then 10442if test -n "$CONFIG_FILES"; then
9198 ac_cs_awk_cr='\\r' 10454 ac_cs_awk_cr='\\r'
9199else 10455else
9200 ac_cs_awk_cr=$ac_cr 10456 ac_cs_awk_cr=$ac_cr
9201fi 10457fi
9202 10458
9203echo 'BEGIN {' >"$tmp/subs1.awk" && 10459echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9204_ACEOF 10460_ACEOF
9205 10461
9206 10462
9207{ 10463{
9208 echo "cat >conf$$subs.awk <<_ACEOF" && 10464 echo "cat >conf$$subs.awk <<_ACEOF" &&
9226 fi 10482 fi
9227done 10483done
9228rm -f conf$$subs.sh 10484rm -f conf$$subs.sh
9229 10485
9230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9231cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 10487cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9232_ACEOF 10488_ACEOF
9233sed -n ' 10489sed -n '
9234h 10490h
9235s/^/S["/; s/!.*/"]=/ 10491s/^/S["/; s/!.*/"]=/
9236p 10492p
9274} 10530}
9275' >>$CONFIG_STATUS || ac_write_fail=1 10531' >>$CONFIG_STATUS || ac_write_fail=1
9276rm -f conf$$subs.awk 10532rm -f conf$$subs.awk
9277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9278_ACAWK 10534_ACAWK
9279cat >>"\$tmp/subs1.awk" <<_ACAWK && 10535cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9280 for (key in S) S_is_set[key] = 1 10536 for (key in S) S_is_set[key] = 1
9281 FS = "" 10537 FS = ""
9282 10538
9283} 10539}
9284{ 10540{
9306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9307if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10563if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9309else 10565else
9310 cat 10566 cat
9311fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 10567fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10568 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9313_ACEOF 10569_ACEOF
9314 10570
9315# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10571# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9316# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10572# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9340 10596
9341# Set up the scripts for CONFIG_HEADERS section. 10597# Set up the scripts for CONFIG_HEADERS section.
9342# No need to generate them if there are no CONFIG_HEADERS. 10598# No need to generate them if there are no CONFIG_HEADERS.
9343# This happens for instance with `./config.status Makefile'. 10599# This happens for instance with `./config.status Makefile'.
9344if test -n "$CONFIG_HEADERS"; then 10600if test -n "$CONFIG_HEADERS"; then
9345cat >"$tmp/defines.awk" <<\_ACAWK || 10601cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9346BEGIN { 10602BEGIN {
9347_ACEOF 10603_ACEOF
9348 10604
9349# Transform confdefs.h into an awk script `defines.awk', embedded as 10605# Transform confdefs.h into an awk script `defines.awk', embedded as
9350# here-document in config.status, that substitutes the proper values into 10606# here-document in config.status, that substitutes the proper values into
9352 10608
9353# Create a delimiter string that does not exist in confdefs.h, to ease 10609# Create a delimiter string that does not exist in confdefs.h, to ease
9354# handling of long lines. 10610# handling of long lines.
9355ac_delim='%!_!# ' 10611ac_delim='%!_!# '
9356for ac_last_try in false false :; do 10612for ac_last_try in false false :; do
9357 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 10613 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9358 if test -z "$ac_t"; then 10614 if test -z "$ac_tt"; then
9359 break 10615 break
9360 elif $ac_last_try; then 10616 elif $ac_last_try; then
9361 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10617 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9362 else 10618 else
9363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9454 case $ac_tag in 10710 case $ac_tag in
9455 :[FHLC]) ac_mode=$ac_tag; continue;; 10711 :[FHLC]) ac_mode=$ac_tag; continue;;
9456 esac 10712 esac
9457 case $ac_mode$ac_tag in 10713 case $ac_mode$ac_tag in
9458 :[FHL]*:*);; 10714 :[FHL]*:*);;
9459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 10715 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9460 :[FH]-) ac_tag=-:-;; 10716 :[FH]-) ac_tag=-:-;;
9461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9462 esac 10718 esac
9463 ac_save_IFS=$IFS 10719 ac_save_IFS=$IFS
9464 IFS=: 10720 IFS=:
9473 :[FH]) 10729 :[FH])
9474 ac_file_inputs= 10730 ac_file_inputs=
9475 for ac_f 10731 for ac_f
9476 do 10732 do
9477 case $ac_f in 10733 case $ac_f in
9478 -) ac_f="$tmp/stdin";; 10734 -) ac_f="$ac_tmp/stdin";;
9479 *) # Look for the file first in the build tree, then in the source tree 10735 *) # Look for the file first in the build tree, then in the source tree
9480 # (if the path is not absolute). The absolute path cannot be DOS-style, 10736 # (if the path is not absolute). The absolute path cannot be DOS-style,
9481 # because $ac_f cannot contain `:'. 10737 # because $ac_f cannot contain `:'.
9482 test -f "$ac_f" || 10738 test -f "$ac_f" ||
9483 case $ac_f in 10739 case $ac_f in
9484 [\\/$]*) false;; 10740 [\\/$]*) false;;
9485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9486 esac || 10742 esac ||
9487 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;;
9488 esac 10744 esac
9489 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
9490 as_fn_append ac_file_inputs " '$ac_f'" 10746 as_fn_append ac_file_inputs " '$ac_f'"
9491 done 10747 done
9492 10748
9493 # 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
9494 # use $as_me), people would be surprised to read: 10750 # use $as_me), people would be surprised to read:
9495 # /* config.h. Generated by config.status. */ 10751 # /* config.h. Generated by config.status. */
9496 configure_input='Generated from '` 10752 configure_input='Generated from '`
9497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10753 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9498 `' by configure.' 10754 `' by configure.'
9499 if test x"$ac_file" != x-; then 10755 if test x"$ac_file" != x-; then
9500 configure_input="$ac_file. $configure_input" 10756 configure_input="$ac_file. $configure_input"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9502$as_echo "$as_me: creating $ac_file" >&6;} 10758printf "%s\n" "$as_me: creating $ac_file" >&6;}
9503 fi 10759 fi
9504 # Neutralize special characters interpreted by sed in replacement strings. 10760 # Neutralize special characters interpreted by sed in replacement strings.
9505 case $configure_input in #( 10761 case $configure_input in #(
9506 *\&* | *\|* | *\\* ) 10762 *\&* | *\|* | *\\* )
9507 ac_sed_conf_input=`$as_echo "$configure_input" | 10763 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9508 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9509 *) ac_sed_conf_input=$configure_input;; 10765 *) ac_sed_conf_input=$configure_input;;
9510 esac 10766 esac
9511 10767
9512 case $ac_tag in 10768 case $ac_tag in
9513 *:-:* | *:-) cat >"$tmp/stdin" \ 10769 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9515 esac 10771 esac
9516 ;; 10772 ;;
9517 esac 10773 esac
9518 10774
9519 ac_dir=`$as_dirname -- "$ac_file" || 10775 ac_dir=`$as_dirname -- "$ac_file" ||
9520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9521 X"$ac_file" : 'X\(//\)[^/]' \| \ 10777 X"$ac_file" : 'X\(//\)[^/]' \| \
9522 X"$ac_file" : 'X\(//\)$' \| \ 10778 X"$ac_file" : 'X\(//\)$' \| \
9523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9524$as_echo X"$ac_file" | 10780printf "%s\n" X"$ac_file" |
9525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9526 s//\1/ 10782 s//\1/
9527 q 10783 q
9528 } 10784 }
9529 /^X\(\/\/\)[^/].*/{ 10785 /^X\(\/\/\)[^/].*/{
9543 ac_builddir=. 10799 ac_builddir=.
9544 10800
9545case "$ac_dir" in 10801case "$ac_dir" in
9546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9547*) 10803*)
9548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10804 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9549 # A ".." for each directory in $ac_dir_suffix. 10805 # A ".." for each directory in $ac_dir_suffix.
9550 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|/||'`
9551 case $ac_top_builddir_sub in 10807 case $ac_top_builddir_sub in
9552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9554 esac ;; 10810 esac ;;
9555esac 10811esac
9582 # 10838 #
9583 10839
9584 case $INSTALL in 10840 case $INSTALL in
9585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10843 esac
10844 ac_MKDIR_P=$MKDIR_P
10845 case $MKDIR_P in
10846 [\\/$]* | ?:[\\/]* ) ;;
10847 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9587 esac 10848 esac
9588_ACEOF 10849_ACEOF
9589 10850
9590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9591# If the template does not know about datarootdir, expand it. 10852# If the template does not know about datarootdir, expand it.
9602/@localedir@/p 10863/@localedir@/p
9603/@mandir@/p' 10864/@mandir@/p'
9604case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9605*datarootdir*) ac_datarootdir_seen=yes;; 10866*datarootdir*) ac_datarootdir_seen=yes;;
9606*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9607 { $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
9608$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;}
9609_ACEOF 10870_ACEOF
9610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9611 ac_datarootdir_hack=' 10872 ac_datarootdir_hack='
9612 s&@datadir@&$datadir&g 10873 s&@datadir@&$datadir&g
9613 s&@docdir@&$docdir&g 10874 s&@docdir@&$docdir&g
9637s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9638s&@builddir@&$ac_builddir&;t t 10899s&@builddir@&$ac_builddir&;t t
9639s&@abs_builddir@&$ac_abs_builddir&;t t 10900s&@abs_builddir@&$ac_abs_builddir&;t t
9640s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9641s&@INSTALL@&$ac_INSTALL&;t t 10902s&@INSTALL@&$ac_INSTALL&;t t
10903s&@MKDIR_P@&$ac_MKDIR_P&;t t
9642$ac_datarootdir_hack 10904$ac_datarootdir_hack
9643" 10905"
9644eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 10906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10907 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9646 10908
9647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 10910 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 10911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10912 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9650 { $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'
9651which seems to be undefined. Please make sure it is defined" >&5 10914which seems to be undefined. Please make sure it is defined" >&5
9652$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'
9653which seems to be undefined. Please make sure it is defined" >&2;} 10916which seems to be undefined. Please make sure it is defined" >&2;}
9654 10917
9655 rm -f "$tmp/stdin" 10918 rm -f "$ac_tmp/stdin"
9656 case $ac_file in 10919 case $ac_file in
9657 -) cat "$tmp/out" && rm -f "$tmp/out";; 10920 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9658 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 10921 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9659 esac \ 10922 esac \
9660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9661 ;; 10924 ;;
9662 :H) 10925 :H)
9663 # 10926 #
9664 # CONFIG_HEADER 10927 # CONFIG_HEADER
9665 # 10928 #
9666 if test x"$ac_file" != x-; then 10929 if test x"$ac_file" != x-; then
9667 { 10930 {
9668 $as_echo "/* $configure_input */" \ 10931 printf "%s\n" "/* $configure_input */" >&1 \
9669 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 10932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9670 } >"$tmp/config.h" \ 10933 } >"$ac_tmp/config.h" \
9671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9672 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 10935 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9673 { $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
9674$as_echo "$as_me: $ac_file is unchanged" >&6;} 10937printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9675 else 10938 else
9676 rm -f "$ac_file" 10939 rm -f "$ac_file"
9677 mv "$tmp/config.h" "$ac_file" \ 10940 mv "$ac_tmp/config.h" "$ac_file" \
9678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9679 fi 10942 fi
9680 else 10943 else
9681 $as_echo "/* $configure_input */" \ 10944 printf "%s\n" "/* $configure_input */" >&1 \
9682 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 10945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9683 || as_fn_error $? "could not create -" "$LINENO" 5 10946 || as_fn_error $? "could not create -" "$LINENO" 5
9684 fi 10947 fi
9685# Compute "$ac_file"'s index in $config_headers. 10948# Compute "$ac_file"'s index in $config_headers.
10949_am_arg="$ac_file"
9686_am_stamp_count=1 10950_am_stamp_count=1
9687for _am_header in $config_headers :; do 10951for _am_header in $config_headers :; do
9688 case $_am_header in 10952 case $_am_header in
9689 "$ac_file" | "$ac_file":* ) 10953 $_am_arg | $_am_arg:* )
9690 break ;; 10954 break ;;
9691 * ) 10955 * )
9692 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10956 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9693 esac 10957 esac
9694done 10958done
9695echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 10959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9697 X"$ac_file" : 'X\(//\)[^/]' \| \ 10961 X"$_am_arg" : 'X\(//\)[^/]' \| \
9698 X"$ac_file" : 'X\(//\)$' \| \ 10962 X"$_am_arg" : 'X\(//\)$' \| \
9699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10963 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9700$as_echo X"$ac_file" | 10964printf "%s\n" X"$_am_arg" |
9701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9702 s//\1/ 10966 s//\1/
9703 q 10967 q
9704 } 10968 }
9705 /^X\(\/\/\)[^/].*/{ 10969 /^X\(\/\/\)[^/].*/{
9715 q 10979 q
9716 } 10980 }
9717 s/.*/./; q'`/stamp-h$_am_stamp_count 10981 s/.*/./; q'`/stamp-h$_am_stamp_count
9718 ;; 10982 ;;
9719 10983
9720 :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
9721$as_echo "$as_me: executing $ac_file commands" >&6;} 10985printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9722 ;; 10986 ;;
9723 esac 10987 esac
9724 10988
9725 10989
9726 case $ac_file$ac_mode in 10990 case $ac_file$ac_mode in
9818 done 11082 done
9819 fi 11083 fi
9820 ;; 11084 ;;
9821 esac 11085 esac
9822 done ;; 11086 done ;;
9823 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 11087 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11088 # Older Autoconf quotes --file arguments for eval, but not when files
11089 # are listed without --file. Let's play safe and only enable the eval
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.
11093 case $CONFIG_FILES in #(
11094 *\'*) :
11095 eval set x "$CONFIG_FILES" ;; #(
11096 *) :
11097 set x $CONFIG_FILES ;; #(
11098 *) :
11099 ;;
11100esac
11101 shift
11102 # Used to flag and report bootstrapping failures.
11103 am_rc=0
11104 for am_mf
11105 do
9824 # 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.
9825 mf=`echo "$mf" | sed -e 's/:.*$//'` 11107 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9826 # Check whether this is an Automake generated Makefile or not. 11108 # Check whether this is an Automake generated Makefile which includes
9827 # We used to match only the files named `Makefile.in', but 11109 # dependency-tracking related rules and includes.
9828 # some people rename them; so instead we look at the file content. 11110 # Grep'ing the whole file directly is not great: AIX grep has a line
9829 # Grep'ing the first line is not enough: some people post-process 11111 # limit of 2048, but all sed's we know have understand at least 4000.
9830 # each Makefile.in and add a new line on top of each file to say so. 11112 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9831 # So let's grep whole file. 11113 || continue
9832 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9833 dirpart=`$as_dirname -- "$mf" || 11114 am_dirpart=`$as_dirname -- "$am_mf" ||
9834$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11115$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9835 X"$mf" : 'X\(//\)[^/]' \| \ 11116 X"$am_mf" : 'X\(//\)[^/]' \| \
9836 X"$mf" : 'X\(//\)$' \| \ 11117 X"$am_mf" : 'X\(//\)$' \| \
9837 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11118 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9838$as_echo X"$mf" | 11119printf "%s\n" X"$am_mf" |
9839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9840 s//\1/ 11121 s//\1/
9841 q 11122 q
9842 } 11123 }
9843 /^X\(\/\/\)[^/].*/{ 11124 /^X\(\/\/\)[^/].*/{
9851 /^X\(\/\).*/{ 11132 /^X\(\/\).*/{
9852 s//\1/ 11133 s//\1/
9853 q 11134 q
9854 } 11135 }
9855 s/.*/./; q'` 11136 s/.*/./; q'`
9856 else 11137 am_filepart=`$as_basename -- "$am_mf" ||
9857 continue
9858 fi
9859 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9860 # Extract the definition of DEP_FILES from the Makefile without
9861 # running `make'.
9862 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9863 test -z "$DEPDIR" && continue
9864 # When using ansi2knr, U may be empty or an underscore; expand it
9865 U=`sed -n -e '/^U = / s///p' < "$mf"`
9866 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9867 # We invoke sed twice because it is the simplest approach to
9868 # changing $(DEPDIR) to its actual value in the expansion.
9869 for file in `sed -n -e '
9870 /^DEP_FILES = .*\\\\$/ {
9871 s/^DEP_FILES = //
9872 :loop
9873 s/\\\\$//
9874 p
9875 n
9876 /\\\\$/ b loop
9877 p
9878 }
9879 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9880 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9881 # Make sure the directory exists.
9882 test -f "$dirpart/$file" && continue
9883 fdir=`$as_dirname -- "$file" ||
9884$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11138$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9885 X"$file" : 'X\(//\)[^/]' \| \
9886 X"$file" : 'X\(//\)$' \| \ 11139 X"$am_mf" : 'X\(//\)$' \| \
9887 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11140 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9888$as_echo X"$file" | 11141printf "%s\n" X/"$am_mf" |
9889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11142 sed '/^.*\/\([^/][^/]*\)\/*$/{
9890 s//\1/ 11143 s//\1/
9891 q 11144 q
9892 } 11145 }
9893 /^X\(\/\/\)[^/].*/{ 11146 /^X\/\(\/\/\)$/{
9894 s//\1/ 11147 s//\1/
9895 q 11148 q
9896 } 11149 }
9897 /^X\(\/\/\)$/{
9898 s//\1/
9899 q
9900 }
9901 /^X\(\/\).*/{ 11150 /^X\/\(\/\).*/{
9902 s//\1/ 11151 s//\1/
9903 q 11152 q
9904 } 11153 }
9905 s/.*/./; q'` 11154 s/.*/./; q'`
9906 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11155 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9907 # echo "creating $dirpart/$file" 11156 && sed -e '/# am--include-marker/d' "$am_filepart" \
9908 echo '# dummy' > "$dirpart/$file" 11157 | $MAKE -f - am--depfiles" >&5
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=$?
9909 done 11164 done
9910done 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
11181}
9911 ;; 11182 ;;
9912 11183
9913 esac 11184 esac
9914done # for ac_tag 11185done # for ac_tag
9915 11186
9941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9942 # would make configure fail if this is the last instruction. 11213 # would make configure fail if this is the last instruction.
9943 $ac_cs_success || as_fn_exit 1 11214 $ac_cs_success || as_fn_exit 1
9944fi 11215fi
9945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11216if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9946 { $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
9947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11218printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9948fi 11219fi
9949 11220
9950 11221
9951echo 11222echo
9952echo "***" 11223echo "***"
9953echo "*** Configuration Summary" 11224echo "*** Configuration Summary"
9954echo "***" 11225echo "***"
9955echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE" 11226echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
11227echo "*** RSA size: $RSA"
9956echo "*** Cipher used: $CIPHER" 11228echo "*** Cipher used: $CIPHER"
9957echo "*** Digest used: $DIGEST" 11229echo "*** Digest used: $DIGEST"
11230echo "*** Authdigest: $AUTH"
9958echo "*** HMAC length: $HMAC" 11231echo "*** HMAC length: $HMAC"
9959echo "*** RAND used: $RAND"
9960echo "*** Max. MTU: $MTU" 11232echo "*** Max. MTU: $MTU"
9961 11233
9962echo "***" 11234echo "***"
9963echo "*** Enable options:" 11235echo "*** Enable options:"
9964grep ENABLE_ config.h | sed -e 's/^/*** /' 11236grep ENABLE_ config.h | sed -e 's/^/*** /'
9965 11237
9966if test "x$DIGEST" = xmd4; then 11238if test "$HMACSIZE" -lt 12; then
9967echo "***" 11239echo "***"
9968echo "*** WARNING: The digest you have chosen ($DIGEST) is known to be insecure"
9969fi
9970
9971if test "$HMAC" -lt 12; then
9972echo "***"
9973echo "*** WARNING: The hmac length you have chosen ($HMAC) is probably insecure" 11240echo "*** WARNING: The hmac length you have chosen ($HMACSIZE) is quite insecure"
9974fi
9975
9976if test "$RAND" -lt 8; then
9977echo "***"
9978echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
9979fi 11241fi
9980 11242
9981echo "***" 11243echo "***"
9982echo 11244echo
9983 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
9984 11275
11276EOF
11277fi
11278
11279
11280

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines