Mercurial > dropbear
comparison configure @ 1837:df7bfd2f7d45
Add "make test" target to run pytest
This will create a virtualenv if required.
There is a bit of churn here reverting to autoconf 2.59 in generated
config.h.in and configure
author | Matt Johnston <matt@codeconstruct.com.au> |
---|---|
date | Mon, 18 Oct 2021 14:24:32 +0800 |
parents | f78e67527731 |
children | d34f50b7b9fd |
comparison
equal
deleted
inserted
replaced
1836:06c7ddbb9dd6 | 1837:df7bfd2f7d45 |
---|---|
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.71. | 3 # Generated by GNU Autoconf 2.69. |
4 # | 4 # |
5 # | 5 # |
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, | 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 # Inc. | |
8 # | 7 # |
9 # | 8 # |
10 # This configure script is free software; the Free Software Foundation | 9 # This configure script is free software; the Free Software Foundation |
11 # gives unlimited permission to copy, distribute and modify it. | 10 # gives unlimited permission to copy, distribute and modify it. |
12 ## -------------------- ## | 11 ## -------------------- ## |
13 ## M4sh Initialization. ## | 12 ## M4sh Initialization. ## |
14 ## -------------------- ## | 13 ## -------------------- ## |
15 | 14 |
16 # Be more Bourne compatible | 15 # Be more Bourne compatible |
17 DUALCASE=1; export DUALCASE # for MKS sh | 16 DUALCASE=1; export DUALCASE # for MKS sh |
18 as_nop=: | 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
20 then : | |
21 emulate sh | 18 emulate sh |
22 NULLCMD=: | 19 NULLCMD=: |
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
24 # is contrary to our usage. Disable this feature. | 21 # is contrary to our usage. Disable this feature. |
25 alias -g '${1+"$@"}'='"$@"' | 22 alias -g '${1+"$@"}'='"$@"' |
26 setopt NO_GLOB_SUBST | 23 setopt NO_GLOB_SUBST |
27 else $as_nop | 24 else |
28 case `(set -o) 2>/dev/null` in #( | 25 case `(set -o) 2>/dev/null` in #( |
29 *posix*) : | 26 *posix*) : |
30 set -o posix ;; #( | 27 set -o posix ;; #( |
31 *) : | 28 *) : |
32 ;; | 29 ;; |
33 esac | 30 esac |
34 fi | 31 fi |
35 | 32 |
36 | 33 |
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. | |
45 as_nl=' | 34 as_nl=' |
46 ' | 35 ' |
47 export as_nl | 36 export as_nl |
48 IFS=" "" $as_nl" | 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
49 | 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
50 PS1='$ ' | 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
51 PS2='> ' | 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
52 PS4='+ ' | 41 # Prefer a ksh shell builtin over an external printf program on Solaris, |
53 | 42 # but without wasting forks for bash or zsh. |
54 # Ensure predictable behavior from utilities with locale-dependent output. | 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
55 LC_ALL=C | 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
56 export LC_ALL | 45 as_echo='print -r --' |
57 LANGUAGE=C | 46 as_echo_n='print -rn --' |
58 export LANGUAGE | 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
59 | 48 as_echo='printf %s\n' |
60 # We cannot yet rely on "unset" to work, but we need these variables | 49 as_echo_n='printf %s' |
61 # to be unset--not just set to an empty or harmless value--now, to | 50 else |
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
63 # also avoids known problems related to "unset" and subshell syntax | 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | 53 as_echo_n='/usr/ucb/echo -n' |
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | 54 else |
66 do eval test \${$as_var+y} \ | 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 56 as_echo_n_body='eval |
68 done | 57 arg=$1; |
69 | 58 case $arg in #( |
70 # Ensure that fds 0, 1, and 2 are open. | 59 *"$as_nl"*) |
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | 60 expr "X$arg" : "X\\(.*\\)$as_nl"; |
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | 62 esac; |
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 ' | |
65 export as_echo_n_body | |
66 as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 fi | |
68 export as_echo_body | |
69 as_echo='sh -c $as_echo_body as_echo' | |
70 fi | |
74 | 71 |
75 # The user is always right. | 72 # The user is always right. |
76 if ${PATH_SEPARATOR+false} :; then | 73 if test "${PATH_SEPARATOR+set}" != set; then |
77 PATH_SEPARATOR=: | 74 PATH_SEPARATOR=: |
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
80 PATH_SEPARATOR=';' | 77 PATH_SEPARATOR=';' |
81 } | 78 } |
82 fi | 79 fi |
83 | 80 |
81 | |
82 # IFS | |
83 # We need space, tab and new line, in precisely that order. Quoting is | |
84 # there to prevent editors from complaining about space-tab. | |
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 # splitting by setting IFS to empty value.) | |
87 IFS=" "" $as_nl" | |
84 | 88 |
85 # Find who we are. Look in the path if we contain no directory separator. | 89 # Find who we are. Look in the path if we contain no directory separator. |
86 as_myself= | 90 as_myself= |
87 case $0 in #(( | 91 case $0 in #(( |
88 *[\\/]* ) as_myself=$0 ;; | 92 *[\\/]* ) as_myself=$0 ;; |
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
90 for as_dir in $PATH | 94 for as_dir in $PATH |
91 do | 95 do |
92 IFS=$as_save_IFS | 96 IFS=$as_save_IFS |
93 case $as_dir in #((( | 97 test -z "$as_dir" && as_dir=. |
94 '') as_dir=./ ;; | 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
95 */) ;; | |
96 *) as_dir=$as_dir/ ;; | |
97 esac | |
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
99 done | 99 done |
100 IFS=$as_save_IFS | 100 IFS=$as_save_IFS |
101 | 101 |
102 ;; | 102 ;; |
103 esac | 103 esac |
105 # in which case we are not to be found in the path. | 105 # in which case we are not to be found in the path. |
106 if test "x$as_myself" = x; then | 106 if test "x$as_myself" = x; then |
107 as_myself=$0 | 107 as_myself=$0 |
108 fi | 108 fi |
109 if test ! -f "$as_myself"; then | 109 if test ! -f "$as_myself"; then |
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 exit 1 | 111 exit 1 |
112 fi | 112 fi |
113 | 113 |
114 # Unset variables that we do not need and which cause bugs (e.g. in | |
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 # suppresses any "Segmentation fault" message there. '((' could | |
117 # trigger a bug in pdksh 5.2.14. | |
118 for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 do eval test x\${$as_var+set} = xset \ | |
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 done | |
122 PS1='$ ' | |
123 PS2='> ' | |
124 PS4='+ ' | |
125 | |
126 # NLS nuisances. | |
127 LC_ALL=C | |
128 export LC_ALL | |
129 LANGUAGE=C | |
130 export LANGUAGE | |
131 | |
132 # CDPATH. | |
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
114 | 134 |
115 # Use a proper internal environment variable to ensure we don't fall | 135 # Use a proper internal environment variable to ensure we don't fall |
116 # into an infinite loop, continuously re-executing ourselves. | 136 # into an infinite loop, continuously re-executing ourselves. |
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
118 _as_can_reexec=no; export _as_can_reexec; | 138 _as_can_reexec=no; export _as_can_reexec; |
130 * ) as_opts= ;; | 150 * ) as_opts= ;; |
131 esac | 151 esac |
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
133 # Admittedly, this is quite paranoid, since all the known shells bail | 153 # Admittedly, this is quite paranoid, since all the known shells bail |
134 # out after a failed `exec'. | 154 # out after a failed `exec'. |
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 exit 255 | 156 as_fn_exit 255 |
137 fi | 157 fi |
138 # We don't want this to propagate to other subprocesses. | 158 # We don't want this to propagate to other subprocesses. |
139 { _as_can_reexec=; unset _as_can_reexec;} | 159 { _as_can_reexec=; unset _as_can_reexec;} |
140 if test "x$CONFIG_SHELL" = x; then | 160 if test "x$CONFIG_SHELL" = x; then |
141 as_bourne_compatible="as_nop=: | 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
143 then : | |
144 emulate sh | 162 emulate sh |
145 NULLCMD=: | 163 NULLCMD=: |
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
147 # is contrary to our usage. Disable this feature. | 165 # is contrary to our usage. Disable this feature. |
148 alias -g '\${1+\"\$@\"}'='\"\$@\"' | 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' |
149 setopt NO_GLOB_SUBST | 167 setopt NO_GLOB_SUBST |
150 else \$as_nop | 168 else |
151 case \`(set -o) 2>/dev/null\` in #( | 169 case \`(set -o) 2>/dev/null\` in #( |
152 *posix*) : | 170 *posix*) : |
153 set -o posix ;; #( | 171 set -o posix ;; #( |
154 *) : | 172 *) : |
155 ;; | 173 ;; |
165 exitcode=0 | 183 exitcode=0 |
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
171 then : | 189 |
172 | 190 else |
173 else \$as_nop | |
174 exitcode=1; echo positional parameters were not saved. | 191 exitcode=1; echo positional parameters were not saved. |
175 fi | 192 fi |
176 test x\$exitcode = x0 || exit 1 | 193 test x\$exitcode = x0 || exit 1 |
177 blah=\$(echo \$(echo blah)) | |
178 test x\"\$blah\" = xblah || exit 1 | |
179 test -x / || exit 1" | 194 test -x / || exit 1" |
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
184 test \$(( 1 + 1 )) = 2 || exit 1" | 199 test \$(( 1 + 1 )) = 2 || exit 1" |
185 if (eval "$as_required") 2>/dev/null | 200 if (eval "$as_required") 2>/dev/null; then : |
186 then : | |
187 as_have_required=yes | 201 as_have_required=yes |
188 else $as_nop | 202 else |
189 as_have_required=no | 203 as_have_required=no |
190 fi | 204 fi |
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
192 then : | 206 |
193 | 207 else |
194 else $as_nop | |
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 as_found=false | 209 as_found=false |
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
198 do | 211 do |
199 IFS=$as_save_IFS | 212 IFS=$as_save_IFS |
200 case $as_dir in #((( | 213 test -z "$as_dir" && as_dir=. |
201 '') as_dir=./ ;; | |
202 */) ;; | |
203 *) as_dir=$as_dir/ ;; | |
204 esac | |
205 as_found=: | 214 as_found=: |
206 case $as_dir in #( | 215 case $as_dir in #( |
207 /*) | 216 /*) |
208 for as_base in sh bash ksh sh5; do | 217 for as_base in sh bash ksh sh5; do |
209 # Try only shells that exist, to save several forks. | 218 # Try only shells that exist, to save several forks. |
210 as_shell=$as_dir$as_base | 219 as_shell=$as_dir/$as_base |
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
213 then : | |
214 CONFIG_SHELL=$as_shell as_have_required=yes | 222 CONFIG_SHELL=$as_shell as_have_required=yes |
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
216 then : | |
217 break 2 | 224 break 2 |
218 fi | 225 fi |
219 fi | 226 fi |
220 done;; | 227 done;; |
221 esac | 228 esac |
222 as_found=false | 229 as_found=false |
223 done | 230 done |
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 CONFIG_SHELL=$SHELL as_have_required=yes | |
234 fi; } | |
224 IFS=$as_save_IFS | 235 IFS=$as_save_IFS |
225 if $as_found | 236 |
226 then : | 237 |
227 | 238 if test "x$CONFIG_SHELL" != x; then : |
228 else $as_nop | |
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
231 then : | |
232 CONFIG_SHELL=$SHELL as_have_required=yes | |
233 fi | |
234 fi | |
235 | |
236 | |
237 if test "x$CONFIG_SHELL" != x | |
238 then : | |
239 export CONFIG_SHELL | 239 export CONFIG_SHELL |
240 # We cannot yet assume a decent shell, so we have to provide a | 240 # We cannot yet assume a decent shell, so we have to provide a |
241 # neutralization value for shells without unset; and this also | 241 # neutralization value for shells without unset; and this also |
242 # works around shells that cannot unset nonexistent variables. | 242 # works around shells that cannot unset nonexistent variables. |
243 # Preserve -v and -x to the replacement shell. | 243 # Preserve -v and -x to the replacement shell. |
251 * ) as_opts= ;; | 251 * ) as_opts= ;; |
252 esac | 252 esac |
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | 253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 # Admittedly, this is quite paranoid, since all the known shells bail | 254 # Admittedly, this is quite paranoid, since all the known shells bail |
255 # out after a failed `exec'. | 255 # out after a failed `exec'. |
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | 256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 exit 255 | 257 exit 255 |
258 fi | 258 fi |
259 | 259 |
260 if test x$as_have_required = xno | 260 if test x$as_have_required = xno; then : |
261 then : | 261 $as_echo "$0: This script requires a shell more modern than all" |
262 printf "%s\n" "$0: This script requires a shell more modern than all" | 262 $as_echo "$0: the shells that I found on your system." |
263 printf "%s\n" "$0: the shells that I found on your system." | 263 if test x${ZSH_VERSION+set} = xset ; then |
264 if test ${ZSH_VERSION+y} ; then | 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
267 else | 266 else |
268 printf "%s\n" "$0: Please tell [email protected] about your system, | 267 $as_echo "$0: Please tell [email protected] about your system, |
269 $0: including any error possibly output before this | 268 $0: including any error possibly output before this |
270 $0: message. Then install a modern shell, or manually run | 269 $0: message. Then install a modern shell, or manually run |
271 $0: the script under such a shell if you do have one." | 270 $0: the script under such a shell if you do have one." |
272 fi | 271 fi |
273 exit 1 | 272 exit 1 |
290 { | 289 { |
291 { eval $1=; unset $1;} | 290 { eval $1=; unset $1;} |
292 } | 291 } |
293 as_unset=as_fn_unset | 292 as_unset=as_fn_unset |
294 | 293 |
295 | |
296 # as_fn_set_status STATUS | 294 # as_fn_set_status STATUS |
297 # ----------------------- | 295 # ----------------------- |
298 # Set $? to STATUS, without forking. | 296 # Set $? to STATUS, without forking. |
299 as_fn_set_status () | 297 as_fn_set_status () |
300 { | 298 { |
308 { | 306 { |
309 set +e | 307 set +e |
310 as_fn_set_status $1 | 308 as_fn_set_status $1 |
311 exit $1 | 309 exit $1 |
312 } # as_fn_exit | 310 } # as_fn_exit |
313 # as_fn_nop | |
314 # --------- | |
315 # Do nothing but, unlike ":", preserve the value of $?. | |
316 as_fn_nop () | |
317 { | |
318 return $? | |
319 } | |
320 as_nop=as_fn_nop | |
321 | 311 |
322 # as_fn_mkdir_p | 312 # as_fn_mkdir_p |
323 # ------------- | 313 # ------------- |
324 # Create "$as_dir" as a directory, including parents if necessary. | 314 # Create "$as_dir" as a directory, including parents if necessary. |
325 as_fn_mkdir_p () | 315 as_fn_mkdir_p () |
330 esac | 320 esac |
331 test -d "$as_dir" || eval $as_mkdir_p || { | 321 test -d "$as_dir" || eval $as_mkdir_p || { |
332 as_dirs= | 322 as_dirs= |
333 while :; do | 323 while :; do |
334 case $as_dir in #( | 324 case $as_dir in #( |
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
336 *) as_qdir=$as_dir;; | 326 *) as_qdir=$as_dir;; |
337 esac | 327 esac |
338 as_dirs="'$as_qdir' $as_dirs" | 328 as_dirs="'$as_qdir' $as_dirs" |
339 as_dir=`$as_dirname -- "$as_dir" || | 329 as_dir=`$as_dirname -- "$as_dir" || |
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
341 X"$as_dir" : 'X\(//\)[^/]' \| \ | 331 X"$as_dir" : 'X\(//\)[^/]' \| \ |
342 X"$as_dir" : 'X\(//\)$' \| \ | 332 X"$as_dir" : 'X\(//\)$' \| \ |
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
344 printf "%s\n" X"$as_dir" | | 334 $as_echo X"$as_dir" | |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 s//\1/ | 336 s//\1/ |
347 q | 337 q |
348 } | 338 } |
349 /^X\(\/\/\)[^/].*/{ | 339 /^X\(\/\/\)[^/].*/{ |
378 # ---------------------- | 368 # ---------------------- |
379 # Append the text in VALUE to the end of the definition contained in VAR. Take | 369 # Append the text in VALUE to the end of the definition contained in VAR. Take |
380 # advantage of any shell optimizations that allow amortized linear growth over | 370 # advantage of any shell optimizations that allow amortized linear growth over |
381 # repeated appends, instead of the typical quadratic growth present in naive | 371 # repeated appends, instead of the typical quadratic growth present in naive |
382 # implementations. | 372 # implementations. |
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | 373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
384 then : | |
385 eval 'as_fn_append () | 374 eval 'as_fn_append () |
386 { | 375 { |
387 eval $1+=\$2 | 376 eval $1+=\$2 |
388 }' | 377 }' |
389 else $as_nop | 378 else |
390 as_fn_append () | 379 as_fn_append () |
391 { | 380 { |
392 eval $1=\$$1\$2 | 381 eval $1=\$$1\$2 |
393 } | 382 } |
394 fi # as_fn_append | 383 fi # as_fn_append |
396 # as_fn_arith ARG... | 385 # as_fn_arith ARG... |
397 # ------------------ | 386 # ------------------ |
398 # Perform arithmetic evaluation on the ARGs, and store the result in the | 387 # Perform arithmetic evaluation on the ARGs, and store the result in the |
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments | 388 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
400 # must be portable across $(()) and expr. | 389 # must be portable across $(()) and expr. |
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
402 then : | |
403 eval 'as_fn_arith () | 391 eval 'as_fn_arith () |
404 { | 392 { |
405 as_val=$(( $* )) | 393 as_val=$(( $* )) |
406 }' | 394 }' |
407 else $as_nop | 395 else |
408 as_fn_arith () | 396 as_fn_arith () |
409 { | 397 { |
410 as_val=`expr "$@" || test $? -eq 1` | 398 as_val=`expr "$@" || test $? -eq 1` |
411 } | 399 } |
412 fi # as_fn_arith | 400 fi # as_fn_arith |
413 | 401 |
414 # as_fn_nop | |
415 # --------- | |
416 # Do nothing but, unlike ":", preserve the value of $?. | |
417 as_fn_nop () | |
418 { | |
419 return $? | |
420 } | |
421 as_nop=as_fn_nop | |
422 | 402 |
423 # as_fn_error STATUS ERROR [LINENO LOG_FD] | 403 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
424 # ---------------------------------------- | 404 # ---------------------------------------- |
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
428 as_fn_error () | 408 as_fn_error () |
429 { | 409 { |
430 as_status=$1; test $as_status -eq 0 && as_status=1 | 410 as_status=$1; test $as_status -eq 0 && as_status=1 |
431 if test "$4"; then | 411 if test "$4"; then |
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
434 fi | 414 fi |
435 printf "%s\n" "$as_me: error: $2" >&2 | 415 $as_echo "$as_me: error: $2" >&2 |
436 as_fn_exit $as_status | 416 as_fn_exit $as_status |
437 } # as_fn_error | 417 } # as_fn_error |
438 | 418 |
439 if expr a : '\(a\)' >/dev/null 2>&1 && | 419 if expr a : '\(a\)' >/dev/null 2>&1 && |
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then | 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
457 | 437 |
458 as_me=`$as_basename -- "$0" || | 438 as_me=`$as_basename -- "$0" || |
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
460 X"$0" : 'X\(//\)$' \| \ | 440 X"$0" : 'X\(//\)$' \| \ |
461 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
462 printf "%s\n" X/"$0" | | 442 $as_echo X/"$0" | |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{ | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
464 s//\1/ | 444 s//\1/ |
465 q | 445 q |
466 } | 446 } |
467 /^X\/\(\/\/\)$/{ | 447 /^X\/\(\/\/\)$/{ |
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
502 t loop | 482 t loop |
503 s/-\n.*// | 483 s/-\n.*// |
504 ' >$as_me.lineno && | 484 ' >$as_me.lineno && |
505 chmod +x "$as_me.lineno" || | 485 chmod +x "$as_me.lineno" || |
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
507 | 487 |
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | 488 # 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 | 489 # 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. | 490 # in an infinite loop. This has already happened in practice. |
511 _as_can_reexec=no; export _as_can_reexec | 491 _as_can_reexec=no; export _as_can_reexec |
515 . "./$as_me.lineno" | 495 . "./$as_me.lineno" |
516 # Exit status is that of the last command. | 496 # Exit status is that of the last command. |
517 exit | 497 exit |
518 } | 498 } |
519 | 499 |
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. | |
524 ECHO_C= ECHO_N= ECHO_T= | 500 ECHO_C= ECHO_N= ECHO_T= |
525 case `echo -n x` in #((((( | 501 case `echo -n x` in #((((( |
526 -n*) | 502 -n*) |
527 case `echo 'xy\c'` in | 503 case `echo 'xy\c'` in |
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
531 ECHO_T=' ';; | 507 ECHO_T=' ';; |
532 esac;; | 508 esac;; |
533 *) | 509 *) |
534 ECHO_N='-n';; | 510 ECHO_N='-n';; |
535 esac | 511 esac |
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. | |
540 as_echo='printf %s\n' | |
541 as_echo_n='printf %s' | |
542 | |
543 | 512 |
544 rm -f conf$$ conf$$.exe conf$$.file | 513 rm -f conf$$ conf$$.exe conf$$.file |
545 if test -d conf$$.dir; then | 514 if test -d conf$$.dir; then |
546 rm -f conf$$.dir/conf$$.file | 515 rm -f conf$$.dir/conf$$.file |
547 else | 516 else |
604 subdirs= | 573 subdirs= |
605 MFLAGS= | 574 MFLAGS= |
606 MAKEFLAGS= | 575 MAKEFLAGS= |
607 | 576 |
608 # Identity of this package. | 577 # Identity of this package. |
609 PACKAGE_NAME='' | 578 PACKAGE_NAME= |
610 PACKAGE_TARNAME='' | 579 PACKAGE_TARNAME= |
611 PACKAGE_VERSION='' | 580 PACKAGE_VERSION= |
612 PACKAGE_STRING='' | 581 PACKAGE_STRING= |
613 PACKAGE_BUGREPORT='' | 582 PACKAGE_BUGREPORT= |
614 PACKAGE_URL='' | 583 PACKAGE_URL= |
615 | 584 |
616 ac_unique_file="buffer.c" | 585 ac_unique_file="buffer.c" |
617 # Factoring default headers for most tests. | 586 # Factoring default headers for most tests. |
618 ac_includes_default="\ | 587 ac_includes_default="\ |
619 #include <stddef.h> | 588 #include <stdio.h> |
620 #ifdef HAVE_STDIO_H | 589 #ifdef HAVE_SYS_TYPES_H |
621 # include <stdio.h> | 590 # include <sys/types.h> |
622 #endif | 591 #endif |
623 #ifdef HAVE_STDLIB_H | 592 #ifdef HAVE_SYS_STAT_H |
593 # include <sys/stat.h> | |
594 #endif | |
595 #ifdef STDC_HEADERS | |
624 # include <stdlib.h> | 596 # include <stdlib.h> |
597 # include <stddef.h> | |
598 #else | |
599 # ifdef HAVE_STDLIB_H | |
600 # include <stdlib.h> | |
601 # endif | |
625 #endif | 602 #endif |
626 #ifdef HAVE_STRING_H | 603 #ifdef HAVE_STRING_H |
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
605 # include <memory.h> | |
606 # endif | |
627 # include <string.h> | 607 # include <string.h> |
608 #endif | |
609 #ifdef HAVE_STRINGS_H | |
610 # include <strings.h> | |
628 #endif | 611 #endif |
629 #ifdef HAVE_INTTYPES_H | 612 #ifdef HAVE_INTTYPES_H |
630 # include <inttypes.h> | 613 # include <inttypes.h> |
631 #endif | 614 #endif |
632 #ifdef HAVE_STDINT_H | 615 #ifdef HAVE_STDINT_H |
633 # include <stdint.h> | 616 # include <stdint.h> |
634 #endif | 617 #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 | |
644 #ifdef HAVE_UNISTD_H | 618 #ifdef HAVE_UNISTD_H |
645 # include <unistd.h> | 619 # include <unistd.h> |
646 #endif" | 620 #endif" |
647 | 621 |
648 ac_header_c_list= | |
649 ac_subst_vars='LTLIBOBJS | 622 ac_subst_vars='LTLIBOBJS |
650 LIBOBJS | 623 LIBOBJS |
651 BUNDLED_LIBTOM | 624 BUNDLED_LIBTOM |
652 LIBTOM_LIBS | 625 LIBTOM_LIBS |
653 EGREP | |
654 GREP | |
655 CPP | |
656 DROPBEAR_FUZZ | 626 DROPBEAR_FUZZ |
657 ac_ct_CXX | 627 ac_ct_CXX |
658 CXXFLAGS | 628 CXXFLAGS |
659 CXX | 629 CXX |
660 DROPBEAR_PLUGIN | 630 DROPBEAR_PLUGIN |
661 CRYPTLIB | 631 CRYPTLIB |
632 EGREP | |
633 GREP | |
634 CPP | |
662 INSTALL | 635 INSTALL |
663 STRIP | 636 STRIP |
664 RANLIB | 637 RANLIB |
665 AR | 638 AR |
666 host_os | 639 host_os |
751 CC | 724 CC |
752 CFLAGS | 725 CFLAGS |
753 LDFLAGS | 726 LDFLAGS |
754 LIBS | 727 LIBS |
755 CPPFLAGS | 728 CPPFLAGS |
729 CPP | |
756 CXX | 730 CXX |
757 CXXFLAGS | 731 CXXFLAGS |
758 CCC | 732 CCC' |
759 CPP' | |
760 | 733 |
761 | 734 |
762 # Initialize some variables set by options. | 735 # Initialize some variables set by options. |
763 ac_init_help= | 736 ac_init_help= |
764 ac_init_version=false | 737 ac_init_version=false |
823 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
824 *=) ac_optarg= ;; | 797 *=) ac_optarg= ;; |
825 *) ac_optarg=yes ;; | 798 *) ac_optarg=yes ;; |
826 esac | 799 esac |
827 | 800 |
801 # Accept the important Cygnus configure options, so we can diagnose typos. | |
802 | |
828 case $ac_dashdash$ac_option in | 803 case $ac_dashdash$ac_option in |
829 --) | 804 --) |
830 ac_dashdash=yes ;; | 805 ac_dashdash=yes ;; |
831 | 806 |
832 -bindir | --bindir | --bindi | --bind | --bin | --bi) | 807 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
863 | 838 |
864 -disable-* | --disable-*) | 839 -disable-* | --disable-*) |
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
866 # Reject names that are not valid shell variable names. | 841 # Reject names that are not valid shell variable names. |
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
868 as_fn_error $? "invalid feature name: \`$ac_useropt'" | 843 as_fn_error $? "invalid feature name: $ac_useropt" |
869 ac_useropt_orig=$ac_useropt | 844 ac_useropt_orig=$ac_useropt |
870 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | 845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
871 case $ac_user_opts in | 846 case $ac_user_opts in |
872 *" | 847 *" |
873 "enable_$ac_useropt" | 848 "enable_$ac_useropt" |
874 "*) ;; | 849 "*) ;; |
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
889 | 864 |
890 -enable-* | --enable-*) | 865 -enable-* | --enable-*) |
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
892 # Reject names that are not valid shell variable names. | 867 # Reject names that are not valid shell variable names. |
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
894 as_fn_error $? "invalid feature name: \`$ac_useropt'" | 869 as_fn_error $? "invalid feature name: $ac_useropt" |
895 ac_useropt_orig=$ac_useropt | 870 ac_useropt_orig=$ac_useropt |
896 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | 871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
897 case $ac_user_opts in | 872 case $ac_user_opts in |
898 *" | 873 *" |
899 "enable_$ac_useropt" | 874 "enable_$ac_useropt" |
900 "*) ;; | 875 "*) ;; |
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
1102 | 1077 |
1103 -with-* | --with-*) | 1078 -with-* | --with-*) |
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1105 # Reject names that are not valid shell variable names. | 1080 # Reject names that are not valid shell variable names. |
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1107 as_fn_error $? "invalid package name: \`$ac_useropt'" | 1082 as_fn_error $? "invalid package name: $ac_useropt" |
1108 ac_useropt_orig=$ac_useropt | 1083 ac_useropt_orig=$ac_useropt |
1109 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1110 case $ac_user_opts in | 1085 case $ac_user_opts in |
1111 *" | 1086 *" |
1112 "with_$ac_useropt" | 1087 "with_$ac_useropt" |
1113 "*) ;; | 1088 "*) ;; |
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1118 | 1093 |
1119 -without-* | --without-*) | 1094 -without-* | --without-*) |
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1121 # Reject names that are not valid shell variable names. | 1096 # Reject names that are not valid shell variable names. |
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1123 as_fn_error $? "invalid package name: \`$ac_useropt'" | 1098 as_fn_error $? "invalid package name: $ac_useropt" |
1124 ac_useropt_orig=$ac_useropt | 1099 ac_useropt_orig=$ac_useropt |
1125 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1126 case $ac_user_opts in | 1101 case $ac_user_opts in |
1127 *" | 1102 *" |
1128 "with_$ac_useropt" | 1103 "with_$ac_useropt" |
1129 "*) ;; | 1104 "*) ;; |
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1164 eval $ac_envvar=\$ac_optarg | 1139 eval $ac_envvar=\$ac_optarg |
1165 export $ac_envvar ;; | 1140 export $ac_envvar ;; |
1166 | 1141 |
1167 *) | 1142 *) |
1168 # FIXME: should be removed in autoconf 3.0. | 1143 # FIXME: should be removed in autoconf 3.0. |
1169 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1171 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1173 ;; | 1148 ;; |
1174 | 1149 |
1175 esac | 1150 esac |
1176 done | 1151 done |
1182 | 1157 |
1183 if test -n "$ac_unrecognized_opts"; then | 1158 if test -n "$ac_unrecognized_opts"; then |
1184 case $enable_option_checking in | 1159 case $enable_option_checking in |
1185 no) ;; | 1160 no) ;; |
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1187 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1188 esac | 1163 esac |
1189 fi | 1164 fi |
1190 | 1165 |
1191 # Check all directory arguments for consistency. | 1166 # Check all directory arguments for consistency. |
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1246 ac_confdir=`$as_dirname -- "$as_myself" || | 1221 ac_confdir=`$as_dirname -- "$as_myself" || |
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1248 X"$as_myself" : 'X\(//\)[^/]' \| \ | 1223 X"$as_myself" : 'X\(//\)[^/]' \| \ |
1249 X"$as_myself" : 'X\(//\)$' \| \ | 1224 X"$as_myself" : 'X\(//\)$' \| \ |
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1251 printf "%s\n" X"$as_myself" | | 1226 $as_echo X"$as_myself" | |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1253 s//\1/ | 1228 s//\1/ |
1254 q | 1229 q |
1255 } | 1230 } |
1256 /^X\(\/\/\)[^/].*/{ | 1231 /^X\(\/\/\)[^/].*/{ |
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1414 nonstandard directory <lib dir> | 1389 nonstandard directory <lib dir> |
1415 LIBS libraries to pass to the linker, e.g. -l<library> | 1390 LIBS libraries to pass to the linker, e.g. -l<library> |
1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1417 you have headers in a nonstandard directory <include dir> | 1392 you have headers in a nonstandard directory <include dir> |
1393 CPP C preprocessor | |
1418 CXX C++ compiler command | 1394 CXX C++ compiler command |
1419 CXXFLAGS C++ compiler flags | 1395 CXXFLAGS C++ compiler flags |
1420 CPP C preprocessor | |
1421 | 1396 |
1422 Use these variables to override the choices made by `configure' or to help | 1397 Use these variables to override the choices made by `configure' or to help |
1423 it to find libraries and programs with nonstandard names/locations. | 1398 it to find libraries and programs with nonstandard names/locations. |
1424 | 1399 |
1425 Report bugs to the package provider. | 1400 Report bugs to the package provider. |
1436 ac_builddir=. | 1411 ac_builddir=. |
1437 | 1412 |
1438 case "$ac_dir" in | 1413 case "$ac_dir" in |
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1440 *) | 1415 *) |
1441 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | 1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1442 # A ".." for each directory in $ac_dir_suffix. | 1417 # A ".." for each directory in $ac_dir_suffix. |
1443 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1444 case $ac_top_builddir_sub in | 1419 case $ac_top_builddir_sub in |
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1447 esac ;; | 1422 esac ;; |
1448 esac | 1423 esac |
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1467 esac | 1442 esac |
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1469 | 1444 |
1470 cd "$ac_dir" || { ac_status=$?; continue; } | 1445 cd "$ac_dir" || { ac_status=$?; continue; } |
1471 # Check for configure.gnu first; this name is used for a wrapper for | 1446 # Check for guested configure. |
1472 # Metaconfig's "Configure" on case-insensitive file systems. | |
1473 if test -f "$ac_srcdir/configure.gnu"; then | 1447 if test -f "$ac_srcdir/configure.gnu"; then |
1474 echo && | 1448 echo && |
1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1476 elif test -f "$ac_srcdir/configure"; then | 1450 elif test -f "$ac_srcdir/configure"; then |
1477 echo && | 1451 echo && |
1478 $SHELL "$ac_srcdir/configure" --help=recursive | 1452 $SHELL "$ac_srcdir/configure" --help=recursive |
1479 else | 1453 else |
1480 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1481 fi || ac_status=$? | 1455 fi || ac_status=$? |
1482 cd "$ac_pwd" || { ac_status=$?; break; } | 1456 cd "$ac_pwd" || { ac_status=$?; break; } |
1483 done | 1457 done |
1484 fi | 1458 fi |
1485 | 1459 |
1486 test -n "$ac_init_help" && exit $ac_status | 1460 test -n "$ac_init_help" && exit $ac_status |
1487 if $ac_init_version; then | 1461 if $ac_init_version; then |
1488 cat <<\_ACEOF | 1462 cat <<\_ACEOF |
1489 configure | 1463 configure |
1490 generated by GNU Autoconf 2.71 | 1464 generated by GNU Autoconf 2.69 |
1491 | 1465 |
1492 Copyright (C) 2021 Free Software Foundation, Inc. | 1466 Copyright (C) 2012 Free Software Foundation, Inc. |
1493 This configure script is free software; the Free Software Foundation | 1467 This configure script is free software; the Free Software Foundation |
1494 gives unlimited permission to copy, distribute and modify it. | 1468 gives unlimited permission to copy, distribute and modify it. |
1495 _ACEOF | 1469 _ACEOF |
1496 exit | 1470 exit |
1497 fi | 1471 fi |
1504 # -------------------------- | 1478 # -------------------------- |
1505 # Try to compile conftest.$ac_ext, and return whether this succeeded. | 1479 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1506 ac_fn_c_try_compile () | 1480 ac_fn_c_try_compile () |
1507 { | 1481 { |
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1509 rm -f conftest.$ac_objext conftest.beam | 1483 rm -f conftest.$ac_objext |
1510 if { { ac_try="$ac_compile" | 1484 if { { ac_try="$ac_compile" |
1511 case "(($ac_try" in | 1485 case "(($ac_try" in |
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1513 *) ac_try_echo=$ac_try;; | 1487 *) ac_try_echo=$ac_try;; |
1514 esac | 1488 esac |
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1516 printf "%s\n" "$ac_try_echo"; } >&5 | 1490 $as_echo "$ac_try_echo"; } >&5 |
1517 (eval "$ac_compile") 2>conftest.err | 1491 (eval "$ac_compile") 2>conftest.err |
1518 ac_status=$? | 1492 ac_status=$? |
1519 if test -s conftest.err; then | 1493 if test -s conftest.err; then |
1520 grep -v '^ *+' conftest.err >conftest.er1 | 1494 grep -v '^ *+' conftest.err >conftest.er1 |
1521 cat conftest.er1 >&5 | 1495 cat conftest.er1 >&5 |
1522 mv -f conftest.er1 conftest.err | 1496 mv -f conftest.er1 conftest.err |
1523 fi | 1497 fi |
1524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1525 test $ac_status = 0; } && { | 1499 test $ac_status = 0; } && { |
1526 test -z "$ac_c_werror_flag" || | 1500 test -z "$ac_c_werror_flag" || |
1527 test ! -s conftest.err | 1501 test ! -s conftest.err |
1528 } && test -s conftest.$ac_objext | 1502 } && test -s conftest.$ac_objext; then : |
1529 then : | |
1530 ac_retval=0 | 1503 ac_retval=0 |
1531 else $as_nop | 1504 else |
1532 printf "%s\n" "$as_me: failed program was:" >&5 | 1505 $as_echo "$as_me: failed program was:" >&5 |
1533 sed 's/^/| /' conftest.$ac_ext >&5 | 1506 sed 's/^/| /' conftest.$ac_ext >&5 |
1534 | 1507 |
1535 ac_retval=1 | 1508 ac_retval=1 |
1536 fi | 1509 fi |
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1543 # ----------------------- | 1516 # ----------------------- |
1544 # Try to link conftest.$ac_ext, and return whether this succeeded. | 1517 # Try to link conftest.$ac_ext, and return whether this succeeded. |
1545 ac_fn_c_try_link () | 1518 ac_fn_c_try_link () |
1546 { | 1519 { |
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1548 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | 1521 rm -f conftest.$ac_objext conftest$ac_exeext |
1549 if { { ac_try="$ac_link" | 1522 if { { ac_try="$ac_link" |
1550 case "(($ac_try" in | 1523 case "(($ac_try" in |
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1552 *) ac_try_echo=$ac_try;; | 1525 *) ac_try_echo=$ac_try;; |
1553 esac | 1526 esac |
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1555 printf "%s\n" "$ac_try_echo"; } >&5 | 1528 $as_echo "$ac_try_echo"; } >&5 |
1556 (eval "$ac_link") 2>conftest.err | 1529 (eval "$ac_link") 2>conftest.err |
1557 ac_status=$? | 1530 ac_status=$? |
1558 if test -s conftest.err; then | 1531 if test -s conftest.err; then |
1559 grep -v '^ *+' conftest.err >conftest.er1 | 1532 grep -v '^ *+' conftest.err >conftest.er1 |
1560 cat conftest.er1 >&5 | 1533 cat conftest.er1 >&5 |
1561 mv -f conftest.er1 conftest.err | 1534 mv -f conftest.er1 conftest.err |
1562 fi | 1535 fi |
1563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1564 test $ac_status = 0; } && { | 1537 test $ac_status = 0; } && { |
1565 test -z "$ac_c_werror_flag" || | 1538 test -z "$ac_c_werror_flag" || |
1566 test ! -s conftest.err | 1539 test ! -s conftest.err |
1567 } && test -s conftest$ac_exeext && { | 1540 } && test -s conftest$ac_exeext && { |
1568 test "$cross_compiling" = yes || | 1541 test "$cross_compiling" = yes || |
1569 test -x conftest$ac_exeext | 1542 test -x conftest$ac_exeext |
1570 } | 1543 }; then : |
1571 then : | |
1572 ac_retval=0 | 1544 ac_retval=0 |
1573 else $as_nop | 1545 else |
1574 printf "%s\n" "$as_me: failed program was:" >&5 | 1546 $as_echo "$as_me: failed program was:" >&5 |
1575 sed 's/^/| /' conftest.$ac_ext >&5 | 1547 sed 's/^/| /' conftest.$ac_ext >&5 |
1576 | 1548 |
1577 ac_retval=1 | 1549 ac_retval=1 |
1578 fi | 1550 fi |
1579 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 1551 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1585 as_fn_set_status $ac_retval | 1557 as_fn_set_status $ac_retval |
1586 | 1558 |
1587 } # ac_fn_c_try_link | 1559 } # ac_fn_c_try_link |
1588 | 1560 |
1589 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR | 1561 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1590 # ------------------------------------------------------------------ | 1562 # --------------------------------------------- |
1591 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 1563 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1592 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. | 1564 # accordingly. |
1593 ac_fn_check_decl () | 1565 ac_fn_c_check_decl () |
1594 { | 1566 { |
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1596 as_decl_name=`echo $2|sed 's/ *(.*//'` | 1568 as_decl_name=`echo $2|sed 's/ *(.*//'` |
1597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1598 printf %s "checking whether $as_decl_name is declared... " >&6; } | |
1599 if eval test \${$3+y} | |
1600 then : | |
1601 printf %s "(cached) " >&6 | |
1602 else $as_nop | |
1603 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 1569 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1604 eval ac_save_FLAGS=\$$6 | 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
1605 as_fn_append $6 " $5" | 1571 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
1572 if eval \${$3+:} false; then : | |
1573 $as_echo_n "(cached) " >&6 | |
1574 else | |
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1607 /* end confdefs.h. */ | 1576 /* end confdefs.h. */ |
1608 $4 | 1577 $4 |
1609 int | 1578 int |
1610 main (void) | 1579 main () |
1611 { | 1580 { |
1612 #ifndef $as_decl_name | 1581 #ifndef $as_decl_name |
1613 #ifdef __cplusplus | 1582 #ifdef __cplusplus |
1614 (void) $as_decl_use; | 1583 (void) $as_decl_use; |
1615 #else | 1584 #else |
1619 | 1588 |
1620 ; | 1589 ; |
1621 return 0; | 1590 return 0; |
1622 } | 1591 } |
1623 _ACEOF | 1592 _ACEOF |
1624 if ac_fn_c_try_compile "$LINENO" | 1593 if ac_fn_c_try_compile "$LINENO"; then : |
1625 then : | |
1626 eval "$3=yes" | 1594 eval "$3=yes" |
1627 else $as_nop | 1595 else |
1628 eval "$3=no" | 1596 eval "$3=no" |
1629 fi | 1597 fi |
1630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1631 eval $6=\$ac_save_FLAGS | |
1632 | |
1633 fi | 1599 fi |
1634 eval ac_res=\$$3 | 1600 eval ac_res=\$$3 |
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1636 printf "%s\n" "$ac_res" >&6; } | 1602 $as_echo "$ac_res" >&6; } |
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1638 | 1604 |
1639 } # ac_fn_check_decl | 1605 } # ac_fn_c_check_decl |
1606 | |
1607 # ac_fn_c_try_cpp LINENO | |
1608 # ---------------------- | |
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1610 ac_fn_c_try_cpp () | |
1611 { | |
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1613 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1614 case "(($ac_try" in | |
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1616 *) ac_try_echo=$ac_try;; | |
1617 esac | |
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1619 $as_echo "$ac_try_echo"; } >&5 | |
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1621 ac_status=$? | |
1622 if test -s conftest.err; then | |
1623 grep -v '^ *+' conftest.err >conftest.er1 | |
1624 cat conftest.er1 >&5 | |
1625 mv -f conftest.er1 conftest.err | |
1626 fi | |
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1628 test $ac_status = 0; } > conftest.i && { | |
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1630 test ! -s conftest.err | |
1631 }; then : | |
1632 ac_retval=0 | |
1633 else | |
1634 $as_echo "$as_me: failed program was:" >&5 | |
1635 sed 's/^/| /' conftest.$ac_ext >&5 | |
1636 | |
1637 ac_retval=1 | |
1638 fi | |
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1640 as_fn_set_status $ac_retval | |
1641 | |
1642 } # ac_fn_c_try_cpp | |
1643 | |
1644 # ac_fn_c_try_run LINENO | |
1645 # ---------------------- | |
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1647 # that executables *can* be run. | |
1648 ac_fn_c_try_run () | |
1649 { | |
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1651 if { { ac_try="$ac_link" | |
1652 case "(($ac_try" in | |
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1654 *) ac_try_echo=$ac_try;; | |
1655 esac | |
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1657 $as_echo "$ac_try_echo"; } >&5 | |
1658 (eval "$ac_link") 2>&5 | |
1659 ac_status=$? | |
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1662 { { case "(($ac_try" in | |
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1664 *) ac_try_echo=$ac_try;; | |
1665 esac | |
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1667 $as_echo "$ac_try_echo"; } >&5 | |
1668 (eval "$ac_try") 2>&5 | |
1669 ac_status=$? | |
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1671 test $ac_status = 0; }; }; then : | |
1672 ac_retval=0 | |
1673 else | |
1674 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1675 $as_echo "$as_me: failed program was:" >&5 | |
1676 sed 's/^/| /' conftest.$ac_ext >&5 | |
1677 | |
1678 ac_retval=$ac_status | |
1679 fi | |
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1682 as_fn_set_status $ac_retval | |
1683 | |
1684 } # ac_fn_c_try_run | |
1640 | 1685 |
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1642 # ------------------------------------------------------- | 1687 # ------------------------------------------------------- |
1643 # Tests whether HEADER exists and can be compiled using the include files in | 1688 # Tests whether HEADER exists and can be compiled using the include files in |
1644 # INCLUDES, setting the cache variable VAR accordingly. | 1689 # INCLUDES, setting the cache variable VAR accordingly. |
1645 ac_fn_c_check_header_compile () | 1690 ac_fn_c_check_header_compile () |
1646 { | 1691 { |
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1649 printf %s "checking for $2... " >&6; } | 1694 $as_echo_n "checking for $2... " >&6; } |
1650 if eval test \${$3+y} | 1695 if eval \${$3+:} false; then : |
1651 then : | 1696 $as_echo_n "(cached) " >&6 |
1652 printf %s "(cached) " >&6 | 1697 else |
1653 else $as_nop | |
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1655 /* end confdefs.h. */ | 1699 /* end confdefs.h. */ |
1656 $4 | 1700 $4 |
1657 #include <$2> | 1701 #include <$2> |
1658 _ACEOF | 1702 _ACEOF |
1659 if ac_fn_c_try_compile "$LINENO" | 1703 if ac_fn_c_try_compile "$LINENO"; then : |
1660 then : | |
1661 eval "$3=yes" | 1704 eval "$3=yes" |
1662 else $as_nop | 1705 else |
1663 eval "$3=no" | 1706 eval "$3=no" |
1664 fi | 1707 fi |
1665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1666 fi | 1709 fi |
1667 eval ac_res=\$$3 | 1710 eval ac_res=\$$3 |
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1669 printf "%s\n" "$ac_res" >&6; } | 1712 $as_echo "$ac_res" >&6; } |
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1671 | 1714 |
1672 } # ac_fn_c_check_header_compile | 1715 } # ac_fn_c_check_header_compile |
1673 | 1716 |
1674 # ac_fn_c_check_func LINENO FUNC VAR | 1717 # ac_fn_c_check_func LINENO FUNC VAR |
1675 # ---------------------------------- | 1718 # ---------------------------------- |
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly | 1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly |
1677 ac_fn_c_check_func () | 1720 ac_fn_c_check_func () |
1678 { | 1721 { |
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1681 printf %s "checking for $2... " >&6; } | 1724 $as_echo_n "checking for $2... " >&6; } |
1682 if eval test \${$3+y} | 1725 if eval \${$3+:} false; then : |
1683 then : | 1726 $as_echo_n "(cached) " >&6 |
1684 printf %s "(cached) " >&6 | 1727 else |
1685 else $as_nop | |
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1687 /* end confdefs.h. */ | 1729 /* end confdefs.h. */ |
1688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | 1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1690 #define $2 innocuous_$2 | 1732 #define $2 innocuous_$2 |
1691 | 1733 |
1692 /* System header to define __stub macros and hopefully few prototypes, | 1734 /* System header to define __stub macros and hopefully few prototypes, |
1693 which can conflict with char $2 (); below. */ | 1735 which can conflict with char $2 (); below. |
1694 | 1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1695 #include <limits.h> | 1737 <limits.h> exists even on freestanding compilers. */ |
1738 | |
1739 #ifdef __STDC__ | |
1740 # include <limits.h> | |
1741 #else | |
1742 # include <assert.h> | |
1743 #endif | |
1744 | |
1696 #undef $2 | 1745 #undef $2 |
1697 | 1746 |
1698 /* Override any GCC internal prototype to avoid an error. | 1747 /* Override any GCC internal prototype to avoid an error. |
1699 Use char because int might match the return type of a GCC | 1748 Use char because int might match the return type of a GCC |
1700 builtin and then its argument prototype would still apply. */ | 1749 builtin and then its argument prototype would still apply. */ |
1708 #if defined __stub_$2 || defined __stub___$2 | 1757 #if defined __stub_$2 || defined __stub___$2 |
1709 choke me | 1758 choke me |
1710 #endif | 1759 #endif |
1711 | 1760 |
1712 int | 1761 int |
1713 main (void) | 1762 main () |
1714 { | 1763 { |
1715 return $2 (); | 1764 return $2 (); |
1716 ; | 1765 ; |
1717 return 0; | 1766 return 0; |
1718 } | 1767 } |
1719 _ACEOF | 1768 _ACEOF |
1720 if ac_fn_c_try_link "$LINENO" | 1769 if ac_fn_c_try_link "$LINENO"; then : |
1721 then : | |
1722 eval "$3=yes" | 1770 eval "$3=yes" |
1723 else $as_nop | 1771 else |
1724 eval "$3=no" | 1772 eval "$3=no" |
1725 fi | 1773 fi |
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 1774 rm -f core conftest.err conftest.$ac_objext \ |
1727 conftest$ac_exeext conftest.$ac_ext | 1775 conftest$ac_exeext conftest.$ac_ext |
1728 fi | 1776 fi |
1729 eval ac_res=\$$3 | 1777 eval ac_res=\$$3 |
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1731 printf "%s\n" "$ac_res" >&6; } | 1779 $as_echo "$ac_res" >&6; } |
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1733 | 1781 |
1734 } # ac_fn_c_check_func | 1782 } # ac_fn_c_check_func |
1783 | |
1784 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1785 # ------------------------------------------------------- | |
1786 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1787 # the include files in INCLUDES and setting the cache variable VAR | |
1788 # accordingly. | |
1789 ac_fn_c_check_header_mongrel () | |
1790 { | |
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1792 if eval \${$3+:} false; then : | |
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1794 $as_echo_n "checking for $2... " >&6; } | |
1795 if eval \${$3+:} false; then : | |
1796 $as_echo_n "(cached) " >&6 | |
1797 fi | |
1798 eval ac_res=\$$3 | |
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1800 $as_echo "$ac_res" >&6; } | |
1801 else | |
1802 # Is the header compilable? | |
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1804 $as_echo_n "checking $2 usability... " >&6; } | |
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 /* end confdefs.h. */ | |
1807 $4 | |
1808 #include <$2> | |
1809 _ACEOF | |
1810 if ac_fn_c_try_compile "$LINENO"; then : | |
1811 ac_header_compiler=yes | |
1812 else | |
1813 ac_header_compiler=no | |
1814 fi | |
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1817 $as_echo "$ac_header_compiler" >&6; } | |
1818 | |
1819 # Is the header present? | |
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1821 $as_echo_n "checking $2 presence... " >&6; } | |
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1823 /* end confdefs.h. */ | |
1824 #include <$2> | |
1825 _ACEOF | |
1826 if ac_fn_c_try_cpp "$LINENO"; then : | |
1827 ac_header_preproc=yes | |
1828 else | |
1829 ac_header_preproc=no | |
1830 fi | |
1831 rm -f conftest.err conftest.i conftest.$ac_ext | |
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1833 $as_echo "$ac_header_preproc" >&6; } | |
1834 | |
1835 # So? What about this header? | |
1836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1837 yes:no: ) | |
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1839 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1842 ;; | |
1843 no:yes:* ) | |
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1845 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1847 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1849 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1851 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1854 ;; | |
1855 esac | |
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1857 $as_echo_n "checking for $2... " >&6; } | |
1858 if eval \${$3+:} false; then : | |
1859 $as_echo_n "(cached) " >&6 | |
1860 else | |
1861 eval "$3=\$ac_header_compiler" | |
1862 fi | |
1863 eval ac_res=\$$3 | |
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1865 $as_echo "$ac_res" >&6; } | |
1866 fi | |
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1868 | |
1869 } # ac_fn_c_check_header_mongrel | |
1735 | 1870 |
1736 # ac_fn_cxx_try_compile LINENO | 1871 # ac_fn_cxx_try_compile LINENO |
1737 # ---------------------------- | 1872 # ---------------------------- |
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded. | 1873 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1739 ac_fn_cxx_try_compile () | 1874 ac_fn_cxx_try_compile () |
1740 { | 1875 { |
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1742 rm -f conftest.$ac_objext conftest.beam | 1877 rm -f conftest.$ac_objext |
1743 if { { ac_try="$ac_compile" | 1878 if { { ac_try="$ac_compile" |
1744 case "(($ac_try" in | 1879 case "(($ac_try" in |
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1746 *) ac_try_echo=$ac_try;; | 1881 *) ac_try_echo=$ac_try;; |
1747 esac | 1882 esac |
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1749 printf "%s\n" "$ac_try_echo"; } >&5 | 1884 $as_echo "$ac_try_echo"; } >&5 |
1750 (eval "$ac_compile") 2>conftest.err | 1885 (eval "$ac_compile") 2>conftest.err |
1751 ac_status=$? | 1886 ac_status=$? |
1752 if test -s conftest.err; then | 1887 if test -s conftest.err; then |
1753 grep -v '^ *+' conftest.err >conftest.er1 | 1888 grep -v '^ *+' conftest.err >conftest.er1 |
1754 cat conftest.er1 >&5 | 1889 cat conftest.er1 >&5 |
1755 mv -f conftest.er1 conftest.err | 1890 mv -f conftest.er1 conftest.err |
1756 fi | 1891 fi |
1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1758 test $ac_status = 0; } && { | 1893 test $ac_status = 0; } && { |
1759 test -z "$ac_cxx_werror_flag" || | 1894 test -z "$ac_cxx_werror_flag" || |
1760 test ! -s conftest.err | 1895 test ! -s conftest.err |
1761 } && test -s conftest.$ac_objext | 1896 } && test -s conftest.$ac_objext; then : |
1762 then : | |
1763 ac_retval=0 | 1897 ac_retval=0 |
1764 else $as_nop | 1898 else |
1765 printf "%s\n" "$as_me: failed program was:" >&5 | 1899 $as_echo "$as_me: failed program was:" >&5 |
1766 sed 's/^/| /' conftest.$ac_ext >&5 | 1900 sed 's/^/| /' conftest.$ac_ext >&5 |
1767 | 1901 |
1768 ac_retval=1 | 1902 ac_retval=1 |
1769 fi | 1903 fi |
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1771 as_fn_set_status $ac_retval | 1905 as_fn_set_status $ac_retval |
1772 | 1906 |
1773 } # ac_fn_cxx_try_compile | 1907 } # ac_fn_cxx_try_compile |
1774 | |
1775 # ac_fn_c_try_cpp LINENO | |
1776 # ---------------------- | |
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1778 ac_fn_c_try_cpp () | |
1779 { | |
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1782 case "(($ac_try" in | |
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1784 *) ac_try_echo=$ac_try;; | |
1785 esac | |
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1787 printf "%s\n" "$ac_try_echo"; } >&5 | |
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1789 ac_status=$? | |
1790 if test -s conftest.err; then | |
1791 grep -v '^ *+' conftest.err >conftest.er1 | |
1792 cat conftest.er1 >&5 | |
1793 mv -f conftest.er1 conftest.err | |
1794 fi | |
1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1796 test $ac_status = 0; } > conftest.i && { | |
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1798 test ! -s conftest.err | |
1799 } | |
1800 then : | |
1801 ac_retval=0 | |
1802 else $as_nop | |
1803 printf "%s\n" "$as_me: failed program was:" >&5 | |
1804 sed 's/^/| /' conftest.$ac_ext >&5 | |
1805 | |
1806 ac_retval=1 | |
1807 fi | |
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1809 as_fn_set_status $ac_retval | |
1810 | |
1811 } # ac_fn_c_try_cpp | |
1812 | 1908 |
1813 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 1909 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1814 # ------------------------------------------- | 1910 # ------------------------------------------- |
1815 # Tests whether TYPE exists after having included INCLUDES, setting cache | 1911 # Tests whether TYPE exists after having included INCLUDES, setting cache |
1816 # variable VAR accordingly. | 1912 # variable VAR accordingly. |
1817 ac_fn_c_check_type () | 1913 ac_fn_c_check_type () |
1818 { | 1914 { |
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1821 printf %s "checking for $2... " >&6; } | 1917 $as_echo_n "checking for $2... " >&6; } |
1822 if eval test \${$3+y} | 1918 if eval \${$3+:} false; then : |
1823 then : | 1919 $as_echo_n "(cached) " >&6 |
1824 printf %s "(cached) " >&6 | 1920 else |
1825 else $as_nop | |
1826 eval "$3=no" | 1921 eval "$3=no" |
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1828 /* end confdefs.h. */ | 1923 /* end confdefs.h. */ |
1829 $4 | 1924 $4 |
1830 int | 1925 int |
1831 main (void) | 1926 main () |
1832 { | 1927 { |
1833 if (sizeof ($2)) | 1928 if (sizeof ($2)) |
1834 return 0; | 1929 return 0; |
1835 ; | 1930 ; |
1836 return 0; | 1931 return 0; |
1837 } | 1932 } |
1838 _ACEOF | 1933 _ACEOF |
1839 if ac_fn_c_try_compile "$LINENO" | 1934 if ac_fn_c_try_compile "$LINENO"; then : |
1840 then : | |
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1842 /* end confdefs.h. */ | 1936 /* end confdefs.h. */ |
1843 $4 | 1937 $4 |
1844 int | 1938 int |
1845 main (void) | 1939 main () |
1846 { | 1940 { |
1847 if (sizeof (($2))) | 1941 if (sizeof (($2))) |
1848 return 0; | 1942 return 0; |
1849 ; | 1943 ; |
1850 return 0; | 1944 return 0; |
1851 } | 1945 } |
1852 _ACEOF | 1946 _ACEOF |
1853 if ac_fn_c_try_compile "$LINENO" | 1947 if ac_fn_c_try_compile "$LINENO"; then : |
1854 then : | 1948 |
1855 | 1949 else |
1856 else $as_nop | |
1857 eval "$3=yes" | 1950 eval "$3=yes" |
1858 fi | 1951 fi |
1859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1860 fi | 1953 fi |
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1862 fi | 1955 fi |
1863 eval ac_res=\$$3 | 1956 eval ac_res=\$$3 |
1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1865 printf "%s\n" "$ac_res" >&6; } | 1958 $as_echo "$ac_res" >&6; } |
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1867 | 1960 |
1868 } # ac_fn_c_check_type | 1961 } # ac_fn_c_check_type |
1869 | 1962 |
1870 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 1963 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1872 # Tries to find if the field MEMBER exists in type AGGR, after including | 1965 # Tries to find if the field MEMBER exists in type AGGR, after including |
1873 # INCLUDES, setting cache variable VAR accordingly. | 1966 # INCLUDES, setting cache variable VAR accordingly. |
1874 ac_fn_c_check_member () | 1967 ac_fn_c_check_member () |
1875 { | 1968 { |
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
1878 printf %s "checking for $2.$3... " >&6; } | 1971 $as_echo_n "checking for $2.$3... " >&6; } |
1879 if eval test \${$4+y} | 1972 if eval \${$4+:} false; then : |
1880 then : | 1973 $as_echo_n "(cached) " >&6 |
1881 printf %s "(cached) " >&6 | 1974 else |
1882 else $as_nop | |
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1884 /* end confdefs.h. */ | 1976 /* end confdefs.h. */ |
1885 $5 | 1977 $5 |
1886 int | 1978 int |
1887 main (void) | 1979 main () |
1888 { | 1980 { |
1889 static $2 ac_aggr; | 1981 static $2 ac_aggr; |
1890 if (ac_aggr.$3) | 1982 if (ac_aggr.$3) |
1891 return 0; | 1983 return 0; |
1892 ; | 1984 ; |
1893 return 0; | 1985 return 0; |
1894 } | 1986 } |
1895 _ACEOF | 1987 _ACEOF |
1896 if ac_fn_c_try_compile "$LINENO" | 1988 if ac_fn_c_try_compile "$LINENO"; then : |
1897 then : | |
1898 eval "$4=yes" | 1989 eval "$4=yes" |
1899 else $as_nop | 1990 else |
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1901 /* end confdefs.h. */ | 1992 /* end confdefs.h. */ |
1902 $5 | 1993 $5 |
1903 int | 1994 int |
1904 main (void) | 1995 main () |
1905 { | 1996 { |
1906 static $2 ac_aggr; | 1997 static $2 ac_aggr; |
1907 if (sizeof ac_aggr.$3) | 1998 if (sizeof ac_aggr.$3) |
1908 return 0; | 1999 return 0; |
1909 ; | 2000 ; |
1910 return 0; | 2001 return 0; |
1911 } | 2002 } |
1912 _ACEOF | 2003 _ACEOF |
1913 if ac_fn_c_try_compile "$LINENO" | 2004 if ac_fn_c_try_compile "$LINENO"; then : |
1914 then : | |
1915 eval "$4=yes" | 2005 eval "$4=yes" |
1916 else $as_nop | 2006 else |
1917 eval "$4=no" | 2007 eval "$4=no" |
1918 fi | 2008 fi |
1919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1920 fi | 2010 fi |
1921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1922 fi | 2012 fi |
1923 eval ac_res=\$$4 | 2013 eval ac_res=\$$4 |
1924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1925 printf "%s\n" "$ac_res" >&6; } | 2015 $as_echo "$ac_res" >&6; } |
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1927 | 2017 |
1928 } # ac_fn_c_check_member | 2018 } # ac_fn_c_check_member |
1929 | |
1930 # ac_fn_c_try_run LINENO | |
1931 # ---------------------- | |
1932 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
1933 # executables *can* be run. | |
1934 ac_fn_c_try_run () | |
1935 { | |
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1937 if { { ac_try="$ac_link" | |
1938 case "(($ac_try" in | |
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1940 *) ac_try_echo=$ac_try;; | |
1941 esac | |
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1943 printf "%s\n" "$ac_try_echo"; } >&5 | |
1944 (eval "$ac_link") 2>&5 | |
1945 ac_status=$? | |
1946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1948 { { case "(($ac_try" in | |
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1950 *) ac_try_echo=$ac_try;; | |
1951 esac | |
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1953 printf "%s\n" "$ac_try_echo"; } >&5 | |
1954 (eval "$ac_try") 2>&5 | |
1955 ac_status=$? | |
1956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1957 test $ac_status = 0; }; } | |
1958 then : | |
1959 ac_retval=0 | |
1960 else $as_nop | |
1961 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1962 printf "%s\n" "$as_me: failed program was:" >&5 | |
1963 sed 's/^/| /' conftest.$ac_ext >&5 | |
1964 | |
1965 ac_retval=$ac_status | |
1966 fi | |
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1969 as_fn_set_status $ac_retval | |
1970 | |
1971 } # ac_fn_c_try_run | |
1972 ac_configure_args_raw= | |
1973 for ac_arg | |
1974 do | |
1975 case $ac_arg in | |
1976 *\'*) | |
1977 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1978 esac | |
1979 as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1980 done | |
1981 | |
1982 case $ac_configure_args_raw in | |
1983 *$as_nl*) | |
1984 ac_safe_unquote= ;; | |
1985 *) | |
1986 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1987 ac_unsafe_a="$ac_unsafe_z#~" | |
1988 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1989 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1990 esac | |
1991 | |
1992 cat >config.log <<_ACEOF | 2019 cat >config.log <<_ACEOF |
1993 This file contains any messages produced by compilers while | 2020 This file contains any messages produced by compilers while |
1994 running configure, to aid debugging if configure makes a mistake. | 2021 running configure, to aid debugging if configure makes a mistake. |
1995 | 2022 |
1996 It was created by $as_me, which was | 2023 It was created by $as_me, which was |
1997 generated by GNU Autoconf 2.71. Invocation command line was | 2024 generated by GNU Autoconf 2.69. Invocation command line was |
1998 | 2025 |
1999 $ $0$ac_configure_args_raw | 2026 $ $0 $@ |
2000 | 2027 |
2001 _ACEOF | 2028 _ACEOF |
2002 exec 5>>config.log | 2029 exec 5>>config.log |
2003 { | 2030 { |
2004 cat <<_ASUNAME | 2031 cat <<_ASUNAME |
2027 | 2054 |
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2029 for as_dir in $PATH | 2056 for as_dir in $PATH |
2030 do | 2057 do |
2031 IFS=$as_save_IFS | 2058 IFS=$as_save_IFS |
2032 case $as_dir in #((( | 2059 test -z "$as_dir" && as_dir=. |
2033 '') as_dir=./ ;; | 2060 $as_echo "PATH: $as_dir" |
2034 */) ;; | |
2035 *) as_dir=$as_dir/ ;; | |
2036 esac | |
2037 printf "%s\n" "PATH: $as_dir" | |
2038 done | 2061 done |
2039 IFS=$as_save_IFS | 2062 IFS=$as_save_IFS |
2040 | 2063 |
2041 } >&5 | 2064 } >&5 |
2042 | 2065 |
2067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 2090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 2091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2069 | -silent | --silent | --silen | --sile | --sil) | 2092 | -silent | --silent | --silen | --sile | --sil) |
2070 continue ;; | 2093 continue ;; |
2071 *\'*) | 2094 *\'*) |
2072 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 2095 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2073 esac | 2096 esac |
2074 case $ac_pass in | 2097 case $ac_pass in |
2075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 2098 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2076 2) | 2099 2) |
2077 as_fn_append ac_configure_args1 " '$ac_arg'" | 2100 as_fn_append ac_configure_args1 " '$ac_arg'" |
2102 # config.log. We remove comments because anyway the quotes in there | 2125 # config.log. We remove comments because anyway the quotes in there |
2103 # would cause problems or look ugly. | 2126 # would cause problems or look ugly. |
2104 # WARNING: Use '\'' to represent an apostrophe within the trap. | 2127 # WARNING: Use '\'' to represent an apostrophe within the trap. |
2105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 2128 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2106 trap 'exit_status=$? | 2129 trap 'exit_status=$? |
2107 # Sanitize IFS. | |
2108 IFS=" "" $as_nl" | |
2109 # Save into config.log some information that might help in debugging. | 2130 # Save into config.log some information that might help in debugging. |
2110 { | 2131 { |
2111 echo | 2132 echo |
2112 | 2133 |
2113 printf "%s\n" "## ---------------- ## | 2134 $as_echo "## ---------------- ## |
2114 ## Cache variables. ## | 2135 ## Cache variables. ## |
2115 ## ---------------- ##" | 2136 ## ---------------- ##" |
2116 echo | 2137 echo |
2117 # The following way of writing the cache mishandles newlines in values, | 2138 # The following way of writing the cache mishandles newlines in values, |
2118 ( | 2139 ( |
2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 2140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2120 eval ac_val=\$$ac_var | 2141 eval ac_val=\$$ac_var |
2121 case $ac_val in #( | 2142 case $ac_val in #( |
2122 *${as_nl}*) | 2143 *${as_nl}*) |
2123 case $ac_var in #( | 2144 case $ac_var in #( |
2124 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 2145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2125 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 2146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2126 esac | 2147 esac |
2127 case $ac_var in #( | 2148 case $ac_var in #( |
2128 _ | IFS | as_nl) ;; #( | 2149 _ | IFS | as_nl) ;; #( |
2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 2150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2130 *) { eval $ac_var=; unset $ac_var;} ;; | 2151 *) { eval $ac_var=; unset $ac_var;} ;; |
2144 esac | | 2165 esac | |
2145 sort | 2166 sort |
2146 ) | 2167 ) |
2147 echo | 2168 echo |
2148 | 2169 |
2149 printf "%s\n" "## ----------------- ## | 2170 $as_echo "## ----------------- ## |
2150 ## Output variables. ## | 2171 ## Output variables. ## |
2151 ## ----------------- ##" | 2172 ## ----------------- ##" |
2152 echo | 2173 echo |
2153 for ac_var in $ac_subst_vars | 2174 for ac_var in $ac_subst_vars |
2154 do | 2175 do |
2155 eval ac_val=\$$ac_var | 2176 eval ac_val=\$$ac_var |
2156 case $ac_val in | 2177 case $ac_val in |
2157 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2158 esac | 2179 esac |
2159 printf "%s\n" "$ac_var='\''$ac_val'\''" | 2180 $as_echo "$ac_var='\''$ac_val'\''" |
2160 done | sort | 2181 done | sort |
2161 echo | 2182 echo |
2162 | 2183 |
2163 if test -n "$ac_subst_files"; then | 2184 if test -n "$ac_subst_files"; then |
2164 printf "%s\n" "## ------------------- ## | 2185 $as_echo "## ------------------- ## |
2165 ## File substitutions. ## | 2186 ## File substitutions. ## |
2166 ## ------------------- ##" | 2187 ## ------------------- ##" |
2167 echo | 2188 echo |
2168 for ac_var in $ac_subst_files | 2189 for ac_var in $ac_subst_files |
2169 do | 2190 do |
2170 eval ac_val=\$$ac_var | 2191 eval ac_val=\$$ac_var |
2171 case $ac_val in | 2192 case $ac_val in |
2172 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 2193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2173 esac | 2194 esac |
2174 printf "%s\n" "$ac_var='\''$ac_val'\''" | 2195 $as_echo "$ac_var='\''$ac_val'\''" |
2175 done | sort | 2196 done | sort |
2176 echo | 2197 echo |
2177 fi | 2198 fi |
2178 | 2199 |
2179 if test -s confdefs.h; then | 2200 if test -s confdefs.h; then |
2180 printf "%s\n" "## ----------- ## | 2201 $as_echo "## ----------- ## |
2181 ## confdefs.h. ## | 2202 ## confdefs.h. ## |
2182 ## ----------- ##" | 2203 ## ----------- ##" |
2183 echo | 2204 echo |
2184 cat confdefs.h | 2205 cat confdefs.h |
2185 echo | 2206 echo |
2186 fi | 2207 fi |
2187 test "$ac_signal" != 0 && | 2208 test "$ac_signal" != 0 && |
2188 printf "%s\n" "$as_me: caught signal $ac_signal" | 2209 $as_echo "$as_me: caught signal $ac_signal" |
2189 printf "%s\n" "$as_me: exit $exit_status" | 2210 $as_echo "$as_me: exit $exit_status" |
2190 } >&5 | 2211 } >&5 |
2191 rm -f core *.core core.conftest.* && | 2212 rm -f core *.core core.conftest.* && |
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2193 exit $exit_status | 2214 exit $exit_status |
2194 ' 0 | 2215 ' 0 |
2198 ac_signal=0 | 2219 ac_signal=0 |
2199 | 2220 |
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed. | 2221 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2201 rm -f -r conftest* confdefs.h | 2222 rm -f -r conftest* confdefs.h |
2202 | 2223 |
2203 printf "%s\n" "/* confdefs.h */" > confdefs.h | 2224 $as_echo "/* confdefs.h */" > confdefs.h |
2204 | 2225 |
2205 # Predefined preprocessor variables. | 2226 # Predefined preprocessor variables. |
2206 | 2227 |
2207 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | 2228 cat >>confdefs.h <<_ACEOF |
2208 | 2229 #define PACKAGE_NAME "$PACKAGE_NAME" |
2209 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | 2230 _ACEOF |
2210 | 2231 |
2211 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | 2232 cat >>confdefs.h <<_ACEOF |
2212 | 2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2213 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | 2234 _ACEOF |
2214 | 2235 |
2215 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | 2236 cat >>confdefs.h <<_ACEOF |
2216 | 2237 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
2217 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | 2238 _ACEOF |
2239 | |
2240 cat >>confdefs.h <<_ACEOF | |
2241 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2242 _ACEOF | |
2243 | |
2244 cat >>confdefs.h <<_ACEOF | |
2245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2246 _ACEOF | |
2247 | |
2248 cat >>confdefs.h <<_ACEOF | |
2249 #define PACKAGE_URL "$PACKAGE_URL" | |
2250 _ACEOF | |
2218 | 2251 |
2219 | 2252 |
2220 # Let the site file select an alternate cache file if it wants to. | 2253 # Let the site file select an alternate cache file if it wants to. |
2221 # Prefer an explicitly selected file to automatically selected ones. | 2254 # Prefer an explicitly selected file to automatically selected ones. |
2255 ac_site_file1=NONE | |
2256 ac_site_file2=NONE | |
2222 if test -n "$CONFIG_SITE"; then | 2257 if test -n "$CONFIG_SITE"; then |
2223 ac_site_files="$CONFIG_SITE" | 2258 # We do not want a PATH search for config.site. |
2259 case $CONFIG_SITE in #(( | |
2260 -*) ac_site_file1=./$CONFIG_SITE;; | |
2261 */*) ac_site_file1=$CONFIG_SITE;; | |
2262 *) ac_site_file1=./$CONFIG_SITE;; | |
2263 esac | |
2224 elif test "x$prefix" != xNONE; then | 2264 elif test "x$prefix" != xNONE; then |
2225 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | 2265 ac_site_file1=$prefix/share/config.site |
2226 else | 2266 ac_site_file2=$prefix/etc/config.site |
2227 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 2267 else |
2228 fi | 2268 ac_site_file1=$ac_default_prefix/share/config.site |
2229 | 2269 ac_site_file2=$ac_default_prefix/etc/config.site |
2230 for ac_site_file in $ac_site_files | 2270 fi |
2271 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2231 do | 2272 do |
2232 case $ac_site_file in #( | 2273 test "x$ac_site_file" = xNONE && continue |
2233 */*) : | 2274 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2234 ;; #( | 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2235 *) : | 2276 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2236 ac_site_file=./$ac_site_file ;; | |
2237 esac | |
2238 if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2240 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
2241 sed 's/^/| /' "$ac_site_file" >&5 | 2277 sed 's/^/| /' "$ac_site_file" >&5 |
2242 . "$ac_site_file" \ | 2278 . "$ac_site_file" \ |
2243 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2279 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2244 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2245 as_fn_error $? "failed to load site script $ac_site_file | 2281 as_fn_error $? "failed to load site script $ac_site_file |
2246 See \`config.log' for more details" "$LINENO" 5; } | 2282 See \`config.log' for more details" "$LINENO" 5; } |
2247 fi | 2283 fi |
2248 done | 2284 done |
2249 | 2285 |
2250 if test -r "$cache_file"; then | 2286 if test -r "$cache_file"; then |
2251 # Some versions of bash will fail to source /dev/null (special files | 2287 # Some versions of bash will fail to source /dev/null (special files |
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | 2288 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 2289 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2255 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | 2291 $as_echo "$as_me: loading cache $cache_file" >&6;} |
2256 case $cache_file in | 2292 case $cache_file in |
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";; | 2293 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2258 *) . "./$cache_file";; | 2294 *) . "./$cache_file";; |
2259 esac | 2295 esac |
2260 fi | 2296 fi |
2261 else | 2297 else |
2262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2263 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | 2299 $as_echo "$as_me: creating cache $cache_file" >&6;} |
2264 >$cache_file | 2300 >$cache_file |
2265 fi | |
2266 | |
2267 # Test code for whether the C compiler supports C89 (global declarations) | |
2268 ac_c_conftest_c89_globals=' | |
2269 /* Does the compiler advertise C89 conformance? | |
2270 Do not test the value of __STDC__, because some compilers set it to 0 | |
2271 while being otherwise adequately conformant. */ | |
2272 #if !defined __STDC__ | |
2273 # error "Compiler does not advertise C89 conformance" | |
2274 #endif | |
2275 | |
2276 #include <stddef.h> | |
2277 #include <stdarg.h> | |
2278 struct stat; | |
2279 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2280 struct buf { int x; }; | |
2281 struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2282 static char *e (p, i) | |
2283 char **p; | |
2284 int i; | |
2285 { | |
2286 return p[i]; | |
2287 } | |
2288 static char *f (char * (*g) (char **, int), char **p, ...) | |
2289 { | |
2290 char *s; | |
2291 va_list v; | |
2292 va_start (v,p); | |
2293 s = g (p, va_arg (v,int)); | |
2294 va_end (v); | |
2295 return s; | |
2296 } | |
2297 | |
2298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2299 function prototypes and stuff, but not \xHH hex character constants. | |
2300 These do not provoke an error unfortunately, instead are silently treated | |
2301 as an "x". The following induces an error, until -std is added to get | |
2302 proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2303 array size at least. It is necessary to write \x00 == 0 to get something | |
2304 that is true only with -std. */ | |
2305 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2306 | |
2307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2308 inside strings and character constants. */ | |
2309 #define FOO(x) '\''x'\'' | |
2310 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2311 | |
2312 int test (int i, double x); | |
2313 struct s1 {int (*f) (int a);}; | |
2314 struct s2 {int (*f) (double a);}; | |
2315 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2316 int, int);' | |
2317 | |
2318 # Test code for whether the C compiler supports C89 (body of main). | |
2319 ac_c_conftest_c89_main=' | |
2320 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2321 ' | |
2322 | |
2323 # Test code for whether the C compiler supports C99 (global declarations) | |
2324 ac_c_conftest_c99_globals=' | |
2325 // Does the compiler advertise C99 conformance? | |
2326 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2327 # error "Compiler does not advertise C99 conformance" | |
2328 #endif | |
2329 | |
2330 #include <stdbool.h> | |
2331 extern int puts (const char *); | |
2332 extern int printf (const char *, ...); | |
2333 extern int dprintf (int, const char *, ...); | |
2334 extern void *malloc (size_t); | |
2335 | |
2336 // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2337 // dprintf is used instead of fprintf to avoid needing to declare | |
2338 // FILE and stderr. | |
2339 #define debug(...) dprintf (2, __VA_ARGS__) | |
2340 #define showlist(...) puts (#__VA_ARGS__) | |
2341 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2342 static void | |
2343 test_varargs_macros (void) | |
2344 { | |
2345 int x = 1234; | |
2346 int y = 5678; | |
2347 debug ("Flag"); | |
2348 debug ("X = %d\n", x); | |
2349 showlist (The first, second, and third items.); | |
2350 report (x>y, "x is %d but y is %d", x, y); | |
2351 } | |
2352 | |
2353 // Check long long types. | |
2354 #define BIG64 18446744073709551615ull | |
2355 #define BIG32 4294967295ul | |
2356 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2357 #if !BIG_OK | |
2358 #error "your preprocessor is broken" | |
2359 #endif | |
2360 #if BIG_OK | |
2361 #else | |
2362 #error "your preprocessor is broken" | |
2363 #endif | |
2364 static long long int bignum = -9223372036854775807LL; | |
2365 static unsigned long long int ubignum = BIG64; | |
2366 | |
2367 struct incomplete_array | |
2368 { | |
2369 int datasize; | |
2370 double data[]; | |
2371 }; | |
2372 | |
2373 struct named_init { | |
2374 int number; | |
2375 const wchar_t *name; | |
2376 double average; | |
2377 }; | |
2378 | |
2379 typedef const char *ccp; | |
2380 | |
2381 static inline int | |
2382 test_restrict (ccp restrict text) | |
2383 { | |
2384 // See if C++-style comments work. | |
2385 // Iterate through items via the restricted pointer. | |
2386 // Also check for declarations in for loops. | |
2387 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2388 continue; | |
2389 return 0; | |
2390 } | |
2391 | |
2392 // Check varargs and va_copy. | |
2393 static bool | |
2394 test_varargs (const char *format, ...) | |
2395 { | |
2396 va_list args; | |
2397 va_start (args, format); | |
2398 va_list args_copy; | |
2399 va_copy (args_copy, args); | |
2400 | |
2401 const char *str = ""; | |
2402 int number = 0; | |
2403 float fnumber = 0; | |
2404 | |
2405 while (*format) | |
2406 { | |
2407 switch (*format++) | |
2408 { | |
2409 case '\''s'\'': // string | |
2410 str = va_arg (args_copy, const char *); | |
2411 break; | |
2412 case '\''d'\'': // int | |
2413 number = va_arg (args_copy, int); | |
2414 break; | |
2415 case '\''f'\'': // float | |
2416 fnumber = va_arg (args_copy, double); | |
2417 break; | |
2418 default: | |
2419 break; | |
2420 } | |
2421 } | |
2422 va_end (args_copy); | |
2423 va_end (args); | |
2424 | |
2425 return *str && number && fnumber; | |
2426 } | |
2427 ' | |
2428 | |
2429 # Test code for whether the C compiler supports C99 (body of main). | |
2430 ac_c_conftest_c99_main=' | |
2431 // Check bool. | |
2432 _Bool success = false; | |
2433 success |= (argc != 0); | |
2434 | |
2435 // Check restrict. | |
2436 if (test_restrict ("String literal") == 0) | |
2437 success = true; | |
2438 char *restrict newvar = "Another string"; | |
2439 | |
2440 // Check varargs. | |
2441 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2442 test_varargs_macros (); | |
2443 | |
2444 // Check flexible array members. | |
2445 struct incomplete_array *ia = | |
2446 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2447 ia->datasize = 10; | |
2448 for (int i = 0; i < ia->datasize; ++i) | |
2449 ia->data[i] = i * 1.234; | |
2450 | |
2451 // Check named initializers. | |
2452 struct named_init ni = { | |
2453 .number = 34, | |
2454 .name = L"Test wide string", | |
2455 .average = 543.34343, | |
2456 }; | |
2457 | |
2458 ni.number = 58; | |
2459 | |
2460 int dynamic_array[ni.number]; | |
2461 dynamic_array[0] = argv[0][0]; | |
2462 dynamic_array[ni.number - 1] = 543; | |
2463 | |
2464 // work around unused variable warnings | |
2465 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2466 || dynamic_array[ni.number - 1] != 543); | |
2467 ' | |
2468 | |
2469 # Test code for whether the C compiler supports C11 (global declarations) | |
2470 ac_c_conftest_c11_globals=' | |
2471 // Does the compiler advertise C11 conformance? | |
2472 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2473 # error "Compiler does not advertise C11 conformance" | |
2474 #endif | |
2475 | |
2476 // Check _Alignas. | |
2477 char _Alignas (double) aligned_as_double; | |
2478 char _Alignas (0) no_special_alignment; | |
2479 extern char aligned_as_int; | |
2480 char _Alignas (0) _Alignas (int) aligned_as_int; | |
2481 | |
2482 // Check _Alignof. | |
2483 enum | |
2484 { | |
2485 int_alignment = _Alignof (int), | |
2486 int_array_alignment = _Alignof (int[100]), | |
2487 char_alignment = _Alignof (char) | |
2488 }; | |
2489 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2490 | |
2491 // Check _Noreturn. | |
2492 int _Noreturn does_not_return (void) { for (;;) continue; } | |
2493 | |
2494 // Check _Static_assert. | |
2495 struct test_static_assert | |
2496 { | |
2497 int x; | |
2498 _Static_assert (sizeof (int) <= sizeof (long int), | |
2499 "_Static_assert does not work in struct"); | |
2500 long int y; | |
2501 }; | |
2502 | |
2503 // Check UTF-8 literals. | |
2504 #define u8 syntax error! | |
2505 char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2506 | |
2507 // Check duplicate typedefs. | |
2508 typedef long *long_ptr; | |
2509 typedef long int *long_ptr; | |
2510 typedef long_ptr long_ptr; | |
2511 | |
2512 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2513 struct anonymous | |
2514 { | |
2515 union { | |
2516 struct { int i; int j; }; | |
2517 struct { int k; long int l; } w; | |
2518 }; | |
2519 int m; | |
2520 } v1; | |
2521 ' | |
2522 | |
2523 # Test code for whether the C compiler supports C11 (body of main). | |
2524 ac_c_conftest_c11_main=' | |
2525 _Static_assert ((offsetof (struct anonymous, i) | |
2526 == offsetof (struct anonymous, w.k)), | |
2527 "Anonymous union alignment botch"); | |
2528 v1.i = 2; | |
2529 v1.w.k = 5; | |
2530 ok |= v1.i != 5; | |
2531 ' | |
2532 | |
2533 # Test code for whether the C compiler supports C11 (complete). | |
2534 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2535 ${ac_c_conftest_c99_globals} | |
2536 ${ac_c_conftest_c11_globals} | |
2537 | |
2538 int | |
2539 main (int argc, char **argv) | |
2540 { | |
2541 int ok = 0; | |
2542 ${ac_c_conftest_c89_main} | |
2543 ${ac_c_conftest_c99_main} | |
2544 ${ac_c_conftest_c11_main} | |
2545 return ok; | |
2546 } | |
2547 " | |
2548 | |
2549 # Test code for whether the C compiler supports C99 (complete). | |
2550 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2551 ${ac_c_conftest_c99_globals} | |
2552 | |
2553 int | |
2554 main (int argc, char **argv) | |
2555 { | |
2556 int ok = 0; | |
2557 ${ac_c_conftest_c89_main} | |
2558 ${ac_c_conftest_c99_main} | |
2559 return ok; | |
2560 } | |
2561 " | |
2562 | |
2563 # Test code for whether the C compiler supports C89 (complete). | |
2564 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2565 | |
2566 int | |
2567 main (int argc, char **argv) | |
2568 { | |
2569 int ok = 0; | |
2570 ${ac_c_conftest_c89_main} | |
2571 return ok; | |
2572 } | |
2573 " | |
2574 | |
2575 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
2576 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
2577 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
2578 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
2579 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
2580 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
2581 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
2582 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
2583 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
2584 # Test code for whether the C++ compiler supports C++98 (global declarations) | |
2585 ac_cxx_conftest_cxx98_globals=' | |
2586 // Does the compiler advertise C++98 conformance? | |
2587 #if !defined __cplusplus || __cplusplus < 199711L | |
2588 # error "Compiler does not advertise C++98 conformance" | |
2589 #endif | |
2590 | |
2591 // These inclusions are to reject old compilers that | |
2592 // lack the unsuffixed header files. | |
2593 #include <cstdlib> | |
2594 #include <exception> | |
2595 | |
2596 // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
2597 extern void assert (int); | |
2598 namespace std { | |
2599 extern int strcmp (const char *, const char *); | |
2600 } | |
2601 | |
2602 // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
2603 using std::exception; | |
2604 using std::strcmp; | |
2605 | |
2606 namespace { | |
2607 | |
2608 void test_exception_syntax() | |
2609 { | |
2610 try { | |
2611 throw "test"; | |
2612 } catch (const char *s) { | |
2613 // Extra parentheses suppress a warning when building autoconf itself, | |
2614 // due to lint rules shared with more typical C programs. | |
2615 assert (!(strcmp) (s, "test")); | |
2616 } | |
2617 } | |
2618 | |
2619 template <typename T> struct test_template | |
2620 { | |
2621 T const val; | |
2622 explicit test_template(T t) : val(t) {} | |
2623 template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
2624 }; | |
2625 | |
2626 } // anonymous namespace | |
2627 ' | |
2628 | |
2629 # Test code for whether the C++ compiler supports C++98 (body of main) | |
2630 ac_cxx_conftest_cxx98_main=' | |
2631 assert (argc); | |
2632 assert (! argv[0]); | |
2633 { | |
2634 test_exception_syntax (); | |
2635 test_template<double> tt (2.0); | |
2636 assert (tt.add (4) == 6.0); | |
2637 assert (true && !false); | |
2638 } | |
2639 ' | |
2640 | |
2641 # Test code for whether the C++ compiler supports C++11 (global declarations) | |
2642 ac_cxx_conftest_cxx11_globals=' | |
2643 // Does the compiler advertise C++ 2011 conformance? | |
2644 #if !defined __cplusplus || __cplusplus < 201103L | |
2645 # error "Compiler does not advertise C++11 conformance" | |
2646 #endif | |
2647 | |
2648 namespace cxx11test | |
2649 { | |
2650 constexpr int get_val() { return 20; } | |
2651 | |
2652 struct testinit | |
2653 { | |
2654 int i; | |
2655 double d; | |
2656 }; | |
2657 | |
2658 class delegate | |
2659 { | |
2660 public: | |
2661 delegate(int n) : n(n) {} | |
2662 delegate(): delegate(2354) {} | |
2663 | |
2664 virtual int getval() { return this->n; }; | |
2665 protected: | |
2666 int n; | |
2667 }; | |
2668 | |
2669 class overridden : public delegate | |
2670 { | |
2671 public: | |
2672 overridden(int n): delegate(n) {} | |
2673 virtual int getval() override final { return this->n * 2; } | |
2674 }; | |
2675 | |
2676 class nocopy | |
2677 { | |
2678 public: | |
2679 nocopy(int i): i(i) {} | |
2680 nocopy() = default; | |
2681 nocopy(const nocopy&) = delete; | |
2682 nocopy & operator=(const nocopy&) = delete; | |
2683 private: | |
2684 int i; | |
2685 }; | |
2686 | |
2687 // for testing lambda expressions | |
2688 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
2689 { | |
2690 return f(v); | |
2691 } | |
2692 | |
2693 // for testing variadic templates and trailing return types | |
2694 template <typename V> auto sum(V first) -> V | |
2695 { | |
2696 return first; | |
2697 } | |
2698 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
2699 { | |
2700 return first + sum(rest...); | |
2701 } | |
2702 } | |
2703 ' | |
2704 | |
2705 # Test code for whether the C++ compiler supports C++11 (body of main) | |
2706 ac_cxx_conftest_cxx11_main=' | |
2707 { | |
2708 // Test auto and decltype | |
2709 auto a1 = 6538; | |
2710 auto a2 = 48573953.4; | |
2711 auto a3 = "String literal"; | |
2712 | |
2713 int total = 0; | |
2714 for (auto i = a3; *i; ++i) { total += *i; } | |
2715 | |
2716 decltype(a2) a4 = 34895.034; | |
2717 } | |
2718 { | |
2719 // Test constexpr | |
2720 short sa[cxx11test::get_val()] = { 0 }; | |
2721 } | |
2722 { | |
2723 // Test initializer lists | |
2724 cxx11test::testinit il = { 4323, 435234.23544 }; | |
2725 } | |
2726 { | |
2727 // Test range-based for | |
2728 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
2729 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
2730 for (auto &x : array) { x += 23; } | |
2731 } | |
2732 { | |
2733 // Test lambda expressions | |
2734 using cxx11test::eval; | |
2735 assert (eval ([](int x) { return x*2; }, 21) == 42); | |
2736 double d = 2.0; | |
2737 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
2738 assert (d == 5.0); | |
2739 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
2740 assert (d == 5.0); | |
2741 } | |
2742 { | |
2743 // Test use of variadic templates | |
2744 using cxx11test::sum; | |
2745 auto a = sum(1); | |
2746 auto b = sum(1, 2); | |
2747 auto c = sum(1.0, 2.0, 3.0); | |
2748 } | |
2749 { | |
2750 // Test constructor delegation | |
2751 cxx11test::delegate d1; | |
2752 cxx11test::delegate d2(); | |
2753 cxx11test::delegate d3(45); | |
2754 } | |
2755 { | |
2756 // Test override and final | |
2757 cxx11test::overridden o1(55464); | |
2758 } | |
2759 { | |
2760 // Test nullptr | |
2761 char *c = nullptr; | |
2762 } | |
2763 { | |
2764 // Test template brackets | |
2765 test_template<::test_template<int>> v(test_template<int>(12)); | |
2766 } | |
2767 { | |
2768 // Unicode literals | |
2769 char const *utf8 = u8"UTF-8 string \u2500"; | |
2770 char16_t const *utf16 = u"UTF-8 string \u2500"; | |
2771 char32_t const *utf32 = U"UTF-32 string \u2500"; | |
2772 } | |
2773 ' | |
2774 | |
2775 # Test code for whether the C compiler supports C++11 (complete). | |
2776 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
2777 ${ac_cxx_conftest_cxx11_globals} | |
2778 | |
2779 int | |
2780 main (int argc, char **argv) | |
2781 { | |
2782 int ok = 0; | |
2783 ${ac_cxx_conftest_cxx98_main} | |
2784 ${ac_cxx_conftest_cxx11_main} | |
2785 return ok; | |
2786 } | |
2787 " | |
2788 | |
2789 # Test code for whether the C compiler supports C++98 (complete). | |
2790 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
2791 int | |
2792 main (int argc, char **argv) | |
2793 { | |
2794 int ok = 0; | |
2795 ${ac_cxx_conftest_cxx98_main} | |
2796 return ok; | |
2797 } | |
2798 " | |
2799 | |
2800 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" | |
2801 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" | |
2802 | |
2803 # Auxiliary files required by this configure script. | |
2804 ac_aux_files="config.guess config.sub" | |
2805 | |
2806 # Locations in which to look for auxiliary files. | |
2807 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." | |
2808 | |
2809 # Search for a directory containing all of the required auxiliary files, | |
2810 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2811 # If we don't find one directory that contains all the files we need, | |
2812 # we report the set of missing files from the *first* directory in | |
2813 # $ac_aux_dir_candidates and give up. | |
2814 ac_missing_aux_files="" | |
2815 ac_first_candidate=: | |
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2818 as_found=false | |
2819 for as_dir in $ac_aux_dir_candidates | |
2820 do | |
2821 IFS=$as_save_IFS | |
2822 case $as_dir in #((( | |
2823 '') as_dir=./ ;; | |
2824 */) ;; | |
2825 *) as_dir=$as_dir/ ;; | |
2826 esac | |
2827 as_found=: | |
2828 | |
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2830 ac_aux_dir_found=yes | |
2831 ac_install_sh= | |
2832 for ac_aux in $ac_aux_files | |
2833 do | |
2834 # As a special case, if "install-sh" is required, that requirement | |
2835 # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2836 # and $ac_install_sh is set appropriately for whichever one is found. | |
2837 if test x"$ac_aux" = x"install-sh" | |
2838 then | |
2839 if test -f "${as_dir}install-sh"; then | |
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2841 ac_install_sh="${as_dir}install-sh -c" | |
2842 elif test -f "${as_dir}install.sh"; then | |
2843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2844 ac_install_sh="${as_dir}install.sh -c" | |
2845 elif test -f "${as_dir}shtool"; then | |
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2847 ac_install_sh="${as_dir}shtool install -c" | |
2848 else | |
2849 ac_aux_dir_found=no | |
2850 if $ac_first_candidate; then | |
2851 ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2852 else | |
2853 break | |
2854 fi | |
2855 fi | |
2856 else | |
2857 if test -f "${as_dir}${ac_aux}"; then | |
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2859 else | |
2860 ac_aux_dir_found=no | |
2861 if $ac_first_candidate; then | |
2862 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2863 else | |
2864 break | |
2865 fi | |
2866 fi | |
2867 fi | |
2868 done | |
2869 if test "$ac_aux_dir_found" = yes; then | |
2870 ac_aux_dir="$as_dir" | |
2871 break | |
2872 fi | |
2873 ac_first_candidate=false | |
2874 | |
2875 as_found=false | |
2876 done | |
2877 IFS=$as_save_IFS | |
2878 if $as_found | |
2879 then : | |
2880 | |
2881 else $as_nop | |
2882 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2883 fi | |
2884 | |
2885 | |
2886 # These three variables are undocumented and unsupported, | |
2887 # and are intended to be withdrawn in a future Autoconf release. | |
2888 # They can cause serious problems if a builder's source tree is in a directory | |
2889 # whose full name contains unusual characters. | |
2890 if test -f "${ac_aux_dir}config.guess"; then | |
2891 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2892 fi | |
2893 if test -f "${ac_aux_dir}config.sub"; then | |
2894 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2895 fi | |
2896 if test -f "$ac_aux_dir/configure"; then | |
2897 ac_configure="$SHELL ${ac_aux_dir}configure" | |
2898 fi | 2301 fi |
2899 | 2302 |
2900 # Check that the precious variables saved in the cache have kept the same | 2303 # Check that the precious variables saved in the cache have kept the same |
2901 # value. | 2304 # value. |
2902 ac_cache_corrupted=false | 2305 ac_cache_corrupted=false |
2905 eval ac_new_set=\$ac_env_${ac_var}_set | 2308 eval ac_new_set=\$ac_env_${ac_var}_set |
2906 eval ac_old_val=\$ac_cv_env_${ac_var}_value | 2309 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2907 eval ac_new_val=\$ac_env_${ac_var}_value | 2310 eval ac_new_val=\$ac_env_${ac_var}_value |
2908 case $ac_old_set,$ac_new_set in | 2311 case $ac_old_set,$ac_new_set in |
2909 set,) | 2312 set,) |
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2911 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 2314 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2912 ac_cache_corrupted=: ;; | 2315 ac_cache_corrupted=: ;; |
2913 ,set) | 2316 ,set) |
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2915 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 2318 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2916 ac_cache_corrupted=: ;; | 2319 ac_cache_corrupted=: ;; |
2917 ,);; | 2320 ,);; |
2918 *) | 2321 *) |
2919 if test "x$ac_old_val" != "x$ac_new_val"; then | 2322 if test "x$ac_old_val" != "x$ac_new_val"; then |
2920 # differences in whitespace do not lead to failure. | 2323 # differences in whitespace do not lead to failure. |
2921 ac_old_val_w=`echo x $ac_old_val` | 2324 ac_old_val_w=`echo x $ac_old_val` |
2922 ac_new_val_w=`echo x $ac_new_val` | 2325 ac_new_val_w=`echo x $ac_new_val` |
2923 if test "$ac_old_val_w" != "$ac_new_val_w"; then | 2326 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2925 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 2328 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2926 ac_cache_corrupted=: | 2329 ac_cache_corrupted=: |
2927 else | 2330 else |
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2929 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 2332 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2930 eval $ac_var=\$ac_old_val | 2333 eval $ac_var=\$ac_old_val |
2931 fi | 2334 fi |
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2933 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | 2336 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2935 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | 2338 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2936 fi;; | 2339 fi;; |
2937 esac | 2340 esac |
2938 # Pass precious variables to config.status. | 2341 # Pass precious variables to config.status. |
2939 if test "$ac_new_set" = set; then | 2342 if test "$ac_new_set" = set; then |
2940 case $ac_new_val in | 2343 case $ac_new_val in |
2941 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 2344 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2942 *) ac_arg=$ac_var=$ac_new_val ;; | 2345 *) ac_arg=$ac_var=$ac_new_val ;; |
2943 esac | 2346 esac |
2944 case " $ac_configure_args " in | 2347 case " $ac_configure_args " in |
2945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | 2348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2946 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 2349 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2947 esac | 2350 esac |
2948 fi | 2351 fi |
2949 done | 2352 done |
2950 if $ac_cache_corrupted; then | 2353 if $ac_cache_corrupted; then |
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2954 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | 2357 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2955 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | 2358 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2956 and start over" "$LINENO" 5 | |
2957 fi | 2359 fi |
2958 ## -------------------- ## | 2360 ## -------------------- ## |
2959 ## Main body of script. ## | 2361 ## Main body of script. ## |
2960 ## -------------------- ## | 2362 ## -------------------- ## |
2961 | 2363 |
2969 | 2371 |
2970 | 2372 |
2971 # Record which revision is being built | 2373 # Record which revision is being built |
2972 if test -s "`which hg`" && test -d "$srcdir/.hg"; then | 2374 if test -s "`which hg`" && test -d "$srcdir/.hg"; then |
2973 hgrev=`hg id -i -R "$srcdir"` | 2375 hgrev=`hg id -i -R "$srcdir"` |
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Source directory Mercurial base revision $hgrev" >&5 | 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: Source directory Mercurial base revision $hgrev" >&5 |
2975 printf "%s\n" "$as_me: Source directory Mercurial base revision $hgrev" >&6;} | 2377 $as_echo "$as_me: Source directory Mercurial base revision $hgrev" >&6;} |
2976 fi | 2378 fi |
2977 | 2379 |
2978 ORIGCFLAGS="$CFLAGS" | 2380 ORIGCFLAGS="$CFLAGS" |
2979 # Checks for programs. | 2381 # Checks for programs. |
2980 | |
2981 | |
2982 | |
2983 | |
2984 | |
2985 | |
2986 | |
2987 | |
2988 | |
2989 ac_ext=c | 2382 ac_ext=c |
2990 ac_cpp='$CPP $CPPFLAGS' | 2383 ac_cpp='$CPP $CPPFLAGS' |
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2994 if test -n "$ac_tool_prefix"; then | 2387 if test -n "$ac_tool_prefix"; then |
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 2388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 2389 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2998 printf %s "checking for $ac_word... " >&6; } | 2391 $as_echo_n "checking for $ac_word... " >&6; } |
2999 if test ${ac_cv_prog_CC+y} | 2392 if ${ac_cv_prog_CC+:} false; then : |
3000 then : | 2393 $as_echo_n "(cached) " >&6 |
3001 printf %s "(cached) " >&6 | 2394 else |
3002 else $as_nop | |
3003 if test -n "$CC"; then | 2395 if test -n "$CC"; then |
3004 ac_cv_prog_CC="$CC" # Let the user override the test. | 2396 ac_cv_prog_CC="$CC" # Let the user override the test. |
3005 else | 2397 else |
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3007 for as_dir in $PATH | 2399 for as_dir in $PATH |
3008 do | 2400 do |
3009 IFS=$as_save_IFS | 2401 IFS=$as_save_IFS |
3010 case $as_dir in #((( | 2402 test -z "$as_dir" && as_dir=. |
3011 '') as_dir=./ ;; | |
3012 */) ;; | |
3013 *) as_dir=$as_dir/ ;; | |
3014 esac | |
3015 for ac_exec_ext in '' $ac_executable_extensions; do | 2403 for ac_exec_ext in '' $ac_executable_extensions; do |
3016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc" | 2405 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3019 break 2 | 2407 break 2 |
3020 fi | 2408 fi |
3021 done | 2409 done |
3022 done | 2410 done |
3023 IFS=$as_save_IFS | 2411 IFS=$as_save_IFS |
3024 | 2412 |
3025 fi | 2413 fi |
3026 fi | 2414 fi |
3027 CC=$ac_cv_prog_CC | 2415 CC=$ac_cv_prog_CC |
3028 if test -n "$CC"; then | 2416 if test -n "$CC"; then |
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3030 printf "%s\n" "$CC" >&6; } | 2418 $as_echo "$CC" >&6; } |
3031 else | 2419 else |
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3033 printf "%s\n" "no" >&6; } | 2421 $as_echo "no" >&6; } |
3034 fi | 2422 fi |
3035 | 2423 |
3036 | 2424 |
3037 fi | 2425 fi |
3038 if test -z "$ac_cv_prog_CC"; then | 2426 if test -z "$ac_cv_prog_CC"; then |
3039 ac_ct_CC=$CC | 2427 ac_ct_CC=$CC |
3040 # Extract the first word of "gcc", so it can be a program name with args. | 2428 # Extract the first word of "gcc", so it can be a program name with args. |
3041 set dummy gcc; ac_word=$2 | 2429 set dummy gcc; ac_word=$2 |
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3043 printf %s "checking for $ac_word... " >&6; } | 2431 $as_echo_n "checking for $ac_word... " >&6; } |
3044 if test ${ac_cv_prog_ac_ct_CC+y} | 2432 if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3045 then : | 2433 $as_echo_n "(cached) " >&6 |
3046 printf %s "(cached) " >&6 | 2434 else |
3047 else $as_nop | |
3048 if test -n "$ac_ct_CC"; then | 2435 if test -n "$ac_ct_CC"; then |
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 2436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3050 else | 2437 else |
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3052 for as_dir in $PATH | 2439 for as_dir in $PATH |
3053 do | 2440 do |
3054 IFS=$as_save_IFS | 2441 IFS=$as_save_IFS |
3055 case $as_dir in #((( | 2442 test -z "$as_dir" && as_dir=. |
3056 '') as_dir=./ ;; | |
3057 */) ;; | |
3058 *) as_dir=$as_dir/ ;; | |
3059 esac | |
3060 for ac_exec_ext in '' $ac_executable_extensions; do | 2443 for ac_exec_ext in '' $ac_executable_extensions; do |
3061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3062 ac_cv_prog_ac_ct_CC="gcc" | 2445 ac_cv_prog_ac_ct_CC="gcc" |
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3064 break 2 | 2447 break 2 |
3065 fi | 2448 fi |
3066 done | 2449 done |
3067 done | 2450 done |
3068 IFS=$as_save_IFS | 2451 IFS=$as_save_IFS |
3069 | 2452 |
3070 fi | 2453 fi |
3071 fi | 2454 fi |
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 2455 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3073 if test -n "$ac_ct_CC"; then | 2456 if test -n "$ac_ct_CC"; then |
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3075 printf "%s\n" "$ac_ct_CC" >&6; } | 2458 $as_echo "$ac_ct_CC" >&6; } |
3076 else | 2459 else |
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3078 printf "%s\n" "no" >&6; } | 2461 $as_echo "no" >&6; } |
3079 fi | 2462 fi |
3080 | 2463 |
3081 if test "x$ac_ct_CC" = x; then | 2464 if test "x$ac_ct_CC" = x; then |
3082 CC="" | 2465 CC="" |
3083 else | 2466 else |
3084 case $cross_compiling:$ac_tool_warned in | 2467 case $cross_compiling:$ac_tool_warned in |
3085 yes:) | 2468 yes:) |
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3087 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 2470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3088 ac_tool_warned=yes ;; | 2471 ac_tool_warned=yes ;; |
3089 esac | 2472 esac |
3090 CC=$ac_ct_CC | 2473 CC=$ac_ct_CC |
3091 fi | 2474 fi |
3092 else | 2475 else |
3095 | 2478 |
3096 if test -z "$CC"; then | 2479 if test -z "$CC"; then |
3097 if test -n "$ac_tool_prefix"; then | 2480 if test -n "$ac_tool_prefix"; then |
3098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 2481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3099 set dummy ${ac_tool_prefix}cc; ac_word=$2 | 2482 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3101 printf %s "checking for $ac_word... " >&6; } | 2484 $as_echo_n "checking for $ac_word... " >&6; } |
3102 if test ${ac_cv_prog_CC+y} | 2485 if ${ac_cv_prog_CC+:} false; then : |
3103 then : | 2486 $as_echo_n "(cached) " >&6 |
3104 printf %s "(cached) " >&6 | 2487 else |
3105 else $as_nop | |
3106 if test -n "$CC"; then | 2488 if test -n "$CC"; then |
3107 ac_cv_prog_CC="$CC" # Let the user override the test. | 2489 ac_cv_prog_CC="$CC" # Let the user override the test. |
3108 else | 2490 else |
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3110 for as_dir in $PATH | 2492 for as_dir in $PATH |
3111 do | 2493 do |
3112 IFS=$as_save_IFS | 2494 IFS=$as_save_IFS |
3113 case $as_dir in #((( | 2495 test -z "$as_dir" && as_dir=. |
3114 '') as_dir=./ ;; | |
3115 */) ;; | |
3116 *) as_dir=$as_dir/ ;; | |
3117 esac | |
3118 for ac_exec_ext in '' $ac_executable_extensions; do | 2496 for ac_exec_ext in '' $ac_executable_extensions; do |
3119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3120 ac_cv_prog_CC="${ac_tool_prefix}cc" | 2498 ac_cv_prog_CC="${ac_tool_prefix}cc" |
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3122 break 2 | 2500 break 2 |
3123 fi | 2501 fi |
3124 done | 2502 done |
3125 done | 2503 done |
3126 IFS=$as_save_IFS | 2504 IFS=$as_save_IFS |
3127 | 2505 |
3128 fi | 2506 fi |
3129 fi | 2507 fi |
3130 CC=$ac_cv_prog_CC | 2508 CC=$ac_cv_prog_CC |
3131 if test -n "$CC"; then | 2509 if test -n "$CC"; then |
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3133 printf "%s\n" "$CC" >&6; } | 2511 $as_echo "$CC" >&6; } |
3134 else | 2512 else |
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3136 printf "%s\n" "no" >&6; } | 2514 $as_echo "no" >&6; } |
3137 fi | 2515 fi |
3138 | 2516 |
3139 | 2517 |
3140 fi | 2518 fi |
3141 fi | 2519 fi |
3142 if test -z "$CC"; then | 2520 if test -z "$CC"; then |
3143 # Extract the first word of "cc", so it can be a program name with args. | 2521 # Extract the first word of "cc", so it can be a program name with args. |
3144 set dummy cc; ac_word=$2 | 2522 set dummy cc; ac_word=$2 |
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3146 printf %s "checking for $ac_word... " >&6; } | 2524 $as_echo_n "checking for $ac_word... " >&6; } |
3147 if test ${ac_cv_prog_CC+y} | 2525 if ${ac_cv_prog_CC+:} false; then : |
3148 then : | 2526 $as_echo_n "(cached) " >&6 |
3149 printf %s "(cached) " >&6 | 2527 else |
3150 else $as_nop | |
3151 if test -n "$CC"; then | 2528 if test -n "$CC"; then |
3152 ac_cv_prog_CC="$CC" # Let the user override the test. | 2529 ac_cv_prog_CC="$CC" # Let the user override the test. |
3153 else | 2530 else |
3154 ac_prog_rejected=no | 2531 ac_prog_rejected=no |
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3156 for as_dir in $PATH | 2533 for as_dir in $PATH |
3157 do | 2534 do |
3158 IFS=$as_save_IFS | 2535 IFS=$as_save_IFS |
3159 case $as_dir in #((( | 2536 test -z "$as_dir" && as_dir=. |
3160 '') as_dir=./ ;; | |
3161 */) ;; | |
3162 *) as_dir=$as_dir/ ;; | |
3163 esac | |
3164 for ac_exec_ext in '' $ac_executable_extensions; do | 2537 for ac_exec_ext in '' $ac_executable_extensions; do |
3165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3166 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 2539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3167 ac_prog_rejected=yes | 2540 ac_prog_rejected=yes |
3168 continue | 2541 continue |
3169 fi | 2542 fi |
3170 ac_cv_prog_CC="cc" | 2543 ac_cv_prog_CC="cc" |
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3172 break 2 | 2545 break 2 |
3173 fi | 2546 fi |
3174 done | 2547 done |
3175 done | 2548 done |
3176 IFS=$as_save_IFS | 2549 IFS=$as_save_IFS |
3182 if test $# != 0; then | 2555 if test $# != 0; then |
3183 # We chose a different compiler from the bogus one. | 2556 # We chose a different compiler from the bogus one. |
3184 # However, it has the same basename, so the bogon will be chosen | 2557 # However, it has the same basename, so the bogon will be chosen |
3185 # first if we set CC to just the basename; use the full file name. | 2558 # first if we set CC to just the basename; use the full file name. |
3186 shift | 2559 shift |
3187 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | 2560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3188 fi | 2561 fi |
3189 fi | 2562 fi |
3190 fi | 2563 fi |
3191 fi | 2564 fi |
3192 CC=$ac_cv_prog_CC | 2565 CC=$ac_cv_prog_CC |
3193 if test -n "$CC"; then | 2566 if test -n "$CC"; then |
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3195 printf "%s\n" "$CC" >&6; } | 2568 $as_echo "$CC" >&6; } |
3196 else | 2569 else |
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3198 printf "%s\n" "no" >&6; } | 2571 $as_echo "no" >&6; } |
3199 fi | 2572 fi |
3200 | 2573 |
3201 | 2574 |
3202 fi | 2575 fi |
3203 if test -z "$CC"; then | 2576 if test -z "$CC"; then |
3204 if test -n "$ac_tool_prefix"; then | 2577 if test -n "$ac_tool_prefix"; then |
3205 for ac_prog in cl.exe | 2578 for ac_prog in cl.exe |
3206 do | 2579 do |
3207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 2580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 2581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3210 printf %s "checking for $ac_word... " >&6; } | 2583 $as_echo_n "checking for $ac_word... " >&6; } |
3211 if test ${ac_cv_prog_CC+y} | 2584 if ${ac_cv_prog_CC+:} false; then : |
3212 then : | 2585 $as_echo_n "(cached) " >&6 |
3213 printf %s "(cached) " >&6 | 2586 else |
3214 else $as_nop | |
3215 if test -n "$CC"; then | 2587 if test -n "$CC"; then |
3216 ac_cv_prog_CC="$CC" # Let the user override the test. | 2588 ac_cv_prog_CC="$CC" # Let the user override the test. |
3217 else | 2589 else |
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3219 for as_dir in $PATH | 2591 for as_dir in $PATH |
3220 do | 2592 do |
3221 IFS=$as_save_IFS | 2593 IFS=$as_save_IFS |
3222 case $as_dir in #((( | 2594 test -z "$as_dir" && as_dir=. |
3223 '') as_dir=./ ;; | |
3224 */) ;; | |
3225 *) as_dir=$as_dir/ ;; | |
3226 esac | |
3227 for ac_exec_ext in '' $ac_executable_extensions; do | 2595 for ac_exec_ext in '' $ac_executable_extensions; do |
3228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 2597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3231 break 2 | 2599 break 2 |
3232 fi | 2600 fi |
3233 done | 2601 done |
3234 done | 2602 done |
3235 IFS=$as_save_IFS | 2603 IFS=$as_save_IFS |
3236 | 2604 |
3237 fi | 2605 fi |
3238 fi | 2606 fi |
3239 CC=$ac_cv_prog_CC | 2607 CC=$ac_cv_prog_CC |
3240 if test -n "$CC"; then | 2608 if test -n "$CC"; then |
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3242 printf "%s\n" "$CC" >&6; } | 2610 $as_echo "$CC" >&6; } |
3243 else | 2611 else |
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3245 printf "%s\n" "no" >&6; } | 2613 $as_echo "no" >&6; } |
3246 fi | 2614 fi |
3247 | 2615 |
3248 | 2616 |
3249 test -n "$CC" && break | 2617 test -n "$CC" && break |
3250 done | 2618 done |
3253 ac_ct_CC=$CC | 2621 ac_ct_CC=$CC |
3254 for ac_prog in cl.exe | 2622 for ac_prog in cl.exe |
3255 do | 2623 do |
3256 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2624 # Extract the first word of "$ac_prog", so it can be a program name with args. |
3257 set dummy $ac_prog; ac_word=$2 | 2625 set dummy $ac_prog; ac_word=$2 |
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3259 printf %s "checking for $ac_word... " >&6; } | 2627 $as_echo_n "checking for $ac_word... " >&6; } |
3260 if test ${ac_cv_prog_ac_ct_CC+y} | 2628 if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3261 then : | 2629 $as_echo_n "(cached) " >&6 |
3262 printf %s "(cached) " >&6 | 2630 else |
3263 else $as_nop | |
3264 if test -n "$ac_ct_CC"; then | 2631 if test -n "$ac_ct_CC"; then |
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3266 else | 2633 else |
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3268 for as_dir in $PATH | 2635 for as_dir in $PATH |
3269 do | 2636 do |
3270 IFS=$as_save_IFS | 2637 IFS=$as_save_IFS |
3271 case $as_dir in #((( | 2638 test -z "$as_dir" && as_dir=. |
3272 '') as_dir=./ ;; | |
3273 */) ;; | |
3274 *) as_dir=$as_dir/ ;; | |
3275 esac | |
3276 for ac_exec_ext in '' $ac_executable_extensions; do | 2639 for ac_exec_ext in '' $ac_executable_extensions; do |
3277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3278 ac_cv_prog_ac_ct_CC="$ac_prog" | 2641 ac_cv_prog_ac_ct_CC="$ac_prog" |
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3280 break 2 | 2643 break 2 |
3281 fi | 2644 fi |
3282 done | 2645 done |
3283 done | 2646 done |
3284 IFS=$as_save_IFS | 2647 IFS=$as_save_IFS |
3285 | 2648 |
3286 fi | 2649 fi |
3287 fi | 2650 fi |
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3289 if test -n "$ac_ct_CC"; then | 2652 if test -n "$ac_ct_CC"; then |
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3291 printf "%s\n" "$ac_ct_CC" >&6; } | 2654 $as_echo "$ac_ct_CC" >&6; } |
3292 else | 2655 else |
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3294 printf "%s\n" "no" >&6; } | 2657 $as_echo "no" >&6; } |
3295 fi | 2658 fi |
3296 | 2659 |
3297 | 2660 |
3298 test -n "$ac_ct_CC" && break | 2661 test -n "$ac_ct_CC" && break |
3299 done | 2662 done |
3301 if test "x$ac_ct_CC" = x; then | 2664 if test "x$ac_ct_CC" = x; then |
3302 CC="" | 2665 CC="" |
3303 else | 2666 else |
3304 case $cross_compiling:$ac_tool_warned in | 2667 case $cross_compiling:$ac_tool_warned in |
3305 yes:) | 2668 yes:) |
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 2670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3308 ac_tool_warned=yes ;; | 2671 ac_tool_warned=yes ;; |
3309 esac | 2672 esac |
3310 CC=$ac_ct_CC | 2673 CC=$ac_ct_CC |
3311 fi | 2674 fi |
3312 fi | 2675 fi |
3313 | 2676 |
3314 fi | 2677 fi |
3315 if test -z "$CC"; then | 2678 |
3316 if test -n "$ac_tool_prefix"; then | 2679 |
3317 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | 2680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3318 set dummy ${ac_tool_prefix}clang; ac_word=$2 | 2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3320 printf %s "checking for $ac_word... " >&6; } | |
3321 if test ${ac_cv_prog_CC+y} | |
3322 then : | |
3323 printf %s "(cached) " >&6 | |
3324 else $as_nop | |
3325 if test -n "$CC"; then | |
3326 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3327 else | |
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3329 for as_dir in $PATH | |
3330 do | |
3331 IFS=$as_save_IFS | |
3332 case $as_dir in #((( | |
3333 '') as_dir=./ ;; | |
3334 */) ;; | |
3335 *) as_dir=$as_dir/ ;; | |
3336 esac | |
3337 for ac_exec_ext in '' $ac_executable_extensions; do | |
3338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3339 ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3341 break 2 | |
3342 fi | |
3343 done | |
3344 done | |
3345 IFS=$as_save_IFS | |
3346 | |
3347 fi | |
3348 fi | |
3349 CC=$ac_cv_prog_CC | |
3350 if test -n "$CC"; then | |
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3352 printf "%s\n" "$CC" >&6; } | |
3353 else | |
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3355 printf "%s\n" "no" >&6; } | |
3356 fi | |
3357 | |
3358 | |
3359 fi | |
3360 if test -z "$ac_cv_prog_CC"; then | |
3361 ac_ct_CC=$CC | |
3362 # Extract the first word of "clang", so it can be a program name with args. | |
3363 set dummy clang; ac_word=$2 | |
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3365 printf %s "checking for $ac_word... " >&6; } | |
3366 if test ${ac_cv_prog_ac_ct_CC+y} | |
3367 then : | |
3368 printf %s "(cached) " >&6 | |
3369 else $as_nop | |
3370 if test -n "$ac_ct_CC"; then | |
3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3372 else | |
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3374 for as_dir in $PATH | |
3375 do | |
3376 IFS=$as_save_IFS | |
3377 case $as_dir in #((( | |
3378 '') as_dir=./ ;; | |
3379 */) ;; | |
3380 *) as_dir=$as_dir/ ;; | |
3381 esac | |
3382 for ac_exec_ext in '' $ac_executable_extensions; do | |
3383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3384 ac_cv_prog_ac_ct_CC="clang" | |
3385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3386 break 2 | |
3387 fi | |
3388 done | |
3389 done | |
3390 IFS=$as_save_IFS | |
3391 | |
3392 fi | |
3393 fi | |
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3395 if test -n "$ac_ct_CC"; then | |
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3397 printf "%s\n" "$ac_ct_CC" >&6; } | |
3398 else | |
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3400 printf "%s\n" "no" >&6; } | |
3401 fi | |
3402 | |
3403 if test "x$ac_ct_CC" = x; then | |
3404 CC="" | |
3405 else | |
3406 case $cross_compiling:$ac_tool_warned in | |
3407 yes:) | |
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3410 ac_tool_warned=yes ;; | |
3411 esac | |
3412 CC=$ac_ct_CC | |
3413 fi | |
3414 else | |
3415 CC="$ac_cv_prog_CC" | |
3416 fi | |
3417 | |
3418 fi | |
3419 | |
3420 | |
3421 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3422 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3423 as_fn_error $? "no acceptable C compiler found in \$PATH | 2682 as_fn_error $? "no acceptable C compiler found in \$PATH |
3424 See \`config.log' for more details" "$LINENO" 5; } | 2683 See \`config.log' for more details" "$LINENO" 5; } |
3425 | 2684 |
3426 # Provide some information about the compiler. | 2685 # Provide some information about the compiler. |
3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 2686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3428 set X $ac_compile | 2687 set X $ac_compile |
3429 ac_compiler=$2 | 2688 ac_compiler=$2 |
3430 for ac_option in --version -v -V -qversion -version; do | 2689 for ac_option in --version -v -V -qversion; do |
3431 { { ac_try="$ac_compiler $ac_option >&5" | 2690 { { ac_try="$ac_compiler $ac_option >&5" |
3432 case "(($ac_try" in | 2691 case "(($ac_try" in |
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3434 *) ac_try_echo=$ac_try;; | 2693 *) ac_try_echo=$ac_try;; |
3435 esac | 2694 esac |
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3437 printf "%s\n" "$ac_try_echo"; } >&5 | 2696 $as_echo "$ac_try_echo"; } >&5 |
3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 2697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3439 ac_status=$? | 2698 ac_status=$? |
3440 if test -s conftest.err; then | 2699 if test -s conftest.err; then |
3441 sed '10a\ | 2700 sed '10a\ |
3442 ... rest of stderr output deleted ... | 2701 ... rest of stderr output deleted ... |
3443 10q' conftest.err >conftest.er1 | 2702 10q' conftest.err >conftest.er1 |
3444 cat conftest.er1 >&5 | 2703 cat conftest.er1 >&5 |
3445 fi | 2704 fi |
3446 rm -f conftest.er1 conftest.err | 2705 rm -f conftest.er1 conftest.err |
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3448 test $ac_status = 0; } | 2707 test $ac_status = 0; } |
3449 done | 2708 done |
3450 | 2709 |
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3452 /* end confdefs.h. */ | 2711 /* end confdefs.h. */ |
3453 | 2712 |
3454 int | 2713 int |
3455 main (void) | 2714 main () |
3456 { | 2715 { |
3457 | 2716 |
3458 ; | 2717 ; |
3459 return 0; | 2718 return 0; |
3460 } | 2719 } |
3462 ac_clean_files_save=$ac_clean_files | 2721 ac_clean_files_save=$ac_clean_files |
3463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 2722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3464 # Try to create an executable without -o first, disregard a.out. | 2723 # Try to create an executable without -o first, disregard a.out. |
3465 # It will help us diagnose broken compilers, and finding out an intuition | 2724 # It will help us diagnose broken compilers, and finding out an intuition |
3466 # of exeext. | 2725 # of exeext. |
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3468 printf %s "checking whether the C compiler works... " >&6; } | 2727 $as_echo_n "checking whether the C compiler works... " >&6; } |
3469 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 2728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3470 | 2729 |
3471 # The possible output files: | 2730 # The possible output files: |
3472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 2731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3473 | 2732 |
3474 ac_rmfiles= | 2733 ac_rmfiles= |
3485 case "(($ac_try" in | 2744 case "(($ac_try" in |
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3487 *) ac_try_echo=$ac_try;; | 2746 *) ac_try_echo=$ac_try;; |
3488 esac | 2747 esac |
3489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3490 printf "%s\n" "$ac_try_echo"; } >&5 | 2749 $as_echo "$ac_try_echo"; } >&5 |
3491 (eval "$ac_link_default") 2>&5 | 2750 (eval "$ac_link_default") 2>&5 |
3492 ac_status=$? | 2751 ac_status=$? |
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3494 test $ac_status = 0; } | 2753 test $ac_status = 0; }; then : |
3495 then : | |
3496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3498 # in a Makefile. We should not override ac_cv_exeext if it was cached, | 2756 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3499 # so that the user can short-circuit this test for compilers unknown to | 2757 # so that the user can short-circuit this test for compilers unknown to |
3500 # Autoconf. | 2758 # Autoconf. |
3507 [ab].out ) | 2765 [ab].out ) |
3508 # We found the default executable, but exeext='' is most | 2766 # We found the default executable, but exeext='' is most |
3509 # certainly right. | 2767 # certainly right. |
3510 break;; | 2768 break;; |
3511 *.* ) | 2769 *.* ) |
3512 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | 2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3513 then :; else | 2771 then :; else |
3514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3515 fi | 2773 fi |
3516 # We set ac_cv_exeext here because the later test for it is not | 2774 # We set ac_cv_exeext here because the later test for it is not |
3517 # safe: cross compilers may not add the suffix if given an `-o' | 2775 # safe: cross compilers may not add the suffix if given an `-o' |
3523 break;; | 2781 break;; |
3524 esac | 2782 esac |
3525 done | 2783 done |
3526 test "$ac_cv_exeext" = no && ac_cv_exeext= | 2784 test "$ac_cv_exeext" = no && ac_cv_exeext= |
3527 | 2785 |
3528 else $as_nop | 2786 else |
3529 ac_file='' | 2787 ac_file='' |
3530 fi | 2788 fi |
3531 if test -z "$ac_file" | 2789 if test -z "$ac_file"; then : |
3532 then : | 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 2791 $as_echo "no" >&6; } |
3534 printf "%s\n" "no" >&6; } | 2792 $as_echo "$as_me: failed program was:" >&5 |
3535 printf "%s\n" "$as_me: failed program was:" >&5 | |
3536 sed 's/^/| /' conftest.$ac_ext >&5 | 2793 sed 's/^/| /' conftest.$ac_ext >&5 |
3537 | 2794 |
3538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3539 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3540 as_fn_error 77 "C compiler cannot create executables | 2797 as_fn_error 77 "C compiler cannot create executables |
3541 See \`config.log' for more details" "$LINENO" 5; } | 2798 See \`config.log' for more details" "$LINENO" 5; } |
3542 else $as_nop | 2799 else |
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3544 printf "%s\n" "yes" >&6; } | 2801 $as_echo "yes" >&6; } |
3545 fi | 2802 fi |
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3547 printf %s "checking for C compiler default output file name... " >&6; } | 2804 $as_echo_n "checking for C compiler default output file name... " >&6; } |
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3549 printf "%s\n" "$ac_file" >&6; } | 2806 $as_echo "$ac_file" >&6; } |
3550 ac_exeext=$ac_cv_exeext | 2807 ac_exeext=$ac_cv_exeext |
3551 | 2808 |
3552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 2809 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3553 ac_clean_files=$ac_clean_files_save | 2810 ac_clean_files=$ac_clean_files_save |
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3555 printf %s "checking for suffix of executables... " >&6; } | 2812 $as_echo_n "checking for suffix of executables... " >&6; } |
3556 if { { ac_try="$ac_link" | 2813 if { { ac_try="$ac_link" |
3557 case "(($ac_try" in | 2814 case "(($ac_try" in |
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3559 *) ac_try_echo=$ac_try;; | 2816 *) ac_try_echo=$ac_try;; |
3560 esac | 2817 esac |
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3562 printf "%s\n" "$ac_try_echo"; } >&5 | 2819 $as_echo "$ac_try_echo"; } >&5 |
3563 (eval "$ac_link") 2>&5 | 2820 (eval "$ac_link") 2>&5 |
3564 ac_status=$? | 2821 ac_status=$? |
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3566 test $ac_status = 0; } | 2823 test $ac_status = 0; }; then : |
3567 then : | |
3568 # If both `conftest.exe' and `conftest' are `present' (well, observable) | 2824 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | 2825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3570 # work properly (i.e., refer to `conftest.exe'), while it won't with | 2826 # work properly (i.e., refer to `conftest.exe'), while it won't with |
3571 # `rm'. | 2827 # `rm'. |
3572 for ac_file in conftest.exe conftest conftest.*; do | 2828 for ac_file in conftest.exe conftest conftest.*; do |
3576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 2832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3577 break;; | 2833 break;; |
3578 * ) break;; | 2834 * ) break;; |
3579 esac | 2835 esac |
3580 done | 2836 done |
3581 else $as_nop | 2837 else |
3582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3583 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 2840 as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3585 See \`config.log' for more details" "$LINENO" 5; } | 2841 See \`config.log' for more details" "$LINENO" 5; } |
3586 fi | 2842 fi |
3587 rm -f conftest conftest$ac_cv_exeext | 2843 rm -f conftest conftest$ac_cv_exeext |
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3589 printf "%s\n" "$ac_cv_exeext" >&6; } | 2845 $as_echo "$ac_cv_exeext" >&6; } |
3590 | 2846 |
3591 rm -f conftest.$ac_ext | 2847 rm -f conftest.$ac_ext |
3592 EXEEXT=$ac_cv_exeext | 2848 EXEEXT=$ac_cv_exeext |
3593 ac_exeext=$EXEEXT | 2849 ac_exeext=$EXEEXT |
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3595 /* end confdefs.h. */ | 2851 /* end confdefs.h. */ |
3596 #include <stdio.h> | 2852 #include <stdio.h> |
3597 int | 2853 int |
3598 main (void) | 2854 main () |
3599 { | 2855 { |
3600 FILE *f = fopen ("conftest.out", "w"); | 2856 FILE *f = fopen ("conftest.out", "w"); |
3601 return ferror (f) || fclose (f) != 0; | 2857 return ferror (f) || fclose (f) != 0; |
3602 | 2858 |
3603 ; | 2859 ; |
3605 } | 2861 } |
3606 _ACEOF | 2862 _ACEOF |
3607 ac_clean_files="$ac_clean_files conftest.out" | 2863 ac_clean_files="$ac_clean_files conftest.out" |
3608 # Check that the compiler produces executables we can run. If not, either | 2864 # Check that the compiler produces executables we can run. If not, either |
3609 # the compiler is broken, or we cross compile. | 2865 # the compiler is broken, or we cross compile. |
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3611 printf %s "checking whether we are cross compiling... " >&6; } | 2867 $as_echo_n "checking whether we are cross compiling... " >&6; } |
3612 if test "$cross_compiling" != yes; then | 2868 if test "$cross_compiling" != yes; then |
3613 { { ac_try="$ac_link" | 2869 { { ac_try="$ac_link" |
3614 case "(($ac_try" in | 2870 case "(($ac_try" in |
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3616 *) ac_try_echo=$ac_try;; | 2872 *) ac_try_echo=$ac_try;; |
3617 esac | 2873 esac |
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3619 printf "%s\n" "$ac_try_echo"; } >&5 | 2875 $as_echo "$ac_try_echo"; } >&5 |
3620 (eval "$ac_link") 2>&5 | 2876 (eval "$ac_link") 2>&5 |
3621 ac_status=$? | 2877 ac_status=$? |
3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3623 test $ac_status = 0; } | 2879 test $ac_status = 0; } |
3624 if { ac_try='./conftest$ac_cv_exeext' | 2880 if { ac_try='./conftest$ac_cv_exeext' |
3625 { { case "(($ac_try" in | 2881 { { case "(($ac_try" in |
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3627 *) ac_try_echo=$ac_try;; | 2883 *) ac_try_echo=$ac_try;; |
3628 esac | 2884 esac |
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3630 printf "%s\n" "$ac_try_echo"; } >&5 | 2886 $as_echo "$ac_try_echo"; } >&5 |
3631 (eval "$ac_try") 2>&5 | 2887 (eval "$ac_try") 2>&5 |
3632 ac_status=$? | 2888 ac_status=$? |
3633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3634 test $ac_status = 0; }; }; then | 2890 test $ac_status = 0; }; }; then |
3635 cross_compiling=no | 2891 cross_compiling=no |
3636 else | 2892 else |
3637 if test "$cross_compiling" = maybe; then | 2893 if test "$cross_compiling" = maybe; then |
3638 cross_compiling=yes | 2894 cross_compiling=yes |
3639 else | 2895 else |
3640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3642 as_fn_error 77 "cannot run C compiled programs. | 2898 as_fn_error $? "cannot run C compiled programs. |
3643 If you meant to cross compile, use \`--host'. | 2899 If you meant to cross compile, use \`--host'. |
3644 See \`config.log' for more details" "$LINENO" 5; } | 2900 See \`config.log' for more details" "$LINENO" 5; } |
3645 fi | 2901 fi |
3646 fi | 2902 fi |
3647 fi | 2903 fi |
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3649 printf "%s\n" "$cross_compiling" >&6; } | 2905 $as_echo "$cross_compiling" >&6; } |
3650 | 2906 |
3651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 2907 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3652 ac_clean_files=$ac_clean_files_save | 2908 ac_clean_files=$ac_clean_files_save |
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3654 printf %s "checking for suffix of object files... " >&6; } | 2910 $as_echo_n "checking for suffix of object files... " >&6; } |
3655 if test ${ac_cv_objext+y} | 2911 if ${ac_cv_objext+:} false; then : |
3656 then : | 2912 $as_echo_n "(cached) " >&6 |
3657 printf %s "(cached) " >&6 | 2913 else |
3658 else $as_nop | |
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3660 /* end confdefs.h. */ | 2915 /* end confdefs.h. */ |
3661 | 2916 |
3662 int | 2917 int |
3663 main (void) | 2918 main () |
3664 { | 2919 { |
3665 | 2920 |
3666 ; | 2921 ; |
3667 return 0; | 2922 return 0; |
3668 } | 2923 } |
3672 case "(($ac_try" in | 2927 case "(($ac_try" in |
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3674 *) ac_try_echo=$ac_try;; | 2929 *) ac_try_echo=$ac_try;; |
3675 esac | 2930 esac |
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3677 printf "%s\n" "$ac_try_echo"; } >&5 | 2932 $as_echo "$ac_try_echo"; } >&5 |
3678 (eval "$ac_compile") 2>&5 | 2933 (eval "$ac_compile") 2>&5 |
3679 ac_status=$? | 2934 ac_status=$? |
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3681 test $ac_status = 0; } | 2936 test $ac_status = 0; }; then : |
3682 then : | |
3683 for ac_file in conftest.o conftest.obj conftest.*; do | 2937 for ac_file in conftest.o conftest.obj conftest.*; do |
3684 test -f "$ac_file" || continue; | 2938 test -f "$ac_file" || continue; |
3685 case $ac_file in | 2939 case $ac_file in |
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3688 break;; | 2942 break;; |
3689 esac | 2943 esac |
3690 done | 2944 done |
3691 else $as_nop | 2945 else |
3692 printf "%s\n" "$as_me: failed program was:" >&5 | 2946 $as_echo "$as_me: failed program was:" >&5 |
3693 sed 's/^/| /' conftest.$ac_ext >&5 | 2947 sed 's/^/| /' conftest.$ac_ext >&5 |
3694 | 2948 |
3695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3696 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3697 as_fn_error $? "cannot compute suffix of object files: cannot compile | 2951 as_fn_error $? "cannot compute suffix of object files: cannot compile |
3698 See \`config.log' for more details" "$LINENO" 5; } | 2952 See \`config.log' for more details" "$LINENO" 5; } |
3699 fi | 2953 fi |
3700 rm -f conftest.$ac_cv_objext conftest.$ac_ext | 2954 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3701 fi | 2955 fi |
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3703 printf "%s\n" "$ac_cv_objext" >&6; } | 2957 $as_echo "$ac_cv_objext" >&6; } |
3704 OBJEXT=$ac_cv_objext | 2958 OBJEXT=$ac_cv_objext |
3705 ac_objext=$OBJEXT | 2959 ac_objext=$OBJEXT |
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3707 printf %s "checking whether the compiler supports GNU C... " >&6; } | 2961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3708 if test ${ac_cv_c_compiler_gnu+y} | 2962 if ${ac_cv_c_compiler_gnu+:} false; then : |
3709 then : | 2963 $as_echo_n "(cached) " >&6 |
3710 printf %s "(cached) " >&6 | 2964 else |
3711 else $as_nop | |
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3713 /* end confdefs.h. */ | 2966 /* end confdefs.h. */ |
3714 | 2967 |
3715 int | 2968 int |
3716 main (void) | 2969 main () |
3717 { | 2970 { |
3718 #ifndef __GNUC__ | 2971 #ifndef __GNUC__ |
3719 choke me | 2972 choke me |
3720 #endif | 2973 #endif |
3721 | 2974 |
3722 ; | 2975 ; |
3723 return 0; | 2976 return 0; |
3724 } | 2977 } |
3725 _ACEOF | 2978 _ACEOF |
3726 if ac_fn_c_try_compile "$LINENO" | 2979 if ac_fn_c_try_compile "$LINENO"; then : |
3727 then : | |
3728 ac_compiler_gnu=yes | 2980 ac_compiler_gnu=yes |
3729 else $as_nop | 2981 else |
3730 ac_compiler_gnu=no | 2982 ac_compiler_gnu=no |
3731 fi | 2983 fi |
3732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu | 2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3734 | 2986 |
3735 fi | 2987 fi |
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3737 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | 2989 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3739 | |
3740 if test $ac_compiler_gnu = yes; then | 2990 if test $ac_compiler_gnu = yes; then |
3741 GCC=yes | 2991 GCC=yes |
3742 else | 2992 else |
3743 GCC= | 2993 GCC= |
3744 fi | 2994 fi |
3745 ac_test_CFLAGS=${CFLAGS+y} | 2995 ac_test_CFLAGS=${CFLAGS+set} |
3746 ac_save_CFLAGS=$CFLAGS | 2996 ac_save_CFLAGS=$CFLAGS |
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3748 printf %s "checking whether $CC accepts -g... " >&6; } | 2998 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3749 if test ${ac_cv_prog_cc_g+y} | 2999 if ${ac_cv_prog_cc_g+:} false; then : |
3750 then : | 3000 $as_echo_n "(cached) " >&6 |
3751 printf %s "(cached) " >&6 | 3001 else |
3752 else $as_nop | |
3753 ac_save_c_werror_flag=$ac_c_werror_flag | 3002 ac_save_c_werror_flag=$ac_c_werror_flag |
3754 ac_c_werror_flag=yes | 3003 ac_c_werror_flag=yes |
3755 ac_cv_prog_cc_g=no | 3004 ac_cv_prog_cc_g=no |
3756 CFLAGS="-g" | 3005 CFLAGS="-g" |
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3758 /* end confdefs.h. */ | 3007 /* end confdefs.h. */ |
3759 | 3008 |
3760 int | 3009 int |
3761 main (void) | 3010 main () |
3762 { | 3011 { |
3763 | 3012 |
3764 ; | 3013 ; |
3765 return 0; | 3014 return 0; |
3766 } | 3015 } |
3767 _ACEOF | 3016 _ACEOF |
3768 if ac_fn_c_try_compile "$LINENO" | 3017 if ac_fn_c_try_compile "$LINENO"; then : |
3769 then : | |
3770 ac_cv_prog_cc_g=yes | 3018 ac_cv_prog_cc_g=yes |
3771 else $as_nop | 3019 else |
3772 CFLAGS="" | 3020 CFLAGS="" |
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3774 /* end confdefs.h. */ | 3022 /* end confdefs.h. */ |
3775 | 3023 |
3776 int | 3024 int |
3777 main (void) | 3025 main () |
3778 { | 3026 { |
3779 | 3027 |
3780 ; | 3028 ; |
3781 return 0; | 3029 return 0; |
3782 } | 3030 } |
3783 _ACEOF | 3031 _ACEOF |
3784 if ac_fn_c_try_compile "$LINENO" | 3032 if ac_fn_c_try_compile "$LINENO"; then : |
3785 then : | 3033 |
3786 | 3034 else |
3787 else $as_nop | |
3788 ac_c_werror_flag=$ac_save_c_werror_flag | 3035 ac_c_werror_flag=$ac_save_c_werror_flag |
3789 CFLAGS="-g" | 3036 CFLAGS="-g" |
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3791 /* end confdefs.h. */ | 3038 /* end confdefs.h. */ |
3792 | 3039 |
3793 int | 3040 int |
3794 main (void) | 3041 main () |
3795 { | 3042 { |
3796 | 3043 |
3797 ; | 3044 ; |
3798 return 0; | 3045 return 0; |
3799 } | 3046 } |
3800 _ACEOF | 3047 _ACEOF |
3801 if ac_fn_c_try_compile "$LINENO" | 3048 if ac_fn_c_try_compile "$LINENO"; then : |
3802 then : | |
3803 ac_cv_prog_cc_g=yes | 3049 ac_cv_prog_cc_g=yes |
3804 fi | 3050 fi |
3805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3806 fi | 3052 fi |
3807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3808 fi | 3054 fi |
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3810 ac_c_werror_flag=$ac_save_c_werror_flag | 3056 ac_c_werror_flag=$ac_save_c_werror_flag |
3811 fi | 3057 fi |
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3813 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | 3059 $as_echo "$ac_cv_prog_cc_g" >&6; } |
3814 if test $ac_test_CFLAGS; then | 3060 if test "$ac_test_CFLAGS" = set; then |
3815 CFLAGS=$ac_save_CFLAGS | 3061 CFLAGS=$ac_save_CFLAGS |
3816 elif test $ac_cv_prog_cc_g = yes; then | 3062 elif test $ac_cv_prog_cc_g = yes; then |
3817 if test "$GCC" = yes; then | 3063 if test "$GCC" = yes; then |
3818 CFLAGS="-g -O2" | 3064 CFLAGS="-g -O2" |
3819 else | 3065 else |
3824 CFLAGS="-O2" | 3070 CFLAGS="-O2" |
3825 else | 3071 else |
3826 CFLAGS= | 3072 CFLAGS= |
3827 fi | 3073 fi |
3828 fi | 3074 fi |
3829 ac_prog_cc_stdc=no | 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3830 if test x$ac_prog_cc_stdc = xno | 3076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3831 then : | 3077 if ${ac_cv_prog_cc_c89+:} false; then : |
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | 3078 $as_echo_n "(cached) " >&6 |
3833 printf %s "checking for $CC option to enable C11 features... " >&6; } | 3079 else |
3834 if test ${ac_cv_prog_cc_c11+y} | |
3835 then : | |
3836 printf %s "(cached) " >&6 | |
3837 else $as_nop | |
3838 ac_cv_prog_cc_c11=no | |
3839 ac_save_CC=$CC | |
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3841 /* end confdefs.h. */ | |
3842 $ac_c_conftest_c11_program | |
3843 _ACEOF | |
3844 for ac_arg in '' -std=gnu11 | |
3845 do | |
3846 CC="$ac_save_CC $ac_arg" | |
3847 if ac_fn_c_try_compile "$LINENO" | |
3848 then : | |
3849 ac_cv_prog_cc_c11=$ac_arg | |
3850 fi | |
3851 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3852 test "x$ac_cv_prog_cc_c11" != "xno" && break | |
3853 done | |
3854 rm -f conftest.$ac_ext | |
3855 CC=$ac_save_CC | |
3856 fi | |
3857 | |
3858 if test "x$ac_cv_prog_cc_c11" = xno | |
3859 then : | |
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3861 printf "%s\n" "unsupported" >&6; } | |
3862 else $as_nop | |
3863 if test "x$ac_cv_prog_cc_c11" = x | |
3864 then : | |
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3866 printf "%s\n" "none needed" >&6; } | |
3867 else $as_nop | |
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
3869 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
3870 CC="$CC $ac_cv_prog_cc_c11" | |
3871 fi | |
3872 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
3873 ac_prog_cc_stdc=c11 | |
3874 fi | |
3875 fi | |
3876 if test x$ac_prog_cc_stdc = xno | |
3877 then : | |
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
3879 printf %s "checking for $CC option to enable C99 features... " >&6; } | |
3880 if test ${ac_cv_prog_cc_c99+y} | |
3881 then : | |
3882 printf %s "(cached) " >&6 | |
3883 else $as_nop | |
3884 ac_cv_prog_cc_c99=no | |
3885 ac_save_CC=$CC | |
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3887 /* end confdefs.h. */ | |
3888 $ac_c_conftest_c99_program | |
3889 _ACEOF | |
3890 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
3891 do | |
3892 CC="$ac_save_CC $ac_arg" | |
3893 if ac_fn_c_try_compile "$LINENO" | |
3894 then : | |
3895 ac_cv_prog_cc_c99=$ac_arg | |
3896 fi | |
3897 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3898 test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3899 done | |
3900 rm -f conftest.$ac_ext | |
3901 CC=$ac_save_CC | |
3902 fi | |
3903 | |
3904 if test "x$ac_cv_prog_cc_c99" = xno | |
3905 then : | |
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3907 printf "%s\n" "unsupported" >&6; } | |
3908 else $as_nop | |
3909 if test "x$ac_cv_prog_cc_c99" = x | |
3910 then : | |
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3912 printf "%s\n" "none needed" >&6; } | |
3913 else $as_nop | |
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3915 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
3916 CC="$CC $ac_cv_prog_cc_c99" | |
3917 fi | |
3918 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3919 ac_prog_cc_stdc=c99 | |
3920 fi | |
3921 fi | |
3922 if test x$ac_prog_cc_stdc = xno | |
3923 then : | |
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
3925 printf %s "checking for $CC option to enable C89 features... " >&6; } | |
3926 if test ${ac_cv_prog_cc_c89+y} | |
3927 then : | |
3928 printf %s "(cached) " >&6 | |
3929 else $as_nop | |
3930 ac_cv_prog_cc_c89=no | 3080 ac_cv_prog_cc_c89=no |
3931 ac_save_CC=$CC | 3081 ac_save_CC=$CC |
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3933 /* end confdefs.h. */ | 3083 /* end confdefs.h. */ |
3934 $ac_c_conftest_c89_program | 3084 #include <stdarg.h> |
3935 _ACEOF | 3085 #include <stdio.h> |
3936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 3086 struct stat; |
3087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3088 struct buf { int x; }; | |
3089 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3090 static char *e (p, i) | |
3091 char **p; | |
3092 int i; | |
3093 { | |
3094 return p[i]; | |
3095 } | |
3096 static char *f (char * (*g) (char **, int), char **p, ...) | |
3097 { | |
3098 char *s; | |
3099 va_list v; | |
3100 va_start (v,p); | |
3101 s = g (p, va_arg (v,int)); | |
3102 va_end (v); | |
3103 return s; | |
3104 } | |
3105 | |
3106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3107 function prototypes and stuff, but not '\xHH' hex character constants. | |
3108 These don't provoke an error unfortunately, instead are silently treated | |
3109 as 'x'. The following induces an error, until -std is added to get | |
3110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3111 array size at least. It's necessary to write '\x00'==0 to get something | |
3112 that's true only with -std. */ | |
3113 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3114 | |
3115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3116 inside strings and character constants. */ | |
3117 #define FOO(x) 'x' | |
3118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3119 | |
3120 int test (int i, double x); | |
3121 struct s1 {int (*f) (int a);}; | |
3122 struct s2 {int (*f) (double a);}; | |
3123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3124 int argc; | |
3125 char **argv; | |
3126 int | |
3127 main () | |
3128 { | |
3129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3130 ; | |
3131 return 0; | |
3132 } | |
3133 _ACEOF | |
3134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3937 do | 3136 do |
3938 CC="$ac_save_CC $ac_arg" | 3137 CC="$ac_save_CC $ac_arg" |
3939 if ac_fn_c_try_compile "$LINENO" | 3138 if ac_fn_c_try_compile "$LINENO"; then : |
3940 then : | |
3941 ac_cv_prog_cc_c89=$ac_arg | 3139 ac_cv_prog_cc_c89=$ac_arg |
3942 fi | 3140 fi |
3943 rm -f core conftest.err conftest.$ac_objext conftest.beam | 3141 rm -f core conftest.err conftest.$ac_objext |
3944 test "x$ac_cv_prog_cc_c89" != "xno" && break | 3142 test "x$ac_cv_prog_cc_c89" != "xno" && break |
3945 done | 3143 done |
3946 rm -f conftest.$ac_ext | 3144 rm -f conftest.$ac_ext |
3947 CC=$ac_save_CC | 3145 CC=$ac_save_CC |
3948 fi | 3146 |
3949 | 3147 fi |
3950 if test "x$ac_cv_prog_cc_c89" = xno | 3148 # AC_CACHE_VAL |
3951 then : | 3149 case "x$ac_cv_prog_cc_c89" in |
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 3150 x) |
3953 printf "%s\n" "unsupported" >&6; } | 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3954 else $as_nop | 3152 $as_echo "none needed" >&6; } ;; |
3955 if test "x$ac_cv_prog_cc_c89" = x | 3153 xno) |
3956 then : | 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 3155 $as_echo "unsupported" >&6; } ;; |
3958 printf "%s\n" "none needed" >&6; } | 3156 *) |
3959 else $as_nop | 3157 CC="$CC $ac_cv_prog_cc_c89" |
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3961 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | 3159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3962 CC="$CC $ac_cv_prog_cc_c89" | 3160 esac |
3963 fi | 3161 if test "x$ac_cv_prog_cc_c89" != xno; then : |
3964 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | 3162 |
3965 ac_prog_cc_stdc=c89 | |
3966 fi | |
3967 fi | 3163 fi |
3968 | 3164 |
3969 ac_ext=c | 3165 ac_ext=c |
3970 ac_cpp='$CPP $CPPFLAGS' | 3166 ac_cpp='$CPP $CPPFLAGS' |
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3980 | 3176 |
3981 | 3177 |
3982 | 3178 |
3983 # set compile flags prior to other tests | 3179 # set compile flags prior to other tests |
3984 if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then | 3180 if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then |
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5 | 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5 |
3986 printf "%s\n" "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;} | 3182 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;} |
3987 CFLAGS="-Os -W -Wall" | 3183 CFLAGS="-Os -W -Wall" |
3988 fi | 3184 fi |
3989 | 3185 |
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -Wno-pointer-sign" >&5 | 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -Wno-pointer-sign" >&5 |
3991 printf "%s\n" "$as_me: Checking if compiler '$CC' supports -Wno-pointer-sign" >&6;} | 3187 $as_echo "$as_me: Checking if compiler '$CC' supports -Wno-pointer-sign" >&6;} |
3992 | 3188 |
3993 { | 3189 { |
3994 OLDFLAGS="$CFLAGS" | 3190 OLDFLAGS="$CFLAGS" |
3995 TESTFLAGS="-Wno-pointer-sign" | 3191 TESTFLAGS="-Wno-pointer-sign" |
3996 CFLAGS="$CFLAGS $TESTFLAGS" | 3192 CFLAGS="$CFLAGS $TESTFLAGS" |
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3998 /* end confdefs.h. */ | 3194 /* end confdefs.h. */ |
3999 | 3195 |
4000 int | 3196 int |
4001 main (void) | 3197 main () |
4002 { | 3198 { |
4003 | 3199 |
4004 ; | 3200 ; |
4005 return 0; | 3201 return 0; |
4006 } | 3202 } |
4007 _ACEOF | 3203 _ACEOF |
4008 if ac_fn_c_try_compile "$LINENO" | 3204 if ac_fn_c_try_compile "$LINENO"; then : |
4009 then : | 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3206 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4011 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3207 else |
4012 else $as_nop | 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3209 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4014 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3210 |
4015 | 3211 fi |
4016 fi | 3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4018 } | 3213 } |
4019 | 3214 |
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -fno-strict-overflow" >&5 | 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking if compiler '$CC' supports -fno-strict-overflow" >&5 |
4021 printf "%s\n" "$as_me: Checking if compiler '$CC' supports -fno-strict-overflow" >&6;} | 3216 $as_echo "$as_me: Checking if compiler '$CC' supports -fno-strict-overflow" >&6;} |
4022 { | 3217 { |
4023 OLDFLAGS="$CFLAGS" | 3218 OLDFLAGS="$CFLAGS" |
4024 TESTFLAGS="-fno-strict-overflow" | 3219 TESTFLAGS="-fno-strict-overflow" |
4025 CFLAGS="$CFLAGS $TESTFLAGS" | 3220 CFLAGS="$CFLAGS $TESTFLAGS" |
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4027 /* end confdefs.h. */ | 3222 /* end confdefs.h. */ |
4028 | 3223 |
4029 int | 3224 int |
4030 main (void) | 3225 main () |
4031 { | 3226 { |
4032 | 3227 |
4033 ; | 3228 ; |
4034 return 0; | 3229 return 0; |
4035 } | 3230 } |
4036 _ACEOF | 3231 _ACEOF |
4037 if ac_fn_c_try_compile "$LINENO" | 3232 if ac_fn_c_try_compile "$LINENO"; then : |
4038 then : | 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3234 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4040 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3235 else |
4041 else $as_nop | 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3237 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4043 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3238 |
4044 | 3239 fi |
4045 fi | 3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4047 } | 3241 } |
4048 | 3242 |
4049 # needed for various extensions. define early before autoconf tests | 3243 # needed for various extensions. define early before autoconf tests |
4050 | 3244 |
4051 printf "%s\n" "#define _GNU_SOURCE /**/" >>confdefs.h | 3245 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h |
4052 | 3246 |
4053 | 3247 |
4054 STATIC=0 | 3248 STATIC=0 |
4055 # Check whether --enable-static was given. | 3249 # Check whether --enable-static was given. |
4056 if test ${enable_static+y} | 3250 if test "${enable_static+set}" = set; then : |
4057 then : | |
4058 enableval=$enable_static; | 3251 enableval=$enable_static; |
4059 if test "x$enableval" = "xyes"; then | 3252 if test "x$enableval" = "xyes"; then |
4060 STATIC=1 | 3253 STATIC=1 |
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Static Build" >&5 | 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: Static Build" >&5 |
4062 printf "%s\n" "$as_me: Static Build" >&6;} | 3255 $as_echo "$as_me: Static Build" >&6;} |
4063 fi | 3256 fi |
4064 | 3257 |
4065 fi | 3258 fi |
4066 | 3259 |
4067 | 3260 |
4068 | 3261 |
4069 hardenbuild=1 | 3262 hardenbuild=1 |
4070 # Check whether --enable-harden was given. | 3263 # Check whether --enable-harden was given. |
4071 if test ${enable_harden+y} | 3264 if test "${enable_harden+set}" = set; then : |
4072 then : | |
4073 enableval=$enable_harden; | 3265 enableval=$enable_harden; |
4074 if test "x$enableval" = "xno"; then | 3266 if test "x$enableval" = "xno"; then |
4075 hardenbuild=0 | 3267 hardenbuild=0 |
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling hardened build flags" >&5 | 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling hardened build flags" >&5 |
4077 printf "%s\n" "$as_me: Disabling hardened build flags" >&6;} | 3269 $as_echo "$as_me: Disabling hardened build flags" >&6;} |
4078 fi | 3270 fi |
4079 | 3271 |
4080 fi | 3272 fi |
4081 | 3273 |
4082 | 3274 |
4083 if test "$hardenbuild" -eq 1; then | 3275 if test "$hardenbuild" -eq 1; then |
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for available hardened build flags:" >&5 | 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for available hardened build flags:" >&5 |
4085 printf "%s\n" "$as_me: Checking for available hardened build flags:" >&6;} | 3277 $as_echo "$as_me: Checking for available hardened build flags:" >&6;} |
4086 # relocation flags don't make sense for static builds | 3278 # relocation flags don't make sense for static builds |
4087 if test "$STATIC" -ne 1; then | 3279 if test "$STATIC" -ne 1; then |
4088 # pie | 3280 # pie |
4089 { | 3281 { |
4090 OLDFLAGS="$CFLAGS" | 3282 OLDFLAGS="$CFLAGS" |
4092 CFLAGS="$CFLAGS $TESTFLAGS" | 3284 CFLAGS="$CFLAGS $TESTFLAGS" |
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4094 /* end confdefs.h. */ | 3286 /* end confdefs.h. */ |
4095 | 3287 |
4096 int | 3288 int |
4097 main (void) | 3289 main () |
4098 { | 3290 { |
4099 | 3291 |
4100 ; | 3292 ; |
4101 return 0; | 3293 return 0; |
4102 } | 3294 } |
4103 _ACEOF | 3295 _ACEOF |
4104 if ac_fn_c_try_compile "$LINENO" | 3296 if ac_fn_c_try_compile "$LINENO"; then : |
4105 then : | 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3298 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4107 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3299 else |
4108 else $as_nop | 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3301 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4110 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3302 |
4111 | 3303 fi |
4112 fi | 3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4114 } | 3305 } |
4115 | 3306 |
4116 OLDLDFLAGS="$LDFLAGS" | 3307 OLDLDFLAGS="$LDFLAGS" |
4117 TESTFLAGS="-Wl,-pie" | 3308 TESTFLAGS="-Wl,-pie" |
4118 LDFLAGS="$LDFLAGS $TESTFLAGS" | 3309 LDFLAGS="$LDFLAGS $TESTFLAGS" |
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4120 /* end confdefs.h. */ | 3311 /* end confdefs.h. */ |
4121 | 3312 |
4122 int | 3313 int |
4123 main (void) | 3314 main () |
4124 { | 3315 { |
4125 | 3316 |
4126 ; | 3317 ; |
4127 return 0; | 3318 return 0; |
4128 } | 3319 } |
4129 _ACEOF | 3320 _ACEOF |
4130 if ac_fn_c_try_link "$LINENO" | 3321 if ac_fn_c_try_link "$LINENO"; then : |
4131 then : | 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3323 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4133 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3324 else |
4134 else $as_nop | |
4135 | 3325 |
4136 LDFLAGS="$OLDLDFLAGS" | 3326 LDFLAGS="$OLDLDFLAGS" |
4137 TESTFLAGS="-pie" | 3327 TESTFLAGS="-pie" |
4138 LDFLAGS="$LDFLAGS $TESTFLAGS" | 3328 LDFLAGS="$LDFLAGS $TESTFLAGS" |
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4140 /* end confdefs.h. */ | 3330 /* end confdefs.h. */ |
4141 | 3331 |
4142 int | 3332 int |
4143 main (void) | 3333 main () |
4144 { | 3334 { |
4145 | 3335 |
4146 ; | 3336 ; |
4147 return 0; | 3337 return 0; |
4148 } | 3338 } |
4149 _ACEOF | 3339 _ACEOF |
4150 if ac_fn_c_try_link "$LINENO" | 3340 if ac_fn_c_try_link "$LINENO"; then : |
4151 then : | 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3342 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4153 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3343 else |
4154 else $as_nop | 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3345 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS" |
4156 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS" | 3346 |
4157 | 3347 fi |
4158 fi | 3348 rm -f core conftest.err conftest.$ac_objext \ |
4159 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
4160 conftest$ac_exeext conftest.$ac_ext | 3349 conftest$ac_exeext conftest.$ac_ext |
4161 | 3350 |
4162 | 3351 |
4163 fi | 3352 fi |
4164 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 3353 rm -f core conftest.err conftest.$ac_objext \ |
4165 conftest$ac_exeext conftest.$ac_ext | 3354 conftest$ac_exeext conftest.$ac_ext |
4166 # readonly elf relocation sections (relro) | 3355 # readonly elf relocation sections (relro) |
4167 OLDLDFLAGS="$LDFLAGS" | 3356 OLDLDFLAGS="$LDFLAGS" |
4168 TESTFLAGS="-Wl,-z,now -Wl,-z,relro" | 3357 TESTFLAGS="-Wl,-z,now -Wl,-z,relro" |
4169 LDFLAGS="$LDFLAGS $TESTFLAGS" | 3358 LDFLAGS="$LDFLAGS $TESTFLAGS" |
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4171 /* end confdefs.h. */ | 3360 /* end confdefs.h. */ |
4172 | 3361 |
4173 int | 3362 int |
4174 main (void) | 3363 main () |
4175 { | 3364 { |
4176 | 3365 |
4177 ; | 3366 ; |
4178 return 0; | 3367 return 0; |
4179 } | 3368 } |
4180 _ACEOF | 3369 _ACEOF |
4181 if ac_fn_c_try_link "$LINENO" | 3370 if ac_fn_c_try_link "$LINENO"; then : |
4182 then : | 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3372 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4184 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3373 else |
4185 else $as_nop | 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3375 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS" |
4187 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; LDFLAGS="$OLDLDFLAGS" | 3376 |
4188 | 3377 fi |
4189 fi | 3378 rm -f core conftest.err conftest.$ac_objext \ |
4190 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
4191 conftest$ac_exeext conftest.$ac_ext | 3379 conftest$ac_exeext conftest.$ac_ext |
4192 fi # non-static | 3380 fi # non-static |
4193 # stack protector. -strong is good but only in gcc 4.9 or later | 3381 # stack protector. -strong is good but only in gcc 4.9 or later |
4194 OLDCFLAGS="$CFLAGS" | 3382 OLDCFLAGS="$CFLAGS" |
4195 TESTFLAGS="-fstack-protector-strong" | 3383 TESTFLAGS="-fstack-protector-strong" |
4196 CFLAGS="$CFLAGS $TESTFLAGS" | 3384 CFLAGS="$CFLAGS $TESTFLAGS" |
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4198 /* end confdefs.h. */ | 3386 /* end confdefs.h. */ |
4199 | 3387 |
4200 int | 3388 int |
4201 main (void) | 3389 main () |
4202 { | 3390 { |
4203 | 3391 |
4204 ; | 3392 ; |
4205 return 0; | 3393 return 0; |
4206 } | 3394 } |
4207 _ACEOF | 3395 _ACEOF |
4208 if ac_fn_c_try_compile "$LINENO" | 3396 if ac_fn_c_try_compile "$LINENO"; then : |
4209 then : | 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3398 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4211 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3399 else |
4212 else $as_nop | |
4213 | 3400 |
4214 CFLAGS="$OLDCFLAGS" | 3401 CFLAGS="$OLDCFLAGS" |
4215 TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4" | 3402 TESTFLAGS="-fstack-protector --param=ssp-buffer-size=4" |
4216 CFLAGS="$CFLAGS $TESTFLAGS" | 3403 CFLAGS="$CFLAGS $TESTFLAGS" |
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4218 /* end confdefs.h. */ | 3405 /* end confdefs.h. */ |
4219 | 3406 |
4220 int | 3407 int |
4221 main (void) | 3408 main () |
4222 { | 3409 { |
4223 | 3410 |
4224 ; | 3411 ; |
4225 return 0; | 3412 return 0; |
4226 } | 3413 } |
4227 _ACEOF | 3414 _ACEOF |
4228 if ac_fn_c_try_compile "$LINENO" | 3415 if ac_fn_c_try_compile "$LINENO"; then : |
4229 then : | 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3417 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4231 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3418 else |
4232 else $as_nop | 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3420 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDCFLAGS" |
4234 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDCFLAGS" | 3421 |
4235 | 3422 fi |
4236 fi | 3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3424 |
4238 | 3425 |
4239 | 3426 fi |
4240 fi | 3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4242 # FORTIFY_SOURCE | 3428 # FORTIFY_SOURCE |
4243 { | 3429 { |
4244 OLDFLAGS="$CFLAGS" | 3430 OLDFLAGS="$CFLAGS" |
4245 TESTFLAGS="-D_FORTIFY_SOURCE=2" | 3431 TESTFLAGS="-D_FORTIFY_SOURCE=2" |
4246 CFLAGS="$CFLAGS $TESTFLAGS" | 3432 CFLAGS="$CFLAGS $TESTFLAGS" |
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4248 /* end confdefs.h. */ | 3434 /* end confdefs.h. */ |
4249 | 3435 |
4250 int | 3436 int |
4251 main (void) | 3437 main () |
4252 { | 3438 { |
4253 | 3439 |
4254 ; | 3440 ; |
4255 return 0; | 3441 return 0; |
4256 } | 3442 } |
4257 _ACEOF | 3443 _ACEOF |
4258 if ac_fn_c_try_compile "$LINENO" | 3444 if ac_fn_c_try_compile "$LINENO"; then : |
4259 then : | 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3446 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4261 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3447 else |
4262 else $as_nop | 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3449 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4264 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3450 |
4265 | 3451 fi |
4266 fi | 3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4268 } | 3453 } |
4269 | 3454 |
4270 # Spectre v2 mitigations | 3455 # Spectre v2 mitigations |
4271 { | 3456 { |
4272 OLDFLAGS="$CFLAGS" | 3457 OLDFLAGS="$CFLAGS" |
4274 CFLAGS="$CFLAGS $TESTFLAGS" | 3459 CFLAGS="$CFLAGS $TESTFLAGS" |
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4276 /* end confdefs.h. */ | 3461 /* end confdefs.h. */ |
4277 | 3462 |
4278 int | 3463 int |
4279 main (void) | 3464 main () |
4280 { | 3465 { |
4281 | 3466 |
4282 ; | 3467 ; |
4283 return 0; | 3468 return 0; |
4284 } | 3469 } |
4285 _ACEOF | 3470 _ACEOF |
4286 if ac_fn_c_try_compile "$LINENO" | 3471 if ac_fn_c_try_compile "$LINENO"; then : |
4287 then : | 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3473 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4289 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3474 else |
4290 else $as_nop | 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3476 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4292 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3477 |
4293 | 3478 fi |
4294 fi | 3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4296 } | 3480 } |
4297 { | 3481 { |
4298 OLDFLAGS="$CFLAGS" | 3482 OLDFLAGS="$CFLAGS" |
4299 TESTFLAGS="-mindirect-branch=thunk" | 3483 TESTFLAGS="-mindirect-branch=thunk" |
4300 CFLAGS="$CFLAGS $TESTFLAGS" | 3484 CFLAGS="$CFLAGS $TESTFLAGS" |
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4302 /* end confdefs.h. */ | 3486 /* end confdefs.h. */ |
4303 | 3487 |
4304 int | 3488 int |
4305 main (void) | 3489 main () |
4306 { | 3490 { |
4307 | 3491 |
4308 ; | 3492 ; |
4309 return 0; | 3493 return 0; |
4310 } | 3494 } |
4311 _ACEOF | 3495 _ACEOF |
4312 if ac_fn_c_try_compile "$LINENO" | 3496 if ac_fn_c_try_compile "$LINENO"; then : |
4313 then : | 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 |
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Setting $TESTFLAGS" >&5 | 3498 $as_echo "$as_me: Setting $TESTFLAGS" >&6;} |
4315 printf "%s\n" "$as_me: Setting $TESTFLAGS" >&6;} | 3499 else |
4316 else $as_nop | 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 |
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not setting $TESTFLAGS" >&5 | 3501 $as_echo "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" |
4318 printf "%s\n" "$as_me: Not setting $TESTFLAGS" >&6;}; CFLAGS="$OLDFLAGS" | 3502 |
4319 | 3503 fi |
4320 fi | 3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4322 } | 3505 } |
4323 | 3506 |
4324 fi | 3507 fi |
4325 | 3508 |
4326 # large file support is useful for scp | 3509 # large file support is useful for scp |
4327 # Check whether --enable-largefile was given. | 3510 # Check whether --enable-largefile was given. |
4328 if test ${enable_largefile+y} | 3511 if test "${enable_largefile+set}" = set; then : |
4329 then : | |
4330 enableval=$enable_largefile; | 3512 enableval=$enable_largefile; |
4331 fi | 3513 fi |
4332 | 3514 |
4333 if test "$enable_largefile" != no; then | 3515 if test "$enable_largefile" != no; then |
4334 | 3516 |
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
4336 printf %s "checking for special C compiler options needed for large files... " >&6; } | 3518 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
4337 if test ${ac_cv_sys_largefile_CC+y} | 3519 if ${ac_cv_sys_largefile_CC+:} false; then : |
4338 then : | 3520 $as_echo_n "(cached) " >&6 |
4339 printf %s "(cached) " >&6 | 3521 else |
4340 else $as_nop | |
4341 ac_cv_sys_largefile_CC=no | 3522 ac_cv_sys_largefile_CC=no |
4342 if test "$GCC" != yes; then | 3523 if test "$GCC" != yes; then |
4343 ac_save_CC=$CC | 3524 ac_save_CC=$CC |
4344 while :; do | 3525 while :; do |
4345 # IRIX 6.2 and later do not support large files by default, | 3526 # IRIX 6.2 and later do not support large files by default, |
4349 #include <sys/types.h> | 3530 #include <sys/types.h> |
4350 /* Check that off_t can represent 2**63 - 1 correctly. | 3531 /* Check that off_t can represent 2**63 - 1 correctly. |
4351 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 3532 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
4352 since some C++ compilers masquerading as C compilers | 3533 since some C++ compilers masquerading as C compilers |
4353 incorrectly reject 9223372036854775807. */ | 3534 incorrectly reject 9223372036854775807. */ |
4354 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 3535 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
4355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 3536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4356 && LARGE_OFF_T % 2147483647 == 1) | 3537 && LARGE_OFF_T % 2147483647 == 1) |
4357 ? 1 : -1]; | 3538 ? 1 : -1]; |
4358 int | 3539 int |
4359 main (void) | 3540 main () |
4360 { | 3541 { |
4361 | 3542 |
4362 ; | 3543 ; |
4363 return 0; | 3544 return 0; |
4364 } | 3545 } |
4365 _ACEOF | 3546 _ACEOF |
4366 if ac_fn_c_try_compile "$LINENO" | 3547 if ac_fn_c_try_compile "$LINENO"; then : |
4367 then : | |
4368 break | 3548 break |
4369 fi | 3549 fi |
4370 rm -f core conftest.err conftest.$ac_objext conftest.beam | 3550 rm -f core conftest.err conftest.$ac_objext |
4371 CC="$CC -n32" | 3551 CC="$CC -n32" |
4372 if ac_fn_c_try_compile "$LINENO" | 3552 if ac_fn_c_try_compile "$LINENO"; then : |
4373 then : | |
4374 ac_cv_sys_largefile_CC=' -n32'; break | 3553 ac_cv_sys_largefile_CC=' -n32'; break |
4375 fi | 3554 fi |
4376 rm -f core conftest.err conftest.$ac_objext conftest.beam | 3555 rm -f core conftest.err conftest.$ac_objext |
4377 break | 3556 break |
4378 done | 3557 done |
4379 CC=$ac_save_CC | 3558 CC=$ac_save_CC |
4380 rm -f conftest.$ac_ext | 3559 rm -f conftest.$ac_ext |
4381 fi | 3560 fi |
4382 fi | 3561 fi |
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
4384 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } | 3563 $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
4385 if test "$ac_cv_sys_largefile_CC" != no; then | 3564 if test "$ac_cv_sys_largefile_CC" != no; then |
4386 CC=$CC$ac_cv_sys_largefile_CC | 3565 CC=$CC$ac_cv_sys_largefile_CC |
4387 fi | 3566 fi |
4388 | 3567 |
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4390 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 3569 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
4391 if test ${ac_cv_sys_file_offset_bits+y} | 3570 if ${ac_cv_sys_file_offset_bits+:} false; then : |
4392 then : | 3571 $as_echo_n "(cached) " >&6 |
4393 printf %s "(cached) " >&6 | 3572 else |
4394 else $as_nop | |
4395 while :; do | 3573 while :; do |
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4397 /* end confdefs.h. */ | 3575 /* end confdefs.h. */ |
4398 #include <sys/types.h> | 3576 #include <sys/types.h> |
4399 /* Check that off_t can represent 2**63 - 1 correctly. | 3577 /* Check that off_t can represent 2**63 - 1 correctly. |
4400 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 3578 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
4401 since some C++ compilers masquerading as C compilers | 3579 since some C++ compilers masquerading as C compilers |
4402 incorrectly reject 9223372036854775807. */ | 3580 incorrectly reject 9223372036854775807. */ |
4403 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 3581 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
4404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 3582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4405 && LARGE_OFF_T % 2147483647 == 1) | 3583 && LARGE_OFF_T % 2147483647 == 1) |
4406 ? 1 : -1]; | 3584 ? 1 : -1]; |
4407 int | 3585 int |
4408 main (void) | 3586 main () |
4409 { | 3587 { |
4410 | 3588 |
4411 ; | 3589 ; |
4412 return 0; | 3590 return 0; |
4413 } | 3591 } |
4414 _ACEOF | 3592 _ACEOF |
4415 if ac_fn_c_try_compile "$LINENO" | 3593 if ac_fn_c_try_compile "$LINENO"; then : |
4416 then : | |
4417 ac_cv_sys_file_offset_bits=no; break | 3594 ac_cv_sys_file_offset_bits=no; break |
4418 fi | 3595 fi |
4419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4421 /* end confdefs.h. */ | 3598 /* end confdefs.h. */ |
4422 #define _FILE_OFFSET_BITS 64 | 3599 #define _FILE_OFFSET_BITS 64 |
4423 #include <sys/types.h> | 3600 #include <sys/types.h> |
4424 /* Check that off_t can represent 2**63 - 1 correctly. | 3601 /* Check that off_t can represent 2**63 - 1 correctly. |
4425 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 3602 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
4426 since some C++ compilers masquerading as C compilers | 3603 since some C++ compilers masquerading as C compilers |
4427 incorrectly reject 9223372036854775807. */ | 3604 incorrectly reject 9223372036854775807. */ |
4428 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 3605 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
4429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 3606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4430 && LARGE_OFF_T % 2147483647 == 1) | 3607 && LARGE_OFF_T % 2147483647 == 1) |
4431 ? 1 : -1]; | 3608 ? 1 : -1]; |
4432 int | 3609 int |
4433 main (void) | 3610 main () |
4434 { | 3611 { |
4435 | 3612 |
4436 ; | 3613 ; |
4437 return 0; | 3614 return 0; |
4438 } | 3615 } |
4439 _ACEOF | 3616 _ACEOF |
4440 if ac_fn_c_try_compile "$LINENO" | 3617 if ac_fn_c_try_compile "$LINENO"; then : |
4441 then : | |
4442 ac_cv_sys_file_offset_bits=64; break | 3618 ac_cv_sys_file_offset_bits=64; break |
4443 fi | 3619 fi |
4444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4445 ac_cv_sys_file_offset_bits=unknown | 3621 ac_cv_sys_file_offset_bits=unknown |
4446 break | 3622 break |
4447 done | 3623 done |
4448 fi | 3624 fi |
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
4450 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } | 3626 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
4451 case $ac_cv_sys_file_offset_bits in #( | 3627 case $ac_cv_sys_file_offset_bits in #( |
4452 no | unknown) ;; | 3628 no | unknown) ;; |
4453 *) | 3629 *) |
4454 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h | 3630 cat >>confdefs.h <<_ACEOF |
3631 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3632 _ACEOF | |
4455 ;; | 3633 ;; |
4456 esac | 3634 esac |
4457 rm -rf conftest* | 3635 rm -rf conftest* |
4458 if test $ac_cv_sys_file_offset_bits = unknown; then | 3636 if test $ac_cv_sys_file_offset_bits = unknown; then |
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
4460 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } | 3638 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
4461 if test ${ac_cv_sys_large_files+y} | 3639 if ${ac_cv_sys_large_files+:} false; then : |
4462 then : | 3640 $as_echo_n "(cached) " >&6 |
4463 printf %s "(cached) " >&6 | 3641 else |
4464 else $as_nop | |
4465 while :; do | 3642 while :; do |
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4467 /* end confdefs.h. */ | 3644 /* end confdefs.h. */ |
4468 #include <sys/types.h> | 3645 #include <sys/types.h> |
4469 /* Check that off_t can represent 2**63 - 1 correctly. | 3646 /* Check that off_t can represent 2**63 - 1 correctly. |
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 3647 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
4471 since some C++ compilers masquerading as C compilers | 3648 since some C++ compilers masquerading as C compilers |
4472 incorrectly reject 9223372036854775807. */ | 3649 incorrectly reject 9223372036854775807. */ |
4473 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 3650 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 3651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4475 && LARGE_OFF_T % 2147483647 == 1) | 3652 && LARGE_OFF_T % 2147483647 == 1) |
4476 ? 1 : -1]; | 3653 ? 1 : -1]; |
4477 int | 3654 int |
4478 main (void) | 3655 main () |
4479 { | 3656 { |
4480 | 3657 |
4481 ; | 3658 ; |
4482 return 0; | 3659 return 0; |
4483 } | 3660 } |
4484 _ACEOF | 3661 _ACEOF |
4485 if ac_fn_c_try_compile "$LINENO" | 3662 if ac_fn_c_try_compile "$LINENO"; then : |
4486 then : | |
4487 ac_cv_sys_large_files=no; break | 3663 ac_cv_sys_large_files=no; break |
4488 fi | 3664 fi |
4489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4491 /* end confdefs.h. */ | 3667 /* end confdefs.h. */ |
4492 #define _LARGE_FILES 1 | 3668 #define _LARGE_FILES 1 |
4493 #include <sys/types.h> | 3669 #include <sys/types.h> |
4494 /* Check that off_t can represent 2**63 - 1 correctly. | 3670 /* Check that off_t can represent 2**63 - 1 correctly. |
4495 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 3671 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
4496 since some C++ compilers masquerading as C compilers | 3672 since some C++ compilers masquerading as C compilers |
4497 incorrectly reject 9223372036854775807. */ | 3673 incorrectly reject 9223372036854775807. */ |
4498 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 3674 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
4499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 3675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4500 && LARGE_OFF_T % 2147483647 == 1) | 3676 && LARGE_OFF_T % 2147483647 == 1) |
4501 ? 1 : -1]; | 3677 ? 1 : -1]; |
4502 int | 3678 int |
4503 main (void) | 3679 main () |
4504 { | 3680 { |
4505 | 3681 |
4506 ; | 3682 ; |
4507 return 0; | 3683 return 0; |
4508 } | 3684 } |
4509 _ACEOF | 3685 _ACEOF |
4510 if ac_fn_c_try_compile "$LINENO" | 3686 if ac_fn_c_try_compile "$LINENO"; then : |
4511 then : | |
4512 ac_cv_sys_large_files=1; break | 3687 ac_cv_sys_large_files=1; break |
4513 fi | 3688 fi |
4514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4515 ac_cv_sys_large_files=unknown | 3690 ac_cv_sys_large_files=unknown |
4516 break | 3691 break |
4517 done | 3692 done |
4518 fi | 3693 fi |
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
4520 printf "%s\n" "$ac_cv_sys_large_files" >&6; } | 3695 $as_echo "$ac_cv_sys_large_files" >&6; } |
4521 case $ac_cv_sys_large_files in #( | 3696 case $ac_cv_sys_large_files in #( |
4522 no | unknown) ;; | 3697 no | unknown) ;; |
4523 *) | 3698 *) |
4524 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h | 3699 cat >>confdefs.h <<_ACEOF |
3700 #define _LARGE_FILES $ac_cv_sys_large_files | |
3701 _ACEOF | |
4525 ;; | 3702 ;; |
4526 esac | 3703 esac |
4527 rm -rf conftest* | 3704 rm -rf conftest* |
4528 fi | 3705 fi |
3706 | |
3707 | |
4529 fi | 3708 fi |
4530 | 3709 |
4531 | 3710 |
4532 # Host specific options | 3711 # Host specific options |
4533 # this isn't a definitive list of hosts, they are just added as required | 3712 # this isn't a definitive list of hosts, they are just added as required |
4534 | 3713 ac_aux_dir= |
4535 | 3714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
4536 | 3715 if test -f "$ac_dir/install-sh"; then |
4537 # Make sure we can run config.sub. | 3716 ac_aux_dir=$ac_dir |
4538 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | 3717 ac_install_sh="$ac_aux_dir/install-sh -c" |
4539 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | 3718 break |
4540 | 3719 elif test -f "$ac_dir/install.sh"; then |
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 3720 ac_aux_dir=$ac_dir |
4542 printf %s "checking build system type... " >&6; } | 3721 ac_install_sh="$ac_aux_dir/install.sh -c" |
4543 if test ${ac_cv_build+y} | 3722 break |
4544 then : | 3723 elif test -f "$ac_dir/shtool"; then |
4545 printf %s "(cached) " >&6 | 3724 ac_aux_dir=$ac_dir |
4546 else $as_nop | 3725 ac_install_sh="$ac_aux_dir/shtool install -c" |
3726 break | |
3727 fi | |
3728 done | |
3729 if test -z "$ac_aux_dir"; then | |
3730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3731 fi | |
3732 | |
3733 # These three variables are undocumented and unsupported, | |
3734 # and are intended to be withdrawn in a future Autoconf release. | |
3735 # They can cause serious problems if a builder's source tree is in a directory | |
3736 # whose full name contains unusual characters. | |
3737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3740 | |
3741 | |
3742 # Make sure we can run config.sub. | |
3743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3745 | |
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3747 $as_echo_n "checking build system type... " >&6; } | |
3748 if ${ac_cv_build+:} false; then : | |
3749 $as_echo_n "(cached) " >&6 | |
3750 else | |
4547 ac_build_alias=$build_alias | 3751 ac_build_alias=$build_alias |
4548 test "x$ac_build_alias" = x && | 3752 test "x$ac_build_alias" = x && |
4549 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | 3753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4550 test "x$ac_build_alias" = x && | 3754 test "x$ac_build_alias" = x && |
4551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 3755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4552 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | 3756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4553 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | 3757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4554 | 3758 |
4555 fi | 3759 fi |
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4557 printf "%s\n" "$ac_cv_build" >&6; } | 3761 $as_echo "$ac_cv_build" >&6; } |
4558 case $ac_cv_build in | 3762 case $ac_cv_build in |
4559 *-*-*) ;; | 3763 *-*-*) ;; |
4560 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 3764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4561 esac | 3765 esac |
4562 build=$ac_cv_build | 3766 build=$ac_cv_build |
4571 build_os=$* | 3775 build_os=$* |
4572 IFS=$ac_save_IFS | 3776 IFS=$ac_save_IFS |
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 3777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4574 | 3778 |
4575 | 3779 |
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4577 printf %s "checking host system type... " >&6; } | 3781 $as_echo_n "checking host system type... " >&6; } |
4578 if test ${ac_cv_host+y} | 3782 if ${ac_cv_host+:} false; then : |
4579 then : | 3783 $as_echo_n "(cached) " >&6 |
4580 printf %s "(cached) " >&6 | 3784 else |
4581 else $as_nop | |
4582 if test "x$host_alias" = x; then | 3785 if test "x$host_alias" = x; then |
4583 ac_cv_host=$ac_cv_build | 3786 ac_cv_host=$ac_cv_build |
4584 else | 3787 else |
4585 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | 3788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4586 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | 3789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4587 fi | 3790 fi |
4588 | 3791 |
4589 fi | 3792 fi |
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4591 printf "%s\n" "$ac_cv_host" >&6; } | 3794 $as_echo "$ac_cv_host" >&6; } |
4592 case $ac_cv_host in | 3795 case $ac_cv_host in |
4593 *-*-*) ;; | 3796 *-*-*) ;; |
4594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 3797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4595 esac | 3798 esac |
4596 host=$ac_cv_host | 3799 host=$ac_cv_host |
4616 | 3819 |
4617 *-*-solaris*) | 3820 *-*-solaris*) |
4618 CFLAGS="$CFLAGS -I/usr/local/include" | 3821 CFLAGS="$CFLAGS -I/usr/local/include" |
4619 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | 3822 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" |
4620 conf_lastlog_location="/var/adm/lastlog" | 3823 conf_lastlog_location="/var/adm/lastlog" |
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 |
4622 printf %s "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | 3825 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } |
4623 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | 3826 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` |
4624 if test "$sol2ver" -ge 8; then | 3827 if test "$sol2ver" -ge 8; then |
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4626 printf "%s\n" "yes" >&6; } | 3829 $as_echo "yes" >&6; } |
4627 | 3830 |
4628 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h | 3831 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
4629 | 3832 |
4630 | 3833 |
4631 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h | 3834 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
4632 | 3835 |
4633 else | 3836 else |
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4635 printf "%s\n" "no" >&6; } | 3838 $as_echo "no" >&6; } |
4636 fi | 3839 fi |
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 | 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
4638 printf %s "checking for socket in -lsocket... " >&6; } | 3841 $as_echo_n "checking for socket in -lsocket... " >&6; } |
4639 if test ${ac_cv_lib_socket_socket+y} | 3842 if ${ac_cv_lib_socket_socket+:} false; then : |
4640 then : | 3843 $as_echo_n "(cached) " >&6 |
4641 printf %s "(cached) " >&6 | 3844 else |
4642 else $as_nop | |
4643 ac_check_lib_save_LIBS=$LIBS | 3845 ac_check_lib_save_LIBS=$LIBS |
4644 LIBS="-lsocket $LIBS" | 3846 LIBS="-lsocket $LIBS" |
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4646 /* end confdefs.h. */ | 3848 /* end confdefs.h. */ |
4647 | 3849 |
4648 /* Override any GCC internal prototype to avoid an error. | 3850 /* Override any GCC internal prototype to avoid an error. |
4649 Use char because int might match the return type of a GCC | 3851 Use char because int might match the return type of a GCC |
4650 builtin and then its argument prototype would still apply. */ | 3852 builtin and then its argument prototype would still apply. */ |
3853 #ifdef __cplusplus | |
3854 extern "C" | |
3855 #endif | |
4651 char socket (); | 3856 char socket (); |
4652 int | 3857 int |
4653 main (void) | 3858 main () |
4654 { | 3859 { |
4655 return socket (); | 3860 return socket (); |
4656 ; | 3861 ; |
4657 return 0; | 3862 return 0; |
4658 } | 3863 } |
4659 _ACEOF | 3864 _ACEOF |
4660 if ac_fn_c_try_link "$LINENO" | 3865 if ac_fn_c_try_link "$LINENO"; then : |
4661 then : | |
4662 ac_cv_lib_socket_socket=yes | 3866 ac_cv_lib_socket_socket=yes |
4663 else $as_nop | 3867 else |
4664 ac_cv_lib_socket_socket=no | 3868 ac_cv_lib_socket_socket=no |
4665 fi | 3869 fi |
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 3870 rm -f core conftest.err conftest.$ac_objext \ |
4667 conftest$ac_exeext conftest.$ac_ext | 3871 conftest$ac_exeext conftest.$ac_ext |
4668 LIBS=$ac_check_lib_save_LIBS | 3872 LIBS=$ac_check_lib_save_LIBS |
4669 fi | 3873 fi |
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 | 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
4671 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } | 3875 $as_echo "$ac_cv_lib_socket_socket" >&6; } |
4672 if test "x$ac_cv_lib_socket_socket" = xyes | 3876 if test "x$ac_cv_lib_socket_socket" = xyes; then : |
4673 then : | |
4674 LIBS="$LIBS -lsocket" | 3877 LIBS="$LIBS -lsocket" |
4675 fi | 3878 fi |
4676 | 3879 |
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 | 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 |
4678 printf %s "checking for yp_match in -lnsl... " >&6; } | 3881 $as_echo_n "checking for yp_match in -lnsl... " >&6; } |
4679 if test ${ac_cv_lib_nsl_yp_match+y} | 3882 if ${ac_cv_lib_nsl_yp_match+:} false; then : |
4680 then : | 3883 $as_echo_n "(cached) " >&6 |
4681 printf %s "(cached) " >&6 | 3884 else |
4682 else $as_nop | |
4683 ac_check_lib_save_LIBS=$LIBS | 3885 ac_check_lib_save_LIBS=$LIBS |
4684 LIBS="-lnsl $LIBS" | 3886 LIBS="-lnsl $LIBS" |
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4686 /* end confdefs.h. */ | 3888 /* end confdefs.h. */ |
4687 | 3889 |
4688 /* Override any GCC internal prototype to avoid an error. | 3890 /* Override any GCC internal prototype to avoid an error. |
4689 Use char because int might match the return type of a GCC | 3891 Use char because int might match the return type of a GCC |
4690 builtin and then its argument prototype would still apply. */ | 3892 builtin and then its argument prototype would still apply. */ |
3893 #ifdef __cplusplus | |
3894 extern "C" | |
3895 #endif | |
4691 char yp_match (); | 3896 char yp_match (); |
4692 int | 3897 int |
4693 main (void) | 3898 main () |
4694 { | 3899 { |
4695 return yp_match (); | 3900 return yp_match (); |
4696 ; | 3901 ; |
4697 return 0; | 3902 return 0; |
4698 } | 3903 } |
4699 _ACEOF | 3904 _ACEOF |
4700 if ac_fn_c_try_link "$LINENO" | 3905 if ac_fn_c_try_link "$LINENO"; then : |
4701 then : | |
4702 ac_cv_lib_nsl_yp_match=yes | 3906 ac_cv_lib_nsl_yp_match=yes |
4703 else $as_nop | 3907 else |
4704 ac_cv_lib_nsl_yp_match=no | 3908 ac_cv_lib_nsl_yp_match=no |
4705 fi | 3909 fi |
4706 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 3910 rm -f core conftest.err conftest.$ac_objext \ |
4707 conftest$ac_exeext conftest.$ac_ext | 3911 conftest$ac_exeext conftest.$ac_ext |
4708 LIBS=$ac_check_lib_save_LIBS | 3912 LIBS=$ac_check_lib_save_LIBS |
4709 fi | 3913 fi |
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 | 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 |
4711 printf "%s\n" "$ac_cv_lib_nsl_yp_match" >&6; } | 3915 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } |
4712 if test "x$ac_cv_lib_nsl_yp_match" = xyes | 3916 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : |
4713 then : | |
4714 LIBS="$LIBS -lnsl" | 3917 LIBS="$LIBS -lnsl" |
4715 fi | 3918 fi |
4716 | 3919 |
4717 ;; | 3920 ;; |
4718 | 3921 |
4719 *-*-aix*) | 3922 *-*-aix*) |
4720 | 3923 |
4721 printf "%s\n" "#define AIX 1" >>confdefs.h | 3924 $as_echo "#define AIX 1" >>confdefs.h |
4722 | 3925 |
4723 # OpenSSH thinks it's broken. If it isn't, let me know. | 3926 # OpenSSH thinks it's broken. If it isn't, let me know. |
4724 | 3927 |
4725 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h | 3928 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
4726 | 3929 |
4727 ;; | 3930 ;; |
4728 | 3931 |
4729 *-*-hpux*) | 3932 *-*-hpux*) |
4730 LIBS="$LIBS -lsec" | 3933 LIBS="$LIBS -lsec" |
4731 # It's probably broken. | 3934 # It's probably broken. |
4732 | 3935 |
4733 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h | 3936 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
4734 | 3937 |
4735 ;; | 3938 ;; |
4736 *-dec-osf*) | 3939 *-dec-osf*) |
4737 | 3940 |
4738 printf "%s\n" "#define BROKEN_GETADDRINFO 1" >>confdefs.h | 3941 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
4739 | 3942 |
4740 ;; | 3943 ;; |
4741 esac | 3944 esac |
4742 | 3945 |
4743 if test -n "$ac_tool_prefix"; then | 3946 if test -n "$ac_tool_prefix"; then |
4744 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 3947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4745 set dummy ${ac_tool_prefix}ar; ac_word=$2 | 3948 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4747 printf %s "checking for $ac_word... " >&6; } | 3950 $as_echo_n "checking for $ac_word... " >&6; } |
4748 if test ${ac_cv_prog_AR+y} | 3951 if ${ac_cv_prog_AR+:} false; then : |
4749 then : | 3952 $as_echo_n "(cached) " >&6 |
4750 printf %s "(cached) " >&6 | 3953 else |
4751 else $as_nop | |
4752 if test -n "$AR"; then | 3954 if test -n "$AR"; then |
4753 ac_cv_prog_AR="$AR" # Let the user override the test. | 3955 ac_cv_prog_AR="$AR" # Let the user override the test. |
4754 else | 3956 else |
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4756 for as_dir in $PATH | 3958 for as_dir in $PATH |
4757 do | 3959 do |
4758 IFS=$as_save_IFS | 3960 IFS=$as_save_IFS |
4759 case $as_dir in #((( | 3961 test -z "$as_dir" && as_dir=. |
4760 '') as_dir=./ ;; | |
4761 */) ;; | |
4762 *) as_dir=$as_dir/ ;; | |
4763 esac | |
4764 for ac_exec_ext in '' $ac_executable_extensions; do | 3962 for ac_exec_ext in '' $ac_executable_extensions; do |
4765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4766 ac_cv_prog_AR="${ac_tool_prefix}ar" | 3964 ac_cv_prog_AR="${ac_tool_prefix}ar" |
4767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4768 break 2 | 3966 break 2 |
4769 fi | 3967 fi |
4770 done | 3968 done |
4771 done | 3969 done |
4772 IFS=$as_save_IFS | 3970 IFS=$as_save_IFS |
4773 | 3971 |
4774 fi | 3972 fi |
4775 fi | 3973 fi |
4776 AR=$ac_cv_prog_AR | 3974 AR=$ac_cv_prog_AR |
4777 if test -n "$AR"; then | 3975 if test -n "$AR"; then |
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
4779 printf "%s\n" "$AR" >&6; } | 3977 $as_echo "$AR" >&6; } |
4780 else | 3978 else |
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4782 printf "%s\n" "no" >&6; } | 3980 $as_echo "no" >&6; } |
4783 fi | 3981 fi |
4784 | 3982 |
4785 | 3983 |
4786 fi | 3984 fi |
4787 if test -z "$ac_cv_prog_AR"; then | 3985 if test -z "$ac_cv_prog_AR"; then |
4788 ac_ct_AR=$AR | 3986 ac_ct_AR=$AR |
4789 # Extract the first word of "ar", so it can be a program name with args. | 3987 # Extract the first word of "ar", so it can be a program name with args. |
4790 set dummy ar; ac_word=$2 | 3988 set dummy ar; ac_word=$2 |
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4792 printf %s "checking for $ac_word... " >&6; } | 3990 $as_echo_n "checking for $ac_word... " >&6; } |
4793 if test ${ac_cv_prog_ac_ct_AR+y} | 3991 if ${ac_cv_prog_ac_ct_AR+:} false; then : |
4794 then : | 3992 $as_echo_n "(cached) " >&6 |
4795 printf %s "(cached) " >&6 | 3993 else |
4796 else $as_nop | |
4797 if test -n "$ac_ct_AR"; then | 3994 if test -n "$ac_ct_AR"; then |
4798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 3995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
4799 else | 3996 else |
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4801 for as_dir in $PATH | 3998 for as_dir in $PATH |
4802 do | 3999 do |
4803 IFS=$as_save_IFS | 4000 IFS=$as_save_IFS |
4804 case $as_dir in #((( | 4001 test -z "$as_dir" && as_dir=. |
4805 '') as_dir=./ ;; | |
4806 */) ;; | |
4807 *) as_dir=$as_dir/ ;; | |
4808 esac | |
4809 for ac_exec_ext in '' $ac_executable_extensions; do | 4002 for ac_exec_ext in '' $ac_executable_extensions; do |
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4811 ac_cv_prog_ac_ct_AR="ar" | 4004 ac_cv_prog_ac_ct_AR="ar" |
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4813 break 2 | 4006 break 2 |
4814 fi | 4007 fi |
4815 done | 4008 done |
4816 done | 4009 done |
4817 IFS=$as_save_IFS | 4010 IFS=$as_save_IFS |
4818 | 4011 |
4819 fi | 4012 fi |
4820 fi | 4013 fi |
4821 ac_ct_AR=$ac_cv_prog_ac_ct_AR | 4014 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4822 if test -n "$ac_ct_AR"; then | 4015 if test -n "$ac_ct_AR"; then |
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
4824 printf "%s\n" "$ac_ct_AR" >&6; } | 4017 $as_echo "$ac_ct_AR" >&6; } |
4825 else | 4018 else |
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4827 printf "%s\n" "no" >&6; } | 4020 $as_echo "no" >&6; } |
4828 fi | 4021 fi |
4829 | 4022 |
4830 if test "x$ac_ct_AR" = x; then | 4023 if test "x$ac_ct_AR" = x; then |
4831 AR=":" | 4024 AR=":" |
4832 else | 4025 else |
4833 case $cross_compiling:$ac_tool_warned in | 4026 case $cross_compiling:$ac_tool_warned in |
4834 yes:) | 4027 yes:) |
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4837 ac_tool_warned=yes ;; | 4030 ac_tool_warned=yes ;; |
4838 esac | 4031 esac |
4839 AR=$ac_ct_AR | 4032 AR=$ac_ct_AR |
4840 fi | 4033 fi |
4841 else | 4034 else |
4843 fi | 4036 fi |
4844 | 4037 |
4845 if test -n "$ac_tool_prefix"; then | 4038 if test -n "$ac_tool_prefix"; then |
4846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 4039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
4847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 4040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4849 printf %s "checking for $ac_word... " >&6; } | 4042 $as_echo_n "checking for $ac_word... " >&6; } |
4850 if test ${ac_cv_prog_RANLIB+y} | 4043 if ${ac_cv_prog_RANLIB+:} false; then : |
4851 then : | 4044 $as_echo_n "(cached) " >&6 |
4852 printf %s "(cached) " >&6 | 4045 else |
4853 else $as_nop | |
4854 if test -n "$RANLIB"; then | 4046 if test -n "$RANLIB"; then |
4855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 4047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
4856 else | 4048 else |
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4858 for as_dir in $PATH | 4050 for as_dir in $PATH |
4859 do | 4051 do |
4860 IFS=$as_save_IFS | 4052 IFS=$as_save_IFS |
4861 case $as_dir in #((( | 4053 test -z "$as_dir" && as_dir=. |
4862 '') as_dir=./ ;; | |
4863 */) ;; | |
4864 *) as_dir=$as_dir/ ;; | |
4865 esac | |
4866 for ac_exec_ext in '' $ac_executable_extensions; do | 4054 for ac_exec_ext in '' $ac_executable_extensions; do |
4867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 4056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4870 break 2 | 4058 break 2 |
4871 fi | 4059 fi |
4872 done | 4060 done |
4873 done | 4061 done |
4874 IFS=$as_save_IFS | 4062 IFS=$as_save_IFS |
4875 | 4063 |
4876 fi | 4064 fi |
4877 fi | 4065 fi |
4878 RANLIB=$ac_cv_prog_RANLIB | 4066 RANLIB=$ac_cv_prog_RANLIB |
4879 if test -n "$RANLIB"; then | 4067 if test -n "$RANLIB"; then |
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4881 printf "%s\n" "$RANLIB" >&6; } | 4069 $as_echo "$RANLIB" >&6; } |
4882 else | 4070 else |
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4884 printf "%s\n" "no" >&6; } | 4072 $as_echo "no" >&6; } |
4885 fi | 4073 fi |
4886 | 4074 |
4887 | 4075 |
4888 fi | 4076 fi |
4889 if test -z "$ac_cv_prog_RANLIB"; then | 4077 if test -z "$ac_cv_prog_RANLIB"; then |
4890 ac_ct_RANLIB=$RANLIB | 4078 ac_ct_RANLIB=$RANLIB |
4891 # Extract the first word of "ranlib", so it can be a program name with args. | 4079 # Extract the first word of "ranlib", so it can be a program name with args. |
4892 set dummy ranlib; ac_word=$2 | 4080 set dummy ranlib; ac_word=$2 |
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4894 printf %s "checking for $ac_word... " >&6; } | 4082 $as_echo_n "checking for $ac_word... " >&6; } |
4895 if test ${ac_cv_prog_ac_ct_RANLIB+y} | 4083 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
4896 then : | 4084 $as_echo_n "(cached) " >&6 |
4897 printf %s "(cached) " >&6 | 4085 else |
4898 else $as_nop | |
4899 if test -n "$ac_ct_RANLIB"; then | 4086 if test -n "$ac_ct_RANLIB"; then |
4900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 4087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
4901 else | 4088 else |
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4903 for as_dir in $PATH | 4090 for as_dir in $PATH |
4904 do | 4091 do |
4905 IFS=$as_save_IFS | 4092 IFS=$as_save_IFS |
4906 case $as_dir in #((( | 4093 test -z "$as_dir" && as_dir=. |
4907 '') as_dir=./ ;; | |
4908 */) ;; | |
4909 *) as_dir=$as_dir/ ;; | |
4910 esac | |
4911 for ac_exec_ext in '' $ac_executable_extensions; do | 4094 for ac_exec_ext in '' $ac_executable_extensions; do |
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4913 ac_cv_prog_ac_ct_RANLIB="ranlib" | 4096 ac_cv_prog_ac_ct_RANLIB="ranlib" |
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4915 break 2 | 4098 break 2 |
4916 fi | 4099 fi |
4917 done | 4100 done |
4918 done | 4101 done |
4919 IFS=$as_save_IFS | 4102 IFS=$as_save_IFS |
4920 | 4103 |
4921 fi | 4104 fi |
4922 fi | 4105 fi |
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 4106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4924 if test -n "$ac_ct_RANLIB"; then | 4107 if test -n "$ac_ct_RANLIB"; then |
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4926 printf "%s\n" "$ac_ct_RANLIB" >&6; } | 4109 $as_echo "$ac_ct_RANLIB" >&6; } |
4927 else | 4110 else |
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4929 printf "%s\n" "no" >&6; } | 4112 $as_echo "no" >&6; } |
4930 fi | 4113 fi |
4931 | 4114 |
4932 if test "x$ac_ct_RANLIB" = x; then | 4115 if test "x$ac_ct_RANLIB" = x; then |
4933 RANLIB=":" | 4116 RANLIB=":" |
4934 else | 4117 else |
4935 case $cross_compiling:$ac_tool_warned in | 4118 case $cross_compiling:$ac_tool_warned in |
4936 yes:) | 4119 yes:) |
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4938 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 4121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4939 ac_tool_warned=yes ;; | 4122 ac_tool_warned=yes ;; |
4940 esac | 4123 esac |
4941 RANLIB=$ac_ct_RANLIB | 4124 RANLIB=$ac_ct_RANLIB |
4942 fi | 4125 fi |
4943 else | 4126 else |
4945 fi | 4128 fi |
4946 | 4129 |
4947 if test -n "$ac_tool_prefix"; then | 4130 if test -n "$ac_tool_prefix"; then |
4948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 4131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
4949 set dummy ${ac_tool_prefix}strip; ac_word=$2 | 4132 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4951 printf %s "checking for $ac_word... " >&6; } | 4134 $as_echo_n "checking for $ac_word... " >&6; } |
4952 if test ${ac_cv_prog_STRIP+y} | 4135 if ${ac_cv_prog_STRIP+:} false; then : |
4953 then : | 4136 $as_echo_n "(cached) " >&6 |
4954 printf %s "(cached) " >&6 | 4137 else |
4955 else $as_nop | |
4956 if test -n "$STRIP"; then | 4138 if test -n "$STRIP"; then |
4957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 4139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
4958 else | 4140 else |
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4960 for as_dir in $PATH | 4142 for as_dir in $PATH |
4961 do | 4143 do |
4962 IFS=$as_save_IFS | 4144 IFS=$as_save_IFS |
4963 case $as_dir in #((( | 4145 test -z "$as_dir" && as_dir=. |
4964 '') as_dir=./ ;; | |
4965 */) ;; | |
4966 *) as_dir=$as_dir/ ;; | |
4967 esac | |
4968 for ac_exec_ext in '' $ac_executable_extensions; do | 4146 for ac_exec_ext in '' $ac_executable_extensions; do |
4969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4970 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 4148 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
4971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4972 break 2 | 4150 break 2 |
4973 fi | 4151 fi |
4974 done | 4152 done |
4975 done | 4153 done |
4976 IFS=$as_save_IFS | 4154 IFS=$as_save_IFS |
4977 | 4155 |
4978 fi | 4156 fi |
4979 fi | 4157 fi |
4980 STRIP=$ac_cv_prog_STRIP | 4158 STRIP=$ac_cv_prog_STRIP |
4981 if test -n "$STRIP"; then | 4159 if test -n "$STRIP"; then |
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
4983 printf "%s\n" "$STRIP" >&6; } | 4161 $as_echo "$STRIP" >&6; } |
4984 else | 4162 else |
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4986 printf "%s\n" "no" >&6; } | 4164 $as_echo "no" >&6; } |
4987 fi | 4165 fi |
4988 | 4166 |
4989 | 4167 |
4990 fi | 4168 fi |
4991 if test -z "$ac_cv_prog_STRIP"; then | 4169 if test -z "$ac_cv_prog_STRIP"; then |
4992 ac_ct_STRIP=$STRIP | 4170 ac_ct_STRIP=$STRIP |
4993 # Extract the first word of "strip", so it can be a program name with args. | 4171 # Extract the first word of "strip", so it can be a program name with args. |
4994 set dummy strip; ac_word=$2 | 4172 set dummy strip; ac_word=$2 |
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4996 printf %s "checking for $ac_word... " >&6; } | 4174 $as_echo_n "checking for $ac_word... " >&6; } |
4997 if test ${ac_cv_prog_ac_ct_STRIP+y} | 4175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
4998 then : | 4176 $as_echo_n "(cached) " >&6 |
4999 printf %s "(cached) " >&6 | 4177 else |
5000 else $as_nop | |
5001 if test -n "$ac_ct_STRIP"; then | 4178 if test -n "$ac_ct_STRIP"; then |
5002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 4179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5003 else | 4180 else |
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5005 for as_dir in $PATH | 4182 for as_dir in $PATH |
5006 do | 4183 do |
5007 IFS=$as_save_IFS | 4184 IFS=$as_save_IFS |
5008 case $as_dir in #((( | 4185 test -z "$as_dir" && as_dir=. |
5009 '') as_dir=./ ;; | |
5010 */) ;; | |
5011 *) as_dir=$as_dir/ ;; | |
5012 esac | |
5013 for ac_exec_ext in '' $ac_executable_extensions; do | 4186 for ac_exec_ext in '' $ac_executable_extensions; do |
5014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5015 ac_cv_prog_ac_ct_STRIP="strip" | 4188 ac_cv_prog_ac_ct_STRIP="strip" |
5016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5017 break 2 | 4190 break 2 |
5018 fi | 4191 fi |
5019 done | 4192 done |
5020 done | 4193 done |
5021 IFS=$as_save_IFS | 4194 IFS=$as_save_IFS |
5022 | 4195 |
5023 fi | 4196 fi |
5024 fi | 4197 fi |
5025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 4198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5026 if test -n "$ac_ct_STRIP"; then | 4199 if test -n "$ac_ct_STRIP"; then |
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
5028 printf "%s\n" "$ac_ct_STRIP" >&6; } | 4201 $as_echo "$ac_ct_STRIP" >&6; } |
5029 else | 4202 else |
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5031 printf "%s\n" "no" >&6; } | 4204 $as_echo "no" >&6; } |
5032 fi | 4205 fi |
5033 | 4206 |
5034 if test "x$ac_ct_STRIP" = x; then | 4207 if test "x$ac_ct_STRIP" = x; then |
5035 STRIP=":" | 4208 STRIP=":" |
5036 else | 4209 else |
5037 case $cross_compiling:$ac_tool_warned in | 4210 case $cross_compiling:$ac_tool_warned in |
5038 yes:) | 4211 yes:) |
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 4213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5041 ac_tool_warned=yes ;; | 4214 ac_tool_warned=yes ;; |
5042 esac | 4215 esac |
5043 STRIP=$ac_ct_STRIP | 4216 STRIP=$ac_ct_STRIP |
5044 fi | 4217 fi |
5045 else | 4218 else |
5047 fi | 4220 fi |
5048 | 4221 |
5049 if test -n "$ac_tool_prefix"; then | 4222 if test -n "$ac_tool_prefix"; then |
5050 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args. | 4223 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args. |
5051 set dummy ${ac_tool_prefix}install; ac_word=$2 | 4224 set dummy ${ac_tool_prefix}install; ac_word=$2 |
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5053 printf %s "checking for $ac_word... " >&6; } | 4226 $as_echo_n "checking for $ac_word... " >&6; } |
5054 if test ${ac_cv_prog_INSTALL+y} | 4227 if ${ac_cv_prog_INSTALL+:} false; then : |
5055 then : | 4228 $as_echo_n "(cached) " >&6 |
5056 printf %s "(cached) " >&6 | 4229 else |
5057 else $as_nop | |
5058 if test -n "$INSTALL"; then | 4230 if test -n "$INSTALL"; then |
5059 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | 4231 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. |
5060 else | 4232 else |
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5062 for as_dir in $PATH | 4234 for as_dir in $PATH |
5063 do | 4235 do |
5064 IFS=$as_save_IFS | 4236 IFS=$as_save_IFS |
5065 case $as_dir in #((( | 4237 test -z "$as_dir" && as_dir=. |
5066 '') as_dir=./ ;; | |
5067 */) ;; | |
5068 *) as_dir=$as_dir/ ;; | |
5069 esac | |
5070 for ac_exec_ext in '' $ac_executable_extensions; do | 4238 for ac_exec_ext in '' $ac_executable_extensions; do |
5071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5072 ac_cv_prog_INSTALL="${ac_tool_prefix}install" | 4240 ac_cv_prog_INSTALL="${ac_tool_prefix}install" |
5073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5074 break 2 | 4242 break 2 |
5075 fi | 4243 fi |
5076 done | 4244 done |
5077 done | 4245 done |
5078 IFS=$as_save_IFS | 4246 IFS=$as_save_IFS |
5079 | 4247 |
5080 fi | 4248 fi |
5081 fi | 4249 fi |
5082 INSTALL=$ac_cv_prog_INSTALL | 4250 INSTALL=$ac_cv_prog_INSTALL |
5083 if test -n "$INSTALL"; then | 4251 if test -n "$INSTALL"; then |
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
5085 printf "%s\n" "$INSTALL" >&6; } | 4253 $as_echo "$INSTALL" >&6; } |
5086 else | 4254 else |
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5088 printf "%s\n" "no" >&6; } | 4256 $as_echo "no" >&6; } |
5089 fi | 4257 fi |
5090 | 4258 |
5091 | 4259 |
5092 fi | 4260 fi |
5093 if test -z "$ac_cv_prog_INSTALL"; then | 4261 if test -z "$ac_cv_prog_INSTALL"; then |
5094 ac_ct_INSTALL=$INSTALL | 4262 ac_ct_INSTALL=$INSTALL |
5095 # Extract the first word of "install", so it can be a program name with args. | 4263 # Extract the first word of "install", so it can be a program name with args. |
5096 set dummy install; ac_word=$2 | 4264 set dummy install; ac_word=$2 |
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5098 printf %s "checking for $ac_word... " >&6; } | 4266 $as_echo_n "checking for $ac_word... " >&6; } |
5099 if test ${ac_cv_prog_ac_ct_INSTALL+y} | 4267 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then : |
5100 then : | 4268 $as_echo_n "(cached) " >&6 |
5101 printf %s "(cached) " >&6 | 4269 else |
5102 else $as_nop | |
5103 if test -n "$ac_ct_INSTALL"; then | 4270 if test -n "$ac_ct_INSTALL"; then |
5104 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test. | 4271 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test. |
5105 else | 4272 else |
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5107 for as_dir in $PATH | 4274 for as_dir in $PATH |
5108 do | 4275 do |
5109 IFS=$as_save_IFS | 4276 IFS=$as_save_IFS |
5110 case $as_dir in #((( | 4277 test -z "$as_dir" && as_dir=. |
5111 '') as_dir=./ ;; | |
5112 */) ;; | |
5113 *) as_dir=$as_dir/ ;; | |
5114 esac | |
5115 for ac_exec_ext in '' $ac_executable_extensions; do | 4278 for ac_exec_ext in '' $ac_executable_extensions; do |
5116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5117 ac_cv_prog_ac_ct_INSTALL="install" | 4280 ac_cv_prog_ac_ct_INSTALL="install" |
5118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5119 break 2 | 4282 break 2 |
5120 fi | 4283 fi |
5121 done | 4284 done |
5122 done | 4285 done |
5123 IFS=$as_save_IFS | 4286 IFS=$as_save_IFS |
5124 | 4287 |
5125 fi | 4288 fi |
5126 fi | 4289 fi |
5127 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL | 4290 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL |
5128 if test -n "$ac_ct_INSTALL"; then | 4291 if test -n "$ac_ct_INSTALL"; then |
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5 | 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5 |
5130 printf "%s\n" "$ac_ct_INSTALL" >&6; } | 4293 $as_echo "$ac_ct_INSTALL" >&6; } |
5131 else | 4294 else |
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5133 printf "%s\n" "no" >&6; } | 4296 $as_echo "no" >&6; } |
5134 fi | 4297 fi |
5135 | 4298 |
5136 if test "x$ac_ct_INSTALL" = x; then | 4299 if test "x$ac_ct_INSTALL" = x; then |
5137 INSTALL=":" | 4300 INSTALL=":" |
5138 else | 4301 else |
5139 case $cross_compiling:$ac_tool_warned in | 4302 case $cross_compiling:$ac_tool_warned in |
5140 yes:) | 4303 yes:) |
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5143 ac_tool_warned=yes ;; | 4306 ac_tool_warned=yes ;; |
5144 esac | 4307 esac |
5145 INSTALL=$ac_ct_INSTALL | 4308 INSTALL=$ac_ct_INSTALL |
5146 fi | 4309 fi |
5147 else | 4310 else |
5148 INSTALL="$ac_cv_prog_INSTALL" | 4311 INSTALL="$ac_cv_prog_INSTALL" |
5149 fi | 4312 fi |
5150 | 4313 |
5151 | 4314 |
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 | 4315 ac_ext=c |
5153 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } | 4316 ac_cpp='$CPP $CPPFLAGS' |
5154 if test ${ac_cv_c_undeclared_builtin_options+y} | 4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5155 then : | 4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5156 printf %s "(cached) " >&6 | 4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5157 else $as_nop | 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5158 ac_save_CFLAGS=$CFLAGS | 4321 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
5159 ac_cv_c_undeclared_builtin_options='cannot detect' | 4322 # On Suns, sometimes $CPP names a directory. |
5160 for ac_arg in '' -fno-builtin; do | 4323 if test -n "$CPP" && test -d "$CPP"; then |
5161 CFLAGS="$ac_save_CFLAGS $ac_arg" | 4324 CPP= |
5162 # This test program should *not* compile successfully. | 4325 fi |
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4326 if test -z "$CPP"; then |
4327 if ${ac_cv_prog_CPP+:} false; then : | |
4328 $as_echo_n "(cached) " >&6 | |
4329 else | |
4330 # Double quotes because CPP needs to be expanded | |
4331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4332 do | |
4333 ac_preproc_ok=false | |
4334 for ac_c_preproc_warn_flag in '' yes | |
4335 do | |
4336 # Use a header file that comes with gcc, so configuring glibc | |
4337 # with a fresh cross-compiler works. | |
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4339 # <limits.h> exists even on freestanding compilers. | |
4340 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4341 # not just through cpp. "Syntax error" is here to catch this case. | |
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5164 /* end confdefs.h. */ | 4343 /* end confdefs.h. */ |
4344 #ifdef __STDC__ | |
4345 # include <limits.h> | |
4346 #else | |
4347 # include <assert.h> | |
4348 #endif | |
4349 Syntax error | |
4350 _ACEOF | |
4351 if ac_fn_c_try_cpp "$LINENO"; then : | |
4352 | |
4353 else | |
4354 # Broken: fails on valid input. | |
4355 continue | |
4356 fi | |
4357 rm -f conftest.err conftest.i conftest.$ac_ext | |
4358 | |
4359 # OK, works on sane cases. Now check whether nonexistent headers | |
4360 # can be detected and how. | |
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4362 /* end confdefs.h. */ | |
4363 #include <ac_nonexistent.h> | |
4364 _ACEOF | |
4365 if ac_fn_c_try_cpp "$LINENO"; then : | |
4366 # Broken: success on invalid input. | |
4367 continue | |
4368 else | |
4369 # Passes both tests. | |
4370 ac_preproc_ok=: | |
4371 break | |
4372 fi | |
4373 rm -f conftest.err conftest.i conftest.$ac_ext | |
4374 | |
4375 done | |
4376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4377 rm -f conftest.i conftest.err conftest.$ac_ext | |
4378 if $ac_preproc_ok; then : | |
4379 break | |
4380 fi | |
4381 | |
4382 done | |
4383 ac_cv_prog_CPP=$CPP | |
4384 | |
4385 fi | |
4386 CPP=$ac_cv_prog_CPP | |
4387 else | |
4388 ac_cv_prog_CPP=$CPP | |
4389 fi | |
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4391 $as_echo "$CPP" >&6; } | |
4392 ac_preproc_ok=false | |
4393 for ac_c_preproc_warn_flag in '' yes | |
4394 do | |
4395 # Use a header file that comes with gcc, so configuring glibc | |
4396 # with a fresh cross-compiler works. | |
4397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4398 # <limits.h> exists even on freestanding compilers. | |
4399 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4400 # not just through cpp. "Syntax error" is here to catch this case. | |
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4402 /* end confdefs.h. */ | |
4403 #ifdef __STDC__ | |
4404 # include <limits.h> | |
4405 #else | |
4406 # include <assert.h> | |
4407 #endif | |
4408 Syntax error | |
4409 _ACEOF | |
4410 if ac_fn_c_try_cpp "$LINENO"; then : | |
4411 | |
4412 else | |
4413 # Broken: fails on valid input. | |
4414 continue | |
4415 fi | |
4416 rm -f conftest.err conftest.i conftest.$ac_ext | |
4417 | |
4418 # OK, works on sane cases. Now check whether nonexistent headers | |
4419 # can be detected and how. | |
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4421 /* end confdefs.h. */ | |
4422 #include <ac_nonexistent.h> | |
4423 _ACEOF | |
4424 if ac_fn_c_try_cpp "$LINENO"; then : | |
4425 # Broken: success on invalid input. | |
4426 continue | |
4427 else | |
4428 # Passes both tests. | |
4429 ac_preproc_ok=: | |
4430 break | |
4431 fi | |
4432 rm -f conftest.err conftest.i conftest.$ac_ext | |
4433 | |
4434 done | |
4435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4436 rm -f conftest.i conftest.err conftest.$ac_ext | |
4437 if $ac_preproc_ok; then : | |
4438 | |
4439 else | |
4440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4442 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4443 See \`config.log' for more details" "$LINENO" 5; } | |
4444 fi | |
4445 | |
4446 ac_ext=c | |
4447 ac_cpp='$CPP $CPPFLAGS' | |
4448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4450 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4451 | |
4452 | |
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4455 if ${ac_cv_path_GREP+:} false; then : | |
4456 $as_echo_n "(cached) " >&6 | |
4457 else | |
4458 if test -z "$GREP"; then | |
4459 ac_path_GREP_found=false | |
4460 # Loop through the user's path and test for each of PROGNAME-LIST | |
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4463 do | |
4464 IFS=$as_save_IFS | |
4465 test -z "$as_dir" && as_dir=. | |
4466 for ac_prog in grep ggrep; do | |
4467 for ac_exec_ext in '' $ac_executable_extensions; do | |
4468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4469 as_fn_executable_p "$ac_path_GREP" || continue | |
4470 # Check for GNU ac_path_GREP and select it if it is found. | |
4471 # Check for GNU $ac_path_GREP | |
4472 case `"$ac_path_GREP" --version 2>&1` in | |
4473 *GNU*) | |
4474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4475 *) | |
4476 ac_count=0 | |
4477 $as_echo_n 0123456789 >"conftest.in" | |
4478 while : | |
4479 do | |
4480 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4481 mv "conftest.tmp" "conftest.in" | |
4482 cp "conftest.in" "conftest.nl" | |
4483 $as_echo 'GREP' >> "conftest.nl" | |
4484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4487 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4488 # Best one so far, save it but keep looking for a better one | |
4489 ac_cv_path_GREP="$ac_path_GREP" | |
4490 ac_path_GREP_max=$ac_count | |
4491 fi | |
4492 # 10*(2^10) chars as input seems more than enough | |
4493 test $ac_count -gt 10 && break | |
4494 done | |
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4496 esac | |
4497 | |
4498 $ac_path_GREP_found && break 3 | |
4499 done | |
4500 done | |
4501 done | |
4502 IFS=$as_save_IFS | |
4503 if test -z "$ac_cv_path_GREP"; then | |
4504 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4505 fi | |
4506 else | |
4507 ac_cv_path_GREP=$GREP | |
4508 fi | |
4509 | |
4510 fi | |
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4512 $as_echo "$ac_cv_path_GREP" >&6; } | |
4513 GREP="$ac_cv_path_GREP" | |
4514 | |
4515 | |
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4517 $as_echo_n "checking for egrep... " >&6; } | |
4518 if ${ac_cv_path_EGREP+:} false; then : | |
4519 $as_echo_n "(cached) " >&6 | |
4520 else | |
4521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4522 then ac_cv_path_EGREP="$GREP -E" | |
4523 else | |
4524 if test -z "$EGREP"; then | |
4525 ac_path_EGREP_found=false | |
4526 # Loop through the user's path and test for each of PROGNAME-LIST | |
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4529 do | |
4530 IFS=$as_save_IFS | |
4531 test -z "$as_dir" && as_dir=. | |
4532 for ac_prog in egrep; do | |
4533 for ac_exec_ext in '' $ac_executable_extensions; do | |
4534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4535 as_fn_executable_p "$ac_path_EGREP" || continue | |
4536 # Check for GNU ac_path_EGREP and select it if it is found. | |
4537 # Check for GNU $ac_path_EGREP | |
4538 case `"$ac_path_EGREP" --version 2>&1` in | |
4539 *GNU*) | |
4540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4541 *) | |
4542 ac_count=0 | |
4543 $as_echo_n 0123456789 >"conftest.in" | |
4544 while : | |
4545 do | |
4546 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4547 mv "conftest.tmp" "conftest.in" | |
4548 cp "conftest.in" "conftest.nl" | |
4549 $as_echo 'EGREP' >> "conftest.nl" | |
4550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4554 # Best one so far, save it but keep looking for a better one | |
4555 ac_cv_path_EGREP="$ac_path_EGREP" | |
4556 ac_path_EGREP_max=$ac_count | |
4557 fi | |
4558 # 10*(2^10) chars as input seems more than enough | |
4559 test $ac_count -gt 10 && break | |
4560 done | |
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4562 esac | |
4563 | |
4564 $ac_path_EGREP_found && break 3 | |
4565 done | |
4566 done | |
4567 done | |
4568 IFS=$as_save_IFS | |
4569 if test -z "$ac_cv_path_EGREP"; then | |
4570 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4571 fi | |
4572 else | |
4573 ac_cv_path_EGREP=$EGREP | |
4574 fi | |
4575 | |
4576 fi | |
4577 fi | |
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4579 $as_echo "$ac_cv_path_EGREP" >&6; } | |
4580 EGREP="$ac_cv_path_EGREP" | |
4581 | |
4582 | |
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4584 $as_echo_n "checking for ANSI C header files... " >&6; } | |
4585 if ${ac_cv_header_stdc+:} false; then : | |
4586 $as_echo_n "(cached) " >&6 | |
4587 else | |
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4589 /* end confdefs.h. */ | |
4590 #include <stdlib.h> | |
4591 #include <stdarg.h> | |
4592 #include <string.h> | |
4593 #include <float.h> | |
5165 | 4594 |
5166 int | 4595 int |
5167 main (void) | 4596 main () |
5168 { | 4597 { |
5169 (void) strchr; | 4598 |
5170 ; | 4599 ; |
5171 return 0; | 4600 return 0; |
5172 } | 4601 } |
5173 _ACEOF | 4602 _ACEOF |
5174 if ac_fn_c_try_compile "$LINENO" | 4603 if ac_fn_c_try_compile "$LINENO"; then : |
5175 then : | 4604 ac_cv_header_stdc=yes |
5176 | 4605 else |
5177 else $as_nop | 4606 ac_cv_header_stdc=no |
5178 # This test program should compile successfully. | 4607 fi |
5179 # No library function is consistently available on | 4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5180 # freestanding implementations, so test against a dummy | 4609 |
5181 # declaration. Include always-available headers on the | 4610 if test $ac_cv_header_stdc = yes; then |
5182 # off chance that they somehow elicit warnings. | 4611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5184 /* end confdefs.h. */ | 4613 /* end confdefs.h. */ |
5185 #include <float.h> | 4614 #include <string.h> |
5186 #include <limits.h> | 4615 |
5187 #include <stdarg.h> | 4616 _ACEOF |
5188 #include <stddef.h> | 4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5189 extern void ac_decl (int, char *); | 4618 $EGREP "memchr" >/dev/null 2>&1; then : |
5190 | 4619 |
4620 else | |
4621 ac_cv_header_stdc=no | |
4622 fi | |
4623 rm -f conftest* | |
4624 | |
4625 fi | |
4626 | |
4627 if test $ac_cv_header_stdc = yes; then | |
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4630 /* end confdefs.h. */ | |
4631 #include <stdlib.h> | |
4632 | |
4633 _ACEOF | |
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4635 $EGREP "free" >/dev/null 2>&1; then : | |
4636 | |
4637 else | |
4638 ac_cv_header_stdc=no | |
4639 fi | |
4640 rm -f conftest* | |
4641 | |
4642 fi | |
4643 | |
4644 if test $ac_cv_header_stdc = yes; then | |
4645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4646 if test "$cross_compiling" = yes; then : | |
4647 : | |
4648 else | |
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4650 /* end confdefs.h. */ | |
4651 #include <ctype.h> | |
4652 #include <stdlib.h> | |
4653 #if ((' ' & 0x0FF) == 0x020) | |
4654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4656 #else | |
4657 # define ISLOWER(c) \ | |
4658 (('a' <= (c) && (c) <= 'i') \ | |
4659 || ('j' <= (c) && (c) <= 'r') \ | |
4660 || ('s' <= (c) && (c) <= 'z')) | |
4661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4662 #endif | |
4663 | |
4664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5191 int | 4665 int |
5192 main (void) | 4666 main () |
5193 { | 4667 { |
5194 (void) ac_decl (0, (char *) 0); | 4668 int i; |
5195 (void) ac_decl; | 4669 for (i = 0; i < 256; i++) |
5196 | 4670 if (XOR (islower (i), ISLOWER (i)) |
5197 ; | 4671 || toupper (i) != TOUPPER (i)) |
4672 return 2; | |
5198 return 0; | 4673 return 0; |
5199 } | 4674 } |
5200 _ACEOF | 4675 _ACEOF |
5201 if ac_fn_c_try_compile "$LINENO" | 4676 if ac_fn_c_try_run "$LINENO"; then : |
5202 then : | 4677 |
5203 if test x"$ac_arg" = x | 4678 else |
5204 then : | 4679 ac_cv_header_stdc=no |
5205 ac_cv_c_undeclared_builtin_options='none needed' | 4680 fi |
5206 else $as_nop | 4681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5207 ac_cv_c_undeclared_builtin_options=$ac_arg | 4682 conftest.$ac_objext conftest.beam conftest.$ac_ext |
5208 fi | 4683 fi |
5209 break | 4684 |
5210 fi | 4685 fi |
5211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 4686 fi |
5212 fi | 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 4688 $as_echo "$ac_cv_header_stdc" >&6; } |
5214 done | 4689 if test $ac_cv_header_stdc = yes; then |
5215 CFLAGS=$ac_save_CFLAGS | 4690 |
5216 | 4691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
5217 fi | 4692 |
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | 4693 fi |
5219 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | 4694 |
5220 case $ac_cv_c_undeclared_builtin_options in #( | 4695 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5221 'cannot detect') : | 4696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4697 inttypes.h stdint.h unistd.h |
5223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | 4698 do : |
5224 as_fn_error $? "cannot make $CC report undeclared builtins | 4699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5225 See \`config.log' for more details" "$LINENO" 5; } ;; #( | 4700 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
5226 'none needed') : | 4701 " |
5227 ac_c_undeclared_builtin_options='' ;; #( | 4702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
5228 *) : | 4703 cat >>confdefs.h <<_ACEOF |
5229 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | 4704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5230 esac | 4705 _ACEOF |
5231 | 4706 |
5232 ac_header= ac_cache= | 4707 fi |
5233 for ac_item in $ac_header_c_list | 4708 |
5234 do | |
5235 if test $ac_cache; then | |
5236 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
5237 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
5238 printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
5239 fi | |
5240 ac_header= ac_cache= | |
5241 elif test $ac_header; then | |
5242 ac_cache=$ac_item | |
5243 else | |
5244 ac_header=$ac_item | |
5245 fi | |
5246 done | 4709 done |
5247 | 4710 |
5248 | 4711 |
5249 | 4712 ac_fn_c_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default" |
5250 | 4713 if test "x$ac_cv_have_decl___UCLIBC__" = xyes; then : |
5251 | |
5252 | |
5253 | |
5254 | |
5255 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
5256 then : | |
5257 | |
5258 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
5259 | |
5260 fi | |
5261 ac_fn_check_decl "$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" | |
5262 if test "x$ac_cv_have_decl___UCLIBC__" = xyes | |
5263 then : | |
5264 | 4714 |
5265 no_loginfunc_check=1 | 4715 no_loginfunc_check=1 |
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5 | 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5 |
5267 printf "%s\n" "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;} | 4717 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;} |
5268 | 4718 |
5269 fi | 4719 fi |
4720 | |
5270 | 4721 |
5271 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | 4722 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" |
5272 if test "x$ac_cv_func_crypt" = xyes | 4723 if test "x$ac_cv_func_crypt" = xyes; then : |
5273 then : | |
5274 found_crypt_func=here | 4724 found_crypt_func=here |
5275 fi | 4725 fi |
5276 | 4726 |
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
5278 printf %s "checking for crypt in -lcrypt... " >&6; } | 4728 $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
5279 if test ${ac_cv_lib_crypt_crypt+y} | 4729 if ${ac_cv_lib_crypt_crypt+:} false; then : |
5280 then : | 4730 $as_echo_n "(cached) " >&6 |
5281 printf %s "(cached) " >&6 | 4731 else |
5282 else $as_nop | |
5283 ac_check_lib_save_LIBS=$LIBS | 4732 ac_check_lib_save_LIBS=$LIBS |
5284 LIBS="-lcrypt $LIBS" | 4733 LIBS="-lcrypt $LIBS" |
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5286 /* end confdefs.h. */ | 4735 /* end confdefs.h. */ |
5287 | 4736 |
5288 /* Override any GCC internal prototype to avoid an error. | 4737 /* Override any GCC internal prototype to avoid an error. |
5289 Use char because int might match the return type of a GCC | 4738 Use char because int might match the return type of a GCC |
5290 builtin and then its argument prototype would still apply. */ | 4739 builtin and then its argument prototype would still apply. */ |
4740 #ifdef __cplusplus | |
4741 extern "C" | |
4742 #endif | |
5291 char crypt (); | 4743 char crypt (); |
5292 int | 4744 int |
5293 main (void) | 4745 main () |
5294 { | 4746 { |
5295 return crypt (); | 4747 return crypt (); |
5296 ; | 4748 ; |
5297 return 0; | 4749 return 0; |
5298 } | 4750 } |
5299 _ACEOF | 4751 _ACEOF |
5300 if ac_fn_c_try_link "$LINENO" | 4752 if ac_fn_c_try_link "$LINENO"; then : |
5301 then : | |
5302 ac_cv_lib_crypt_crypt=yes | 4753 ac_cv_lib_crypt_crypt=yes |
5303 else $as_nop | 4754 else |
5304 ac_cv_lib_crypt_crypt=no | 4755 ac_cv_lib_crypt_crypt=no |
5305 fi | 4756 fi |
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 4757 rm -f core conftest.err conftest.$ac_objext \ |
5307 conftest$ac_exeext conftest.$ac_ext | 4758 conftest$ac_exeext conftest.$ac_ext |
5308 LIBS=$ac_check_lib_save_LIBS | 4759 LIBS=$ac_check_lib_save_LIBS |
5309 fi | 4760 fi |
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
5311 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; } | 4762 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
5312 if test "x$ac_cv_lib_crypt_crypt" = xyes | 4763 if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
5313 then : | |
5314 | 4764 |
5315 CRYPTLIB="-lcrypt" | 4765 CRYPTLIB="-lcrypt" |
5316 found_crypt_func=here | 4766 found_crypt_func=here |
5317 | 4767 |
5318 fi | 4768 fi |
5319 | 4769 |
5320 | 4770 |
5321 if test "t$found_crypt_func" = there; then | 4771 if test "t$found_crypt_func" = there; then |
5322 | 4772 |
5323 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h | 4773 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h |
5324 | 4774 |
5325 fi | 4775 fi |
5326 | 4776 |
5327 # Check if zlib is needed | 4777 # Check if zlib is needed |
5328 | 4778 |
5329 # Check whether --with-zlib was given. | 4779 # Check whether --with-zlib was given. |
5330 if test ${with_zlib+y} | 4780 if test "${with_zlib+set}" = set; then : |
5331 then : | |
5332 withval=$with_zlib; | 4781 withval=$with_zlib; |
5333 # option is given | 4782 # option is given |
5334 if test -d "$withval/lib"; then | 4783 if test -d "$withval/lib"; then |
5335 LDFLAGS="-L${withval}/lib ${LDFLAGS}" | 4784 LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
5336 else | 4785 else |
5345 | 4794 |
5346 fi | 4795 fi |
5347 | 4796 |
5348 | 4797 |
5349 # Check whether --enable-zlib was given. | 4798 # Check whether --enable-zlib was given. |
5350 if test ${enable_zlib+y} | 4799 if test "${enable_zlib+set}" = set; then : |
5351 then : | |
5352 enableval=$enable_zlib; | 4800 enableval=$enable_zlib; |
5353 if test "x$enableval" = "xno"; then | 4801 if test "x$enableval" = "xno"; then |
5354 | 4802 |
5355 printf "%s\n" "#define DISABLE_ZLIB 1" >>confdefs.h | 4803 $as_echo "#define DISABLE_ZLIB 1" >>confdefs.h |
5356 | 4804 |
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5 | 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5 |
5358 printf "%s\n" "$as_me: Disabling zlib" >&6;} | 4806 $as_echo "$as_me: Disabling zlib" >&6;} |
5359 else | 4807 else |
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
5361 printf %s "checking for deflate in -lz... " >&6; } | 4809 $as_echo_n "checking for deflate in -lz... " >&6; } |
5362 if test ${ac_cv_lib_z_deflate+y} | 4810 if ${ac_cv_lib_z_deflate+:} false; then : |
5363 then : | 4811 $as_echo_n "(cached) " >&6 |
5364 printf %s "(cached) " >&6 | 4812 else |
5365 else $as_nop | |
5366 ac_check_lib_save_LIBS=$LIBS | 4813 ac_check_lib_save_LIBS=$LIBS |
5367 LIBS="-lz $LIBS" | 4814 LIBS="-lz $LIBS" |
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5369 /* end confdefs.h. */ | 4816 /* end confdefs.h. */ |
5370 | 4817 |
5371 /* Override any GCC internal prototype to avoid an error. | 4818 /* Override any GCC internal prototype to avoid an error. |
5372 Use char because int might match the return type of a GCC | 4819 Use char because int might match the return type of a GCC |
5373 builtin and then its argument prototype would still apply. */ | 4820 builtin and then its argument prototype would still apply. */ |
4821 #ifdef __cplusplus | |
4822 extern "C" | |
4823 #endif | |
5374 char deflate (); | 4824 char deflate (); |
5375 int | 4825 int |
5376 main (void) | 4826 main () |
5377 { | 4827 { |
5378 return deflate (); | 4828 return deflate (); |
5379 ; | 4829 ; |
5380 return 0; | 4830 return 0; |
5381 } | 4831 } |
5382 _ACEOF | 4832 _ACEOF |
5383 if ac_fn_c_try_link "$LINENO" | 4833 if ac_fn_c_try_link "$LINENO"; then : |
5384 then : | |
5385 ac_cv_lib_z_deflate=yes | 4834 ac_cv_lib_z_deflate=yes |
5386 else $as_nop | 4835 else |
5387 ac_cv_lib_z_deflate=no | 4836 ac_cv_lib_z_deflate=no |
5388 fi | 4837 fi |
5389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 4838 rm -f core conftest.err conftest.$ac_objext \ |
5390 conftest$ac_exeext conftest.$ac_ext | 4839 conftest$ac_exeext conftest.$ac_ext |
5391 LIBS=$ac_check_lib_save_LIBS | 4840 LIBS=$ac_check_lib_save_LIBS |
5392 fi | 4841 fi |
5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
5394 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; } | 4843 $as_echo "$ac_cv_lib_z_deflate" >&6; } |
5395 if test "x$ac_cv_lib_z_deflate" = xyes | 4844 if test "x$ac_cv_lib_z_deflate" = xyes; then : |
5396 then : | 4845 cat >>confdefs.h <<_ACEOF |
5397 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h | 4846 #define HAVE_LIBZ 1 |
4847 _ACEOF | |
5398 | 4848 |
5399 LIBS="-lz $LIBS" | 4849 LIBS="-lz $LIBS" |
5400 | 4850 |
5401 else $as_nop | 4851 else |
5402 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5 | 4852 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5 |
5403 fi | 4853 fi |
5404 | 4854 |
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5 | 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5 |
5406 printf "%s\n" "$as_me: Enabling zlib" >&6;} | 4856 $as_echo "$as_me: Enabling zlib" >&6;} |
5407 fi | 4857 fi |
5408 | 4858 |
5409 else $as_nop | 4859 else |
5410 | 4860 |
5411 # if not disabled, check for zlib | 4861 # if not disabled, check for zlib |
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
5413 printf %s "checking for deflate in -lz... " >&6; } | 4863 $as_echo_n "checking for deflate in -lz... " >&6; } |
5414 if test ${ac_cv_lib_z_deflate+y} | 4864 if ${ac_cv_lib_z_deflate+:} false; then : |
5415 then : | 4865 $as_echo_n "(cached) " >&6 |
5416 printf %s "(cached) " >&6 | 4866 else |
5417 else $as_nop | |
5418 ac_check_lib_save_LIBS=$LIBS | 4867 ac_check_lib_save_LIBS=$LIBS |
5419 LIBS="-lz $LIBS" | 4868 LIBS="-lz $LIBS" |
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5421 /* end confdefs.h. */ | 4870 /* end confdefs.h. */ |
5422 | 4871 |
5423 /* Override any GCC internal prototype to avoid an error. | 4872 /* Override any GCC internal prototype to avoid an error. |
5424 Use char because int might match the return type of a GCC | 4873 Use char because int might match the return type of a GCC |
5425 builtin and then its argument prototype would still apply. */ | 4874 builtin and then its argument prototype would still apply. */ |
4875 #ifdef __cplusplus | |
4876 extern "C" | |
4877 #endif | |
5426 char deflate (); | 4878 char deflate (); |
5427 int | 4879 int |
5428 main (void) | 4880 main () |
5429 { | 4881 { |
5430 return deflate (); | 4882 return deflate (); |
5431 ; | 4883 ; |
5432 return 0; | 4884 return 0; |
5433 } | 4885 } |
5434 _ACEOF | 4886 _ACEOF |
5435 if ac_fn_c_try_link "$LINENO" | 4887 if ac_fn_c_try_link "$LINENO"; then : |
5436 then : | |
5437 ac_cv_lib_z_deflate=yes | 4888 ac_cv_lib_z_deflate=yes |
5438 else $as_nop | 4889 else |
5439 ac_cv_lib_z_deflate=no | 4890 ac_cv_lib_z_deflate=no |
5440 fi | 4891 fi |
5441 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 4892 rm -f core conftest.err conftest.$ac_objext \ |
5442 conftest$ac_exeext conftest.$ac_ext | 4893 conftest$ac_exeext conftest.$ac_ext |
5443 LIBS=$ac_check_lib_save_LIBS | 4894 LIBS=$ac_check_lib_save_LIBS |
5444 fi | 4895 fi |
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
5446 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; } | 4897 $as_echo "$ac_cv_lib_z_deflate" >&6; } |
5447 if test "x$ac_cv_lib_z_deflate" = xyes | 4898 if test "x$ac_cv_lib_z_deflate" = xyes; then : |
5448 then : | 4899 cat >>confdefs.h <<_ACEOF |
5449 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h | 4900 #define HAVE_LIBZ 1 |
4901 _ACEOF | |
5450 | 4902 |
5451 LIBS="-lz $LIBS" | 4903 LIBS="-lz $LIBS" |
5452 | 4904 |
5453 else $as_nop | 4905 else |
5454 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5 | 4906 as_fn_error $? "*** zlib missing - install first or check config.log ***" "$LINENO" 5 |
5455 fi | 4907 fi |
5456 | 4908 |
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5 | 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5 |
5458 printf "%s\n" "$as_me: Enabling zlib" >&6;} | 4910 $as_echo "$as_me: Enabling zlib" >&6;} |
5459 | 4911 |
5460 | 4912 |
5461 fi | 4913 fi |
5462 | 4914 |
5463 | 4915 |
5464 # Check if pam is needed | 4916 # Check if pam is needed |
5465 | 4917 |
5466 # Check whether --with-pam was given. | 4918 # Check whether --with-pam was given. |
5467 if test ${with_pam+y} | 4919 if test "${with_pam+set}" = set; then : |
5468 then : | |
5469 withval=$with_pam; | 4920 withval=$with_pam; |
5470 # option is given | 4921 # option is given |
5471 if test -d "$withval/lib"; then | 4922 if test -d "$withval/lib"; then |
5472 LDFLAGS="-L${withval}/lib ${LDFLAGS}" | 4923 LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
5473 else | 4924 else |
5483 fi | 4934 fi |
5484 | 4935 |
5485 | 4936 |
5486 | 4937 |
5487 # Check whether --enable-pam was given. | 4938 # Check whether --enable-pam was given. |
5488 if test ${enable_pam+y} | 4939 if test "${enable_pam+set}" = set; then : |
5489 then : | |
5490 enableval=$enable_pam; | 4940 enableval=$enable_pam; |
5491 if test "x$enableval" = "xyes"; then | 4941 if test "x$enableval" = "xyes"; then |
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5 | 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5 |
5493 printf %s "checking for pam_authenticate in -lpam... " >&6; } | 4943 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; } |
5494 if test ${ac_cv_lib_pam_pam_authenticate+y} | 4944 if ${ac_cv_lib_pam_pam_authenticate+:} false; then : |
5495 then : | 4945 $as_echo_n "(cached) " >&6 |
5496 printf %s "(cached) " >&6 | 4946 else |
5497 else $as_nop | |
5498 ac_check_lib_save_LIBS=$LIBS | 4947 ac_check_lib_save_LIBS=$LIBS |
5499 LIBS="-lpam $LIBS" | 4948 LIBS="-lpam $LIBS" |
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5501 /* end confdefs.h. */ | 4950 /* end confdefs.h. */ |
5502 | 4951 |
5503 /* Override any GCC internal prototype to avoid an error. | 4952 /* Override any GCC internal prototype to avoid an error. |
5504 Use char because int might match the return type of a GCC | 4953 Use char because int might match the return type of a GCC |
5505 builtin and then its argument prototype would still apply. */ | 4954 builtin and then its argument prototype would still apply. */ |
4955 #ifdef __cplusplus | |
4956 extern "C" | |
4957 #endif | |
5506 char pam_authenticate (); | 4958 char pam_authenticate (); |
5507 int | 4959 int |
5508 main (void) | 4960 main () |
5509 { | 4961 { |
5510 return pam_authenticate (); | 4962 return pam_authenticate (); |
5511 ; | 4963 ; |
5512 return 0; | 4964 return 0; |
5513 } | 4965 } |
5514 _ACEOF | 4966 _ACEOF |
5515 if ac_fn_c_try_link "$LINENO" | 4967 if ac_fn_c_try_link "$LINENO"; then : |
5516 then : | |
5517 ac_cv_lib_pam_pam_authenticate=yes | 4968 ac_cv_lib_pam_pam_authenticate=yes |
5518 else $as_nop | 4969 else |
5519 ac_cv_lib_pam_pam_authenticate=no | 4970 ac_cv_lib_pam_pam_authenticate=no |
5520 fi | 4971 fi |
5521 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 4972 rm -f core conftest.err conftest.$ac_objext \ |
5522 conftest$ac_exeext conftest.$ac_ext | 4973 conftest$ac_exeext conftest.$ac_ext |
5523 LIBS=$ac_check_lib_save_LIBS | 4974 LIBS=$ac_check_lib_save_LIBS |
5524 fi | 4975 fi |
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5 | 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5 |
5526 printf "%s\n" "$ac_cv_lib_pam_pam_authenticate" >&6; } | 4977 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; } |
5527 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes | 4978 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then : |
5528 then : | 4979 cat >>confdefs.h <<_ACEOF |
5529 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h | 4980 #define HAVE_LIBPAM 1 |
4981 _ACEOF | |
5530 | 4982 |
5531 LIBS="-lpam $LIBS" | 4983 LIBS="-lpam $LIBS" |
5532 | 4984 |
5533 else $as_nop | 4985 else |
5534 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5 | 4986 as_fn_error $? "*** PAM missing - install first or check config.log ***" "$LINENO" 5 |
5535 fi | 4987 fi |
5536 | 4988 |
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5 | 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5 |
5538 printf "%s\n" "$as_me: Enabling PAM" >&6;} | 4990 $as_echo "$as_me: Enabling PAM" >&6;} |
5539 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay" | 4991 for ac_func in pam_fail_delay |
5540 if test "x$ac_cv_func_pam_fail_delay" = xyes | 4992 do : |
5541 then : | 4993 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay" |
5542 printf "%s\n" "#define HAVE_PAM_FAIL_DELAY 1" >>confdefs.h | 4994 if test "x$ac_cv_func_pam_fail_delay" = xyes; then : |
5543 | 4995 cat >>confdefs.h <<_ACEOF |
5544 fi | 4996 #define HAVE_PAM_FAIL_DELAY 1 |
4997 _ACEOF | |
4998 | |
4999 fi | |
5000 done | |
5545 | 5001 |
5546 else | 5002 else |
5547 | 5003 |
5548 printf "%s\n" "#define DISABLE_PAM 1" >>confdefs.h | 5004 $as_echo "#define DISABLE_PAM 1" >>confdefs.h |
5549 | 5005 |
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5 | 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5 |
5551 printf "%s\n" "$as_me: Disabling PAM" >&6;} | 5007 $as_echo "$as_me: Disabling PAM" >&6;} |
5552 fi | 5008 fi |
5553 | 5009 |
5554 else $as_nop | 5010 else |
5555 | 5011 |
5556 # disable it by default | 5012 # disable it by default |
5557 | 5013 |
5558 printf "%s\n" "#define DISABLE_PAM 1" >>confdefs.h | 5014 $as_echo "#define DISABLE_PAM 1" >>confdefs.h |
5559 | 5015 |
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5 | 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5 |
5561 printf "%s\n" "$as_me: Disabling PAM" >&6;} | 5017 $as_echo "$as_me: Disabling PAM" >&6;} |
5562 | 5018 |
5563 | 5019 |
5564 fi | 5020 fi |
5565 | 5021 |
5566 | 5022 |
5567 # Check whether --enable-openpty was given. | 5023 # Check whether --enable-openpty was given. |
5568 if test ${enable_openpty+y} | 5024 if test "${enable_openpty+set}" = set; then : |
5569 then : | |
5570 enableval=$enable_openpty; | 5025 enableval=$enable_openpty; |
5571 if test "x$enableval" = "xno"; then | 5026 if test "x$enableval" = "xno"; then |
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5 | 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5 |
5573 printf "%s\n" "$as_me: Not using openpty" >&6;} | 5028 $as_echo "$as_me: Not using openpty" >&6;} |
5574 else | 5029 else |
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5 | 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5 |
5576 printf "%s\n" "$as_me: Using openpty if available" >&6;} | 5031 $as_echo "$as_me: Using openpty if available" >&6;} |
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
5578 printf %s "checking for library containing openpty... " >&6; } | 5033 $as_echo_n "checking for library containing openpty... " >&6; } |
5579 if test ${ac_cv_search_openpty+y} | 5034 if ${ac_cv_search_openpty+:} false; then : |
5580 then : | 5035 $as_echo_n "(cached) " >&6 |
5581 printf %s "(cached) " >&6 | 5036 else |
5582 else $as_nop | |
5583 ac_func_search_save_LIBS=$LIBS | 5037 ac_func_search_save_LIBS=$LIBS |
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5585 /* end confdefs.h. */ | 5039 /* end confdefs.h. */ |
5586 | 5040 |
5587 /* Override any GCC internal prototype to avoid an error. | 5041 /* Override any GCC internal prototype to avoid an error. |
5588 Use char because int might match the return type of a GCC | 5042 Use char because int might match the return type of a GCC |
5589 builtin and then its argument prototype would still apply. */ | 5043 builtin and then its argument prototype would still apply. */ |
5044 #ifdef __cplusplus | |
5045 extern "C" | |
5046 #endif | |
5590 char openpty (); | 5047 char openpty (); |
5591 int | 5048 int |
5592 main (void) | 5049 main () |
5593 { | 5050 { |
5594 return openpty (); | 5051 return openpty (); |
5595 ; | 5052 ; |
5596 return 0; | 5053 return 0; |
5597 } | 5054 } |
5598 _ACEOF | 5055 _ACEOF |
5599 for ac_lib in '' util | 5056 for ac_lib in '' util; do |
5600 do | |
5601 if test -z "$ac_lib"; then | 5057 if test -z "$ac_lib"; then |
5602 ac_res="none required" | 5058 ac_res="none required" |
5603 else | 5059 else |
5604 ac_res=-l$ac_lib | 5060 ac_res=-l$ac_lib |
5605 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 5061 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5606 fi | 5062 fi |
5607 if ac_fn_c_try_link "$LINENO" | 5063 if ac_fn_c_try_link "$LINENO"; then : |
5608 then : | |
5609 ac_cv_search_openpty=$ac_res | 5064 ac_cv_search_openpty=$ac_res |
5610 fi | 5065 fi |
5611 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 5066 rm -f core conftest.err conftest.$ac_objext \ |
5612 conftest$ac_exeext | 5067 conftest$ac_exeext |
5613 if test ${ac_cv_search_openpty+y} | 5068 if ${ac_cv_search_openpty+:} false; then : |
5614 then : | |
5615 break | 5069 break |
5616 fi | 5070 fi |
5617 done | 5071 done |
5618 if test ${ac_cv_search_openpty+y} | 5072 if ${ac_cv_search_openpty+:} false; then : |
5619 then : | 5073 |
5620 | 5074 else |
5621 else $as_nop | |
5622 ac_cv_search_openpty=no | 5075 ac_cv_search_openpty=no |
5623 fi | 5076 fi |
5624 rm conftest.$ac_ext | 5077 rm conftest.$ac_ext |
5625 LIBS=$ac_func_search_save_LIBS | 5078 LIBS=$ac_func_search_save_LIBS |
5626 fi | 5079 fi |
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
5628 printf "%s\n" "$ac_cv_search_openpty" >&6; } | 5081 $as_echo "$ac_cv_search_openpty" >&6; } |
5629 ac_res=$ac_cv_search_openpty | 5082 ac_res=$ac_cv_search_openpty |
5630 if test "$ac_res" != no | 5083 if test "$ac_res" != no; then : |
5631 then : | |
5632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 5084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5633 dropbear_cv_func_have_openpty=yes | 5085 dropbear_cv_func_have_openpty=yes |
5634 fi | 5086 fi |
5635 | 5087 |
5636 fi | 5088 fi |
5637 | 5089 |
5638 else $as_nop | 5090 else |
5639 | 5091 |
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5 | 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5 |
5641 printf "%s\n" "$as_me: Using openpty if available" >&6;} | 5093 $as_echo "$as_me: Using openpty if available" >&6;} |
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
5643 printf %s "checking for library containing openpty... " >&6; } | 5095 $as_echo_n "checking for library containing openpty... " >&6; } |
5644 if test ${ac_cv_search_openpty+y} | 5096 if ${ac_cv_search_openpty+:} false; then : |
5645 then : | 5097 $as_echo_n "(cached) " >&6 |
5646 printf %s "(cached) " >&6 | 5098 else |
5647 else $as_nop | |
5648 ac_func_search_save_LIBS=$LIBS | 5099 ac_func_search_save_LIBS=$LIBS |
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5650 /* end confdefs.h. */ | 5101 /* end confdefs.h. */ |
5651 | 5102 |
5652 /* Override any GCC internal prototype to avoid an error. | 5103 /* Override any GCC internal prototype to avoid an error. |
5653 Use char because int might match the return type of a GCC | 5104 Use char because int might match the return type of a GCC |
5654 builtin and then its argument prototype would still apply. */ | 5105 builtin and then its argument prototype would still apply. */ |
5106 #ifdef __cplusplus | |
5107 extern "C" | |
5108 #endif | |
5655 char openpty (); | 5109 char openpty (); |
5656 int | 5110 int |
5657 main (void) | 5111 main () |
5658 { | 5112 { |
5659 return openpty (); | 5113 return openpty (); |
5660 ; | 5114 ; |
5661 return 0; | 5115 return 0; |
5662 } | 5116 } |
5663 _ACEOF | 5117 _ACEOF |
5664 for ac_lib in '' util | 5118 for ac_lib in '' util; do |
5665 do | |
5666 if test -z "$ac_lib"; then | 5119 if test -z "$ac_lib"; then |
5667 ac_res="none required" | 5120 ac_res="none required" |
5668 else | 5121 else |
5669 ac_res=-l$ac_lib | 5122 ac_res=-l$ac_lib |
5670 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 5123 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5671 fi | 5124 fi |
5672 if ac_fn_c_try_link "$LINENO" | 5125 if ac_fn_c_try_link "$LINENO"; then : |
5673 then : | |
5674 ac_cv_search_openpty=$ac_res | 5126 ac_cv_search_openpty=$ac_res |
5675 fi | 5127 fi |
5676 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 5128 rm -f core conftest.err conftest.$ac_objext \ |
5677 conftest$ac_exeext | 5129 conftest$ac_exeext |
5678 if test ${ac_cv_search_openpty+y} | 5130 if ${ac_cv_search_openpty+:} false; then : |
5679 then : | |
5680 break | 5131 break |
5681 fi | 5132 fi |
5682 done | 5133 done |
5683 if test ${ac_cv_search_openpty+y} | 5134 if ${ac_cv_search_openpty+:} false; then : |
5684 then : | 5135 |
5685 | 5136 else |
5686 else $as_nop | |
5687 ac_cv_search_openpty=no | 5137 ac_cv_search_openpty=no |
5688 fi | 5138 fi |
5689 rm conftest.$ac_ext | 5139 rm conftest.$ac_ext |
5690 LIBS=$ac_func_search_save_LIBS | 5140 LIBS=$ac_func_search_save_LIBS |
5691 fi | 5141 fi |
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
5693 printf "%s\n" "$ac_cv_search_openpty" >&6; } | 5143 $as_echo "$ac_cv_search_openpty" >&6; } |
5694 ac_res=$ac_cv_search_openpty | 5144 ac_res=$ac_cv_search_openpty |
5695 if test "$ac_res" != no | 5145 if test "$ac_res" != no; then : |
5696 then : | |
5697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 5146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5698 dropbear_cv_func_have_openpty=yes | 5147 dropbear_cv_func_have_openpty=yes |
5699 fi | 5148 fi |
5700 | 5149 |
5701 | 5150 |
5703 fi | 5152 fi |
5704 | 5153 |
5705 | 5154 |
5706 if test "x$dropbear_cv_func_have_openpty" = "xyes"; then | 5155 if test "x$dropbear_cv_func_have_openpty" = "xyes"; then |
5707 | 5156 |
5708 printf "%s\n" "#define HAVE_OPENPTY /**/" >>confdefs.h | 5157 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h |
5709 | 5158 |
5710 no_ptc_check=yes | 5159 no_ptc_check=yes |
5711 no_ptmx_check=yes | 5160 no_ptmx_check=yes |
5712 fi | 5161 fi |
5713 | 5162 |
5714 # Check whether --enable-syslog was given. | 5163 # Check whether --enable-syslog was given. |
5715 if test ${enable_syslog+y} | 5164 if test "${enable_syslog+set}" = set; then : |
5716 then : | |
5717 enableval=$enable_syslog; | 5165 enableval=$enable_syslog; |
5718 if test "x$enableval" = "xno"; then | 5166 if test "x$enableval" = "xno"; then |
5719 | 5167 |
5720 printf "%s\n" "#define DISABLE_SYSLOG 1" >>confdefs.h | 5168 $as_echo "#define DISABLE_SYSLOG 1" >>confdefs.h |
5721 | 5169 |
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5 | 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5 |
5723 printf "%s\n" "$as_me: Disabling syslog" >&6;} | 5171 $as_echo "$as_me: Disabling syslog" >&6;} |
5724 else | 5172 else |
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5 | 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5 |
5726 printf "%s\n" "$as_me: Enabling syslog" >&6;} | 5174 $as_echo "$as_me: Enabling syslog" >&6;} |
5727 fi | 5175 fi |
5728 | 5176 |
5729 else $as_nop | 5177 else |
5730 | 5178 |
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5 | 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5 |
5732 printf "%s\n" "$as_me: Enabling syslog" >&6;} | 5180 $as_echo "$as_me: Enabling syslog" >&6;} |
5733 | 5181 |
5734 | 5182 |
5735 fi | 5183 fi |
5736 | 5184 |
5737 | 5185 |
5738 # Check whether --enable-shadow was given. | 5186 # Check whether --enable-shadow was given. |
5739 if test ${enable_shadow+y} | 5187 if test "${enable_shadow+set}" = set; then : |
5740 then : | |
5741 enableval=$enable_shadow; | 5188 enableval=$enable_shadow; |
5742 if test "x$enableval" = "xno"; then | 5189 if test "x$enableval" = "xno"; then |
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5 | 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5 |
5744 printf "%s\n" "$as_me: Not using shadow passwords" >&6;} | 5191 $as_echo "$as_me: Not using shadow passwords" >&6;} |
5745 else | 5192 else |
5746 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | 5193 for ac_header in shadow.h |
5747 if test "x$ac_cv_header_shadow_h" = xyes | 5194 do : |
5748 then : | 5195 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" |
5749 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h | 5196 if test "x$ac_cv_header_shadow_h" = xyes; then : |
5750 | 5197 cat >>confdefs.h <<_ACEOF |
5751 fi | 5198 #define HAVE_SHADOW_H 1 |
5752 | 5199 _ACEOF |
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5 | 5200 |
5754 printf "%s\n" "$as_me: Using shadow passwords if available" >&6;} | 5201 fi |
5202 | |
5203 done | |
5204 | |
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5 | |
5206 $as_echo "$as_me: Using shadow passwords if available" >&6;} | |
5755 fi | 5207 fi |
5756 | 5208 |
5757 else $as_nop | 5209 else |
5758 | 5210 |
5759 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | 5211 for ac_header in shadow.h |
5760 if test "x$ac_cv_header_shadow_h" = xyes | 5212 do : |
5761 then : | 5213 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" |
5762 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h | 5214 if test "x$ac_cv_header_shadow_h" = xyes; then : |
5763 | 5215 cat >>confdefs.h <<_ACEOF |
5764 fi | 5216 #define HAVE_SHADOW_H 1 |
5765 | 5217 _ACEOF |
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5 | 5218 |
5767 printf "%s\n" "$as_me: Using shadow passwords if available" >&6;} | 5219 fi |
5220 | |
5221 done | |
5222 | |
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5 | |
5224 $as_echo "$as_me: Using shadow passwords if available" >&6;} | |
5768 | 5225 |
5769 | 5226 |
5770 fi | 5227 fi |
5771 | 5228 |
5772 | 5229 |
5773 # Check whether --enable-plugin was given. | 5230 # Check whether --enable-plugin was given. |
5774 if test ${enable_plugin+y} | 5231 if test "${enable_plugin+set}" = set; then : |
5775 then : | |
5776 enableval=$enable_plugin; | 5232 enableval=$enable_plugin; |
5777 | 5233 |
5778 printf "%s\n" "#define DROPBEAR_PLUGIN 1" >>confdefs.h | 5234 $as_echo "#define DROPBEAR_PLUGIN 1" >>confdefs.h |
5779 | 5235 |
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling support for External Public Key Authentication" >&5 | 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling support for External Public Key Authentication" >&5 |
5781 printf "%s\n" "$as_me: Enabling support for External Public Key Authentication" >&6;} | 5237 $as_echo "$as_me: Enabling support for External Public Key Authentication" >&6;} |
5782 DROPBEAR_PLUGIN=1 | 5238 DROPBEAR_PLUGIN=1 |
5783 | 5239 |
5784 else $as_nop | 5240 else |
5785 | 5241 |
5786 | 5242 |
5787 printf "%s\n" "#define DROPBEAR_PLUGIN 0" >>confdefs.h | 5243 $as_echo "#define DROPBEAR_PLUGIN 0" >>confdefs.h |
5788 | 5244 |
5789 DROPBEAR_PLUGIN=0 | 5245 DROPBEAR_PLUGIN=0 |
5790 | 5246 |
5791 | 5247 |
5792 | 5248 |
5793 fi | 5249 fi |
5794 | 5250 |
5795 | 5251 |
5796 | 5252 |
5797 | |
5798 | |
5799 | |
5800 | |
5801 | |
5802 | |
5803 # Check whether --enable-fuzz was given. | 5253 # Check whether --enable-fuzz was given. |
5804 if test ${enable_fuzz+y} | 5254 if test "${enable_fuzz+set}" = set; then : |
5805 then : | |
5806 enableval=$enable_fuzz; | 5255 enableval=$enable_fuzz; |
5807 if test "x$enableval" = "xyes"; then | 5256 if test "x$enableval" = "xyes"; then |
5808 | 5257 |
5809 printf "%s\n" "#define DROPBEAR_FUZZ 1" >>confdefs.h | 5258 $as_echo "#define DROPBEAR_FUZZ 1" >>confdefs.h |
5810 | 5259 |
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling fuzzing" >&5 | 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling fuzzing" >&5 |
5812 printf "%s\n" "$as_me: Enabling fuzzing" >&6;} | 5261 $as_echo "$as_me: Enabling fuzzing" >&6;} |
5813 DROPBEAR_FUZZ=1 | 5262 DROPBEAR_FUZZ=1 |
5814 # libfuzzer needs linking with c++ libraries | 5263 # libfuzzer needs linking with c++ libraries |
5815 ac_ext=cpp | 5264 ac_ext=cpp |
5816 ac_cpp='$CXXCPP $CPPFLAGS' | 5265 ac_cpp='$CXXCPP $CPPFLAGS' |
5817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5820 if test -z "$CXX"; then | 5269 if test -z "$CXX"; then |
5821 if test -n "$CCC"; then | 5270 if test -n "$CCC"; then |
5822 CXX=$CCC | 5271 CXX=$CCC |
5823 else | 5272 else |
5824 if test -n "$ac_tool_prefix"; then | 5273 if test -n "$ac_tool_prefix"; then |
5825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | 5274 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5826 do | 5275 do |
5827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 5276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 5277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5830 printf %s "checking for $ac_word... " >&6; } | 5279 $as_echo_n "checking for $ac_word... " >&6; } |
5831 if test ${ac_cv_prog_CXX+y} | 5280 if ${ac_cv_prog_CXX+:} false; then : |
5832 then : | 5281 $as_echo_n "(cached) " >&6 |
5833 printf %s "(cached) " >&6 | 5282 else |
5834 else $as_nop | |
5835 if test -n "$CXX"; then | 5283 if test -n "$CXX"; then |
5836 ac_cv_prog_CXX="$CXX" # Let the user override the test. | 5284 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5837 else | 5285 else |
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5839 for as_dir in $PATH | 5287 for as_dir in $PATH |
5840 do | 5288 do |
5841 IFS=$as_save_IFS | 5289 IFS=$as_save_IFS |
5842 case $as_dir in #((( | 5290 test -z "$as_dir" && as_dir=. |
5843 '') as_dir=./ ;; | |
5844 */) ;; | |
5845 *) as_dir=$as_dir/ ;; | |
5846 esac | |
5847 for ac_exec_ext in '' $ac_executable_extensions; do | 5291 for ac_exec_ext in '' $ac_executable_extensions; do |
5848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 5293 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5851 break 2 | 5295 break 2 |
5852 fi | 5296 fi |
5853 done | 5297 done |
5854 done | 5298 done |
5855 IFS=$as_save_IFS | 5299 IFS=$as_save_IFS |
5856 | 5300 |
5857 fi | 5301 fi |
5858 fi | 5302 fi |
5859 CXX=$ac_cv_prog_CXX | 5303 CXX=$ac_cv_prog_CXX |
5860 if test -n "$CXX"; then | 5304 if test -n "$CXX"; then |
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5862 printf "%s\n" "$CXX" >&6; } | 5306 $as_echo "$CXX" >&6; } |
5863 else | 5307 else |
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5865 printf "%s\n" "no" >&6; } | 5309 $as_echo "no" >&6; } |
5866 fi | 5310 fi |
5867 | 5311 |
5868 | 5312 |
5869 test -n "$CXX" && break | 5313 test -n "$CXX" && break |
5870 done | 5314 done |
5871 fi | 5315 fi |
5872 if test -z "$CXX"; then | 5316 if test -z "$CXX"; then |
5873 ac_ct_CXX=$CXX | 5317 ac_ct_CXX=$CXX |
5874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | 5318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5875 do | 5319 do |
5876 # Extract the first word of "$ac_prog", so it can be a program name with args. | 5320 # Extract the first word of "$ac_prog", so it can be a program name with args. |
5877 set dummy $ac_prog; ac_word=$2 | 5321 set dummy $ac_prog; ac_word=$2 |
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5879 printf %s "checking for $ac_word... " >&6; } | 5323 $as_echo_n "checking for $ac_word... " >&6; } |
5880 if test ${ac_cv_prog_ac_ct_CXX+y} | 5324 if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5881 then : | 5325 $as_echo_n "(cached) " >&6 |
5882 printf %s "(cached) " >&6 | 5326 else |
5883 else $as_nop | |
5884 if test -n "$ac_ct_CXX"; then | 5327 if test -n "$ac_ct_CXX"; then |
5885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 5328 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5886 else | 5329 else |
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5888 for as_dir in $PATH | 5331 for as_dir in $PATH |
5889 do | 5332 do |
5890 IFS=$as_save_IFS | 5333 IFS=$as_save_IFS |
5891 case $as_dir in #((( | 5334 test -z "$as_dir" && as_dir=. |
5892 '') as_dir=./ ;; | |
5893 */) ;; | |
5894 *) as_dir=$as_dir/ ;; | |
5895 esac | |
5896 for ac_exec_ext in '' $ac_executable_extensions; do | 5335 for ac_exec_ext in '' $ac_executable_extensions; do |
5897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | 5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5898 ac_cv_prog_ac_ct_CXX="$ac_prog" | 5337 ac_cv_prog_ac_ct_CXX="$ac_prog" |
5899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5900 break 2 | 5339 break 2 |
5901 fi | 5340 fi |
5902 done | 5341 done |
5903 done | 5342 done |
5904 IFS=$as_save_IFS | 5343 IFS=$as_save_IFS |
5905 | 5344 |
5906 fi | 5345 fi |
5907 fi | 5346 fi |
5908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 5347 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5909 if test -n "$ac_ct_CXX"; then | 5348 if test -n "$ac_ct_CXX"; then |
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5911 printf "%s\n" "$ac_ct_CXX" >&6; } | 5350 $as_echo "$ac_ct_CXX" >&6; } |
5912 else | 5351 else |
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5914 printf "%s\n" "no" >&6; } | 5353 $as_echo "no" >&6; } |
5915 fi | 5354 fi |
5916 | 5355 |
5917 | 5356 |
5918 test -n "$ac_ct_CXX" && break | 5357 test -n "$ac_ct_CXX" && break |
5919 done | 5358 done |
5921 if test "x$ac_ct_CXX" = x; then | 5360 if test "x$ac_ct_CXX" = x; then |
5922 CXX="g++" | 5361 CXX="g++" |
5923 else | 5362 else |
5924 case $cross_compiling:$ac_tool_warned in | 5363 case $cross_compiling:$ac_tool_warned in |
5925 yes:) | 5364 yes:) |
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 5366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5928 ac_tool_warned=yes ;; | 5367 ac_tool_warned=yes ;; |
5929 esac | 5368 esac |
5930 CXX=$ac_ct_CXX | 5369 CXX=$ac_ct_CXX |
5931 fi | 5370 fi |
5932 fi | 5371 fi |
5933 | 5372 |
5934 fi | 5373 fi |
5935 fi | 5374 fi |
5936 # Provide some information about the compiler. | 5375 # Provide some information about the compiler. |
5937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 5376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5938 set X $ac_compile | 5377 set X $ac_compile |
5939 ac_compiler=$2 | 5378 ac_compiler=$2 |
5940 for ac_option in --version -v -V -qversion; do | 5379 for ac_option in --version -v -V -qversion; do |
5941 { { ac_try="$ac_compiler $ac_option >&5" | 5380 { { ac_try="$ac_compiler $ac_option >&5" |
5942 case "(($ac_try" in | 5381 case "(($ac_try" in |
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5944 *) ac_try_echo=$ac_try;; | 5383 *) ac_try_echo=$ac_try;; |
5945 esac | 5384 esac |
5946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 5385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5947 printf "%s\n" "$ac_try_echo"; } >&5 | 5386 $as_echo "$ac_try_echo"; } >&5 |
5948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 5387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5949 ac_status=$? | 5388 ac_status=$? |
5950 if test -s conftest.err; then | 5389 if test -s conftest.err; then |
5951 sed '10a\ | 5390 sed '10a\ |
5952 ... rest of stderr output deleted ... | 5391 ... rest of stderr output deleted ... |
5953 10q' conftest.err >conftest.er1 | 5392 10q' conftest.err >conftest.er1 |
5954 cat conftest.er1 >&5 | 5393 cat conftest.er1 >&5 |
5955 fi | 5394 fi |
5956 rm -f conftest.er1 conftest.err | 5395 rm -f conftest.er1 conftest.err |
5957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 5396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5958 test $ac_status = 0; } | 5397 test $ac_status = 0; } |
5959 done | 5398 done |
5960 | 5399 |
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5962 printf %s "checking whether the compiler supports GNU C++... " >&6; } | 5401 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
5963 if test ${ac_cv_cxx_compiler_gnu+y} | 5402 if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5964 then : | 5403 $as_echo_n "(cached) " >&6 |
5965 printf %s "(cached) " >&6 | 5404 else |
5966 else $as_nop | |
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5968 /* end confdefs.h. */ | 5406 /* end confdefs.h. */ |
5969 | 5407 |
5970 int | 5408 int |
5971 main (void) | 5409 main () |
5972 { | 5410 { |
5973 #ifndef __GNUC__ | 5411 #ifndef __GNUC__ |
5974 choke me | 5412 choke me |
5975 #endif | 5413 #endif |
5976 | 5414 |
5977 ; | 5415 ; |
5978 return 0; | 5416 return 0; |
5979 } | 5417 } |
5980 _ACEOF | 5418 _ACEOF |
5981 if ac_fn_cxx_try_compile "$LINENO" | 5419 if ac_fn_cxx_try_compile "$LINENO"; then : |
5982 then : | |
5983 ac_compiler_gnu=yes | 5420 ac_compiler_gnu=yes |
5984 else $as_nop | 5421 else |
5985 ac_compiler_gnu=no | 5422 ac_compiler_gnu=no |
5986 fi | 5423 fi |
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 5425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5989 | 5426 |
5990 fi | 5427 fi |
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5992 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | 5429 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
5993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5994 | |
5995 if test $ac_compiler_gnu = yes; then | 5430 if test $ac_compiler_gnu = yes; then |
5996 GXX=yes | 5431 GXX=yes |
5997 else | 5432 else |
5998 GXX= | 5433 GXX= |
5999 fi | 5434 fi |
6000 ac_test_CXXFLAGS=${CXXFLAGS+y} | 5435 ac_test_CXXFLAGS=${CXXFLAGS+set} |
6001 ac_save_CXXFLAGS=$CXXFLAGS | 5436 ac_save_CXXFLAGS=$CXXFLAGS |
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
6003 printf %s "checking whether $CXX accepts -g... " >&6; } | 5438 $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
6004 if test ${ac_cv_prog_cxx_g+y} | 5439 if ${ac_cv_prog_cxx_g+:} false; then : |
6005 then : | 5440 $as_echo_n "(cached) " >&6 |
6006 printf %s "(cached) " >&6 | 5441 else |
6007 else $as_nop | |
6008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 5442 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
6009 ac_cxx_werror_flag=yes | 5443 ac_cxx_werror_flag=yes |
6010 ac_cv_prog_cxx_g=no | 5444 ac_cv_prog_cxx_g=no |
6011 CXXFLAGS="-g" | 5445 CXXFLAGS="-g" |
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6013 /* end confdefs.h. */ | 5447 /* end confdefs.h. */ |
6014 | 5448 |
6015 int | 5449 int |
6016 main (void) | 5450 main () |
6017 { | 5451 { |
6018 | 5452 |
6019 ; | 5453 ; |
6020 return 0; | 5454 return 0; |
6021 } | 5455 } |
6022 _ACEOF | 5456 _ACEOF |
6023 if ac_fn_cxx_try_compile "$LINENO" | 5457 if ac_fn_cxx_try_compile "$LINENO"; then : |
6024 then : | |
6025 ac_cv_prog_cxx_g=yes | 5458 ac_cv_prog_cxx_g=yes |
6026 else $as_nop | 5459 else |
6027 CXXFLAGS="" | 5460 CXXFLAGS="" |
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6029 /* end confdefs.h. */ | 5462 /* end confdefs.h. */ |
6030 | 5463 |
6031 int | 5464 int |
6032 main (void) | 5465 main () |
6033 { | 5466 { |
6034 | 5467 |
6035 ; | 5468 ; |
6036 return 0; | 5469 return 0; |
6037 } | 5470 } |
6038 _ACEOF | 5471 _ACEOF |
6039 if ac_fn_cxx_try_compile "$LINENO" | 5472 if ac_fn_cxx_try_compile "$LINENO"; then : |
6040 then : | 5473 |
6041 | 5474 else |
6042 else $as_nop | |
6043 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 5475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
6044 CXXFLAGS="-g" | 5476 CXXFLAGS="-g" |
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6046 /* end confdefs.h. */ | 5478 /* end confdefs.h. */ |
6047 | 5479 |
6048 int | 5480 int |
6049 main (void) | 5481 main () |
6050 { | 5482 { |
6051 | 5483 |
6052 ; | 5484 ; |
6053 return 0; | 5485 return 0; |
6054 } | 5486 } |
6055 _ACEOF | 5487 _ACEOF |
6056 if ac_fn_cxx_try_compile "$LINENO" | 5488 if ac_fn_cxx_try_compile "$LINENO"; then : |
6057 then : | |
6058 ac_cv_prog_cxx_g=yes | 5489 ac_cv_prog_cxx_g=yes |
6059 fi | 5490 fi |
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6061 fi | 5492 fi |
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6063 fi | 5494 fi |
6064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 5496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
6066 fi | 5497 fi |
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
6068 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | 5499 $as_echo "$ac_cv_prog_cxx_g" >&6; } |
6069 if test $ac_test_CXXFLAGS; then | 5500 if test "$ac_test_CXXFLAGS" = set; then |
6070 CXXFLAGS=$ac_save_CXXFLAGS | 5501 CXXFLAGS=$ac_save_CXXFLAGS |
6071 elif test $ac_cv_prog_cxx_g = yes; then | 5502 elif test $ac_cv_prog_cxx_g = yes; then |
6072 if test "$GXX" = yes; then | 5503 if test "$GXX" = yes; then |
6073 CXXFLAGS="-g -O2" | 5504 CXXFLAGS="-g -O2" |
6074 else | 5505 else |
6079 CXXFLAGS="-O2" | 5510 CXXFLAGS="-O2" |
6080 else | 5511 else |
6081 CXXFLAGS= | 5512 CXXFLAGS= |
6082 fi | 5513 fi |
6083 fi | 5514 fi |
6084 ac_prog_cxx_stdcxx=no | |
6085 if test x$ac_prog_cxx_stdcxx = xno | |
6086 then : | |
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
6088 printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
6089 if test ${ac_cv_prog_cxx_11+y} | |
6090 then : | |
6091 printf %s "(cached) " >&6 | |
6092 else $as_nop | |
6093 ac_cv_prog_cxx_11=no | |
6094 ac_save_CXX=$CXX | |
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6096 /* end confdefs.h. */ | |
6097 $ac_cxx_conftest_cxx11_program | |
6098 _ACEOF | |
6099 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
6100 do | |
6101 CXX="$ac_save_CXX $ac_arg" | |
6102 if ac_fn_cxx_try_compile "$LINENO" | |
6103 then : | |
6104 ac_cv_prog_cxx_cxx11=$ac_arg | |
6105 fi | |
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
6107 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
6108 done | |
6109 rm -f conftest.$ac_ext | |
6110 CXX=$ac_save_CXX | |
6111 fi | |
6112 | |
6113 if test "x$ac_cv_prog_cxx_cxx11" = xno | |
6114 then : | |
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
6116 printf "%s\n" "unsupported" >&6; } | |
6117 else $as_nop | |
6118 if test "x$ac_cv_prog_cxx_cxx11" = x | |
6119 then : | |
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
6121 printf "%s\n" "none needed" >&6; } | |
6122 else $as_nop | |
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
6124 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
6125 CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
6126 fi | |
6127 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
6128 ac_prog_cxx_stdcxx=cxx11 | |
6129 fi | |
6130 fi | |
6131 if test x$ac_prog_cxx_stdcxx = xno | |
6132 then : | |
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
6134 printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
6135 if test ${ac_cv_prog_cxx_98+y} | |
6136 then : | |
6137 printf %s "(cached) " >&6 | |
6138 else $as_nop | |
6139 ac_cv_prog_cxx_98=no | |
6140 ac_save_CXX=$CXX | |
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6142 /* end confdefs.h. */ | |
6143 $ac_cxx_conftest_cxx98_program | |
6144 _ACEOF | |
6145 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
6146 do | |
6147 CXX="$ac_save_CXX $ac_arg" | |
6148 if ac_fn_cxx_try_compile "$LINENO" | |
6149 then : | |
6150 ac_cv_prog_cxx_cxx98=$ac_arg | |
6151 fi | |
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam | |
6153 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
6154 done | |
6155 rm -f conftest.$ac_ext | |
6156 CXX=$ac_save_CXX | |
6157 fi | |
6158 | |
6159 if test "x$ac_cv_prog_cxx_cxx98" = xno | |
6160 then : | |
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
6162 printf "%s\n" "unsupported" >&6; } | |
6163 else $as_nop | |
6164 if test "x$ac_cv_prog_cxx_cxx98" = x | |
6165 then : | |
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
6167 printf "%s\n" "none needed" >&6; } | |
6168 else $as_nop | |
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
6170 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
6171 CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
6172 fi | |
6173 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
6174 ac_prog_cxx_stdcxx=cxx98 | |
6175 fi | |
6176 fi | |
6177 | |
6178 ac_ext=c | 5515 ac_ext=c |
6179 ac_cpp='$CPP $CPPFLAGS' | 5516 ac_cpp='$CPP $CPPFLAGS' |
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 5518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 5519 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6183 | 5520 |
6184 mkdir -pv fuzz | 5521 mkdir -pv fuzz |
6185 else | 5522 else |
6186 | 5523 |
6187 printf "%s\n" "#define DROPBEAR_FUZZ 0" >>confdefs.h | 5524 $as_echo "#define DROPBEAR_FUZZ 0" >>confdefs.h |
6188 | 5525 |
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5 | 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5 |
6190 printf "%s\n" "$as_me: Disabling fuzzing" >&6;} | 5527 $as_echo "$as_me: Disabling fuzzing" >&6;} |
6191 DROPBEAR_FUZZ=0 | 5528 DROPBEAR_FUZZ=0 |
6192 fi | 5529 fi |
6193 | 5530 |
6194 else $as_nop | 5531 else |
6195 | 5532 |
6196 | 5533 |
6197 printf "%s\n" "#define DROPBEAR_FUZZ 0" >>confdefs.h | 5534 $as_echo "#define DROPBEAR_FUZZ 0" >>confdefs.h |
6198 | 5535 |
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5 | 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling fuzzing" >&5 |
6200 printf "%s\n" "$as_me: Disabling fuzzing" >&6;} | 5537 $as_echo "$as_me: Disabling fuzzing" >&6;} |
6201 DROPBEAR_FUZZ=0 | 5538 DROPBEAR_FUZZ=0 |
6202 | 5539 |
6203 | 5540 |
6204 | 5541 |
6205 fi | 5542 fi |
6206 | 5543 |
6207 | 5544 |
6208 | 5545 |
6209 | 5546 |
6210 # Checks for header files. | 5547 # Checks for header files. |
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
6212 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | 5549 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
6213 if test ${ac_cv_header_sys_wait_h+y} | 5550 if ${ac_cv_header_sys_wait_h+:} false; then : |
6214 then : | 5551 $as_echo_n "(cached) " >&6 |
6215 printf %s "(cached) " >&6 | 5552 else |
6216 else $as_nop | |
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6218 /* end confdefs.h. */ | 5554 /* end confdefs.h. */ |
6219 #include <sys/types.h> | 5555 #include <sys/types.h> |
6220 #include <sys/wait.h> | 5556 #include <sys/wait.h> |
6221 #ifndef WEXITSTATUS | 5557 #ifndef WEXITSTATUS |
6224 #ifndef WIFEXITED | 5560 #ifndef WIFEXITED |
6225 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 5561 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
6226 #endif | 5562 #endif |
6227 | 5563 |
6228 int | 5564 int |
6229 main (void) | 5565 main () |
6230 { | 5566 { |
6231 int s; | 5567 int s; |
6232 wait (&s); | 5568 wait (&s); |
6233 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 5569 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
6234 ; | 5570 ; |
6235 return 0; | 5571 return 0; |
6236 } | 5572 } |
6237 _ACEOF | 5573 _ACEOF |
6238 if ac_fn_c_try_compile "$LINENO" | 5574 if ac_fn_c_try_compile "$LINENO"; then : |
6239 then : | |
6240 ac_cv_header_sys_wait_h=yes | 5575 ac_cv_header_sys_wait_h=yes |
6241 else $as_nop | 5576 else |
6242 ac_cv_header_sys_wait_h=no | 5577 ac_cv_header_sys_wait_h=no |
6243 fi | 5578 fi |
6244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6245 fi | 5580 fi |
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
6247 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } | 5582 $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
6248 if test $ac_cv_header_sys_wait_h = yes; then | 5583 if test $ac_cv_header_sys_wait_h = yes; then |
6249 | 5584 |
6250 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | 5585 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
6251 | 5586 |
6252 fi | 5587 fi |
6253 | 5588 |
6254 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | 5589 for ac_header in netinet/in.h netinet/tcp.h \ |
6255 if test "x$ac_cv_header_netinet_in_h" = xyes | 5590 crypt.h \ |
6256 then : | 5591 pty.h libutil.h libgen.h inttypes.h stropts.h utmp.h \ |
6257 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h | 5592 utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h \ |
6258 | 5593 pam/pam_appl.h netinet/in_systm.h sys/uio.h linux/pkt_sched.h \ |
6259 fi | 5594 sys/random.h |
6260 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" | 5595 do : |
6261 if test "x$ac_cv_header_netinet_tcp_h" = xyes | 5596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6262 then : | 5597 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6263 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h | 5598 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6264 | 5599 cat >>confdefs.h <<_ACEOF |
6265 fi | 5600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6266 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | 5601 _ACEOF |
6267 if test "x$ac_cv_header_crypt_h" = xyes | 5602 |
6268 then : | 5603 fi |
6269 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h | 5604 |
6270 | 5605 done |
6271 fi | |
6272 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" | |
6273 if test "x$ac_cv_header_pty_h" = xyes | |
6274 then : | |
6275 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h | |
6276 | |
6277 fi | |
6278 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" | |
6279 if test "x$ac_cv_header_libutil_h" = xyes | |
6280 then : | |
6281 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h | |
6282 | |
6283 fi | |
6284 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | |
6285 if test "x$ac_cv_header_libgen_h" = xyes | |
6286 then : | |
6287 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h | |
6288 | |
6289 fi | |
6290 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
6291 if test "x$ac_cv_header_inttypes_h" = xyes | |
6292 then : | |
6293 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h | |
6294 | |
6295 fi | |
6296 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" | |
6297 if test "x$ac_cv_header_stropts_h" = xyes | |
6298 then : | |
6299 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h | |
6300 | |
6301 fi | |
6302 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" | |
6303 if test "x$ac_cv_header_utmp_h" = xyes | |
6304 then : | |
6305 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h | |
6306 | |
6307 fi | |
6308 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" | |
6309 if test "x$ac_cv_header_utmpx_h" = xyes | |
6310 then : | |
6311 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h | |
6312 | |
6313 fi | |
6314 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" | |
6315 if test "x$ac_cv_header_lastlog_h" = xyes | |
6316 then : | |
6317 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h | |
6318 | |
6319 fi | |
6320 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" | |
6321 if test "x$ac_cv_header_paths_h" = xyes | |
6322 then : | |
6323 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h | |
6324 | |
6325 fi | |
6326 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" | |
6327 if test "x$ac_cv_header_util_h" = xyes | |
6328 then : | |
6329 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h | |
6330 | |
6331 fi | |
6332 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" | |
6333 if test "x$ac_cv_header_netdb_h" = xyes | |
6334 then : | |
6335 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h | |
6336 | |
6337 fi | |
6338 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
6339 if test "x$ac_cv_header_security_pam_appl_h" = xyes | |
6340 then : | |
6341 printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h | |
6342 | |
6343 fi | |
6344 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
6345 if test "x$ac_cv_header_pam_pam_appl_h" = xyes | |
6346 then : | |
6347 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
6348 | |
6349 fi | |
6350 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" | |
6351 if test "x$ac_cv_header_netinet_in_systm_h" = xyes | |
6352 then : | |
6353 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h | |
6354 | |
6355 fi | |
6356 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" | |
6357 if test "x$ac_cv_header_sys_uio_h" = xyes | |
6358 then : | |
6359 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h | |
6360 | |
6361 fi | |
6362 ac_fn_c_check_header_compile "$LINENO" "linux/pkt_sched.h" "ac_cv_header_linux_pkt_sched_h" "$ac_includes_default" | |
6363 if test "x$ac_cv_header_linux_pkt_sched_h" = xyes | |
6364 then : | |
6365 printf "%s\n" "#define HAVE_LINUX_PKT_SCHED_H 1" >>confdefs.h | |
6366 | |
6367 fi | |
6368 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" | |
6369 if test "x$ac_cv_header_sys_random_h" = xyes | |
6370 then : | |
6371 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h | |
6372 | |
6373 fi | |
6374 | 5606 |
6375 | 5607 |
6376 # Checks for typedefs, structures, and compiler characteristics. | 5608 # Checks for typedefs, structures, and compiler characteristics. |
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
6378 printf %s "checking for an ANSI C-conforming const... " >&6; } | 5610 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
6379 if test ${ac_cv_c_const+y} | 5611 if ${ac_cv_c_const+:} false; then : |
6380 then : | 5612 $as_echo_n "(cached) " >&6 |
6381 printf %s "(cached) " >&6 | 5613 else |
6382 else $as_nop | |
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6384 /* end confdefs.h. */ | 5615 /* end confdefs.h. */ |
6385 | 5616 |
6386 int | 5617 int |
6387 main (void) | 5618 main () |
6388 { | 5619 { |
6389 | 5620 |
6390 #ifndef __cplusplus | 5621 #ifndef __cplusplus |
6391 /* Ultrix mips cc rejects this sort of thing. */ | 5622 /* Ultrix mips cc rejects this sort of thing. */ |
6392 typedef int charset[2]; | 5623 typedef int charset[2]; |
6395 char const *const *pcpcc; | 5626 char const *const *pcpcc; |
6396 char **ppc; | 5627 char **ppc; |
6397 /* NEC SVR4.0.2 mips cc rejects this. */ | 5628 /* NEC SVR4.0.2 mips cc rejects this. */ |
6398 struct point {int x, y;}; | 5629 struct point {int x, y;}; |
6399 static struct point const zero = {0,0}; | 5630 static struct point const zero = {0,0}; |
6400 /* IBM XL C 1.02.0.0 rejects this. | 5631 /* AIX XL C 1.02.0.0 rejects this. |
6401 It does not let you subtract one const X* pointer from another in | 5632 It does not let you subtract one const X* pointer from another in |
6402 an arm of an if-expression whose if-part is not a constant | 5633 an arm of an if-expression whose if-part is not a constant |
6403 expression */ | 5634 expression */ |
6404 const char *g = "string"; | 5635 const char *g = "string"; |
6405 pcpcc = &g + (g ? g-g : 0); | 5636 pcpcc = &g + (g ? g-g : 0); |
6423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 5654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
6424 typedef const int *iptr; | 5655 typedef const int *iptr; |
6425 iptr p = 0; | 5656 iptr p = 0; |
6426 ++p; | 5657 ++p; |
6427 } | 5658 } |
6428 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying | 5659 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
6429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 5660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
6430 struct s { int j; const int *ap[3]; } bx; | 5661 struct s { int j; const int *ap[3]; } bx; |
6431 struct s *b = &bx; b->j = 5; | 5662 struct s *b = &bx; b->j = 5; |
6432 } | 5663 } |
6433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 5664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
6439 | 5670 |
6440 ; | 5671 ; |
6441 return 0; | 5672 return 0; |
6442 } | 5673 } |
6443 _ACEOF | 5674 _ACEOF |
6444 if ac_fn_c_try_compile "$LINENO" | 5675 if ac_fn_c_try_compile "$LINENO"; then : |
6445 then : | |
6446 ac_cv_c_const=yes | 5676 ac_cv_c_const=yes |
6447 else $as_nop | 5677 else |
6448 ac_cv_c_const=no | 5678 ac_cv_c_const=no |
6449 fi | 5679 fi |
6450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6451 fi | 5681 fi |
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
6453 printf "%s\n" "$ac_cv_c_const" >&6; } | 5683 $as_echo "$ac_cv_c_const" >&6; } |
6454 if test $ac_cv_c_const = no; then | 5684 if test $ac_cv_c_const = no; then |
6455 | 5685 |
6456 printf "%s\n" "#define const /**/" >>confdefs.h | 5686 $as_echo "#define const /**/" >>confdefs.h |
6457 | 5687 |
6458 fi | 5688 fi |
6459 | 5689 |
6460 ac_ext=c | 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
6461 ac_cpp='$CPP $CPPFLAGS' | 5691 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5692 if ${ac_cv_type_uid_t+:} false; then : |
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 5693 $as_echo_n "(cached) " >&6 |
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 5694 else |
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6466 printf %s "checking how to run the C preprocessor... " >&6; } | |
6467 # On Suns, sometimes $CPP names a directory. | |
6468 if test -n "$CPP" && test -d "$CPP"; then | |
6469 CPP= | |
6470 fi | |
6471 if test -z "$CPP"; then | |
6472 if test ${ac_cv_prog_CPP+y} | |
6473 then : | |
6474 printf %s "(cached) " >&6 | |
6475 else $as_nop | |
6476 # Double quotes because $CC needs to be expanded | |
6477 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
6478 do | |
6479 ac_preproc_ok=false | |
6480 for ac_c_preproc_warn_flag in '' yes | |
6481 do | |
6482 # Use a header file that comes with gcc, so configuring glibc | |
6483 # with a fresh cross-compiler works. | |
6484 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6485 # not just through cpp. "Syntax error" is here to catch this case. | |
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6487 /* end confdefs.h. */ | |
6488 #include <limits.h> | |
6489 Syntax error | |
6490 _ACEOF | |
6491 if ac_fn_c_try_cpp "$LINENO" | |
6492 then : | |
6493 | |
6494 else $as_nop | |
6495 # Broken: fails on valid input. | |
6496 continue | |
6497 fi | |
6498 rm -f conftest.err conftest.i conftest.$ac_ext | |
6499 | |
6500 # OK, works on sane cases. Now check whether nonexistent headers | |
6501 # can be detected and how. | |
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6503 /* end confdefs.h. */ | |
6504 #include <ac_nonexistent.h> | |
6505 _ACEOF | |
6506 if ac_fn_c_try_cpp "$LINENO" | |
6507 then : | |
6508 # Broken: success on invalid input. | |
6509 continue | |
6510 else $as_nop | |
6511 # Passes both tests. | |
6512 ac_preproc_ok=: | |
6513 break | |
6514 fi | |
6515 rm -f conftest.err conftest.i conftest.$ac_ext | |
6516 | |
6517 done | |
6518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6519 rm -f conftest.i conftest.err conftest.$ac_ext | |
6520 if $ac_preproc_ok | |
6521 then : | |
6522 break | |
6523 fi | |
6524 | |
6525 done | |
6526 ac_cv_prog_CPP=$CPP | |
6527 | |
6528 fi | |
6529 CPP=$ac_cv_prog_CPP | |
6530 else | |
6531 ac_cv_prog_CPP=$CPP | |
6532 fi | |
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6534 printf "%s\n" "$CPP" >&6; } | |
6535 ac_preproc_ok=false | |
6536 for ac_c_preproc_warn_flag in '' yes | |
6537 do | |
6538 # Use a header file that comes with gcc, so configuring glibc | |
6539 # with a fresh cross-compiler works. | |
6540 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6541 # not just through cpp. "Syntax error" is here to catch this case. | |
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6543 /* end confdefs.h. */ | |
6544 #include <limits.h> | |
6545 Syntax error | |
6546 _ACEOF | |
6547 if ac_fn_c_try_cpp "$LINENO" | |
6548 then : | |
6549 | |
6550 else $as_nop | |
6551 # Broken: fails on valid input. | |
6552 continue | |
6553 fi | |
6554 rm -f conftest.err conftest.i conftest.$ac_ext | |
6555 | |
6556 # OK, works on sane cases. Now check whether nonexistent headers | |
6557 # can be detected and how. | |
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6559 /* end confdefs.h. */ | |
6560 #include <ac_nonexistent.h> | |
6561 _ACEOF | |
6562 if ac_fn_c_try_cpp "$LINENO" | |
6563 then : | |
6564 # Broken: success on invalid input. | |
6565 continue | |
6566 else $as_nop | |
6567 # Passes both tests. | |
6568 ac_preproc_ok=: | |
6569 break | |
6570 fi | |
6571 rm -f conftest.err conftest.i conftest.$ac_ext | |
6572 | |
6573 done | |
6574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6575 rm -f conftest.i conftest.err conftest.$ac_ext | |
6576 if $ac_preproc_ok | |
6577 then : | |
6578 | |
6579 else $as_nop | |
6580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
6582 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
6583 See \`config.log' for more details" "$LINENO" 5; } | |
6584 fi | |
6585 | |
6586 ac_ext=c | |
6587 ac_cpp='$CPP $CPPFLAGS' | |
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6591 | |
6592 | |
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
6594 printf %s "checking for grep that handles long lines and -e... " >&6; } | |
6595 if test ${ac_cv_path_GREP+y} | |
6596 then : | |
6597 printf %s "(cached) " >&6 | |
6598 else $as_nop | |
6599 if test -z "$GREP"; then | |
6600 ac_path_GREP_found=false | |
6601 # Loop through the user's path and test for each of PROGNAME-LIST | |
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6604 do | |
6605 IFS=$as_save_IFS | |
6606 case $as_dir in #((( | |
6607 '') as_dir=./ ;; | |
6608 */) ;; | |
6609 *) as_dir=$as_dir/ ;; | |
6610 esac | |
6611 for ac_prog in grep ggrep | |
6612 do | |
6613 for ac_exec_ext in '' $ac_executable_extensions; do | |
6614 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
6615 as_fn_executable_p "$ac_path_GREP" || continue | |
6616 # Check for GNU ac_path_GREP and select it if it is found. | |
6617 # Check for GNU $ac_path_GREP | |
6618 case `"$ac_path_GREP" --version 2>&1` in | |
6619 *GNU*) | |
6620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
6621 *) | |
6622 ac_count=0 | |
6623 printf %s 0123456789 >"conftest.in" | |
6624 while : | |
6625 do | |
6626 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6627 mv "conftest.tmp" "conftest.in" | |
6628 cp "conftest.in" "conftest.nl" | |
6629 printf "%s\n" 'GREP' >> "conftest.nl" | |
6630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6632 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6633 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
6634 # Best one so far, save it but keep looking for a better one | |
6635 ac_cv_path_GREP="$ac_path_GREP" | |
6636 ac_path_GREP_max=$ac_count | |
6637 fi | |
6638 # 10*(2^10) chars as input seems more than enough | |
6639 test $ac_count -gt 10 && break | |
6640 done | |
6641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6642 esac | |
6643 | |
6644 $ac_path_GREP_found && break 3 | |
6645 done | |
6646 done | |
6647 done | |
6648 IFS=$as_save_IFS | |
6649 if test -z "$ac_cv_path_GREP"; then | |
6650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6651 fi | |
6652 else | |
6653 ac_cv_path_GREP=$GREP | |
6654 fi | |
6655 | |
6656 fi | |
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
6658 printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
6659 GREP="$ac_cv_path_GREP" | |
6660 | |
6661 | |
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
6663 printf %s "checking for egrep... " >&6; } | |
6664 if test ${ac_cv_path_EGREP+y} | |
6665 then : | |
6666 printf %s "(cached) " >&6 | |
6667 else $as_nop | |
6668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6669 then ac_cv_path_EGREP="$GREP -E" | |
6670 else | |
6671 if test -z "$EGREP"; then | |
6672 ac_path_EGREP_found=false | |
6673 # Loop through the user's path and test for each of PROGNAME-LIST | |
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6676 do | |
6677 IFS=$as_save_IFS | |
6678 case $as_dir in #((( | |
6679 '') as_dir=./ ;; | |
6680 */) ;; | |
6681 *) as_dir=$as_dir/ ;; | |
6682 esac | |
6683 for ac_prog in egrep | |
6684 do | |
6685 for ac_exec_ext in '' $ac_executable_extensions; do | |
6686 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" | |
6687 as_fn_executable_p "$ac_path_EGREP" || continue | |
6688 # Check for GNU ac_path_EGREP and select it if it is found. | |
6689 # Check for GNU $ac_path_EGREP | |
6690 case `"$ac_path_EGREP" --version 2>&1` in | |
6691 *GNU*) | |
6692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6693 *) | |
6694 ac_count=0 | |
6695 printf %s 0123456789 >"conftest.in" | |
6696 while : | |
6697 do | |
6698 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6699 mv "conftest.tmp" "conftest.in" | |
6700 cp "conftest.in" "conftest.nl" | |
6701 printf "%s\n" 'EGREP' >> "conftest.nl" | |
6702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6704 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6706 # Best one so far, save it but keep looking for a better one | |
6707 ac_cv_path_EGREP="$ac_path_EGREP" | |
6708 ac_path_EGREP_max=$ac_count | |
6709 fi | |
6710 # 10*(2^10) chars as input seems more than enough | |
6711 test $ac_count -gt 10 && break | |
6712 done | |
6713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6714 esac | |
6715 | |
6716 $ac_path_EGREP_found && break 3 | |
6717 done | |
6718 done | |
6719 done | |
6720 IFS=$as_save_IFS | |
6721 if test -z "$ac_cv_path_EGREP"; then | |
6722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6723 fi | |
6724 else | |
6725 ac_cv_path_EGREP=$EGREP | |
6726 fi | |
6727 | |
6728 fi | |
6729 fi | |
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
6731 printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
6732 EGREP="$ac_cv_path_EGREP" | |
6733 | |
6734 | |
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
6736 printf %s "checking for uid_t in sys/types.h... " >&6; } | |
6737 if test ${ac_cv_type_uid_t+y} | |
6738 then : | |
6739 printf %s "(cached) " >&6 | |
6740 else $as_nop | |
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6742 /* end confdefs.h. */ | 5696 /* end confdefs.h. */ |
6743 #include <sys/types.h> | 5697 #include <sys/types.h> |
6744 | 5698 |
6745 _ACEOF | 5699 _ACEOF |
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6747 $EGREP "uid_t" >/dev/null 2>&1 | 5701 $EGREP "uid_t" >/dev/null 2>&1; then : |
6748 then : | |
6749 ac_cv_type_uid_t=yes | 5702 ac_cv_type_uid_t=yes |
6750 else $as_nop | 5703 else |
6751 ac_cv_type_uid_t=no | 5704 ac_cv_type_uid_t=no |
6752 fi | 5705 fi |
6753 rm -rf conftest* | 5706 rm -f conftest* |
6754 | 5707 |
6755 fi | 5708 fi |
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
6757 printf "%s\n" "$ac_cv_type_uid_t" >&6; } | 5710 $as_echo "$ac_cv_type_uid_t" >&6; } |
6758 if test $ac_cv_type_uid_t = no; then | 5711 if test $ac_cv_type_uid_t = no; then |
6759 | 5712 |
6760 printf "%s\n" "#define uid_t int" >>confdefs.h | 5713 $as_echo "#define uid_t int" >>confdefs.h |
6761 | 5714 |
6762 | 5715 |
6763 printf "%s\n" "#define gid_t int" >>confdefs.h | 5716 $as_echo "#define gid_t int" >>confdefs.h |
6764 | 5717 |
6765 fi | 5718 fi |
6766 | 5719 |
6767 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 5720 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
6768 if test "x$ac_cv_type_mode_t" = xyes | 5721 if test "x$ac_cv_type_mode_t" = xyes; then : |
6769 then : | 5722 |
6770 | 5723 else |
6771 else $as_nop | 5724 |
6772 | 5725 cat >>confdefs.h <<_ACEOF |
6773 printf "%s\n" "#define mode_t int" >>confdefs.h | 5726 #define mode_t int |
6774 | 5727 _ACEOF |
6775 fi | 5728 |
6776 | 5729 fi |
6777 | 5730 |
6778 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default | 5731 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
6779 " | 5732 if test "x$ac_cv_type_pid_t" = xyes; then : |
6780 if test "x$ac_cv_type_pid_t" = xyes | 5733 |
6781 then : | 5734 else |
6782 | 5735 |
6783 else $as_nop | 5736 cat >>confdefs.h <<_ACEOF |
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5737 #define pid_t int |
6785 /* end confdefs.h. */ | 5738 _ACEOF |
6786 | 5739 |
6787 #if defined _WIN64 && !defined __CYGWIN__ | 5740 fi |
6788 LLP64 | |
6789 #endif | |
6790 | |
6791 int | |
6792 main (void) | |
6793 { | |
6794 | |
6795 ; | |
6796 return 0; | |
6797 } | |
6798 | |
6799 _ACEOF | |
6800 if ac_fn_c_try_compile "$LINENO" | |
6801 then : | |
6802 ac_pid_type='int' | |
6803 else $as_nop | |
6804 ac_pid_type='__int64' | |
6805 fi | |
6806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6807 | |
6808 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h | |
6809 | |
6810 | |
6811 fi | |
6812 | |
6813 | 5741 |
6814 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 5742 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6815 if test "x$ac_cv_type_size_t" = xyes | 5743 if test "x$ac_cv_type_size_t" = xyes; then : |
6816 then : | 5744 |
6817 | 5745 else |
6818 else $as_nop | 5746 |
6819 | 5747 cat >>confdefs.h <<_ACEOF |
6820 printf "%s\n" "#define size_t unsigned int" >>confdefs.h | 5748 #define size_t unsigned int |
5749 _ACEOF | |
6821 | 5750 |
6822 fi | 5751 fi |
6823 | 5752 |
6824 | 5753 |
6825 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" | 5754 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
6826 if test "x$ac_cv_type_uint8_t" = xyes | 5755 if test "x$ac_cv_type_uint8_t" = xyes; then : |
6827 then : | 5756 |
6828 | 5757 cat >>confdefs.h <<_ACEOF |
6829 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h | 5758 #define HAVE_UINT8_T 1 |
5759 _ACEOF | |
6830 | 5760 |
6831 | 5761 |
6832 fi | 5762 fi |
6833 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" | 5763 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" |
6834 if test "x$ac_cv_type_u_int8_t" = xyes | 5764 if test "x$ac_cv_type_u_int8_t" = xyes; then : |
6835 then : | 5765 |
6836 | 5766 cat >>confdefs.h <<_ACEOF |
6837 printf "%s\n" "#define HAVE_U_INT8_T 1" >>confdefs.h | 5767 #define HAVE_U_INT8_T 1 |
5768 _ACEOF | |
6838 | 5769 |
6839 | 5770 |
6840 fi | 5771 fi |
6841 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" | 5772 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
6842 if test "x$ac_cv_type_uint16_t" = xyes | 5773 if test "x$ac_cv_type_uint16_t" = xyes; then : |
6843 then : | 5774 |
6844 | 5775 cat >>confdefs.h <<_ACEOF |
6845 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h | 5776 #define HAVE_UINT16_T 1 |
5777 _ACEOF | |
6846 | 5778 |
6847 | 5779 |
6848 fi | 5780 fi |
6849 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | 5781 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" |
6850 if test "x$ac_cv_type_u_int16_t" = xyes | 5782 if test "x$ac_cv_type_u_int16_t" = xyes; then : |
6851 then : | 5783 |
6852 | 5784 cat >>confdefs.h <<_ACEOF |
6853 printf "%s\n" "#define HAVE_U_INT16_T 1" >>confdefs.h | 5785 #define HAVE_U_INT16_T 1 |
5786 _ACEOF | |
6854 | 5787 |
6855 | 5788 |
6856 fi | 5789 fi |
6857 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | 5790 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
6858 if test "x$ac_cv_type_uint32_t" = xyes | 5791 if test "x$ac_cv_type_uint32_t" = xyes; then : |
6859 then : | 5792 |
6860 | 5793 cat >>confdefs.h <<_ACEOF |
6861 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h | 5794 #define HAVE_UINT32_T 1 |
5795 _ACEOF | |
6862 | 5796 |
6863 | 5797 |
6864 fi | 5798 fi |
6865 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" | 5799 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
6866 if test "x$ac_cv_type_u_int32_t" = xyes | 5800 if test "x$ac_cv_type_u_int32_t" = xyes; then : |
6867 then : | 5801 |
6868 | 5802 cat >>confdefs.h <<_ACEOF |
6869 printf "%s\n" "#define HAVE_U_INT32_T 1" >>confdefs.h | 5803 #define HAVE_U_INT32_T 1 |
5804 _ACEOF | |
6870 | 5805 |
6871 | 5806 |
6872 fi | 5807 fi |
6873 | 5808 |
6874 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" | 5809 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default" |
6875 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes | 5810 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
6876 then : | 5811 |
6877 | 5812 cat >>confdefs.h <<_ACEOF |
6878 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | 5813 #define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
5814 _ACEOF | |
6879 | 5815 |
6880 | 5816 |
6881 fi | 5817 fi |
6882 | 5818 |
6883 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | 5819 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
6884 #include <sys/socket.h> | 5820 #include <sys/socket.h> |
6885 " | 5821 " |
6886 if test "x$ac_cv_type_socklen_t" = xyes | 5822 if test "x$ac_cv_type_socklen_t" = xyes; then : |
6887 then : | 5823 |
6888 | 5824 else |
6889 else $as_nop | 5825 |
6890 | 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | 5827 $as_echo_n "checking for socklen_t equivalent... " >&6; } |
6892 printf %s "checking for socklen_t equivalent... " >&6; } | 5828 if ${curl_cv_socklen_t_equiv+:} false; then : |
6893 if test ${curl_cv_socklen_t_equiv+y} | 5829 $as_echo_n "(cached) " >&6 |
6894 then : | 5830 else |
6895 printf %s "(cached) " >&6 | |
6896 else $as_nop | |
6897 | 5831 |
6898 # Systems have either "struct sockaddr *" or | 5832 # Systems have either "struct sockaddr *" or |
6899 # "void *" as the second argument to getpeername | 5833 # "void *" as the second argument to getpeername |
6900 curl_cv_socklen_t_equiv= | 5834 curl_cv_socklen_t_equiv= |
6901 for arg2 in "struct sockaddr" void; do | 5835 for arg2 in "struct sockaddr" void; do |
6907 #include <sys/socket.h> | 5841 #include <sys/socket.h> |
6908 | 5842 |
6909 int getpeername (int, $arg2 *, $t *); | 5843 int getpeername (int, $arg2 *, $t *); |
6910 | 5844 |
6911 int | 5845 int |
6912 main (void) | 5846 main () |
6913 { | 5847 { |
6914 | 5848 |
6915 $t len; | 5849 $t len; |
6916 getpeername(0,0,&len); | 5850 getpeername(0,0,&len); |
6917 | 5851 |
6918 ; | 5852 ; |
6919 return 0; | 5853 return 0; |
6920 } | 5854 } |
6921 _ACEOF | 5855 _ACEOF |
6922 if ac_fn_c_try_compile "$LINENO" | 5856 if ac_fn_c_try_compile "$LINENO"; then : |
6923 then : | |
6924 | 5857 |
6925 curl_cv_socklen_t_equiv="$t" | 5858 curl_cv_socklen_t_equiv="$t" |
6926 break | 5859 break |
6927 | 5860 |
6928 fi | 5861 fi |
6929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6930 done | 5863 done |
6931 done | 5864 done |
6932 | 5865 |
6933 if test "x$curl_cv_socklen_t_equiv" = x; then | 5866 if test "x$curl_cv_socklen_t_equiv" = x; then |
6934 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | 5867 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
6935 fi | 5868 fi |
6936 | 5869 |
6937 fi | 5870 fi |
6938 | 5871 |
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 |
6940 printf "%s\n" "$curl_cv_socklen_t_equiv" >&6; } | 5873 $as_echo "$curl_cv_socklen_t_equiv" >&6; } |
6941 | 5874 |
6942 printf "%s\n" "#define socklen_t $curl_cv_socklen_t_equiv" >>confdefs.h | 5875 cat >>confdefs.h <<_ACEOF |
5876 #define socklen_t $curl_cv_socklen_t_equiv | |
5877 _ACEOF | |
6943 | 5878 |
6944 fi | 5879 fi |
6945 | 5880 |
6946 | 5881 |
6947 # for the fake-rfc2553 stuff - straight from OpenSSH | 5882 # for the fake-rfc2553 stuff - straight from OpenSSH |
6948 | 5883 |
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 |
6950 printf %s "checking for struct sockaddr_storage... " >&6; } | 5885 $as_echo_n "checking for struct sockaddr_storage... " >&6; } |
6951 if test ${ac_cv_have_struct_sockaddr_storage+y} | 5886 if ${ac_cv_have_struct_sockaddr_storage+:} false; then : |
6952 then : | 5887 $as_echo_n "(cached) " >&6 |
6953 printf %s "(cached) " >&6 | 5888 else |
6954 else $as_nop | |
6955 | 5889 |
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6957 /* end confdefs.h. */ | 5891 /* end confdefs.h. */ |
6958 | 5892 |
6959 #include <sys/types.h> | 5893 #include <sys/types.h> |
6960 #include <sys/socket.h> | 5894 #include <sys/socket.h> |
6961 | 5895 |
6962 int | 5896 int |
6963 main (void) | 5897 main () |
6964 { | 5898 { |
6965 if (sizeof(struct sockaddr_storage)) return 0 | 5899 if (sizeof(struct sockaddr_storage)) return 0 |
6966 ; | 5900 ; |
6967 return 0; | 5901 return 0; |
6968 } | 5902 } |
6969 _ACEOF | 5903 _ACEOF |
6970 if ac_fn_c_try_compile "$LINENO" | 5904 if ac_fn_c_try_compile "$LINENO"; then : |
6971 then : | |
6972 ac_cv_have_struct_sockaddr_storage="yes" | 5905 ac_cv_have_struct_sockaddr_storage="yes" |
6973 else $as_nop | 5906 else |
6974 ac_cv_have_struct_sockaddr_storage="no" | 5907 ac_cv_have_struct_sockaddr_storage="no" |
6975 | 5908 |
6976 fi | 5909 fi |
6977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6978 | 5911 |
6979 fi | 5912 fi |
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 |
6981 printf "%s\n" "$ac_cv_have_struct_sockaddr_storage" >&6; } | 5914 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } |
6982 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | 5915 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
6983 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | 5916 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
6984 | 5917 |
6985 fi | 5918 fi |
6986 | 5919 |
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 |
6988 printf %s "checking for struct sockaddr_in6... " >&6; } | 5921 $as_echo_n "checking for struct sockaddr_in6... " >&6; } |
6989 if test ${ac_cv_have_struct_sockaddr_in6+y} | 5922 if ${ac_cv_have_struct_sockaddr_in6+:} false; then : |
6990 then : | 5923 $as_echo_n "(cached) " >&6 |
6991 printf %s "(cached) " >&6 | 5924 else |
6992 else $as_nop | |
6993 | 5925 |
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6995 /* end confdefs.h. */ | 5927 /* end confdefs.h. */ |
6996 | 5928 |
6997 #include <sys/types.h> | 5929 #include <sys/types.h> |
6998 #include <netinet/in.h> | 5930 #include <netinet/in.h> |
6999 | 5931 |
7000 int | 5932 int |
7001 main (void) | 5933 main () |
7002 { | 5934 { |
7003 if (sizeof(struct sockaddr_in6)) return 0 | 5935 if (sizeof(struct sockaddr_in6)) return 0 |
7004 ; | 5936 ; |
7005 return 0; | 5937 return 0; |
7006 } | 5938 } |
7007 _ACEOF | 5939 _ACEOF |
7008 if ac_fn_c_try_compile "$LINENO" | 5940 if ac_fn_c_try_compile "$LINENO"; then : |
7009 then : | |
7010 ac_cv_have_struct_sockaddr_in6="yes" | 5941 ac_cv_have_struct_sockaddr_in6="yes" |
7011 else $as_nop | 5942 else |
7012 ac_cv_have_struct_sockaddr_in6="no" | 5943 ac_cv_have_struct_sockaddr_in6="no" |
7013 | 5944 |
7014 fi | 5945 fi |
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7016 | 5947 |
7017 fi | 5948 fi |
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 |
7019 printf "%s\n" "$ac_cv_have_struct_sockaddr_in6" >&6; } | 5950 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } |
7020 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | 5951 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
7021 | 5952 |
7022 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | 5953 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
7023 | 5954 |
7024 fi | 5955 fi |
7025 | 5956 |
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 |
7027 printf %s "checking for struct in6_addr... " >&6; } | 5958 $as_echo_n "checking for struct in6_addr... " >&6; } |
7028 if test ${ac_cv_have_struct_in6_addr+y} | 5959 if ${ac_cv_have_struct_in6_addr+:} false; then : |
7029 then : | 5960 $as_echo_n "(cached) " >&6 |
7030 printf %s "(cached) " >&6 | 5961 else |
7031 else $as_nop | |
7032 | 5962 |
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7034 /* end confdefs.h. */ | 5964 /* end confdefs.h. */ |
7035 | 5965 |
7036 #include <sys/types.h> | 5966 #include <sys/types.h> |
7037 #include <netinet/in.h> | 5967 #include <netinet/in.h> |
7038 | 5968 |
7039 int | 5969 int |
7040 main (void) | 5970 main () |
7041 { | 5971 { |
7042 if (sizeof(struct in6_addr)) return 0 | 5972 if (sizeof(struct in6_addr)) return 0 |
7043 ; | 5973 ; |
7044 return 0; | 5974 return 0; |
7045 } | 5975 } |
7046 _ACEOF | 5976 _ACEOF |
7047 if ac_fn_c_try_compile "$LINENO" | 5977 if ac_fn_c_try_compile "$LINENO"; then : |
7048 then : | |
7049 ac_cv_have_struct_in6_addr="yes" | 5978 ac_cv_have_struct_in6_addr="yes" |
7050 else $as_nop | 5979 else |
7051 ac_cv_have_struct_in6_addr="no" | 5980 ac_cv_have_struct_in6_addr="no" |
7052 | 5981 |
7053 fi | 5982 fi |
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7055 | 5984 |
7056 fi | 5985 fi |
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 |
7058 printf "%s\n" "$ac_cv_have_struct_in6_addr" >&6; } | 5987 $as_echo "$ac_cv_have_struct_in6_addr" >&6; } |
7059 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | 5988 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
7060 | 5989 |
7061 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | 5990 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
7062 | 5991 |
7063 fi | 5992 fi |
7064 | 5993 |
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
7066 printf %s "checking for struct addrinfo... " >&6; } | 5995 $as_echo_n "checking for struct addrinfo... " >&6; } |
7067 if test ${ac_cv_have_struct_addrinfo+y} | 5996 if ${ac_cv_have_struct_addrinfo+:} false; then : |
7068 then : | 5997 $as_echo_n "(cached) " >&6 |
7069 printf %s "(cached) " >&6 | 5998 else |
7070 else $as_nop | |
7071 | 5999 |
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7073 /* end confdefs.h. */ | 6001 /* end confdefs.h. */ |
7074 | 6002 |
7075 #include <sys/types.h> | 6003 #include <sys/types.h> |
7076 #include <sys/socket.h> | 6004 #include <sys/socket.h> |
7077 #include <netdb.h> | 6005 #include <netdb.h> |
7078 | 6006 |
7079 int | 6007 int |
7080 main (void) | 6008 main () |
7081 { | 6009 { |
7082 if (sizeof(struct addrinfo)) return 0 | 6010 if (sizeof(struct addrinfo)) return 0 |
7083 ; | 6011 ; |
7084 return 0; | 6012 return 0; |
7085 } | 6013 } |
7086 _ACEOF | 6014 _ACEOF |
7087 if ac_fn_c_try_compile "$LINENO" | 6015 if ac_fn_c_try_compile "$LINENO"; then : |
7088 then : | |
7089 ac_cv_have_struct_addrinfo="yes" | 6016 ac_cv_have_struct_addrinfo="yes" |
7090 else $as_nop | 6017 else |
7091 ac_cv_have_struct_addrinfo="no" | 6018 ac_cv_have_struct_addrinfo="no" |
7092 | 6019 |
7093 fi | 6020 fi |
7094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7095 | 6022 |
7096 fi | 6023 fi |
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 |
7098 printf "%s\n" "$ac_cv_have_struct_addrinfo" >&6; } | 6025 $as_echo "$ac_cv_have_struct_addrinfo" >&6; } |
7099 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | 6026 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
7100 | 6027 |
7101 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | 6028 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
7102 | 6029 |
7103 fi | 6030 fi |
7104 | 6031 |
7105 | 6032 |
7106 # IRIX has a const char return value for gai_strerror() | 6033 # IRIX has a const char return value for gai_strerror() |
7107 | 6034 for ac_func in gai_strerror |
7108 for ac_func in gai_strerror | |
7109 do : | 6035 do : |
7110 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | 6036 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
7111 if test "x$ac_cv_func_gai_strerror" = xyes | 6037 if test "x$ac_cv_func_gai_strerror" = xyes; then : |
7112 then : | 6038 cat >>confdefs.h <<_ACEOF |
7113 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h | 6039 #define HAVE_GAI_STRERROR 1 |
7114 | 6040 _ACEOF |
7115 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h | 6041 |
6042 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | |
7116 | 6043 |
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7118 /* end confdefs.h. */ | 6045 /* end confdefs.h. */ |
7119 | 6046 |
7120 #include <sys/types.h> | 6047 #include <sys/types.h> |
7121 #include <sys/socket.h> | 6048 #include <sys/socket.h> |
7122 #include <netdb.h> | 6049 #include <netdb.h> |
7123 | 6050 |
7124 const char *gai_strerror(int); | 6051 const char *gai_strerror(int); |
7125 int | 6052 int |
7126 main (void) | 6053 main () |
7127 { | 6054 { |
7128 | 6055 |
7129 char *str; | 6056 char *str; |
7130 | 6057 |
7131 str = gai_strerror(0); | 6058 str = gai_strerror(0); |
7132 ; | 6059 ; |
7133 return 0; | 6060 return 0; |
7134 } | 6061 } |
7135 _ACEOF | 6062 _ACEOF |
7136 if ac_fn_c_try_compile "$LINENO" | 6063 if ac_fn_c_try_compile "$LINENO"; then : |
7137 then : | 6064 |
7138 | 6065 |
7139 | 6066 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h |
7140 printf "%s\n" "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | 6067 |
7141 | 6068 fi |
7142 fi | 6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 6070 fi |
7144 fi | |
7145 | |
7146 done | 6071 done |
6072 | |
7147 | 6073 |
7148 # for loginrec.c | 6074 # for loginrec.c |
7149 | 6075 |
7150 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " | 6076 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
7151 #include <sys/types.h> | 6077 #include <sys/types.h> |
7152 #if HAVE_UTMP_H | 6078 #if HAVE_UTMP_H |
7153 #include <utmp.h> | 6079 #include <utmp.h> |
7154 #endif | 6080 #endif |
7155 | 6081 |
7156 " | 6082 " |
7157 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes | 6083 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : |
7158 then : | 6084 |
7159 | 6085 cat >>confdefs.h <<_ACEOF |
7160 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h | 6086 #define HAVE_STRUCT_UTMP_UT_HOST 1 |
6087 _ACEOF | |
7161 | 6088 |
7162 | 6089 |
7163 fi | 6090 fi |
7164 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " | 6091 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
7165 #include <sys/types.h> | 6092 #include <sys/types.h> |
7166 #if HAVE_UTMP_H | 6093 #if HAVE_UTMP_H |
7167 #include <utmp.h> | 6094 #include <utmp.h> |
7168 #endif | 6095 #endif |
7169 | 6096 |
7170 " | 6097 " |
7171 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes | 6098 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : |
7172 then : | 6099 |
7173 | 6100 cat >>confdefs.h <<_ACEOF |
7174 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h | 6101 #define HAVE_STRUCT_UTMP_UT_PID 1 |
6102 _ACEOF | |
7175 | 6103 |
7176 | 6104 |
7177 fi | 6105 fi |
7178 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " | 6106 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " |
7179 #include <sys/types.h> | 6107 #include <sys/types.h> |
7180 #if HAVE_UTMP_H | 6108 #if HAVE_UTMP_H |
7181 #include <utmp.h> | 6109 #include <utmp.h> |
7182 #endif | 6110 #endif |
7183 | 6111 |
7184 " | 6112 " |
7185 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes | 6113 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then : |
7186 then : | 6114 |
7187 | 6115 cat >>confdefs.h <<_ACEOF |
7188 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h | 6116 #define HAVE_STRUCT_UTMP_UT_TYPE 1 |
6117 _ACEOF | |
7189 | 6118 |
7190 | 6119 |
7191 fi | 6120 fi |
7192 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" " | 6121 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" " |
7193 #include <sys/types.h> | 6122 #include <sys/types.h> |
7194 #if HAVE_UTMP_H | 6123 #if HAVE_UTMP_H |
7195 #include <utmp.h> | 6124 #include <utmp.h> |
7196 #endif | 6125 #endif |
7197 | 6126 |
7198 " | 6127 " |
7199 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes | 6128 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then : |
7200 then : | 6129 |
7201 | 6130 cat >>confdefs.h <<_ACEOF |
7202 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TV 1" >>confdefs.h | 6131 #define HAVE_STRUCT_UTMP_UT_TV 1 |
6132 _ACEOF | |
7203 | 6133 |
7204 | 6134 |
7205 fi | 6135 fi |
7206 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " | 6136 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " |
7207 #include <sys/types.h> | 6137 #include <sys/types.h> |
7208 #if HAVE_UTMP_H | 6138 #if HAVE_UTMP_H |
7209 #include <utmp.h> | 6139 #include <utmp.h> |
7210 #endif | 6140 #endif |
7211 | 6141 |
7212 " | 6142 " |
7213 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes | 6143 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then : |
7214 then : | 6144 |
7215 | 6145 cat >>confdefs.h <<_ACEOF |
7216 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h | 6146 #define HAVE_STRUCT_UTMP_UT_ID 1 |
6147 _ACEOF | |
7217 | 6148 |
7218 | 6149 |
7219 fi | 6150 fi |
7220 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" " | 6151 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" " |
7221 #include <sys/types.h> | 6152 #include <sys/types.h> |
7222 #if HAVE_UTMP_H | 6153 #if HAVE_UTMP_H |
7223 #include <utmp.h> | 6154 #include <utmp.h> |
7224 #endif | 6155 #endif |
7225 | 6156 |
7226 " | 6157 " |
7227 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes | 6158 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes; then : |
7228 then : | 6159 |
7229 | 6160 cat >>confdefs.h <<_ACEOF |
7230 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ADDR 1" >>confdefs.h | 6161 #define HAVE_STRUCT_UTMP_UT_ADDR 1 |
6162 _ACEOF | |
7231 | 6163 |
7232 | 6164 |
7233 fi | 6165 fi |
7234 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" " | 6166 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" " |
7235 #include <sys/types.h> | 6167 #include <sys/types.h> |
7236 #if HAVE_UTMP_H | 6168 #if HAVE_UTMP_H |
7237 #include <utmp.h> | 6169 #include <utmp.h> |
7238 #endif | 6170 #endif |
7239 | 6171 |
7240 " | 6172 " |
7241 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes | 6173 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes; then : |
7242 then : | 6174 |
7243 | 6175 cat >>confdefs.h <<_ACEOF |
7244 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ADDR_V6 1" >>confdefs.h | 6176 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1 |
6177 _ACEOF | |
7245 | 6178 |
7246 | 6179 |
7247 fi | 6180 fi |
7248 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" " | 6181 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" " |
7249 #include <sys/types.h> | 6182 #include <sys/types.h> |
7250 #if HAVE_UTMP_H | 6183 #if HAVE_UTMP_H |
7251 #include <utmp.h> | 6184 #include <utmp.h> |
7252 #endif | 6185 #endif |
7253 | 6186 |
7254 " | 6187 " |
7255 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes | 6188 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes; then : |
7256 then : | 6189 |
7257 | 6190 cat >>confdefs.h <<_ACEOF |
7258 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h | 6191 #define HAVE_STRUCT_UTMP_UT_EXIT 1 |
6192 _ACEOF | |
7259 | 6193 |
7260 | 6194 |
7261 fi | 6195 fi |
7262 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" " | 6196 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" " |
7263 #include <sys/types.h> | 6197 #include <sys/types.h> |
7264 #if HAVE_UTMP_H | 6198 #if HAVE_UTMP_H |
7265 #include <utmp.h> | 6199 #include <utmp.h> |
7266 #endif | 6200 #endif |
7267 | 6201 |
7268 " | 6202 " |
7269 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes | 6203 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes; then : |
7270 then : | 6204 |
7271 | 6205 cat >>confdefs.h <<_ACEOF |
7272 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TIME 1" >>confdefs.h | 6206 #define HAVE_STRUCT_UTMP_UT_TIME 1 |
6207 _ACEOF | |
7273 | 6208 |
7274 | 6209 |
7275 fi | 6210 fi |
7276 | 6211 |
7277 | 6212 |
7281 #if HAVE_UTMPX_H | 6216 #if HAVE_UTMPX_H |
7282 #include <utmpx.h> | 6217 #include <utmpx.h> |
7283 #endif | 6218 #endif |
7284 | 6219 |
7285 " | 6220 " |
7286 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes | 6221 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then : |
7287 then : | 6222 |
7288 | 6223 cat >>confdefs.h <<_ACEOF |
7289 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_HOST 1" >>confdefs.h | 6224 #define HAVE_STRUCT_UTMPX_UT_HOST 1 |
6225 _ACEOF | |
7290 | 6226 |
7291 | 6227 |
7292 fi | 6228 fi |
7293 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" " | 6229 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" " |
7294 #include <sys/types.h> | 6230 #include <sys/types.h> |
7296 #if HAVE_UTMPX_H | 6232 #if HAVE_UTMPX_H |
7297 #include <utmpx.h> | 6233 #include <utmpx.h> |
7298 #endif | 6234 #endif |
7299 | 6235 |
7300 " | 6236 " |
7301 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes | 6237 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then : |
7302 then : | 6238 |
7303 | 6239 cat >>confdefs.h <<_ACEOF |
7304 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h | 6240 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 |
6241 _ACEOF | |
7305 | 6242 |
7306 | 6243 |
7307 fi | 6244 fi |
7308 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" " | 6245 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" " |
7309 #include <sys/types.h> | 6246 #include <sys/types.h> |
7311 #if HAVE_UTMPX_H | 6248 #if HAVE_UTMPX_H |
7312 #include <utmpx.h> | 6249 #include <utmpx.h> |
7313 #endif | 6250 #endif |
7314 | 6251 |
7315 " | 6252 " |
7316 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes | 6253 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then : |
7317 then : | 6254 |
7318 | 6255 cat >>confdefs.h <<_ACEOF |
7319 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TYPE 1" >>confdefs.h | 6256 #define HAVE_STRUCT_UTMPX_UT_TYPE 1 |
6257 _ACEOF | |
7320 | 6258 |
7321 | 6259 |
7322 fi | 6260 fi |
7323 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" " | 6261 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" " |
7324 #include <sys/types.h> | 6262 #include <sys/types.h> |
7326 #if HAVE_UTMPX_H | 6264 #if HAVE_UTMPX_H |
7327 #include <utmpx.h> | 6265 #include <utmpx.h> |
7328 #endif | 6266 #endif |
7329 | 6267 |
7330 " | 6268 " |
7331 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes | 6269 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then : |
7332 then : | 6270 |
7333 | 6271 cat >>confdefs.h <<_ACEOF |
7334 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ID 1" >>confdefs.h | 6272 #define HAVE_STRUCT_UTMPX_UT_ID 1 |
6273 _ACEOF | |
7335 | 6274 |
7336 | 6275 |
7337 fi | 6276 fi |
7338 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" " | 6277 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" " |
7339 #include <sys/types.h> | 6278 #include <sys/types.h> |
7341 #if HAVE_UTMPX_H | 6280 #if HAVE_UTMPX_H |
7342 #include <utmpx.h> | 6281 #include <utmpx.h> |
7343 #endif | 6282 #endif |
7344 | 6283 |
7345 " | 6284 " |
7346 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes | 6285 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes; then : |
7347 then : | 6286 |
7348 | 6287 cat >>confdefs.h <<_ACEOF |
7349 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ADDR 1" >>confdefs.h | 6288 #define HAVE_STRUCT_UTMPX_UT_ADDR 1 |
6289 _ACEOF | |
7350 | 6290 |
7351 | 6291 |
7352 fi | 6292 fi |
7353 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" " | 6293 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" " |
7354 #include <sys/types.h> | 6294 #include <sys/types.h> |
7356 #if HAVE_UTMPX_H | 6296 #if HAVE_UTMPX_H |
7357 #include <utmpx.h> | 6297 #include <utmpx.h> |
7358 #endif | 6298 #endif |
7359 | 6299 |
7360 " | 6300 " |
7361 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes | 6301 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes; then : |
7362 then : | 6302 |
7363 | 6303 cat >>confdefs.h <<_ACEOF |
7364 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1" >>confdefs.h | 6304 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1 |
6305 _ACEOF | |
7365 | 6306 |
7366 | 6307 |
7367 fi | 6308 fi |
7368 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" " | 6309 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" " |
7369 #include <sys/types.h> | 6310 #include <sys/types.h> |
7371 #if HAVE_UTMPX_H | 6312 #if HAVE_UTMPX_H |
7372 #include <utmpx.h> | 6313 #include <utmpx.h> |
7373 #endif | 6314 #endif |
7374 | 6315 |
7375 " | 6316 " |
7376 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes | 6317 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes; then : |
7377 then : | 6318 |
7378 | 6319 cat >>confdefs.h <<_ACEOF |
7379 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TIME 1" >>confdefs.h | 6320 #define HAVE_STRUCT_UTMPX_UT_TIME 1 |
6321 _ACEOF | |
7380 | 6322 |
7381 | 6323 |
7382 fi | 6324 fi |
7383 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" " | 6325 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" " |
7384 #include <sys/types.h> | 6326 #include <sys/types.h> |
7386 #if HAVE_UTMPX_H | 6328 #if HAVE_UTMPX_H |
7387 #include <utmpx.h> | 6329 #include <utmpx.h> |
7388 #endif | 6330 #endif |
7389 | 6331 |
7390 " | 6332 " |
7391 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes | 6333 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then : |
7392 then : | 6334 |
7393 | 6335 cat >>confdefs.h <<_ACEOF |
7394 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_TV 1" >>confdefs.h | 6336 #define HAVE_STRUCT_UTMPX_UT_TV 1 |
6337 _ACEOF | |
7395 | 6338 |
7396 | 6339 |
7397 fi | 6340 fi |
7398 | 6341 |
7399 | 6342 |
7400 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" " | 6343 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" " |
7401 #include <sys/types.h> | 6344 #include <sys/types.h> |
7402 #include <sys/socket.h> | 6345 #include <sys/socket.h> |
7403 | 6346 |
7404 " | 6347 " |
7405 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes | 6348 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : |
7406 then : | 6349 |
7407 | 6350 cat >>confdefs.h <<_ACEOF |
7408 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h | 6351 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 |
7409 | 6352 _ACEOF |
7410 | 6353 |
7411 fi | 6354 |
7412 | 6355 fi |
7413 | 6356 |
7414 ac_fn_c_check_func "$LINENO" "endutent" "ac_cv_func_endutent" | 6357 |
7415 if test "x$ac_cv_func_endutent" = xyes | 6358 for ac_func in endutent getutent getutid getutline pututline setutent |
7416 then : | 6359 do : |
7417 printf "%s\n" "#define HAVE_ENDUTENT 1" >>confdefs.h | 6360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7418 | 6361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7419 fi | 6362 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7420 ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent" | 6363 cat >>confdefs.h <<_ACEOF |
7421 if test "x$ac_cv_func_getutent" = xyes | 6364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7422 then : | 6365 _ACEOF |
7423 printf "%s\n" "#define HAVE_GETUTENT 1" >>confdefs.h | 6366 |
7424 | 6367 fi |
7425 fi | 6368 done |
7426 ac_fn_c_check_func "$LINENO" "getutid" "ac_cv_func_getutid" | 6369 |
7427 if test "x$ac_cv_func_getutid" = xyes | 6370 for ac_func in utmpname |
7428 then : | 6371 do : |
7429 printf "%s\n" "#define HAVE_GETUTID 1" >>confdefs.h | 6372 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" |
7430 | 6373 if test "x$ac_cv_func_utmpname" = xyes; then : |
7431 fi | 6374 cat >>confdefs.h <<_ACEOF |
7432 ac_fn_c_check_func "$LINENO" "getutline" "ac_cv_func_getutline" | 6375 #define HAVE_UTMPNAME 1 |
7433 if test "x$ac_cv_func_getutline" = xyes | 6376 _ACEOF |
7434 then : | 6377 |
7435 printf "%s\n" "#define HAVE_GETUTLINE 1" >>confdefs.h | 6378 fi |
7436 | 6379 done |
7437 fi | 6380 |
7438 ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline" | 6381 for ac_func in endutxent getutxent getutxid getutxline pututxline |
7439 if test "x$ac_cv_func_pututline" = xyes | 6382 do : |
7440 then : | 6383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7441 printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h | 6384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7442 | 6385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7443 fi | 6386 cat >>confdefs.h <<_ACEOF |
7444 ac_fn_c_check_func "$LINENO" "setutent" "ac_cv_func_setutent" | 6387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7445 if test "x$ac_cv_func_setutent" = xyes | 6388 _ACEOF |
7446 then : | 6389 |
7447 printf "%s\n" "#define HAVE_SETUTENT 1" >>confdefs.h | 6390 fi |
7448 | 6391 done |
7449 fi | 6392 |
7450 | 6393 for ac_func in setutxent utmpxname |
7451 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | 6394 do : |
7452 if test "x$ac_cv_func_utmpname" = xyes | 6395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7453 then : | 6396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7454 printf "%s\n" "#define HAVE_UTMPNAME 1" >>confdefs.h | 6397 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7455 | 6398 cat >>confdefs.h <<_ACEOF |
7456 fi | 6399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7457 | 6400 _ACEOF |
7458 ac_fn_c_check_func "$LINENO" "endutxent" "ac_cv_func_endutxent" | 6401 |
7459 if test "x$ac_cv_func_endutxent" = xyes | 6402 fi |
7460 then : | 6403 done |
7461 printf "%s\n" "#define HAVE_ENDUTXENT 1" >>confdefs.h | 6404 |
7462 | 6405 for ac_func in logout updwtmp logwtmp |
7463 fi | 6406 do : |
7464 ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent" | 6407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7465 if test "x$ac_cv_func_getutxent" = xyes | 6408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7466 then : | 6409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7467 printf "%s\n" "#define HAVE_GETUTXENT 1" >>confdefs.h | 6410 cat >>confdefs.h <<_ACEOF |
7468 | 6411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7469 fi | 6412 _ACEOF |
7470 ac_fn_c_check_func "$LINENO" "getutxid" "ac_cv_func_getutxid" | 6413 |
7471 if test "x$ac_cv_func_getutxid" = xyes | 6414 fi |
7472 then : | 6415 done |
7473 printf "%s\n" "#define HAVE_GETUTXID 1" >>confdefs.h | |
7474 | |
7475 fi | |
7476 ac_fn_c_check_func "$LINENO" "getutxline" "ac_cv_func_getutxline" | |
7477 if test "x$ac_cv_func_getutxline" = xyes | |
7478 then : | |
7479 printf "%s\n" "#define HAVE_GETUTXLINE 1" >>confdefs.h | |
7480 | |
7481 fi | |
7482 ac_fn_c_check_func "$LINENO" "pututxline" "ac_cv_func_pututxline" | |
7483 if test "x$ac_cv_func_pututxline" = xyes | |
7484 then : | |
7485 printf "%s\n" "#define HAVE_PUTUTXLINE 1" >>confdefs.h | |
7486 | |
7487 fi | |
7488 | |
7489 ac_fn_c_check_func "$LINENO" "setutxent" "ac_cv_func_setutxent" | |
7490 if test "x$ac_cv_func_setutxent" = xyes | |
7491 then : | |
7492 printf "%s\n" "#define HAVE_SETUTXENT 1" >>confdefs.h | |
7493 | |
7494 fi | |
7495 ac_fn_c_check_func "$LINENO" "utmpxname" "ac_cv_func_utmpxname" | |
7496 if test "x$ac_cv_func_utmpxname" = xyes | |
7497 then : | |
7498 printf "%s\n" "#define HAVE_UTMPXNAME 1" >>confdefs.h | |
7499 | |
7500 fi | |
7501 | |
7502 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" | |
7503 if test "x$ac_cv_func_logout" = xyes | |
7504 then : | |
7505 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h | |
7506 | |
7507 fi | |
7508 ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" | |
7509 if test "x$ac_cv_func_updwtmp" = xyes | |
7510 then : | |
7511 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h | |
7512 | |
7513 fi | |
7514 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" | |
7515 if test "x$ac_cv_func_logwtmp" = xyes | |
7516 then : | |
7517 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h | |
7518 | |
7519 fi | |
7520 | 6416 |
7521 | 6417 |
7522 # POSIX monotonic time | 6418 # POSIX monotonic time |
7523 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | 6419 for ac_func in clock_gettime |
7524 if test "x$ac_cv_func_clock_gettime" = xyes | 6420 do : |
7525 then : | 6421 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
7526 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 6422 if test "x$ac_cv_func_clock_gettime" = xyes; then : |
7527 | 6423 cat >>confdefs.h <<_ACEOF |
7528 fi | 6424 #define HAVE_CLOCK_GETTIME 1 |
6425 _ACEOF | |
6426 | |
6427 fi | |
6428 done | |
7529 | 6429 |
7530 | 6430 |
7531 # OS X monotonic time | 6431 # OS X monotonic time |
7532 ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" | 6432 for ac_header in mach/mach_time.h |
7533 if test "x$ac_cv_header_mach_mach_time_h" = xyes | 6433 do : |
7534 then : | 6434 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" |
7535 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h | 6435 if test "x$ac_cv_header_mach_mach_time_h" = xyes; then : |
7536 | 6436 cat >>confdefs.h <<_ACEOF |
7537 fi | 6437 #define HAVE_MACH_MACH_TIME_H 1 |
7538 | 6438 _ACEOF |
7539 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" | 6439 |
7540 if test "x$ac_cv_func_mach_absolute_time" = xyes | 6440 fi |
7541 then : | 6441 |
7542 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h | 6442 done |
7543 | 6443 |
7544 fi | 6444 for ac_func in mach_absolute_time |
7545 | 6445 do : |
7546 | 6446 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" |
7547 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" | 6447 if test "x$ac_cv_func_mach_absolute_time" = xyes; then : |
7548 if test "x$ac_cv_func_explicit_bzero" = xyes | 6448 cat >>confdefs.h <<_ACEOF |
7549 then : | 6449 #define HAVE_MACH_ABSOLUTE_TIME 1 |
7550 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h | 6450 _ACEOF |
7551 | 6451 |
7552 fi | 6452 fi |
7553 ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s" | 6453 done |
7554 if test "x$ac_cv_func_memset_s" = xyes | 6454 |
7555 then : | 6455 |
7556 printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h | 6456 for ac_func in explicit_bzero memset_s getrandom |
7557 | 6457 do : |
7558 fi | 6458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7559 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" | 6459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7560 if test "x$ac_cv_func_getrandom" = xyes | 6460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7561 then : | 6461 cat >>confdefs.h <<_ACEOF |
7562 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h | 6462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7563 | 6463 _ACEOF |
7564 fi | 6464 |
6465 fi | |
6466 done | |
7565 | 6467 |
7566 | 6468 |
7567 # Check whether --enable-bundled-libtom was given. | 6469 # Check whether --enable-bundled-libtom was given. |
7568 if test ${enable_bundled_libtom+y} | 6470 if test "${enable_bundled_libtom+set}" = set; then : |
7569 then : | |
7570 enableval=$enable_bundled_libtom; | 6471 enableval=$enable_bundled_libtom; |
7571 if test "x$enableval" = "xyes"; then | 6472 if test "x$enableval" = "xyes"; then |
7572 BUNDLED_LIBTOM=1 | 6473 BUNDLED_LIBTOM=1 |
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5 | 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5 |
7574 printf "%s\n" "$as_me: Forcing bundled libtom*" >&6;} | 6475 $as_echo "$as_me: Forcing bundled libtom*" >&6;} |
7575 else | 6476 else |
7576 BUNDLED_LIBTOM=0 | 6477 BUNDLED_LIBTOM=0 |
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5 | 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5 |
7578 printf %s "checking for mp_to_ubin in -ltommath... " >&6; } | 6479 $as_echo_n "checking for mp_to_ubin in -ltommath... " >&6; } |
7579 if test ${ac_cv_lib_tommath_mp_to_ubin+y} | 6480 if ${ac_cv_lib_tommath_mp_to_ubin+:} false; then : |
7580 then : | 6481 $as_echo_n "(cached) " >&6 |
7581 printf %s "(cached) " >&6 | 6482 else |
7582 else $as_nop | |
7583 ac_check_lib_save_LIBS=$LIBS | 6483 ac_check_lib_save_LIBS=$LIBS |
7584 LIBS="-ltommath $LIBS" | 6484 LIBS="-ltommath $LIBS" |
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7586 /* end confdefs.h. */ | 6486 /* end confdefs.h. */ |
7587 | 6487 |
7588 /* Override any GCC internal prototype to avoid an error. | 6488 /* Override any GCC internal prototype to avoid an error. |
7589 Use char because int might match the return type of a GCC | 6489 Use char because int might match the return type of a GCC |
7590 builtin and then its argument prototype would still apply. */ | 6490 builtin and then its argument prototype would still apply. */ |
6491 #ifdef __cplusplus | |
6492 extern "C" | |
6493 #endif | |
7591 char mp_to_ubin (); | 6494 char mp_to_ubin (); |
7592 int | 6495 int |
7593 main (void) | 6496 main () |
7594 { | 6497 { |
7595 return mp_to_ubin (); | 6498 return mp_to_ubin (); |
7596 ; | 6499 ; |
7597 return 0; | 6500 return 0; |
7598 } | 6501 } |
7599 _ACEOF | 6502 _ACEOF |
7600 if ac_fn_c_try_link "$LINENO" | 6503 if ac_fn_c_try_link "$LINENO"; then : |
7601 then : | |
7602 ac_cv_lib_tommath_mp_to_ubin=yes | 6504 ac_cv_lib_tommath_mp_to_ubin=yes |
7603 else $as_nop | 6505 else |
7604 ac_cv_lib_tommath_mp_to_ubin=no | 6506 ac_cv_lib_tommath_mp_to_ubin=no |
7605 fi | 6507 fi |
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 6508 rm -f core conftest.err conftest.$ac_objext \ |
7607 conftest$ac_exeext conftest.$ac_ext | 6509 conftest$ac_exeext conftest.$ac_ext |
7608 LIBS=$ac_check_lib_save_LIBS | 6510 LIBS=$ac_check_lib_save_LIBS |
7609 fi | 6511 fi |
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5 | 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5 |
7611 printf "%s\n" "$ac_cv_lib_tommath_mp_to_ubin" >&6; } | 6513 $as_echo "$ac_cv_lib_tommath_mp_to_ubin" >&6; } |
7612 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes | 6514 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes; then : |
7613 then : | |
7614 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS" | 6515 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS" |
7615 else $as_nop | 6516 else |
7616 as_fn_error $? "Missing/old system libtommath and --disable-bundled-libtom was specified" "$LINENO" 5 | 6517 as_fn_error $? "Missing/old system libtommath and --disable-bundled-libtom was specified" "$LINENO" 5 |
7617 fi | 6518 fi |
7618 | 6519 |
7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5 | 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5 |
7620 printf %s "checking for poly1305_init in -ltomcrypt... " >&6; } | 6521 $as_echo_n "checking for poly1305_init in -ltomcrypt... " >&6; } |
7621 if test ${ac_cv_lib_tomcrypt_poly1305_init+y} | 6522 if ${ac_cv_lib_tomcrypt_poly1305_init+:} false; then : |
7622 then : | 6523 $as_echo_n "(cached) " >&6 |
7623 printf %s "(cached) " >&6 | 6524 else |
7624 else $as_nop | |
7625 ac_check_lib_save_LIBS=$LIBS | 6525 ac_check_lib_save_LIBS=$LIBS |
7626 LIBS="-ltomcrypt $LIBS" | 6526 LIBS="-ltomcrypt $LIBS" |
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7628 /* end confdefs.h. */ | 6528 /* end confdefs.h. */ |
7629 | 6529 |
7630 /* Override any GCC internal prototype to avoid an error. | 6530 /* Override any GCC internal prototype to avoid an error. |
7631 Use char because int might match the return type of a GCC | 6531 Use char because int might match the return type of a GCC |
7632 builtin and then its argument prototype would still apply. */ | 6532 builtin and then its argument prototype would still apply. */ |
6533 #ifdef __cplusplus | |
6534 extern "C" | |
6535 #endif | |
7633 char poly1305_init (); | 6536 char poly1305_init (); |
7634 int | 6537 int |
7635 main (void) | 6538 main () |
7636 { | 6539 { |
7637 return poly1305_init (); | 6540 return poly1305_init (); |
7638 ; | 6541 ; |
7639 return 0; | 6542 return 0; |
7640 } | 6543 } |
7641 _ACEOF | 6544 _ACEOF |
7642 if ac_fn_c_try_link "$LINENO" | 6545 if ac_fn_c_try_link "$LINENO"; then : |
7643 then : | |
7644 ac_cv_lib_tomcrypt_poly1305_init=yes | 6546 ac_cv_lib_tomcrypt_poly1305_init=yes |
7645 else $as_nop | 6547 else |
7646 ac_cv_lib_tomcrypt_poly1305_init=no | 6548 ac_cv_lib_tomcrypt_poly1305_init=no |
7647 fi | 6549 fi |
7648 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 6550 rm -f core conftest.err conftest.$ac_objext \ |
7649 conftest$ac_exeext conftest.$ac_ext | 6551 conftest$ac_exeext conftest.$ac_ext |
7650 LIBS=$ac_check_lib_save_LIBS | 6552 LIBS=$ac_check_lib_save_LIBS |
7651 fi | 6553 fi |
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5 | 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5 |
7653 printf "%s\n" "$ac_cv_lib_tomcrypt_poly1305_init" >&6; } | 6555 $as_echo "$ac_cv_lib_tomcrypt_poly1305_init" >&6; } |
7654 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes | 6556 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes; then : |
7655 then : | |
7656 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS" | 6557 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS" |
7657 else $as_nop | 6558 else |
7658 as_fn_error $? "Missing/old system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5 | 6559 as_fn_error $? "Missing/old system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5 |
7659 fi | 6560 fi |
7660 | 6561 |
7661 fi | 6562 fi |
7662 | 6563 |
7663 else $as_nop | 6564 else |
7664 | 6565 |
7665 BUNDLED_LIBTOM=0 | 6566 BUNDLED_LIBTOM=0 |
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5 | 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_to_ubin in -ltommath" >&5 |
7667 printf %s "checking for mp_to_ubin in -ltommath... " >&6; } | 6568 $as_echo_n "checking for mp_to_ubin in -ltommath... " >&6; } |
7668 if test ${ac_cv_lib_tommath_mp_to_ubin+y} | 6569 if ${ac_cv_lib_tommath_mp_to_ubin+:} false; then : |
7669 then : | 6570 $as_echo_n "(cached) " >&6 |
7670 printf %s "(cached) " >&6 | 6571 else |
7671 else $as_nop | |
7672 ac_check_lib_save_LIBS=$LIBS | 6572 ac_check_lib_save_LIBS=$LIBS |
7673 LIBS="-ltommath $LIBS" | 6573 LIBS="-ltommath $LIBS" |
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7675 /* end confdefs.h. */ | 6575 /* end confdefs.h. */ |
7676 | 6576 |
7677 /* Override any GCC internal prototype to avoid an error. | 6577 /* Override any GCC internal prototype to avoid an error. |
7678 Use char because int might match the return type of a GCC | 6578 Use char because int might match the return type of a GCC |
7679 builtin and then its argument prototype would still apply. */ | 6579 builtin and then its argument prototype would still apply. */ |
6580 #ifdef __cplusplus | |
6581 extern "C" | |
6582 #endif | |
7680 char mp_to_ubin (); | 6583 char mp_to_ubin (); |
7681 int | 6584 int |
7682 main (void) | 6585 main () |
7683 { | 6586 { |
7684 return mp_to_ubin (); | 6587 return mp_to_ubin (); |
7685 ; | 6588 ; |
7686 return 0; | 6589 return 0; |
7687 } | 6590 } |
7688 _ACEOF | 6591 _ACEOF |
7689 if ac_fn_c_try_link "$LINENO" | 6592 if ac_fn_c_try_link "$LINENO"; then : |
7690 then : | |
7691 ac_cv_lib_tommath_mp_to_ubin=yes | 6593 ac_cv_lib_tommath_mp_to_ubin=yes |
7692 else $as_nop | 6594 else |
7693 ac_cv_lib_tommath_mp_to_ubin=no | 6595 ac_cv_lib_tommath_mp_to_ubin=no |
7694 fi | 6596 fi |
7695 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 6597 rm -f core conftest.err conftest.$ac_objext \ |
7696 conftest$ac_exeext conftest.$ac_ext | 6598 conftest$ac_exeext conftest.$ac_ext |
7697 LIBS=$ac_check_lib_save_LIBS | 6599 LIBS=$ac_check_lib_save_LIBS |
7698 fi | 6600 fi |
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5 | 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_to_ubin" >&5 |
7700 printf "%s\n" "$ac_cv_lib_tommath_mp_to_ubin" >&6; } | 6602 $as_echo "$ac_cv_lib_tommath_mp_to_ubin" >&6; } |
7701 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes | 6603 if test "x$ac_cv_lib_tommath_mp_to_ubin" = xyes; then : |
7702 then : | |
7703 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS" | 6604 LIBTOM_LIBS="-ltommath $LIBTOM_LIBS" |
7704 else $as_nop | 6605 else |
7705 BUNDLED_LIBTOM=1 | 6606 BUNDLED_LIBTOM=1 |
7706 fi | 6607 fi |
7707 | 6608 |
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5 | 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poly1305_init in -ltomcrypt" >&5 |
7709 printf %s "checking for poly1305_init in -ltomcrypt... " >&6; } | 6610 $as_echo_n "checking for poly1305_init in -ltomcrypt... " >&6; } |
7710 if test ${ac_cv_lib_tomcrypt_poly1305_init+y} | 6611 if ${ac_cv_lib_tomcrypt_poly1305_init+:} false; then : |
7711 then : | 6612 $as_echo_n "(cached) " >&6 |
7712 printf %s "(cached) " >&6 | 6613 else |
7713 else $as_nop | |
7714 ac_check_lib_save_LIBS=$LIBS | 6614 ac_check_lib_save_LIBS=$LIBS |
7715 LIBS="-ltomcrypt $LIBS" | 6615 LIBS="-ltomcrypt $LIBS" |
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7717 /* end confdefs.h. */ | 6617 /* end confdefs.h. */ |
7718 | 6618 |
7719 /* Override any GCC internal prototype to avoid an error. | 6619 /* Override any GCC internal prototype to avoid an error. |
7720 Use char because int might match the return type of a GCC | 6620 Use char because int might match the return type of a GCC |
7721 builtin and then its argument prototype would still apply. */ | 6621 builtin and then its argument prototype would still apply. */ |
6622 #ifdef __cplusplus | |
6623 extern "C" | |
6624 #endif | |
7722 char poly1305_init (); | 6625 char poly1305_init (); |
7723 int | 6626 int |
7724 main (void) | 6627 main () |
7725 { | 6628 { |
7726 return poly1305_init (); | 6629 return poly1305_init (); |
7727 ; | 6630 ; |
7728 return 0; | 6631 return 0; |
7729 } | 6632 } |
7730 _ACEOF | 6633 _ACEOF |
7731 if ac_fn_c_try_link "$LINENO" | 6634 if ac_fn_c_try_link "$LINENO"; then : |
7732 then : | |
7733 ac_cv_lib_tomcrypt_poly1305_init=yes | 6635 ac_cv_lib_tomcrypt_poly1305_init=yes |
7734 else $as_nop | 6636 else |
7735 ac_cv_lib_tomcrypt_poly1305_init=no | 6637 ac_cv_lib_tomcrypt_poly1305_init=no |
7736 fi | 6638 fi |
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 6639 rm -f core conftest.err conftest.$ac_objext \ |
7738 conftest$ac_exeext conftest.$ac_ext | 6640 conftest$ac_exeext conftest.$ac_ext |
7739 LIBS=$ac_check_lib_save_LIBS | 6641 LIBS=$ac_check_lib_save_LIBS |
7740 fi | 6642 fi |
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5 | 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_poly1305_init" >&5 |
7742 printf "%s\n" "$ac_cv_lib_tomcrypt_poly1305_init" >&6; } | 6644 $as_echo "$ac_cv_lib_tomcrypt_poly1305_init" >&6; } |
7743 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes | 6645 if test "x$ac_cv_lib_tomcrypt_poly1305_init" = xyes; then : |
7744 then : | |
7745 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS" | 6646 LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS" |
7746 else $as_nop | 6647 else |
7747 BUNDLED_LIBTOM=1 | 6648 BUNDLED_LIBTOM=1 |
7748 fi | 6649 fi |
7749 | 6650 |
7750 | 6651 |
7751 | 6652 |
7752 fi | 6653 fi |
7753 | 6654 |
7754 | 6655 |
7755 if test $BUNDLED_LIBTOM = 1 ; then | 6656 if test $BUNDLED_LIBTOM = 1 ; then |
7756 | 6657 |
7757 printf "%s\n" "#define BUNDLED_LIBTOM 1" >>confdefs.h | 6658 $as_echo "#define BUNDLED_LIBTOM 1" >>confdefs.h |
7758 | 6659 |
7759 fi | 6660 fi |
7760 | 6661 |
7761 | 6662 |
7762 | 6663 |
7763 | 6664 |
7764 | 6665 |
7765 # Check whether --enable-lastlog was given. | 6666 # Check whether --enable-lastlog was given. |
7766 if test ${enable_lastlog+y} | 6667 if test "${enable_lastlog+set}" = set; then : |
7767 then : | |
7768 enableval=$enable_lastlog; | 6668 enableval=$enable_lastlog; |
7769 if test "x$enableval" = "xno" ; then | 6669 if test "x$enableval" = "xno" ; then |
7770 | 6670 |
7771 printf "%s\n" "#define DISABLE_LASTLOG 1" >>confdefs.h | 6671 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
7772 | 6672 |
7773 fi | 6673 fi |
7774 | 6674 |
7775 | 6675 |
7776 fi | 6676 fi |
7777 | 6677 |
7778 # Check whether --enable-utmp was given. | 6678 # Check whether --enable-utmp was given. |
7779 if test ${enable_utmp+y} | 6679 if test "${enable_utmp+set}" = set; then : |
7780 then : | |
7781 enableval=$enable_utmp; | 6680 enableval=$enable_utmp; |
7782 if test "x$enableval" = "xno" ; then | 6681 if test "x$enableval" = "xno" ; then |
7783 | 6682 |
7784 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h | 6683 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
7785 | 6684 |
7786 fi | 6685 fi |
7787 | 6686 |
7788 | 6687 |
7789 fi | 6688 fi |
7790 | 6689 |
7791 # Check whether --enable-utmpx was given. | 6690 # Check whether --enable-utmpx was given. |
7792 if test ${enable_utmpx+y} | 6691 if test "${enable_utmpx+set}" = set; then : |
7793 then : | |
7794 enableval=$enable_utmpx; | 6692 enableval=$enable_utmpx; |
7795 if test "x$enableval" = "xno" ; then | 6693 if test "x$enableval" = "xno" ; then |
7796 | 6694 |
7797 printf "%s\n" "#define DISABLE_UTMPX 1" >>confdefs.h | 6695 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h |
7798 | 6696 |
7799 fi | 6697 fi |
7800 | 6698 |
7801 | 6699 |
7802 fi | 6700 fi |
7803 | 6701 |
7804 # Check whether --enable-wtmp was given. | 6702 # Check whether --enable-wtmp was given. |
7805 if test ${enable_wtmp+y} | 6703 if test "${enable_wtmp+set}" = set; then : |
7806 then : | |
7807 enableval=$enable_wtmp; | 6704 enableval=$enable_wtmp; |
7808 if test "x$enableval" = "xno" ; then | 6705 if test "x$enableval" = "xno" ; then |
7809 | 6706 |
7810 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h | 6707 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
7811 | 6708 |
7812 fi | 6709 fi |
7813 | 6710 |
7814 | 6711 |
7815 fi | 6712 fi |
7816 | 6713 |
7817 # Check whether --enable-wtmpx was given. | 6714 # Check whether --enable-wtmpx was given. |
7818 if test ${enable_wtmpx+y} | 6715 if test "${enable_wtmpx+set}" = set; then : |
7819 then : | |
7820 enableval=$enable_wtmpx; | 6716 enableval=$enable_wtmpx; |
7821 if test "x$enableval" = "xno" ; then | 6717 if test "x$enableval" = "xno" ; then |
7822 | 6718 |
7823 printf "%s\n" "#define DISABLE_WTMPX 1" >>confdefs.h | 6719 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
7824 | 6720 |
7825 fi | 6721 fi |
7826 | 6722 |
7827 | 6723 |
7828 fi | 6724 fi |
7829 | 6725 |
7830 # Check whether --enable-loginfunc was given. | 6726 # Check whether --enable-loginfunc was given. |
7831 if test ${enable_loginfunc+y} | 6727 if test "${enable_loginfunc+set}" = set; then : |
7832 then : | |
7833 enableval=$enable_loginfunc; no_loginfunc_check=1 | 6728 enableval=$enable_loginfunc; no_loginfunc_check=1 |
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5 | 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5 |
7835 printf "%s\n" "$as_me: Not using login() etc" >&6;} | 6730 $as_echo "$as_me: Not using login() etc" >&6;} |
7836 | 6731 |
7837 fi | 6732 fi |
7838 | 6733 |
7839 # Check whether --enable-pututline was given. | 6734 # Check whether --enable-pututline was given. |
7840 if test ${enable_pututline+y} | 6735 if test "${enable_pututline+set}" = set; then : |
7841 then : | |
7842 enableval=$enable_pututline; | 6736 enableval=$enable_pututline; |
7843 if test "x$enableval" = "xno" ; then | 6737 if test "x$enableval" = "xno" ; then |
7844 | 6738 |
7845 printf "%s\n" "#define DISABLE_PUTUTLINE 1" >>confdefs.h | 6739 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h |
7846 | 6740 |
7847 fi | 6741 fi |
7848 | 6742 |
7849 | 6743 |
7850 fi | 6744 fi |
7851 | 6745 |
7852 # Check whether --enable-pututxline was given. | 6746 # Check whether --enable-pututxline was given. |
7853 if test ${enable_pututxline+y} | 6747 if test "${enable_pututxline+set}" = set; then : |
7854 then : | |
7855 enableval=$enable_pututxline; | 6748 enableval=$enable_pututxline; |
7856 if test "x$enableval" = "xno" ; then | 6749 if test "x$enableval" = "xno" ; then |
7857 | 6750 |
7858 printf "%s\n" "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | 6751 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h |
7859 | 6752 |
7860 fi | 6753 fi |
7861 | 6754 |
7862 | 6755 |
7863 fi | 6756 fi |
7864 | 6757 |
7865 | 6758 |
7866 # Check whether --with-lastlog was given. | 6759 # Check whether --with-lastlog was given. |
7867 if test ${with_lastlog+y} | 6760 if test "${with_lastlog+set}" = set; then : |
7868 then : | |
7869 withval=$with_lastlog; | 6761 withval=$with_lastlog; |
7870 if test "x$withval" = "xno" ; then | 6762 if test "x$withval" = "xno" ; then |
7871 printf "%s\n" "#define DISABLE_LASTLOG 1" >>confdefs.h | 6763 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
7872 | 6764 |
7873 else | 6765 else |
7874 conf_lastlog_location=$withval | 6766 conf_lastlog_location=$withval |
7875 fi | 6767 fi |
7876 | 6768 |
7877 | 6769 |
7878 fi | 6770 fi |
7879 | 6771 |
7880 | 6772 |
7881 if test -z "$no_loginfunc_check"; then | 6773 if test -z "$no_loginfunc_check"; then |
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 |
7883 printf %s "checking for library containing login... " >&6; } | 6775 $as_echo_n "checking for library containing login... " >&6; } |
7884 if test ${ac_cv_search_login+y} | 6776 if ${ac_cv_search_login+:} false; then : |
7885 then : | 6777 $as_echo_n "(cached) " >&6 |
7886 printf %s "(cached) " >&6 | 6778 else |
7887 else $as_nop | |
7888 ac_func_search_save_LIBS=$LIBS | 6779 ac_func_search_save_LIBS=$LIBS |
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7890 /* end confdefs.h. */ | 6781 /* end confdefs.h. */ |
7891 | 6782 |
7892 /* Override any GCC internal prototype to avoid an error. | 6783 /* Override any GCC internal prototype to avoid an error. |
7893 Use char because int might match the return type of a GCC | 6784 Use char because int might match the return type of a GCC |
7894 builtin and then its argument prototype would still apply. */ | 6785 builtin and then its argument prototype would still apply. */ |
6786 #ifdef __cplusplus | |
6787 extern "C" | |
6788 #endif | |
7895 char login (); | 6789 char login (); |
7896 int | 6790 int |
7897 main (void) | 6791 main () |
7898 { | 6792 { |
7899 return login (); | 6793 return login (); |
7900 ; | 6794 ; |
7901 return 0; | 6795 return 0; |
7902 } | 6796 } |
7903 _ACEOF | 6797 _ACEOF |
7904 for ac_lib in '' util bsd | 6798 for ac_lib in '' util bsd; do |
7905 do | |
7906 if test -z "$ac_lib"; then | 6799 if test -z "$ac_lib"; then |
7907 ac_res="none required" | 6800 ac_res="none required" |
7908 else | 6801 else |
7909 ac_res=-l$ac_lib | 6802 ac_res=-l$ac_lib |
7910 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 6803 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
7911 fi | 6804 fi |
7912 if ac_fn_c_try_link "$LINENO" | 6805 if ac_fn_c_try_link "$LINENO"; then : |
7913 then : | |
7914 ac_cv_search_login=$ac_res | 6806 ac_cv_search_login=$ac_res |
7915 fi | 6807 fi |
7916 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 6808 rm -f core conftest.err conftest.$ac_objext \ |
7917 conftest$ac_exeext | 6809 conftest$ac_exeext |
7918 if test ${ac_cv_search_login+y} | 6810 if ${ac_cv_search_login+:} false; then : |
7919 then : | |
7920 break | 6811 break |
7921 fi | 6812 fi |
7922 done | 6813 done |
7923 if test ${ac_cv_search_login+y} | 6814 if ${ac_cv_search_login+:} false; then : |
7924 then : | 6815 |
7925 | 6816 else |
7926 else $as_nop | |
7927 ac_cv_search_login=no | 6817 ac_cv_search_login=no |
7928 fi | 6818 fi |
7929 rm conftest.$ac_ext | 6819 rm conftest.$ac_ext |
7930 LIBS=$ac_func_search_save_LIBS | 6820 LIBS=$ac_func_search_save_LIBS |
7931 fi | 6821 fi |
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 |
7933 printf "%s\n" "$ac_cv_search_login" >&6; } | 6823 $as_echo "$ac_cv_search_login" >&6; } |
7934 ac_res=$ac_cv_search_login | 6824 ac_res=$ac_cv_search_login |
7935 if test "$ac_res" != no | 6825 if test "$ac_res" != no; then : |
7936 then : | |
7937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 6826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
7938 | 6827 |
7939 printf "%s\n" "#define HAVE_LOGIN 1" >>confdefs.h | 6828 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h |
7940 | 6829 |
7941 fi | 6830 fi |
7942 | 6831 |
7943 ac_fn_c_check_func "$LINENO" "logout" "ac_cv_func_logout" | 6832 for ac_func in logout updwtmp logwtmp |
7944 if test "x$ac_cv_func_logout" = xyes | 6833 do : |
7945 then : | 6834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7946 printf "%s\n" "#define HAVE_LOGOUT 1" >>confdefs.h | 6835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7947 | 6836 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7948 fi | 6837 cat >>confdefs.h <<_ACEOF |
7949 ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp" | 6838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7950 if test "x$ac_cv_func_updwtmp" = xyes | 6839 _ACEOF |
7951 then : | 6840 |
7952 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h | 6841 fi |
7953 | 6842 done |
7954 fi | 6843 |
7955 ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp" | 6844 fi |
7956 if test "x$ac_cv_func_logwtmp" = xyes | 6845 |
7957 then : | 6846 |
7958 printf "%s\n" "#define HAVE_LOGWTMP 1" >>confdefs.h | 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 |
7959 | 6848 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } |
7960 fi | |
7961 | |
7962 fi | |
7963 | |
7964 | |
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | |
7966 printf %s "checking if your system defines LASTLOG_FILE... " >&6; } | |
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7968 /* end confdefs.h. */ | 6850 /* end confdefs.h. */ |
7969 | 6851 |
7970 #include <sys/types.h> | 6852 #include <sys/types.h> |
7971 #include <utmp.h> | 6853 #include <utmp.h> |
7978 #ifdef HAVE_LOGIN_H | 6860 #ifdef HAVE_LOGIN_H |
7979 # include <login.h> | 6861 # include <login.h> |
7980 #endif | 6862 #endif |
7981 | 6863 |
7982 int | 6864 int |
7983 main (void) | 6865 main () |
7984 { | 6866 { |
7985 char *lastlog = LASTLOG_FILE; | 6867 char *lastlog = LASTLOG_FILE; |
7986 ; | 6868 ; |
7987 return 0; | 6869 return 0; |
7988 } | 6870 } |
7989 _ACEOF | 6871 _ACEOF |
7990 if ac_fn_c_try_compile "$LINENO" | 6872 if ac_fn_c_try_compile "$LINENO"; then : |
7991 then : | 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 6874 $as_echo "yes" >&6; } |
7993 printf "%s\n" "yes" >&6; } | 6875 else |
7994 else $as_nop | 6876 |
7995 | 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 6878 $as_echo "no" >&6; } |
7997 printf "%s\n" "no" >&6; } | 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 |
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | 6880 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } |
7999 printf %s "checking if your system defines _PATH_LASTLOG... " >&6; } | |
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8001 /* end confdefs.h. */ | 6882 /* end confdefs.h. */ |
8002 | 6883 |
8003 #include <sys/types.h> | 6884 #include <sys/types.h> |
8004 #include <utmp.h> | 6885 #include <utmp.h> |
8008 #ifdef HAVE_PATHS_H | 6889 #ifdef HAVE_PATHS_H |
8009 # include <paths.h> | 6890 # include <paths.h> |
8010 #endif | 6891 #endif |
8011 | 6892 |
8012 int | 6893 int |
8013 main (void) | 6894 main () |
8014 { | 6895 { |
8015 char *lastlog = _PATH_LASTLOG; | 6896 char *lastlog = _PATH_LASTLOG; |
8016 ; | 6897 ; |
8017 return 0; | 6898 return 0; |
8018 } | 6899 } |
8019 _ACEOF | 6900 _ACEOF |
8020 if ac_fn_c_try_compile "$LINENO" | 6901 if ac_fn_c_try_compile "$LINENO"; then : |
8021 then : | 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 6903 $as_echo "yes" >&6; } |
8023 printf "%s\n" "yes" >&6; } | 6904 else |
8024 else $as_nop | 6905 |
8025 | 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 6907 $as_echo "no" >&6; } |
8027 printf "%s\n" "no" >&6; } | |
8028 system_lastlog_path=no | 6908 system_lastlog_path=no |
8029 | 6909 |
8030 fi | 6910 fi |
8031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8032 | 6912 |
8033 | 6913 |
8034 fi | 6914 fi |
8035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8036 | 6916 |
8037 if test -z "$conf_lastlog_location"; then | 6917 if test -z "$conf_lastlog_location"; then |
8038 if test x"$system_lastlog_path" = x"no" ; then | 6918 if test x"$system_lastlog_path" = x"no" ; then |
8039 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | 6919 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
8040 if (test -d "$f" || test -f "$f") ; then | 6920 if (test -d "$f" || test -f "$f") ; then |
8041 conf_lastlog_location=$f | 6921 conf_lastlog_location=$f |
8042 fi | 6922 fi |
8043 done | 6923 done |
8044 if test -z "$conf_lastlog_location"; then | 6924 if test -z "$conf_lastlog_location"; then |
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 |
8046 printf "%s\n" "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | 6926 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} |
8047 fi | 6927 fi |
8048 fi | 6928 fi |
8049 fi | 6929 fi |
8050 | 6930 |
8051 if test -n "$conf_lastlog_location"; then | 6931 if test -n "$conf_lastlog_location"; then |
8052 | 6932 |
8053 printf "%s\n" "#define CONF_LASTLOG_FILE \"$conf_lastlog_location\"" >>confdefs.h | 6933 cat >>confdefs.h <<_ACEOF |
8054 | 6934 #define CONF_LASTLOG_FILE "$conf_lastlog_location" |
8055 fi | 6935 _ACEOF |
8056 | 6936 |
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | 6937 fi |
8058 printf %s "checking if your system defines UTMP_FILE... " >&6; } | 6938 |
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | |
6940 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | |
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8060 /* end confdefs.h. */ | 6942 /* end confdefs.h. */ |
8061 | 6943 |
8062 #include <sys/types.h> | 6944 #include <sys/types.h> |
8063 #include <utmp.h> | 6945 #include <utmp.h> |
8064 #ifdef HAVE_PATHS_H | 6946 #ifdef HAVE_PATHS_H |
8065 # include <paths.h> | 6947 # include <paths.h> |
8066 #endif | 6948 #endif |
8067 | 6949 |
8068 int | 6950 int |
8069 main (void) | 6951 main () |
8070 { | 6952 { |
8071 char *utmp = UTMP_FILE; | 6953 char *utmp = UTMP_FILE; |
8072 ; | 6954 ; |
8073 return 0; | 6955 return 0; |
8074 } | 6956 } |
8075 _ACEOF | 6957 _ACEOF |
8076 if ac_fn_c_try_compile "$LINENO" | 6958 if ac_fn_c_try_compile "$LINENO"; then : |
8077 then : | 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 6960 $as_echo "yes" >&6; } |
8079 printf "%s\n" "yes" >&6; } | 6961 else |
8080 else $as_nop | 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 6963 $as_echo "no" >&6; } |
8082 printf "%s\n" "no" >&6; } | |
8083 system_utmp_path=no | 6964 system_utmp_path=no |
8084 | 6965 |
8085 fi | 6966 fi |
8086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8087 if test -z "$conf_utmp_location"; then | 6968 if test -z "$conf_utmp_location"; then |
8088 if test x"$system_utmp_path" = x"no" ; then | 6969 if test x"$system_utmp_path" = x"no" ; then |
8089 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | 6970 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do |
8090 if test -f $f ; then | 6971 if test -f $f ; then |
8091 conf_utmp_location=$f | 6972 conf_utmp_location=$f |
8092 fi | 6973 fi |
8093 done | 6974 done |
8094 if test -z "$conf_utmp_location"; then | 6975 if test -z "$conf_utmp_location"; then |
8095 printf "%s\n" "#define DISABLE_UTMP 1" >>confdefs.h | 6976 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
8096 | 6977 |
8097 fi | 6978 fi |
8098 fi | 6979 fi |
8099 fi | 6980 fi |
8100 if test -n "$conf_utmp_location"; then | 6981 if test -n "$conf_utmp_location"; then |
8101 | 6982 |
8102 printf "%s\n" "#define CONF_UTMP_FILE \"$conf_utmp_location\"" >>confdefs.h | 6983 cat >>confdefs.h <<_ACEOF |
8103 | 6984 #define CONF_UTMP_FILE "$conf_utmp_location" |
8104 fi | 6985 _ACEOF |
8105 | 6986 |
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | 6987 fi |
8107 printf %s "checking if your system defines WTMP_FILE... " >&6; } | 6988 |
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | |
6990 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | |
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8109 /* end confdefs.h. */ | 6992 /* end confdefs.h. */ |
8110 | 6993 |
8111 #include <sys/types.h> | 6994 #include <sys/types.h> |
8112 #ifdef HAVE_UTMP_H | 6995 #ifdef HAVE_UTMP_H |
8115 #ifdef HAVE_PATHS_H | 6998 #ifdef HAVE_PATHS_H |
8116 # include <paths.h> | 6999 # include <paths.h> |
8117 #endif | 7000 #endif |
8118 | 7001 |
8119 int | 7002 int |
8120 main (void) | 7003 main () |
8121 { | 7004 { |
8122 char *wtmp = WTMP_FILE; | 7005 char *wtmp = WTMP_FILE; |
8123 ; | 7006 ; |
8124 return 0; | 7007 return 0; |
8125 } | 7008 } |
8126 _ACEOF | 7009 _ACEOF |
8127 if ac_fn_c_try_compile "$LINENO" | 7010 if ac_fn_c_try_compile "$LINENO"; then : |
8128 then : | 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 7012 $as_echo "yes" >&6; } |
8130 printf "%s\n" "yes" >&6; } | 7013 else |
8131 else $as_nop | 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 7015 $as_echo "no" >&6; } |
8133 printf "%s\n" "no" >&6; } | |
8134 system_wtmp_path=no | 7016 system_wtmp_path=no |
8135 | 7017 |
8136 fi | 7018 fi |
8137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8138 if test -z "$conf_wtmp_location"; then | 7020 if test -z "$conf_wtmp_location"; then |
8139 if test x"$system_wtmp_path" = x"no" ; then | 7021 if test x"$system_wtmp_path" = x"no" ; then |
8140 for f in /usr/adm/wtmp /var/log/wtmp; do | 7022 for f in /usr/adm/wtmp /var/log/wtmp; do |
8141 if test -f $f ; then | 7023 if test -f $f ; then |
8142 conf_wtmp_location=$f | 7024 conf_wtmp_location=$f |
8143 fi | 7025 fi |
8144 done | 7026 done |
8145 if test -z "$conf_wtmp_location"; then | 7027 if test -z "$conf_wtmp_location"; then |
8146 printf "%s\n" "#define DISABLE_WTMP 1" >>confdefs.h | 7028 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
8147 | 7029 |
8148 fi | 7030 fi |
8149 fi | 7031 fi |
8150 fi | 7032 fi |
8151 if test -n "$conf_wtmp_location"; then | 7033 if test -n "$conf_wtmp_location"; then |
8152 | 7034 |
8153 printf "%s\n" "#define CONF_WTMP_FILE \"$conf_wtmp_location\"" >>confdefs.h | 7035 cat >>confdefs.h <<_ACEOF |
8154 | 7036 #define CONF_WTMP_FILE "$conf_wtmp_location" |
8155 fi | 7037 _ACEOF |
8156 | 7038 |
8157 | 7039 fi |
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5 | 7040 |
8159 printf %s "checking if your system defines UTMPX_FILE... " >&6; } | 7041 |
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5 | |
7043 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; } | |
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8161 /* end confdefs.h. */ | 7045 /* end confdefs.h. */ |
8162 | 7046 |
8163 #include <sys/types.h> | 7047 #include <sys/types.h> |
8164 #include <utmp.h> | 7048 #include <utmp.h> |
8168 #ifdef HAVE_PATHS_H | 7052 #ifdef HAVE_PATHS_H |
8169 # include <paths.h> | 7053 # include <paths.h> |
8170 #endif | 7054 #endif |
8171 | 7055 |
8172 int | 7056 int |
8173 main (void) | 7057 main () |
8174 { | 7058 { |
8175 char *utmpx = UTMPX_FILE; | 7059 char *utmpx = UTMPX_FILE; |
8176 ; | 7060 ; |
8177 return 0; | 7061 return 0; |
8178 } | 7062 } |
8179 _ACEOF | 7063 _ACEOF |
8180 if ac_fn_c_try_compile "$LINENO" | 7064 if ac_fn_c_try_compile "$LINENO"; then : |
8181 then : | 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 7066 $as_echo "yes" >&6; } |
8183 printf "%s\n" "yes" >&6; } | 7067 else |
8184 else $as_nop | 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 7069 $as_echo "no" >&6; } |
8186 printf "%s\n" "no" >&6; } | |
8187 system_utmpx_path=no | 7070 system_utmpx_path=no |
8188 | 7071 |
8189 fi | 7072 fi |
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8191 if test -z "$conf_utmpx_location"; then | 7074 if test -z "$conf_utmpx_location"; then |
8192 if test x"$system_utmpx_path" = x"no" ; then | 7075 if test x"$system_utmpx_path" = x"no" ; then |
8193 printf "%s\n" "#define DISABLE_UTMPX 1" >>confdefs.h | 7076 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h |
8194 | 7077 |
8195 fi | 7078 fi |
8196 else | 7079 else |
8197 | 7080 |
8198 printf "%s\n" "#define CONF_UTMPX_FILE \"$conf_utmpx_location\"" >>confdefs.h | 7081 cat >>confdefs.h <<_ACEOF |
8199 | 7082 #define CONF_UTMPX_FILE "$conf_utmpx_location" |
8200 fi | 7083 _ACEOF |
8201 | 7084 |
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | 7085 fi |
8203 printf %s "checking if your system defines WTMPX_FILE... " >&6; } | 7086 |
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | |
7088 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | |
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8205 /* end confdefs.h. */ | 7090 /* end confdefs.h. */ |
8206 | 7091 |
8207 #include <sys/types.h> | 7092 #include <sys/types.h> |
8208 #ifdef HAVE_UTMP_H | 7093 #ifdef HAVE_UTMP_H |
8214 #ifdef HAVE_PATHS_H | 7099 #ifdef HAVE_PATHS_H |
8215 # include <paths.h> | 7100 # include <paths.h> |
8216 #endif | 7101 #endif |
8217 | 7102 |
8218 int | 7103 int |
8219 main (void) | 7104 main () |
8220 { | 7105 { |
8221 char *wtmpx = WTMPX_FILE; | 7106 char *wtmpx = WTMPX_FILE; |
8222 ; | 7107 ; |
8223 return 0; | 7108 return 0; |
8224 } | 7109 } |
8225 _ACEOF | 7110 _ACEOF |
8226 if ac_fn_c_try_compile "$LINENO" | 7111 if ac_fn_c_try_compile "$LINENO"; then : |
8227 then : | 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 7113 $as_echo "yes" >&6; } |
8229 printf "%s\n" "yes" >&6; } | 7114 else |
8230 else $as_nop | 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 7116 $as_echo "no" >&6; } |
8232 printf "%s\n" "no" >&6; } | |
8233 system_wtmpx_path=no | 7117 system_wtmpx_path=no |
8234 | 7118 |
8235 fi | 7119 fi |
8236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8237 if test -z "$conf_wtmpx_location"; then | 7121 if test -z "$conf_wtmpx_location"; then |
8238 if test x"$system_wtmpx_path" = x"no" ; then | 7122 if test x"$system_wtmpx_path" = x"no" ; then |
8239 printf "%s\n" "#define DISABLE_WTMPX 1" >>confdefs.h | 7123 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
8240 | 7124 |
8241 fi | 7125 fi |
8242 else | 7126 else |
8243 | 7127 |
8244 printf "%s\n" "#define CONF_WTMPX_FILE \"$conf_wtmpx_location\"" >>confdefs.h | 7128 cat >>confdefs.h <<_ACEOF |
7129 #define CONF_WTMPX_FILE "$conf_wtmpx_location" | |
7130 _ACEOF | |
8245 | 7131 |
8246 fi | 7132 fi |
8247 | 7133 |
8248 # Checks for library functions. | 7134 # Checks for library functions. |
8249 if test $ac_cv_c_compiler_gnu = yes; then | 7135 if test $ac_cv_c_compiler_gnu = yes; then |
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
8251 printf %s "checking whether $CC needs -traditional... " >&6; } | 7137 $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
8252 if test ${ac_cv_prog_gcc_traditional+y} | 7138 if ${ac_cv_prog_gcc_traditional+:} false; then : |
8253 then : | 7139 $as_echo_n "(cached) " >&6 |
8254 printf %s "(cached) " >&6 | 7140 else |
8255 else $as_nop | |
8256 ac_pattern="Autoconf.*'x'" | 7141 ac_pattern="Autoconf.*'x'" |
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8258 /* end confdefs.h. */ | 7143 /* end confdefs.h. */ |
8259 #include <sgtty.h> | 7144 #include <sgtty.h> |
8260 Autoconf TIOCGETP | 7145 Autoconf TIOCGETP |
8261 _ACEOF | 7146 _ACEOF |
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 7147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8263 $EGREP "$ac_pattern" >/dev/null 2>&1 | 7148 $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
8264 then : | |
8265 ac_cv_prog_gcc_traditional=yes | 7149 ac_cv_prog_gcc_traditional=yes |
8266 else $as_nop | 7150 else |
8267 ac_cv_prog_gcc_traditional=no | 7151 ac_cv_prog_gcc_traditional=no |
8268 fi | 7152 fi |
8269 rm -rf conftest* | 7153 rm -f conftest* |
8270 | 7154 |
8271 | 7155 |
8272 if test $ac_cv_prog_gcc_traditional = no; then | 7156 if test $ac_cv_prog_gcc_traditional = no; then |
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8274 /* end confdefs.h. */ | 7158 /* end confdefs.h. */ |
8275 #include <termio.h> | 7159 #include <termio.h> |
8276 Autoconf TCGETA | 7160 Autoconf TCGETA |
8277 _ACEOF | 7161 _ACEOF |
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8279 $EGREP "$ac_pattern" >/dev/null 2>&1 | 7163 $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
8280 then : | |
8281 ac_cv_prog_gcc_traditional=yes | 7164 ac_cv_prog_gcc_traditional=yes |
8282 fi | 7165 fi |
8283 rm -rf conftest* | 7166 rm -f conftest* |
8284 | 7167 |
8285 fi | 7168 fi |
8286 fi | 7169 fi |
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
8288 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } | 7171 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
8289 if test $ac_cv_prog_gcc_traditional = yes; then | 7172 if test $ac_cv_prog_gcc_traditional = yes; then |
8290 CC="$CC -traditional" | 7173 CC="$CC -traditional" |
8291 fi | 7174 fi |
8292 fi | 7175 fi |
8293 | 7176 |
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
8295 printf %s "checking for working memcmp... " >&6; } | 7178 $as_echo_n "checking for working memcmp... " >&6; } |
8296 if test ${ac_cv_func_memcmp_working+y} | 7179 if ${ac_cv_func_memcmp_working+:} false; then : |
8297 then : | 7180 $as_echo_n "(cached) " >&6 |
8298 printf %s "(cached) " >&6 | 7181 else |
8299 else $as_nop | 7182 if test "$cross_compiling" = yes; then : |
8300 if test "$cross_compiling" = yes | |
8301 then : | |
8302 ac_cv_func_memcmp_working=no | 7183 ac_cv_func_memcmp_working=no |
8303 else $as_nop | 7184 else |
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8305 /* end confdefs.h. */ | 7186 /* end confdefs.h. */ |
8306 $ac_includes_default | 7187 $ac_includes_default |
8307 int | 7188 int |
8308 main (void) | 7189 main () |
8309 { | 7190 { |
8310 | 7191 |
8311 /* Some versions of memcmp are not 8-bit clean. */ | 7192 /* Some versions of memcmp are not 8-bit clean. */ |
8312 char c0 = '\100', c1 = '\200', c2 = '\201'; | 7193 char c0 = '\100', c1 = '\200', c2 = '\201'; |
8313 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | 7194 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
8334 | 7215 |
8335 ; | 7216 ; |
8336 return 0; | 7217 return 0; |
8337 } | 7218 } |
8338 _ACEOF | 7219 _ACEOF |
8339 if ac_fn_c_try_run "$LINENO" | 7220 if ac_fn_c_try_run "$LINENO"; then : |
8340 then : | |
8341 ac_cv_func_memcmp_working=yes | 7221 ac_cv_func_memcmp_working=yes |
8342 else $as_nop | 7222 else |
8343 ac_cv_func_memcmp_working=no | 7223 ac_cv_func_memcmp_working=no |
8344 fi | 7224 fi |
8345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 7225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8346 conftest.$ac_objext conftest.beam conftest.$ac_ext | 7226 conftest.$ac_objext conftest.beam conftest.$ac_ext |
8347 fi | 7227 fi |
8348 | 7228 |
8349 fi | 7229 fi |
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 | 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
8351 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; } | 7231 $as_echo "$ac_cv_func_memcmp_working" >&6; } |
8352 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | 7232 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8353 *" memcmp.$ac_objext "* ) ;; | 7233 *" memcmp.$ac_objext "* ) ;; |
8354 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | 7234 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8355 ;; | 7235 ;; |
8356 esac | 7236 esac |
8357 | 7237 |
8358 | 7238 |
8359 | 7239 for ac_header in sys/select.h sys/socket.h |
8360 | 7240 do : |
8361 | 7241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 | 7242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
8363 printf %s "checking types of arguments for select... " >&6; } | 7243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8364 if test ${ac_cv_func_select_args+y} | 7244 cat >>confdefs.h <<_ACEOF |
8365 then : | 7245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8366 printf %s "(cached) " >&6 | 7246 _ACEOF |
8367 else $as_nop | 7247 |
8368 ac_cv_func_select_args='int,int *,struct timeval *' | 7248 fi |
8369 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | 7249 |
7250 done | |
7251 | |
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 | |
7253 $as_echo_n "checking types of arguments for select... " >&6; } | |
7254 if ${ac_cv_func_select_args+:} false; then : | |
7255 $as_echo_n "(cached) " >&6 | |
7256 else | |
7257 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | |
8370 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | 7258 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
8371 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | 7259 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8373 /* end confdefs.h. */ | 7261 /* end confdefs.h. */ |
8374 $ac_includes_default | 7262 $ac_includes_default |
8378 #ifdef HAVE_SYS_SOCKET_H | 7266 #ifdef HAVE_SYS_SOCKET_H |
8379 # include <sys/socket.h> | 7267 # include <sys/socket.h> |
8380 #endif | 7268 #endif |
8381 | 7269 |
8382 int | 7270 int |
8383 main (void) | 7271 main () |
8384 { | 7272 { |
8385 extern int select ($ac_arg1, | 7273 extern int select ($ac_arg1, |
8386 $ac_arg234, $ac_arg234, $ac_arg234, | 7274 $ac_arg234, $ac_arg234, $ac_arg234, |
8387 $ac_arg5); | 7275 $ac_arg5); |
8388 ; | 7276 ; |
8389 return 0; | 7277 return 0; |
8390 } | 7278 } |
8391 _ACEOF | 7279 _ACEOF |
8392 if ac_fn_c_try_compile "$LINENO" | 7280 if ac_fn_c_try_compile "$LINENO"; then : |
8393 then : | |
8394 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | 7281 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
8395 fi | 7282 fi |
8396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | 7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8397 done | 7284 done |
8398 done | 7285 done |
8399 done | 7286 done |
8400 | 7287 # Provide a safe default value. |
8401 fi | 7288 : "${ac_cv_func_select_args=int,int *,struct timeval *}" |
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 | 7289 |
8403 printf "%s\n" "$ac_cv_func_select_args" >&6; } | 7290 fi |
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 | |
7292 $as_echo "$ac_cv_func_select_args" >&6; } | |
8404 ac_save_IFS=$IFS; IFS=',' | 7293 ac_save_IFS=$IFS; IFS=',' |
8405 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | 7294 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
8406 IFS=$ac_save_IFS | 7295 IFS=$ac_save_IFS |
8407 shift | 7296 shift |
8408 | 7297 |
8409 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h | 7298 cat >>confdefs.h <<_ACEOF |
8410 | 7299 #define SELECT_TYPE_ARG1 $1 |
8411 | 7300 _ACEOF |
8412 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h | 7301 |
8413 | 7302 |
8414 | 7303 cat >>confdefs.h <<_ACEOF |
8415 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h | 7304 #define SELECT_TYPE_ARG234 ($2) |
8416 | 7305 _ACEOF |
8417 rm -rf conftest* | 7306 |
8418 | 7307 |
8419 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass" | 7308 cat >>confdefs.h <<_ACEOF |
8420 if test "x$ac_cv_func_getpass" = xyes | 7309 #define SELECT_TYPE_ARG5 ($3) |
8421 then : | 7310 _ACEOF |
8422 printf "%s\n" "#define HAVE_GETPASS 1" >>confdefs.h | 7311 |
8423 | 7312 rm -f conftest* |
8424 fi | 7313 |
8425 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | 7314 for ac_func in getpass getspnam getusershell putenv |
8426 if test "x$ac_cv_func_getspnam" = xyes | 7315 do : |
8427 then : | 7316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8428 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h | 7317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
8429 | 7318 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
8430 fi | 7319 cat >>confdefs.h <<_ACEOF |
8431 ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" | 7320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8432 if test "x$ac_cv_func_getusershell" = xyes | 7321 _ACEOF |
8433 then : | 7322 |
8434 printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h | 7323 fi |
8435 | 7324 done |
8436 fi | 7325 |
8437 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" | 7326 for ac_func in clearenv strlcpy strlcat daemon basename _getpty getaddrinfo |
8438 if test "x$ac_cv_func_putenv" = xyes | 7327 do : |
8439 then : | 7328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8440 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h | 7329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
8441 | 7330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
8442 fi | 7331 cat >>confdefs.h <<_ACEOF |
8443 | 7332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8444 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv" | 7333 _ACEOF |
8445 if test "x$ac_cv_func_clearenv" = xyes | 7334 |
8446 then : | 7335 fi |
8447 printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h | 7336 done |
8448 | 7337 |
8449 fi | 7338 for ac_func in freeaddrinfo getnameinfo fork writev getgrouplist |
8450 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" | 7339 do : |
8451 if test "x$ac_cv_func_strlcpy" = xyes | 7340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8452 then : | 7341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
8453 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h | 7342 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
8454 | 7343 cat >>confdefs.h <<_ACEOF |
8455 fi | 7344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8456 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" | 7345 _ACEOF |
8457 if test "x$ac_cv_func_strlcat" = xyes | 7346 |
8458 then : | 7347 fi |
8459 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h | 7348 done |
8460 | 7349 |
8461 fi | 7350 |
8462 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 |
8463 if test "x$ac_cv_func_daemon" = xyes | 7352 $as_echo_n "checking for library containing basename... " >&6; } |
8464 then : | 7353 if ${ac_cv_search_basename+:} false; then : |
8465 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h | 7354 $as_echo_n "(cached) " >&6 |
8466 | 7355 else |
8467 fi | |
8468 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename" | |
8469 if test "x$ac_cv_func_basename" = xyes | |
8470 then : | |
8471 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h | |
8472 | |
8473 fi | |
8474 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" | |
8475 if test "x$ac_cv_func__getpty" = xyes | |
8476 then : | |
8477 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h | |
8478 | |
8479 fi | |
8480 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" | |
8481 if test "x$ac_cv_func_getaddrinfo" = xyes | |
8482 then : | |
8483 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
8484 | |
8485 fi | |
8486 | |
8487 ac_fn_c_check_func "$LINENO" "freeaddrinfo" "ac_cv_func_freeaddrinfo" | |
8488 if test "x$ac_cv_func_freeaddrinfo" = xyes | |
8489 then : | |
8490 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h | |
8491 | |
8492 fi | |
8493 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" | |
8494 if test "x$ac_cv_func_getnameinfo" = xyes | |
8495 then : | |
8496 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
8497 | |
8498 fi | |
8499 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" | |
8500 if test "x$ac_cv_func_fork" = xyes | |
8501 then : | |
8502 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h | |
8503 | |
8504 fi | |
8505 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" | |
8506 if test "x$ac_cv_func_writev" = xyes | |
8507 then : | |
8508 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h | |
8509 | |
8510 fi | |
8511 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" | |
8512 if test "x$ac_cv_func_getgrouplist" = xyes | |
8513 then : | |
8514 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h | |
8515 | |
8516 fi | |
8517 | |
8518 | |
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | |
8520 printf %s "checking for library containing basename... " >&6; } | |
8521 if test ${ac_cv_search_basename+y} | |
8522 then : | |
8523 printf %s "(cached) " >&6 | |
8524 else $as_nop | |
8525 ac_func_search_save_LIBS=$LIBS | 7356 ac_func_search_save_LIBS=$LIBS |
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8527 /* end confdefs.h. */ | 7358 /* end confdefs.h. */ |
8528 | 7359 |
8529 /* Override any GCC internal prototype to avoid an error. | 7360 /* Override any GCC internal prototype to avoid an error. |
8530 Use char because int might match the return type of a GCC | 7361 Use char because int might match the return type of a GCC |
8531 builtin and then its argument prototype would still apply. */ | 7362 builtin and then its argument prototype would still apply. */ |
7363 #ifdef __cplusplus | |
7364 extern "C" | |
7365 #endif | |
8532 char basename (); | 7366 char basename (); |
8533 int | 7367 int |
8534 main (void) | 7368 main () |
8535 { | 7369 { |
8536 return basename (); | 7370 return basename (); |
8537 ; | 7371 ; |
8538 return 0; | 7372 return 0; |
8539 } | 7373 } |
8540 _ACEOF | 7374 _ACEOF |
8541 for ac_lib in '' gen | 7375 for ac_lib in '' gen; do |
8542 do | |
8543 if test -z "$ac_lib"; then | 7376 if test -z "$ac_lib"; then |
8544 ac_res="none required" | 7377 ac_res="none required" |
8545 else | 7378 else |
8546 ac_res=-l$ac_lib | 7379 ac_res=-l$ac_lib |
8547 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 7380 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
8548 fi | 7381 fi |
8549 if ac_fn_c_try_link "$LINENO" | 7382 if ac_fn_c_try_link "$LINENO"; then : |
8550 then : | |
8551 ac_cv_search_basename=$ac_res | 7383 ac_cv_search_basename=$ac_res |
8552 fi | 7384 fi |
8553 rm -f core conftest.err conftest.$ac_objext conftest.beam \ | 7385 rm -f core conftest.err conftest.$ac_objext \ |
8554 conftest$ac_exeext | 7386 conftest$ac_exeext |
8555 if test ${ac_cv_search_basename+y} | 7387 if ${ac_cv_search_basename+:} false; then : |
8556 then : | |
8557 break | 7388 break |
8558 fi | 7389 fi |
8559 done | 7390 done |
8560 if test ${ac_cv_search_basename+y} | 7391 if ${ac_cv_search_basename+:} false; then : |
8561 then : | 7392 |
8562 | 7393 else |
8563 else $as_nop | |
8564 ac_cv_search_basename=no | 7394 ac_cv_search_basename=no |
8565 fi | 7395 fi |
8566 rm conftest.$ac_ext | 7396 rm conftest.$ac_ext |
8567 LIBS=$ac_func_search_save_LIBS | 7397 LIBS=$ac_func_search_save_LIBS |
8568 fi | 7398 fi |
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 |
8570 printf "%s\n" "$ac_cv_search_basename" >&6; } | 7400 $as_echo "$ac_cv_search_basename" >&6; } |
8571 ac_res=$ac_cv_search_basename | 7401 ac_res=$ac_cv_search_basename |
8572 if test "$ac_res" != no | 7402 if test "$ac_res" != no; then : |
8573 then : | |
8574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 7403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
8575 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h | 7404 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h |
8576 | 7405 |
8577 fi | 7406 fi |
8578 | 7407 |
8579 | 7408 |
8580 # Solaris needs ptmx | 7409 # Solaris needs ptmx |
8581 if test -z "$no_ptmx_check" ; then | 7410 if test -z "$no_ptmx_check" ; then |
8582 if test x"$cross_compiling" = x"no" ; then | 7411 if test x"$cross_compiling" = x"no" ; then |
8583 if test -e /dev/ptmx ; then | 7412 if test -e /dev/ptmx ; then |
8584 | 7413 |
8585 printf "%s\n" "#define USE_DEV_PTMX 1" >>confdefs.h | 7414 $as_echo "#define USE_DEV_PTMX 1" >>confdefs.h |
8586 | 7415 |
8587 fi | 7416 fi |
8588 else | 7417 else |
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5 | 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5 |
8590 printf "%s\n" "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;} | 7419 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;} |
8591 fi | 7420 fi |
8592 fi | 7421 fi |
8593 | 7422 |
8594 if test -z "$no_ptc_check" ; then | 7423 if test -z "$no_ptc_check" ; then |
8595 if test x"$cross_compiling" = x"no" ; then | 7424 if test x"$cross_compiling" = x"no" ; then |
8596 if test -e /dev/ptc ; then | 7425 if test -e /dev/ptc ; then |
8597 | 7426 |
8598 printf "%s\n" "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h | 7427 $as_echo "#define HAVE_DEV_PTS_AND_PTC 1" >>confdefs.h |
8599 | 7428 |
8600 fi | 7429 fi |
8601 else | 7430 else |
8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5 | 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5 |
8603 printf "%s\n" "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;} | 7432 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;} |
8604 fi | 7433 fi |
8605 fi | 7434 fi |
8606 | 7435 |
8607 | 7436 |
8608 | 7437 |
8611 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" | 7440 LIBTOM_FILES="libtomcrypt/Makefile libtommath/Makefile" |
8612 fi | 7441 fi |
8613 | 7442 |
8614 ac_config_headers="$ac_config_headers config.h" | 7443 ac_config_headers="$ac_config_headers config.h" |
8615 | 7444 |
8616 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES" | 7445 ac_config_files="$ac_config_files Makefile $LIBTOM_FILES test/Makefile" |
8617 | 7446 |
8618 cat >confcache <<\_ACEOF | 7447 cat >confcache <<\_ACEOF |
8619 # This file is a shell script that caches the results of configure | 7448 # This file is a shell script that caches the results of configure |
8620 # tests run on this system so they can be shared between configure | 7449 # tests run on this system so they can be shared between configure |
8621 # scripts and configure runs, see configure's option --config-cache. | 7450 # scripts and configure runs, see configure's option --config-cache. |
8640 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 7469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
8641 eval ac_val=\$$ac_var | 7470 eval ac_val=\$$ac_var |
8642 case $ac_val in #( | 7471 case $ac_val in #( |
8643 *${as_nl}*) | 7472 *${as_nl}*) |
8644 case $ac_var in #( | 7473 case $ac_var in #( |
8645 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | 7474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8646 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 7475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
8647 esac | 7476 esac |
8648 case $ac_var in #( | 7477 case $ac_var in #( |
8649 _ | IFS | as_nl) ;; #( | 7478 _ | IFS | as_nl) ;; #( |
8650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 7479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
8651 *) { eval $ac_var=; unset $ac_var;} ;; | 7480 *) { eval $ac_var=; unset $ac_var;} ;; |
8671 ) | | 7500 ) | |
8672 sed ' | 7501 sed ' |
8673 /^ac_cv_env_/b end | 7502 /^ac_cv_env_/b end |
8674 t clear | 7503 t clear |
8675 :clear | 7504 :clear |
8676 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | 7505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
8677 t end | 7506 t end |
8678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 7507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8679 :end' >>confcache | 7508 :end' >>confcache |
8680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 7509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
8681 if test -w "$cache_file"; then | 7510 if test -w "$cache_file"; then |
8682 if test "x$cache_file" != "x/dev/null"; then | 7511 if test "x$cache_file" != "x/dev/null"; then |
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
8684 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | 7513 $as_echo "$as_me: updating cache $cache_file" >&6;} |
8685 if test ! -f "$cache_file" || test -h "$cache_file"; then | 7514 if test ! -f "$cache_file" || test -h "$cache_file"; then |
8686 cat confcache >"$cache_file" | 7515 cat confcache >"$cache_file" |
8687 else | 7516 else |
8688 case $cache_file in #( | 7517 case $cache_file in #( |
8689 */* | ?:*) | 7518 */* | ?:*) |
8693 mv -f confcache "$cache_file" ;; | 7522 mv -f confcache "$cache_file" ;; |
8694 esac | 7523 esac |
8695 fi | 7524 fi |
8696 fi | 7525 fi |
8697 else | 7526 else |
8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8699 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | 7528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
8700 fi | 7529 fi |
8701 fi | 7530 fi |
8702 rm -f confcache | 7531 rm -f confcache |
8703 | 7532 |
8704 test "x$prefix" = xNONE && prefix=$ac_default_prefix | 7533 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8711 ac_ltlibobjs= | 7540 ac_ltlibobjs= |
8712 U= | 7541 U= |
8713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 7542 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8714 # 1. Remove the extension, and $U if already installed. | 7543 # 1. Remove the extension, and $U if already installed. |
8715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 7544 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8716 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | 7545 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
8717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | 7546 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8718 # will be set to the directory where LIBOBJS objects are built. | 7547 # will be set to the directory where LIBOBJS objects are built. |
8719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 7548 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 7549 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
8721 done | 7550 done |
8727 | 7556 |
8728 : "${CONFIG_STATUS=./config.status}" | 7557 : "${CONFIG_STATUS=./config.status}" |
8729 ac_write_fail=0 | 7558 ac_write_fail=0 |
8730 ac_clean_files_save=$ac_clean_files | 7559 ac_clean_files_save=$ac_clean_files |
8731 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 7560 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8733 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | 7562 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
8734 as_write_fail=0 | 7563 as_write_fail=0 |
8735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 7564 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
8736 #! $SHELL | 7565 #! $SHELL |
8737 # Generated by $as_me. | 7566 # Generated by $as_me. |
8738 # Run this file to recreate the current configuration. | 7567 # Run this file to recreate the current configuration. |
8751 ## M4sh Initialization. ## | 7580 ## M4sh Initialization. ## |
8752 ## -------------------- ## | 7581 ## -------------------- ## |
8753 | 7582 |
8754 # Be more Bourne compatible | 7583 # Be more Bourne compatible |
8755 DUALCASE=1; export DUALCASE # for MKS sh | 7584 DUALCASE=1; export DUALCASE # for MKS sh |
8756 as_nop=: | 7585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8757 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
8758 then : | |
8759 emulate sh | 7586 emulate sh |
8760 NULLCMD=: | 7587 NULLCMD=: |
8761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 7588 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
8762 # is contrary to our usage. Disable this feature. | 7589 # is contrary to our usage. Disable this feature. |
8763 alias -g '${1+"$@"}'='"$@"' | 7590 alias -g '${1+"$@"}'='"$@"' |
8764 setopt NO_GLOB_SUBST | 7591 setopt NO_GLOB_SUBST |
8765 else $as_nop | 7592 else |
8766 case `(set -o) 2>/dev/null` in #( | 7593 case `(set -o) 2>/dev/null` in #( |
8767 *posix*) : | 7594 *posix*) : |
8768 set -o posix ;; #( | 7595 set -o posix ;; #( |
8769 *) : | 7596 *) : |
8770 ;; | 7597 ;; |
8771 esac | 7598 esac |
8772 fi | 7599 fi |
8773 | 7600 |
8774 | 7601 |
8775 | |
8776 # Reset variables that may have inherited troublesome values from | |
8777 # the environment. | |
8778 | |
8779 # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
8780 # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
8781 # side effect of setting IFS to empty, thus disabling word splitting.) | |
8782 # Quoting is to prevent editors from complaining about space-tab. | |
8783 as_nl=' | 7602 as_nl=' |
8784 ' | 7603 ' |
8785 export as_nl | 7604 export as_nl |
8786 IFS=" "" $as_nl" | 7605 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
8787 | 7606 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
8788 PS1='$ ' | 7607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
8789 PS2='> ' | 7608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
8790 PS4='+ ' | 7609 # Prefer a ksh shell builtin over an external printf program on Solaris, |
8791 | 7610 # but without wasting forks for bash or zsh. |
8792 # Ensure predictable behavior from utilities with locale-dependent output. | 7611 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
8793 LC_ALL=C | 7612 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
8794 export LC_ALL | 7613 as_echo='print -r --' |
8795 LANGUAGE=C | 7614 as_echo_n='print -rn --' |
8796 export LANGUAGE | 7615 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
8797 | 7616 as_echo='printf %s\n' |
8798 # We cannot yet rely on "unset" to work, but we need these variables | 7617 as_echo_n='printf %s' |
8799 # to be unset--not just set to an empty or harmless value--now, to | 7618 else |
8800 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | 7619 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
8801 # also avoids known problems related to "unset" and subshell syntax | 7620 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
8802 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | 7621 as_echo_n='/usr/ucb/echo -n' |
8803 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | 7622 else |
8804 do eval test \${$as_var+y} \ | 7623 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
8805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 7624 as_echo_n_body='eval |
8806 done | 7625 arg=$1; |
8807 | 7626 case $arg in #( |
8808 # Ensure that fds 0, 1, and 2 are open. | 7627 *"$as_nl"*) |
8809 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | 7628 expr "X$arg" : "X\\(.*\\)$as_nl"; |
8810 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | 7629 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
8811 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | 7630 esac; |
7631 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7632 ' | |
7633 export as_echo_n_body | |
7634 as_echo_n='sh -c $as_echo_n_body as_echo' | |
7635 fi | |
7636 export as_echo_body | |
7637 as_echo='sh -c $as_echo_body as_echo' | |
7638 fi | |
8812 | 7639 |
8813 # The user is always right. | 7640 # The user is always right. |
8814 if ${PATH_SEPARATOR+false} :; then | 7641 if test "${PATH_SEPARATOR+set}" != set; then |
8815 PATH_SEPARATOR=: | 7642 PATH_SEPARATOR=: |
8816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 7643 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
8817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 7644 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
8818 PATH_SEPARATOR=';' | 7645 PATH_SEPARATOR=';' |
8819 } | 7646 } |
8820 fi | 7647 fi |
8821 | 7648 |
7649 | |
7650 # IFS | |
7651 # We need space, tab and new line, in precisely that order. Quoting is | |
7652 # there to prevent editors from complaining about space-tab. | |
7653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7654 # splitting by setting IFS to empty value.) | |
7655 IFS=" "" $as_nl" | |
8822 | 7656 |
8823 # Find who we are. Look in the path if we contain no directory separator. | 7657 # Find who we are. Look in the path if we contain no directory separator. |
8824 as_myself= | 7658 as_myself= |
8825 case $0 in #(( | 7659 case $0 in #(( |
8826 *[\\/]* ) as_myself=$0 ;; | 7660 *[\\/]* ) as_myself=$0 ;; |
8827 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 7661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8828 for as_dir in $PATH | 7662 for as_dir in $PATH |
8829 do | 7663 do |
8830 IFS=$as_save_IFS | 7664 IFS=$as_save_IFS |
8831 case $as_dir in #((( | 7665 test -z "$as_dir" && as_dir=. |
8832 '') as_dir=./ ;; | 7666 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
8833 */) ;; | |
8834 *) as_dir=$as_dir/ ;; | |
8835 esac | |
8836 test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
8837 done | 7667 done |
8838 IFS=$as_save_IFS | 7668 IFS=$as_save_IFS |
8839 | 7669 |
8840 ;; | 7670 ;; |
8841 esac | 7671 esac |
8843 # in which case we are not to be found in the path. | 7673 # in which case we are not to be found in the path. |
8844 if test "x$as_myself" = x; then | 7674 if test "x$as_myself" = x; then |
8845 as_myself=$0 | 7675 as_myself=$0 |
8846 fi | 7676 fi |
8847 if test ! -f "$as_myself"; then | 7677 if test ! -f "$as_myself"; then |
8848 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 7678 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
8849 exit 1 | 7679 exit 1 |
8850 fi | 7680 fi |
8851 | 7681 |
7682 # Unset variables that we do not need and which cause bugs (e.g. in | |
7683 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7684 # suppresses any "Segmentation fault" message there. '((' could | |
7685 # trigger a bug in pdksh 5.2.14. | |
7686 for as_var in BASH_ENV ENV MAIL MAILPATH | |
7687 do eval test x\${$as_var+set} = xset \ | |
7688 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7689 done | |
7690 PS1='$ ' | |
7691 PS2='> ' | |
7692 PS4='+ ' | |
7693 | |
7694 # NLS nuisances. | |
7695 LC_ALL=C | |
7696 export LC_ALL | |
7697 LANGUAGE=C | |
7698 export LANGUAGE | |
7699 | |
7700 # CDPATH. | |
7701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8852 | 7702 |
8853 | 7703 |
8854 # as_fn_error STATUS ERROR [LINENO LOG_FD] | 7704 # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8855 # ---------------------------------------- | 7705 # ---------------------------------------- |
8856 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 7706 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8859 as_fn_error () | 7709 as_fn_error () |
8860 { | 7710 { |
8861 as_status=$1; test $as_status -eq 0 && as_status=1 | 7711 as_status=$1; test $as_status -eq 0 && as_status=1 |
8862 if test "$4"; then | 7712 if test "$4"; then |
8863 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 7713 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
8864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 7714 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
8865 fi | 7715 fi |
8866 printf "%s\n" "$as_me: error: $2" >&2 | 7716 $as_echo "$as_me: error: $2" >&2 |
8867 as_fn_exit $as_status | 7717 as_fn_exit $as_status |
8868 } # as_fn_error | 7718 } # as_fn_error |
8869 | |
8870 | 7719 |
8871 | 7720 |
8872 # as_fn_set_status STATUS | 7721 # as_fn_set_status STATUS |
8873 # ----------------------- | 7722 # ----------------------- |
8874 # Set $? to STATUS, without forking. | 7723 # Set $? to STATUS, without forking. |
8893 as_fn_unset () | 7742 as_fn_unset () |
8894 { | 7743 { |
8895 { eval $1=; unset $1;} | 7744 { eval $1=; unset $1;} |
8896 } | 7745 } |
8897 as_unset=as_fn_unset | 7746 as_unset=as_fn_unset |
8898 | |
8899 # as_fn_append VAR VALUE | 7747 # as_fn_append VAR VALUE |
8900 # ---------------------- | 7748 # ---------------------- |
8901 # Append the text in VALUE to the end of the definition contained in VAR. Take | 7749 # Append the text in VALUE to the end of the definition contained in VAR. Take |
8902 # advantage of any shell optimizations that allow amortized linear growth over | 7750 # advantage of any shell optimizations that allow amortized linear growth over |
8903 # repeated appends, instead of the typical quadratic growth present in naive | 7751 # repeated appends, instead of the typical quadratic growth present in naive |
8904 # implementations. | 7752 # implementations. |
8905 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | 7753 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
8906 then : | |
8907 eval 'as_fn_append () | 7754 eval 'as_fn_append () |
8908 { | 7755 { |
8909 eval $1+=\$2 | 7756 eval $1+=\$2 |
8910 }' | 7757 }' |
8911 else $as_nop | 7758 else |
8912 as_fn_append () | 7759 as_fn_append () |
8913 { | 7760 { |
8914 eval $1=\$$1\$2 | 7761 eval $1=\$$1\$2 |
8915 } | 7762 } |
8916 fi # as_fn_append | 7763 fi # as_fn_append |
8918 # as_fn_arith ARG... | 7765 # as_fn_arith ARG... |
8919 # ------------------ | 7766 # ------------------ |
8920 # Perform arithmetic evaluation on the ARGs, and store the result in the | 7767 # Perform arithmetic evaluation on the ARGs, and store the result in the |
8921 # global $as_val. Take advantage of shells that can avoid forks. The arguments | 7768 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
8922 # must be portable across $(()) and expr. | 7769 # must be portable across $(()) and expr. |
8923 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | 7770 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
8924 then : | |
8925 eval 'as_fn_arith () | 7771 eval 'as_fn_arith () |
8926 { | 7772 { |
8927 as_val=$(( $* )) | 7773 as_val=$(( $* )) |
8928 }' | 7774 }' |
8929 else $as_nop | 7775 else |
8930 as_fn_arith () | 7776 as_fn_arith () |
8931 { | 7777 { |
8932 as_val=`expr "$@" || test $? -eq 1` | 7778 as_val=`expr "$@" || test $? -eq 1` |
8933 } | 7779 } |
8934 fi # as_fn_arith | 7780 fi # as_fn_arith |
8955 | 7801 |
8956 as_me=`$as_basename -- "$0" || | 7802 as_me=`$as_basename -- "$0" || |
8957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 7803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8958 X"$0" : 'X\(//\)$' \| \ | 7804 X"$0" : 'X\(//\)$' \| \ |
8959 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 7805 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8960 printf "%s\n" X/"$0" | | 7806 $as_echo X/"$0" | |
8961 sed '/^.*\/\([^/][^/]*\)\/*$/{ | 7807 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8962 s//\1/ | 7808 s//\1/ |
8963 q | 7809 q |
8964 } | 7810 } |
8965 /^X\/\(\/\/\)$/{ | 7811 /^X\/\(\/\/\)$/{ |
8977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 7823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
8978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 7824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
8979 as_cr_digits='0123456789' | 7825 as_cr_digits='0123456789' |
8980 as_cr_alnum=$as_cr_Letters$as_cr_digits | 7826 as_cr_alnum=$as_cr_Letters$as_cr_digits |
8981 | 7827 |
8982 | |
8983 # Determine whether it's possible to make 'echo' print without a newline. | |
8984 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
8985 # for compatibility with existing Makefiles. | |
8986 ECHO_C= ECHO_N= ECHO_T= | 7828 ECHO_C= ECHO_N= ECHO_T= |
8987 case `echo -n x` in #((((( | 7829 case `echo -n x` in #((((( |
8988 -n*) | 7830 -n*) |
8989 case `echo 'xy\c'` in | 7831 case `echo 'xy\c'` in |
8990 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | 7832 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
8993 ECHO_T=' ';; | 7835 ECHO_T=' ';; |
8994 esac;; | 7836 esac;; |
8995 *) | 7837 *) |
8996 ECHO_N='-n';; | 7838 ECHO_N='-n';; |
8997 esac | 7839 esac |
8998 | |
8999 # For backward compatibility with old third-party macros, we provide | |
9000 # the shell variables $as_echo and $as_echo_n. New code should use | |
9001 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
9002 as_echo='printf %s\n' | |
9003 as_echo_n='printf %s' | |
9004 | 7840 |
9005 rm -f conf$$ conf$$.exe conf$$.file | 7841 rm -f conf$$ conf$$.exe conf$$.file |
9006 if test -d conf$$.dir; then | 7842 if test -d conf$$.dir; then |
9007 rm -f conf$$.dir/conf$$.file | 7843 rm -f conf$$.dir/conf$$.file |
9008 else | 7844 else |
9041 esac | 7877 esac |
9042 test -d "$as_dir" || eval $as_mkdir_p || { | 7878 test -d "$as_dir" || eval $as_mkdir_p || { |
9043 as_dirs= | 7879 as_dirs= |
9044 while :; do | 7880 while :; do |
9045 case $as_dir in #( | 7881 case $as_dir in #( |
9046 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 7882 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
9047 *) as_qdir=$as_dir;; | 7883 *) as_qdir=$as_dir;; |
9048 esac | 7884 esac |
9049 as_dirs="'$as_qdir' $as_dirs" | 7885 as_dirs="'$as_qdir' $as_dirs" |
9050 as_dir=`$as_dirname -- "$as_dir" || | 7886 as_dir=`$as_dirname -- "$as_dir" || |
9051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 7887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9052 X"$as_dir" : 'X\(//\)[^/]' \| \ | 7888 X"$as_dir" : 'X\(//\)[^/]' \| \ |
9053 X"$as_dir" : 'X\(//\)$' \| \ | 7889 X"$as_dir" : 'X\(//\)$' \| \ |
9054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 7890 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
9055 printf "%s\n" X"$as_dir" | | 7891 $as_echo X"$as_dir" | |
9056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 7892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9057 s//\1/ | 7893 s//\1/ |
9058 q | 7894 q |
9059 } | 7895 } |
9060 /^X\(\/\/\)[^/].*/{ | 7896 /^X\(\/\/\)[^/].*/{ |
9113 # Save the log message, to keep $0 and so on meaningful, and to | 7949 # Save the log message, to keep $0 and so on meaningful, and to |
9114 # report actual input values of CONFIG_FILES etc. instead of their | 7950 # report actual input values of CONFIG_FILES etc. instead of their |
9115 # values after options handling. | 7951 # values after options handling. |
9116 ac_log=" | 7952 ac_log=" |
9117 This file was extended by $as_me, which was | 7953 This file was extended by $as_me, which was |
9118 generated by GNU Autoconf 2.71. Invocation command line was | 7954 generated by GNU Autoconf 2.69. Invocation command line was |
9119 | 7955 |
9120 CONFIG_FILES = $CONFIG_FILES | 7956 CONFIG_FILES = $CONFIG_FILES |
9121 CONFIG_HEADERS = $CONFIG_HEADERS | 7957 CONFIG_HEADERS = $CONFIG_HEADERS |
9122 CONFIG_LINKS = $CONFIG_LINKS | 7958 CONFIG_LINKS = $CONFIG_LINKS |
9123 CONFIG_COMMANDS = $CONFIG_COMMANDS | 7959 CONFIG_COMMANDS = $CONFIG_COMMANDS |
9171 $config_headers | 8007 $config_headers |
9172 | 8008 |
9173 Report bugs to the package provider." | 8009 Report bugs to the package provider." |
9174 | 8010 |
9175 _ACEOF | 8011 _ACEOF |
9176 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
9177 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
9178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 8012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9179 ac_cs_config='$ac_cs_config_escaped' | 8013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
9180 ac_cs_version="\\ | 8014 ac_cs_version="\\ |
9181 config.status | 8015 config.status |
9182 configured by $0, generated by GNU Autoconf 2.71, | 8016 configured by $0, generated by GNU Autoconf 2.69, |
9183 with options \\"\$ac_cs_config\\" | 8017 with options \\"\$ac_cs_config\\" |
9184 | 8018 |
9185 Copyright (C) 2021 Free Software Foundation, Inc. | 8019 Copyright (C) 2012 Free Software Foundation, Inc. |
9186 This config.status script is free software; the Free Software Foundation | 8020 This config.status script is free software; the Free Software Foundation |
9187 gives unlimited permission to copy, distribute and modify it." | 8021 gives unlimited permission to copy, distribute and modify it." |
9188 | 8022 |
9189 ac_pwd='$ac_pwd' | 8023 ac_pwd='$ac_pwd' |
9190 srcdir='$srcdir' | 8024 srcdir='$srcdir' |
9217 case $ac_option in | 8051 case $ac_option in |
9218 # Handling of the options. | 8052 # Handling of the options. |
9219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 8053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9220 ac_cs_recheck=: ;; | 8054 ac_cs_recheck=: ;; |
9221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 8055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
9222 printf "%s\n" "$ac_cs_version"; exit ;; | 8056 $as_echo "$ac_cs_version"; exit ;; |
9223 --config | --confi | --conf | --con | --co | --c ) | 8057 --config | --confi | --conf | --con | --co | --c ) |
9224 printf "%s\n" "$ac_cs_config"; exit ;; | 8058 $as_echo "$ac_cs_config"; exit ;; |
9225 --debug | --debu | --deb | --de | --d | -d ) | 8059 --debug | --debu | --deb | --de | --d | -d ) |
9226 debug=: ;; | 8060 debug=: ;; |
9227 --file | --fil | --fi | --f ) | 8061 --file | --fil | --fi | --f ) |
9228 $ac_shift | 8062 $ac_shift |
9229 case $ac_optarg in | 8063 case $ac_optarg in |
9230 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 8064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9231 '') as_fn_error $? "missing file argument" ;; | 8065 '') as_fn_error $? "missing file argument" ;; |
9232 esac | 8066 esac |
9233 as_fn_append CONFIG_FILES " '$ac_optarg'" | 8067 as_fn_append CONFIG_FILES " '$ac_optarg'" |
9234 ac_need_defaults=false;; | 8068 ac_need_defaults=false;; |
9235 --header | --heade | --head | --hea ) | 8069 --header | --heade | --head | --hea ) |
9236 $ac_shift | 8070 $ac_shift |
9237 case $ac_optarg in | 8071 case $ac_optarg in |
9238 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 8072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
9239 esac | 8073 esac |
9240 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 8074 as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
9241 ac_need_defaults=false;; | 8075 ac_need_defaults=false;; |
9242 --he | --h) | 8076 --he | --h) |
9243 # Conflict between --help and --header | 8077 # Conflict between --help and --header |
9244 as_fn_error $? "ambiguous option: \`$1' | 8078 as_fn_error $? "ambiguous option: \`$1' |
9245 Try \`$0 --help' for more information.";; | 8079 Try \`$0 --help' for more information.";; |
9246 --help | --hel | -h ) | 8080 --help | --hel | -h ) |
9247 printf "%s\n" "$ac_cs_usage"; exit ;; | 8081 $as_echo "$ac_cs_usage"; exit ;; |
9248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 8082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
9249 | -silent | --silent | --silen | --sile | --sil | --si | --s) | 8083 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
9250 ac_cs_silent=: ;; | 8084 ac_cs_silent=: ;; |
9251 | 8085 |
9252 # This is an error. | 8086 # This is an error. |
9270 _ACEOF | 8104 _ACEOF |
9271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 8105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9272 if \$ac_cs_recheck; then | 8106 if \$ac_cs_recheck; then |
9273 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 8107 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
9274 shift | 8108 shift |
9275 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | 8109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
9276 CONFIG_SHELL='$SHELL' | 8110 CONFIG_SHELL='$SHELL' |
9277 export CONFIG_SHELL | 8111 export CONFIG_SHELL |
9278 exec "\$@" | 8112 exec "\$@" |
9279 fi | 8113 fi |
9280 | 8114 |
9284 { | 8118 { |
9285 echo | 8119 echo |
9286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 8120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
9287 ## Running $as_me. ## | 8121 ## Running $as_me. ## |
9288 _ASBOX | 8122 _ASBOX |
9289 printf "%s\n" "$ac_log" | 8123 $as_echo "$ac_log" |
9290 } >&5 | 8124 } >&5 |
9291 | 8125 |
9292 _ACEOF | 8126 _ACEOF |
9293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 8127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9294 _ACEOF | 8128 _ACEOF |
9300 do | 8134 do |
9301 case $ac_config_target in | 8135 case $ac_config_target in |
9302 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | 8136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
9303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 8137 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9304 "$LIBTOM_FILES") CONFIG_FILES="$CONFIG_FILES $LIBTOM_FILES" ;; | 8138 "$LIBTOM_FILES") CONFIG_FILES="$CONFIG_FILES $LIBTOM_FILES" ;; |
8139 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
9305 | 8140 |
9306 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 8141 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
9307 esac | 8142 esac |
9308 done | 8143 done |
9309 | 8144 |
9311 # If the user did not use the arguments to specify the items to instantiate, | 8146 # If the user did not use the arguments to specify the items to instantiate, |
9312 # then the envvar interface is used. Set only those that are not. | 8147 # then the envvar interface is used. Set only those that are not. |
9313 # We use the long form for the default assignment because of an extremely | 8148 # We use the long form for the default assignment because of an extremely |
9314 # bizarre bug on SunOS 4.1.3. | 8149 # bizarre bug on SunOS 4.1.3. |
9315 if $ac_need_defaults; then | 8150 if $ac_need_defaults; then |
9316 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | 8151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
9317 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | 8152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
9318 fi | 8153 fi |
9319 | 8154 |
9320 # Have a temporary directory for convenience. Make it in the build tree | 8155 # Have a temporary directory for convenience. Make it in the build tree |
9321 # simply because there is no reason against having it here, and in addition, | 8156 # simply because there is no reason against having it here, and in addition, |
9322 # creating and moving files from /tmp can sometimes cause problems. | 8157 # creating and moving files from /tmp can sometimes cause problems. |
9648 [\\/$]*) false;; | 8483 [\\/$]*) false;; |
9649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 8484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
9650 esac || | 8485 esac || |
9651 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 8486 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
9652 esac | 8487 esac |
9653 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 8488 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
9654 as_fn_append ac_file_inputs " '$ac_f'" | 8489 as_fn_append ac_file_inputs " '$ac_f'" |
9655 done | 8490 done |
9656 | 8491 |
9657 # Let's still pretend it is `configure' which instantiates (i.e., don't | 8492 # Let's still pretend it is `configure' which instantiates (i.e., don't |
9658 # use $as_me), people would be surprised to read: | 8493 # use $as_me), people would be surprised to read: |
9659 # /* config.h. Generated by config.status. */ | 8494 # /* config.h. Generated by config.status. */ |
9660 configure_input='Generated from '` | 8495 configure_input='Generated from '` |
9661 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 8496 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
9662 `' by configure.' | 8497 `' by configure.' |
9663 if test x"$ac_file" != x-; then | 8498 if test x"$ac_file" != x-; then |
9664 configure_input="$ac_file. $configure_input" | 8499 configure_input="$ac_file. $configure_input" |
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9666 printf "%s\n" "$as_me: creating $ac_file" >&6;} | 8501 $as_echo "$as_me: creating $ac_file" >&6;} |
9667 fi | 8502 fi |
9668 # Neutralize special characters interpreted by sed in replacement strings. | 8503 # Neutralize special characters interpreted by sed in replacement strings. |
9669 case $configure_input in #( | 8504 case $configure_input in #( |
9670 *\&* | *\|* | *\\* ) | 8505 *\&* | *\|* | *\\* ) |
9671 ac_sed_conf_input=`printf "%s\n" "$configure_input" | | 8506 ac_sed_conf_input=`$as_echo "$configure_input" | |
9672 sed 's/[\\\\&|]/\\\\&/g'`;; #( | 8507 sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9673 *) ac_sed_conf_input=$configure_input;; | 8508 *) ac_sed_conf_input=$configure_input;; |
9674 esac | 8509 esac |
9675 | 8510 |
9676 case $ac_tag in | 8511 case $ac_tag in |
9683 ac_dir=`$as_dirname -- "$ac_file" || | 8518 ac_dir=`$as_dirname -- "$ac_file" || |
9684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 8519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9685 X"$ac_file" : 'X\(//\)[^/]' \| \ | 8520 X"$ac_file" : 'X\(//\)[^/]' \| \ |
9686 X"$ac_file" : 'X\(//\)$' \| \ | 8521 X"$ac_file" : 'X\(//\)$' \| \ |
9687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 8522 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
9688 printf "%s\n" X"$ac_file" | | 8523 $as_echo X"$ac_file" | |
9689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 8524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9690 s//\1/ | 8525 s//\1/ |
9691 q | 8526 q |
9692 } | 8527 } |
9693 /^X\(\/\/\)[^/].*/{ | 8528 /^X\(\/\/\)[^/].*/{ |
9707 ac_builddir=. | 8542 ac_builddir=. |
9708 | 8543 |
9709 case "$ac_dir" in | 8544 case "$ac_dir" in |
9710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 8545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9711 *) | 8546 *) |
9712 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | 8547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
9713 # A ".." for each directory in $ac_dir_suffix. | 8548 # A ".." for each directory in $ac_dir_suffix. |
9714 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 8549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
9715 case $ac_top_builddir_sub in | 8550 case $ac_top_builddir_sub in |
9716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 8551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 8552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9718 esac ;; | 8553 esac ;; |
9719 esac | 8554 esac |
9762 /@localedir@/p | 8597 /@localedir@/p |
9763 /@mandir@/p' | 8598 /@mandir@/p' |
9764 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 8599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
9765 *datarootdir*) ac_datarootdir_seen=yes;; | 8600 *datarootdir*) ac_datarootdir_seen=yes;; |
9766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 8601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9768 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 8603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9769 _ACEOF | 8604 _ACEOF |
9770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 8605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9771 ac_datarootdir_hack=' | 8606 ac_datarootdir_hack=' |
9772 s&@datadir@&$datadir&g | 8607 s&@datadir@&$datadir&g |
9773 s&@docdir@&$docdir&g | 8608 s&@docdir@&$docdir&g |
9805 | 8640 |
9806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 8641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9807 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 8642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | 8643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
9809 "$ac_tmp/out"`; test -z "$ac_out"; } && | 8644 "$ac_tmp/out"`; test -z "$ac_out"; } && |
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9811 which seems to be undefined. Please make sure it is defined" >&5 | 8646 which seems to be undefined. Please make sure it is defined" >&5 |
9812 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 8647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9813 which seems to be undefined. Please make sure it is defined" >&2;} | 8648 which seems to be undefined. Please make sure it is defined" >&2;} |
9814 | 8649 |
9815 rm -f "$ac_tmp/stdin" | 8650 rm -f "$ac_tmp/stdin" |
9816 case $ac_file in | 8651 case $ac_file in |
9817 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 8652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9823 # | 8658 # |
9824 # CONFIG_HEADER | 8659 # CONFIG_HEADER |
9825 # | 8660 # |
9826 if test x"$ac_file" != x-; then | 8661 if test x"$ac_file" != x-; then |
9827 { | 8662 { |
9828 printf "%s\n" "/* $configure_input */" >&1 \ | 8663 $as_echo "/* $configure_input */" \ |
9829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 8664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9830 } >"$ac_tmp/config.h" \ | 8665 } >"$ac_tmp/config.h" \ |
9831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 8666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9832 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 8667 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9834 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | 8669 $as_echo "$as_me: $ac_file is unchanged" >&6;} |
9835 else | 8670 else |
9836 rm -f "$ac_file" | 8671 rm -f "$ac_file" |
9837 mv "$ac_tmp/config.h" "$ac_file" \ | 8672 mv "$ac_tmp/config.h" "$ac_file" \ |
9838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 8673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
9839 fi | 8674 fi |
9840 else | 8675 else |
9841 printf "%s\n" "/* $configure_input */" >&1 \ | 8676 $as_echo "/* $configure_input */" \ |
9842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 8677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9843 || as_fn_error $? "could not create -" "$LINENO" 5 | 8678 || as_fn_error $? "could not create -" "$LINENO" 5 |
9844 fi | 8679 fi |
9845 ;; | 8680 ;; |
9846 | 8681 |
9877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 8712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
9878 # would make configure fail if this is the last instruction. | 8713 # would make configure fail if this is the last instruction. |
9879 $ac_cs_success || as_fn_exit 1 | 8714 $ac_cs_success || as_fn_exit 1 |
9880 fi | 8715 fi |
9881 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 8716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
9883 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 8718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
9884 fi | 8719 fi |
9885 | 8720 |
9886 | 8721 |
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5 | 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
9888 printf "%s\n" "$as_me: " >&6;} | 8723 $as_echo "$as_me: " >&6;} |
9889 if test $BUNDLED_LIBTOM = 1 ; then | 8724 if test $BUNDLED_LIBTOM = 1 ; then |
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5 | 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5 |
9891 printf "%s\n" "$as_me: Using bundled libtomcrypt and libtommath" >&6;} | 8726 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;} |
9892 else | 8727 else |
9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5 | 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5 |
9894 printf "%s\n" "$as_me: Using system libtomcrypt and libtommath" >&6;} | 8729 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;} |
9895 fi | 8730 fi |
9896 | 8731 |
9897 | 8732 |
9898 if test "x$ac_cv_func_getpass" != xyes; then | 8733 if test "x$ac_cv_func_getpass" != xyes; then |
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5 | 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
9900 printf "%s\n" "$as_me: " >&6;} | 8735 $as_echo "$as_me: " >&6;} |
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: getpass() not available, dbclient will only have public-key authentication" >&5 | 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: getpass() not available, dbclient will only have public-key authentication" >&5 |
9902 printf "%s\n" "$as_me: getpass() not available, dbclient will only have public-key authentication" >&6;} | 8737 $as_echo "$as_me: getpass() not available, dbclient will only have public-key authentication" >&6;} |
9903 fi | 8738 fi |
9904 | 8739 |
9905 if test "t$found_crypt_func" != there; then | 8740 if test "t$found_crypt_func" != there; then |
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5 | 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
9907 printf "%s\n" "$as_me: " >&6;} | 8742 $as_echo "$as_me: " >&6;} |
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: crypt() not available, dropbear server will not have password authentication" >&5 | 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: crypt() not available, dropbear server will not have password authentication" >&5 |
9909 printf "%s\n" "$as_me: crypt() not available, dropbear server will not have password authentication" >&6;} | 8744 $as_echo "$as_me: crypt() not available, dropbear server will not have password authentication" >&6;} |
9910 fi | 8745 fi |
9911 | 8746 |
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: " >&5 | 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
9913 printf "%s\n" "$as_me: " >&6;} | 8748 $as_echo "$as_me: " >&6;} |
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Now edit localoptions.h to choose features." >&5 | 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit localoptions.h to choose features." >&5 |
9915 printf "%s\n" "$as_me: Now edit localoptions.h to choose features." >&6;} | 8750 $as_echo "$as_me: Now edit localoptions.h to choose features." >&6;} |
9916 |